@onekeyfe/hd-transport 1.2.2-alpha.100 → 1.2.2-alpha.2

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.
package/dist/index.d.ts CHANGED
@@ -342,6 +342,8 @@ type AcquireInput = {
342
342
  * transport must probe the protocol on the wire, bypassing any cached result.
343
343
  */
344
344
  forceProtocolDetection?: boolean;
345
+ /** Reuse expectedProtocol only when this transport previously confirmed it for the same endpoint. */
346
+ skipProtocolProbe?: boolean;
345
347
  };
346
348
  type MessageFromOneKey = {
347
349
  type: string;
@@ -360,6 +362,8 @@ type TransportCallOptions = {
360
362
  onWriteCompleted?: (metrics: TransportWriteMetrics) => void;
361
363
  /** Resolve after the complete request frame is written without waiting for a response. */
362
364
  returnAfterWrite?: boolean;
365
+ /** Observe the delayed terminal response of a write-only call while a later call is active. */
366
+ onResponseAfterWrite?: (response: MessageFromOneKey) => void;
363
367
  /** Prefer acknowledged BLE characteristic writes for this call when supported. */
364
368
  writeWithResponse?: boolean;
365
369
  };
@@ -1863,6 +1867,8 @@ type EthereumSignTxOneKey = {
1863
1867
  data_length?: number;
1864
1868
  chain_id: number;
1865
1869
  tx_type?: number;
1870
+ expected_address?: string;
1871
+ source_fingerprint?: number;
1866
1872
  };
1867
1873
  type EthereumAccessListOneKey = {
1868
1874
  address: string;
@@ -1880,6 +1886,8 @@ type EthereumSignTxEIP1559OneKey = {
1880
1886
  data_length: number;
1881
1887
  chain_id: number;
1882
1888
  access_list: EthereumAccessListOneKey[];
1889
+ expected_address?: string;
1890
+ source_fingerprint?: number;
1883
1891
  };
1884
1892
  type EthereumAuthorizationSignature = {
1885
1893
  y_parity: number;
@@ -1921,6 +1929,7 @@ type EthereumSignMessageOneKey = {
1921
1929
  address_n: number[];
1922
1930
  message: string;
1923
1931
  chain_id?: number;
1932
+ source_fingerprint?: number;
1924
1933
  };
1925
1934
  type EthereumMessageSignatureOneKey = {
1926
1935
  signature: string;
@@ -3253,6 +3262,7 @@ type SolanaSignTx = {
3253
3262
  address_n: number[];
3254
3263
  raw_tx: string;
3255
3264
  extra_info?: SolanaTxExtraInfo;
3265
+ source_fingerprint?: number;
3256
3266
  };
3257
3267
  type SolanaSignedTx = {
3258
3268
  signature?: string;
@@ -3270,10 +3280,12 @@ type SolanaSignOffChainMessage = {
3270
3280
  message_version?: SolanaOffChainMessageVersion;
3271
3281
  message_format?: SolanaOffChainMessageFormat;
3272
3282
  application_domain?: string;
3283
+ source_fingerprint?: number;
3273
3284
  };
3274
3285
  type SolanaSignUnsafeMessage = {
3275
3286
  address_n: number[];
3276
3287
  message: string;
3288
+ source_fingerprint?: number;
3277
3289
  };
3278
3290
  type SolanaMessageSignature = {
3279
3291
  signature: string;
@@ -3820,8 +3832,6 @@ declare enum CommandFlags {
3820
3832
  Default = 0,
3821
3833
  Factory_Only = 1
3822
3834
  }
3823
- type experimental_message = {};
3824
- type experimental_field = {};
3825
3835
  type TextMemo = {
3826
3836
  text: string;
3827
3837
  };
@@ -3853,6 +3863,7 @@ type EthereumSignTypedDataQR = {
3853
3863
  chain_id?: number;
3854
3864
  metamask_v4_compat?: boolean;
3855
3865
  request_id?: string;
3866
+ source_fingerprint?: number;
3856
3867
  };
3857
3868
  type SetBusy = {
3858
3869
  expiry_ms?: number;
@@ -3897,6 +3908,8 @@ type UiAnimationRequest = {
3897
3908
  command: UiAnimationCommand;
3898
3909
  type?: UiAnimationType;
3899
3910
  };
3911
+ type experimental_message = {};
3912
+ type experimental_field = {};
3900
3913
  type ProtocolInfoRequest = {
3901
3914
  eventless_wallet_session?: boolean;
3902
3915
  };
@@ -3974,6 +3987,13 @@ type DeviceCertificateSign = {
3974
3987
  type DeviceMiscUsbMscControl = {
3975
3988
  enable: boolean;
3976
3989
  };
3990
+ type DeviceFindMyTokenUpdate = {
3991
+ token: string;
3992
+ };
3993
+ type DeviceFindMyTokenStateGet = {};
3994
+ type DeviceFindMyTokenState = {
3995
+ burned: boolean;
3996
+ };
3977
3997
  declare enum DeviceFactoryAck {
3978
3998
  FACTORY_ACK_SUCCESS = 0,
3979
3999
  FACTORY_ACK_FAIL = 1
@@ -4030,6 +4050,11 @@ declare enum DeviceFirmwareUpdateTaskStatus {
4030
4050
  FW_MGMT_UPDATER_TASK_STATUS_FAILED_BUSY = 9,
4031
4051
  FW_MGMT_UPDATER_TASK_STATUS_FAILED_ENTRY_OUT_OF_BOUNDS = 10
4032
4052
  }
4053
+ declare enum DeviceFirmwareUpdatePhase {
4054
+ FW_MGMT_UPDATER_PHASE_PREPARE = 0,
4055
+ FW_MGMT_UPDATER_PHASE_INSTALL = 1,
4056
+ FW_MGMT_UPDATER_PHASE_VERIFY = 2
4057
+ }
4033
4058
  type DeviceFirmwareTarget = {
4034
4059
  target_id: DeviceFirmwareTargetType;
4035
4060
  path: string;
@@ -4037,15 +4062,25 @@ type DeviceFirmwareTarget = {
4037
4062
  type DeviceFirmwareUpdateStage = {
4038
4063
  targets: DeviceFirmwareTarget[];
4039
4064
  };
4040
- type DeviceFirmwareUpdateRequest = {};
4065
+ type DeviceFirmwareUpdateRequest = {
4066
+ reboot_after_update?: boolean;
4067
+ };
4068
+ type DeviceFirmwareUpdatePhaseInfo = {
4069
+ phase: DeviceFirmwareUpdatePhase;
4070
+ progress_percent: number;
4071
+ };
4041
4072
  type DeviceFirmwareUpdateRecord = {
4042
4073
  target_id: DeviceFirmwareTargetType;
4043
4074
  status?: DeviceFirmwareUpdateTaskStatus;
4075
+ progress_percent?: number;
4076
+ phase_info?: DeviceFirmwareUpdatePhaseInfo;
4044
4077
  payload_version?: number;
4045
4078
  path?: string;
4046
4079
  };
4047
4080
  type DeviceFirmwareUpdateRecordFields = {
4048
4081
  status?: boolean;
4082
+ progress_percent?: boolean;
4083
+ phase_info?: boolean;
4049
4084
  payload_version?: boolean;
4050
4085
  path?: boolean;
4051
4086
  };
@@ -4147,7 +4182,6 @@ declare enum DeviceSessionSeedDomain {
4147
4182
  type DeviceSessionGet = {
4148
4183
  session_id?: string;
4149
4184
  btc_test_address?: string;
4150
- seed_domains: DeviceSessionSeedDomain[];
4151
4185
  };
4152
4186
  type DeviceSession = {
4153
4187
  session_id?: string;
@@ -4164,6 +4198,7 @@ type DeviceSessionAskPin = {
4164
4198
  type DeviceSessionAskPassphrase = {
4165
4199
  passphrase?: string;
4166
4200
  on_device: boolean;
4201
+ seed_domains: DeviceSessionSeedDomain[];
4167
4202
  };
4168
4203
  declare enum DeviceSessionAskPin_FailureSubCodes {
4169
4204
  UserCancel = 1
@@ -4305,6 +4340,10 @@ type ViewDetail = {
4305
4340
  is_overview: boolean;
4306
4341
  has_icon: boolean;
4307
4342
  };
4343
+ type ViewCustomField = {
4344
+ key: string;
4345
+ value: string;
4346
+ };
4308
4347
  declare enum ViewTipType {
4309
4348
  Default = 0,
4310
4349
  Highlight = 1,
@@ -4316,10 +4355,25 @@ type ViewTip = {
4316
4355
  type: ViewTipType;
4317
4356
  text?: string;
4318
4357
  text_id?: number;
4358
+ text_arg?: string;
4319
4359
  };
4320
- type ViewRawData = {
4360
+ type ViewActionCard = {
4321
4361
  initial_data: string;
4322
- placeholder: number;
4362
+ };
4363
+ type ViewContentPreview = {
4364
+ content_key: number;
4365
+ preview: string;
4366
+ total_bytes?: number;
4367
+ };
4368
+ type ViewContentEntry = {
4369
+ entry_key: number;
4370
+ value: string;
4371
+ };
4372
+ type ViewContentPage = {
4373
+ page_index: number;
4374
+ page_count: number;
4375
+ chunk?: string;
4376
+ entry?: ViewContentEntry;
4323
4377
  };
4324
4378
  declare enum ViewSignLayout {
4325
4379
  LayoutDefault = 0,
@@ -4334,10 +4388,19 @@ type ViewSignPage = {
4334
4388
  amount?: UintType;
4335
4389
  general: ViewDetail[];
4336
4390
  tip?: ViewTip;
4337
- raw_data?: ViewRawData;
4391
+ action_card?: ViewActionCard;
4338
4392
  slide_to_confirm?: boolean;
4339
4393
  layout?: ViewSignLayout;
4340
4394
  title_id?: number;
4395
+ title_arg?: string;
4396
+ content?: ViewContentPreview;
4397
+ custom_field?: ViewCustomField;
4398
+ };
4399
+ type ViewWarningPage = {
4400
+ title_id: number;
4401
+ text_id: number;
4402
+ text_arg?: string;
4403
+ cancellable?: boolean;
4341
4404
  };
4342
4405
  type ViewVerifyPage = {
4343
4406
  title?: string;
@@ -4348,6 +4411,7 @@ type ViewVerifyPage = {
4348
4411
  value_key?: number;
4349
4412
  title_id?: number;
4350
4413
  chain_id?: number;
4414
+ content?: ViewContentPreview;
4351
4415
  };
4352
4416
  declare enum ProtocolV2FailureType {
4353
4417
  Failure_InvalidMessage = 1,
@@ -4943,8 +5007,6 @@ type MessageType = {
4943
5007
  TronSignMessage: TronSignMessage;
4944
5008
  TronMessageSignature: TronMessageSignature;
4945
5009
  facotry: facotry;
4946
- experimental_message: experimental_message;
4947
- experimental_field: experimental_field;
4948
5010
  TextMemo: TextMemo;
4949
5011
  RefundMemo: RefundMemo;
4950
5012
  CoinPurchaseMemo: CoinPurchaseMemo;
@@ -4960,6 +5022,8 @@ type MessageType = {
4960
5022
  UnlockPath: UnlockPath;
4961
5023
  UnlockedPathRequest: UnlockedPathRequest;
4962
5024
  UiAnimationRequest: UiAnimationRequest;
5025
+ experimental_message: experimental_message;
5026
+ experimental_field: experimental_field;
4963
5027
  ProtocolInfoRequest: ProtocolInfoRequest;
4964
5028
  ProtocolInfo: ProtocolInfo;
4965
5029
  DeviceReboot: DeviceReboot;
@@ -4973,6 +5037,9 @@ type MessageType = {
4973
5037
  DeviceCertificateSignature: DeviceCertificateSignature;
4974
5038
  DeviceCertificateSign: DeviceCertificateSign;
4975
5039
  DeviceMiscUsbMscControl: DeviceMiscUsbMscControl;
5040
+ DeviceFindMyTokenUpdate: DeviceFindMyTokenUpdate;
5041
+ DeviceFindMyTokenStateGet: DeviceFindMyTokenStateGet;
5042
+ DeviceFindMyTokenState: DeviceFindMyTokenState;
4976
5043
  DeviceFactoryInfoManufactureTime: DeviceFactoryInfoManufactureTime;
4977
5044
  DeviceFactoryInfo: DeviceFactoryInfo;
4978
5045
  DeviceFactoryInfoSet: DeviceFactoryInfoSet;
@@ -4982,6 +5049,7 @@ type MessageType = {
4982
5049
  DeviceFirmwareTarget: DeviceFirmwareTarget;
4983
5050
  DeviceFirmwareUpdateStage: DeviceFirmwareUpdateStage;
4984
5051
  DeviceFirmwareUpdateRequest: DeviceFirmwareUpdateRequest;
5052
+ DeviceFirmwareUpdatePhaseInfo: DeviceFirmwareUpdatePhaseInfo;
4985
5053
  DeviceFirmwareUpdateRecord: DeviceFirmwareUpdateRecord;
4986
5054
  DeviceFirmwareUpdateRecordFields: DeviceFirmwareUpdateRecordFields;
4987
5055
  DeviceFirmwareUpdateStatusGet: DeviceFirmwareUpdateStatusGet;
@@ -5020,9 +5088,14 @@ type MessageType = {
5020
5088
  PortfolioUpdate: PortfolioUpdate;
5021
5089
  ViewAmount: ViewAmount;
5022
5090
  ViewDetail: ViewDetail;
5091
+ ViewCustomField: ViewCustomField;
5023
5092
  ViewTip: ViewTip;
5024
- ViewRawData: ViewRawData;
5093
+ ViewActionCard: ViewActionCard;
5094
+ ViewContentPreview: ViewContentPreview;
5095
+ ViewContentEntry: ViewContentEntry;
5096
+ ViewContentPage: ViewContentPage;
5025
5097
  ViewSignPage: ViewSignPage;
5098
+ ViewWarningPage: ViewWarningPage;
5026
5099
  ViewVerifyPage: ViewVerifyPage;
5027
5100
  };
5028
5101
  type MessageKey = keyof MessageType;
@@ -5746,8 +5819,6 @@ type messages_TronMessageSignature = TronMessageSignature;
5746
5819
  type messages_facotry = facotry;
5747
5820
  type messages_CommandFlags = CommandFlags;
5748
5821
  declare const messages_CommandFlags: typeof CommandFlags;
5749
- type messages_experimental_message = experimental_message;
5750
- type messages_experimental_field = experimental_field;
5751
5822
  type messages_TextMemo = TextMemo;
5752
5823
  type messages_RefundMemo = RefundMemo;
5753
5824
  type messages_CoinPurchaseMemo = CoinPurchaseMemo;
@@ -5769,6 +5840,8 @@ declare const messages_UiAnimationType: typeof UiAnimationType;
5769
5840
  type messages_UiAnimationCommand = UiAnimationCommand;
5770
5841
  declare const messages_UiAnimationCommand: typeof UiAnimationCommand;
5771
5842
  type messages_UiAnimationRequest = UiAnimationRequest;
5843
+ type messages_experimental_message = experimental_message;
5844
+ type messages_experimental_field = experimental_field;
5772
5845
  type messages_ProtocolInfoRequest = ProtocolInfoRequest;
5773
5846
  type messages_ProtocolInfo = ProtocolInfo;
5774
5847
  type messages_DeviceErrorCode = DeviceErrorCode;
@@ -5788,6 +5861,9 @@ type messages_DeviceCertificateRead = DeviceCertificateRead;
5788
5861
  type messages_DeviceCertificateSignature = DeviceCertificateSignature;
5789
5862
  type messages_DeviceCertificateSign = DeviceCertificateSign;
5790
5863
  type messages_DeviceMiscUsbMscControl = DeviceMiscUsbMscControl;
5864
+ type messages_DeviceFindMyTokenUpdate = DeviceFindMyTokenUpdate;
5865
+ type messages_DeviceFindMyTokenStateGet = DeviceFindMyTokenStateGet;
5866
+ type messages_DeviceFindMyTokenState = DeviceFindMyTokenState;
5791
5867
  type messages_DeviceFactoryAck = DeviceFactoryAck;
5792
5868
  declare const messages_DeviceFactoryAck: typeof DeviceFactoryAck;
5793
5869
  type messages_DeviceFactoryInfoManufactureTime = DeviceFactoryInfoManufactureTime;
@@ -5800,9 +5876,12 @@ type messages_DeviceFirmwareTargetType = DeviceFirmwareTargetType;
5800
5876
  declare const messages_DeviceFirmwareTargetType: typeof DeviceFirmwareTargetType;
5801
5877
  type messages_DeviceFirmwareUpdateTaskStatus = DeviceFirmwareUpdateTaskStatus;
5802
5878
  declare const messages_DeviceFirmwareUpdateTaskStatus: typeof DeviceFirmwareUpdateTaskStatus;
5879
+ type messages_DeviceFirmwareUpdatePhase = DeviceFirmwareUpdatePhase;
5880
+ declare const messages_DeviceFirmwareUpdatePhase: typeof DeviceFirmwareUpdatePhase;
5803
5881
  type messages_DeviceFirmwareTarget = DeviceFirmwareTarget;
5804
5882
  type messages_DeviceFirmwareUpdateStage = DeviceFirmwareUpdateStage;
5805
5883
  type messages_DeviceFirmwareUpdateRequest = DeviceFirmwareUpdateRequest;
5884
+ type messages_DeviceFirmwareUpdatePhaseInfo = DeviceFirmwareUpdatePhaseInfo;
5806
5885
  type messages_DeviceFirmwareUpdateRecord = DeviceFirmwareUpdateRecord;
5807
5886
  type messages_DeviceFirmwareUpdateRecordFields = DeviceFirmwareUpdateRecordFields;
5808
5887
  type messages_DeviceFirmwareUpdateStatusGet = DeviceFirmwareUpdateStatusGet;
@@ -5864,13 +5943,18 @@ type messages_OnboardingStatus = OnboardingStatus;
5864
5943
  type messages_PortfolioUpdate = PortfolioUpdate;
5865
5944
  type messages_ViewAmount = ViewAmount;
5866
5945
  type messages_ViewDetail = ViewDetail;
5946
+ type messages_ViewCustomField = ViewCustomField;
5867
5947
  type messages_ViewTipType = ViewTipType;
5868
5948
  declare const messages_ViewTipType: typeof ViewTipType;
5869
5949
  type messages_ViewTip = ViewTip;
5870
- type messages_ViewRawData = ViewRawData;
5950
+ type messages_ViewActionCard = ViewActionCard;
5951
+ type messages_ViewContentPreview = ViewContentPreview;
5952
+ type messages_ViewContentEntry = ViewContentEntry;
5953
+ type messages_ViewContentPage = ViewContentPage;
5871
5954
  type messages_ViewSignLayout = ViewSignLayout;
5872
5955
  declare const messages_ViewSignLayout: typeof ViewSignLayout;
5873
5956
  type messages_ViewSignPage = ViewSignPage;
5957
+ type messages_ViewWarningPage = ViewWarningPage;
5874
5958
  type messages_ViewVerifyPage = ViewVerifyPage;
5875
5959
  type messages_ProtocolV2FailureType = ProtocolV2FailureType;
5876
5960
  declare const messages_ProtocolV2FailureType: typeof ProtocolV2FailureType;
@@ -6529,8 +6613,6 @@ declare namespace messages {
6529
6613
  messages_TronMessageSignature as TronMessageSignature,
6530
6614
  messages_facotry as facotry,
6531
6615
  messages_CommandFlags as CommandFlags,
6532
- messages_experimental_message as experimental_message,
6533
- messages_experimental_field as experimental_field,
6534
6616
  messages_TextMemo as TextMemo,
6535
6617
  messages_RefundMemo as RefundMemo,
6536
6618
  messages_CoinPurchaseMemo as CoinPurchaseMemo,
@@ -6549,6 +6631,8 @@ declare namespace messages {
6549
6631
  messages_UiAnimationType as UiAnimationType,
6550
6632
  messages_UiAnimationCommand as UiAnimationCommand,
6551
6633
  messages_UiAnimationRequest as UiAnimationRequest,
6634
+ messages_experimental_message as experimental_message,
6635
+ messages_experimental_field as experimental_field,
6552
6636
  messages_ProtocolInfoRequest as ProtocolInfoRequest,
6553
6637
  messages_ProtocolInfo as ProtocolInfo,
6554
6638
  messages_DeviceErrorCode as DeviceErrorCode,
@@ -6565,6 +6649,9 @@ declare namespace messages {
6565
6649
  messages_DeviceCertificateSignature as DeviceCertificateSignature,
6566
6650
  messages_DeviceCertificateSign as DeviceCertificateSign,
6567
6651
  messages_DeviceMiscUsbMscControl as DeviceMiscUsbMscControl,
6652
+ messages_DeviceFindMyTokenUpdate as DeviceFindMyTokenUpdate,
6653
+ messages_DeviceFindMyTokenStateGet as DeviceFindMyTokenStateGet,
6654
+ messages_DeviceFindMyTokenState as DeviceFindMyTokenState,
6568
6655
  messages_DeviceFactoryAck as DeviceFactoryAck,
6569
6656
  messages_DeviceFactoryInfoManufactureTime as DeviceFactoryInfoManufactureTime,
6570
6657
  messages_DeviceFactoryInfo as DeviceFactoryInfo,
@@ -6574,9 +6661,11 @@ declare namespace messages {
6574
6661
  messages_DeviceFactoryTest as DeviceFactoryTest,
6575
6662
  messages_DeviceFirmwareTargetType as DeviceFirmwareTargetType,
6576
6663
  messages_DeviceFirmwareUpdateTaskStatus as DeviceFirmwareUpdateTaskStatus,
6664
+ messages_DeviceFirmwareUpdatePhase as DeviceFirmwareUpdatePhase,
6577
6665
  messages_DeviceFirmwareTarget as DeviceFirmwareTarget,
6578
6666
  messages_DeviceFirmwareUpdateStage as DeviceFirmwareUpdateStage,
6579
6667
  messages_DeviceFirmwareUpdateRequest as DeviceFirmwareUpdateRequest,
6668
+ messages_DeviceFirmwareUpdatePhaseInfo as DeviceFirmwareUpdatePhaseInfo,
6580
6669
  messages_DeviceFirmwareUpdateRecord as DeviceFirmwareUpdateRecord,
6581
6670
  messages_DeviceFirmwareUpdateRecordFields as DeviceFirmwareUpdateRecordFields,
6582
6671
  messages_DeviceFirmwareUpdateStatusGet as DeviceFirmwareUpdateStatusGet,
@@ -6627,11 +6716,16 @@ declare namespace messages {
6627
6716
  messages_PortfolioUpdate as PortfolioUpdate,
6628
6717
  messages_ViewAmount as ViewAmount,
6629
6718
  messages_ViewDetail as ViewDetail,
6719
+ messages_ViewCustomField as ViewCustomField,
6630
6720
  messages_ViewTipType as ViewTipType,
6631
6721
  messages_ViewTip as ViewTip,
6632
- messages_ViewRawData as ViewRawData,
6722
+ messages_ViewActionCard as ViewActionCard,
6723
+ messages_ViewContentPreview as ViewContentPreview,
6724
+ messages_ViewContentEntry as ViewContentEntry,
6725
+ messages_ViewContentPage as ViewContentPage,
6633
6726
  messages_ViewSignLayout as ViewSignLayout,
6634
6727
  messages_ViewSignPage as ViewSignPage,
6728
+ messages_ViewWarningPage as ViewWarningPage,
6635
6729
  messages_ViewVerifyPage as ViewVerifyPage,
6636
6730
  messages_ProtocolV2FailureType as ProtocolV2FailureType,
6637
6731
  messages_Enum_ProtocolV2Capability as Enum_ProtocolV2Capability,
@@ -6686,10 +6780,16 @@ type ProtocolV2CallOptions = {
6686
6780
  onIntermediateResponse?: (response: MessageFromOneKey) => void;
6687
6781
  onWriteCompleted?: (metrics: TransportWriteMetrics) => void;
6688
6782
  returnAfterWrite?: boolean;
6783
+ onResponseAfterWrite?: (response: MessageFromOneKey) => void;
6689
6784
  writeWithResponse?: boolean;
6690
6785
  };
6691
6786
 
6692
6787
  declare function hexToBytes(hex: string): Uint8Array;
6788
+ declare function detectProtocolV2LinkDisabledError({ schemas, assembler, bytes, }: {
6789
+ schemas: ProtocolV2Schemas;
6790
+ assembler: ProtocolV2FrameAssembler;
6791
+ bytes: Uint8Array;
6792
+ }): ProtocolV2LinkDisabledError | undefined;
6693
6793
  declare function bytesToHex(bytes: Uint8Array): string;
6694
6794
  declare function isProtocolV2HighThroughputCall(name: string): boolean;
6695
6795
  declare function getErrorMessage(error: unknown): string;
@@ -6699,6 +6799,7 @@ declare class ProtocolV2Session {
6699
6799
  private readonly sequenceCursor;
6700
6800
  private pendingCall;
6701
6801
  private pendingWrite;
6802
+ private pendingResponseAfterWrite?;
6702
6803
  private lastResponseSequence?;
6703
6804
  constructor(options: ProtocolV2SessionOptions);
6704
6805
  call(name: string, data: Record<string, unknown>, callOptions?: ProtocolV2CallOptions): Promise<MessageFromOneKey>;
@@ -6706,13 +6807,14 @@ declare class ProtocolV2Session {
6706
6807
  private serializeWrite;
6707
6808
  private executeCall;
6708
6809
  }
6709
- declare function probeProtocolV2({ call, timeoutMs, logger, logPrefix, onBeforeProbe, onProbeFailed, }: {
6810
+ declare function probeProtocolV2({ call, timeoutMs, logger, logPrefix, onBeforeProbe, onProbeFailed, shouldRethrow, }: {
6710
6811
  call: (name: string, data: Record<string, unknown>, options?: ProtocolV2CallOptions) => Promise<MessageFromOneKey>;
6711
6812
  timeoutMs: number;
6712
6813
  logger?: ProtocolLogger;
6713
6814
  logPrefix?: string;
6714
6815
  onBeforeProbe?: () => Promise<void> | void;
6715
6816
  onProbeFailed?: (error: unknown) => Promise<void> | void;
6817
+ shouldRethrow?: (error: unknown) => boolean;
6716
6818
  }): Promise<boolean>;
6717
6819
 
6718
6820
  type ProtocolV2LinkErrorClassification = 'link-fatal' | 'recoverable';
@@ -6750,6 +6852,7 @@ declare class ProtocolV2LinkManager<Key> {
6750
6852
  private getOrCreateLink;
6751
6853
  private executeCall;
6752
6854
  private clearSettledCallQueue;
6855
+ private createQueuedCallTimeoutError;
6753
6856
  private assertCallGeneration;
6754
6857
  }
6755
6858
 
@@ -6955,4 +7058,4 @@ declare const _default: {
6955
7058
  withProtocolTimeout: typeof withProtocolTimeout;
6956
7059
  };
6957
7060
 
6958
- 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, DeviceFirmwareUpdateStage, 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_FIRMWARE_FILE_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, ProtocolV2LinkDisabledError, 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, TransportWriteMetrics, 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, createProtocolV2LinkDisabledError, createTransportCallLog, _default as default, experimental_field, experimental_message, facotry, getErrorMessage, getSafeTransportLogPayload, hexToBytes, isProtocolV2HighThroughputCall, isProtocolV2LinkDisabledError, isProtocolV2LinkDisabledFailure, isProtocolV2LinkError, probeProtocolV2, index as protocolV1, protocolV2Codec as protocolV2, shouldSuppressHighVolumeCallLog, withProtocolTimeout, writeProtocolV2BleFrame };
7061
+ 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, DeviceFindMyTokenState, DeviceFindMyTokenStateGet, DeviceFindMyTokenUpdate, DeviceFirmwareImageInfo, DeviceFirmwareTarget, DeviceFirmwareTargetType, DeviceFirmwareUpdatePhase, DeviceFirmwareUpdatePhaseInfo, DeviceFirmwareUpdateRecord, DeviceFirmwareUpdateRecordFields, DeviceFirmwareUpdateRequest, DeviceFirmwareUpdateStage, 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_FIRMWARE_FILE_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, ProtocolV2LinkDisabledError, 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, TransportWriteMetrics, 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, ViewActionCard, ViewAmount, ViewContentEntry, ViewContentPage, ViewContentPreview, ViewCustomField, ViewDetail, ViewSignLayout, ViewSignPage, ViewTip, ViewTipType, ViewVerifyPage, ViewWarningPage, Vote, WL_OperationType, WipeDevice, WordAck, WordRequest, WordRequestType, WriteSEPrivateKey, WriteSEPublicCert, ZoomRequest, bytesToHex, concatUint8Arrays, createProtocolV2LinkDisabledError, createTransportCallLog, _default as default, detectProtocolV2LinkDisabledError, experimental_field, experimental_message, facotry, getErrorMessage, getSafeTransportLogPayload, hexToBytes, isProtocolV2HighThroughputCall, isProtocolV2LinkDisabledError, isProtocolV2LinkDisabledFailure, isProtocolV2LinkError, probeProtocolV2, index as protocolV1, protocolV2Codec as protocolV2, shouldSuppressHighVolumeCallLog, withProtocolTimeout, writeProtocolV2BleFrame };