@onekeyfe/hd-core 1.2.0-alpha.55 → 1.2.0-alpha.57

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 (578) hide show
  1. package/__tests__/device-state-contract.test.ts +1 -0
  2. package/__tests__/device-state-mapper.test.ts +1 -1
  3. package/__tests__/deviceSettings.test.ts +1 -1
  4. package/__tests__/protocol-v2.test.ts +129 -3
  5. package/__tests__/protocolV2FileWrite.test.ts +39 -0
  6. package/__tests__/public-pro2-api-boundary.test.ts +98 -2
  7. package/__tests__/public-test-api-boundary.test.ts +167 -0
  8. package/dist/api/BixinBackupDevice.d.ts +7 -0
  9. package/dist/api/BixinBackupDevice.d.ts.map +1 -0
  10. package/dist/api/BixinLoadDevice.d.ts +7 -0
  11. package/dist/api/BixinLoadDevice.d.ts.map +1 -0
  12. package/dist/api/BixinMessageSE.d.ts +8 -0
  13. package/dist/api/BixinMessageSE.d.ts.map +1 -0
  14. package/dist/api/BixinVerifyDeviceRequest.d.ts +8 -0
  15. package/dist/api/BixinVerifyDeviceRequest.d.ts.map +1 -0
  16. package/dist/api/FirmwareUpdateV4.d.ts.map +1 -1
  17. package/dist/api/WebAuthnAddResidentCredential.d.ts +8 -0
  18. package/dist/api/WebAuthnAddResidentCredential.d.ts.map +1 -0
  19. package/dist/api/WebAuthnListResidentCredentials.d.ts +8 -0
  20. package/dist/api/WebAuthnListResidentCredentials.d.ts.map +1 -0
  21. package/dist/api/WebAuthnRemoveResidentCredential.d.ts +8 -0
  22. package/dist/api/WebAuthnRemoveResidentCredential.d.ts.map +1 -0
  23. package/dist/api/binance/BinanceGetAddress.d.ts +8 -0
  24. package/dist/api/binance/BinanceGetAddress.d.ts.map +1 -0
  25. package/dist/api/binance/BinanceGetPublicKey.d.ts +8 -0
  26. package/dist/api/binance/BinanceGetPublicKey.d.ts.map +1 -0
  27. package/dist/api/binance/BinanceSignTx.d.ts +7 -0
  28. package/dist/api/binance/BinanceSignTx.d.ts.map +1 -0
  29. package/dist/api/btc/BTCAuthorizeCoinJoin.d.ts +7 -0
  30. package/dist/api/btc/BTCAuthorizeCoinJoin.d.ts.map +1 -0
  31. package/dist/api/btc/BTCGetOwnershipId.d.ts +7 -0
  32. package/dist/api/btc/BTCGetOwnershipId.d.ts.map +1 -0
  33. package/dist/api/btc/BTCGetOwnershipProof.d.ts +7 -0
  34. package/dist/api/btc/BTCGetOwnershipProof.d.ts.map +1 -0
  35. package/dist/api/crypto/CryptoBatchGetPublickeys.d.ts +8 -0
  36. package/dist/api/crypto/CryptoBatchGetPublickeys.d.ts.map +1 -0
  37. package/dist/api/crypto/CryptoCipherKeyValue.d.ts +8 -0
  38. package/dist/api/crypto/CryptoCipherKeyValue.d.ts.map +1 -0
  39. package/dist/api/crypto/CryptoCosiCommit.d.ts +8 -0
  40. package/dist/api/crypto/CryptoCosiCommit.d.ts.map +1 -0
  41. package/dist/api/crypto/CryptoCosiSign.d.ts +8 -0
  42. package/dist/api/crypto/CryptoCosiSign.d.ts.map +1 -0
  43. package/dist/api/crypto/CryptoGetECDHSessionKey.d.ts +8 -0
  44. package/dist/api/crypto/CryptoGetECDHSessionKey.d.ts.map +1 -0
  45. package/dist/api/crypto/CryptoSignIdentity.d.ts +8 -0
  46. package/dist/api/crypto/CryptoSignIdentity.d.ts.map +1 -0
  47. package/dist/api/debug/DebugLinkDecision.d.ts +7 -0
  48. package/dist/api/debug/DebugLinkDecision.d.ts.map +1 -0
  49. package/dist/api/debug/DebugLinkEraseSdCard.d.ts +7 -0
  50. package/dist/api/debug/DebugLinkEraseSdCard.d.ts.map +1 -0
  51. package/dist/api/debug/DebugLinkFlashErase.d.ts +7 -0
  52. package/dist/api/debug/DebugLinkFlashErase.d.ts.map +1 -0
  53. package/dist/api/debug/DebugLinkGetState.d.ts +7 -0
  54. package/dist/api/debug/DebugLinkGetState.d.ts.map +1 -0
  55. package/dist/api/debug/DebugLinkMemoryRead.d.ts +7 -0
  56. package/dist/api/debug/DebugLinkMemoryRead.d.ts.map +1 -0
  57. package/dist/api/debug/DebugLinkMemoryWrite.d.ts +7 -0
  58. package/dist/api/debug/DebugLinkMemoryWrite.d.ts.map +1 -0
  59. package/dist/api/debug/DebugLinkRecordScreen.d.ts +7 -0
  60. package/dist/api/debug/DebugLinkRecordScreen.d.ts.map +1 -0
  61. package/dist/api/debug/DebugLinkReseedRandom.d.ts +7 -0
  62. package/dist/api/debug/DebugLinkReseedRandom.d.ts.map +1 -0
  63. package/dist/api/debug/DebugLinkStop.d.ts +7 -0
  64. package/dist/api/debug/DebugLinkStop.d.ts.map +1 -0
  65. package/dist/api/debug/DebugLinkWatchLayout.d.ts +7 -0
  66. package/dist/api/debug/DebugLinkWatchLayout.d.ts.map +1 -0
  67. package/dist/api/device/DeviceVerify.d.ts.map +1 -1
  68. package/dist/api/emmc/EmmcDirList.d.ts +7 -0
  69. package/dist/api/emmc/EmmcDirList.d.ts.map +1 -0
  70. package/dist/api/emmc/EmmcDirMake.d.ts +7 -0
  71. package/dist/api/emmc/EmmcDirMake.d.ts.map +1 -0
  72. package/dist/api/emmc/EmmcDirRemove.d.ts +7 -0
  73. package/dist/api/emmc/EmmcDirRemove.d.ts.map +1 -0
  74. package/dist/api/emmc/EmmcFileDelete.d.ts +7 -0
  75. package/dist/api/emmc/EmmcFileDelete.d.ts.map +1 -0
  76. package/dist/api/emmc/EmmcFileRead.d.ts +7 -0
  77. package/dist/api/emmc/EmmcFileRead.d.ts.map +1 -0
  78. package/dist/api/emmc/EmmcFileWrite.d.ts +7 -0
  79. package/dist/api/emmc/EmmcFileWrite.d.ts.map +1 -0
  80. package/dist/api/emmc/EmmcFixPermission.d.ts +7 -0
  81. package/dist/api/emmc/EmmcFixPermission.d.ts.map +1 -0
  82. package/dist/api/emmc/EmmcPathInfo.d.ts +7 -0
  83. package/dist/api/emmc/EmmcPathInfo.d.ts.map +1 -0
  84. package/dist/api/eos/EosGetPublicKey.d.ts +8 -0
  85. package/dist/api/eos/EosGetPublicKey.d.ts.map +1 -0
  86. package/dist/api/eos/EosSignTx.d.ts +12 -0
  87. package/dist/api/eos/EosSignTx.d.ts.map +1 -0
  88. package/dist/api/evmTrezor/EVMGetAddress.d.ts +10 -0
  89. package/dist/api/evmTrezor/EVMGetAddress.d.ts.map +1 -0
  90. package/dist/api/evmTrezor/EVMGetPublicKey.d.ts +16 -0
  91. package/dist/api/evmTrezor/EVMGetPublicKey.d.ts.map +1 -0
  92. package/dist/api/evmTrezor/EVMSignMessage.d.ts +7 -0
  93. package/dist/api/evmTrezor/EVMSignMessage.d.ts.map +1 -0
  94. package/dist/api/evmTrezor/EVMSignTransaction.d.ts +15 -0
  95. package/dist/api/evmTrezor/EVMSignTransaction.d.ts.map +1 -0
  96. package/dist/api/evmTrezor/EVMSignTypedData.d.ts +43 -0
  97. package/dist/api/evmTrezor/EVMSignTypedData.d.ts.map +1 -0
  98. package/dist/api/evmTrezor/EVMVerifyMessage.d.ts +7 -0
  99. package/dist/api/evmTrezor/EVMVerifyMessage.d.ts.map +1 -0
  100. package/dist/api/evmTrezor/legacyV1/getAddress.d.ts +6 -0
  101. package/dist/api/evmTrezor/legacyV1/getAddress.d.ts.map +1 -0
  102. package/dist/api/evmTrezor/legacyV1/getPublicKey.d.ts +6 -0
  103. package/dist/api/evmTrezor/legacyV1/getPublicKey.d.ts.map +1 -0
  104. package/dist/api/evmTrezor/legacyV1/signMessage.d.ts +6 -0
  105. package/dist/api/evmTrezor/legacyV1/signMessage.d.ts.map +1 -0
  106. package/dist/api/evmTrezor/legacyV1/signTransaction.d.ts +9 -0
  107. package/dist/api/evmTrezor/legacyV1/signTransaction.d.ts.map +1 -0
  108. package/dist/api/evmTrezor/legacyV1/signTypedData.d.ts +10 -0
  109. package/dist/api/evmTrezor/legacyV1/signTypedData.d.ts.map +1 -0
  110. package/dist/api/evmTrezor/legacyV1/signTypedHash.d.ts +11 -0
  111. package/dist/api/evmTrezor/legacyV1/signTypedHash.d.ts.map +1 -0
  112. package/dist/api/evmTrezor/legacyV1/verifyMessage.d.ts +6 -0
  113. package/dist/api/evmTrezor/legacyV1/verifyMessage.d.ts.map +1 -0
  114. package/dist/api/extensionMethodNames.d.ts +3 -0
  115. package/dist/api/extensionMethodNames.d.ts.map +1 -0
  116. package/dist/api/factoryMethods.d.ts +3 -0
  117. package/dist/api/factoryMethods.d.ts.map +1 -0
  118. package/dist/api/firmware/FirmwareErase.d.ts +12 -0
  119. package/dist/api/firmware/FirmwareErase.d.ts.map +1 -0
  120. package/dist/api/firmware/FirmwareEraseEx.d.ts +12 -0
  121. package/dist/api/firmware/FirmwareEraseEx.d.ts.map +1 -0
  122. package/dist/api/firmware/FirmwareUpdateEmmcTest.d.ts +7 -0
  123. package/dist/api/firmware/FirmwareUpdateEmmcTest.d.ts.map +1 -0
  124. package/dist/api/firmware/FirmwareUploadTest.d.ts +7 -0
  125. package/dist/api/firmware/FirmwareUploadTest.d.ts.map +1 -0
  126. package/dist/api/firmware/Reboot.d.ts +7 -0
  127. package/dist/api/firmware/Reboot.d.ts.map +1 -0
  128. package/dist/api/firmware/SelfTest.d.ts +7 -0
  129. package/dist/api/firmware/SelfTest.d.ts.map +1 -0
  130. package/dist/api/helpers/protocolV2FileWrite.d.ts.map +1 -1
  131. package/dist/api/index.d.ts +3 -0
  132. package/dist/api/index.d.ts.map +1 -1
  133. package/dist/api/manager/DeviceCancelAuthorization.d.ts +7 -0
  134. package/dist/api/manager/DeviceCancelAuthorization.d.ts.map +1 -0
  135. package/dist/api/manager/DeviceChangeWipeCode.d.ts +7 -0
  136. package/dist/api/manager/DeviceChangeWipeCode.d.ts.map +1 -0
  137. package/dist/api/manager/DeviceDoPreauthorized.d.ts +7 -0
  138. package/dist/api/manager/DeviceDoPreauthorized.d.ts.map +1 -0
  139. package/dist/api/manager/DeviceEndSession.d.ts +7 -0
  140. package/dist/api/manager/DeviceEndSession.d.ts.map +1 -0
  141. package/dist/api/manager/DeviceGetEntropy.d.ts +7 -0
  142. package/dist/api/manager/DeviceGetEntropy.d.ts.map +1 -0
  143. package/dist/api/manager/DeviceGetFirmwareHash.d.ts +7 -0
  144. package/dist/api/manager/DeviceGetFirmwareHash.d.ts.map +1 -0
  145. package/dist/api/manager/DeviceInfoSettings.d.ts +7 -0
  146. package/dist/api/manager/DeviceInfoSettings.d.ts.map +1 -0
  147. package/dist/api/manager/DeviceLoad.d.ts +7 -0
  148. package/dist/api/manager/DeviceLoad.d.ts.map +1 -0
  149. package/dist/api/manager/DevicePing.d.ts +7 -0
  150. package/dist/api/manager/DevicePing.d.ts.map +1 -0
  151. package/dist/api/manager/DeviceReadSEPublicCert.d.ts +7 -0
  152. package/dist/api/manager/DeviceReadSEPublicCert.d.ts.map +1 -0
  153. package/dist/api/manager/DeviceSESignMessage.d.ts +7 -0
  154. package/dist/api/manager/DeviceSESignMessage.d.ts.map +1 -0
  155. package/dist/api/manager/DeviceSdProtect.d.ts +7 -0
  156. package/dist/api/manager/DeviceSdProtect.d.ts.map +1 -0
  157. package/dist/api/manager/DeviceSpiFlashRead.d.ts +7 -0
  158. package/dist/api/manager/DeviceSpiFlashRead.d.ts.map +1 -0
  159. package/dist/api/manager/DeviceSpiFlashWrite.d.ts +7 -0
  160. package/dist/api/manager/DeviceSpiFlashWrite.d.ts.map +1 -0
  161. package/dist/api/manager/DeviceUnlockPath.d.ts +7 -0
  162. package/dist/api/manager/DeviceUnlockPath.d.ts.map +1 -0
  163. package/dist/api/manager/DeviceWriteSEPrivateKey.d.ts +7 -0
  164. package/dist/api/manager/DeviceWriteSEPrivateKey.d.ts.map +1 -0
  165. package/dist/api/manager/DeviceWriteSEPublicCert.d.ts +7 -0
  166. package/dist/api/manager/DeviceWriteSEPublicCert.d.ts.map +1 -0
  167. package/dist/api/manager/GetDeviceInfoSettings.d.ts +7 -0
  168. package/dist/api/manager/GetDeviceInfoSettings.d.ts.map +1 -0
  169. package/dist/api/manager/GetPublicKeyMultiple.d.ts +7 -0
  170. package/dist/api/manager/GetPublicKeyMultiple.d.ts.map +1 -0
  171. package/dist/api/manager/ListResDir.d.ts +7 -0
  172. package/dist/api/manager/ListResDir.d.ts.map +1 -0
  173. package/dist/api/manager/NFTWriteData.d.ts +7 -0
  174. package/dist/api/manager/NFTWriteData.d.ts.map +1 -0
  175. package/dist/api/manager/NFTWriteInfo.d.ts +7 -0
  176. package/dist/api/manager/NFTWriteInfo.d.ts.map +1 -0
  177. package/dist/api/manager/ReadSEPublicKey.d.ts +7 -0
  178. package/dist/api/manager/ReadSEPublicKey.d.ts.map +1 -0
  179. package/dist/api/manager/ResourceUpdate.d.ts +6 -0
  180. package/dist/api/manager/ResourceUpdate.d.ts.map +1 -0
  181. package/dist/api/methodExtension.d.ts +13 -0
  182. package/dist/api/methodExtension.d.ts.map +1 -0
  183. package/dist/api/monero/MoneroGetAddress.d.ts +9 -0
  184. package/dist/api/monero/MoneroGetAddress.d.ts.map +1 -0
  185. package/dist/api/monero/MoneroGetWatchKey.d.ts +8 -0
  186. package/dist/api/monero/MoneroGetWatchKey.d.ts.map +1 -0
  187. package/dist/api/nem/NEMDecryptMessage.d.ts +8 -0
  188. package/dist/api/nem/NEMDecryptMessage.d.ts.map +1 -0
  189. package/dist/api/protocol-v2/DeviceFactoryCertificateRead.d.ts +7 -0
  190. package/dist/api/protocol-v2/DeviceFactoryCertificateRead.d.ts.map +1 -0
  191. package/dist/api/protocol-v2/DeviceFactoryCertificateWrite.d.ts +8 -0
  192. package/dist/api/protocol-v2/DeviceFactoryCertificateWrite.d.ts.map +1 -0
  193. package/dist/api/protocol-v2/DeviceFactoryChallengeSign.d.ts +8 -0
  194. package/dist/api/protocol-v2/DeviceFactoryChallengeSign.d.ts.map +1 -0
  195. package/dist/api/protocol-v2/DeviceFactoryInfoGet.d.ts.map +1 -1
  196. package/dist/api/protocol-v2/DeviceFactoryInfoSet.d.ts.map +1 -1
  197. package/dist/api/protocol-v2/helpers.d.ts +15 -5
  198. package/dist/api/protocol-v2/helpers.d.ts.map +1 -1
  199. package/dist/api/stellar/StellarSignTransaction.d.ts +1 -1
  200. package/dist/api/testMethods.d.ts +82 -0
  201. package/dist/api/testMethods.d.ts.map +1 -0
  202. package/dist/api/tezos/TezosGetAddress.d.ts +9 -0
  203. package/dist/api/tezos/TezosGetAddress.d.ts.map +1 -0
  204. package/dist/api/tezos/TezosGetPublicKey.d.ts +8 -0
  205. package/dist/api/tezos/TezosGetPublicKey.d.ts.map +1 -0
  206. package/dist/api/tezos/TezosSignTx.d.ts +12 -0
  207. package/dist/api/tezos/TezosSignTx.d.ts.map +1 -0
  208. package/dist/api/utils.d.ts +6 -1
  209. package/dist/api/utils.d.ts.map +1 -1
  210. package/dist/core/index.d.ts +10 -4
  211. package/dist/core/index.d.ts.map +1 -1
  212. package/dist/index.d.ts +722 -41
  213. package/dist/index.d.ts.map +1 -1
  214. package/dist/index.js +2635 -54
  215. package/dist/inject.d.ts +6 -2
  216. package/dist/inject.d.ts.map +1 -1
  217. package/dist/protocols/protocol-v2/firmware.d.ts.map +1 -1
  218. package/dist/types/api/binanceGetAddress.d.ts +11 -0
  219. package/dist/types/api/binanceGetAddress.d.ts.map +1 -0
  220. package/dist/types/api/binanceGetPublicKey.d.ts +11 -0
  221. package/dist/types/api/binanceGetPublicKey.d.ts.map +1 -0
  222. package/dist/types/api/binanceSignTx.d.ts +7 -0
  223. package/dist/types/api/binanceSignTx.d.ts.map +1 -0
  224. package/dist/types/api/bixinBackupDevice.d.ts +4 -0
  225. package/dist/types/api/bixinBackupDevice.d.ts.map +1 -0
  226. package/dist/types/api/bixinLoadDevice.d.ts +4 -0
  227. package/dist/types/api/bixinLoadDevice.d.ts.map +1 -0
  228. package/dist/types/api/bixinMessageSE.d.ts +4 -0
  229. package/dist/types/api/bixinMessageSE.d.ts.map +1 -0
  230. package/dist/types/api/bixinVerifyDeviceRequest.d.ts +4 -0
  231. package/dist/types/api/bixinVerifyDeviceRequest.d.ts.map +1 -0
  232. package/dist/types/api/btcAuthorizeCoinJoin.d.ts +13 -0
  233. package/dist/types/api/btcAuthorizeCoinJoin.d.ts.map +1 -0
  234. package/dist/types/api/btcGetOwnershipId.d.ts +10 -0
  235. package/dist/types/api/btcGetOwnershipId.d.ts.map +1 -0
  236. package/dist/types/api/btcGetOwnershipProof.d.ts +13 -0
  237. package/dist/types/api/btcGetOwnershipProof.d.ts.map +1 -0
  238. package/dist/types/api/cryptoBatchGetPublickeys.d.ts +12 -0
  239. package/dist/types/api/cryptoBatchGetPublickeys.d.ts.map +1 -0
  240. package/dist/types/api/cryptoCipherKeyValue.d.ts +13 -0
  241. package/dist/types/api/cryptoCipherKeyValue.d.ts.map +1 -0
  242. package/dist/types/api/cryptoCosiCommit.d.ts +8 -0
  243. package/dist/types/api/cryptoCosiCommit.d.ts.map +1 -0
  244. package/dist/types/api/cryptoCosiSign.d.ts +10 -0
  245. package/dist/types/api/cryptoCosiSign.d.ts.map +1 -0
  246. package/dist/types/api/cryptoGetECDHSessionKey.d.ts +4 -0
  247. package/dist/types/api/cryptoGetECDHSessionKey.d.ts.map +1 -0
  248. package/dist/types/api/cryptoSignIdentity.d.ts +4 -0
  249. package/dist/types/api/cryptoSignIdentity.d.ts.map +1 -0
  250. package/dist/types/api/debugLinkDecision.d.ts +4 -0
  251. package/dist/types/api/debugLinkDecision.d.ts.map +1 -0
  252. package/dist/types/api/debugLinkEraseSdCard.d.ts +4 -0
  253. package/dist/types/api/debugLinkEraseSdCard.d.ts.map +1 -0
  254. package/dist/types/api/debugLinkFlashErase.d.ts +4 -0
  255. package/dist/types/api/debugLinkFlashErase.d.ts.map +1 -0
  256. package/dist/types/api/debugLinkGetState.d.ts +4 -0
  257. package/dist/types/api/debugLinkGetState.d.ts.map +1 -0
  258. package/dist/types/api/debugLinkMemoryRead.d.ts +4 -0
  259. package/dist/types/api/debugLinkMemoryRead.d.ts.map +1 -0
  260. package/dist/types/api/debugLinkMemoryWrite.d.ts +4 -0
  261. package/dist/types/api/debugLinkMemoryWrite.d.ts.map +1 -0
  262. package/dist/types/api/debugLinkRecordScreen.d.ts +4 -0
  263. package/dist/types/api/debugLinkRecordScreen.d.ts.map +1 -0
  264. package/dist/types/api/debugLinkReseedRandom.d.ts +4 -0
  265. package/dist/types/api/debugLinkReseedRandom.d.ts.map +1 -0
  266. package/dist/types/api/debugLinkStop.d.ts +4 -0
  267. package/dist/types/api/debugLinkStop.d.ts.map +1 -0
  268. package/dist/types/api/debugLinkWatchLayout.d.ts +4 -0
  269. package/dist/types/api/debugLinkWatchLayout.d.ts.map +1 -0
  270. package/dist/types/api/detectDeviceConnectProtocol.d.ts.map +1 -1
  271. package/dist/types/api/deviceCancelAuthorization.d.ts +4 -0
  272. package/dist/types/api/deviceCancelAuthorization.d.ts.map +1 -0
  273. package/dist/types/api/deviceChangeWipeCode.d.ts +4 -0
  274. package/dist/types/api/deviceChangeWipeCode.d.ts.map +1 -0
  275. package/dist/types/api/deviceDoPreauthorized.d.ts +4 -0
  276. package/dist/types/api/deviceDoPreauthorized.d.ts.map +1 -0
  277. package/dist/types/api/deviceEndSession.d.ts +4 -0
  278. package/dist/types/api/deviceEndSession.d.ts.map +1 -0
  279. package/dist/types/api/deviceGetEntropy.d.ts +4 -0
  280. package/dist/types/api/deviceGetEntropy.d.ts.map +1 -0
  281. package/dist/types/api/deviceGetFirmwareHash.d.ts +4 -0
  282. package/dist/types/api/deviceGetFirmwareHash.d.ts.map +1 -0
  283. package/dist/types/api/deviceGetInfo.d.ts +4 -0
  284. package/dist/types/api/deviceGetInfo.d.ts.map +1 -0
  285. package/dist/types/api/deviceInfoSettings.d.ts +4 -0
  286. package/dist/types/api/deviceInfoSettings.d.ts.map +1 -0
  287. package/dist/types/api/deviceLoad.d.ts +16 -0
  288. package/dist/types/api/deviceLoad.d.ts.map +1 -0
  289. package/dist/types/api/devicePing.d.ts +4 -0
  290. package/dist/types/api/devicePing.d.ts.map +1 -0
  291. package/dist/types/api/deviceReadSEPublicCert.d.ts +4 -0
  292. package/dist/types/api/deviceReadSEPublicCert.d.ts.map +1 -0
  293. package/dist/types/api/deviceSESignMessage.d.ts +4 -0
  294. package/dist/types/api/deviceSESignMessage.d.ts.map +1 -0
  295. package/dist/types/api/deviceSdProtect.d.ts +4 -0
  296. package/dist/types/api/deviceSdProtect.d.ts.map +1 -0
  297. package/dist/types/api/deviceSpiFlashRead.d.ts +4 -0
  298. package/dist/types/api/deviceSpiFlashRead.d.ts.map +1 -0
  299. package/dist/types/api/deviceSpiFlashWrite.d.ts +4 -0
  300. package/dist/types/api/deviceSpiFlashWrite.d.ts.map +1 -0
  301. package/dist/types/api/deviceUnlockPath.d.ts +11 -0
  302. package/dist/types/api/deviceUnlockPath.d.ts.map +1 -0
  303. package/dist/types/api/deviceWriteSEPrivateKey.d.ts +4 -0
  304. package/dist/types/api/deviceWriteSEPrivateKey.d.ts.map +1 -0
  305. package/dist/types/api/deviceWriteSEPublicCert.d.ts +4 -0
  306. package/dist/types/api/deviceWriteSEPublicCert.d.ts.map +1 -0
  307. package/dist/types/api/emmcDirList.d.ts +4 -0
  308. package/dist/types/api/emmcDirList.d.ts.map +1 -0
  309. package/dist/types/api/emmcDirMake.d.ts +4 -0
  310. package/dist/types/api/emmcDirMake.d.ts.map +1 -0
  311. package/dist/types/api/emmcDirRemove.d.ts +4 -0
  312. package/dist/types/api/emmcDirRemove.d.ts.map +1 -0
  313. package/dist/types/api/emmcFileDelete.d.ts +4 -0
  314. package/dist/types/api/emmcFileDelete.d.ts.map +1 -0
  315. package/dist/types/api/emmcFileRead.d.ts +4 -0
  316. package/dist/types/api/emmcFileRead.d.ts.map +1 -0
  317. package/dist/types/api/emmcFileWrite.d.ts +4 -0
  318. package/dist/types/api/emmcFileWrite.d.ts.map +1 -0
  319. package/dist/types/api/emmcFixPermission.d.ts +4 -0
  320. package/dist/types/api/emmcFixPermission.d.ts.map +1 -0
  321. package/dist/types/api/emmcPathInfo.d.ts +4 -0
  322. package/dist/types/api/emmcPathInfo.d.ts.map +1 -0
  323. package/dist/types/api/eosGetPublicKey.d.ts +8 -0
  324. package/dist/types/api/eosGetPublicKey.d.ts.map +1 -0
  325. package/dist/types/api/eosSignTx.d.ts +7 -0
  326. package/dist/types/api/eosSignTx.d.ts.map +1 -0
  327. package/dist/types/api/evmGetAddressTrezor.d.ts +15 -0
  328. package/dist/types/api/evmGetAddressTrezor.d.ts.map +1 -0
  329. package/dist/types/api/evmGetPublicKeyTrezor.d.ts +20 -0
  330. package/dist/types/api/evmGetPublicKeyTrezor.d.ts.map +1 -0
  331. package/dist/types/api/evmSignMessageTrezor.d.ts +9 -0
  332. package/dist/types/api/evmSignMessageTrezor.d.ts.map +1 -0
  333. package/dist/types/api/evmSignTransactionTrezor.d.ts +40 -0
  334. package/dist/types/api/evmSignTransactionTrezor.d.ts.map +1 -0
  335. package/dist/types/api/evmSignTypedDataTrezor.d.ts +34 -0
  336. package/dist/types/api/evmSignTypedDataTrezor.d.ts.map +1 -0
  337. package/dist/types/api/evmVerifyMessageTrezor.d.ts +10 -0
  338. package/dist/types/api/evmVerifyMessageTrezor.d.ts.map +1 -0
  339. package/dist/types/api/firmwareErase.d.ts +4 -0
  340. package/dist/types/api/firmwareErase.d.ts.map +1 -0
  341. package/dist/types/api/firmwareEraseEx.d.ts +4 -0
  342. package/dist/types/api/firmwareEraseEx.d.ts.map +1 -0
  343. package/dist/types/api/firmwareUpdateEmmcTest.d.ts +4 -0
  344. package/dist/types/api/firmwareUpdateEmmcTest.d.ts.map +1 -0
  345. package/dist/types/api/firmwareUploadTest.d.ts +4 -0
  346. package/dist/types/api/firmwareUploadTest.d.ts.map +1 -0
  347. package/dist/types/api/getPublicKeyMultiple.d.ts +4 -0
  348. package/dist/types/api/getPublicKeyMultiple.d.ts.map +1 -0
  349. package/dist/types/api/index.d.ts +176 -3
  350. package/dist/types/api/index.d.ts.map +1 -1
  351. package/dist/types/api/listResDir.d.ts +4 -0
  352. package/dist/types/api/listResDir.d.ts.map +1 -0
  353. package/dist/types/api/moneroGetAddress.d.ts +14 -0
  354. package/dist/types/api/moneroGetAddress.d.ts.map +1 -0
  355. package/dist/types/api/moneroGetWatchKey.d.ts +14 -0
  356. package/dist/types/api/moneroGetWatchKey.d.ts.map +1 -0
  357. package/dist/types/api/nemDecryptMessage.d.ts +10 -0
  358. package/dist/types/api/nemDecryptMessage.d.ts.map +1 -0
  359. package/dist/types/api/nftWriteData.d.ts +4 -0
  360. package/dist/types/api/nftWriteData.d.ts.map +1 -0
  361. package/dist/types/api/nftWriteInfo.d.ts +4 -0
  362. package/dist/types/api/nftWriteInfo.d.ts.map +1 -0
  363. package/dist/types/api/protocolV2.d.ts +8 -2
  364. package/dist/types/api/protocolV2.d.ts.map +1 -1
  365. package/dist/types/api/readSEPublicKey.d.ts +4 -0
  366. package/dist/types/api/readSEPublicKey.d.ts.map +1 -0
  367. package/dist/types/api/reboot.d.ts +4 -0
  368. package/dist/types/api/reboot.d.ts.map +1 -0
  369. package/dist/types/api/resourceUpdate.d.ts +7 -0
  370. package/dist/types/api/resourceUpdate.d.ts.map +1 -0
  371. package/dist/types/api/selfTest.d.ts +4 -0
  372. package/dist/types/api/selfTest.d.ts.map +1 -0
  373. package/dist/types/api/tezosGetAddress.d.ts +14 -0
  374. package/dist/types/api/tezosGetAddress.d.ts.map +1 -0
  375. package/dist/types/api/tezosGetPublicKey.d.ts +14 -0
  376. package/dist/types/api/tezosGetPublicKey.d.ts.map +1 -0
  377. package/dist/types/api/tezosSignTx.d.ts +7 -0
  378. package/dist/types/api/tezosSignTx.d.ts.map +1 -0
  379. package/dist/types/api/webAuthnAddResidentCredential.d.ts +4 -0
  380. package/dist/types/api/webAuthnAddResidentCredential.d.ts.map +1 -0
  381. package/dist/types/api/webAuthnListResidentCredentials.d.ts +4 -0
  382. package/dist/types/api/webAuthnListResidentCredentials.d.ts.map +1 -0
  383. package/dist/types/api/webAuthnRemoveResidentCredential.d.ts +4 -0
  384. package/dist/types/api/webAuthnRemoveResidentCredential.d.ts.map +1 -0
  385. package/dist/utils/patch.d.ts +1 -1
  386. package/dist/utils/patch.d.ts.map +1 -1
  387. package/package.json +4 -4
  388. package/src/api/BixinBackupDevice.ts +15 -0
  389. package/src/api/BixinLoadDevice.ts +22 -0
  390. package/src/api/BixinMessageSE.ts +22 -0
  391. package/src/api/BixinVerifyDeviceRequest.ts +22 -0
  392. package/src/api/FirmwareUpdateV4.ts +15 -10
  393. package/src/api/WebAuthnAddResidentCredential.ts +22 -0
  394. package/src/api/WebAuthnListResidentCredentials.ts +24 -0
  395. package/src/api/WebAuthnRemoveResidentCredential.ts +22 -0
  396. package/src/api/binance/BinanceGetAddress.ts +26 -0
  397. package/src/api/binance/BinanceGetPublicKey.ts +26 -0
  398. package/src/api/binance/BinanceSignTx.ts +35 -0
  399. package/src/api/btc/BTCAuthorizeCoinJoin.ts +37 -0
  400. package/src/api/btc/BTCGetOwnershipId.ts +34 -0
  401. package/src/api/btc/BTCGetOwnershipProof.ts +37 -0
  402. package/src/api/crypto/CryptoBatchGetPublickeys.ts +30 -0
  403. package/src/api/crypto/CryptoCipherKeyValue.ts +29 -0
  404. package/src/api/crypto/CryptoCosiCommit.ts +24 -0
  405. package/src/api/crypto/CryptoCosiSign.ts +26 -0
  406. package/src/api/crypto/CryptoGetECDHSessionKey.ts +24 -0
  407. package/src/api/crypto/CryptoSignIdentity.ts +25 -0
  408. package/src/api/debug/DebugLinkDecision.ts +25 -0
  409. package/src/api/debug/DebugLinkEraseSdCard.ts +23 -0
  410. package/src/api/debug/DebugLinkFlashErase.ts +23 -0
  411. package/src/api/debug/DebugLinkGetState.ts +21 -0
  412. package/src/api/debug/DebugLinkMemoryRead.ts +24 -0
  413. package/src/api/debug/DebugLinkMemoryWrite.ts +25 -0
  414. package/src/api/debug/DebugLinkRecordScreen.ts +23 -0
  415. package/src/api/debug/DebugLinkReseedRandom.ts +23 -0
  416. package/src/api/debug/DebugLinkStop.ts +25 -0
  417. package/src/api/debug/DebugLinkWatchLayout.ts +23 -0
  418. package/src/api/device/DeviceVerify.ts +2 -0
  419. package/src/api/emmc/EmmcDirList.ts +20 -0
  420. package/src/api/emmc/EmmcDirMake.ts +20 -0
  421. package/src/api/emmc/EmmcDirRemove.ts +20 -0
  422. package/src/api/emmc/EmmcFileDelete.ts +20 -0
  423. package/src/api/emmc/EmmcFileRead.ts +21 -0
  424. package/src/api/emmc/EmmcFileWrite.ts +23 -0
  425. package/src/api/emmc/EmmcFixPermission.ts +17 -0
  426. package/src/api/emmc/EmmcPathInfo.ts +20 -0
  427. package/src/api/eos/EosGetPublicKey.ts +26 -0
  428. package/src/api/eos/EosSignTx.ts +40 -0
  429. package/src/api/evmTrezor/EVMGetAddress.ts +75 -0
  430. package/src/api/evmTrezor/EVMGetPublicKey.ts +106 -0
  431. package/src/api/evmTrezor/EVMSignMessage.ts +40 -0
  432. package/src/api/evmTrezor/EVMSignTransaction.ts +83 -0
  433. package/src/api/evmTrezor/EVMSignTypedData.ts +366 -0
  434. package/src/api/evmTrezor/EVMVerifyMessage.ts +37 -0
  435. package/src/api/evmTrezor/legacyV1/getAddress.ts +16 -0
  436. package/src/api/evmTrezor/legacyV1/getPublicKey.ts +20 -0
  437. package/src/api/evmTrezor/legacyV1/signMessage.ts +22 -0
  438. package/src/api/evmTrezor/legacyV1/signTransaction.ts +24 -0
  439. package/src/api/evmTrezor/legacyV1/signTypedData.ts +36 -0
  440. package/src/api/evmTrezor/legacyV1/signTypedHash.ts +48 -0
  441. package/src/api/evmTrezor/legacyV1/verifyMessage.ts +19 -0
  442. package/src/api/extensionMethodNames.ts +88 -0
  443. package/src/api/factoryMethods.ts +2 -0
  444. package/src/api/firmware/FirmwareErase.ts +18 -0
  445. package/src/api/firmware/FirmwareEraseEx.ts +18 -0
  446. package/src/api/firmware/FirmwareUpdateEmmcTest.ts +18 -0
  447. package/src/api/firmware/FirmwareUploadTest.ts +17 -0
  448. package/src/api/firmware/Reboot.ts +17 -0
  449. package/src/api/firmware/SelfTest.ts +17 -0
  450. package/src/api/helpers/protocolV2FileWrite.ts +16 -3
  451. package/src/api/index.ts +3 -0
  452. package/src/api/manager/DeviceCancelAuthorization.ts +15 -0
  453. package/src/api/manager/DeviceChangeWipeCode.ts +19 -0
  454. package/src/api/manager/DeviceDoPreauthorized.ts +15 -0
  455. package/src/api/manager/DeviceEndSession.ts +19 -0
  456. package/src/api/manager/DeviceGetEntropy.ts +19 -0
  457. package/src/api/manager/DeviceGetFirmwareHash.ts +23 -0
  458. package/src/api/manager/DeviceInfoSettings.ts +23 -0
  459. package/src/api/manager/DeviceLoad.ts +27 -0
  460. package/src/api/manager/DevicePing.ts +19 -0
  461. package/src/api/manager/DeviceReadSEPublicCert.ts +18 -0
  462. package/src/api/manager/DeviceSESignMessage.ts +23 -0
  463. package/src/api/manager/DeviceSdProtect.ts +18 -0
  464. package/src/api/manager/DeviceSpiFlashRead.ts +22 -0
  465. package/src/api/manager/DeviceSpiFlashWrite.ts +22 -0
  466. package/src/api/manager/DeviceUnlockPath.ts +26 -0
  467. package/src/api/manager/DeviceWriteSEPrivateKey.ts +23 -0
  468. package/src/api/manager/DeviceWriteSEPublicCert.ts +23 -0
  469. package/src/api/manager/GetDeviceInfoSettings.ts +20 -0
  470. package/src/api/manager/GetPublicKeyMultiple.ts +24 -0
  471. package/src/api/manager/ListResDir.ts +19 -0
  472. package/src/api/manager/NFTWriteData.ts +21 -0
  473. package/src/api/manager/NFTWriteInfo.ts +23 -0
  474. package/src/api/manager/ReadSEPublicKey.ts +20 -0
  475. package/src/api/manager/ResourceUpdate.ts +22 -0
  476. package/src/api/methodExtension.ts +27 -0
  477. package/src/api/monero/MoneroGetAddress.ts +64 -0
  478. package/src/api/monero/MoneroGetWatchKey.ts +59 -0
  479. package/src/api/nem/NEMDecryptMessage.ts +29 -0
  480. package/src/api/protocol-v2/DeviceFactoryCertificateRead.ts +25 -0
  481. package/src/api/protocol-v2/DeviceFactoryCertificateWrite.ts +30 -0
  482. package/src/api/protocol-v2/DeviceFactoryChallengeSign.ts +28 -0
  483. package/src/api/protocol-v2/DeviceFactoryInfoGet.ts +3 -0
  484. package/src/api/protocol-v2/DeviceFactoryInfoSet.ts +6 -7
  485. package/src/api/protocol-v2/helpers.ts +152 -5
  486. package/src/api/testMethods.ts +95 -0
  487. package/src/api/tezos/TezosGetAddress.ts +64 -0
  488. package/src/api/tezos/TezosGetPublicKey.ts +63 -0
  489. package/src/api/tezos/TezosSignTx.ts +44 -0
  490. package/src/api/utils.ts +46 -1
  491. package/src/core/index.ts +22 -7
  492. package/src/index.ts +5 -0
  493. package/src/inject.ts +209 -7
  494. package/src/protocols/protocol-v2/firmware.ts +2 -0
  495. package/src/types/api/binanceGetAddress.ts +17 -0
  496. package/src/types/api/binanceGetPublicKey.ts +17 -0
  497. package/src/types/api/binanceSignTx.ts +15 -0
  498. package/src/types/api/bixinBackupDevice.ts +8 -0
  499. package/src/types/api/bixinLoadDevice.ts +8 -0
  500. package/src/types/api/bixinMessageSE.ts +8 -0
  501. package/src/types/api/bixinVerifyDeviceRequest.ts +8 -0
  502. package/src/types/api/btcAuthorizeCoinJoin.ts +18 -0
  503. package/src/types/api/btcGetOwnershipId.ts +19 -0
  504. package/src/types/api/btcGetOwnershipProof.ts +22 -0
  505. package/src/types/api/cryptoBatchGetPublickeys.ts +18 -0
  506. package/src/types/api/cryptoCipherKeyValue.ts +18 -0
  507. package/src/types/api/cryptoCosiCommit.ts +13 -0
  508. package/src/types/api/cryptoCosiSign.ts +15 -0
  509. package/src/types/api/cryptoGetECDHSessionKey.ts +8 -0
  510. package/src/types/api/cryptoSignIdentity.ts +8 -0
  511. package/src/types/api/debugLinkDecision.ts +7 -0
  512. package/src/types/api/debugLinkEraseSdCard.ts +7 -0
  513. package/src/types/api/debugLinkFlashErase.ts +7 -0
  514. package/src/types/api/debugLinkGetState.ts +7 -0
  515. package/src/types/api/debugLinkMemoryRead.ts +7 -0
  516. package/src/types/api/debugLinkMemoryWrite.ts +7 -0
  517. package/src/types/api/debugLinkRecordScreen.ts +7 -0
  518. package/src/types/api/debugLinkReseedRandom.ts +7 -0
  519. package/src/types/api/debugLinkStop.ts +7 -0
  520. package/src/types/api/debugLinkWatchLayout.ts +7 -0
  521. package/src/types/api/detectDeviceConnectProtocol.ts +0 -1
  522. package/src/types/api/deviceCancelAuthorization.ts +7 -0
  523. package/src/types/api/deviceChangeWipeCode.ts +7 -0
  524. package/src/types/api/deviceDoPreauthorized.ts +7 -0
  525. package/src/types/api/deviceEndSession.ts +7 -0
  526. package/src/types/api/deviceGetEntropy.ts +7 -0
  527. package/src/types/api/deviceGetFirmwareHash.ts +7 -0
  528. package/src/types/api/deviceGetInfo.ts +7 -0
  529. package/src/types/api/deviceInfoSettings.ts +7 -0
  530. package/src/types/api/deviceLoad.ts +19 -0
  531. package/src/types/api/devicePing.ts +7 -0
  532. package/src/types/api/deviceReadSEPublicCert.ts +7 -0
  533. package/src/types/api/deviceSESignMessage.ts +7 -0
  534. package/src/types/api/deviceSdProtect.ts +7 -0
  535. package/src/types/api/deviceSpiFlashRead.ts +7 -0
  536. package/src/types/api/deviceSpiFlashWrite.ts +7 -0
  537. package/src/types/api/deviceUnlockPath.ts +16 -0
  538. package/src/types/api/deviceWriteSEPrivateKey.ts +7 -0
  539. package/src/types/api/deviceWriteSEPublicCert.ts +7 -0
  540. package/src/types/api/emmcDirList.ts +7 -0
  541. package/src/types/api/emmcDirMake.ts +7 -0
  542. package/src/types/api/emmcDirRemove.ts +7 -0
  543. package/src/types/api/emmcFileDelete.ts +7 -0
  544. package/src/types/api/emmcFileRead.ts +7 -0
  545. package/src/types/api/emmcFileWrite.ts +7 -0
  546. package/src/types/api/emmcFixPermission.ts +7 -0
  547. package/src/types/api/emmcPathInfo.ts +7 -0
  548. package/src/types/api/eosGetPublicKey.ts +13 -0
  549. package/src/types/api/eosSignTx.ts +12 -0
  550. package/src/types/api/evmGetAddressTrezor.ts +24 -0
  551. package/src/types/api/evmGetPublicKeyTrezor.ts +31 -0
  552. package/src/types/api/evmSignMessageTrezor.ts +14 -0
  553. package/src/types/api/evmSignTransactionTrezor.ts +49 -0
  554. package/src/types/api/evmSignTypedDataTrezor.ts +42 -0
  555. package/src/types/api/evmVerifyMessageTrezor.ts +15 -0
  556. package/src/types/api/firmwareErase.ts +4 -0
  557. package/src/types/api/firmwareEraseEx.ts +7 -0
  558. package/src/types/api/firmwareUpdateEmmcTest.ts +7 -0
  559. package/src/types/api/firmwareUploadTest.ts +7 -0
  560. package/src/types/api/getPublicKeyMultiple.ts +11 -0
  561. package/src/types/api/index.ts +288 -2
  562. package/src/types/api/listResDir.ts +8 -0
  563. package/src/types/api/moneroGetAddress.ts +23 -0
  564. package/src/types/api/moneroGetWatchKey.ts +26 -0
  565. package/src/types/api/nemDecryptMessage.ts +15 -0
  566. package/src/types/api/nftWriteData.ts +8 -0
  567. package/src/types/api/nftWriteInfo.ts +8 -0
  568. package/src/types/api/protocolV2.ts +43 -2
  569. package/src/types/api/readSEPublicKey.ts +8 -0
  570. package/src/types/api/reboot.ts +4 -0
  571. package/src/types/api/resourceUpdate.ts +11 -0
  572. package/src/types/api/selfTest.ts +7 -0
  573. package/src/types/api/tezosGetAddress.ts +23 -0
  574. package/src/types/api/tezosGetPublicKey.ts +23 -0
  575. package/src/types/api/tezosSignTx.ts +12 -0
  576. package/src/types/api/webAuthnAddResidentCredential.ts +8 -0
  577. package/src/types/api/webAuthnListResidentCredentials.ts +8 -0
  578. package/src/types/api/webAuthnRemoveResidentCredential.ts +8 -0
