@onekeyfe/hd-transport 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.
@@ -1057,7 +1057,7 @@ describe('Protocol V2 framing and session', () => {
1057
1057
  });
1058
1058
 
1059
1059
  await session.call('Ping', { message: 'ping' }, { timeoutMs: 123 });
1060
- await session.call('FileWrite', {}, { timeoutMs: 456 });
1060
+ await session.call('FileWrite', {}, { timeoutMs: 456, writeWithResponse: true });
1061
1061
  await session.call('Ping', { message: 'default-timeout' });
1062
1062
 
1063
1063
  const normalizeContext = ({ signal, ...context }) => ({
@@ -1076,6 +1076,7 @@ describe('Protocol V2 framing and session', () => {
1076
1076
  messageName: 'FileWrite',
1077
1077
  timeoutMs: 456,
1078
1078
  highVolume: true,
1079
+ writeWithResponse: true,
1079
1080
  generation: 7,
1080
1081
  signalAborted: false,
1081
1082
  },
@@ -1099,6 +1100,7 @@ describe('Protocol V2 framing and session', () => {
1099
1100
  messageName: 'FileWrite',
1100
1101
  timeoutMs: 456,
1101
1102
  highVolume: true,
1103
+ writeWithResponse: true,
1102
1104
  generation: 7,
1103
1105
  signalAborted: false,
1104
1106
  },
package/dist/index.d.ts CHANGED
@@ -319,6 +319,8 @@ type TransportCallOptions = {
319
319
  expectedTypes?: string[];
320
320
  intermediateTypes?: string[];
321
321
  onIntermediateResponse?: (response: MessageFromOneKey) => void;
322
+ /** Prefer acknowledged BLE characteristic writes for this call when supported. */
323
+ writeWithResponse?: boolean;
322
324
  };
323
325
  type ITransportInitFn = (logger?: any, emitter?: EventEmitter, plugin?: LowlevelTransportSharedPlugin) => Promise<string>;
324
326
  type Transport = {
@@ -1412,6 +1414,23 @@ type ECDHSessionKey = {
1412
1414
  session_key: string;
1413
1415
  public_key?: string;
1414
1416
  };
1417
+ type CosiCommit = {
1418
+ address_n: number[];
1419
+ data?: string;
1420
+ };
1421
+ type CosiCommitment = {
1422
+ commitment?: string;
1423
+ pubkey?: string;
1424
+ };
1425
+ type CosiSign = {
1426
+ address_n: number[];
1427
+ data?: string;
1428
+ global_commitment?: string;
1429
+ global_pubkey?: string;
1430
+ };
1431
+ type CosiSignature = {
1432
+ signature: string;
1433
+ };
1415
1434
  type Path = {
1416
1435
  address_n: number[];
1417
1436
  };
@@ -1425,6 +1444,77 @@ type EcdsaPublicKeys = {
1425
1444
  hd_nodes: HDNodeType[];
1426
1445
  root_fingerprint?: number;
1427
1446
  };
1447
+ declare enum DebugSwipeDirection {
1448
+ UP = 0,
1449
+ DOWN = 1,
1450
+ LEFT = 2,
1451
+ RIGHT = 3
1452
+ }
1453
+ type DebugLinkDecision = {
1454
+ yes_no?: boolean;
1455
+ swipe?: DebugSwipeDirection;
1456
+ input?: string;
1457
+ x?: number;
1458
+ y?: number;
1459
+ wait?: boolean;
1460
+ hold_ms?: number;
1461
+ };
1462
+ type DebugLinkLayout = {
1463
+ lines: string[];
1464
+ };
1465
+ type DebugLinkReseedRandom = {
1466
+ value?: number;
1467
+ };
1468
+ type DebugLinkRecordScreen = {
1469
+ target_directory?: string;
1470
+ };
1471
+ type DebugLinkGetState = {
1472
+ wait_word_list?: boolean;
1473
+ wait_word_pos?: boolean;
1474
+ wait_layout?: boolean;
1475
+ };
1476
+ type DebugLinkState = {
1477
+ layout?: string;
1478
+ pin?: string;
1479
+ matrix?: string;
1480
+ mnemonic_secret?: string;
1481
+ node?: HDNodeType;
1482
+ passphrase_protection?: boolean;
1483
+ reset_word?: string;
1484
+ reset_entropy?: string;
1485
+ recovery_fake_word?: string;
1486
+ recovery_word_pos?: number;
1487
+ reset_word_pos?: number;
1488
+ mnemonic_type?: BackupType;
1489
+ layout_lines: string[];
1490
+ };
1491
+ type DebugLinkStop = {};
1492
+ type DebugLinkLog = {
1493
+ level?: number;
1494
+ bucket?: string;
1495
+ text?: string;
1496
+ };
1497
+ type DebugLinkMemoryRead = {
1498
+ address?: number;
1499
+ length?: number;
1500
+ };
1501
+ type DebugLinkMemory = {
1502
+ memory?: string;
1503
+ };
1504
+ type DebugLinkMemoryWrite = {
1505
+ address?: number;
1506
+ memory?: string;
1507
+ flash?: boolean;
1508
+ };
1509
+ type DebugLinkFlashErase = {
1510
+ sector?: number;
1511
+ };
1512
+ type DebugLinkEraseSdCard = {
1513
+ format?: boolean;
1514
+ };
1515
+ type DebugLinkWatchLayout = {
1516
+ watch?: boolean;
1517
+ };
1428
1518
  type DnxGetAddress = {
1429
1519
  address_n: number[];
1430
1520
  show_display?: boolean;
@@ -2404,6 +2494,17 @@ type Entropy = {
2404
2494
  entropy: string;
2405
2495
  };
2406
2496
  type WipeDevice = {};
2497
+ type LoadDevice = {
2498
+ mnemonics: string[];
2499
+ pin?: string;
2500
+ passphrase_protection?: boolean;
2501
+ language?: string;
2502
+ label?: string;
2503
+ skip_checksum?: boolean;
2504
+ u2f_counter?: number;
2505
+ needs_backup?: boolean;
2506
+ no_backup?: boolean;
2507
+ };
2407
2508
  type ResetDevice = {
2408
2509
  display_random?: boolean;
2409
2510
  strength?: number;
@@ -2870,6 +2971,22 @@ type MoneroLiveRefreshStepAck = {
2870
2971
  };
2871
2972
  type MoneroLiveRefreshFinalRequest = {};
2872
2973
  type MoneroLiveRefreshFinalAck = {};
2974
+ type DebugMoneroDiagRequest = {
2975
+ ins?: number;
2976
+ p1?: number;
2977
+ p2?: number;
2978
+ pd: number[];
2979
+ data1?: string;
2980
+ data2?: string;
2981
+ };
2982
+ type DebugMoneroDiagAck = {
2983
+ ins?: number;
2984
+ p1?: number;
2985
+ p2?: number;
2986
+ pd: number[];
2987
+ data1?: string;
2988
+ data2?: string;
2989
+ };
2873
2990
  type NearGetAddress = {
2874
2991
  address_n: number[];
2875
2992
  show_display?: boolean;
@@ -3767,6 +3884,30 @@ type TronMessageSignature = {
3767
3884
  address: string;
3768
3885
  signature: string;
3769
3886
  };
3887
+ type WebAuthnListResidentCredentials = {};
3888
+ type WebAuthnAddResidentCredential = {
3889
+ credential_id?: string;
3890
+ };
3891
+ type WebAuthnRemoveResidentCredential = {
3892
+ index?: number;
3893
+ };
3894
+ type WebAuthnCredential = {
3895
+ index?: number;
3896
+ id?: string;
3897
+ rp_id?: string;
3898
+ rp_name?: string;
3899
+ user_id?: string;
3900
+ user_name?: string;
3901
+ user_display_name?: string;
3902
+ creation_time?: number;
3903
+ hmac_secret?: boolean;
3904
+ use_sign_count?: boolean;
3905
+ algorithm?: number;
3906
+ curve?: number;
3907
+ };
3908
+ type WebAuthnCredentials = {
3909
+ credentials: WebAuthnCredential[];
3910
+ };
3770
3911
  type facotry = {};
3771
3912
  declare enum CommandFlags {
3772
3913
  Default = 0,
@@ -4488,9 +4629,27 @@ type MessageType = {
4488
4629
  SignedIdentity: SignedIdentity;
4489
4630
  GetECDHSessionKey: GetECDHSessionKey;
4490
4631
  ECDHSessionKey: ECDHSessionKey;
4632
+ CosiCommit: CosiCommit;
4633
+ CosiCommitment: CosiCommitment;
4634
+ CosiSign: CosiSign;
4635
+ CosiSignature: CosiSignature;
4491
4636
  Path: Path;
4492
4637
  BatchGetPublickeys: BatchGetPublickeys;
4493
4638
  EcdsaPublicKeys: EcdsaPublicKeys;
4639
+ DebugLinkDecision: DebugLinkDecision;
4640
+ DebugLinkLayout: DebugLinkLayout;
4641
+ DebugLinkReseedRandom: DebugLinkReseedRandom;
4642
+ DebugLinkRecordScreen: DebugLinkRecordScreen;
4643
+ DebugLinkGetState: DebugLinkGetState;
4644
+ DebugLinkState: DebugLinkState;
4645
+ DebugLinkStop: DebugLinkStop;
4646
+ DebugLinkLog: DebugLinkLog;
4647
+ DebugLinkMemoryRead: DebugLinkMemoryRead;
4648
+ DebugLinkMemory: DebugLinkMemory;
4649
+ DebugLinkMemoryWrite: DebugLinkMemoryWrite;
4650
+ DebugLinkFlashErase: DebugLinkFlashErase;
4651
+ DebugLinkEraseSdCard: DebugLinkEraseSdCard;
4652
+ DebugLinkWatchLayout: DebugLinkWatchLayout;
4494
4653
  DnxGetAddress: DnxGetAddress;
4495
4654
  DnxAddress: DnxAddress;
4496
4655
  DnxSignTx: DnxSignTx;
@@ -4628,6 +4787,7 @@ type MessageType = {
4628
4787
  GetEntropy: GetEntropy;
4629
4788
  Entropy: Entropy;
4630
4789
  WipeDevice: WipeDevice;
4790
+ LoadDevice: LoadDevice;
4631
4791
  ResetDevice: ResetDevice;
4632
4792
  BackupDevice: BackupDevice;
4633
4793
  EntropyRequest: EntropyRequest;
@@ -4735,6 +4895,8 @@ type MessageType = {
4735
4895
  MoneroLiveRefreshStepAck: MoneroLiveRefreshStepAck;
4736
4896
  MoneroLiveRefreshFinalRequest: MoneroLiveRefreshFinalRequest;
4737
4897
  MoneroLiveRefreshFinalAck: MoneroLiveRefreshFinalAck;
4898
+ DebugMoneroDiagRequest: DebugMoneroDiagRequest;
4899
+ DebugMoneroDiagAck: DebugMoneroDiagAck;
4738
4900
  NearGetAddress: NearGetAddress;
4739
4901
  NearAddress: NearAddress;
4740
4902
  NearSignTx: NearSignTx;
@@ -4889,6 +5051,11 @@ type MessageType = {
4889
5051
  TronSignedTx: TronSignedTx;
4890
5052
  TronSignMessage: TronSignMessage;
4891
5053
  TronMessageSignature: TronMessageSignature;
5054
+ WebAuthnListResidentCredentials: WebAuthnListResidentCredentials;
5055
+ WebAuthnAddResidentCredential: WebAuthnAddResidentCredential;
5056
+ WebAuthnRemoveResidentCredential: WebAuthnRemoveResidentCredential;
5057
+ WebAuthnCredential: WebAuthnCredential;
5058
+ WebAuthnCredentials: WebAuthnCredentials;
4892
5059
  facotry: facotry;
4893
5060
  experimental_message: experimental_message;
4894
5061
  experimental_field: experimental_field;
@@ -5207,9 +5374,29 @@ type messages_SignIdentity = SignIdentity;
5207
5374
  type messages_SignedIdentity = SignedIdentity;
5208
5375
  type messages_GetECDHSessionKey = GetECDHSessionKey;
5209
5376
  type messages_ECDHSessionKey = ECDHSessionKey;
5377
+ type messages_CosiCommit = CosiCommit;
5378
+ type messages_CosiCommitment = CosiCommitment;
5379
+ type messages_CosiSign = CosiSign;
5380
+ type messages_CosiSignature = CosiSignature;
5210
5381
  type messages_Path = Path;
5211
5382
  type messages_BatchGetPublickeys = BatchGetPublickeys;
5212
5383
  type messages_EcdsaPublicKeys = EcdsaPublicKeys;
5384
+ type messages_DebugSwipeDirection = DebugSwipeDirection;
5385
+ declare const messages_DebugSwipeDirection: typeof DebugSwipeDirection;
5386
+ type messages_DebugLinkDecision = DebugLinkDecision;
5387
+ type messages_DebugLinkLayout = DebugLinkLayout;
5388
+ type messages_DebugLinkReseedRandom = DebugLinkReseedRandom;
5389
+ type messages_DebugLinkRecordScreen = DebugLinkRecordScreen;
5390
+ type messages_DebugLinkGetState = DebugLinkGetState;
5391
+ type messages_DebugLinkState = DebugLinkState;
5392
+ type messages_DebugLinkStop = DebugLinkStop;
5393
+ type messages_DebugLinkLog = DebugLinkLog;
5394
+ type messages_DebugLinkMemoryRead = DebugLinkMemoryRead;
5395
+ type messages_DebugLinkMemory = DebugLinkMemory;
5396
+ type messages_DebugLinkMemoryWrite = DebugLinkMemoryWrite;
5397
+ type messages_DebugLinkFlashErase = DebugLinkFlashErase;
5398
+ type messages_DebugLinkEraseSdCard = DebugLinkEraseSdCard;
5399
+ type messages_DebugLinkWatchLayout = DebugLinkWatchLayout;
5213
5400
  type messages_DnxGetAddress = DnxGetAddress;
5214
5401
  type messages_DnxAddress = DnxAddress;
5215
5402
  type messages_DnxSignTx = DnxSignTx;
@@ -5383,6 +5570,7 @@ type messages_Cancel = Cancel;
5383
5570
  type messages_GetEntropy = GetEntropy;
5384
5571
  type messages_Entropy = Entropy;
5385
5572
  type messages_WipeDevice = WipeDevice;
5573
+ type messages_LoadDevice = LoadDevice;
5386
5574
  type messages_ResetDevice = ResetDevice;
5387
5575
  type messages_BackupDevice = BackupDevice;
5388
5576
  type messages_EntropyRequest = EntropyRequest;
@@ -5501,6 +5689,8 @@ type messages_MoneroLiveRefreshStepRequest = MoneroLiveRefreshStepRequest;
5501
5689
  type messages_MoneroLiveRefreshStepAck = MoneroLiveRefreshStepAck;
5502
5690
  type messages_MoneroLiveRefreshFinalRequest = MoneroLiveRefreshFinalRequest;
5503
5691
  type messages_MoneroLiveRefreshFinalAck = MoneroLiveRefreshFinalAck;
5692
+ type messages_DebugMoneroDiagRequest = DebugMoneroDiagRequest;
5693
+ type messages_DebugMoneroDiagAck = DebugMoneroDiagAck;
5504
5694
  type messages_NearGetAddress = NearGetAddress;
5505
5695
  type messages_NearAddress = NearAddress;
5506
5696
  type messages_NearSignTx = NearSignTx;
@@ -5689,6 +5879,11 @@ type messages_TronMessageType = TronMessageType;
5689
5879
  declare const messages_TronMessageType: typeof TronMessageType;
5690
5880
  type messages_TronSignMessage = TronSignMessage;
5691
5881
  type messages_TronMessageSignature = TronMessageSignature;
5882
+ type messages_WebAuthnListResidentCredentials = WebAuthnListResidentCredentials;
5883
+ type messages_WebAuthnAddResidentCredential = WebAuthnAddResidentCredential;
5884
+ type messages_WebAuthnRemoveResidentCredential = WebAuthnRemoveResidentCredential;
5885
+ type messages_WebAuthnCredential = WebAuthnCredential;
5886
+ type messages_WebAuthnCredentials = WebAuthnCredentials;
5692
5887
  type messages_facotry = facotry;
5693
5888
  type messages_CommandFlags = CommandFlags;
5694
5889
  declare const messages_CommandFlags: typeof CommandFlags;
@@ -6027,9 +6222,28 @@ declare namespace messages {
6027
6222
  messages_SignedIdentity as SignedIdentity,
6028
6223
  messages_GetECDHSessionKey as GetECDHSessionKey,
6029
6224
  messages_ECDHSessionKey as ECDHSessionKey,
6225
+ messages_CosiCommit as CosiCommit,
6226
+ messages_CosiCommitment as CosiCommitment,
6227
+ messages_CosiSign as CosiSign,
6228
+ messages_CosiSignature as CosiSignature,
6030
6229
  messages_Path as Path,
6031
6230
  messages_BatchGetPublickeys as BatchGetPublickeys,
6032
6231
  messages_EcdsaPublicKeys as EcdsaPublicKeys,
6232
+ messages_DebugSwipeDirection as DebugSwipeDirection,
6233
+ messages_DebugLinkDecision as DebugLinkDecision,
6234
+ messages_DebugLinkLayout as DebugLinkLayout,
6235
+ messages_DebugLinkReseedRandom as DebugLinkReseedRandom,
6236
+ messages_DebugLinkRecordScreen as DebugLinkRecordScreen,
6237
+ messages_DebugLinkGetState as DebugLinkGetState,
6238
+ messages_DebugLinkState as DebugLinkState,
6239
+ messages_DebugLinkStop as DebugLinkStop,
6240
+ messages_DebugLinkLog as DebugLinkLog,
6241
+ messages_DebugLinkMemoryRead as DebugLinkMemoryRead,
6242
+ messages_DebugLinkMemory as DebugLinkMemory,
6243
+ messages_DebugLinkMemoryWrite as DebugLinkMemoryWrite,
6244
+ messages_DebugLinkFlashErase as DebugLinkFlashErase,
6245
+ messages_DebugLinkEraseSdCard as DebugLinkEraseSdCard,
6246
+ messages_DebugLinkWatchLayout as DebugLinkWatchLayout,
6033
6247
  messages_DnxGetAddress as DnxGetAddress,
6034
6248
  messages_DnxAddress as DnxAddress,
6035
6249
  messages_DnxSignTx as DnxSignTx,
@@ -6188,6 +6402,7 @@ declare namespace messages {
6188
6402
  messages_GetEntropy as GetEntropy,
6189
6403
  messages_Entropy as Entropy,
6190
6404
  messages_WipeDevice as WipeDevice,
6405
+ messages_LoadDevice as LoadDevice,
6191
6406
  messages_ResetDevice as ResetDevice,
6192
6407
  messages_BackupDevice as BackupDevice,
6193
6408
  messages_EntropyRequest as EntropyRequest,
@@ -6301,6 +6516,8 @@ declare namespace messages {
6301
6516
  messages_MoneroLiveRefreshStepAck as MoneroLiveRefreshStepAck,
6302
6517
  messages_MoneroLiveRefreshFinalRequest as MoneroLiveRefreshFinalRequest,
6303
6518
  messages_MoneroLiveRefreshFinalAck as MoneroLiveRefreshFinalAck,
6519
+ messages_DebugMoneroDiagRequest as DebugMoneroDiagRequest,
6520
+ messages_DebugMoneroDiagAck as DebugMoneroDiagAck,
6304
6521
  messages_NearGetAddress as NearGetAddress,
6305
6522
  messages_NearAddress as NearAddress,
6306
6523
  messages_NearSignTx as NearSignTx,
@@ -6472,6 +6689,11 @@ declare namespace messages {
6472
6689
  messages_TronMessageType as TronMessageType,
6473
6690
  messages_TronSignMessage as TronSignMessage,
6474
6691
  messages_TronMessageSignature as TronMessageSignature,
6692
+ messages_WebAuthnListResidentCredentials as WebAuthnListResidentCredentials,
6693
+ messages_WebAuthnAddResidentCredential as WebAuthnAddResidentCredential,
6694
+ messages_WebAuthnRemoveResidentCredential as WebAuthnRemoveResidentCredential,
6695
+ messages_WebAuthnCredential as WebAuthnCredential,
6696
+ messages_WebAuthnCredentials as WebAuthnCredentials,
6475
6697
  messages_facotry as facotry,
6476
6698
  messages_CommandFlags as CommandFlags,
6477
6699
  messages_experimental_message as experimental_message,
@@ -6601,6 +6823,7 @@ type ProtocolV2CallContext = {
6601
6823
  messageName: string;
6602
6824
  timeoutMs?: number;
6603
6825
  highVolume: boolean;
6826
+ writeWithResponse?: boolean;
6604
6827
  generation: number;
6605
6828
  signal: AbortSignal;
6606
6829
  };
@@ -6627,6 +6850,7 @@ type ProtocolV2CallOptions = {
6627
6850
  expectedTypes?: string[];
6628
6851
  intermediateTypes?: string[];
6629
6852
  onIntermediateResponse?: (response: MessageFromOneKey) => void;
6853
+ writeWithResponse?: boolean;
6630
6854
  };
6631
6855
 
6632
6856
  declare function hexToBytes(hex: string): Uint8Array;
@@ -6872,4 +7096,4 @@ declare const _default: {
6872
7096
  withProtocolTimeout: typeof withProtocolTimeout;
6873
7097
  };
6874
7098
 
6875
- 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, 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, DeviceMiscUsbMscControl, DeviceReboot, DeviceRebootType, DeviceSEInfo, DeviceSEState, DeviceSeType, DeviceSession, DeviceSessionAskPassphrase, DeviceSessionAskPin, DeviceSessionAskPin_FailureSubCodes, DeviceSessionErrorCode, DeviceSessionGet, DeviceSessionPinType, DeviceSessionSeedDomain, 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, 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, NftUpdate, Nonce, NostrDecryptMessage, NostrDecryptedMessage, NostrEncryptMessage, NostrEncryptedMessage, NostrGetPublicKey, NostrPublicKey, NostrSignEvent, NostrSignSchnorr, NostrSignedEvent, NostrSignedSchnorr, OnboardingPhase, OnboardingSetupKind, OnboardingSetupMethod, OnboardingSetupStatus, OnboardingStatus, OnboardingStatusGet, OnboardingStep, 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, ProtocolV2BleFrameWriterOptions, 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, 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, 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, WipeDevice, WordAck, WordRequest, WordRequestType, WriteSEPrivateKey, WriteSEPublicCert, ZoomRequest, bytesToHex, concatUint8Arrays, createTransportCallLog, _default as default, experimental_field, experimental_message, facotry, getErrorMessage, getSafeTransportLogPayload, hexToBytes, isProtocolV2LinkError, probeProtocolV2, index as protocolV1, protocolV2Codec as protocolV2, shouldSuppressHighVolumeCallLog, withProtocolTimeout, writeProtocolV2BleFrame };
7099
+ 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, CosiCommit, CosiCommitment, CosiSign, CosiSignature, CosmosAddress, CosmosGetAddress, CosmosSignTx, CosmosSignedTx, DebugLinkDecision, DebugLinkEraseSdCard, DebugLinkFlashErase, DebugLinkGetState, DebugLinkLayout, DebugLinkLog, DebugLinkMemory, DebugLinkMemoryRead, DebugLinkMemoryWrite, DebugLinkRecordScreen, DebugLinkReseedRandom, DebugLinkState, DebugLinkStop, DebugLinkWatchLayout, DebugMoneroDiagAck, DebugMoneroDiagRequest, DebugSwipeDirection, DecredStakingSpendType, Deprecated_PassphraseStateAck, Deprecated_PassphraseStateRequest, 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, DeviceMiscUsbMscControl, DeviceReboot, DeviceRebootType, DeviceSEInfo, DeviceSEState, DeviceSeType, DeviceSession, DeviceSessionAskPassphrase, DeviceSessionAskPin, DeviceSessionAskPin_FailureSubCodes, DeviceSessionErrorCode, DeviceSessionGet, DeviceSessionPinType, DeviceSessionSeedDomain, 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, 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, LoadDevice, 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, NftUpdate, Nonce, NostrDecryptMessage, NostrDecryptedMessage, NostrEncryptMessage, NostrEncryptedMessage, NostrGetPublicKey, NostrPublicKey, NostrSignEvent, NostrSignSchnorr, NostrSignedEvent, NostrSignedSchnorr, OnboardingPhase, OnboardingSetupKind, OnboardingSetupMethod, OnboardingSetupStatus, OnboardingStatus, OnboardingStatusGet, OnboardingStep, 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, ProtocolV2BleFrameWriterOptions, 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, 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, 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, WebAuthnAddResidentCredential, WebAuthnCredential, WebAuthnCredentials, WebAuthnListResidentCredentials, WebAuthnRemoveResidentCredential, WipeDevice, WordAck, WordRequest, WordRequestType, WriteSEPrivateKey, WriteSEPublicCert, ZoomRequest, bytesToHex, concatUint8Arrays, createTransportCallLog, _default as default, experimental_field, experimental_message, facotry, getErrorMessage, getSafeTransportLogPayload, hexToBytes, isProtocolV2LinkError, probeProtocolV2, index as protocolV1, protocolV2Codec as protocolV2, shouldSuppressHighVolumeCallLog, withProtocolTimeout, writeProtocolV2BleFrame };
package/dist/index.js CHANGED
@@ -990,13 +990,9 @@ class ProtocolV2Session {
990
990
  : PROTOCOL_V2_DEFAULT_RESPONSE_TIMEOUT_MS;
991
991
  const abortController = new AbortController();
992
992
  const shouldReduceDebug = shouldReduceProtocolV2Debug(name);
993
- const baseCallContext = {
994
- messageName: name,
995
- timeoutMs,
996
- highVolume: shouldReduceDebug,
997
- generation,
998
- signal: abortController.signal,
999
- };
993
+ const baseCallContext = Object.assign(Object.assign({ messageName: name, timeoutMs, highVolume: shouldReduceDebug }, (callOptions.writeWithResponse === undefined
994
+ ? {}
995
+ : { writeWithResponse: callOptions.writeWithResponse })), { generation, signal: abortController.signal });
1000
996
  const runCall = () => __awaiter(this, void 0, void 0, function* () {
1001
997
  var _a, _b, _c, _d;
1002
998
  yield (prepareCall === null || prepareCall === void 0 ? void 0 : prepareCall(baseCallContext));
@@ -1609,6 +1605,13 @@ exports.Enum_PinMatrixRequestType = void 0;
1609
1605
  Enum_PinMatrixRequestType[Enum_PinMatrixRequestType["PinMatrixRequestType_BackupSecond"] = 7] = "PinMatrixRequestType_BackupSecond";
1610
1606
  Enum_PinMatrixRequestType[Enum_PinMatrixRequestType["PinMatrixRequestType_AttachToPin"] = 8000] = "PinMatrixRequestType_AttachToPin";
1611
1607
  })(exports.Enum_PinMatrixRequestType || (exports.Enum_PinMatrixRequestType = {}));
1608
+ exports.DebugSwipeDirection = void 0;
1609
+ (function (DebugSwipeDirection) {
1610
+ DebugSwipeDirection[DebugSwipeDirection["UP"] = 0] = "UP";
1611
+ DebugSwipeDirection[DebugSwipeDirection["DOWN"] = 1] = "DOWN";
1612
+ DebugSwipeDirection[DebugSwipeDirection["LEFT"] = 2] = "LEFT";
1613
+ DebugSwipeDirection[DebugSwipeDirection["RIGHT"] = 3] = "RIGHT";
1614
+ })(exports.DebugSwipeDirection || (exports.DebugSwipeDirection = {}));
1612
1615
  exports.EthereumDefinitionType = void 0;
1613
1616
  (function (EthereumDefinitionType) {
1614
1617
  EthereumDefinitionType[EthereumDefinitionType["NETWORK"] = 0] = "NETWORK";
@@ -2090,6 +2093,7 @@ var messages = /*#__PURE__*/Object.freeze({
2090
2093
  get FailureType () { return exports.FailureType; },
2091
2094
  get Enum_ButtonRequestType () { return exports.Enum_ButtonRequestType; },
2092
2095
  get Enum_PinMatrixRequestType () { return exports.Enum_PinMatrixRequestType; },
2096
+ get DebugSwipeDirection () { return exports.DebugSwipeDirection; },
2093
2097
  get EthereumDefinitionType () { return exports.EthereumDefinitionType; },
2094
2098
  get EthereumGnosisSafeTxOperation () { return exports.EthereumGnosisSafeTxOperation; },
2095
2099
  get EthereumDataTypeOneKey () { return exports.EthereumDataTypeOneKey; },
@@ -11,6 +11,7 @@ export type ProtocolV2CallContext = {
11
11
  messageName: string;
12
12
  timeoutMs?: number;
13
13
  highVolume: boolean;
14
+ writeWithResponse?: boolean;
14
15
  generation: number;
15
16
  signal: AbortSignal;
16
17
  };
@@ -37,6 +38,7 @@ export type ProtocolV2CallOptions = {
37
38
  expectedTypes?: string[];
38
39
  intermediateTypes?: string[];
39
40
  onIntermediateResponse?: (response: MessageFromOneKey) => void;
41
+ writeWithResponse?: boolean;
40
42
  };
41
43
  export { concatUint8Arrays, ProtocolV2FrameAssembler };
42
44
  export { ProtocolV2SequenceCursor };
@@ -1 +1 @@
1
- {"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../../src/protocols/v2/session.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAChF,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAM7D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD,cAAc,UAAU,CAAC;AAEzB,MAAM,MAAM,iBAAiB,GAAG;IAC9B,UAAU,EAAE,IAAI,CAAC;IACjB,UAAU,EAAE,IAAI,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,WAAW,CAAC;CACrB,CAAC;AAEF,KAAK,cAAc,GAAG;IACpB,KAAK,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;IACjC,KAAK,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAA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