@onekeyfe/hd-transport 1.2.0-alpha.57 → 1.2.0-alpha.59

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.
@@ -208,18 +208,16 @@ describe('messages', () => {
208
208
  test('Protocol V2 wallet recovery carries the expected wallet and seed domains on wire', () => {
209
209
  const messages = parseConfigure(v2Messages);
210
210
  const { Message } = createMessageFromName(messages, 'DeviceSessionGet');
211
- const payload = Message.encode(
212
- Message.create({
213
- btc_test_address: 'tb1qwallet',
214
- seed_domains: [
215
- generatedTypes.DeviceSessionSeedDomain.SeedDomain_Standard,
216
- generatedTypes.DeviceSessionSeedDomain.SeedDomain_Cardano,
217
- ],
218
- })
219
- ).finish();
211
+ const payload = encode(Message, {
212
+ btc_test_address: 'tb1qwallet',
213
+ seed_domains: [
214
+ generatedTypes.DeviceSessionSeedDomain.SeedDomain_Standard,
215
+ generatedTypes.DeviceSessionSeedDomain.SeedDomain_Cardano,
216
+ ],
217
+ });
220
218
 
221
- expect(Buffer.from(payload).toString('hex')).toBe('120a7462317177616c6c65741a020102');
222
- expect(Message.decode(payload)).toMatchObject({
219
+ expect(payload.toString('hex')).toBe('120a7462317177616c6c65741a020102');
220
+ expect(Message.decode(payload.toBuffer())).toMatchObject({
223
221
  btc_test_address: 'tb1qwallet',
224
222
  seed_domains: [
225
223
  generatedTypes.DeviceSessionSeedDomain.SeedDomain_Standard,
package/dist/index.d.ts CHANGED
@@ -1414,23 +1414,6 @@ type ECDHSessionKey = {
1414
1414
  session_key: string;
1415
1415
  public_key?: string;
1416
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
- };
1434
1417
  type Path = {
1435
1418
  address_n: number[];
1436
1419
  };
@@ -1444,77 +1427,6 @@ type EcdsaPublicKeys = {
1444
1427
  hd_nodes: HDNodeType[];
1445
1428
  root_fingerprint?: number;
1446
1429
  };
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
- };
1518
1430
  type DnxGetAddress = {
1519
1431
  address_n: number[];
1520
1432
  show_display?: boolean;
@@ -2494,17 +2406,6 @@ type Entropy = {
2494
2406
  entropy: string;
2495
2407
  };
2496
2408
  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
- };
2508
2409
  type ResetDevice = {
2509
2410
  display_random?: boolean;
2510
2411
  strength?: number;
@@ -2971,22 +2872,6 @@ type MoneroLiveRefreshStepAck = {
2971
2872
  };
2972
2873
  type MoneroLiveRefreshFinalRequest = {};
2973
2874
  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
- };
2990
2875
  type NearGetAddress = {
2991
2876
  address_n: number[];
2992
2877
  show_display?: boolean;
@@ -3884,30 +3769,6 @@ type TronMessageSignature = {
3884
3769
  address: string;
3885
3770
  signature: string;
3886
3771
  };
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
- };
3911
3772
  type facotry = {};
3912
3773
  declare enum CommandFlags {
3913
3774
  Default = 0,
@@ -4629,27 +4490,9 @@ type MessageType = {
4629
4490
  SignedIdentity: SignedIdentity;
4630
4491
  GetECDHSessionKey: GetECDHSessionKey;
4631
4492
  ECDHSessionKey: ECDHSessionKey;
4632
- CosiCommit: CosiCommit;
4633
- CosiCommitment: CosiCommitment;
4634
- CosiSign: CosiSign;
4635
- CosiSignature: CosiSignature;
4636
4493
  Path: Path;
4637
4494
  BatchGetPublickeys: BatchGetPublickeys;
4638
4495
  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;
4653
4496
  DnxGetAddress: DnxGetAddress;
4654
4497
  DnxAddress: DnxAddress;
4655
4498
  DnxSignTx: DnxSignTx;
@@ -4787,7 +4630,6 @@ type MessageType = {
4787
4630
  GetEntropy: GetEntropy;
4788
4631
  Entropy: Entropy;
4789
4632
  WipeDevice: WipeDevice;
4790
- LoadDevice: LoadDevice;
4791
4633
  ResetDevice: ResetDevice;
4792
4634
  BackupDevice: BackupDevice;
4793
4635
  EntropyRequest: EntropyRequest;
@@ -4895,8 +4737,6 @@ type MessageType = {
4895
4737
  MoneroLiveRefreshStepAck: MoneroLiveRefreshStepAck;
4896
4738
  MoneroLiveRefreshFinalRequest: MoneroLiveRefreshFinalRequest;
4897
4739
  MoneroLiveRefreshFinalAck: MoneroLiveRefreshFinalAck;
4898
- DebugMoneroDiagRequest: DebugMoneroDiagRequest;
4899
- DebugMoneroDiagAck: DebugMoneroDiagAck;
4900
4740
  NearGetAddress: NearGetAddress;
4901
4741
  NearAddress: NearAddress;
4902
4742
  NearSignTx: NearSignTx;
@@ -5051,11 +4891,6 @@ type MessageType = {
5051
4891
  TronSignedTx: TronSignedTx;
5052
4892
  TronSignMessage: TronSignMessage;
5053
4893
  TronMessageSignature: TronMessageSignature;
5054
- WebAuthnListResidentCredentials: WebAuthnListResidentCredentials;
5055
- WebAuthnAddResidentCredential: WebAuthnAddResidentCredential;
5056
- WebAuthnRemoveResidentCredential: WebAuthnRemoveResidentCredential;
5057
- WebAuthnCredential: WebAuthnCredential;
5058
- WebAuthnCredentials: WebAuthnCredentials;
5059
4894
  facotry: facotry;
5060
4895
  experimental_message: experimental_message;
5061
4896
  experimental_field: experimental_field;
@@ -5374,29 +5209,9 @@ type messages_SignIdentity = SignIdentity;
5374
5209
  type messages_SignedIdentity = SignedIdentity;
5375
5210
  type messages_GetECDHSessionKey = GetECDHSessionKey;
5376
5211
  type messages_ECDHSessionKey = ECDHSessionKey;
5377
- type messages_CosiCommit = CosiCommit;
5378
- type messages_CosiCommitment = CosiCommitment;
5379
- type messages_CosiSign = CosiSign;
5380
- type messages_CosiSignature = CosiSignature;
5381
5212
  type messages_Path = Path;
5382
5213
  type messages_BatchGetPublickeys = BatchGetPublickeys;
5383
5214
  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;
5400
5215
  type messages_DnxGetAddress = DnxGetAddress;
5401
5216
  type messages_DnxAddress = DnxAddress;
5402
5217
  type messages_DnxSignTx = DnxSignTx;
@@ -5570,7 +5385,6 @@ type messages_Cancel = Cancel;
5570
5385
  type messages_GetEntropy = GetEntropy;
5571
5386
  type messages_Entropy = Entropy;
5572
5387
  type messages_WipeDevice = WipeDevice;
5573
- type messages_LoadDevice = LoadDevice;
5574
5388
  type messages_ResetDevice = ResetDevice;
5575
5389
  type messages_BackupDevice = BackupDevice;
5576
5390
  type messages_EntropyRequest = EntropyRequest;
@@ -5689,8 +5503,6 @@ type messages_MoneroLiveRefreshStepRequest = MoneroLiveRefreshStepRequest;
5689
5503
  type messages_MoneroLiveRefreshStepAck = MoneroLiveRefreshStepAck;
5690
5504
  type messages_MoneroLiveRefreshFinalRequest = MoneroLiveRefreshFinalRequest;
5691
5505
  type messages_MoneroLiveRefreshFinalAck = MoneroLiveRefreshFinalAck;
5692
- type messages_DebugMoneroDiagRequest = DebugMoneroDiagRequest;
5693
- type messages_DebugMoneroDiagAck = DebugMoneroDiagAck;
5694
5506
  type messages_NearGetAddress = NearGetAddress;
5695
5507
  type messages_NearAddress = NearAddress;
5696
5508
  type messages_NearSignTx = NearSignTx;
@@ -5879,11 +5691,6 @@ type messages_TronMessageType = TronMessageType;
5879
5691
  declare const messages_TronMessageType: typeof TronMessageType;
5880
5692
  type messages_TronSignMessage = TronSignMessage;
5881
5693
  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;
5887
5694
  type messages_facotry = facotry;
5888
5695
  type messages_CommandFlags = CommandFlags;
5889
5696
  declare const messages_CommandFlags: typeof CommandFlags;
@@ -6222,28 +6029,9 @@ declare namespace messages {
6222
6029
  messages_SignedIdentity as SignedIdentity,
6223
6030
  messages_GetECDHSessionKey as GetECDHSessionKey,
6224
6031
  messages_ECDHSessionKey as ECDHSessionKey,
6225
- messages_CosiCommit as CosiCommit,
6226
- messages_CosiCommitment as CosiCommitment,
6227
- messages_CosiSign as CosiSign,
6228
- messages_CosiSignature as CosiSignature,
6229
6032
  messages_Path as Path,
6230
6033
  messages_BatchGetPublickeys as BatchGetPublickeys,
6231
6034
  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,
6247
6035
  messages_DnxGetAddress as DnxGetAddress,
6248
6036
  messages_DnxAddress as DnxAddress,
6249
6037
  messages_DnxSignTx as DnxSignTx,
@@ -6402,7 +6190,6 @@ declare namespace messages {
6402
6190
  messages_GetEntropy as GetEntropy,
6403
6191
  messages_Entropy as Entropy,
6404
6192
  messages_WipeDevice as WipeDevice,
6405
- messages_LoadDevice as LoadDevice,
6406
6193
  messages_ResetDevice as ResetDevice,
6407
6194
  messages_BackupDevice as BackupDevice,
6408
6195
  messages_EntropyRequest as EntropyRequest,
@@ -6516,8 +6303,6 @@ declare namespace messages {
6516
6303
  messages_MoneroLiveRefreshStepAck as MoneroLiveRefreshStepAck,
6517
6304
  messages_MoneroLiveRefreshFinalRequest as MoneroLiveRefreshFinalRequest,
6518
6305
  messages_MoneroLiveRefreshFinalAck as MoneroLiveRefreshFinalAck,
6519
- messages_DebugMoneroDiagRequest as DebugMoneroDiagRequest,
6520
- messages_DebugMoneroDiagAck as DebugMoneroDiagAck,
6521
6306
  messages_NearGetAddress as NearGetAddress,
6522
6307
  messages_NearAddress as NearAddress,
6523
6308
  messages_NearSignTx as NearSignTx,
@@ -6689,11 +6474,6 @@ declare namespace messages {
6689
6474
  messages_TronMessageType as TronMessageType,
6690
6475
  messages_TronSignMessage as TronSignMessage,
6691
6476
  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,
6697
6477
  messages_facotry as facotry,
6698
6478
  messages_CommandFlags as CommandFlags,
6699
6479
  messages_experimental_message as experimental_message,
@@ -7096,4 +6876,4 @@ declare const _default: {
7096
6876
  withProtocolTimeout: typeof withProtocolTimeout;
7097
6877
  };
7098
6878
 
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 };
6879
+ 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 };
package/dist/index.js CHANGED
@@ -200,7 +200,10 @@ function patch(Message, payload) {
200
200
  }
201
201
  if (field.repeated) {
202
202
  const RefMessage = Message.lookupTypeOrEnum(field.type);
203
- patched[key] = value.map((v) => patch(RefMessage, v));
203
+ patched[key] =
204
+ RefMessage instanceof protobuf.Enum
205
+ ? value.map((v) => transform(field.type, v))
206
+ : value.map((v) => patch(RefMessage, v));
204
207
  }
205
208
  else if (typeof value === 'object' && value !== null) {
206
209
  const RefMessage = Message.lookupType(field.type);
@@ -1605,13 +1608,6 @@ exports.Enum_PinMatrixRequestType = void 0;
1605
1608
  Enum_PinMatrixRequestType[Enum_PinMatrixRequestType["PinMatrixRequestType_BackupSecond"] = 7] = "PinMatrixRequestType_BackupSecond";
1606
1609
  Enum_PinMatrixRequestType[Enum_PinMatrixRequestType["PinMatrixRequestType_AttachToPin"] = 8000] = "PinMatrixRequestType_AttachToPin";
1607
1610
  })(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 = {}));
1615
1611
  exports.EthereumDefinitionType = void 0;
1616
1612
  (function (EthereumDefinitionType) {
1617
1613
  EthereumDefinitionType[EthereumDefinitionType["NETWORK"] = 0] = "NETWORK";
@@ -2093,7 +2089,6 @@ var messages = /*#__PURE__*/Object.freeze({
2093
2089
  get FailureType () { return exports.FailureType; },
2094
2090
  get Enum_ButtonRequestType () { return exports.Enum_ButtonRequestType; },
2095
2091
  get Enum_PinMatrixRequestType () { return exports.Enum_PinMatrixRequestType; },
2096
- get DebugSwipeDirection () { return exports.DebugSwipeDirection; },
2097
2092
  get EthereumDefinitionType () { return exports.EthereumDefinitionType; },
2098
2093
  get EthereumGnosisSafeTxOperation () { return exports.EthereumGnosisSafeTxOperation; },
2099
2094
  get EthereumDataTypeOneKey () { return exports.EthereumDataTypeOneKey; },
@@ -1 +1 @@
1
- {"version":3,"file":"encode.d.ts","sourceRoot":"","sources":["../../../src/serialization/protobuf/encode.ts"],"names":[],"mappings":"AACA,OAAO,UAAU,MAAM,YAAY,CAAC;AAIpC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAmB7C,wBAAgB,KAAK,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,OA4ChD;AAED,eAAO,MAAM,MAAM,YAAa,IAAI,QAAQ,OAAO,MAAM,EAAE,OAAO,CAAC,eASlE,CAAC"}
1
+ {"version":3,"file":"encode.d.ts","sourceRoot":"","sources":["../../../src/serialization/protobuf/encode.ts"],"names":[],"mappings":"AACA,OAAO,UAAU,MAAM,YAAY,CAAC;AAKpC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAmB7C,wBAAgB,KAAK,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,OA+ChD;AAED,eAAO,MAAM,MAAM,YAAa,IAAI,QAAQ,OAAO,MAAM,EAAE,OAAO,CAAC,eASlE,CAAC"}