@onekeyfe/hd-transport 1.2.0-alpha.22 → 1.2.0-alpha.24

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.
@@ -101,9 +101,10 @@ describe('messages', () => {
101
101
  expect(v2Messages.nested.MessageType.values).toMatchObject({
102
102
  MessageType_DeviceStatusGet: 60602,
103
103
  MessageType_DeviceStatus: 60603,
104
+ MessageType_DeviceSessionGet: 60606,
104
105
  MessageType_DeviceSession: 60607,
105
106
  MessageType_DeviceSessionAskPin: 60608,
106
- MessageType_DeviceSessionOpen: 60609,
107
+ MessageType_DeviceSessionAskPassphrase: 60609,
107
108
  });
108
109
  expect(v2Messages.nested.DeviceStatusGet).toEqual({ fields: {} });
109
110
  expect(v2Messages.nested.ProtocolInfoRequest.fields.eventless_wallet_session).toMatchObject({
@@ -111,25 +112,14 @@ describe('messages', () => {
111
112
  type: 'bool',
112
113
  options: { default: false },
113
114
  });
114
- expect(v2Messages.nested).not.toHaveProperty('DeviceSessionGet');
115
- expect(v2Messages.nested.DeviceSessionResume.fields.session_id).toMatchObject({
116
- rule: 'required',
115
+ expect(v2Messages.nested.DeviceSessionGet.fields.session_id).toMatchObject({
117
116
  id: 1,
118
117
  type: 'bytes',
119
118
  });
120
- expect(v2Messages.nested.DeviceSessionOpen.fields).toMatchObject({
121
- resume: { id: 1, type: 'DeviceSessionResume' },
122
- select: { id: 2, type: 'DeviceSessionSelect' },
123
- });
124
- expect(v2Messages.nested.DeviceSessionSelect.fields).toMatchObject({
125
- host_passphrase: { id: 1, type: 'DeviceSessionHostPassphrase' },
126
- passphrase_on_device: { id: 2, type: 'DeviceSessionPassphraseOnDevice' },
127
- attach_pin_on_device: { id: 3, type: 'DeviceSessionAttachPinOnDevice' },
128
- });
129
- expect(v2Messages.nested.DeviceSessionHostPassphrase.fields.passphrase).toMatchObject({
130
- rule: 'required',
131
- id: 1,
132
- type: 'string',
119
+ expect(v2Messages.nested.DeviceSessionPinType.values).toEqual({
120
+ Any: 1,
121
+ Main: 2,
122
+ AttachToPin: 3,
133
123
  });
134
124
  expect(v2Messages.nested.DeviceSessionErrorCode.values).toEqual({
135
125
  DeviceSessionError_None: 0,
@@ -146,14 +136,27 @@ describe('messages', () => {
146
136
  session_id: { id: 1, type: 'bytes' },
147
137
  btc_test_address: { id: 2, type: 'string' },
148
138
  });
149
- expect(v2Messages.nested.DeviceSessionAskPin).toEqual({ fields: {} });
139
+ expect(v2Messages.nested.DeviceSessionAskPin.fields.type).toMatchObject({
140
+ id: 1,
141
+ type: 'DeviceSessionPinType',
142
+ });
143
+ expect(v2Messages.nested.DeviceSessionAskPassphrase).toEqual({
144
+ fields: {
145
+ passphrase: {
146
+ type: 'string',
147
+ id: 1,
148
+ },
149
+ },
150
+ });
150
151
  expect(v2Messages.nested.DeviceSessionAskPin_FailureSubCodes.values).toEqual({
151
152
  UserCancel: 1,
152
153
  });
153
154
  expect(v2Messages.nested.MessageType.values).not.toHaveProperty(
154
155
  'MessageType_DeviceSessionPinResult'
155
156
  );
156
- expect(v2Messages.nested.MessageType.values).not.toHaveProperty('MessageType_DeviceSessionGet');
157
+ expect(v2Messages.nested.MessageType.values).not.toHaveProperty(
158
+ 'MessageType_DeviceSessionOpen'
159
+ );
157
160
  });
158
161
 
159
162
  test('Protocol V2 onboarding status matches the current firmware-pro2 schema', () => {
package/dist/index.d.ts CHANGED
@@ -255,6 +255,14 @@ declare const ProtocolV2: {
255
255
  };
256
256
  };
257
257
 
258
+ declare const TRANSPORT_EVENT: {
259
+ readonly DEVICE_DISCONNECT: "transport-device-disconnect";
260
+ };
261
+ type TransportDeviceDisconnectEvent = {
262
+ id: string;
263
+ connectId: string;
264
+ name: string | null;
265
+ };
258
266
  type ProtocolType = 'V1' | 'V2';
259
267
  type OneKeyDeviceCommType = 'usb' | 'webusb' | 'ble' | 'webble' | 'electron-ble' | 'bridge' | 'emulator';
260
268
  type OneKeyUsbDeviceInfo = {
@@ -3833,6 +3841,20 @@ declare enum MoneroNetworkType {
3833
3841
  STAGENET = 2,
3834
3842
  FAKECHAIN = 3
3835
3843
  }
3844
+ declare enum UiAnimationType {
3845
+ Unknown = 0,
3846
+ Signing = 1
3847
+ }
3848
+ declare enum UiAnimationCommand {
3849
+ CommandUnknown = 0,
3850
+ Start = 1,
3851
+ Stop = 2,
3852
+ Refresh = 3
3853
+ }
3854
+ type UiAnimationRequest = {
3855
+ command: UiAnimationCommand;
3856
+ type?: UiAnimationType;
3857
+ };
3836
3858
  type ViewAmount = {
3837
3859
  is_unlimited: boolean;
3838
3860
  num: string;
@@ -4124,28 +4146,24 @@ declare enum DeviceSessionErrorCode {
4124
4146
  DeviceSessionError_PassphraseDisabled = 4,
4125
4147
  DeviceSessionError_Busy = 5
4126
4148
  }
4127
- type DeviceSessionResume = {
4128
- session_id: string;
4129
- };
4130
- type DeviceSessionHostPassphrase = {
4131
- passphrase: string;
4132
- };
4133
- type DeviceSessionPassphraseOnDevice = {};
4134
- type DeviceSessionAttachPinOnDevice = {};
4135
- type DeviceSessionSelect = {
4136
- host_passphrase?: DeviceSessionHostPassphrase;
4137
- passphrase_on_device?: DeviceSessionPassphraseOnDevice;
4138
- attach_pin_on_device?: DeviceSessionAttachPinOnDevice;
4139
- };
4140
- type DeviceSessionOpen = {
4141
- resume?: DeviceSessionResume;
4142
- select?: DeviceSessionSelect;
4149
+ type DeviceSessionGet = {
4150
+ session_id?: string;
4143
4151
  };
4144
4152
  type DeviceSession = {
4145
4153
  session_id?: string;
4146
4154
  btc_test_address?: string;
4147
4155
  };
4148
- type DeviceSessionAskPin = {};
4156
+ declare enum DeviceSessionPinType {
4157
+ Any = 1,
4158
+ Main = 2,
4159
+ AttachToPin = 3
4160
+ }
4161
+ type DeviceSessionAskPin = {
4162
+ type?: DeviceSessionPinType;
4163
+ };
4164
+ type DeviceSessionAskPassphrase = {
4165
+ passphrase?: string;
4166
+ };
4149
4167
  declare enum DeviceSessionAskPin_FailureSubCodes {
4150
4168
  UserCancel = 1
4151
4169
  }
@@ -4882,6 +4900,7 @@ type MessageType = {
4882
4900
  Wallpaper: Wallpaper;
4883
4901
  UnlockPath: UnlockPath;
4884
4902
  UnlockedPathRequest: UnlockedPathRequest;
4903
+ UiAnimationRequest: UiAnimationRequest;
4885
4904
  ViewAmount: ViewAmount;
4886
4905
  ViewDetail: ViewDetail;
4887
4906
  ViewTip: ViewTip;
@@ -4920,14 +4939,10 @@ type MessageType = {
4920
4939
  DeviceInfoTargets: DeviceInfoTargets;
4921
4940
  DeviceInfoTypes: DeviceInfoTypes;
4922
4941
  DeviceInfoGet: DeviceInfoGet;
4923
- DeviceSessionResume: DeviceSessionResume;
4924
- DeviceSessionHostPassphrase: DeviceSessionHostPassphrase;
4925
- DeviceSessionPassphraseOnDevice: DeviceSessionPassphraseOnDevice;
4926
- DeviceSessionAttachPinOnDevice: DeviceSessionAttachPinOnDevice;
4927
- DeviceSessionSelect: DeviceSessionSelect;
4928
- DeviceSessionOpen: DeviceSessionOpen;
4942
+ DeviceSessionGet: DeviceSessionGet;
4929
4943
  DeviceSession: DeviceSession;
4930
4944
  DeviceSessionAskPin: DeviceSessionAskPin;
4945
+ DeviceSessionAskPassphrase: DeviceSessionAskPassphrase;
4931
4946
  DeviceStatus: DeviceStatus;
4932
4947
  DeviceStatusGet: DeviceStatusGet;
4933
4948
  DevOnboardingSetupStatus: DevOnboardingSetupStatus;
@@ -5693,6 +5708,11 @@ type messages_UnlockPath = UnlockPath;
5693
5708
  type messages_UnlockedPathRequest = UnlockedPathRequest;
5694
5709
  type messages_MoneroNetworkType = MoneroNetworkType;
5695
5710
  declare const messages_MoneroNetworkType: typeof MoneroNetworkType;
5711
+ type messages_UiAnimationType = UiAnimationType;
5712
+ declare const messages_UiAnimationType: typeof UiAnimationType;
5713
+ type messages_UiAnimationCommand = UiAnimationCommand;
5714
+ declare const messages_UiAnimationCommand: typeof UiAnimationCommand;
5715
+ type messages_UiAnimationRequest = UiAnimationRequest;
5696
5716
  type messages_ViewAmount = ViewAmount;
5697
5717
  type messages_ViewDetail = ViewDetail;
5698
5718
  type messages_ViewTipType = ViewTipType;
@@ -5756,14 +5776,12 @@ type messages_DeviceInfoGet = DeviceInfoGet;
5756
5776
  type messages_ProtocolV2DeviceInfo = ProtocolV2DeviceInfo;
5757
5777
  type messages_DeviceSessionErrorCode = DeviceSessionErrorCode;
5758
5778
  declare const messages_DeviceSessionErrorCode: typeof DeviceSessionErrorCode;
5759
- type messages_DeviceSessionResume = DeviceSessionResume;
5760
- type messages_DeviceSessionHostPassphrase = DeviceSessionHostPassphrase;
5761
- type messages_DeviceSessionPassphraseOnDevice = DeviceSessionPassphraseOnDevice;
5762
- type messages_DeviceSessionAttachPinOnDevice = DeviceSessionAttachPinOnDevice;
5763
- type messages_DeviceSessionSelect = DeviceSessionSelect;
5764
- type messages_DeviceSessionOpen = DeviceSessionOpen;
5779
+ type messages_DeviceSessionGet = DeviceSessionGet;
5765
5780
  type messages_DeviceSession = DeviceSession;
5781
+ type messages_DeviceSessionPinType = DeviceSessionPinType;
5782
+ declare const messages_DeviceSessionPinType: typeof DeviceSessionPinType;
5766
5783
  type messages_DeviceSessionAskPin = DeviceSessionAskPin;
5784
+ type messages_DeviceSessionAskPassphrase = DeviceSessionAskPassphrase;
5767
5785
  type messages_DeviceSessionAskPin_FailureSubCodes = DeviceSessionAskPin_FailureSubCodes;
5768
5786
  declare const messages_DeviceSessionAskPin_FailureSubCodes: typeof DeviceSessionAskPin_FailureSubCodes;
5769
5787
  type messages_DeviceStatus = DeviceStatus;
@@ -6472,6 +6490,9 @@ declare namespace messages {
6472
6490
  messages_UnlockPath as UnlockPath,
6473
6491
  messages_UnlockedPathRequest as UnlockedPathRequest,
6474
6492
  messages_MoneroNetworkType as MoneroNetworkType,
6493
+ messages_UiAnimationType as UiAnimationType,
6494
+ messages_UiAnimationCommand as UiAnimationCommand,
6495
+ messages_UiAnimationRequest as UiAnimationRequest,
6475
6496
  messages_ViewAmount as ViewAmount,
6476
6497
  messages_ViewDetail as ViewDetail,
6477
6498
  messages_ViewTipType as ViewTipType,
@@ -6523,14 +6544,11 @@ declare namespace messages {
6523
6544
  messages_DeviceInfoGet as DeviceInfoGet,
6524
6545
  messages_ProtocolV2DeviceInfo as ProtocolV2DeviceInfo,
6525
6546
  messages_DeviceSessionErrorCode as DeviceSessionErrorCode,
6526
- messages_DeviceSessionResume as DeviceSessionResume,
6527
- messages_DeviceSessionHostPassphrase as DeviceSessionHostPassphrase,
6528
- messages_DeviceSessionPassphraseOnDevice as DeviceSessionPassphraseOnDevice,
6529
- messages_DeviceSessionAttachPinOnDevice as DeviceSessionAttachPinOnDevice,
6530
- messages_DeviceSessionSelect as DeviceSessionSelect,
6531
- messages_DeviceSessionOpen as DeviceSessionOpen,
6547
+ messages_DeviceSessionGet as DeviceSessionGet,
6532
6548
  messages_DeviceSession as DeviceSession,
6549
+ messages_DeviceSessionPinType as DeviceSessionPinType,
6533
6550
  messages_DeviceSessionAskPin as DeviceSessionAskPin,
6551
+ messages_DeviceSessionAskPassphrase as DeviceSessionAskPassphrase,
6534
6552
  messages_DeviceSessionAskPin_FailureSubCodes as DeviceSessionAskPin_FailureSubCodes,
6535
6553
  messages_DeviceStatus as DeviceStatus,
6536
6554
  messages_DeviceStatusGet as DeviceStatusGet,
@@ -6836,4 +6854,4 @@ declare const _default: {
6836
6854
  withProtocolTimeout: typeof withProtocolTimeout;
6837
6855
  };
6838
6856
 
6839
- export { AcquireInput, Address, AlephiumAddress, AlephiumBytecodeAck, AlephiumBytecodeRequest, AlephiumGetAddress, AlephiumMessageSignature, AlephiumSignMessage, AlephiumSignTx, AlephiumSignedTx, AlephiumTxAck, AlephiumTxRequest, AlgorandAddress, AlgorandGetAddress, AlgorandSignTx, AlgorandSignedTx, AmountUnit, ApplyFlags, ApplySettings, AptosAddress, AptosGetAddress, AptosMessagePayload, AptosMessageSignature, AptosSignMessage, AptosSignSIWAMessage, AptosSignTx, AptosSignedTx, AptosTransactionType, AuthorizeCoinJoin, BIP32Address, BackupDevice, BackupType, BatchGetPublickeys, BenfenAddress, BenfenGetAddress, BenfenMessageSignature, BenfenSignMessage, BenfenSignTx, BenfenSignedTx, BenfenTxAck, BenfenTxRequest, BinanceAddress, BinanceCancelMsg, BinanceCoin, BinanceGetAddress, BinanceGetPublicKey, BinanceInputOutput, BinanceOrderMsg, BinanceOrderSide, BinanceOrderType, BinancePublicKey, BinanceSignTx, BinanceSignedTx, BinanceTimeInForce, BinanceTransferMsg, BinanceTxRequest, BixinBackupAck, BixinBackupDevice, BixinBackupDeviceAck, BixinBackupRequest, BixinLoadDevice, BixinMessageSE, BixinOutMessageSE, BixinPinInputOnDevice, BixinRestoreAck, BixinRestoreRequest, BixinSeedOperate, BixinVerifyDeviceAck, BixinVerifyDeviceRequest, BixinWhiteListAck, BixinWhiteListRequest, BlurRequest, ButtonAck, ButtonRequest, ButtonRequestType, Cancel, CancelAuthorization, Capability, CardanoAddress, CardanoAddressParametersType, CardanoAddressType, CardanoAssetGroup, CardanoBlockchainPointerType, CardanoCVoteRegistrationDelegation, CardanoCVoteRegistrationFormat, CardanoCVoteRegistrationParametersType, CardanoCertificateType, CardanoDRep, CardanoDRepType, CardanoDerivationType, CardanoGetAddress, CardanoGetNativeScriptHash, CardanoGetPublicKey, CardanoMessageSignature, CardanoNativeScript, CardanoNativeScriptHash, CardanoNativeScriptHashDisplayFormat, CardanoNativeScriptType, CardanoPoolMetadataType, CardanoPoolOwner, CardanoPoolParametersType, CardanoPoolRelayParameters, CardanoPoolRelayType, CardanoPublicKey, CardanoSignMessage, CardanoSignTxFinished, CardanoSignTxInit, CardanoToken, CardanoTxAuxiliaryData, CardanoTxAuxiliaryDataSupplement, CardanoTxAuxiliaryDataSupplementType, CardanoTxBodyHash, CardanoTxCertificate, CardanoTxCollateralInput, CardanoTxHostAck, CardanoTxInlineDatumChunk, CardanoTxInput, CardanoTxItemAck, CardanoTxMint, CardanoTxOutput, CardanoTxOutputSerializationFormat, CardanoTxReferenceInput, CardanoTxReferenceScriptChunk, CardanoTxRequiredSigner, CardanoTxSigningMode, CardanoTxWithdrawal, CardanoTxWitnessRequest, CardanoTxWitnessResponse, CardanoTxWitnessType, ChangeOutputScriptType, ChangePin, ChangeWipeCode, CipherKeyValue, CipheredKeyValue, CoinJoinRequest, CoinPurchaseMemo, CommandFlags, ConfluxAddress, ConfluxGetAddress, ConfluxMessageSignature, ConfluxSignMessage, ConfluxSignMessageCIP23, ConfluxSignTx, ConfluxTxAck, ConfluxTxRequest, CosmosAddress, CosmosGetAddress, CosmosSignTx, CosmosSignedTx, DecredStakingSpendType, Deprecated_PassphraseStateAck, Deprecated_PassphraseStateRequest, DevGetOnboardingStatus, DevOnboardingPhase, DevOnboardingSetupKind, DevOnboardingSetupMethod, DevOnboardingSetupStatus, DevOnboardingStatus, DevOnboardingStep, DeviceBackToBoot, DeviceCertificate, DeviceCertificateRead, DeviceCertificateSign, DeviceCertificateSignature, DeviceCertificateWrite, DeviceCoprocessorInfo, DeviceEraseSector, DeviceErrorCode, DeviceFactoryAck, DeviceFactoryInfo, DeviceFactoryInfoGet, DeviceFactoryInfoManufactureTime, DeviceFactoryInfoSet, DeviceFactoryPermanentLock, DeviceFactoryTest, DeviceFirmwareImageInfo, DeviceFirmwareTarget, DeviceFirmwareTargetType, DeviceFirmwareUpdateRecord, DeviceFirmwareUpdateRecordFields, DeviceFirmwareUpdateRequest, DeviceFirmwareUpdateStatus, DeviceFirmwareUpdateStatusGet, DeviceFirmwareUpdateTaskStatus, DeviceHardwareInfo, DeviceInfo, DeviceInfoGet, DeviceInfoSettings, DeviceInfoTargets, DeviceInfoTypes, DeviceMainMcuInfo, DeviceReboot, DeviceRebootType, DeviceSEInfo, DeviceSEState, DeviceSeType, DeviceSession, DeviceSessionAskPin, DeviceSessionAskPin_FailureSubCodes, DeviceSessionAttachPinOnDevice, DeviceSessionErrorCode, DeviceSessionHostPassphrase, DeviceSessionOpen, DeviceSessionPassphraseOnDevice, DeviceSessionResume, DeviceSessionSelect, DeviceSettings, DeviceSettingsGet, DeviceSettingsPage, DeviceSettingsPageShow, DeviceSettingsSet, DeviceStatus, DeviceStatusGet, DeviceType, DnxAddress, DnxComputedKeyImage, DnxGetAddress, DnxInputAck, DnxInputRequest, DnxRTSigsRequest, DnxSignTx, DnxSignedTx, DnxTxKey, DoPreauthorized, ECDHSessionKey, EcdsaPublicKeys, EmmcDir, EmmcDirList, EmmcDirMake, EmmcDirRemove, EmmcFile, EmmcFileDelete, EmmcFileRead, EmmcFileWrite, EmmcFixPermission, EmmcPath, EmmcPathInfo, EndSession, Entropy, EntropyAck, EntropyRequest, Enum_BackupType, Enum_ButtonRequestType, Enum_Capability, Enum_InputScriptType, Enum_KaspaInputScriptType, Enum_KaspaOutputScriptType, Enum_KaspaRequestType, Enum_OutputScriptType, Enum_PinMatrixRequestType, Enum_ProtocolV2Capability, Enum_RequestType, Enum_SafetyCheckLevel, Enum_WordRequestType, EosActionBuyRam, EosActionBuyRamBytes, EosActionCommon, EosActionDelegate, EosActionDeleteAuth, EosActionLinkAuth, EosActionNewAccount, EosActionRefund, EosActionSellRam, EosActionTransfer, EosActionUndelegate, EosActionUnknown, EosActionUnlinkAuth, EosActionUpdateAuth, EosActionVoteProducer, EosAsset, EosAuthorization, EosAuthorizationAccount, EosAuthorizationKey, EosAuthorizationWait, EosGetPublicKey, EosPermissionLevel, EosPublicKey, EosSignTx, EosSignedTx, EosTxActionAck, EosTxActionRequest, EosTxHeader, EthereumAccessList, EthereumAccessListOneKey, EthereumAddress, EthereumAddressOneKey, EthereumAuthorizationOneKey, EthereumAuthorizationSignature, EthereumDataType, EthereumDataTypeOneKey, EthereumDefinitionType, EthereumDefinitions, EthereumFieldType, EthereumFieldTypeOneKey, EthereumGetAddress, EthereumGetAddressOneKey, EthereumGetPublicKey, EthereumGetPublicKeyOneKey, EthereumGnosisSafeTxAck, EthereumGnosisSafeTxOperation, EthereumGnosisSafeTxRequest, EthereumMessageSignature, EthereumMessageSignatureOneKey, EthereumNetworkInfo, EthereumPublicKey, EthereumPublicKeyOneKey, EthereumSignMessage, EthereumSignMessageEIP712, EthereumSignMessageOneKey, EthereumSignTx, EthereumSignTxEIP1559, EthereumSignTxEIP1559OneKey, EthereumSignTxEIP7702OneKey, EthereumSignTxOneKey, EthereumSignTypedData, EthereumSignTypedDataOneKey, EthereumSignTypedDataQR, EthereumSignTypedHash, EthereumSignTypedHashOneKey, EthereumStructMember, EthereumStructMemberOneKey, EthereumTokenInfo, EthereumTxAck, EthereumTxAckOneKey, EthereumTxRequest, EthereumTxRequestOneKey, EthereumTypedDataSignature, EthereumTypedDataSignatureOneKey, EthereumTypedDataStructAck, EthereumTypedDataStructAckOneKey, EthereumTypedDataStructRequest, EthereumTypedDataStructRequestOneKey, EthereumTypedDataValueAck, EthereumTypedDataValueAckOneKey, EthereumTypedDataValueRequest, EthereumTypedDataValueRequestOneKey, EthereumVerifyMessage, EthereumVerifyMessageOneKey, ExportType, Failure, FailureType, Features, FileInfo, FileInfoList, FilecoinAddress, FilecoinGetAddress, FilecoinSignTx, FilecoinSignedTx, FilesystemDir, FilesystemDirList, FilesystemDirMake, FilesystemDirRemove, FilesystemFile, FilesystemFileDelete, FilesystemFileRead, FilesystemFileWrite, FilesystemFormat, FilesystemPathInfo, FilesystemPathInfoQuery, FilesystemPermissionFix, FirmwareErase, FirmwareErase_ex, FirmwareHash, FirmwareRequest, FirmwareUpdateEmmc, FirmwareUpload, GetAddress, GetDeviceInfo, GetECDHSessionKey, GetEntropy, GetFeatures, GetFirmwareHash, GetNextU2FCounter, GetNonce, GetOwnershipId, GetOwnershipProof, GetPassphraseState, GetPublicKey, GetPublicKeyMultiple, GetWallpaper, HDNodePathType, HDNodeType, IdentityType, Initialize, InputScriptType, InternalInputScriptType, InternalMyAddressRequest, KaspaAddress, KaspaGetAddress, KaspaInputScriptType, KaspaOutpoint, KaspaOutputScriptType, KaspaRequestType, KaspaSignTx, KaspaSignedTx, KaspaTxAckInput, KaspaTxAckOutput, KaspaTxAckPayloadChunk, KaspaTxAckPrevInput, KaspaTxAckPrevMeta, KaspaTxAckPrevOutput, KaspaTxInputAck, KaspaTxInputRequest, KaspaTxRequest, KaspaTxRequestSignature, ListResDir, LnurlAuth, LnurlAuthResp, LockDevice, LogBlockCommand, LowLevelDevice, LowlevelTransportSharedPlugin, MessageFromOneKey, MessageKey, MessageResponse, MessageResponseMap, MessageSignature, MessageType, messages as Messages, MoneroAccountPublicAddress, MoneroAddress, MoneroExportedKeyImage, MoneroGetAddress, MoneroGetTxKeyAck, MoneroGetTxKeyRequest, MoneroGetWatchKey, MoneroKeyImageExportInitAck, MoneroKeyImageExportInitRequest, MoneroKeyImageSyncFinalAck, MoneroKeyImageSyncFinalRequest, MoneroKeyImageSyncStepAck, MoneroKeyImageSyncStepRequest, MoneroLiveRefreshFinalAck, MoneroLiveRefreshFinalRequest, MoneroLiveRefreshStartAck, MoneroLiveRefreshStartRequest, MoneroLiveRefreshStepAck, MoneroLiveRefreshStepRequest, MoneroMultisigKLRki, MoneroNetworkType, MoneroOutputEntry, MoneroRctKeyPublic, MoneroRingCtSig, MoneroSubAddressIndicesList, MoneroTransactionAllInputsSetAck, MoneroTransactionAllInputsSetRequest, MoneroTransactionAllOutSetAck, MoneroTransactionAllOutSetRequest, MoneroTransactionData, MoneroTransactionDestinationEntry, MoneroTransactionFinalAck, MoneroTransactionFinalRequest, MoneroTransactionInitAck, MoneroTransactionInitRequest, MoneroTransactionInputViniAck, MoneroTransactionInputViniRequest, MoneroTransactionInputsPermutationAck, MoneroTransactionInputsPermutationRequest, MoneroTransactionRsigData, MoneroTransactionSetInputAck, MoneroTransactionSetInputRequest, MoneroTransactionSetOutputAck, MoneroTransactionSetOutputRequest, MoneroTransactionSignInputAck, MoneroTransactionSignInputRequest, MoneroTransactionSourceEntry, MoneroTransferDetails, MoneroWatchKey, MultisigRedeemScriptType, NEMAddress, NEMAggregateModification, NEMCosignatoryModification, NEMDecryptMessage, NEMDecryptedMessage, NEMGetAddress, NEMImportanceTransfer, NEMImportanceTransferMode, NEMModificationType, NEMMosaic, NEMMosaicCreation, NEMMosaicDefinition, NEMMosaicLevy, NEMMosaicSupplyChange, NEMProvisionNamespace, NEMSignTx, NEMSignedTx, NEMSupplyChangeType, NEMTransactionCommon, NEMTransfer, NFTWriteData, NFTWriteInfo, NearAddress, NearGetAddress, NearSignTx, NearSignedTx, NeoAddress, NeoGetAddress, NeoSignTx, NeoSignedTx, NervosAddress, NervosGetAddress, NervosSignTx, NervosSignedTx, NervosTxAck, NervosTxRequest, NexaAddress, NexaGetAddress, NexaSignTx, NexaSignedTx, NexaTxInputAck, NexaTxInputRequest, NextU2FCounter, Nonce, NostrDecryptMessage, NostrDecryptedMessage, NostrEncryptMessage, NostrEncryptedMessage, NostrGetPublicKey, NostrPublicKey, NostrSignEvent, NostrSignSchnorr, NostrSignedEvent, NostrSignedSchnorr, OneKeyDeviceCommType, OneKeyDeviceInfo, OneKeyDeviceInfoBase, OneKeyDeviceInfoWithSession, OneKeyDeviceType, OneKeyMobileDeviceInfo, OneKeySEState, OneKeySeType, OnekeyFeatures, OnekeyGetFeatures, OutputScriptType, OwnershipId, OwnershipProof, PROTOCOL_V1_CHUNK_PAYLOAD_SIZE, PROTOCOL_V1_ENVELOPE_HEADER_SIZE, PROTOCOL_V1_HEADER_BYTE, PROTOCOL_V1_MESSAGE_HEADER_SIZE, PROTOCOL_V1_REPORT_ID, PROTOCOL_V1_USB_PACKET_SIZE, PROTOCOL_V2_BLE_FILE_CHUNK_SIZE, PROTOCOL_V2_BLE_FILE_READ_CHUNK_SIZE, PROTOCOL_V2_BLE_FRAME_MAX_BYTES, PROTOCOL_V2_CHANNEL_BLE_UART, PROTOCOL_V2_CHANNEL_SOCKET, PROTOCOL_V2_CHANNEL_USB, PROTOCOL_V2_DEFAULT_RESPONSE_TIMEOUT_MS, PROTOCOL_V2_FILE_CHUNK_SIZE, PROTOCOL_V2_FRAME_MAX_BYTES, PROTOCOL_V2_PACKET_SRC_COMMAND, PROTOCOL_V2_SYS_MESSAGE_THRESHOLD, PROTOCOL_V2_WEBUSB_FILE_CHUNK_SIZE, PassphraseAck, PassphraseRequest, PassphraseState, Path, PaymentRequestMemo, PinMatrixAck, PinMatrixRequest, PinMatrixRequestType, Ping, PolkadotAddress, PolkadotGetAddress, PolkadotSignTx, PolkadotSignedTx, PortfolioUpdate, PreauthorizedRequest, PrevInput, PrevOutput, PrevTx, ProtocolInfo, ProtocolInfoRequest, ProtocolType, ProtocolV1, ProtocolV2, ProtocolV2CallContext, ProtocolV2CallOptions, ProtocolV2Capability, ProtocolV2DeviceInfo, ProtocolV2FailureType, ProtocolV2FrameAssembler, ProtocolV2LinkAdapter, ProtocolV2LinkError, ProtocolV2LinkErrorClassification, ProtocolV2LinkErrorCode, ProtocolV2LinkManager, ProtocolV2LinkManagerOptions, ProtocolV2Schemas, ProtocolV2SequenceCursor, ProtocolV2Session, ProtocolV2SessionOptions, ProtocolV2UsbTransportBase, ProtocolV2UsbTransportBaseOptions, PublicKey, PublicKeyMultiple, ReadSEPublicCert, ReadSEPublicKey, Reboot, RebootToBoardloader, RebootToBootloader, RebootType, RecoveryDevice, RecoveryDeviceType, RefundMemo, RequestType, ResetDevice, ResourceAck, ResourceRequest, ResourceType, ResourceUpdate, ResourceUpload, RippleAddress, RippleGetAddress, RipplePayment, RippleSignTx, RippleSignedTx, SEMessageSignature, SEPublicCert, SEPublicKey, SESignMessage, SafetyCheckLevel, ScdoAddress, ScdoGetAddress, ScdoSignMessage, ScdoSignTx, ScdoSignedMessage, ScdoSignedTx, ScdoTxAck, SdProtect, SdProtectOperationType, SeedRequestType, SelfTest, SetBusy, SetU2FCounter, SetWallpaper, SignIdentity, SignMessage, SignPsbt, SignTx, SignedIdentity, SignedPsbt, SolanaAddress, SolanaGetAddress, SolanaMessageSignature, SolanaOffChainMessageFormat, SolanaOffChainMessageVersion, SolanaSignOffChainMessage, SolanaSignTx, SolanaSignUnsafeMessage, SolanaSignedTx, SolanaTxATADetails, SolanaTxExtraInfo, SpiFlashData, SpiFlashRead, SpiFlashWrite, StarcoinAddress, StarcoinGetAddress, StarcoinGetPublicKey, StarcoinMessageSignature, StarcoinPublicKey, StarcoinSignMessage, StarcoinSignTx, StarcoinSignedTx, StarcoinVerifyMessage, StartSession, StellarAccountMergeOp, StellarAddress, StellarAllowTrustOp, StellarAsset, StellarAssetType, StellarBumpSequenceOp, StellarChangeTrustOp, StellarCreateAccountOp, StellarCreatePassiveSellOfferOp, StellarGetAddress, StellarInvokeHostFunctionOp, StellarManageBuyOfferOp, StellarManageDataOp, StellarManageSellOfferOp, StellarMemoType, StellarPathPaymentStrictReceiveOp, StellarPathPaymentStrictSendOp, StellarPaymentOp, StellarRequestType, StellarSetOptionsOp, StellarSignTx, StellarSignedTx, StellarSignerType, StellarSorobanDataAck, StellarSorobanDataRequest, StellarTxOpRequest, Success, SuiAddress, SuiGetAddress, SuiMessageSignature, SuiSignMessage, SuiSignTx, SuiSignedTx, SuiTxAck, SuiTxRequest, TextMemo, TezosAddress, TezosBallotOp, TezosBallotType, TezosContractID, TezosContractType, TezosDelegationOp, TezosGetAddress, TezosGetPublicKey, TezosManagerTransfer, TezosOriginationOp, TezosParametersManager, TezosProposalOp, TezosPublicKey, TezosRevealOp, TezosSignTx, TezosSignedTx, TezosTransactionOp, TonAddress, TonGetAddress, TonSignData, TonSignDataType, TonSignMessage, TonSignProof, TonSignedData, TonSignedMessage, TonSignedProof, TonTxAck, TonWalletVersion, TonWorkChain, Transport, TransportCallOptions, TronAddress, TronCancelAllUnfreezeV2Contract, TronContract, TronDelegateResourceContract, TronFreezeBalanceContract, TronFreezeBalanceV2Contract, TronGetAddress, TronMessageSignature, TronMessageType, TronResourceCode, TronSignMessage, TronSignTx, TronSignedTx, TronTransferContract, TronTriggerSmartContract, TronUnDelegateResourceContract, TronUnfreezeBalanceContract, TronUnfreezeBalanceV2Contract, TronVoteWitnessContract, TronWithdrawBalanceContract, TronWithdrawExpireUnfreezeContract, TxAck, TxAckInput, TxAckInputWrapper, TxAckOutput, TxAckOutputWrapper, TxAckPaymentRequest, TxAckPrevExtraData, TxAckPrevExtraDataWrapper, TxAckPrevInput, TxAckPrevInputWrapper, TxAckPrevMeta, TxAckPrevOutput, TxAckPrevOutputWrapper, TxAckResponse, TxInput, TxInputType, TxOutput, TxOutputBinType, TxOutputType, TxRequest, TxRequestDetailsType, TxRequestSerializedType, TypedCall, UintType, UnLockDevice, UnLockDeviceResponse, UnlockPath, UnlockedPathRequest, UpgradeFileHeader, VerifyMessage, ViewAmount, ViewDetail, ViewRawData, ViewSignLayout, ViewSignPage, ViewTip, ViewTipType, ViewVerifyPage, Vote, WL_OperationType, Wallpaper, WallpaperTarget, WipeDevice, WordAck, WordRequest, WordRequestType, WriteSEPrivateKey, WriteSEPublicCert, ZoomRequest, bytesToHex, concatUint8Arrays, _default as default, experimental_field, experimental_message, facotry, getErrorMessage, hexToBytes, isProtocolV2LinkError, probeProtocolV2, index as protocolV1, protocolV2Codec as protocolV2, withProtocolTimeout };
6857
+ export { AcquireInput, Address, AlephiumAddress, AlephiumBytecodeAck, AlephiumBytecodeRequest, AlephiumGetAddress, AlephiumMessageSignature, AlephiumSignMessage, AlephiumSignTx, AlephiumSignedTx, AlephiumTxAck, AlephiumTxRequest, AlgorandAddress, AlgorandGetAddress, AlgorandSignTx, AlgorandSignedTx, AmountUnit, ApplyFlags, ApplySettings, AptosAddress, AptosGetAddress, AptosMessagePayload, AptosMessageSignature, AptosSignMessage, AptosSignSIWAMessage, AptosSignTx, AptosSignedTx, AptosTransactionType, AuthorizeCoinJoin, BIP32Address, BackupDevice, BackupType, BatchGetPublickeys, BenfenAddress, BenfenGetAddress, BenfenMessageSignature, BenfenSignMessage, BenfenSignTx, BenfenSignedTx, BenfenTxAck, BenfenTxRequest, BinanceAddress, BinanceCancelMsg, BinanceCoin, BinanceGetAddress, BinanceGetPublicKey, BinanceInputOutput, BinanceOrderMsg, BinanceOrderSide, BinanceOrderType, BinancePublicKey, BinanceSignTx, BinanceSignedTx, BinanceTimeInForce, BinanceTransferMsg, BinanceTxRequest, BixinBackupAck, BixinBackupDevice, BixinBackupDeviceAck, BixinBackupRequest, BixinLoadDevice, BixinMessageSE, BixinOutMessageSE, BixinPinInputOnDevice, BixinRestoreAck, BixinRestoreRequest, BixinSeedOperate, BixinVerifyDeviceAck, BixinVerifyDeviceRequest, BixinWhiteListAck, BixinWhiteListRequest, BlurRequest, ButtonAck, ButtonRequest, ButtonRequestType, Cancel, CancelAuthorization, Capability, CardanoAddress, CardanoAddressParametersType, CardanoAddressType, CardanoAssetGroup, CardanoBlockchainPointerType, CardanoCVoteRegistrationDelegation, CardanoCVoteRegistrationFormat, CardanoCVoteRegistrationParametersType, CardanoCertificateType, CardanoDRep, CardanoDRepType, CardanoDerivationType, CardanoGetAddress, CardanoGetNativeScriptHash, CardanoGetPublicKey, CardanoMessageSignature, CardanoNativeScript, CardanoNativeScriptHash, CardanoNativeScriptHashDisplayFormat, CardanoNativeScriptType, CardanoPoolMetadataType, CardanoPoolOwner, CardanoPoolParametersType, CardanoPoolRelayParameters, CardanoPoolRelayType, CardanoPublicKey, CardanoSignMessage, CardanoSignTxFinished, CardanoSignTxInit, CardanoToken, CardanoTxAuxiliaryData, CardanoTxAuxiliaryDataSupplement, CardanoTxAuxiliaryDataSupplementType, CardanoTxBodyHash, CardanoTxCertificate, CardanoTxCollateralInput, CardanoTxHostAck, CardanoTxInlineDatumChunk, CardanoTxInput, CardanoTxItemAck, CardanoTxMint, CardanoTxOutput, CardanoTxOutputSerializationFormat, CardanoTxReferenceInput, CardanoTxReferenceScriptChunk, CardanoTxRequiredSigner, CardanoTxSigningMode, CardanoTxWithdrawal, CardanoTxWitnessRequest, CardanoTxWitnessResponse, CardanoTxWitnessType, ChangeOutputScriptType, ChangePin, ChangeWipeCode, CipherKeyValue, CipheredKeyValue, CoinJoinRequest, CoinPurchaseMemo, CommandFlags, ConfluxAddress, ConfluxGetAddress, ConfluxMessageSignature, ConfluxSignMessage, ConfluxSignMessageCIP23, ConfluxSignTx, ConfluxTxAck, ConfluxTxRequest, CosmosAddress, CosmosGetAddress, CosmosSignTx, CosmosSignedTx, DecredStakingSpendType, Deprecated_PassphraseStateAck, Deprecated_PassphraseStateRequest, DevGetOnboardingStatus, DevOnboardingPhase, DevOnboardingSetupKind, DevOnboardingSetupMethod, DevOnboardingSetupStatus, DevOnboardingStatus, DevOnboardingStep, DeviceBackToBoot, DeviceCertificate, DeviceCertificateRead, DeviceCertificateSign, DeviceCertificateSignature, DeviceCertificateWrite, DeviceCoprocessorInfo, DeviceEraseSector, DeviceErrorCode, DeviceFactoryAck, DeviceFactoryInfo, DeviceFactoryInfoGet, DeviceFactoryInfoManufactureTime, DeviceFactoryInfoSet, DeviceFactoryPermanentLock, DeviceFactoryTest, DeviceFirmwareImageInfo, DeviceFirmwareTarget, DeviceFirmwareTargetType, DeviceFirmwareUpdateRecord, DeviceFirmwareUpdateRecordFields, DeviceFirmwareUpdateRequest, DeviceFirmwareUpdateStatus, DeviceFirmwareUpdateStatusGet, DeviceFirmwareUpdateTaskStatus, DeviceHardwareInfo, DeviceInfo, DeviceInfoGet, DeviceInfoSettings, DeviceInfoTargets, DeviceInfoTypes, DeviceMainMcuInfo, DeviceReboot, DeviceRebootType, DeviceSEInfo, DeviceSEState, DeviceSeType, DeviceSession, DeviceSessionAskPassphrase, DeviceSessionAskPin, DeviceSessionAskPin_FailureSubCodes, DeviceSessionErrorCode, DeviceSessionGet, DeviceSessionPinType, DeviceSettings, DeviceSettingsGet, DeviceSettingsPage, DeviceSettingsPageShow, DeviceSettingsSet, DeviceStatus, DeviceStatusGet, DeviceType, DnxAddress, DnxComputedKeyImage, DnxGetAddress, DnxInputAck, DnxInputRequest, DnxRTSigsRequest, DnxSignTx, DnxSignedTx, DnxTxKey, DoPreauthorized, ECDHSessionKey, EcdsaPublicKeys, EmmcDir, EmmcDirList, EmmcDirMake, EmmcDirRemove, EmmcFile, EmmcFileDelete, EmmcFileRead, EmmcFileWrite, EmmcFixPermission, EmmcPath, EmmcPathInfo, EndSession, Entropy, EntropyAck, EntropyRequest, Enum_BackupType, Enum_ButtonRequestType, Enum_Capability, Enum_InputScriptType, Enum_KaspaInputScriptType, Enum_KaspaOutputScriptType, Enum_KaspaRequestType, Enum_OutputScriptType, Enum_PinMatrixRequestType, Enum_ProtocolV2Capability, Enum_RequestType, Enum_SafetyCheckLevel, Enum_WordRequestType, EosActionBuyRam, EosActionBuyRamBytes, EosActionCommon, EosActionDelegate, EosActionDeleteAuth, EosActionLinkAuth, EosActionNewAccount, EosActionRefund, EosActionSellRam, EosActionTransfer, EosActionUndelegate, EosActionUnknown, EosActionUnlinkAuth, EosActionUpdateAuth, EosActionVoteProducer, EosAsset, EosAuthorization, EosAuthorizationAccount, EosAuthorizationKey, EosAuthorizationWait, EosGetPublicKey, EosPermissionLevel, EosPublicKey, EosSignTx, EosSignedTx, EosTxActionAck, EosTxActionRequest, EosTxHeader, EthereumAccessList, EthereumAccessListOneKey, EthereumAddress, EthereumAddressOneKey, EthereumAuthorizationOneKey, EthereumAuthorizationSignature, EthereumDataType, EthereumDataTypeOneKey, EthereumDefinitionType, EthereumDefinitions, EthereumFieldType, EthereumFieldTypeOneKey, EthereumGetAddress, EthereumGetAddressOneKey, EthereumGetPublicKey, EthereumGetPublicKeyOneKey, EthereumGnosisSafeTxAck, EthereumGnosisSafeTxOperation, EthereumGnosisSafeTxRequest, EthereumMessageSignature, EthereumMessageSignatureOneKey, EthereumNetworkInfo, EthereumPublicKey, EthereumPublicKeyOneKey, EthereumSignMessage, EthereumSignMessageEIP712, EthereumSignMessageOneKey, EthereumSignTx, EthereumSignTxEIP1559, EthereumSignTxEIP1559OneKey, EthereumSignTxEIP7702OneKey, EthereumSignTxOneKey, EthereumSignTypedData, EthereumSignTypedDataOneKey, EthereumSignTypedDataQR, EthereumSignTypedHash, EthereumSignTypedHashOneKey, EthereumStructMember, EthereumStructMemberOneKey, EthereumTokenInfo, EthereumTxAck, EthereumTxAckOneKey, EthereumTxRequest, EthereumTxRequestOneKey, EthereumTypedDataSignature, EthereumTypedDataSignatureOneKey, EthereumTypedDataStructAck, EthereumTypedDataStructAckOneKey, EthereumTypedDataStructRequest, EthereumTypedDataStructRequestOneKey, EthereumTypedDataValueAck, EthereumTypedDataValueAckOneKey, EthereumTypedDataValueRequest, EthereumTypedDataValueRequestOneKey, EthereumVerifyMessage, EthereumVerifyMessageOneKey, ExportType, Failure, FailureType, Features, FileInfo, FileInfoList, FilecoinAddress, FilecoinGetAddress, FilecoinSignTx, FilecoinSignedTx, FilesystemDir, FilesystemDirList, FilesystemDirMake, FilesystemDirRemove, FilesystemFile, FilesystemFileDelete, FilesystemFileRead, FilesystemFileWrite, FilesystemFormat, FilesystemPathInfo, FilesystemPathInfoQuery, FilesystemPermissionFix, FirmwareErase, FirmwareErase_ex, FirmwareHash, FirmwareRequest, FirmwareUpdateEmmc, FirmwareUpload, GetAddress, GetDeviceInfo, GetECDHSessionKey, GetEntropy, GetFeatures, GetFirmwareHash, GetNextU2FCounter, GetNonce, GetOwnershipId, GetOwnershipProof, GetPassphraseState, GetPublicKey, GetPublicKeyMultiple, GetWallpaper, HDNodePathType, HDNodeType, IdentityType, Initialize, InputScriptType, InternalInputScriptType, InternalMyAddressRequest, KaspaAddress, KaspaGetAddress, KaspaInputScriptType, KaspaOutpoint, KaspaOutputScriptType, KaspaRequestType, KaspaSignTx, KaspaSignedTx, KaspaTxAckInput, KaspaTxAckOutput, KaspaTxAckPayloadChunk, KaspaTxAckPrevInput, KaspaTxAckPrevMeta, KaspaTxAckPrevOutput, KaspaTxInputAck, KaspaTxInputRequest, KaspaTxRequest, KaspaTxRequestSignature, ListResDir, LnurlAuth, LnurlAuthResp, LockDevice, LogBlockCommand, LowLevelDevice, LowlevelTransportSharedPlugin, MessageFromOneKey, MessageKey, MessageResponse, MessageResponseMap, MessageSignature, MessageType, messages as Messages, MoneroAccountPublicAddress, MoneroAddress, MoneroExportedKeyImage, MoneroGetAddress, MoneroGetTxKeyAck, MoneroGetTxKeyRequest, MoneroGetWatchKey, MoneroKeyImageExportInitAck, MoneroKeyImageExportInitRequest, MoneroKeyImageSyncFinalAck, MoneroKeyImageSyncFinalRequest, MoneroKeyImageSyncStepAck, MoneroKeyImageSyncStepRequest, MoneroLiveRefreshFinalAck, MoneroLiveRefreshFinalRequest, MoneroLiveRefreshStartAck, MoneroLiveRefreshStartRequest, MoneroLiveRefreshStepAck, MoneroLiveRefreshStepRequest, MoneroMultisigKLRki, MoneroNetworkType, MoneroOutputEntry, MoneroRctKeyPublic, MoneroRingCtSig, MoneroSubAddressIndicesList, MoneroTransactionAllInputsSetAck, MoneroTransactionAllInputsSetRequest, MoneroTransactionAllOutSetAck, MoneroTransactionAllOutSetRequest, MoneroTransactionData, MoneroTransactionDestinationEntry, MoneroTransactionFinalAck, MoneroTransactionFinalRequest, MoneroTransactionInitAck, MoneroTransactionInitRequest, MoneroTransactionInputViniAck, MoneroTransactionInputViniRequest, MoneroTransactionInputsPermutationAck, MoneroTransactionInputsPermutationRequest, MoneroTransactionRsigData, MoneroTransactionSetInputAck, MoneroTransactionSetInputRequest, MoneroTransactionSetOutputAck, MoneroTransactionSetOutputRequest, MoneroTransactionSignInputAck, MoneroTransactionSignInputRequest, MoneroTransactionSourceEntry, MoneroTransferDetails, MoneroWatchKey, MultisigRedeemScriptType, NEMAddress, NEMAggregateModification, NEMCosignatoryModification, NEMDecryptMessage, NEMDecryptedMessage, NEMGetAddress, NEMImportanceTransfer, NEMImportanceTransferMode, NEMModificationType, NEMMosaic, NEMMosaicCreation, NEMMosaicDefinition, NEMMosaicLevy, NEMMosaicSupplyChange, NEMProvisionNamespace, NEMSignTx, NEMSignedTx, NEMSupplyChangeType, NEMTransactionCommon, NEMTransfer, NFTWriteData, NFTWriteInfo, NearAddress, NearGetAddress, NearSignTx, NearSignedTx, NeoAddress, NeoGetAddress, NeoSignTx, NeoSignedTx, NervosAddress, NervosGetAddress, NervosSignTx, NervosSignedTx, NervosTxAck, NervosTxRequest, NexaAddress, NexaGetAddress, NexaSignTx, NexaSignedTx, NexaTxInputAck, NexaTxInputRequest, NextU2FCounter, Nonce, NostrDecryptMessage, NostrDecryptedMessage, NostrEncryptMessage, NostrEncryptedMessage, NostrGetPublicKey, NostrPublicKey, NostrSignEvent, NostrSignSchnorr, NostrSignedEvent, NostrSignedSchnorr, OneKeyDeviceCommType, OneKeyDeviceInfo, OneKeyDeviceInfoBase, OneKeyDeviceInfoWithSession, OneKeyDeviceType, OneKeyMobileDeviceInfo, OneKeySEState, OneKeySeType, OnekeyFeatures, OnekeyGetFeatures, OutputScriptType, OwnershipId, OwnershipProof, PROTOCOL_V1_CHUNK_PAYLOAD_SIZE, PROTOCOL_V1_ENVELOPE_HEADER_SIZE, PROTOCOL_V1_HEADER_BYTE, PROTOCOL_V1_MESSAGE_HEADER_SIZE, PROTOCOL_V1_REPORT_ID, PROTOCOL_V1_USB_PACKET_SIZE, PROTOCOL_V2_BLE_FILE_CHUNK_SIZE, PROTOCOL_V2_BLE_FILE_READ_CHUNK_SIZE, PROTOCOL_V2_BLE_FRAME_MAX_BYTES, PROTOCOL_V2_CHANNEL_BLE_UART, PROTOCOL_V2_CHANNEL_SOCKET, PROTOCOL_V2_CHANNEL_USB, PROTOCOL_V2_DEFAULT_RESPONSE_TIMEOUT_MS, PROTOCOL_V2_FILE_CHUNK_SIZE, PROTOCOL_V2_FRAME_MAX_BYTES, PROTOCOL_V2_PACKET_SRC_COMMAND, PROTOCOL_V2_SYS_MESSAGE_THRESHOLD, PROTOCOL_V2_WEBUSB_FILE_CHUNK_SIZE, PassphraseAck, PassphraseRequest, PassphraseState, Path, PaymentRequestMemo, PinMatrixAck, PinMatrixRequest, PinMatrixRequestType, Ping, PolkadotAddress, PolkadotGetAddress, PolkadotSignTx, PolkadotSignedTx, PortfolioUpdate, PreauthorizedRequest, PrevInput, PrevOutput, PrevTx, ProtocolInfo, ProtocolInfoRequest, ProtocolType, ProtocolV1, ProtocolV2, ProtocolV2CallContext, ProtocolV2CallOptions, ProtocolV2Capability, ProtocolV2DeviceInfo, ProtocolV2FailureType, ProtocolV2FrameAssembler, ProtocolV2LinkAdapter, ProtocolV2LinkError, ProtocolV2LinkErrorClassification, ProtocolV2LinkErrorCode, ProtocolV2LinkManager, ProtocolV2LinkManagerOptions, ProtocolV2Schemas, ProtocolV2SequenceCursor, ProtocolV2Session, ProtocolV2SessionOptions, ProtocolV2UsbTransportBase, ProtocolV2UsbTransportBaseOptions, PublicKey, PublicKeyMultiple, ReadSEPublicCert, ReadSEPublicKey, Reboot, RebootToBoardloader, RebootToBootloader, RebootType, RecoveryDevice, RecoveryDeviceType, RefundMemo, RequestType, ResetDevice, ResourceAck, ResourceRequest, ResourceType, ResourceUpdate, ResourceUpload, RippleAddress, RippleGetAddress, RipplePayment, RippleSignTx, RippleSignedTx, SEMessageSignature, SEPublicCert, SEPublicKey, SESignMessage, SafetyCheckLevel, ScdoAddress, ScdoGetAddress, ScdoSignMessage, ScdoSignTx, ScdoSignedMessage, ScdoSignedTx, ScdoTxAck, SdProtect, SdProtectOperationType, SeedRequestType, SelfTest, SetBusy, SetU2FCounter, SetWallpaper, SignIdentity, SignMessage, SignPsbt, SignTx, SignedIdentity, SignedPsbt, SolanaAddress, SolanaGetAddress, SolanaMessageSignature, SolanaOffChainMessageFormat, SolanaOffChainMessageVersion, SolanaSignOffChainMessage, SolanaSignTx, SolanaSignUnsafeMessage, SolanaSignedTx, SolanaTxATADetails, SolanaTxExtraInfo, SpiFlashData, SpiFlashRead, SpiFlashWrite, StarcoinAddress, StarcoinGetAddress, StarcoinGetPublicKey, StarcoinMessageSignature, StarcoinPublicKey, StarcoinSignMessage, StarcoinSignTx, StarcoinSignedTx, StarcoinVerifyMessage, StartSession, StellarAccountMergeOp, StellarAddress, StellarAllowTrustOp, StellarAsset, StellarAssetType, StellarBumpSequenceOp, StellarChangeTrustOp, StellarCreateAccountOp, StellarCreatePassiveSellOfferOp, StellarGetAddress, StellarInvokeHostFunctionOp, StellarManageBuyOfferOp, StellarManageDataOp, StellarManageSellOfferOp, StellarMemoType, StellarPathPaymentStrictReceiveOp, StellarPathPaymentStrictSendOp, StellarPaymentOp, StellarRequestType, StellarSetOptionsOp, StellarSignTx, StellarSignedTx, StellarSignerType, StellarSorobanDataAck, StellarSorobanDataRequest, StellarTxOpRequest, Success, SuiAddress, SuiGetAddress, SuiMessageSignature, SuiSignMessage, SuiSignTx, SuiSignedTx, SuiTxAck, SuiTxRequest, TRANSPORT_EVENT, TextMemo, TezosAddress, TezosBallotOp, TezosBallotType, TezosContractID, TezosContractType, TezosDelegationOp, TezosGetAddress, TezosGetPublicKey, TezosManagerTransfer, TezosOriginationOp, TezosParametersManager, TezosProposalOp, TezosPublicKey, TezosRevealOp, TezosSignTx, TezosSignedTx, TezosTransactionOp, TonAddress, TonGetAddress, TonSignData, TonSignDataType, TonSignMessage, TonSignProof, TonSignedData, TonSignedMessage, TonSignedProof, TonTxAck, TonWalletVersion, TonWorkChain, Transport, TransportCallOptions, TransportDeviceDisconnectEvent, TronAddress, TronCancelAllUnfreezeV2Contract, TronContract, TronDelegateResourceContract, TronFreezeBalanceContract, TronFreezeBalanceV2Contract, TronGetAddress, TronMessageSignature, TronMessageType, TronResourceCode, TronSignMessage, TronSignTx, TronSignedTx, TronTransferContract, TronTriggerSmartContract, TronUnDelegateResourceContract, TronUnfreezeBalanceContract, TronUnfreezeBalanceV2Contract, TronVoteWitnessContract, TronWithdrawBalanceContract, TronWithdrawExpireUnfreezeContract, TxAck, TxAckInput, TxAckInputWrapper, TxAckOutput, TxAckOutputWrapper, TxAckPaymentRequest, TxAckPrevExtraData, TxAckPrevExtraDataWrapper, TxAckPrevInput, TxAckPrevInputWrapper, TxAckPrevMeta, TxAckPrevOutput, TxAckPrevOutputWrapper, TxAckResponse, TxInput, TxInputType, TxOutput, TxOutputBinType, TxOutputType, TxRequest, TxRequestDetailsType, TxRequestSerializedType, TypedCall, UiAnimationCommand, UiAnimationRequest, UiAnimationType, UintType, UnLockDevice, UnLockDeviceResponse, UnlockPath, UnlockedPathRequest, UpgradeFileHeader, VerifyMessage, ViewAmount, ViewDetail, ViewRawData, ViewSignLayout, ViewSignPage, ViewTip, ViewTipType, ViewVerifyPage, Vote, WL_OperationType, Wallpaper, WallpaperTarget, WipeDevice, WordAck, WordRequest, WordRequestType, WriteSEPrivateKey, WriteSEPublicCert, ZoomRequest, bytesToHex, concatUint8Arrays, _default as default, experimental_field, experimental_message, facotry, getErrorMessage, hexToBytes, isProtocolV2LinkError, probeProtocolV2, index as protocolV1, protocolV2Codec as protocolV2, withProtocolTimeout };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAG7C,OAAO,EAKL,cAAc,EACf,MAAM,iBAAiB,CAAC;AAEzB,OAAO,KAAK,eAAe,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAC;AAC/E,OAAO,EAEL,wBAAwB,EACxB,iBAAiB,EACjB,UAAU,EAEV,eAAe,EACf,UAAU,EACV,eAAe,EACf,mBAAmB,EACpB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,KAAK,MAAM,0BAA0B,CAAC;AAKlD,YAAY,EACV,SAAS,EACT,YAAY,EACZ,gBAAgB,EAChB,sBAAsB,EACtB,2BAA2B,EAC3B,iBAAiB,EACjB,oBAAoB,EACpB,6BAA6B,EAC7B,cAAc,EACd,oBAAoB,EACpB,oBAAoB,EACpB,YAAY,GACb,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AAExC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,OAAO,KAAK,UAAU,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,gBAAgB,CAAC;AAC7C,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAElD,wBAsBE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAG7C,OAAO,EAKL,cAAc,EACf,MAAM,iBAAiB,CAAC;AAEzB,OAAO,KAAK,eAAe,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAC;AAC/E,OAAO,EAEL,wBAAwB,EACxB,iBAAiB,EACjB,UAAU,EAEV,eAAe,EACf,UAAU,EACV,eAAe,EACf,mBAAmB,EACpB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,KAAK,MAAM,0BAA0B,CAAC;AAKlD,YAAY,EACV,SAAS,EACT,YAAY,EACZ,gBAAgB,EAChB,sBAAsB,EACtB,2BAA2B,EAC3B,iBAAiB,EACjB,oBAAoB,EACpB,6BAA6B,EAC7B,cAAc,EACd,oBAAoB,EACpB,oBAAoB,EACpB,YAAY,EACZ,8BAA8B,GAC/B,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AACpD,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AAExC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,OAAO,KAAK,UAAU,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,gBAAgB,CAAC;AAC7C,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAElD,wBAsBE"}
package/dist/index.js CHANGED
@@ -1291,6 +1291,10 @@ class ProtocolV2UsbTransportBase {
1291
1291
  }
1292
1292
  }
1293
1293
 
1294
+ const TRANSPORT_EVENT = {
1295
+ DEVICE_DISCONNECT: 'transport-device-disconnect',
1296
+ };
1297
+
1294
1298
  exports.AptosTransactionType = void 0;
1295
1299
  (function (AptosTransactionType) {
1296
1300
  AptosTransactionType[AptosTransactionType["STANDARD"] = 0] = "STANDARD";
@@ -1760,6 +1764,18 @@ exports.MoneroNetworkType = void 0;
1760
1764
  MoneroNetworkType[MoneroNetworkType["STAGENET"] = 2] = "STAGENET";
1761
1765
  MoneroNetworkType[MoneroNetworkType["FAKECHAIN"] = 3] = "FAKECHAIN";
1762
1766
  })(exports.MoneroNetworkType || (exports.MoneroNetworkType = {}));
1767
+ exports.UiAnimationType = void 0;
1768
+ (function (UiAnimationType) {
1769
+ UiAnimationType[UiAnimationType["Unknown"] = 0] = "Unknown";
1770
+ UiAnimationType[UiAnimationType["Signing"] = 1] = "Signing";
1771
+ })(exports.UiAnimationType || (exports.UiAnimationType = {}));
1772
+ exports.UiAnimationCommand = void 0;
1773
+ (function (UiAnimationCommand) {
1774
+ UiAnimationCommand[UiAnimationCommand["CommandUnknown"] = 0] = "CommandUnknown";
1775
+ UiAnimationCommand[UiAnimationCommand["Start"] = 1] = "Start";
1776
+ UiAnimationCommand[UiAnimationCommand["Stop"] = 2] = "Stop";
1777
+ UiAnimationCommand[UiAnimationCommand["Refresh"] = 3] = "Refresh";
1778
+ })(exports.UiAnimationCommand || (exports.UiAnimationCommand = {}));
1763
1779
  exports.ViewTipType = void 0;
1764
1780
  (function (ViewTipType) {
1765
1781
  ViewTipType[ViewTipType["Default"] = 0] = "Default";
@@ -1867,6 +1883,12 @@ exports.DeviceSessionErrorCode = void 0;
1867
1883
  DeviceSessionErrorCode[DeviceSessionErrorCode["DeviceSessionError_PassphraseDisabled"] = 4] = "DeviceSessionError_PassphraseDisabled";
1868
1884
  DeviceSessionErrorCode[DeviceSessionErrorCode["DeviceSessionError_Busy"] = 5] = "DeviceSessionError_Busy";
1869
1885
  })(exports.DeviceSessionErrorCode || (exports.DeviceSessionErrorCode = {}));
1886
+ exports.DeviceSessionPinType = void 0;
1887
+ (function (DeviceSessionPinType) {
1888
+ DeviceSessionPinType[DeviceSessionPinType["Any"] = 1] = "Any";
1889
+ DeviceSessionPinType[DeviceSessionPinType["Main"] = 2] = "Main";
1890
+ DeviceSessionPinType[DeviceSessionPinType["AttachToPin"] = 3] = "AttachToPin";
1891
+ })(exports.DeviceSessionPinType || (exports.DeviceSessionPinType = {}));
1870
1892
  exports.DeviceSessionAskPin_FailureSubCodes = void 0;
1871
1893
  (function (DeviceSessionAskPin_FailureSubCodes) {
1872
1894
  DeviceSessionAskPin_FailureSubCodes[DeviceSessionAskPin_FailureSubCodes["UserCancel"] = 1] = "UserCancel";
@@ -2008,6 +2030,8 @@ var messages = /*#__PURE__*/Object.freeze({
2008
2030
  get CommandFlags () { return exports.CommandFlags; },
2009
2031
  get WallpaperTarget () { return exports.WallpaperTarget; },
2010
2032
  get MoneroNetworkType () { return exports.MoneroNetworkType; },
2033
+ get UiAnimationType () { return exports.UiAnimationType; },
2034
+ get UiAnimationCommand () { return exports.UiAnimationCommand; },
2011
2035
  get ViewTipType () { return exports.ViewTipType; },
2012
2036
  get ViewSignLayout () { return exports.ViewSignLayout; },
2013
2037
  get DeviceErrorCode () { return exports.DeviceErrorCode; },
@@ -2020,6 +2044,7 @@ var messages = /*#__PURE__*/Object.freeze({
2020
2044
  get DeviceSeType () { return exports.DeviceSeType; },
2021
2045
  get DeviceSEState () { return exports.DeviceSEState; },
2022
2046
  get DeviceSessionErrorCode () { return exports.DeviceSessionErrorCode; },
2047
+ get DeviceSessionPinType () { return exports.DeviceSessionPinType; },
2023
2048
  get DeviceSessionAskPin_FailureSubCodes () { return exports.DeviceSessionAskPin_FailureSubCodes; },
2024
2049
  get DevOnboardingStep () { return exports.DevOnboardingStep; },
2025
2050
  get DevOnboardingPhase () { return exports.DevOnboardingPhase; },
@@ -2083,6 +2108,7 @@ exports.ProtocolV2LinkManager = ProtocolV2LinkManager;
2083
2108
  exports.ProtocolV2SequenceCursor = ProtocolV2SequenceCursor;
2084
2109
  exports.ProtocolV2Session = ProtocolV2Session;
2085
2110
  exports.ProtocolV2UsbTransportBase = ProtocolV2UsbTransportBase;
2111
+ exports.TRANSPORT_EVENT = TRANSPORT_EVENT;
2086
2112
  exports.bytesToHex = bytesToHex;
2087
2113
  exports.concatUint8Arrays = concatUint8Arrays;
2088
2114
  exports["default"] = index;
@@ -3501,6 +3501,20 @@ export declare enum MoneroNetworkType {
3501
3501
  STAGENET = 2,
3502
3502
  FAKECHAIN = 3
3503
3503
  }
3504
+ export declare enum UiAnimationType {
3505
+ Unknown = 0,
3506
+ Signing = 1
3507
+ }
3508
+ export declare enum UiAnimationCommand {
3509
+ CommandUnknown = 0,
3510
+ Start = 1,
3511
+ Stop = 2,
3512
+ Refresh = 3
3513
+ }
3514
+ export type UiAnimationRequest = {
3515
+ command: UiAnimationCommand;
3516
+ type?: UiAnimationType;
3517
+ };
3504
3518
  export type ViewAmount = {
3505
3519
  is_unlimited: boolean;
3506
3520
  num: string;
@@ -3792,28 +3806,24 @@ export declare enum DeviceSessionErrorCode {
3792
3806
  DeviceSessionError_PassphraseDisabled = 4,
3793
3807
  DeviceSessionError_Busy = 5
3794
3808
  }
3795
- export type DeviceSessionResume = {
3796
- session_id: string;
3797
- };
3798
- export type DeviceSessionHostPassphrase = {
3799
- passphrase: string;
3800
- };
3801
- export type DeviceSessionPassphraseOnDevice = {};
3802
- export type DeviceSessionAttachPinOnDevice = {};
3803
- export type DeviceSessionSelect = {
3804
- host_passphrase?: DeviceSessionHostPassphrase;
3805
- passphrase_on_device?: DeviceSessionPassphraseOnDevice;
3806
- attach_pin_on_device?: DeviceSessionAttachPinOnDevice;
3807
- };
3808
- export type DeviceSessionOpen = {
3809
- resume?: DeviceSessionResume;
3810
- select?: DeviceSessionSelect;
3809
+ export type DeviceSessionGet = {
3810
+ session_id?: string;
3811
3811
  };
3812
3812
  export type DeviceSession = {
3813
3813
  session_id?: string;
3814
3814
  btc_test_address?: string;
3815
3815
  };
3816
- export type DeviceSessionAskPin = {};
3816
+ export declare enum DeviceSessionPinType {
3817
+ Any = 1,
3818
+ Main = 2,
3819
+ AttachToPin = 3
3820
+ }
3821
+ export type DeviceSessionAskPin = {
3822
+ type?: DeviceSessionPinType;
3823
+ };
3824
+ export type DeviceSessionAskPassphrase = {
3825
+ passphrase?: string;
3826
+ };
3817
3827
  export declare enum DeviceSessionAskPin_FailureSubCodes {
3818
3828
  UserCancel = 1
3819
3829
  }
@@ -4550,6 +4560,7 @@ export type MessageType = {
4550
4560
  Wallpaper: Wallpaper;
4551
4561
  UnlockPath: UnlockPath;
4552
4562
  UnlockedPathRequest: UnlockedPathRequest;
4563
+ UiAnimationRequest: UiAnimationRequest;
4553
4564
  ViewAmount: ViewAmount;
4554
4565
  ViewDetail: ViewDetail;
4555
4566
  ViewTip: ViewTip;
@@ -4588,14 +4599,10 @@ export type MessageType = {
4588
4599
  DeviceInfoTargets: DeviceInfoTargets;
4589
4600
  DeviceInfoTypes: DeviceInfoTypes;
4590
4601
  DeviceInfoGet: DeviceInfoGet;
4591
- DeviceSessionResume: DeviceSessionResume;
4592
- DeviceSessionHostPassphrase: DeviceSessionHostPassphrase;
4593
- DeviceSessionPassphraseOnDevice: DeviceSessionPassphraseOnDevice;
4594
- DeviceSessionAttachPinOnDevice: DeviceSessionAttachPinOnDevice;
4595
- DeviceSessionSelect: DeviceSessionSelect;
4596
- DeviceSessionOpen: DeviceSessionOpen;
4602
+ DeviceSessionGet: DeviceSessionGet;
4597
4603
  DeviceSession: DeviceSession;
4598
4604
  DeviceSessionAskPin: DeviceSessionAskPin;
4605
+ DeviceSessionAskPassphrase: DeviceSessionAskPassphrase;
4599
4606
  DeviceStatus: DeviceStatus;
4600
4607
  DeviceStatusGet: DeviceStatusGet;
4601
4608
  DevOnboardingSetupStatus: DevOnboardingSetupStatus;