@onekeyfe/hd-core 0.3.30 → 0.3.32

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 (235) hide show
  1. package/dist/api/CheckTransportRelease.d.ts +1 -1
  2. package/dist/api/FirmwareUpdate.d.ts +1 -1
  3. package/dist/api/FirmwareUpdate.d.ts.map +1 -1
  4. package/dist/api/FirmwareUpdateV2.d.ts +1 -1
  5. package/dist/api/FirmwareUpdateV2.d.ts.map +1 -1
  6. package/dist/api/btc/BTCSignTransaction.d.ts +1 -1
  7. package/dist/api/btc/BTCSignTransaction.d.ts.map +1 -1
  8. package/dist/api/btc/helpers/btcParamsUtils.d.ts +2 -2
  9. package/dist/api/btc/helpers/btcParamsUtils.d.ts.map +1 -1
  10. package/dist/api/cardano/helper/cardanoInputs.d.ts +3 -3
  11. package/dist/api/cardano/helper/cardanoInputs.d.ts.map +1 -1
  12. package/dist/api/cardano/helper/cardanoOutputs.d.ts +1 -1
  13. package/dist/api/cardano/helper/cardanoOutputs.d.ts.map +1 -1
  14. package/dist/api/cardano/helper/certificate.d.ts +1 -1
  15. package/dist/api/cardano/helper/certificate.d.ts.map +1 -1
  16. package/dist/api/evm/EVMSignTypedData.d.ts +1 -1
  17. package/dist/api/evm/EVMSignTypedData.d.ts.map +1 -1
  18. package/dist/api/helpers/hexUtils.d.ts +1 -1
  19. package/dist/api/helpers/hexUtils.d.ts.map +1 -1
  20. package/dist/api/helpers/paramsValidator.d.ts +1 -1
  21. package/dist/api/helpers/paramsValidator.d.ts.map +1 -1
  22. package/dist/api/helpers/pathUtils.d.ts +1 -1
  23. package/dist/api/helpers/pathUtils.d.ts.map +1 -1
  24. package/dist/api/nem/NEMSignTransaction.d.ts +1 -1
  25. package/dist/api/nem/NEMSignTransaction.d.ts.map +1 -1
  26. package/dist/core/index.d.ts +2 -2
  27. package/dist/core/index.d.ts.map +1 -1
  28. package/dist/data-manager/CoinManager.d.ts +1 -1
  29. package/dist/data-manager/CoinManager.d.ts.map +1 -1
  30. package/dist/data-manager/DataManager.d.ts +3 -3
  31. package/dist/data-manager/DataManager.d.ts.map +1 -1
  32. package/dist/data-manager/MessagesConfig.d.ts +1 -1
  33. package/dist/data-manager/MessagesConfig.d.ts.map +1 -1
  34. package/dist/data-manager/connectSettings.d.ts +1 -1
  35. package/dist/data-manager/connectSettings.d.ts.map +1 -1
  36. package/dist/device/Device.d.ts +2 -2
  37. package/dist/device/Device.d.ts.map +1 -1
  38. package/dist/device/DeviceCommands.d.ts +7 -7
  39. package/dist/device/DeviceCommands.d.ts.map +1 -1
  40. package/dist/device/DevicePool.d.ts +1 -1
  41. package/dist/device/DevicePool.d.ts.map +1 -1
  42. package/dist/events/call.d.ts +11 -11
  43. package/dist/events/call.d.ts.map +1 -1
  44. package/dist/events/core.d.ts +2 -2
  45. package/dist/events/core.d.ts.map +1 -1
  46. package/dist/events/device.d.ts +5 -5
  47. package/dist/events/device.d.ts.map +1 -1
  48. package/dist/events/firmware.d.ts +4 -4
  49. package/dist/events/firmware.d.ts.map +1 -1
  50. package/dist/events/iframe.d.ts +2 -2
  51. package/dist/events/iframe.d.ts.map +1 -1
  52. package/dist/events/log.d.ts +2 -2
  53. package/dist/events/log.d.ts.map +1 -1
  54. package/dist/events/ui-promise.d.ts +2 -2
  55. package/dist/events/ui-promise.d.ts.map +1 -1
  56. package/dist/events/ui-request.d.ts +3 -3
  57. package/dist/events/ui-request.d.ts.map +1 -1
  58. package/dist/events/ui-response.d.ts +2 -2
  59. package/dist/events/ui-response.d.ts.map +1 -1
  60. package/dist/events/utils.d.ts +2 -2
  61. package/dist/events/utils.d.ts.map +1 -1
  62. package/dist/index.d.ts +265 -266
  63. package/dist/index.js +128 -27
  64. package/dist/lowLevelInject.d.ts +2 -2
  65. package/dist/lowLevelInject.d.ts.map +1 -1
  66. package/dist/types/api/algoGetAddress.d.ts +2 -2
  67. package/dist/types/api/algoGetAddress.d.ts.map +1 -1
  68. package/dist/types/api/algoSignTransaction.d.ts +2 -2
  69. package/dist/types/api/algoSignTransaction.d.ts.map +1 -1
  70. package/dist/types/api/aptosGetAddress.d.ts +2 -2
  71. package/dist/types/api/aptosGetAddress.d.ts.map +1 -1
  72. package/dist/types/api/aptosGetPublicKey.d.ts +2 -2
  73. package/dist/types/api/aptosGetPublicKey.d.ts.map +1 -1
  74. package/dist/types/api/aptosSignMessage.d.ts +2 -2
  75. package/dist/types/api/aptosSignMessage.d.ts.map +1 -1
  76. package/dist/types/api/aptosSignTransaction.d.ts +2 -2
  77. package/dist/types/api/aptosSignTransaction.d.ts.map +1 -1
  78. package/dist/types/api/btcGetAddress.d.ts +2 -2
  79. package/dist/types/api/btcGetAddress.d.ts.map +1 -1
  80. package/dist/types/api/btcGetPublicKey.d.ts +2 -2
  81. package/dist/types/api/btcGetPublicKey.d.ts.map +1 -1
  82. package/dist/types/api/btcSignMessage.d.ts +1 -1
  83. package/dist/types/api/btcSignMessage.d.ts.map +1 -1
  84. package/dist/types/api/btcSignTransaction.d.ts +6 -6
  85. package/dist/types/api/btcSignTransaction.d.ts.map +1 -1
  86. package/dist/types/api/btcVerifyMessage.d.ts +1 -1
  87. package/dist/types/api/btcVerifyMessage.d.ts.map +1 -1
  88. package/dist/types/api/cardano.d.ts +4 -4
  89. package/dist/types/api/cardano.d.ts.map +1 -1
  90. package/dist/types/api/cardanoGetAddress.d.ts +3 -3
  91. package/dist/types/api/cardanoGetAddress.d.ts.map +1 -1
  92. package/dist/types/api/cardanoGetPublicKey.d.ts +3 -3
  93. package/dist/types/api/cardanoGetPublicKey.d.ts.map +1 -1
  94. package/dist/types/api/cardanoSignMessage.d.ts +2 -2
  95. package/dist/types/api/cardanoSignMessage.d.ts.map +1 -1
  96. package/dist/types/api/checkBLEFirmwareRelease.d.ts +1 -1
  97. package/dist/types/api/checkBLEFirmwareRelease.d.ts.map +1 -1
  98. package/dist/types/api/checkBootloaderRelease.d.ts +1 -1
  99. package/dist/types/api/checkBootloaderRelease.d.ts.map +1 -1
  100. package/dist/types/api/checkBridgeRelease.d.ts +1 -1
  101. package/dist/types/api/checkBridgeRelease.d.ts.map +1 -1
  102. package/dist/types/api/checkFirmwareRelease.d.ts +1 -1
  103. package/dist/types/api/checkFirmwareRelease.d.ts.map +1 -1
  104. package/dist/types/api/cipherKeyValue.d.ts +2 -2
  105. package/dist/types/api/cipherKeyValue.d.ts.map +1 -1
  106. package/dist/types/api/confluxGetAddress.d.ts +2 -2
  107. package/dist/types/api/confluxGetAddress.d.ts.map +1 -1
  108. package/dist/types/api/confluxSignMessage.d.ts +1 -1
  109. package/dist/types/api/confluxSignMessage.d.ts.map +1 -1
  110. package/dist/types/api/confluxSignMessageCIP23.d.ts +1 -1
  111. package/dist/types/api/confluxSignMessageCIP23.d.ts.map +1 -1
  112. package/dist/types/api/confluxSignTransaction.d.ts +3 -3
  113. package/dist/types/api/confluxSignTransaction.d.ts.map +1 -1
  114. package/dist/types/api/cosmosGetAddress.d.ts +2 -2
  115. package/dist/types/api/cosmosGetAddress.d.ts.map +1 -1
  116. package/dist/types/api/cosmosGetPublicKey.d.ts +2 -2
  117. package/dist/types/api/cosmosGetPublicKey.d.ts.map +1 -1
  118. package/dist/types/api/cosmosSignTransaction.d.ts +2 -2
  119. package/dist/types/api/cosmosSignTransaction.d.ts.map +1 -1
  120. package/dist/types/api/deviceChangePin.d.ts +1 -1
  121. package/dist/types/api/deviceChangePin.d.ts.map +1 -1
  122. package/dist/types/api/deviceFlags.d.ts +1 -1
  123. package/dist/types/api/deviceFlags.d.ts.map +1 -1
  124. package/dist/types/api/deviceRebootToBoardloader.d.ts +1 -1
  125. package/dist/types/api/deviceRebootToBoardloader.d.ts.map +1 -1
  126. package/dist/types/api/deviceRecovery.d.ts +1 -1
  127. package/dist/types/api/deviceRecovery.d.ts.map +1 -1
  128. package/dist/types/api/deviceReset.d.ts +1 -1
  129. package/dist/types/api/deviceReset.d.ts.map +1 -1
  130. package/dist/types/api/deviceSettings.d.ts +1 -1
  131. package/dist/types/api/deviceSettings.d.ts.map +1 -1
  132. package/dist/types/api/deviceSupportFeatures.d.ts +1 -1
  133. package/dist/types/api/deviceSupportFeatures.d.ts.map +1 -1
  134. package/dist/types/api/deviceUploadResource.d.ts +1 -1
  135. package/dist/types/api/deviceUploadResource.d.ts.map +1 -1
  136. package/dist/types/api/deviceVerify.d.ts +2 -2
  137. package/dist/types/api/deviceVerify.d.ts.map +1 -1
  138. package/dist/types/api/evmGetAddress.d.ts +2 -2
  139. package/dist/types/api/evmGetAddress.d.ts.map +1 -1
  140. package/dist/types/api/evmGetPublicKey.d.ts +2 -2
  141. package/dist/types/api/evmGetPublicKey.d.ts.map +1 -1
  142. package/dist/types/api/evmSignMessage.d.ts +1 -1
  143. package/dist/types/api/evmSignMessage.d.ts.map +1 -1
  144. package/dist/types/api/evmSignMessageEIP712.d.ts +1 -1
  145. package/dist/types/api/evmSignMessageEIP712.d.ts.map +1 -1
  146. package/dist/types/api/evmSignTransaction.d.ts +5 -5
  147. package/dist/types/api/evmSignTransaction.d.ts.map +1 -1
  148. package/dist/types/api/evmSignTypedData.d.ts +4 -4
  149. package/dist/types/api/evmSignTypedData.d.ts.map +1 -1
  150. package/dist/types/api/evmVerifyMessage.d.ts +1 -1
  151. package/dist/types/api/evmVerifyMessage.d.ts.map +1 -1
  152. package/dist/types/api/filecoinGetAddress.d.ts +2 -2
  153. package/dist/types/api/filecoinGetAddress.d.ts.map +1 -1
  154. package/dist/types/api/filecoinSignTransaction.d.ts +2 -2
  155. package/dist/types/api/filecoinSignTransaction.d.ts.map +1 -1
  156. package/dist/types/api/firmwareUpdate.d.ts +2 -2
  157. package/dist/types/api/firmwareUpdate.d.ts.map +1 -1
  158. package/dist/types/api/index.d.ts +1 -1
  159. package/dist/types/api/index.d.ts.map +1 -1
  160. package/dist/types/api/kaspaGetAddress.d.ts +2 -2
  161. package/dist/types/api/kaspaGetAddress.d.ts.map +1 -1
  162. package/dist/types/api/kaspaSignTransaction.d.ts +4 -4
  163. package/dist/types/api/kaspaSignTransaction.d.ts.map +1 -1
  164. package/dist/types/api/nearGetAddress.d.ts +2 -2
  165. package/dist/types/api/nearGetAddress.d.ts.map +1 -1
  166. package/dist/types/api/nearSignTransaction.d.ts +1 -1
  167. package/dist/types/api/nearSignTransaction.d.ts.map +1 -1
  168. package/dist/types/api/nemGetAddress.d.ts +2 -2
  169. package/dist/types/api/nemGetAddress.d.ts.map +1 -1
  170. package/dist/types/api/nemSignTransaction.d.ts +16 -16
  171. package/dist/types/api/nemSignTransaction.d.ts.map +1 -1
  172. package/dist/types/api/nexaGetAddress.d.ts +2 -2
  173. package/dist/types/api/nexaGetAddress.d.ts.map +1 -1
  174. package/dist/types/api/nexaSignTransaction.d.ts +4 -4
  175. package/dist/types/api/nexaSignTransaction.d.ts.map +1 -1
  176. package/dist/types/api/polkadotGetAddress.d.ts +2 -2
  177. package/dist/types/api/polkadotGetAddress.d.ts.map +1 -1
  178. package/dist/types/api/polkadotSignTransaction.d.ts +2 -2
  179. package/dist/types/api/polkadotSignTransaction.d.ts.map +1 -1
  180. package/dist/types/api/solGetAddress.d.ts +2 -2
  181. package/dist/types/api/solGetAddress.d.ts.map +1 -1
  182. package/dist/types/api/solSignTransaction.d.ts +2 -2
  183. package/dist/types/api/solSignTransaction.d.ts.map +1 -1
  184. package/dist/types/api/starcoinGetAddress.d.ts +2 -2
  185. package/dist/types/api/starcoinGetAddress.d.ts.map +1 -1
  186. package/dist/types/api/starcoinGetPublicKey.d.ts +2 -2
  187. package/dist/types/api/starcoinGetPublicKey.d.ts.map +1 -1
  188. package/dist/types/api/starcoinSignMessage.d.ts +1 -1
  189. package/dist/types/api/starcoinSignMessage.d.ts.map +1 -1
  190. package/dist/types/api/starcoinSignTransaction.d.ts +1 -1
  191. package/dist/types/api/starcoinSignTransaction.d.ts.map +1 -1
  192. package/dist/types/api/starcoinVerifyMessage.d.ts +1 -1
  193. package/dist/types/api/starcoinVerifyMessage.d.ts.map +1 -1
  194. package/dist/types/api/stellarGetAddress.d.ts +2 -2
  195. package/dist/types/api/stellarGetAddress.d.ts.map +1 -1
  196. package/dist/types/api/stellarSignTransaction.d.ts +16 -16
  197. package/dist/types/api/stellarSignTransaction.d.ts.map +1 -1
  198. package/dist/types/api/suiGetAddress.d.ts +2 -2
  199. package/dist/types/api/suiGetAddress.d.ts.map +1 -1
  200. package/dist/types/api/suiGetPublicKey.d.ts +2 -2
  201. package/dist/types/api/suiGetPublicKey.d.ts.map +1 -1
  202. package/dist/types/api/suiSignMessage.d.ts +1 -1
  203. package/dist/types/api/suiSignMessage.d.ts.map +1 -1
  204. package/dist/types/api/suiSignTransaction.d.ts +2 -2
  205. package/dist/types/api/suiSignTransaction.d.ts.map +1 -1
  206. package/dist/types/api/tronGetAddress.d.ts +2 -2
  207. package/dist/types/api/tronGetAddress.d.ts.map +1 -1
  208. package/dist/types/api/tronSignMessage.d.ts +1 -1
  209. package/dist/types/api/tronSignMessage.d.ts.map +1 -1
  210. package/dist/types/api/tronSignTransaction.d.ts +11 -11
  211. package/dist/types/api/tronSignTransaction.d.ts.map +1 -1
  212. package/dist/types/api/xrpGetAddress.d.ts +2 -2
  213. package/dist/types/api/xrpGetAddress.d.ts.map +1 -1
  214. package/dist/types/api/xrpSignTransaction.d.ts +4 -4
  215. package/dist/types/api/xrpSignTransaction.d.ts.map +1 -1
  216. package/dist/types/device.d.ts +18 -18
  217. package/dist/types/device.d.ts.map +1 -1
  218. package/dist/types/firmware.d.ts +5 -5
  219. package/dist/types/firmware.d.ts.map +1 -1
  220. package/dist/types/params.d.ts +2 -2
  221. package/dist/types/params.d.ts.map +1 -1
  222. package/dist/types/settings.d.ts +8 -8
  223. package/dist/types/settings.d.ts.map +1 -1
  224. package/dist/utils/deviceFeaturesUtils.d.ts +8 -8
  225. package/dist/utils/deviceFeaturesUtils.d.ts.map +1 -1
  226. package/dist/utils/logger.d.ts +3 -3
  227. package/dist/utils/logger.d.ts.map +1 -1
  228. package/package.json +4 -4
  229. package/src/api/FirmwareUpdateV2.ts +4 -1
  230. package/src/api/conflux/ConfluxGetAddress.ts +1 -1
  231. package/src/data/messages/messages.json +67 -0
  232. package/src/data-manager/DataManager.ts +5 -0
  233. package/src/device/DeviceCommands.ts +11 -5
  234. package/src/types/device.ts +3 -2
  235. package/src/utils/deviceFeaturesUtils.ts +26 -3