@@ -0,0 +1,4 @@
1
+ import type { Success, WriteSEPublicCert } from '@onekeyfe/hd-transport';
2
+ import type { CommonParams, Response } from '../params';
3
+ export declare function deviceWriteSEPublicCert(connectId: string, params: CommonParams & WriteSEPublicCert): Response<Success>;
4
+ //# sourceMappingURL=deviceWriteSEPublicCert.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deviceWriteSEPublicCert.d.ts","sourceRoot":"","sources":["../../../src/types/api/deviceWriteSEPublicCert.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAExD,MAAM,CAAC,OAAO,UAAU,uBAAuB,CAC7C,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,YAAY,GAAG,iBAAiB,GACvC,QAAQ,CAAC,OAAO,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { EmmcDir, EmmcDirList } from '@onekeyfe/hd-transport';
2
+ import type { CommonParams, Response } from '../params';
3
+ export declare function emmcDirList(connectId: string, params: CommonParams & EmmcDirList): Response<EmmcDir>;
4
+ //# sourceMappingURL=emmcDirList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"emmcDirList.d.ts","sourceRoot":"","sources":["../../../src/types/api/emmcDirList.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAExD,MAAM,CAAC,OAAO,UAAU,WAAW,CACjC,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,YAAY,GAAG,WAAW,GACjC,QAAQ,CAAC,OAAO,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { EmmcDirMake, Success } from '@onekeyfe/hd-transport';
2
+ import type { CommonParams, Response } from '../params';
3
+ export declare function emmcDirMake(connectId: string, params: CommonParams & EmmcDirMake): Response<Success>;
4
+ //# sourceMappingURL=emmcDirMake.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"emmcDirMake.d.ts","sourceRoot":"","sources":["../../../src/types/api/emmcDirMake.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAExD,MAAM,CAAC,OAAO,UAAU,WAAW,CACjC,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,YAAY,GAAG,WAAW,GACjC,QAAQ,CAAC,OAAO,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { EmmcDirRemove, Success } from '@onekeyfe/hd-transport';
2
+ import type { CommonParams, Response } from '../params';
3
+ export declare function emmcDirRemove(connectId: string, params: CommonParams & EmmcDirRemove): Response<Success>;
4
+ //# sourceMappingURL=emmcDirRemove.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"emmcDirRemove.d.ts","sourceRoot":"","sources":["../../../src/types/api/emmcDirRemove.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAExD,MAAM,CAAC,OAAO,UAAU,aAAa,CACnC,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,YAAY,GAAG,aAAa,GACnC,QAAQ,CAAC,OAAO,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { EmmcFileDelete, Success } from '@onekeyfe/hd-transport';
2
+ import type { CommonParams, Response } from '../params';
3
+ export declare function emmcFileDelete(connectId: string, params: CommonParams & EmmcFileDelete): Response<Success>;
4
+ //# sourceMappingURL=emmcFileDelete.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"emmcFileDelete.d.ts","sourceRoot":"","sources":["../../../src/types/api/emmcFileDelete.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACtE,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAExD,MAAM,CAAC,OAAO,UAAU,cAAc,CACpC,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,YAAY,GAAG,cAAc,GACpC,QAAQ,CAAC,OAAO,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { EmmcFile, EmmcFileRead } from '@onekeyfe/hd-transport';
2
+ import type { CommonParams, Response } from '../params';
3
+ export declare function emmcFileRead(connectId: string, params: CommonParams & EmmcFileRead): Response<EmmcFile>;
4
+ //# sourceMappingURL=emmcFileRead.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"emmcFileRead.d.ts","sourceRoot":"","sources":["../../../src/types/api/emmcFileRead.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAExD,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,YAAY,GAAG,YAAY,GAClC,QAAQ,CAAC,QAAQ,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { EmmcFileWrite, Success } from '@onekeyfe/hd-transport';
2
+ import type { CommonParams, Response } from '../params';
3
+ export declare function emmcFileWrite(connectId: string, params: CommonParams & EmmcFileWrite): Response<Success>;
4
+ //# sourceMappingURL=emmcFileWrite.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"emmcFileWrite.d.ts","sourceRoot":"","sources":["../../../src/types/api/emmcFileWrite.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAExD,MAAM,CAAC,OAAO,UAAU,aAAa,CACnC,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,YAAY,GAAG,aAAa,GACnC,QAAQ,CAAC,OAAO,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { EmmcFixPermission, Success } from '@onekeyfe/hd-transport';
2
+ import type { CommonParams, Response } from '../params';
3
+ export declare function emmcFixPermission(connectId: string, params: CommonParams & EmmcFixPermission): Response<Success>;
4
+ //# sourceMappingURL=emmcFixPermission.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"emmcFixPermission.d.ts","sourceRoot":"","sources":["../../../src/types/api/emmcFixPermission.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAExD,MAAM,CAAC,OAAO,UAAU,iBAAiB,CACvC,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,YAAY,GAAG,iBAAiB,GACvC,QAAQ,CAAC,OAAO,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { EmmcFile, EmmcPathInfo } from '@onekeyfe/hd-transport';
2
+ import type { CommonParams, Response } from '../params';
3
+ export declare function emmcPathInfo(connectId: string, params: CommonParams & EmmcPathInfo): Response<EmmcFile>;
4
+ //# sourceMappingURL=emmcPathInfo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"emmcPathInfo.d.ts","sourceRoot":"","sources":["../../../src/types/api/emmcPathInfo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAExD,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,YAAY,GAAG,YAAY,GAClC,QAAQ,CAAC,QAAQ,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { EosPublicKey } from '@onekeyfe/hd-transport';
2
+ import type { CommonParams, Response } from '../params';
3
+ export type GetPublicKeyParams = {
4
+ path: string | number[];
5
+ showOnOneKey?: boolean;
6
+ };
7
+ export declare function eosGetPublicKey(connectId: string, deviceId: string, params: CommonParams & GetPublicKeyParams): Response<EosPublicKey>;
8
+ //# sourceMappingURL=eosGetPublicKey.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eosGetPublicKey.d.ts","sourceRoot":"","sources":["../../../src/types/api/eosGetPublicKey.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAExD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,eAAe,CACrC,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,YAAY,GAAG,kBAAkB,GACxC,QAAQ,CAAC,YAAY,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { EosSignTx, EosSignedTx } from '@onekeyfe/hd-transport';
2
+ import type { CommonParams, Response } from '../params';
3
+ export type EosSignTxParams = {
4
+ path: string | number[];
5
+ } & Omit<EosSignTx, 'address_n'>;
6
+ export declare function eosSignTx(connectId: string, deviceId: string, params: CommonParams & EosSignTxParams): Response<EosSignedTx>;
7
+ //# sourceMappingURL=eosSignTx.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eosSignTx.d.ts","sourceRoot":"","sources":["../../../src/types/api/eosSignTx.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAExD,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CACzB,GAAG,IAAI,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;AAEjC,MAAM,CAAC,OAAO,UAAU,SAAS,CAC/B,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,YAAY,GAAG,eAAe,GACrC,QAAQ,CAAC,WAAW,CAAC,CAAC"}
@@ -0,0 +1,15 @@
1
+ import type { CommonParams, Response } from '../params';
2
+ export type EVMAddress = {
3
+ path: string;
4
+ address: string;
5
+ };
6
+ export type EVMGetAddressParams = {
7
+ path: string | number[];
8
+ showOnOneKey?: boolean;
9
+ chainId?: number;
10
+ };
11
+ export declare function evmGetAddressTrezor(connectId: string, deviceId: string, params: CommonParams & EVMGetAddressParams): Response<EVMAddress>;
12
+ export declare function evmGetAddressTrezor(connectId: string, deviceId: string, params: CommonParams & {
13
+ bundle?: EVMGetAddressParams[];
14
+ }): Response<Array<EVMAddress>>;
15
+ //# sourceMappingURL=evmGetAddressTrezor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"evmGetAddressTrezor.d.ts","sourceRoot":"","sources":["../../../src/types/api/evmGetAddressTrezor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAExD,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,mBAAmB,CACzC,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,YAAY,GAAG,mBAAmB,GACzC,QAAQ,CAAC,UAAU,CAAC,CAAC;AAExB,MAAM,CAAC,OAAO,UAAU,mBAAmB,CACzC,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,YAAY,GAAG;IAAE,MAAM,CAAC,EAAE,mBAAmB,EAAE,CAAA;CAAE,GACxD,QAAQ,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC"}
@@ -0,0 +1,20 @@
1
+ import type { EthereumPublicKey } from '@onekeyfe/hd-transport';
2
+ import type { CommonParams, Response } from '../params';
3
+ export type EVMPublicKey = {
4
+ path: string;
5
+ publicKey: string;
6
+ } & EthereumPublicKey;
7
+ export type EVMGetPublicKeyParams = {
8
+ path: string | number[];
9
+ showOnOneKey?: boolean;
10
+ chainId?: number;
11
+ };
12
+ export declare function evmGetPublicKeyTrezor(connectId: string, deviceId: string, params: CommonParams & EVMGetPublicKeyParams): Response<EVMPublicKey>;
13
+ export declare function evmGetPublicKeyTrezor(connectId: string, deviceId: string, params: CommonParams & {
14
+ bundle?: EVMGetPublicKeyParams[];
15
+ }): Response<Array<EVMPublicKey>>;
16
+ export declare function evmGetPublicKeyTrezor(connectId: string, deviceId: string, params: CommonParams & {
17
+ bundle?: EVMGetPublicKeyParams[];
18
+ useBatch?: boolean;
19
+ }): Response<Omit<EVMPublicKey, 'node' | 'xpub'>>;
20
+ //# sourceMappingURL=evmGetPublicKeyTrezor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"evmGetPublicKeyTrezor.d.ts","sourceRoot":"","sources":["../../../src/types/api/evmGetPublicKeyTrezor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAExD,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;CACnB,GAAG,iBAAiB,CAAC;AAEtB,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAC3C,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,YAAY,GAAG,qBAAqB,GAC3C,QAAQ,CAAC,YAAY,CAAC,CAAC;AAE1B,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAC3C,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,YAAY,GAAG;IAAE,MAAM,CAAC,EAAE,qBAAqB,EAAE,CAAA;CAAE,GAC1D,QAAQ,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC;AAEjC,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAC3C,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,YAAY,GAAG;IAAE,MAAM,CAAC,EAAE,qBAAqB,EAAE,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,GAC9E,QAAQ,CAAC,IAAI,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { EthereumMessageSignature } from '@onekeyfe/hd-transport';
2
+ import type { CommonParams, Response } from '../params';
3
+ export type EVMSignMessageParams = {
4
+ path: string | number[];
5
+ messageHex: string;
6
+ chainId?: number;
7
+ };
8
+ export declare function evmSignMessageTrezor(connectId: string, deviceId: string, params: CommonParams & EVMSignMessageParams): Response<EthereumMessageSignature>;
9
+ //# sourceMappingURL=evmSignMessageTrezor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"evmSignMessageTrezor.d.ts","sourceRoot":"","sources":["../../../src/types/api/evmSignMessageTrezor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AACvE,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAExD,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAC1C,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,YAAY,GAAG,oBAAoB,GAC1C,QAAQ,CAAC,wBAAwB,CAAC,CAAC"}
@@ -0,0 +1,40 @@
1
+ import type { CommonParams, Response } from '../params';
2
+ export type EVMSignedTx = {
3
+ v: string;
4
+ r: string;
5
+ s: string;
6
+ };
7
+ export type EVMTransaction = {
8
+ to: string;
9
+ value: string;
10
+ gasPrice: string;
11
+ gasLimit: string;
12
+ maxFeePerGas?: typeof undefined;
13
+ maxPriorityFeePerGas?: typeof undefined;
14
+ nonce: string;
15
+ data?: string;
16
+ chainId: number;
17
+ txType?: number;
18
+ };
19
+ export type EVMAccessList = {
20
+ address: string;
21
+ storageKeys: string[];
22
+ };
23
+ export type EVMTransactionEIP1559 = {
24
+ to: string;
25
+ value: string;
26
+ gasLimit: string;
27
+ gasPrice?: typeof undefined;
28
+ nonce: string;
29
+ data?: string;
30
+ chainId: number;
31
+ maxFeePerGas: string;
32
+ maxPriorityFeePerGas: string;
33
+ accessList?: EVMAccessList[];
34
+ };
35
+ export type EVMSignTransactionParams = {
36
+ path: string | number[];
37
+ transaction: EVMTransaction | EVMTransactionEIP1559;
38
+ };
39
+ export declare function evmSignTransactionTrezor(connectId: string, deviceId: string, params: CommonParams & EVMSignTransactionParams): Response<EVMSignedTx>;
40
+ //# sourceMappingURL=evmSignTransactionTrezor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"evmSignTransactionTrezor.d.ts","sourceRoot":"","sources":["../../../src/types/api/evmSignTransactionTrezor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAExD,MAAM,MAAM,WAAW,GAAG;IACxB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,OAAO,SAAS,CAAC;IAChC,oBAAoB,CAAC,EAAE,OAAO,SAAS,CAAC;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,SAAS,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,UAAU,CAAC,EAAE,aAAa,EAAE,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACxB,WAAW,EAAE,cAAc,GAAG,qBAAqB,CAAC;CACrD,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAC9C,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,YAAY,GAAG,wBAAwB,GAC9C,QAAQ,CAAC,WAAW,CAAC,CAAC"}
@@ -0,0 +1,34 @@
1
+ import type { EthereumMessageSignature } from '@onekeyfe/hd-transport';
2
+ import type { CommonParams, Response } from '../params';
3
+ export type EthereumSignTypedDataTypeProperty = {
4
+ name: string;
5
+ type: string;
6
+ };
7
+ export type EthereumSignTypedDataTypes = {
8
+ EIP712Domain: EthereumSignTypedDataTypeProperty[];
9
+ [additionalProperties: string]: EthereumSignTypedDataTypeProperty[];
10
+ };
11
+ export type EthereumSignTypedDataMessage<T extends EthereumSignTypedDataTypes> = {
12
+ types: T;
13
+ primaryType: keyof T;
14
+ domain: {
15
+ name?: string;
16
+ version?: string;
17
+ chainId?: number;
18
+ verifyingContract?: string;
19
+ salt?: ArrayBuffer;
20
+ };
21
+ message: {
22
+ [fieldName: string]: any;
23
+ };
24
+ };
25
+ export type EVMSignTypedDataParams = {
26
+ path: string | number[];
27
+ metamaskV4Compat: boolean;
28
+ data: EthereumSignTypedDataMessage<EthereumSignTypedDataTypes>;
29
+ domainHash?: string;
30
+ messageHash?: string;
31
+ chainId?: number;
32
+ };
33
+ export declare function evmSignTypedDataTrezor(connectId: string, deviceId: string, params: CommonParams & EVMSignTypedDataParams): Response<EthereumMessageSignature>;
34
+ //# sourceMappingURL=evmSignTypedDataTrezor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"evmSignTypedDataTrezor.d.ts","sourceRoot":"","sources":["../../../src/types/api/evmSignTypedDataTrezor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AACvE,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAExD,MAAM,MAAM,iCAAiC,GAAG;IAC9C,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAGF,MAAM,MAAM,0BAA0B,GAAG;IACvC,YAAY,EAAE,iCAAiC,EAAE,CAAC;IAClD,CAAC,oBAAoB,EAAE,MAAM,GAAG,iCAAiC,EAAE,CAAC;CACrE,CAAC;AAGF,MAAM,MAAM,4BAA4B,CAAC,CAAC,SAAS,0BAA0B,IAAI;IAC/E,KAAK,EAAE,CAAC,CAAC;IACT,WAAW,EAAE,MAAM,CAAC,CAAC;IACrB,MAAM,EAAE;QACN,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,iBAAiB,CAAC,EAAE,MAAM,CAAC;QAC3B,IAAI,CAAC,EAAE,WAAW,CAAC;KACpB,CAAC;IACF,OAAO,EAAE;QAAE,CAAC,SAAS,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACxB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,IAAI,EAAE,4BAA4B,CAAC,0BAA0B,CAAC,CAAC;IAC/D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAC5C,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,YAAY,GAAG,sBAAsB,GAC5C,QAAQ,CAAC,wBAAwB,CAAC,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { Success } from '@onekeyfe/hd-transport';
2
+ import type { CommonParams, Response } from '../params';
3
+ export type EVMVerifyMessageParams = {
4
+ address: string;
5
+ messageHex: string;
6
+ signature: string;
7
+ chainId?: number;
8
+ };
9
+ export declare function evmVerifyMessageTrezor(connectId: string, deviceId: string, params: CommonParams & EVMVerifyMessageParams): Response<Success>;
10
+ //# sourceMappingURL=evmVerifyMessageTrezor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"evmVerifyMessageTrezor.d.ts","sourceRoot":"","sources":["../../../src/types/api/evmVerifyMessageTrezor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAExD,MAAM,MAAM,sBAAsB,GAAG;IACnC,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAC5C,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,YAAY,GAAG,sBAAsB,GAC5C,QAAQ,CAAC,OAAO,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { Success } from '@onekeyfe/hd-transport';
2
+ import type { CommonParams, Response } from '../params';
3
+ export declare function firmwareErase(connectId?: string, params?: CommonParams): Response<Success>;
4
+ //# sourceMappingURL=firmwareErase.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"firmwareErase.d.ts","sourceRoot":"","sources":["../../../src/types/api/firmwareErase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAExD,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,YAAY,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { Success } from '@onekeyfe/hd-transport';
2
+ import type { CommonParams, Response } from '../params';
3
+ export declare function firmwareEraseEx(connectId?: string, params?: CommonParams): Response<Success>;
4
+ //# sourceMappingURL=firmwareEraseEx.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"firmwareEraseEx.d.ts","sourceRoot":"","sources":["../../../src/types/api/firmwareEraseEx.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAExD,MAAM,CAAC,OAAO,UAAU,eAAe,CACrC,SAAS,CAAC,EAAE,MAAM,EAClB,MAAM,CAAC,EAAE,YAAY,GACpB,QAAQ,CAAC,OAAO,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { FirmwareUpdateEmmc, Success } from '@onekeyfe/hd-transport';
2
+ import type { CommonParams, Response } from '../params';
3
+ export declare function firmwareUpdateEmmcTest(connectId: string, params: CommonParams & FirmwareUpdateEmmc): Response<Success>;
4
+ //# sourceMappingURL=firmwareUpdateEmmcTest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"firmwareUpdateEmmcTest.d.ts","sourceRoot":"","sources":["../../../src/types/api/firmwareUpdateEmmcTest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAC1E,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAExD,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAC5C,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,YAAY,GAAG,kBAAkB,GACxC,QAAQ,CAAC,OAAO,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { Success } from '@onekeyfe/hd-transport';
2
+ import type { CommonParams, Response } from '../params';
3
+ export declare function firmwareUploadTest(connectId: string, params: CommonParams): Response<Success>;
4
+ //# sourceMappingURL=firmwareUploadTest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"firmwareUploadTest.d.ts","sourceRoot":"","sources":["../../../src/types/api/firmwareUploadTest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAExD,MAAM,CAAC,OAAO,UAAU,kBAAkB,CACxC,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,YAAY,GACnB,QAAQ,CAAC,OAAO,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { GetPublicKeyMultiple as HardwareGetPublicKeyMultiple, PublicKeyMultiple } from '@onekeyfe/hd-transport';
2
+ import type { CommonParams, Response } from '../params';
3
+ export declare function getPublicKeyMultiple(connectId?: string, deviceId?: string, params?: CommonParams & HardwareGetPublicKeyMultiple): Response<PublicKeyMultiple>;
4
+ //# sourceMappingURL=getPublicKeyMultiple.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getPublicKeyMultiple.d.ts","sourceRoot":"","sources":["../../../src/types/api/getPublicKeyMultiple.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,IAAI,4BAA4B,EACpD,iBAAiB,EAClB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAExD,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAC1C,SAAS,CAAC,EAAE,MAAM,EAClB,QAAQ,CAAC,EAAE,MAAM,EACjB,MAAM,CAAC,EAAE,YAAY,GAAG,4BAA4B,GACnD,QAAQ,CAAC,iBAAiB,CAAC,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { deviceGetOnboardingStatus, deviceReboot, deviceUploadNft, deviceUploadWallpaper, testProtocolV2Ping, uploadPortfolio } from './protocolV2';
1
+ import type { deviceGetOnboardingStatus, deviceProvisionFactoryInfo, deviceReadFactoryCertificate, deviceReadFactoryInfo, deviceReboot, deviceSignFactoryChallenge, deviceUploadNft, deviceUploadWallpaper, deviceWriteFactoryCertificate, testProtocolV2Ping, uploadPortfolio } from './protocolV2';
2
2
  import type { off, on, removeAllListeners } from './event';