package/dist/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import EventEmitter$1, { EventEmitter } from 'events';
2
- import * as _onekeyfe_hd_transport from '@onekeyfe/hd-transport';
3
2
  import { Messages, LowlevelTransportSharedPlugin, Success as Success$1, RecoveryDeviceType, SafetyCheckLevel, ResourceType, CipheredKeyValue as CipheredKeyValue$1, EthereumPublicKey, EthereumMessageSignature, Address, MultisigRedeemScriptType, InputScriptType, PublicKey, MessageSignature, 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, StellarAddress as StellarAddress$1, StellarSignedTx, TronAddress as TronAddress$1, UintType, 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, OneKeyDeviceInfo, Transport, ChangeOutputScriptType } from '@onekeyfe/hd-transport';
4
3
  export { Messages as PROTO } from '@onekeyfe/hd-transport';
5
4
  import { Deferred } from '@onekeyfe/hd-shared';
@@ -14,7 +13,7 @@ interface CommonParams {
14
13
  initSession?: boolean;
15
14
  deriveCardano?: boolean;
16
15
  }
17
- declare type Params<T> = CommonParams & T & {
16
+ type Params<T> = CommonParams & T & {
18
17
  bundle?: undefined;
19
18
  };
20
19
  interface Unsuccessful {
@@ -28,7 +27,7 @@ interface Success<T> {
28
27
  success: true;
29
28
  payload: T;
30
29
  }
31
- declare type Response<T> = Promise<Success<T> | Unsuccessful>;
30
+ type Response<T> = Promise<Success<T> | Unsuccessful>;
32
31
 
33
32
  declare const on: <T extends string, P extends (...args: any[]) => any>(type: T, fn: P) => void;
34
33
  declare const off: (type: any, fn: any) => void;
@@ -36,7 +35,7 @@ declare const removeAllListeners: (type: any) => void;
36
35
 
37
36
  declare function uiResponse(response: UiResponseEvent): void;
38
37
 
39
- declare type IAddHardwareGlobalEventListener = (coreMessage: CoreMessage) => void;
38
+ type IAddHardwareGlobalEventListener = (coreMessage: CoreMessage) => void;
40
39
  interface LowLevelInjectApi {
41
40
  call: CallMethod;
42
41
  eventEmitter: EventEmitter;
@@ -47,19 +46,19 @@ interface LowLevelInjectApi {
47
46
  updateSettings: CoreApi['updateSettings'];
48
47
  addHardwareGlobalEventListener: (listener: IAddHardwareGlobalEventListener) => void;
49
48
  }
50
- declare type LowLevelCoreApi = Omit<CoreApi, 'on' | 'off'> & {
49
+ type LowLevelCoreApi = Omit<CoreApi, 'on' | 'off'> & {
51
50
  addHardwareGlobalEventListener: (listener: IAddHardwareGlobalEventListener) => void;
52
51
  };
53
52
 
54
53
  declare const safeThrowError: (error: any) => never;
55
54
 
56
- declare type DeviceStatus = 'available' | 'occupied' | 'used';
57
- declare type DeviceMode = 'normal' | 'bootloader' | 'initialize' | 'seedless';
58
- declare type UnavailableCapability = 'no-capability' | 'no-support' | 'update-required' | 'trezor-connect-outdated';
59
- declare type UnavailableCapabilities = {
55
+ type DeviceStatus = 'available' | 'occupied' | 'used';
56
+ type DeviceMode = 'normal' | 'bootloader' | 'initialize' | 'seedless';
57
+ type UnavailableCapability = 'no-capability' | 'no-support' | 'update-required' | 'trezor-connect-outdated';
58
+ type UnavailableCapabilities = {
60
59
  [key: string]: UnavailableCapability;
61
60
  };
62
- declare type KnownDevice = {
61
+ type KnownDevice = {
63
62
  connectId: string | null;
64
63
  uuid: string;
65
64
  deviceId: string | null;
@@ -74,33 +73,33 @@ declare type KnownDevice = {
74
73
  bleFirmwareVersion: IVersionArray | null;
75
74
  firmwareVersion: IVersionArray | null;
76
75
  };
77
- declare type SearchDevice = {
76
+ type SearchDevice = {
78
77
  connectId: string | null;
79
78
  uuid: string;
80
79
  deviceId: string | null;
81
80
  deviceType: IDeviceType;
82
81
  name: string;
83
82
  };
84
- declare type Device$1 = KnownDevice;
85
- declare type Features = Messages.Features;
86
- declare type IDeviceType = 'classic' | 'mini' | 'touch' | 'pro';
87
- declare type IDeviceModel = 'model_mini' | 'model_touch';
83
+ type Device$1 = KnownDevice;
84
+ type Features = Messages.Features;
85
+ type IDeviceType = 'classic' | 'classic1s' | 'mini' | 'touch' | 'pro';
86
+ type IDeviceModel = 'model_mini' | 'model_touch';
88
87
  declare const DeviceModelToTypes: {
89
88
  [deviceModel in IDeviceModel]: IDeviceType[];
90
89
  };
91
90
  declare const DeviceTypeToModels: {
92
91
  [deviceType in IDeviceType]: IDeviceModel[];
93
92
  };
94
- declare type IDeviceFirmwareStatus = 'valid' | 'outdated' | 'required' | 'unknown' | 'none';
95
- declare type IDeviceBLEFirmwareStatus = 'valid' | 'outdated' | 'required' | 'unknown' | 'none';
96
- declare type ITransportStatus = 'valid' | 'outdated';
97
- declare type DeviceFirmwareRange = {
93
+ type IDeviceFirmwareStatus = 'valid' | 'outdated' | 'required' | 'unknown' | 'none';
94
+ type IDeviceBLEFirmwareStatus = 'valid' | 'outdated' | 'required' | 'unknown' | 'none';
95
+ type ITransportStatus = 'valid' | 'outdated';
96
+ type DeviceFirmwareRange = {
98
97
  [deviceType in IDeviceType | IDeviceModel]?: {
99
98
  min: string;
100
99
  max?: string;
101
100
  };
102
101
  };
103
- declare type FeaturesNarrowing = {
102
+ type FeaturesNarrowing = {
104
103
  major_version: 2;
105
104
  fw_major: null;
106
105
  fw_minor: null;
@@ -136,17 +135,17 @@ declare type FeaturesNarrowing = {
136
135
  bootloader_mode: true;
137
136
  firmware_present: true;
138
137
  };
139
- declare type StrictFeatures = Features & FeaturesNarrowing;
140
- declare type SupportFeatureType = {
138
+ type StrictFeatures = Features & FeaturesNarrowing;
139
+ type SupportFeatureType = {
141
140
  support: boolean;
142
141
  require?: string;
143
142
  };
144
- declare type SupportFeatures = {
143
+ type SupportFeatures = {
145
144
  inputPinOnSoftware: SupportFeatureType;
146
145
  modifyHomescreen: SupportFeatureType;
147
146
  };
148
147
 
149
- declare type ConnectSettings = {
148
+ type ConnectSettings = {
150
149
  connectSrc?: string;
151
150
  debug?: boolean;
152
151
  transportReconnect?: boolean;
@@ -165,9 +164,9 @@ declare type ConnectSettings = {
165
164
  preRelease?: boolean;
166
165
  fetchConfig?: boolean;
167
166
  };
168
- declare type IVersionArray = [number, number, number];
169
- declare type ILocale = 'zh-CN' | 'en-US';
170
- declare type IFirmwareReleaseInfo = {
167
+ type IVersionArray = [number, number, number];
168
+ type ILocale = 'zh-CN' | 'en-US';
169
+ type IFirmwareReleaseInfo = {
171
170
  required: boolean;
172
171
  url: string;
173
172
  resource?: string;
@@ -185,7 +184,7 @@ declare type IFirmwareReleaseInfo = {
185
184
  [k in ILocale]: string;
186
185
  };
187
186
  };
188
- declare type IBLEFirmwareReleaseInfo = {
187
+ type IBLEFirmwareReleaseInfo = {
189
188
  required: boolean;
190
189
  url: string;
191
190
  webUpdate: string;
@@ -196,7 +195,7 @@ declare type IBLEFirmwareReleaseInfo = {
196
195
  [k in ILocale]: string;
197
196
  };
198
197
  };
199
- declare type DeviceTypeMap = {
198
+ type DeviceTypeMap = {
200
199
  [k in IDeviceType]: {
201
200
  firmware: IFirmwareReleaseInfo[];
202
201
  'firmware-v2'?: IFirmwareReleaseInfo[];
@@ -204,7 +203,7 @@ declare type DeviceTypeMap = {
204
203
  ble: IBLEFirmwareReleaseInfo[];
205
204
  };
206
205
  };
207
- declare type AssetsMap = {
206
+ type AssetsMap = {
208
207
  bridge: {
209
208
  version: IVersionArray;
210
209
  linux32Rpm: string;
@@ -219,7 +218,7 @@ declare type AssetsMap = {
219
218
  };
220
219
  };
221
220
  };
222
- declare type RemoteConfigResponse = {
221
+ type RemoteConfigResponse = {
223
222
  bridge: AssetsMap['bridge'];
224
223
  } & DeviceTypeMap;
225
224
 
@@ -238,9 +237,9 @@ interface FirmwareRange {
238
237
  max: string;
239
238
  };
240
239
  }
241
- declare type MajorVersion = 1 | 2;
242
- declare type VersionArray = [MajorVersion, number, number];
243
- declare type FirmwareRelease$1 = {
240
+ type MajorVersion = 1 | 2;
241
+ type VersionArray = [MajorVersion, number, number];
242
+ type FirmwareRelease$1 = {
244
243
  required: boolean;
245
244
  url: string;
246
245
  fingerprint: string;
@@ -256,7 +255,7 @@ declare type FirmwareRelease$1 = {
256
255
  rollout?: number;
257
256
  channel?: string;
258
257
  };
259
- declare type ReleaseInfo = {
258
+ type ReleaseInfo = {
260
259
  changelog: FirmwareRelease$1[] | null;
261
260
  release: FirmwareRelease$1;
262
261
  isLatest: boolean;
@@ -264,13 +263,13 @@ declare type ReleaseInfo = {
264
263
  isRequired: boolean | null;
265
264
  isNewer: boolean | null;
266
265
  };
267
- declare type TransportReleaseStatus = 'valid' | 'outdated';
266
+ type TransportReleaseStatus = 'valid' | 'outdated';
268
267
 
269
268
  declare function checkTransportRelease(connectId?: string): Response<TransportReleaseStatus>;
270
269
 
271
270
  declare function checkBridgeStatus(): Response<boolean>;
272
271
 
273
- declare type CheckBridgeReleaseResponse = {
272
+ type CheckBridgeReleaseResponse = {
274
273
  shouldUpdate: boolean;
275
274
  status: 'outdated' | 'valid';
276
275
  releaseVersion: string;
@@ -279,7 +278,7 @@ declare function checkBridgeRelease(connectId?: string, params?: CommonParams &
279
278
  willUpdateFirmwareVersion?: string;
280
279
  }): Response<CheckBridgeReleaseResponse>;
281
280
 
282
- declare type CheckBootloaderReleaseResponse = {
281
+ type CheckBootloaderReleaseResponse = {
283
282
  shouldUpdate: boolean;
284
283
  status: 'outdated' | 'valid';
285
284
  release: string | undefined;
@@ -294,7 +293,7 @@ declare function getFeatures(connectId?: string, params?: CommonParams): Respons
294
293
 
295
294
  declare function getPassphraseState(connectId?: string, params?: CommonParams): Response<string>;
296
295
 
297
- declare type FirmwareRelease = {
296
+ type FirmwareRelease = {
298
297
  status: IDeviceFirmwareStatus;
299
298
  changelog: {
300
299
  'en-US': string;
@@ -304,7 +303,7 @@ declare type FirmwareRelease = {
304
303
  };
305
304
  declare function checkFirmwareRelease(connectId?: string): Response<FirmwareRelease>;
306
305
 
307
- declare type BleFirmwareRelease = {
306
+ type BleFirmwareRelease = {
308
307
  status: IDeviceBLEFirmwareStatus;
309
308
  changelog: {
310
309
  'zh-CN': string;
@@ -326,8 +325,8 @@ interface FirmwareUpdateParams {
326
325
  }
327
326
  declare function firmwareUpdate(connectId: string | undefined, params: Params<FirmwareUpdateParams>): Response<Messages.Success>;
328
327
  declare function firmwareUpdate(connectId: string | undefined, params: Params<FirmwareUpdateBinaryParams>): Response<Messages.Success>;
329
- declare type IPlatform = 'native' | 'desktop' | 'ext' | 'web' | 'webEmbed';
330
- declare type Platform = {
328
+ type IPlatform = 'native' | 'desktop' | 'ext' | 'web' | 'webEmbed';
329
+ type Platform = {
331
330
  platform: IPlatform;
332
331
  };
333
332
  declare function firmwareUpdateV2(connectId: string | undefined, params: Params<FirmwareUpdateParams & Platform>): Response<Messages.Success>;
@@ -337,7 +336,7 @@ declare function requestWebUsbDevice(): Response<{
337
336
  device: KnownDevice;
338
337
  }>;
339
338
 
340
- declare type DeviceResetParams = {
339
+ type DeviceResetParams = {
341
340
  displayRandom?: boolean;
342
341
  strength?: number;
343
342
  passphraseProtection?: boolean;
@@ -351,7 +350,7 @@ declare type DeviceResetParams = {
351
350
  };
352
351
  declare function deviceReset(connectId: string, params: CommonParams & DeviceResetParams): Response<Success$1>;
353
352
 
354
- declare type DeviceRecoveryParams = {
353
+ type DeviceRecoveryParams = {
355
354
  wordCount?: number;
356
355
  passphraseProtection?: boolean;
357
356
  pinProtection?: boolean;
@@ -364,10 +363,10 @@ declare type DeviceRecoveryParams = {
364
363
  };
365
364
  declare function deviceRecovery(connectId: string, params: CommonParams & DeviceRecoveryParams): Response<Success$1>;
366
365
 
367
- declare type DeviceVerifyParams = {
366
+ type DeviceVerifyParams = {
368
367
  dataHex: string;
369
368
  };
370
- declare type DeviceVerifySignature = {
369
+ type DeviceVerifySignature = {
371
370
  cert: string;
372
371
  signature: string;
373
372
  };
@@ -381,12 +380,12 @@ declare function deviceRebootToBoardloader(connectId: string): Response<Success$
381
380
 
382
381
  declare function deviceBackup(connectId: string): Response<Success$1>;
383
382
 
384
- declare type DeviceChangePinParams = {
383
+ type DeviceChangePinParams = {
385
384
  remove?: boolean;
386
385
  };
387
386
  declare function deviceChangePin(connectId: string, params: CommonParams & DeviceChangePinParams): Response<Success$1>;
388
387
 
389
- declare type DeviceSettingsParams = {
388
+ type DeviceSettingsParams = {
390
389
  language?: string;
391
390
  label?: string;
392
391
  usePassphrase?: boolean;
@@ -400,14 +399,14 @@ declare type DeviceSettingsParams = {
400
399
  };
401
400
  declare function deviceSettings(connectId: string, params: CommonParams & DeviceSettingsParams): Response<Success$1>;
402
401
 
403
- declare type DeviceFlagsParams = {
402
+ type DeviceFlagsParams = {
404
403
  flags?: number;
405
404
  };
406
405
  declare function deviceFlags(connectId: string, params: CommonParams & DeviceFlagsParams): Response<Success$1>;
407
406
 
408
407
  declare function deviceUpdateReboot(connectId: string): Response<boolean>;
409
408
 
410
- declare type DeviceUploadResourceParams = {
409
+ type DeviceUploadResourceParams = {
411
410
  suffix: string;
412
411
  dataHex: string;
413
412
  thumbnailDataHex: string;
@@ -416,7 +415,7 @@ declare type DeviceUploadResourceParams = {
416
415
  };
417
416
  declare function deviceUploadResource(connectId: string, params: CommonParams & DeviceUploadResourceParams): Response<Success$1>;
418
417
 
419
- declare type DeviceSupportFeatures = SupportFeatures & {
418
+ type DeviceSupportFeatures = SupportFeatures & {
420
419
  device: Device$1 | null;
421
420
  };
422
421
  declare function deviceSupportFeatures(connectId?: string): Response<DeviceSupportFeatures>;
@@ -425,10 +424,10 @@ declare function deviceFullyUploadResource(connectId: string, params: CommonPara
425
424
 
426
425
  declare function deviceUpdateBootloader(connectId: string): Response<Success$1>;
427
426
 
428
- declare type CipheredKeyValue = {
427
+ type CipheredKeyValue = {
429
428
  path: string;
430
429
  } & CipheredKeyValue$1;
431
- declare type CipheredKeyValueParams = {
430
+ type CipheredKeyValueParams = {
432
431
  path: string | number[];
433
432
  key: string;
434
433
  value: string;
@@ -442,11 +441,11 @@ declare function cipherKeyValue(connectId: string, deviceId: string, params: Com
442
441
  bundle?: CipheredKeyValueParams[];
443
442
  }): Response<Array<CipheredKeyValue>>;
444
443
 
445
- declare type EVMAddress = {
444
+ type EVMAddress = {
446
445
  path: string;
447
446
  address: string;
448
447
  };
449
- declare type EVMGetAddressParams = {
448
+ type EVMGetAddressParams = {
450
449
  path: string | number[];
451
450
  showOnOneKey?: boolean;
452
451
  chainId?: number;
@@ -456,11 +455,11 @@ declare function evmGetAddress(connectId: string, deviceId: string, params: Comm
456
455
  bundle?: EVMGetAddressParams[];
457
456
  }): Response<Array<EVMAddress>>;
458
457
 
459
- declare type EVMPublicKey = {
458
+ type EVMPublicKey = {
460
459
  path: string;
461
460
  publicKey: string;
462
461
  } & EthereumPublicKey;
463
- declare type EVMGetPublicKeyParams = {
462
+ type EVMGetPublicKeyParams = {
464
463
  path: string | number[];
465
464
  showOnOneKey?: boolean;
466
465
  chainId?: number;
@@ -474,26 +473,26 @@ declare function evmGetPublicKey(connectId: string, deviceId: string, params: Co
474
473
  useBatch?: boolean;
475
474
  }): Response<Omit<EVMPublicKey, 'node' | 'xpub'>>;
476
475
 
477
- declare type EVMSignMessageParams = {
476
+ type EVMSignMessageParams = {
478
477
  path: string | number[];
479
478
  messageHex: string;
480
479
  chainId?: number;
481
480
  };
482
481
  declare function evmSignMessage(connectId: string, deviceId: string, params: CommonParams & EVMSignMessageParams): Response<EthereumMessageSignature>;
483
482
 
484
- declare type EVMSignMessageEIP712Params = {
483
+ type EVMSignMessageEIP712Params = {
485
484
  path: string | number[];
486
485
  domainHash: string;
487
486
  messageHash: string;
488
487
  };
489
488
  declare function evmSignMessageEIP712(connectId: string, deviceId: string, params: CommonParams & EVMSignMessageEIP712Params): Response<EthereumMessageSignature>;
490
489
 
491
- declare type EVMSignedTx = {
490
+ type EVMSignedTx = {
492
491
  v: string;
493
492
  r: string;
494
493
  s: string;
495
494
  };
496
- declare type EVMTransaction = {
495
+ type EVMTransaction = {
497
496
  to: string;
498
497
  value: string;
499
498
  gasPrice: string;
@@ -505,11 +504,11 @@ declare type EVMTransaction = {
505
504
  chainId: number;
506
505
  txType?: number;
507
506
  };
508
- declare type EVMAccessList = {
507
+ type EVMAccessList = {
509
508
  address: string;
510
509
  storageKeys: string[];
511
510
  };
512
- declare type EVMTransactionEIP1559 = {
511
+ type EVMTransactionEIP1559 = {
513
512
  to: string;
514
513
  value: string;
515
514
  gasLimit: string;
@@ -521,21 +520,21 @@ declare type EVMTransactionEIP1559 = {
521
520
  maxPriorityFeePerGas: string;
522
521
  accessList?: EVMAccessList[];
523
522
  };
524
- declare type EVMSignTransactionParams = {
523
+ type EVMSignTransactionParams = {
525
524
  path: string | number[];
526
525
  transaction: EVMTransaction | EVMTransactionEIP1559;
527
526
  };
528
527
  declare function evmSignTransaction(connectId: string, deviceId: string, params: CommonParams & EVMSignTransactionParams): Response<EVMSignedTx>;
529
528
 
530
- declare type EthereumSignTypedDataTypeProperty = {
529
+ type EthereumSignTypedDataTypeProperty = {
531
530
  name: string;
532
531
  type: string;
533
532
  };
534
- declare type EthereumSignTypedDataTypes = {
533
+ type EthereumSignTypedDataTypes = {
535
534
  EIP712Domain: EthereumSignTypedDataTypeProperty[];
536
535
  [additionalProperties: string]: EthereumSignTypedDataTypeProperty[];
537
536
  };
538
- declare type EthereumSignTypedDataMessage<T extends EthereumSignTypedDataTypes> = {
537
+ type EthereumSignTypedDataMessage<T extends EthereumSignTypedDataTypes> = {
539
538
  types: T;
540
539
  primaryType: keyof T;
541
540
  domain: {
@@ -549,7 +548,7 @@ declare type EthereumSignTypedDataMessage<T extends EthereumSignTypedDataTypes>
549
548
  [fieldName: string]: any;
550
549
  };
551
550
  };
552
- declare type EVMSignTypedDataParams = {
551
+ type EVMSignTypedDataParams = {
553
552
  path: string | number[];
554
553
  metamaskV4Compat: boolean;
555
554
  data: EthereumSignTypedDataMessage<EthereumSignTypedDataTypes>;
@@ -559,7 +558,7 @@ declare type EVMSignTypedDataParams = {
559
558
  };
560
559
  declare function evmSignTypedData(connectId: string, deviceId: string, params: CommonParams & EVMSignTypedDataParams): Response<EthereumMessageSignature>;
561
560
 
562
- declare type EVMVerifyMessageParams = {
561
+ type EVMVerifyMessageParams = {
563
562
  address: string;
564
563
  messageHex: string;
565
564
  signature: string;
@@ -567,10 +566,10 @@ declare type EVMVerifyMessageParams = {
567
566
  };
568
567
  declare function evmVerifyMessage(connectId: string, deviceId: string, params: CommonParams & EVMVerifyMessageParams): Response<Success$1>;
569
568
 
570
- declare type BTCAddress = {
569
+ type BTCAddress = {
571
570
  path: string;
572
571
  } & Address;
573
- declare type BTCGetAddressParams = {
572
+ type BTCGetAddressParams = {
574
573
  path: string | number[];
575
574
  coin?: string;
576
575
  showOnOneKey?: boolean;
@@ -582,11 +581,11 @@ declare function btcGetAddress(connectId: string, deviceId: string, params: Comm
582
581
  bundle?: BTCGetAddressParams[];
583
582
  }): Response<Array<BTCAddress>>;
584
583
 
585
- declare type BTCPublicKey = {
584
+ type BTCPublicKey = {
586
585
  path: string;
587
586
  xpubSegwit?: string;
588
587
  } & PublicKey;
589
- declare type BTCGetPublicKeyParams = {
588
+ type BTCGetPublicKeyParams = {
590
589
  path: string | number[];
591
590
  coin?: string;
592
591
  showOnOneKey?: boolean;
@@ -597,7 +596,7 @@ declare function btcGetPublicKey(connectId: string, deviceId: string, params: Co
597
596
  bundle?: BTCGetPublicKeyParams[];
598
597
  }): Response<Array<BTCPublicKey>>;
599
598
 
600
- declare type BTCSignMessageParams = {
599
+ type BTCSignMessageParams = {
601
600
  path: string | number[];
602
601
  messageHex: string;
603
602
  coin?: string;
@@ -605,12 +604,12 @@ declare type BTCSignMessageParams = {
605
604
  };
606
605
  declare function btcSignMessage(connectId: string, deviceId: string, params: CommonParams & BTCSignMessageParams): Response<MessageSignature>;
607
606
 
608
- declare type SignedTransaction = {
607
+ type SignedTransaction = {
609
608
  signatures: string[];
610
609
  serializedTx: string;
611
610
  txid?: string;
612
611
  };
613
- declare type TransactionOptions = {
612
+ type TransactionOptions = {
614
613
  version?: number;
615
614
  lock_time?: number;
616
615
  expiry?: number;
@@ -619,7 +618,7 @@ declare type TransactionOptions = {
619
618
  timestamp?: number;
620
619
  branch_id?: number;
621
620
  };
622
- declare type RefTransaction = {
621
+ type RefTransaction = {
623
622
  hash: string;
624
623
  version: number;
625
624
  inputs: PrevInput[];
@@ -646,7 +645,7 @@ declare type RefTransaction = {
646
645
  timestamp?: number;
647
646
  branch_id?: number;
648
647
  };
649
- declare type AccountAddress = {
648
+ type AccountAddress = {
650
649
  address: string;
651
650
  path: string;
652
651
  transfers?: number;
@@ -654,12 +653,12 @@ declare type AccountAddress = {
654
653
  sent?: string;
655
654
  received?: string;
656
655
  };
657
- declare type AccountAddresses = {
656
+ type AccountAddresses = {
658
657
  change: AccountAddress[];
659
658
  used: AccountAddress[];
660
659
  unused: AccountAddress[];
661
660
  };
662
- declare type BTCSignTransactionParams = {
661
+ type BTCSignTransactionParams = {
663
662
  coin: string;
664
663
  inputs: TxInputType[];
665
664
  outputs: TxOutputType[];
@@ -677,7 +676,7 @@ declare type BTCSignTransactionParams = {
677
676
  };
678
677
  declare function btcSignTransaction(connectId: string, deviceId: string, params: CommonParams & BTCSignTransactionParams): Response<SignedTransaction>;
679
678
 
680
- declare type BTCVerifyMessageParams = {
679
+ type BTCVerifyMessageParams = {
681
680
  address: string;
682
681
  messageHex: string;
683
682
  signature: string;
@@ -685,10 +684,10 @@ declare type BTCVerifyMessageParams = {
685
684
  };
686
685
  declare function btcVerifyMessage(connectId: string, deviceId: string, params: CommonParams & BTCVerifyMessageParams): Response<Success$1>;
687
686
 
688
- declare type StarcoinAddress = {
687
+ type StarcoinAddress = {
689
688
  path: string;
690
689
  } & StarcoinAddress$1;
691
- declare type StarcoinGetAddressParams = {
690
+ type StarcoinGetAddressParams = {
692
691
  path: string | number[];
693
692
  showOnOneKey?: boolean;
694
693
  };
@@ -697,10 +696,10 @@ declare function starcoinGetAddress(connectId: string, deviceId: string, params:
697
696
  bundle?: StarcoinGetAddressParams[];
698
697
  }): Response<Array<StarcoinAddress>>;
699
698
 
700
- declare type StarcoinPublicKey = {
699
+ type StarcoinPublicKey = {
701
700
  path: string;
702
701
  } & StarcoinPublicKey$1;
703
- declare type StarcoinGetPublicKeyParams = {
702
+ type StarcoinGetPublicKeyParams = {
704
703
  path: string | number[];
705
704
  showOnOneKey?: boolean;
706
705
  };
@@ -709,29 +708,29 @@ declare function starcoinGetPublicKey(connectId: string, deviceId: string, param
709
708
  bundle?: StarcoinGetPublicKeyParams[];
710
709
  }): Response<Array<StarcoinPublicKey>>;
711
710
 
712
- declare type StarcoinSignMessageParams = {
711
+ type StarcoinSignMessageParams = {
713
712
  path: string | number[];
714
713
  messageHex: string;
715
714
  };
716
715
  declare function starcoinSignMessage(connectId: string, deviceId: string, params: CommonParams & StarcoinSignMessageParams): Response<StarcoinMessageSignature>;
717
716
 
718
- declare type StarcoinSignTransactionParams = {
717
+ type StarcoinSignTransactionParams = {
719
718
  path: string | number[];
720
719
  rawTx: string;
721
720
  };
722
721
  declare function starcoinSignTransaction(connectId: string, deviceId: string, params: CommonParams & StarcoinSignTransactionParams): Response<StarcoinSignedTx>;
723
722
 
724
- declare type StarcoinVerifyMessageParams = {
723
+ type StarcoinVerifyMessageParams = {
725
724
  publicKey: string;
726
725
  messageHex: string;
727
726
  signature: string;
728
727
  };
729
728
  declare function starcoinVerifyMessage(connectId: string, deviceId: string, params: CommonParams & StarcoinVerifyMessageParams): Response<Success$1>;
730
729
 
731
- declare type NEMAddress = {
730
+ type NEMAddress = {
732
731
  path: string;
733
732
  } & NEMAddress$1;
734
- declare type NEMGetAddressParams = {
733
+ type NEMGetAddressParams = {
735
734
  path: string | number[];
736
735
  network?: number;
737
736
  showOnOneKey?: boolean;
@@ -741,11 +740,11 @@ declare function nemGetAddress(connectId: string, deviceId: string, params: Comm
741
740
  bundle?: NEMGetAddressParams[];
742
741
  }): Response<Array<NEMAddress>>;
743
742
 
744
- declare type MosaicID = {
743
+ type MosaicID = {
745
744
  namespaceId: string;
746
745
  name: string;
747
746
  };
748
- declare type MosaicDefinition = {
747
+ type MosaicDefinition = {
749
748
  levy?: {
750
749
  type?: number;
751
750
  fee?: number;
@@ -759,82 +758,82 @@ declare type MosaicDefinition = {
759
758
  value: string;
760
759
  }>;
761
760
  };
762
- declare type NEMMosaic = {
761
+ type NEMMosaic = {
763
762
  mosaicId: MosaicID;
764
763
  quantity: number;
765
764
  };
766
- declare type Modification = {
765
+ type Modification = {
767
766
  modificationType: number;
768
767
  cosignatoryAccount: string;
769
768
  };
770
- declare type Message = {
769
+ type Message = {
771
770
  payload?: string;
772
771
  type?: number;
773
772
  publicKey?: string;
774
773
  };
775
- declare type TransactionCommon = {
774
+ type TransactionCommon = {
776
775
  version: number;
777
776
  timeStamp: number;
778
777
  fee: number;
779
778
  deadline?: number;
780
779
  signer?: string;
781
780
  };
782
- declare type NEMTransferTransaction = TransactionCommon & {
781
+ type NEMTransferTransaction = TransactionCommon & {
783
782
  type: 0x0101;
784
783
  recipient: string;
785
784
  amount: number | string;
786
785
  mosaics?: NEMMosaic[];
787
786
  message?: Message;
788
787
  };
789
- declare type NEMImportanceTransaction = TransactionCommon & {
788
+ type NEMImportanceTransaction = TransactionCommon & {
790
789
  type: 0x0801;
791
790
  importanceTransfer: {
792
791
  mode: number;
793
792
  publicKey: string;
794
793
  };
795
794
  };
796
- declare type NEMAggregateModificationTransaction = TransactionCommon & {
795
+ type NEMAggregateModificationTransaction = TransactionCommon & {
797
796
  type: 0x1001;
798
797
  modifications?: Modification[];
799
798
  minCosignatories: {
800
799
  relativeChange: number;
801
800
  };
802
801
  };
803
- declare type NEMProvisionNamespaceTransaction = TransactionCommon & {
802
+ type NEMProvisionNamespaceTransaction = TransactionCommon & {
804
803
  type: 0x2001;
805
804
  newPart?: string;
806
805
  parent?: string;
807
806
  rentalFeeSink?: string;
808
807
  rentalFee?: number;
809
808
  };
810
- declare type NEMMosaicCreationTransaction = TransactionCommon & {
809
+ type NEMMosaicCreationTransaction = TransactionCommon & {
811
810
  type: 0x4001;
812
811
  mosaicDefinition: MosaicDefinition;
813
812
  creationFeeSink?: string;
814
813
  creationFee?: number;
815
814
  };
816
- declare type NEMSupplyChangeTransaction = TransactionCommon & {
815
+ type NEMSupplyChangeTransaction = TransactionCommon & {
817
816
  type: 0x4002;
818
817
  mosaicId: MosaicID;
819
818
  supplyType: number;
820
819
  delta?: number;
821
820
  };
822
- declare type Transaction = NEMTransferTransaction | NEMImportanceTransaction | NEMAggregateModificationTransaction | NEMProvisionNamespaceTransaction | NEMMosaicCreationTransaction | NEMSupplyChangeTransaction;
823
- declare type NEMMultisigTransaction = TransactionCommon & {
821
+ type Transaction = NEMTransferTransaction | NEMImportanceTransaction | NEMAggregateModificationTransaction | NEMProvisionNamespaceTransaction | NEMMosaicCreationTransaction | NEMSupplyChangeTransaction;
822
+ type NEMMultisigTransaction = TransactionCommon & {
824
823
  type: 0x0102 | 0x1002 | 0x1004;
825
824
  otherTrans: Transaction;
826
825
  };
827
- declare type NEMTransaction = Transaction | NEMMultisigTransaction;
828
- declare type NEMSignTransactionParams = {
826
+ type NEMTransaction = Transaction | NEMMultisigTransaction;
827
+ type NEMSignTransactionParams = {
829
828
  path: string | number[];
830
829
  transaction: NEMTransaction;
831
830
  };
832
831
  declare function nemSignTransaction(connectId: string, deviceId: string, params: CommonParams & NEMSignTransactionParams): Response<NEMSignedTx>;
833
832
 
834
- declare type SolanaAddress = {
833
+ type SolanaAddress = {
835
834
  path: string;
836
835
  } & SolanaAddress$1;
837
- declare type SolanaGetAddressParams = {
836
+ type SolanaGetAddressParams = {
838
837
  path: string | number[];
839
838
  showOnOneKey?: boolean;
840
839
  };
@@ -843,10 +842,10 @@ declare function solGetAddress(connectId: string, deviceId: string, params: Comm
843
842
  bundle?: SolanaGetAddressParams[];
844
843
  }): Response<Array<SolanaAddress>>;
845
844
 
846
- declare type SolanaSignedTx = {
845
+ type SolanaSignedTx = {
847
846
  path: string;
848
847
  } & SolanaSignedTx$1;
849
- declare type SolanaSignTransactionParams = {
848
+ type SolanaSignTransactionParams = {
850
849
  path: string | number[];
851
850
  rawTx?: string;
852
851
  };
@@ -855,10 +854,10 @@ declare function solSignTransaction(connectId: string, deviceId: string, params:
855
854
  bundle?: SolanaSignTransactionParams[];
856
855
  }): Response<Array<SolanaSignedTx>>;
857
856
 
858
- declare type StellarAddress = {
857
+ type StellarAddress = {
859
858
  path: string;
860
859
  } & StellarAddress$1;
861
- declare type StellarGetAddressParams = {
860
+ type StellarGetAddressParams = {
862
861
  path: string | number[];
863
862
  showOnOneKey?: boolean;
864
863
  };
@@ -867,25 +866,25 @@ declare function stellarGetAddress(connectId: string, deviceId: string, params:
867
866
  bundle?: StellarGetAddressParams[];
868
867
  }): Response<Array<StellarAddress>>;
869
868
 
870
- declare type StellarAsset = {
869
+ type StellarAsset = {
871
870
  type: 0 | 1 | 2;
872
871
  code: string;
873
872
  issuer?: string;
874
873
  };
875
- declare type StellarCreateAccountOperation = {
874
+ type StellarCreateAccountOperation = {
876
875
  type: 'createAccount';
877
876
  source?: string;
878
877
  destination: string;
879
878
  startingBalance: string;
880
879
  };
881
- declare type StellarPaymentOperation = {
880
+ type StellarPaymentOperation = {
882
881
  type: 'payment';
883
882
  source?: string;
884
883
  destination: string;
885
884
  asset?: StellarAsset | typeof undefined;
886
885
  amount: string;
887
886
  };
888
- declare type StellarPathPaymentOperation = {
887
+ type StellarPathPaymentOperation = {
889
888
  type: 'pathPayment';
890
889
  source?: string;
891
890
  sendAsset: StellarAsset;
@@ -895,7 +894,7 @@ declare type StellarPathPaymentOperation = {
895
894
  destAmount: string;
896
895
  path?: StellarAsset[];
897
896
  };
898
- declare type StellarPassiveOfferOperation = {
897
+ type StellarPassiveOfferOperation = {
899
898
  type: 'createPassiveOffer';
900
899
  source?: string;
901
900
  buying: StellarAsset;
@@ -906,7 +905,7 @@ declare type StellarPassiveOfferOperation = {
906
905
  d: number;
907
906
  };
908
907
  };
909
- declare type StellarManageOfferOperation = {
908
+ type StellarManageOfferOperation = {
910
909
  type: 'manageOffer';
911
910
  source?: string;
912
911
  buying: StellarAsset;
@@ -918,7 +917,7 @@ declare type StellarManageOfferOperation = {
918
917
  d: number;
919
918
  };
920
919
  };
921
- declare type StellarSetOptionsOperation = {
920
+ type StellarSetOptionsOperation = {
922
921
  type: 'setOptions';
923
922
  source?: string;
924
923
  signer?: {
@@ -935,13 +934,13 @@ declare type StellarSetOptionsOperation = {
935
934
  highThreshold?: number | string;
936
935
  homeDomain?: string;
937
936
  };
938
- declare type StellarChangeTrustOperation = {
937
+ type StellarChangeTrustOperation = {
939
938
  type: 'changeTrust';
940
939
  source?: string;
941
940
  line: StellarAsset;
942
941
  limit?: string;
943
942
  };
944
- declare type StellarAllowTrustOperation = {
943
+ type StellarAllowTrustOperation = {
945
944
  type: 'allowTrust';
946
945
  source?: string;
947
946
  trustor: string;
@@ -949,28 +948,28 @@ declare type StellarAllowTrustOperation = {
949
948
  assetType: number;
950
949
  authorize?: boolean | typeof undefined;
951
950
  };
952
- declare type StellarAccountMergeOperation = {
951
+ type StellarAccountMergeOperation = {
953
952
  type: 'accountMerge';
954
953
  source?: string;
955
954
  destination: string;
956
955
  };
957
- declare type StellarManageDataOperation = {
956
+ type StellarManageDataOperation = {
958
957
  type: 'manageData';
959
958
  source?: string;
960
959
  name: string;
961
960
  value?: Buffer | string;
962
961
  };
963
- declare type StellarBumpSequenceOperation = {
962
+ type StellarBumpSequenceOperation = {
964
963
  type: 'bumpSequence';
965
964
  source?: string;
966
965
  bumpTo: string;
967
966
  };
968
- declare type StellarInflationOperation = {
967
+ type StellarInflationOperation = {
969
968
  type: 'inflation';
970
969
  source?: string;
971
970
  };
972
- declare type StellarOperation = StellarCreateAccountOperation | StellarPaymentOperation | StellarPathPaymentOperation | StellarPassiveOfferOperation | StellarManageOfferOperation | StellarSetOptionsOperation | StellarChangeTrustOperation | StellarAllowTrustOperation | StellarAccountMergeOperation | StellarInflationOperation | StellarManageDataOperation | StellarBumpSequenceOperation;
973
- declare type StellarTransaction = {
971
+ type StellarOperation = StellarCreateAccountOperation | StellarPaymentOperation | StellarPathPaymentOperation | StellarPassiveOfferOperation | StellarManageOfferOperation | StellarSetOptionsOperation | StellarChangeTrustOperation | StellarAllowTrustOperation | StellarAccountMergeOperation | StellarInflationOperation | StellarManageDataOperation | StellarBumpSequenceOperation;
972
+ type StellarTransaction = {
974
973
  source: string;
975
974
  fee: number;
976
975
  sequence: string | number;
@@ -986,17 +985,17 @@ declare type StellarTransaction = {
986
985
  };
987
986
  operations: StellarOperation[];
988
987
  };
989
- declare type StellarSignTransactionParams = {
988
+ type StellarSignTransactionParams = {
990
989
  path: string | number[];
991
990
  networkPassphrase: string;
992
991
  transaction: StellarTransaction;
993
992
  };
994
993
  declare function stellarSignTransaction(connectId: string, deviceId: string, params: CommonParams & StellarSignTransactionParams): Response<StellarSignedTx>;
995
994
 
996
- declare type TronAddress = {
995
+ type TronAddress = {
997
996
  path: string;
998
997
  } & TronAddress$1;
999
- declare type TronGetAddressParams = {
998
+ type TronGetAddressParams = {
1000
999
  path: string | number[];
1001
1000
  showOnOneKey?: boolean;
1002
1001
  };
@@ -1005,41 +1004,41 @@ declare function tronGetAddress(connectId: string, deviceId: string, params: Com
1005
1004
  bundle?: TronGetAddressParams[];
1006
1005
  }): Response<Array<TronAddress>>;
1007
1006
 
1008
- declare type TronTransferContract = {
1007
+ type TronTransferContract = {
1009
1008
  toAddress?: string;
1010
1009
  amount?: UintType;
1011
1010
  };
1012
- declare type TronTriggerSmartContract = {
1011
+ type TronTriggerSmartContract = {
1013
1012
  contractAddress?: string;
1014
1013
  callValue?: number;
1015
1014
  data?: string;
1016
1015
  callTokenValue?: number;
1017
1016
  assetId?: number;
1018
1017
  };
1019
- declare type TronFreezeBalanceV2Contract = {
1018
+ type TronFreezeBalanceV2Contract = {
1020
1019
  frozenBalance?: number;
1021
1020
  resource?: TronResourceCode;
1022
1021
  };
1023
- declare type TronUnfreezeBalanceV2Contract = {
1022
+ type TronUnfreezeBalanceV2Contract = {
1024
1023
  resource?: TronResourceCode;
1025
1024
  unfreezeBalance?: number;
1026
1025
  };
1027
- declare type TronDelegateResourceContract = {
1026
+ type TronDelegateResourceContract = {
1028
1027
  resource?: TronResourceCode;
1029
1028
  balance?: number;
1030
1029
  receiverAddress?: string;
1031
1030
  lock?: boolean;
1032
1031
  };
1033
- declare type TronUnDelegateResourceContract = {
1032
+ type TronUnDelegateResourceContract = {
1034
1033
  resource?: TronResourceCode;
1035
1034
  balance?: number;
1036
1035
  receiverAddress?: string;
1037
1036
  };
1038
- declare type TronWithdrawBalanceContract = {
1037
+ type TronWithdrawBalanceContract = {
1039
1038
  ownerAddress?: string;
1040
1039
  };
1041
- declare type TronWithdrawExpireUnfreezeContract = undefined;
1042
- declare type TronTransactionContract = {
1040
+ type TronWithdrawExpireUnfreezeContract = undefined;
1041
+ type TronTransactionContract = {
1043
1042
  transferContract?: TronTransferContract;
1044
1043
  triggerSmartContract?: TronTriggerSmartContract;
1045
1044
  freezeBalanceV2Contract?: TronFreezeBalanceV2Contract;
@@ -1049,7 +1048,7 @@ declare type TronTransactionContract = {
1049
1048
  withdrawBalanceContract?: TronWithdrawBalanceContract;
1050
1049
  withdrawExpireUnfreezeContract?: TronWithdrawExpireUnfreezeContract;
1051
1050
  };
1052
- declare type TronTransaction = {
1051
+ type TronTransaction = {
1053
1052
  refBlockBytes: string;
1054
1053
  refBlockHash: string;
1055
1054
  expiration: number;
@@ -1058,22 +1057,22 @@ declare type TronTransaction = {
1058
1057
  timestamp: number;
1059
1058
  feeLimit?: number;
1060
1059
  };
1061
- declare type TronSignTransactionParams = {
1060
+ type TronSignTransactionParams = {
1062
1061
  path: string | number[];
1063
1062
  transaction: TronTransaction;
1064
1063
  };
1065
1064
  declare function tronSignTransaction(connectId: string, deviceId: string, params: CommonParams & TronSignTransactionParams): Response<TronSignedTx>;
1066
1065
 
1067
- declare type TronSignMessageParams = {
1066
+ type TronSignMessageParams = {
1068
1067
  path: string | number[];
1069
1068
  messageHex: string;
1070
1069
  };
1071
1070
  declare function tronSignMessage(connectId: string, deviceId: string, params: CommonParams & TronSignMessageParams): Response<TronMessageSignature>;
1072
1071
 
1073
- declare type ConfluxAddress = {
1072
+ type ConfluxAddress = {
1074
1073
  path: string;
1075
1074
  } & ConfluxAddress$1;
1076
- declare type ConfluxGetAddressParams = {
1075
+ type ConfluxGetAddressParams = {
1077
1076
  path: string | number[];
1078
1077
  chainId?: number;
1079
1078
  showOnOneKey?: boolean;
@@ -1083,25 +1082,25 @@ declare function confluxGetAddress(connectId: string, deviceId: string, params:
1083
1082
  bundle?: ConfluxGetAddressParams[];
1084
1083
  }): Response<Array<ConfluxAddress>>;
1085
1084
 
1086
- declare type ConfluxSignMessageParams = {
1085
+ type ConfluxSignMessageParams = {
1087
1086
  path: string | number[];
1088
1087
  messageHex: string;
1089
1088
  };
1090
1089
  declare function confluxSignMessage(connectId: string, deviceId: string, params: CommonParams & ConfluxSignMessageParams): Response<ConfluxMessageSignature>;
1091
1090
 
1092
- declare type ConfluxSignMessageCIP23Params = {
1091
+ type ConfluxSignMessageCIP23Params = {
1093
1092
  path: string | number[];
1094
1093
  domainHash: string;
1095
1094
  messageHash: string;
1096
1095
  };
1097
1096
  declare function confluxSignMessageCIP23(connectId: string, deviceId: string, params: CommonParams & ConfluxSignMessageCIP23Params): Response<ConfluxMessageSignature>;
1098
1097
 
1099
- declare type ConfluxSignedTx = {
1098
+ type ConfluxSignedTx = {
1100
1099
  v: string;
1101
1100
  r: string;
1102
1101
  s: string;
1103
1102
  };
1104
- declare type ConfluxTransaction = {
1103
+ type ConfluxTransaction = {
1105
1104
  to: string;
1106
1105
  value: string;
1107
1106
  gasLimit: string;
@@ -1114,16 +1113,16 @@ declare type ConfluxTransaction = {
1114
1113
  data_initial_chunk?: string;
1115
1114
  data_length?: string;
1116
1115
  };
1117
- declare type ConfluxSignTransactionParams = {
1116
+ type ConfluxSignTransactionParams = {
1118
1117
  path: string | number[];
1119
1118
  transaction: ConfluxTransaction;
1120
1119
  };
1121
1120
  declare function confluxSignTransaction(connectId: string, deviceId: string, params: CommonParams & ConfluxSignTransactionParams): Response<ConfluxSignedTx>;
1122
1121
 
1123
- declare type NearAddress = {
1122
+ type NearAddress = {
1124
1123
  path: string;
1125
1124
  } & NearAddress$1;
1126
- declare type NearGetAddressParams = {
1125
+ type NearGetAddressParams = {
1127
1126
  path: string | number[];
1128
1127
  showOnOneKey?: boolean;
1129
1128
  };
@@ -1132,17 +1131,17 @@ declare function nearGetAddress(connectId: string, deviceId: string, params: Com
1132
1131
  bundle?: NearGetAddressParams[];
1133
1132
  }): Response<Array<NearAddress>>;
1134
1133
 
1135
- declare type NearSignTransactionParams = {
1134
+ type NearSignTransactionParams = {
1136
1135
  path: string | number[];
1137
1136
  rawTx: string;
1138
1137
  };
1139
1138
  declare function nearSignTransaction(connectId: string, deviceId: string, params: CommonParams & NearSignTransactionParams): Response<NearSignedTx>;
1140
1139
 
1141
- declare type AptosAddress = {
1140
+ type AptosAddress = {
1142
1141
  path: string;
1143
1142
  publicKey?: string;
1144
1143
  } & AptosAddress$1;
1145
- declare type AptosGetAddressParams = {
1144
+ type AptosGetAddressParams = {
1146
1145
  path: string | number[];
1147
1146
  showOnOneKey?: boolean;
1148
1147
  };
@@ -1151,11 +1150,11 @@ declare function aptosGetAddress(connectId: string, deviceId: string, params: Co
1151
1150
  bundle?: AptosGetAddressParams[];
1152
1151
  }): Response<Array<AptosAddress>>;
1153
1152
 
1154
- declare type AptosPublicKey = {
1153
+ type AptosPublicKey = {
1155
1154
  path: string;
1156
1155
  publicKey: string;
1157
1156
  };
1158
- declare type AptosGetPublicKeyParams = {
1157
+ type AptosGetPublicKeyParams = {
1159
1158
  path: string | number[];
1160
1159
  showOnOneKey?: boolean;
1161
1160
  };
@@ -1164,7 +1163,7 @@ declare function aptosGetPublicKey(connectId: string, deviceId: string, params:
1164
1163
  bundle?: AptosGetPublicKeyParams[];
1165
1164
  }): Response<Array<AptosPublicKey>>;
1166
1165
 
1167
- declare type AptosMessageSignature = {
1166
+ type AptosMessageSignature = {
1168
1167
  path: string;
1169
1168
  fullMessage: string;
1170
1169
  } & AptosMessageSignature$1;
@@ -1175,25 +1174,25 @@ declare type AptosMessagePayload = {
1175
1174
  nonce: string;
1176
1175
  message: string;
1177
1176
  };
1178
- declare type AptosSignMessageParams = {
1177
+ type AptosSignMessageParams = {
1179
1178
  path: string | number[];
1180
1179
  payload: AptosMessagePayload;
1181
1180
  };
1182
1181
  declare function aptosSignMessage(connectId: string, deviceId: string, params: CommonParams & AptosSignMessageParams): Response<AptosMessageSignature>;
1183
1182
 
1184
- declare type AptosSignedTx = {
1183
+ type AptosSignedTx = {
1185
1184
  path: string;
1186
1185
  } & AptosSignedTx$1;
1187
- declare type AptosSignTransactionParams = {
1186
+ type AptosSignTransactionParams = {
1188
1187
  path: string | number[];
1189
1188
  rawTx?: string;
1190
1189
  };
1191
1190
  declare function aptosSignTransaction(connectId: string, deviceId: string, params: CommonParams & AptosSignTransactionParams): Response<AptosSignedTx>;
1192
1191
 
1193
- declare type AlgoAddress = {
1192
+ type AlgoAddress = {
1194
1193
  path: string;
1195
1194
  } & AlgorandAddress;
1196
- declare type AlgoGetAddressParams = {
1195
+ type AlgoGetAddressParams = {
1197
1196
  path: string | number[];
1198
1197
  showOnOneKey?: boolean;
1199
1198
  };
@@ -1202,19 +1201,19 @@ declare function algoGetAddress(connectId: string, deviceId: string, params: Com
1202
1201
  bundle?: AlgoGetAddressParams[];
1203
1202
  }): Response<Array<AlgoAddress>>;
1204
1203
 
1205
- declare type AlgoSignedTx = {
1204
+ type AlgoSignedTx = {
1206
1205
  path: string;
1207
1206
  } & AlgorandSignedTx;
1208
- declare type AlgoSignTransactionParams = {
1207
+ type AlgoSignTransactionParams = {
1209
1208
  path: string | number[];
1210
1209
  rawTx?: string;
1211
1210
  };
1212
1211
  declare function algoSignTransaction(connectId: string, deviceId: string, params: CommonParams & AlgoSignTransactionParams): Response<AlgoSignedTx>;
1213
1212
 
1214
- declare type CosmosAddress = {
1213
+ type CosmosAddress = {
1215
1214
  path: string;
1216
1215
  } & CosmosAddress$1;
1217
- declare type CosmosGetAddressParams = {
1216
+ type CosmosGetAddressParams = {
1218
1217
  path: string | number[];
1219
1218
  hrp?: string;
1220
1219
  showOnOneKey?: boolean;
@@ -1224,11 +1223,11 @@ declare function cosmosGetAddress(connectId: string, deviceId: string, params: C
1224
1223
  bundle?: CosmosGetAddressParams[];
1225
1224
  }): Response<Array<CosmosAddress>>;
1226
1225
 
1227
- declare type CosmosPublicKey = {
1226
+ type CosmosPublicKey = {
1228
1227
  path: string;
1229
1228
  publicKey: string;
1230
1229
  };
1231
- declare type CosmosGetPublicKeyParams = {
1230
+ type CosmosGetPublicKeyParams = {
1232
1231
  path: string | number[];
1233
1232
  curve?: string;
1234
1233
  showOnOneKey?: boolean;
@@ -1238,21 +1237,21 @@ declare function cosmosGetPublicKey(connectId: string, deviceId: string, params:
1238
1237
  bundle?: CosmosGetPublicKeyParams[];
1239
1238
  }): Response<Array<CosmosPublicKey>>;
1240
1239
 
1241
- declare type CosmosSignedTx = {
1240
+ type CosmosSignedTx = {
1242
1241
  path: string;
1243
1242
  } & CosmosSignedTx$1;
1244
- declare type CosmosSignTransactionParams = {
1243
+ type CosmosSignTransactionParams = {
1245
1244
  path: string | number[];
1246
1245
  rawTx?: string;
1247
1246
  };
1248
1247
  declare function cosmosSignTransaction(connectId: string, deviceId: string, params: CommonParams & CosmosSignTransactionParams): Response<CosmosSignedTx>;
1249
1248
 
1250
- declare type XrpAddress = {
1249
+ type XrpAddress = {
1251
1250
  path: string;
1252
1251
  publicKey?: string;
1253
1252
  address: string;
1254
1253
  };
1255
- declare type XrpGetAddressParams = {
1254
+ type XrpGetAddressParams = {
1256
1255
  path: string | number[];
1257
1256
  showOnOneKey?: boolean;
1258
1257
  };
@@ -1261,16 +1260,16 @@ declare function xrpGetAddress(connectId: string, deviceId: string, params: Comm
1261
1260
  bundle?: XrpGetAddressParams[];
1262
1261
  }): Response<XrpAddress[]>;
1263
1262
 
1264
- declare type XrpSignTransactionResponse = {
1263
+ type XrpSignTransactionResponse = {
1265
1264
  serializedTx: string;
1266
1265
  signature: string;
1267
1266
  };
1268
- declare type XrpPayment = {
1267
+ type XrpPayment = {
1269
1268
  amount: string;
1270
1269
  destination: string;
1271
1270
  destinationTag?: number;
1272
1271
  };
1273
- declare type XrpTransaction = {
1272
+ type XrpTransaction = {
1274
1273
  fee: string;
1275
1274
  flags?: number;
1276
1275
  sequence: number;
@@ -1279,11 +1278,11 @@ declare type XrpTransaction = {
1279
1278
  };
1280
1279
  declare function xrpSignTransaction(connectId: string, deviceId: string, params: CommonParams & XrpTransaction): Response<XrpSignTransactionResponse>;
1281
1280
 
1282
- declare type SuiAddress = {
1281
+ type SuiAddress = {
1283
1282
  path: string;
1284
1283
  publicKey?: string;
1285
1284
  } & SuiAddress$1;
1286
- declare type SuiGetAddressParams = {
1285
+ type SuiGetAddressParams = {
1287
1286
  path: string | number[];
1288
1287
  showOnOneKey?: boolean;
1289
1288
  };
@@ -1292,11 +1291,11 @@ declare function suiGetAddress(connectId: string, deviceId: string, params: Comm
1292
1291
  bundle?: SuiGetAddressParams[];
1293
1292
  }): Response<Array<SuiAddress>>;
1294
1293
 
1295
- declare type SuiPublicKey = {
1294
+ type SuiPublicKey = {
1296
1295
  path: string;
1297
1296
  publicKey: string;
1298
1297
  };
1299
- declare type SuiGetPublicKeyParams = {
1298
+ type SuiGetPublicKeyParams = {
1300
1299
  path: string | number[];
1301
1300
  showOnOneKey?: boolean;
1302
1301
  };
@@ -1305,16 +1304,16 @@ declare function suiGetPublicKey(connectId: string, deviceId: string, params: Co
1305
1304
  bundle?: SuiGetPublicKeyParams[];
1306
1305
  }): Response<Array<SuiPublicKey>>;
1307
1306
 
1308
- declare type SuiSignMessageParams = {
1307
+ type SuiSignMessageParams = {
1309
1308
  path: string | number[];
1310
1309
  messageHex: string;
1311
1310
  };
1312
1311
  declare function suiSignMessage(connectId: string, deviceId: string, params: CommonParams & SuiSignMessageParams): Response<SuiMessageSignature>;
1313
1312
 
1314
- declare type SuiSignedTx = {
1313
+ type SuiSignedTx = {
1315
1314
  path: string;
1316
1315
  } & AptosSignedTx$1;
1317
- declare type SuiSignTransactionParams = {
1316
+ type SuiSignTransactionParams = {
1318
1317
  path: string | number[];
1319
1318
  rawTx?: string;
1320
1319
  };
@@ -1386,7 +1385,7 @@ interface CardanoInput {
1386
1385
  prev_hash: string;
1387
1386
  prev_index: number;
1388
1387
  }
1389
- declare type CardanoOutput = ({
1388
+ type CardanoOutput = ({
1390
1389
  addressParameters: CardanoAddressParameters;
1391
1390
  } | {
1392
1391
  address: string;
@@ -1404,7 +1403,7 @@ interface CardanoWithdrawal {
1404
1403
  scriptHash?: string;
1405
1404
  keyHash?: string;
1406
1405
  }
1407
- declare type CardanoMint = CardanoAssetGroup[];
1406
+ type CardanoMint = CardanoAssetGroup[];
1408
1407
  interface CardanoCollateralInput {
1409
1408
  path?: string | number[];
1410
1409
  prev_hash: string;
@@ -1475,7 +1474,7 @@ interface CardanoSignedTxData {
1475
1474
  auxiliaryDataSupplement?: CardanoAuxiliaryDataSupplement;
1476
1475
  }
1477
1476
 
1478
- declare type CardanoGetAddressMethodParams = {
1477
+ type CardanoGetAddressMethodParams = {
1479
1478
  addressParameters: CardanoAddressParameters;
1480
1479
  networkId: number;
1481
1480
  protocolMagic: number;
@@ -1484,7 +1483,7 @@ declare type CardanoGetAddressMethodParams = {
1484
1483
  isCheck?: boolean;
1485
1484
  showOnOneKey: boolean;
1486
1485
  };
1487
- declare type CardanoGetAddressParams = {
1486
+ type CardanoGetAddressParams = {
1488
1487
  address_parameters: CardanoAddressParametersType;
1489
1488
  network_id: number;
1490
1489
  protocol_magic: number;
@@ -1492,7 +1491,7 @@ declare type CardanoGetAddressParams = {
1492
1491
  address: string;
1493
1492
  show_display: boolean;
1494
1493
  };
1495
- declare type CardanoAddress = {
1494
+ type CardanoAddress = {
1496
1495
  addressParameters: CardanoAddressParameters;
1497
1496
  protocolMagic: number;
1498
1497
  networkId: number;
@@ -1507,13 +1506,13 @@ declare function cardanoGetAddress(connectId: string, deviceId: string, params:
1507
1506
  bundle?: CardanoGetAddressMethodParams[];
1508
1507
  }): Response<CardanoAddress[]>;
1509
1508
 
1510
- declare type CardanoPublicKey = {
1509
+ type CardanoPublicKey = {
1511
1510
  path: number[];
1512
1511
  serializedPath: string;
1513
1512
  publicKey: string;
1514
1513
  node: Messages.HDNodeType;
1515
1514
  };
1516
- declare type CardanoPublicKeyMethodParams = {
1515
+ type CardanoPublicKeyMethodParams = {
1517
1516
  path: string | number[];
1518
1517
  derivationType?: number;
1519
1518
  showOnOneKey?: boolean;
@@ -1525,7 +1524,7 @@ declare function cardanoGetPublicKey(connectId: string, deviceId: string, params
1525
1524
 
1526
1525
  declare function cardanoSignTransaction(connectId: string, deviceId: string, params: CommonParams & CardanoSignTransaction): Response<CardanoSignedTxData>;
1527
1526
 
1528
- declare type CardanoSignMessageMethodParams = {
1527
+ type CardanoSignMessageMethodParams = {
1529
1528
  path: string;
1530
1529
  message: string;
1531
1530
  derivationType: number;
@@ -1533,10 +1532,10 @@ declare type CardanoSignMessageMethodParams = {
1533
1532
  };
1534
1533
  declare function cardanoSignMessage(connectId: string, deviceId: string, params: CommonParams & CardanoSignMessageMethodParams): Response<CardanoMessageSignature>;
1535
1534
 
1536
- declare type FilecoinAddress = {
1535
+ type FilecoinAddress = {
1537
1536
  path: string;
1538
1537
  } & FilecoinAddress$1;
1539
- declare type FilecoinGetAddressParams = {
1538
+ type FilecoinGetAddressParams = {
1540
1539
  path: string | number[];
1541
1540
  showOnOneKey?: boolean;
1542
1541
  isTestnet?: boolean;
@@ -1546,10 +1545,10 @@ declare function filecoinGetAddress(connectId: string, deviceId: string, params:
1546
1545
  bundle?: FilecoinGetAddressParams[];
1547
1546
  }): Response<Array<FilecoinAddress>>;
1548
1547
 
1549
- declare type FilecoinSignedTx = {
1548
+ type FilecoinSignedTx = {
1550
1549
  path: string;
1551
1550
  } & FilecoinSignedTx$1;
1552
- declare type FilecoinSignTransactionParams = {
1551
+ type FilecoinSignTransactionParams = {
1553
1552
  path: string | number[];
1554
1553
  rawTx?: string;
1555
1554
  isTestnet?: boolean;
@@ -1559,11 +1558,11 @@ declare function filecoinSignTransaction(connectId: string, deviceId: string, pa
1559
1558
  bundle?: FilecoinSignTransactionParams[];
1560
1559
  }): Response<Array<FilecoinSignedTx>>;
1561
1560
 
1562
- declare type PolkadotAddress = {
1561
+ type PolkadotAddress = {
1563
1562
  path: string;
1564
1563
  publicKey: string;
1565
1564
  } & PolkadotAddress$1;
1566
- declare type PolkadotGetAddressParams = {
1565
+ type PolkadotGetAddressParams = {
1567
1566
  path: string | number[];
1568
1567
  prefix: number;
1569
1568
  network: string;
@@ -1574,20 +1573,20 @@ declare function polkadotGetAddress(connectId: string, deviceId: string, params:
1574
1573
  bundle?: PolkadotGetAddressParams[];
1575
1574
  }): Response<Array<PolkadotAddress>>;
1576
1575
 
1577
- declare type PolkadotSignedTx = {
1576
+ type PolkadotSignedTx = {
1578
1577
  path: string;
1579
1578
  } & PolkadotSignedTx$1;
1580
- declare type PolkadotSignTransactionParams = {
1579
+ type PolkadotSignTransactionParams = {
1581
1580
  path: string | number[];
1582
1581
  network: string;
1583
1582
  rawTx?: string;
1584
1583
  };
1585
1584
  declare function polkadotSignTransaction(connectId: string, deviceId: string, params: CommonParams & PolkadotSignTransactionParams): Response<PolkadotSignedTx>;
1586
1585
 
1587
- declare type KaspaAddress = {
1586
+ type KaspaAddress = {
1588
1587
  path: string;
1589
1588
  } & KaspaAddress$1;
1590
- declare type KaspaGetAddressParams = {
1589
+ type KaspaGetAddressParams = {
1591
1590
  path: string | number[];
1592
1591
  prefix?: string;
1593
1592
  scheme?: string;
@@ -1606,11 +1605,11 @@ declare enum SignatureType {
1606
1605
  SIGHASH_ANYONECANPAY = 128
1607
1606
  }
1608
1607
 
1609
- declare type KaspaSignature = {
1608
+ type KaspaSignature = {
1610
1609
  index: number;
1611
1610
  signature: string;
1612
1611
  };
1613
- declare type KaspaSignInputParams = {
1612
+ type KaspaSignInputParams = {
1614
1613
  path: string | number[];
1615
1614
  prevTxId: string;
1616
1615
  outputIndex: number;
@@ -1621,12 +1620,12 @@ declare type KaspaSignInputParams = {
1621
1620
  };
1622
1621
  sigOpCount?: number;
1623
1622
  };
1624
- declare type KaspaSignOutputParams = {
1623
+ type KaspaSignOutputParams = {
1625
1624
  satoshis: number | string;
1626
1625
  script: string;
1627
1626
  scriptVersion: number;
1628
1627
  };
1629
- declare type KaspaSignTransactionParams = {
1628
+ type KaspaSignTransactionParams = {
1630
1629
  version: number;
1631
1630
  inputs: KaspaSignInputParams[];
1632
1631
  outputs: KaspaSignOutputParams[];
@@ -1639,12 +1638,12 @@ declare type KaspaSignTransactionParams = {
1639
1638
  };
1640
1639
  declare function kaspaSignTransaction(connectId: string, deviceId: string, params: CommonParams & KaspaSignTransactionParams): Response<KaspaSignature[]>;
1641
1640
 
1642
- declare type NexaAddress = {
1641
+ type NexaAddress = {
1643
1642
  path: string;
1644
1643
  pub: string;
1645
1644
  address: string;
1646
1645
  };
1647
- declare type NexaGetAddressParams = {
1646
+ type NexaGetAddressParams = {
1648
1647
  path: string | number[];
1649
1648
  prefix?: string;
1650
1649
  scheme?: string;
@@ -1655,26 +1654,26 @@ declare function nexaGetAddress(connectId: string, deviceId: string, params: Com
1655
1654
  bundle?: NexaGetAddressParams[];
1656
1655
  }): Response<Array<NexaAddress>>;
1657
1656
 
1658
- declare type NexaSignature = {
1657
+ type NexaSignature = {
1659
1658
  index: number;
1660
1659
  signature: string;
1661
1660
  };
1662
- declare type NexaSignInputParams = {
1661
+ type NexaSignInputParams = {
1663
1662
  path: string;
1664
1663
  message: string;
1665
1664
  prefix: string;
1666
1665
  };
1667
- declare type NexaSignOutputParams = {
1666
+ type NexaSignOutputParams = {
1668
1667
  satoshis: number | string;
1669
1668
  script: string;
1670
1669
  scriptVersion: number;
1671
1670
  };
1672
- declare type NexaSignTransactionParams = {
1671
+ type NexaSignTransactionParams = {
1673
1672
  inputs: NexaSignInputParams[];
1674
1673
  };
1675
1674
  declare function nexaSignTransaction(connectId: string, deviceId: string, params: CommonParams & NexaSignTransactionParams): Response<NexaSignature[]>;
1676
1675
 
1677
- declare type CoreApi = {
1676
+ type CoreApi = {
1678
1677
  init: typeof init$1;
1679
1678
  on: typeof on;
1680
1679
  off: typeof off;
@@ -1775,8 +1774,8 @@ declare type CoreApi = {
1775
1774
  nexaSignTransaction: typeof nexaSignTransaction;
1776
1775
  };
1777
1776
 
1778
- declare type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
1779
- declare type MessageFactoryFn<Group, Event> = UnionToIntersection<Event extends {
1777
+ type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
1778
+ type MessageFactoryFn<Group, Event> = UnionToIntersection<Event extends {
1780
1779
  type: string;
1781
1780
  } ? Event extends {
1782
1781
  payload: any;
@@ -1832,23 +1831,23 @@ interface DeviceButtonRequest {
1832
1831
  device: KnownDevice | null;
1833
1832
  };
1834
1833
  }
1835
- declare type DeviceFeaturesPayload = Features;
1834
+ type DeviceFeaturesPayload = Features;
1836
1835
  interface DeviceSendFeatures {
1837
1836
  type: typeof DEVICE.FEATURES;
1838
1837
  payload: DeviceFeaturesPayload;
1839
1838
  }
1840
- declare type DeviceSupportFeaturesPayload = SupportFeatures & {
1839
+ type DeviceSupportFeaturesPayload = SupportFeatures & {
1841
1840
  device: KnownDevice | null;
1842
1841
  };
1843
1842
  interface DeviceSendSupportFeatures {
1844
1843
  type: typeof DEVICE.SUPPORT_FEATURES;
1845
1844
  payload: DeviceSupportFeaturesPayload;
1846
1845
  }
1847
- declare type DeviceEvent = DeviceButtonRequest | DeviceSendFeatures | DeviceSendSupportFeatures | DeviceDisconnnectRequest | DeviceConnnectRequest;
1848
- declare type DeviceEventMessage = DeviceEvent & {
1846
+ type DeviceEvent = DeviceButtonRequest | DeviceSendFeatures | DeviceSendSupportFeatures | DeviceDisconnnectRequest | DeviceConnnectRequest;
1847
+ type DeviceEventMessage = DeviceEvent & {
1849
1848
  event: typeof DEVICE_EVENT;
1850
1849
  };
1851
- declare type DeviceEventListenerFn = (type: typeof DEVICE_EVENT, cb: (event: DeviceEventMessage) => void) => void;
1850
+ type DeviceEventListenerFn = (type: typeof DEVICE_EVENT, cb: (event: DeviceEventMessage) => void) => void;
1852
1851
  declare const createDeviceMessage: MessageFactoryFn<typeof DEVICE_EVENT, DeviceEvent>;
1853
1852
 
1854
1853
  declare const UI_EVENT = "UI_EVENT";
@@ -1871,7 +1870,7 @@ interface UiRequestWithoutPayload {
1871
1870
  type: typeof UI_REQUEST.CLOSE_UI_WINDOW | typeof UI_REQUEST.BLUETOOTH_PERMISSION | typeof UI_REQUEST.LOCATION_PERMISSION | typeof UI_REQUEST.LOCATION_SERVICE_PERMISSION;
1872
1871
  payload?: typeof undefined;
1873
1872
  }
1874
- declare type UiRequestDeviceAction = {
1873
+ type UiRequestDeviceAction = {
1875
1874
  type: typeof UI_REQUEST.REQUEST_PIN;
1876
1875
  payload: {
1877
1876
  device: Device$1;
@@ -1922,8 +1921,8 @@ interface PreviousAddressResult {
1922
1921
  };
1923
1922
  };
1924
1923
  }
1925
- declare type UiEvent = UiRequestWithoutPayload | UiRequestDeviceAction | UiRequestButton | UiRequestPassphraseOnDevice | UiRequestPassphrase | FirmwareProgress | FirmwareTip | PreviousAddressResult;
1926
- declare type UiEventMessage = UiEvent & {
1924
+ type UiEvent = UiRequestWithoutPayload | UiRequestDeviceAction | UiRequestButton | UiRequestPassphraseOnDevice | UiRequestPassphrase | FirmwareProgress | FirmwareTip | PreviousAddressResult;
1925
+ type UiEventMessage = UiEvent & {
1927
1926
  event: typeof UI_EVENT;
1928
1927
  };
1929
1928
  declare const createUiMessage: MessageFactoryFn<typeof UI_EVENT, UiEvent>;
@@ -1944,34 +1943,34 @@ interface IFrameBridge {
1944
1943
  type: typeof IFRAME.INIT_BRIDGE;
1945
1944
  payload: unknown;
1946
1945
  }
1947
- declare type IFrameEvent = IFrameInit | IFrameBridge;
1948
- declare type IFrameEventMessage = IFrameEvent & {
1946
+ type IFrameEvent = IFrameInit | IFrameBridge;
1947
+ type IFrameEventMessage = IFrameEvent & {
1949
1948
  event: typeof UI_EVENT;
1950
1949
  };
1951
1950
  declare const createIFrameMessage: MessageFactoryFn<typeof UI_EVENT, IFrameEvent>;
1952
1951
 
1953
- declare type UnwrappedResponse<T> = T extends Promise<infer R> ? R extends {
1952
+ type UnwrappedResponse<T> = T extends Promise<infer R> ? R extends {
1954
1953
  success: true;
1955
1954
  payload: infer P;
1956
1955
  } ? P : never : void;
1957
- declare type OverloadedMethod<T, E extends Record<string, string>> = T extends {
1956
+ type OverloadedMethod<T, E extends Record<string, string>> = T extends {
1958
1957
  (params: infer P1): infer R1;
1959
1958
  (params: infer P2): infer R2;
1960
1959
  } ? ((params: P1 & E) => R1) | ((params: P2 & E) => R2) : T extends (...args: infer P) => infer R ? (params: E & P[0]) => R : never;
1961
- declare type UnwrappedMethod<T, M extends Record<string, string>> = T extends () => infer R ? (params: M & CommonParams) => R : OverloadedMethod<T, M>;
1962
- declare type IsMethodCallable<T> = T extends (...args: any[]) => infer R ? R extends Promise<{
1960
+ type UnwrappedMethod<T, M extends Record<string, string>> = T extends () => infer R ? (params: M & CommonParams) => R : OverloadedMethod<T, M>;
1961
+ type IsMethodCallable<T> = T extends (...args: any[]) => infer R ? R extends Promise<{
1963
1962
  success: boolean;
1964
1963
  }> ? R : never : never;
1965
- declare type CallApi = {
1964
+ type CallApi = {
1966
1965
  [K in keyof CoreApi]: IsMethodCallable<CoreApi[K]> extends never ? never : UnwrappedMethod<CoreApi[K], {
1967
1966
  method: K;
1968
1967
  }>;
1969
1968
  };
1970
- declare type CallMethodUnion = CallApi[keyof CallApi];
1971
- declare type CallMethodPayload = Parameters<CallMethodUnion>[0];
1972
- declare type CallMethodResponse<M extends keyof CallApi> = UnwrappedResponse<ReturnType<CallApi[M]>>;
1973
- declare type CallMethodAnyResponse = ReturnType<CallMethodUnion>;
1974
- declare type CallMethod = (params: CallMethodPayload) => Promise<any>;
1969
+ type CallMethodUnion = CallApi[keyof CallApi];
1970
+ type CallMethodPayload = Parameters<CallMethodUnion>[0];
1971
+ type CallMethodResponse<M extends keyof CallApi> = UnwrappedResponse<ReturnType<CallApi[M]>>;
1972
+ type CallMethodAnyResponse = ReturnType<CallMethodUnion>;
1973
+ type CallMethod = (params: CallMethodPayload) => Promise<any>;
1975
1974
  interface IFrameCallMessage {
1976
1975
  event: typeof IFRAME.CALL;
1977
1976
  type: typeof IFRAME.CALL;
@@ -1993,7 +1992,7 @@ interface MethodResponseMessage {
1993
1992
  payload: any;
1994
1993
  }
1995
1994
  declare const createResponseMessage: (id: number, success: boolean, payload: any) => MethodResponseMessage;
1996
- declare type CallMethodKeys = keyof CoreApi;
1995
+ type CallMethodKeys = keyof CoreApi;
1997
1996
 
1998
1997
  declare const UI_RESPONSE: {
1999
1998
  readonly RECEIVE_PIN: "ui-receive_pin";
@@ -2011,8 +2010,8 @@ interface UiResponsePassphrase {
2011
2010
  save?: boolean;
2012
2011
  };
2013
2012
  }
2014
- declare type UiResponseEvent = UiResponsePin | UiResponsePassphrase;
2015
- declare type UiResponseMessage = UiResponseEvent & {
2013
+ type UiResponseEvent = UiResponsePin | UiResponsePassphrase;
2014
+ type UiResponseMessage = UiResponseEvent & {
2016
2015
  event: typeof UI_EVENT;
2017
2016
  };
2018
2017
  declare const createUiResponse: MessageFactoryFn<typeof UI_EVENT, UiResponseEvent>;
@@ -2025,8 +2024,8 @@ interface LogOutput {
2025
2024
  type: typeof LOG.OUTPUT;
2026
2025
  payload: any;
2027
2026
  }
2028
- declare type LogEvent = LogOutput;
2029
- declare type LogEventMessage = LogEvent & {
2027
+ type LogEvent = LogOutput;
2028
+ type LogEventMessage = LogEvent & {
2030
2029
  event: typeof LOG_EVENT;
2031
2030
  };
2032
2031
  declare const createLogMessage: MessageFactoryFn<typeof LOG_EVENT, LogEvent>;
@@ -2053,38 +2052,38 @@ declare const FIRMWARE: {
2053
2052
  readonly RELEASE_INFO: "firmware-release-info";
2054
2053
  readonly BLE_RELEASE_INFO: "ble-firmware-release-info";
2055
2054
  };
2056
- declare type ReleaseInfoPayload = ReturnType<typeof getFirmwareReleaseInfo> & {
2055
+ type ReleaseInfoPayload = ReturnType<typeof getFirmwareReleaseInfo> & {
2057
2056
  features: Features;
2058
2057
  };
2059
2058
  interface ReleaseInfoEvent {
2060
2059
  type: typeof FIRMWARE.RELEASE_INFO;
2061
2060
  payload: ReleaseInfoPayload;
2062
2061
  }
2063
- declare type BleReleaseInfoPayload = ReturnType<typeof getBleFirmwareReleaseInfo> & {
2062
+ type BleReleaseInfoPayload = ReturnType<typeof getBleFirmwareReleaseInfo> & {
2064
2063
  features: Features;
2065
2064
  };
2066
2065
  interface BleReleaseInfoEvent {
2067
2066
  type: typeof FIRMWARE.BLE_RELEASE_INFO;
2068
2067
  payload: BleReleaseInfoPayload;
2069
2068
  }
2070
- declare type FirmwareEvent = ReleaseInfoEvent | BleReleaseInfoEvent;
2071
- declare type FirmwareMessage = FirmwareEvent & {
2069
+ type FirmwareEvent = ReleaseInfoEvent | BleReleaseInfoEvent;
2070
+ type FirmwareMessage = FirmwareEvent & {
2072
2071
  event: typeof FIRMWARE_EVENT;
2073
2072
  };
2074
2073
  declare const createFirmwareMessage: MessageFactoryFn<typeof FIRMWARE_EVENT, FirmwareEvent>;
2075
2074
 
2076
2075
  declare const CORE_EVENT = "CORE_EVENT";
2077
- declare type CoreMessage = {
2076
+ type CoreMessage = {
2078
2077
  id?: string;
2079
2078
  success?: true | false;
2080
2079
  } & (IFrameEventMessage | IFrameCallMessage | IFrameCancelMessage | UiResponseMessage | UiEventMessage | DeviceEventMessage | LogEventMessage | FirmwareMessage);
2081
- declare type PostMessageEvent = MessageEvent<any>;
2080
+ type PostMessageEvent = MessageEvent<any>;
2082
2081
  declare const parseMessage: (messageData: any) => CoreMessage;
2083
2082
  declare const createErrorMessage: (error: Error & {
2084
2083
  code?: string | number;
2085
2084
  }) => Unsuccessful;
2086
2085
 
2087
- declare type DeviceDescriptorDiff = {
2086
+ type DeviceDescriptorDiff = {
2088
2087
  didUpdate: boolean;
2089
2088
  connected: OneKeyDeviceInfo[];
2090
2089
  disconnected: OneKeyDeviceInfo[];
@@ -2112,17 +2111,17 @@ declare class DeviceConnector {
2112
2111
  _reportDevicesChange(): void;
2113
2112
  }
2114
2113
 
2115
- declare type MessageType = Messages.MessageType;
2116
- declare type MessageKey = keyof MessageType;
2117
- declare type TypedResponseMessage<T extends MessageKey> = {
2114
+ type MessageType = Messages.MessageType;
2115
+ type MessageKey = keyof MessageType;
2116
+ type TypedResponseMessage<T extends MessageKey> = {
2118
2117
  type: T;
2119
2118
  message: MessageType[T];
2120
2119
  };
2121
- declare type TypedCallResponseMap = {
2120
+ type TypedCallResponseMap = {
2122
2121
  [K in keyof MessageType]: TypedResponseMessage<K>;
2123
2122
  };
2124
- declare type DefaultMessageResponse = TypedCallResponseMap[keyof MessageType];
2125
- declare type PassphrasePromptResponse = {
2123
+ type DefaultMessageResponse = TypedCallResponseMap[keyof MessageType];
2124
+ type PassphrasePromptResponse = {
2126
2125
  passphrase?: string;
2127
2126
  passphraseOnDevice?: boolean;
2128
2127
  cache?: boolean;
@@ -2145,13 +2144,13 @@ declare class DeviceCommands {
2145
2144
  _promptPassphrase(): Promise<PassphrasePromptResponse>;
2146
2145
  }
2147
2146
 
2148
- declare type InitOptions = {
2147
+ type InitOptions = {
2149
2148
  initSession?: boolean;
2150
2149
  deviceId?: string;
2151
2150
  passphraseState?: string;
2152
2151
  deriveCardano?: boolean;
2153
2152
  };
2154
- declare type RunOptions = {
2153
+ type RunOptions = {
2155
2154
  keepSession?: boolean;
2156
2155
  } & InitOptions;
2157
2156
  interface DeviceEvents {
@@ -2218,11 +2217,11 @@ declare class Device extends EventEmitter$1 {
2218
2217
  checkPassphraseState(): Promise<string | false | undefined>;
2219
2218
  }
2220
2219
 
2221
- declare type UiPromiseResponse = UiResponseEvent | {
2220
+ type UiPromiseResponse = UiResponseEvent | {
2222
2221
  type: typeof DEVICE.DISCONNECT;
2223
2222
  payload?: undefined;
2224
2223
  };
2225
- declare type UiPromise<T extends UiPromiseResponse['type']> = Deferred<Extract<UiPromiseResponse, {
2224
+ type UiPromise<T extends UiPromiseResponse['type']> = Deferred<Extract<UiPromiseResponse, {
2226
2225
  type: T;
2227
2226
  }>, T, Device>;
2228
2227
 
@@ -2247,7 +2246,7 @@ declare class Core extends EventEmitter$1 {
2247
2246
  handleMessage(message: CoreMessage): Promise<any>;
2248
2247
  dispose(): void;
2249
2248
  }
2250
- declare const init: (settings: ConnectSettings, Transport: any, plugin?: LowlevelTransportSharedPlugin | undefined) => Promise<Core | undefined>;
2249
+ declare const init: (settings: ConnectSettings, Transport: any, plugin?: LowlevelTransportSharedPlugin) => Promise<Core | undefined>;
2251
2250
 
2252
2251
  declare const httpRequest: (url: string, type: string) => any;
2253
2252
  declare const getTimeStamp: () => number;
@@ -2260,8 +2259,8 @@ declare const versionCompare: (a: string | number[], b: string | number[]) => 0
2260
2259
 
2261
2260
  declare function patchFeatures(response: DefaultMessageResponse): TypedResponseMessage<"Address"> | 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<"CardanoGovernanceRegistrationDelegation"> | TypedResponseMessage<"CardanoGovernanceRegistrationParametersType"> | TypedResponseMessage<"IdentityType"> | TypedResponseMessage<"Path"> | 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<"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<"StellarAsset"> | TypedResponseMessage<"TezosRevealOp"> | TypedResponseMessage<"TezosTransactionOp"> | TypedResponseMessage<"TezosOriginationOp"> | TypedResponseMessage<"TezosDelegationOp"> | TypedResponseMessage<"TezosProposalOp"> | TypedResponseMessage<"TezosBallotOp"> | TypedResponseMessage<"TezosContractID"> | TypedResponseMessage<"TezosParametersManager"> | TypedResponseMessage<"TezosManagerTransfer"> | TypedResponseMessage<"TronContract"> | TypedResponseMessage<"TronTransferContract"> | TypedResponseMessage<"TronFreezeBalanceContract"> | TypedResponseMessage<"TronUnfreezeBalanceContract"> | TypedResponseMessage<"TronWithdrawBalanceContract"> | TypedResponseMessage<"TronTriggerSmartContract"> | TypedResponseMessage<"TronFreezeBalanceV2Contract"> | TypedResponseMessage<"TronUnfreezeBalanceV2Contract"> | TypedResponseMessage<"TronWithdrawExpireUnfreezeContract"> | TypedResponseMessage<"TronDelegateResourceContract"> | TypedResponseMessage<"TronUnDelegateResourceContract"> | TypedResponseMessage<"AlgorandGetAddress"> | TypedResponseMessage<"AlgorandAddress"> | TypedResponseMessage<"AlgorandSignTx"> | TypedResponseMessage<"AlgorandSignedTx"> | TypedResponseMessage<"AptosGetAddress"> | TypedResponseMessage<"AptosAddress"> | TypedResponseMessage<"AptosSignTx"> | TypedResponseMessage<"AptosSignedTx"> | TypedResponseMessage<"AptosSignMessage"> | TypedResponseMessage<"AptosMessageSignature"> | 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<"FirmwareErase"> | TypedResponseMessage<"FirmwareRequest"> | TypedResponseMessage<"FirmwareUpload"> | TypedResponseMessage<"SelfTest"> | TypedResponseMessage<"FirmwareErase_ex"> | TypedResponseMessage<"Reboot"> | TypedResponseMessage<"FirmwareUpdateEmmc"> | 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<"Success"> | 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<"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<"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<"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<"Initialize"> | TypedResponseMessage<"GetFeatures"> | TypedResponseMessage<"Features"> | 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<"ResourceRequest"> | TypedResponseMessage<"ResourceAck"> | TypedResponseMessage<"ResourceUpdate"> | TypedResponseMessage<"NFTWriteInfo"> | TypedResponseMessage<"NFTWriteData"> | TypedResponseMessage<"RebootToBootloader"> | TypedResponseMessage<"RebootToBoardloader"> | TypedResponseMessage<"ListResDir"> | TypedResponseMessage<"FileInfoList"> | TypedResponseMessage<"DeviceEraseSector"> | 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<"NexaGetAddress"> | TypedResponseMessage<"NexaAddress"> | TypedResponseMessage<"NexaSignTx"> | TypedResponseMessage<"NexaTxInputRequest"> | TypedResponseMessage<"NexaTxInputAck"> | TypedResponseMessage<"NexaSignedTx"> | TypedResponseMessage<"PolkadotGetAddress"> | TypedResponseMessage<"PolkadotAddress"> | TypedResponseMessage<"PolkadotSignTx"> | TypedResponseMessage<"PolkadotSignedTx"> | TypedResponseMessage<"RippleGetAddress"> | TypedResponseMessage<"RippleAddress"> | TypedResponseMessage<"RippleSignTx"> | TypedResponseMessage<"RippleSignedTx"> | TypedResponseMessage<"SolanaGetAddress"> | TypedResponseMessage<"SolanaAddress"> | TypedResponseMessage<"SolanaSignTx"> | TypedResponseMessage<"SolanaSignedTx"> | 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<"StellarSignedTx"> | TypedResponseMessage<"SuiGetAddress"> | TypedResponseMessage<"SuiAddress"> | TypedResponseMessage<"SuiSignTx"> | TypedResponseMessage<"SuiSignedTx"> | TypedResponseMessage<"SuiSignMessage"> | TypedResponseMessage<"SuiMessageSignature"> | TypedResponseMessage<"TezosGetAddress"> | TypedResponseMessage<"TezosAddress"> | TypedResponseMessage<"TezosGetPublicKey"> | TypedResponseMessage<"TezosPublicKey"> | TypedResponseMessage<"TezosSignTx"> | TypedResponseMessage<"TezosSignedTx"> | TypedResponseMessage<"TronGetAddress"> | TypedResponseMessage<"TronAddress"> | TypedResponseMessage<"TronSignTx"> | TypedResponseMessage<"TronSignedTx"> | TypedResponseMessage<"TronSignMessage"> | TypedResponseMessage<"TronMessageSignature"> | TypedResponseMessage<"facotry">;
2262
2261
 
2263
- declare type FirmwareField = 'firmware' | 'firmware-v2' | 'firmware-v4';
2264
- declare type MessageVersion = 'latest' | 'v1';
2262
+ type FirmwareField = 'firmware' | 'firmware-v2' | 'firmware-v4';
2263
+ type MessageVersion = 'latest' | 'v1';
2265
2264
  declare class DataManager {
2266
2265
  static deviceMap: DeviceTypeMap;
2267
2266
  static assets: AssetsMap | null;
@@ -2271,7 +2270,7 @@ declare class DataManager {
2271
2270
  };
2272
2271
  static lastCheckTimestamp: number;
2273
2272
  static getFirmwareStatus: (features: Features) => IDeviceFirmwareStatus;
2274
- static getSysResourcesLatestRelease: (features: Features, forcedUpdateRes?: boolean | undefined) => string | undefined;
2273
+ static getSysResourcesLatestRelease: (features: Features, forcedUpdateRes?: boolean) => string | undefined;
2275
2274
  static getSysFullResource: (features: Features) => string | undefined;
2276
2275
  static getBootloaderResource: (features: Features) => string | undefined;
2277
2276
  static getBootloaderTargetVersion: (features: Features) => IVersionArray | undefined;
@@ -2296,9 +2295,9 @@ declare class DataManager {
2296
2295
  static isBleConnect: (env: ConnectSettings['env']) => boolean;
2297
2296
  }
2298
2297
 
2299
- declare const getDeviceType: (features?: _onekeyfe_hd_transport.Features | undefined) => IDeviceType;
2300
- declare const getDeviceTypeByBleName: (name?: string | undefined) => IDeviceType | null;
2301
- declare const getDeviceTypeByDeviceId: (deviceId?: string | undefined) => IDeviceType;
2298
+ declare const getDeviceType: (features?: Features) => IDeviceType;
2299
+ declare const getDeviceTypeByBleName: (name?: string) => IDeviceType | null;
2300
+ declare const getDeviceTypeByDeviceId: (deviceId?: string) => IDeviceType;
2302
2301
  declare const getDeviceUUID: (features: Features) => string;
2303
2302
  declare const getDeviceLabel: (features: Features) => string;
2304
2303
  declare const supportInputPinOnSoftware: (features: Features) => SupportFeatureType;
@@ -2310,12 +2309,12 @@ declare const getFirmwareUpdateField: ({ features, updateType, targetVersion, }:
2310
2309
 
2311
2310
  declare const getHDPath: (path: string) => Array<number>;
2312
2311
  declare const getScriptType: (path: Array<number>) => InputScriptType;
2313
- declare const getOutputScriptType: (path?: number[] | undefined) => ChangeOutputScriptType;
2312
+ declare const getOutputScriptType: (path?: number[]) => ChangeOutputScriptType;
2314
2313
 
2315
2314
  declare function checkNeedUpdateBootForTouch(features: Features): boolean;
2316
2315
  declare function checkNeedUpdateBootForClassicAndMini(features: Features, willUpdateFirmware: string): boolean;
2317
2316
 
2318
- declare type LogMessage = {
2317
+ type LogMessage = {
2319
2318
  level: string;
2320
2319
  prefix: string;
2321
2320
  message: any[];
@@ -2332,7 +2331,7 @@ declare class Log {
2332
2331
  warn(...args: any[]): void;
2333
2332
  debug(...args: any[]): void;
2334
2333
  }
2335
- declare const enableLog: (enabled?: boolean | undefined) => void;
2334
+ declare const enableLog: (enabled?: boolean) => void;
2336
2335
  declare const getLog: () => LogMessage[];
2337
2336
  declare const setLoggerPostMessage: (postMessageFn: (message: CoreMessage) => void) => void;
2338
2337
  declare enum LoggerNames {
@@ -2367,7 +2366,7 @@ declare global {
2367
2366
  var ONEKEY_CONNECT_SRC: string;
2368
2367
  }
2369
2368
  declare const getEnv: () => "web" | "webextension" | "electron" | "react-native";
2370
- declare const corsValidator: (url?: string | undefined) => string | undefined;
2369
+ declare const corsValidator: (url?: string) => string | undefined;
2371
2370
  declare const parseConnectSettings: (input?: Partial<ConnectSettings>) => ConnectSettings;
2372
2371
 
2373
2372
  declare const HardwareSdk: ({ init, call, dispose, eventEmitter, uiResponse, cancel, updateSettings, }: InjectApi) => CoreApi;