3
3
  import type { uiResponse } from './uiResponse';
4
4
  import type { init, updateSettings } from './init';
@@ -133,6 +133,87 @@ import type { benfenSignTransaction } from './benfenSignTransaction';
133
133
  import type { benfenSignMessage } from './benfenSignMessage';
134
134
  import type { neoGetAddress } from './neoGetAddress';
135
135
  import type { neoSignTransaction } from './neoSignTransaction';
136
+ import type { evmGetAddressTrezor } from './evmGetAddressTrezor';
137
+ import type { evmGetPublicKeyTrezor } from './evmGetPublicKeyTrezor';
138
+ import type { evmSignMessageTrezor } from './evmSignMessageTrezor';
139
+ import type { evmSignTransactionTrezor } from './evmSignTransactionTrezor';
140
+ import type { evmSignTypedDataTrezor } from './evmSignTypedDataTrezor';
141
+ import type { evmVerifyMessageTrezor } from './evmVerifyMessageTrezor';
142
+ import type { btcGetOwnershipId } from './btcGetOwnershipId';
143
+ import type { btcGetOwnershipProof } from './btcGetOwnershipProof';
144
+ import type { btcAuthorizeCoinJoin } from './btcAuthorizeCoinJoin';
145
+ import type { cryptoBatchGetPublickeys } from './cryptoBatchGetPublickeys';
146
+ import type { cryptoCipherKeyValue } from './cryptoCipherKeyValue';
147
+ import type { cryptoCosiCommit } from './cryptoCosiCommit';
148
+ import type { cryptoCosiSign } from './cryptoCosiSign';
149
+ import type { cryptoGetECDHSessionKey } from './cryptoGetECDHSessionKey';
150
+ import type { cryptoSignIdentity } from './cryptoSignIdentity';
151
+ import type { nemDecryptMessage } from './nemDecryptMessage';
152
+ import type { deviceSpiFlashWrite } from './deviceSpiFlashWrite';
153
+ import type { deviceSpiFlashRead } from './deviceSpiFlashRead';
154
+ import type { deviceInfoSettings } from './deviceInfoSettings';
155
+ import type { deviceGetInfo } from './deviceGetInfo';
156
+ import type { deviceWriteSEPrivateKey } from './deviceWriteSEPrivateKey';
157
+ import type { deviceWriteSEPublicCert } from './deviceWriteSEPublicCert';
158
+ import type { deviceReadSEPublicCert } from './deviceReadSEPublicCert';
159
+ import type { deviceSESignMessage } from './deviceSESignMessage';
160
+ import type { devicePing } from './devicePing';
161
+ import type { deviceGetEntropy } from './deviceGetEntropy';
162
+ import type { deviceGetFirmwareHash } from './deviceGetFirmwareHash';
163
+ import type { deviceUnlockPath } from './deviceUnlockPath';
164
+ import type { deviceSdProtect } from './deviceSdProtect';
165
+ import type { deviceChangeWipeCode } from './deviceChangeWipeCode';
166
+ import type { deviceEndSession } from './deviceEndSession';
167
+ import type { deviceLoad } from './deviceLoad';
168
+ import type { deviceDoPreauthorized } from './deviceDoPreauthorized';
169
+ import type { deviceCancelAuthorization } from './deviceCancelAuthorization';
170
+ import type { emmcDirList } from './emmcDirList';
171
+ import type { emmcDirMake } from './emmcDirMake';
172
+ import type { emmcDirRemove } from './emmcDirRemove';
173
+ import type { emmcFileDelete } from './emmcFileDelete';
174
+ import type { emmcFileRead } from './emmcFileRead';
175
+ import type { emmcFileWrite } from './emmcFileWrite';
176
+ import type { emmcFixPermission } from './emmcFixPermission';
177
+ import type { emmcPathInfo } from './emmcPathInfo';
178
+ import type { debugLinkDecision } from './debugLinkDecision';
179
+ import type { debugLinkEraseSdCard } from './debugLinkEraseSdCard';
180
+ import type { debugLinkFlashErase } from './debugLinkFlashErase';
181
+ import type { debugLinkGetState } from './debugLinkGetState';
182
+ import type { debugLinkMemoryRead } from './debugLinkMemoryRead';
183
+ import type { debugLinkMemoryWrite } from './debugLinkMemoryWrite';
184
+ import type { debugLinkRecordScreen } from './debugLinkRecordScreen';
185
+ import type { debugLinkReseedRandom } from './debugLinkReseedRandom';
186
+ import type { debugLinkStop } from './debugLinkStop';
187
+ import type { debugLinkWatchLayout } from './debugLinkWatchLayout';
188
+ import type { firmwareEraseEx } from './firmwareEraseEx';
189
+ import type { firmwareErase } from './firmwareErase';
190
+ import type { firmwareUpdateEmmcTest } from './firmwareUpdateEmmcTest';
191
+ import type { firmwareUploadTest } from './firmwareUploadTest';
192
+ import type { reboot } from './reboot';
193
+ import type { selfTest } from './selfTest';
194
+ import type { tezosGetAddress } from './tezosGetAddress';
195
+ import type { tezosGetPublicKey } from './tezosGetPublicKey';
196
+ import type { tezosSignTx } from './tezosSignTx';
197
+ import type { moneroGetWatchKey } from './moneroGetWatchKey';
198
+ import type { moneroGetAddress } from './moneroGetAddress';
199
+ import type { eosGetPublicKey } from './eosGetPublicKey';
200
+ import type { eosSignTx } from './eosSignTx';
201
+ import type { binanceGetAddress } from './binanceGetAddress';
202
+ import type { binanceGetPublicKey } from './binanceGetPublicKey';
203
+ import type { binanceSignTx } from './binanceSignTx';
204
+ import type { webAuthnAddResidentCredential } from './webAuthnAddResidentCredential';
205
+ import type { webAuthnListResidentCredentials } from './webAuthnListResidentCredentials';
206
+ import type { webAuthnRemoveResidentCredential } from './webAuthnRemoveResidentCredential';
207
+ import type { getPublicKeyMultiple } from './getPublicKeyMultiple';
208
+ import type { listResDir } from './listResDir';
209
+ import type { nftWriteData } from './nftWriteData';
210
+ import type { nftWriteInfo } from './nftWriteInfo';
211
+ import type { readSEPublicKey } from './readSEPublicKey';
212
+ import type { resourceUpdate } from './resourceUpdate';
213
+ import type { bixinBackupDevice } from './bixinBackupDevice';
214
+ import type { bixinLoadDevice } from './bixinLoadDevice';
215
+ import type { bixinMessageSE } from './bixinMessageSE';
216
+ import type { bixinVerifyDeviceRequest } from './bixinVerifyDeviceRequest';
136
217
  import type { ConnectSettings } from '../settings';
137
218
  import type { HardwareConnectProtocol } from '@onekeyfe/hd-shared';
138
219
  export * from './export';
@@ -141,8 +222,8 @@ export type { GetPassphraseStateParams } from './getPassphraseState';
141
222
  export { OpenWalletSessionMode } from './openWalletSession';
142
223
  export type { OpenWalletSessionModeValue, OpenWalletSessionParams, OpenWalletSessionPayload, } from './openWalletSession';
143
224
  export type { ClearSessionCacheParams, ClearSessionCachePayload } from './sessionCache';
144
- export type { TestProtocolV2PingParams } from './protocolV2';
145
- export type CoreApi = {
225
+ export type { DeviceFactoryCertificateWriteParams, DeviceFactoryChallengeSignParams, DeviceFactoryInfoSetParams, TestProtocolV2PingParams, } from './protocolV2';
226
+ type CoreApiWithExtensions = {
146
227
  init: typeof init;
147
228
  on: typeof on;
148
229
  off: typeof off;
@@ -205,6 +286,11 @@ export type CoreApi = {
205
286
  deviceReboot: typeof deviceReboot;
206
287
  deviceGetOnboardingStatus: typeof deviceGetOnboardingStatus;
207
288
  deviceUploadNft: typeof deviceUploadNft;
289
+ deviceProvisionFactoryInfo: typeof deviceProvisionFactoryInfo;
290
+ deviceReadFactoryInfo: typeof deviceReadFactoryInfo;
291
+ deviceWriteFactoryCertificate: typeof deviceWriteFactoryCertificate;
292
+ deviceReadFactoryCertificate: typeof deviceReadFactoryCertificate;
293
+ deviceSignFactoryChallenge: typeof deviceSignFactoryChallenge;
208
294
  deviceUploadWallpaper: typeof deviceUploadWallpaper;
209
295
  uploadPortfolio: typeof uploadPortfolio;
210
296
  allNetworkGetAddress: typeof allNetworkGetAddress;
@@ -216,12 +302,27 @@ export type CoreApi = {
216
302
  evmSignTransaction: typeof evmSignTransaction;
217
303
  evmSignTypedData: typeof evmSignTypedData;
218
304
  evmVerifyMessage: typeof evmVerifyMessage;
305
+ evmGetAddressTrezor: typeof evmGetAddressTrezor;
306
+ evmGetPublicKeyTrezor: typeof evmGetPublicKeyTrezor;
307
+ evmSignMessageTrezor: typeof evmSignMessageTrezor;
308
+ evmSignTransactionTrezor: typeof evmSignTransactionTrezor;
309
+ evmSignTypedDataTrezor: typeof evmSignTypedDataTrezor;
310
+ evmVerifyMessageTrezor: typeof evmVerifyMessageTrezor;
219
311
  btcGetAddress: typeof btcGetAddress;
220
312
  btcGetPublicKey: typeof btcGetPublicKey;
221
313
  btcSignMessage: typeof btcSignMessage;
222
314
  btcSignPsbt: typeof btcSignPsbt;
223
315
  btcSignTransaction: typeof btcSignTransaction;
224
316
  btcVerifyMessage: typeof btcVerifyMessage;
317
+ btcGetOwnershipId: typeof btcGetOwnershipId;
318
+ btcGetOwnershipProof: typeof btcGetOwnershipProof;
319
+ btcAuthorizeCoinJoin: typeof btcAuthorizeCoinJoin;
320
+ cryptoBatchGetPublickeys: typeof cryptoBatchGetPublickeys;
321
+ cryptoCipherKeyValue: typeof cryptoCipherKeyValue;
322
+ cryptoCosiCommit: typeof cryptoCosiCommit;
323
+ cryptoCosiSign: typeof cryptoCosiSign;
324
+ cryptoGetECDHSessionKey: typeof cryptoGetECDHSessionKey;
325
+ cryptoSignIdentity: typeof cryptoSignIdentity;
225
326
  starcoinGetAddress: typeof starcoinGetAddress;
226
327
  starcoinGetPublicKey: typeof starcoinGetPublicKey;
227
328
  starcoinSignMessage: typeof starcoinSignMessage;
@@ -229,6 +330,7 @@ export type CoreApi = {
229
330
  starcoinVerifyMessage: typeof starcoinVerifyMessage;
230
331
  nemGetAddress: typeof nemGetAddress;
231
332
  nemSignTransaction: typeof nemSignTransaction;
333
+ nemDecryptMessage: typeof nemDecryptMessage;
232
334
  solGetAddress: typeof solGetAddress;
233
335
  solSignTransaction: typeof solSignTransaction;
234
336
  solSignOffchainMessage: typeof solSignOffchainMessage;
@@ -298,5 +400,76 @@ export type CoreApi = {
298
400
  benfenSignMessage: typeof benfenSignMessage;
299
401
  neoGetAddress: typeof neoGetAddress;
300
402
  neoSignTransaction: typeof neoSignTransaction;
403
+ deviceSpiFlashWrite: typeof deviceSpiFlashWrite;
404
+ deviceSpiFlashRead: typeof deviceSpiFlashRead;
405
+ deviceInfoSettings: typeof deviceInfoSettings;
406
+ deviceGetInfo: typeof deviceGetInfo;
407
+ deviceWriteSEPrivateKey: typeof deviceWriteSEPrivateKey;
408
+ deviceReadSEPublicCert: typeof deviceReadSEPublicCert;
409
+ deviceWriteSEPublicCert: typeof deviceWriteSEPublicCert;
410
+ deviceSESignMessage: typeof deviceSESignMessage;
411
+ devicePing: typeof devicePing;
412
+ deviceGetEntropy: typeof deviceGetEntropy;
413
+ deviceGetFirmwareHash: typeof deviceGetFirmwareHash;
414
+ deviceUnlockPath: typeof deviceUnlockPath;
415
+ deviceSdProtect: typeof deviceSdProtect;
416
+ deviceChangeWipeCode: typeof deviceChangeWipeCode;
417
+ deviceEndSession: typeof deviceEndSession;
418
+ deviceLoad: typeof deviceLoad;
419
+ deviceDoPreauthorized: typeof deviceDoPreauthorized;
420
+ deviceCancelAuthorization: typeof deviceCancelAuthorization;
421
+ emmcDirList: typeof emmcDirList;
422
+ emmcDirMake: typeof emmcDirMake;
423
+ emmcDirRemove: typeof emmcDirRemove;
424
+ emmcFileDelete: typeof emmcFileDelete;
425
+ emmcFileRead: typeof emmcFileRead;
426
+ emmcFileWrite: typeof emmcFileWrite;
427
+ emmcFixPermission: typeof emmcFixPermission;
428
+ emmcPathInfo: typeof emmcPathInfo;
429
+ debugLinkDecision: typeof debugLinkDecision;
430
+ debugLinkEraseSdCard: typeof debugLinkEraseSdCard;
431
+ debugLinkFlashErase: typeof debugLinkFlashErase;
432
+ debugLinkGetState: typeof debugLinkGetState;
433
+ debugLinkMemoryRead: typeof debugLinkMemoryRead;
434
+ debugLinkMemoryWrite: typeof debugLinkMemoryWrite;
435
+ debugLinkRecordScreen: typeof debugLinkRecordScreen;
436
+ debugLinkReseedRandom: typeof debugLinkReseedRandom;
437
+ debugLinkStop: typeof debugLinkStop;
438
+ debugLinkWatchLayout: typeof debugLinkWatchLayout;
439
+ firmwareEraseEx: typeof firmwareEraseEx;
440
+ firmwareErase: typeof firmwareErase;
441
+ firmwareUpdateEmmcTest: typeof firmwareUpdateEmmcTest;
442
+ firmwareUploadTest: typeof firmwareUploadTest;
443
+ reboot: typeof reboot;
444
+ selfTest: typeof selfTest;
445
+ tezosGetAddress: typeof tezosGetAddress;
446
+ tezosGetPublicKey: typeof tezosGetPublicKey;
447
+ tezosSignTx: typeof tezosSignTx;
448
+ binanceGetAddress: typeof binanceGetAddress;
449
+ binanceGetPublicKey: typeof binanceGetPublicKey;
450
+ binanceSignTx: typeof binanceSignTx;
451
+ moneroGetWatchKey: typeof moneroGetWatchKey;
452
+ moneroGetAddress: typeof moneroGetAddress;
453
+ eosGetPublicKey: typeof eosGetPublicKey;
454
+ eosSignTx: typeof eosSignTx;
455
+ webAuthnAddResidentCredential: typeof webAuthnAddResidentCredential;
456
+ webAuthnListResidentCredentials: typeof webAuthnListResidentCredentials;
457
+ webAuthnRemoveResidentCredential: typeof webAuthnRemoveResidentCredential;
458
+ getPublicKeyMultiple: typeof getPublicKeyMultiple;
459
+ listResDir: typeof listResDir;
460
+ nftWriteData: typeof nftWriteData;
461
+ nftWriteInfo: typeof nftWriteInfo;
462
+ readSEPublicKey: typeof readSEPublicKey;
463
+ resourceUpdate: typeof resourceUpdate;
464
+ bixinBackupDevice: typeof bixinBackupDevice;
465
+ bixinLoadDevice: typeof bixinLoadDevice;
466
+ bixinMessageSE: typeof bixinMessageSE;
467
+ bixinVerifyDeviceRequest: typeof bixinVerifyDeviceRequest;
301
468
  };
469
+ export type TestApiMethodName = 'btcGetOwnershipId' | 'btcGetOwnershipProof' | 'btcAuthorizeCoinJoin' | 'cryptoBatchGetPublickeys' | 'cryptoCipherKeyValue' | 'cryptoCosiCommit' | 'cryptoCosiSign' | 'cryptoGetECDHSessionKey' | 'cryptoSignIdentity' | 'evmGetAddressTrezor' | 'evmGetPublicKeyTrezor' | 'evmSignMessageTrezor' | 'evmSignTransactionTrezor' | 'evmSignTypedDataTrezor' | 'evmVerifyMessageTrezor' | 'nemDecryptMessage' | 'deviceSpiFlashWrite' | 'deviceSpiFlashRead' | 'deviceInfoSettings' | 'deviceGetInfo' | 'deviceReadSEPublicCert' | 'deviceWriteSEPrivateKey' | 'deviceWriteSEPublicCert' | 'deviceSESignMessage' | 'devicePing' | 'deviceGetEntropy' | 'deviceGetFirmwareHash' | 'deviceUnlockPath' | 'deviceSdProtect' | 'deviceChangeWipeCode' | 'deviceEndSession' | 'deviceLoad' | 'deviceDoPreauthorized' | 'deviceCancelAuthorization' | 'emmcDirList' | 'emmcDirMake' | 'emmcDirRemove' | 'emmcFileDelete' | 'emmcFileRead' | 'emmcFileWrite' | 'emmcFixPermission' | 'emmcPathInfo' | 'debugLinkDecision' | 'debugLinkEraseSdCard' | 'debugLinkFlashErase' | 'debugLinkGetState' | 'debugLinkMemoryRead' | 'debugLinkMemoryWrite' | 'debugLinkRecordScreen' | 'debugLinkReseedRandom' | 'debugLinkStop' | 'debugLinkWatchLayout' | 'firmwareErase' | 'firmwareEraseEx' | 'firmwareUpdateEmmcTest' | 'firmwareUploadTest' | 'reboot' | 'selfTest' | 'tezosGetAddress' | 'tezosGetPublicKey' | 'tezosSignTx' | 'moneroGetAddress' | 'moneroGetWatchKey' | 'eosGetPublicKey' | 'eosSignTx' | 'binanceGetAddress' | 'binanceGetPublicKey' | 'binanceSignTx' | 'webAuthnAddResidentCredential' | 'webAuthnListResidentCredentials' | 'webAuthnRemoveResidentCredential' | 'getPublicKeyMultiple' | 'listResDir' | 'nftWriteData' | 'nftWriteInfo' | 'readSEPublicKey' | 'resourceUpdate' | 'bixinBackupDevice' | 'bixinLoadDevice' | 'bixinMessageSE' | 'bixinVerifyDeviceRequest';
470
+ export type FactoryApiMethodName = 'deviceProvisionFactoryInfo' | 'deviceWriteFactoryCertificate';
471
+ export type TestApiMethods = Pick<CoreApiWithExtensions, TestApiMethodName>;
472
+ export type FactoryApi = Pick<CoreApiWithExtensions, FactoryApiMethodName>;
473
+ export type CoreApi = Omit<CoreApiWithExtensions, TestApiMethodName | FactoryApiMethodName>;
474
+ export type TestApi = CoreApi & TestApiMethods & FactoryApi;
302
475
  //# sourceMappingURL=index.d.ts.map