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

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
  };
@@ -403,6 +407,8 @@ type LowlevelTransportSharedPlugin = {
403
407
  receive: (uuid?: string) => Promise<string>;
404
408
  connect: (uuid: string) => Promise<void>;
405
409
  disconnect: (uuid: string) => Promise<void>;
410
+ /** Maximum Protocol V2 bytes accepted by one BLE characteristic write. */
411
+ getProtocolV2PacketCapacity?: (uuid: string) => number | undefined | Promise<number | undefined>;
406
412
  init: () => Promise<void>;
407
413
  version: string;
408
414
  };
@@ -1863,6 +1869,7 @@ type EthereumSignTxOneKey = {
1863
1869
  data_length?: number;
1864
1870
  chain_id: number;
1865
1871
  tx_type?: number;
1872
+ expected_address?: string;
1866
1873
  };
1867
1874
  type EthereumAccessListOneKey = {
1868
1875
  address: string;
@@ -1880,6 +1887,7 @@ type EthereumSignTxEIP1559OneKey = {
1880
1887
  data_length: number;
1881
1888
  chain_id: number;
1882
1889
  access_list: EthereumAccessListOneKey[];
1890
+ expected_address?: string;
1883
1891
  };
1884
1892
  type EthereumAuthorizationSignature = {
1885
1893
  y_parity: number;
@@ -3258,7 +3266,8 @@ type SolanaSignedTx = {
3258
3266
  signature?: string;
3259
3267
  };
3260
3268
  declare enum SolanaOffChainMessageVersion {
3261
- MESSAGE_VERSION_0 = 0
3269
+ MESSAGE_VERSION_0 = 0,
3270
+ MESSAGE_VERSION_1 = 1
3262
3271
  }
3263
3272
  declare enum SolanaOffChainMessageFormat {
3264
3273
  V0_RESTRICTED_ASCII = 0,
@@ -3270,6 +3279,7 @@ type SolanaSignOffChainMessage = {
3270
3279
  message_version?: SolanaOffChainMessageVersion;
3271
3280
  message_format?: SolanaOffChainMessageFormat;
3272
3281
  application_domain?: string;
3282
+ required_signers: string[];
3273
3283
  };
3274
3284
  type SolanaSignUnsafeMessage = {
3275
3285
  address_n: number[];
@@ -3820,8 +3830,6 @@ declare enum CommandFlags {
3820
3830
  Default = 0,
3821
3831
  Factory_Only = 1
3822
3832
  }
3823
- type experimental_message = {};
3824
- type experimental_field = {};
3825
3833
  type TextMemo = {
3826
3834
  text: string;
3827
3835
  };
@@ -3897,6 +3905,8 @@ type UiAnimationRequest = {
3897
3905
  command: UiAnimationCommand;
3898
3906
  type?: UiAnimationType;
3899
3907
  };
3908
+ type experimental_message = {};
3909
+ type experimental_field = {};
3900
3910
  type ProtocolInfoRequest = {
3901
3911
  eventless_wallet_session?: boolean;
3902
3912
  };
@@ -3974,6 +3984,13 @@ type DeviceCertificateSign = {
3974
3984
  type DeviceMiscUsbMscControl = {
3975
3985
  enable: boolean;
3976
3986
  };
3987
+ type DeviceFindMyTokenUpdate = {
3988
+ token: string;
3989
+ };
3990
+ type DeviceFindMyTokenStateGet = {};
3991
+ type DeviceFindMyTokenState = {
3992
+ burned: boolean;
3993
+ };
3977
3994
  declare enum DeviceFactoryAck {
3978
3995
  FACTORY_ACK_SUCCESS = 0,
3979
3996
  FACTORY_ACK_FAIL = 1
@@ -3992,11 +4009,15 @@ type DeviceFactoryInfo = {
3992
4009
  factory_test_completed?: boolean;
3993
4010
  factory_burn_in_completed?: boolean;
3994
4011
  manufacture_time?: DeviceFactoryInfoManufactureTime;
4012
+ data?: string;
3995
4013
  };
3996
4014
  type DeviceFactoryInfoSet = {
3997
4015
  info: DeviceFactoryInfo;
4016
+ full_data?: boolean;
4017
+ };
4018
+ type DeviceFactoryInfoGet = {
4019
+ full_data?: boolean;
3998
4020
  };
3999
- type DeviceFactoryInfoGet = {};
4000
4021
  type DeviceFactoryPermanentLock = {
4001
4022
  check_a: string;
4002
4023
  check_b: string;
@@ -4030,6 +4051,11 @@ declare enum DeviceFirmwareUpdateTaskStatus {
4030
4051
  FW_MGMT_UPDATER_TASK_STATUS_FAILED_BUSY = 9,
4031
4052
  FW_MGMT_UPDATER_TASK_STATUS_FAILED_ENTRY_OUT_OF_BOUNDS = 10
4032
4053
  }
4054
+ declare enum DeviceFirmwareUpdatePhase {
4055
+ FW_MGMT_UPDATER_PHASE_PREPARE = 0,
4056
+ FW_MGMT_UPDATER_PHASE_INSTALL = 1,
4057
+ FW_MGMT_UPDATER_PHASE_VERIFY = 2
4058
+ }
4033
4059
  type DeviceFirmwareTarget = {
4034
4060
  target_id: DeviceFirmwareTargetType;
4035
4061
  path: string;
@@ -4037,15 +4063,25 @@ type DeviceFirmwareTarget = {
4037
4063
  type DeviceFirmwareUpdateStage = {
4038
4064
  targets: DeviceFirmwareTarget[];
4039
4065
  };
4040
- type DeviceFirmwareUpdateRequest = {};
4066
+ type DeviceFirmwareUpdateRequest = {
4067
+ reboot_after_update?: boolean;
4068
+ };
4069
+ type DeviceFirmwareUpdatePhaseInfo = {
4070
+ phase: DeviceFirmwareUpdatePhase;
4071
+ progress_percent: number;
4072
+ };
4041
4073
  type DeviceFirmwareUpdateRecord = {
4042
4074
  target_id: DeviceFirmwareTargetType;
4043
4075
  status?: DeviceFirmwareUpdateTaskStatus;
4076
+ progress_percent?: number;
4077
+ phase_info?: DeviceFirmwareUpdatePhaseInfo;
4044
4078
  payload_version?: number;
4045
4079
  path?: string;
4046
4080
  };
4047
4081
  type DeviceFirmwareUpdateRecordFields = {
4048
4082
  status?: boolean;
4083
+ progress_percent?: boolean;
4084
+ phase_info?: boolean;
4049
4085
  payload_version?: boolean;
4050
4086
  path?: boolean;
4051
4087
  };
@@ -4147,11 +4183,11 @@ declare enum DeviceSessionSeedDomain {
4147
4183
  type DeviceSessionGet = {
4148
4184
  session_id?: string;
4149
4185
  btc_test_address?: string;
4150
- seed_domains: DeviceSessionSeedDomain[];
4151
4186
  };
4152
4187
  type DeviceSession = {
4153
4188
  session_id?: string;
4154
4189
  btc_test_address?: string;
4190
+ seed_domains: DeviceSessionSeedDomain[];
4155
4191
  };
4156
4192
  declare enum DeviceSessionPinType {
4157
4193
  Any = 1,
@@ -4164,6 +4200,7 @@ type DeviceSessionAskPin = {
4164
4200
  type DeviceSessionAskPassphrase = {
4165
4201
  passphrase?: string;
4166
4202
  on_device: boolean;
4203
+ seed_domains: DeviceSessionSeedDomain[];
4167
4204
  };
4168
4205
  declare enum DeviceSessionAskPin_FailureSubCodes {
4169
4206
  UserCancel = 1
@@ -4305,6 +4342,10 @@ type ViewDetail = {
4305
4342
  is_overview: boolean;
4306
4343
  has_icon: boolean;
4307
4344
  };
4345
+ type ViewCustomField = {
4346
+ key: string;
4347
+ value: string;
4348
+ };
4308
4349
  declare enum ViewTipType {
4309
4350
  Default = 0,
4310
4351
  Highlight = 1,
@@ -4316,10 +4357,25 @@ type ViewTip = {
4316
4357
  type: ViewTipType;
4317
4358
  text?: string;
4318
4359
  text_id?: number;
4360
+ text_arg?: string;
4319
4361
  };
4320
- type ViewRawData = {
4362
+ type ViewActionCard = {
4321
4363
  initial_data: string;
4322
- placeholder: number;
4364
+ };
4365
+ type ViewContentPreview = {
4366
+ content_key: number;
4367
+ preview: string;
4368
+ total_bytes?: number;
4369
+ };
4370
+ type ViewContentEntry = {
4371
+ entry_key: number;
4372
+ value: string;
4373
+ };
4374
+ type ViewContentPage = {
4375
+ page_index: number;
4376
+ page_count: number;
4377
+ chunk?: string;
4378
+ entry?: ViewContentEntry;
4323
4379
  };
4324
4380
  declare enum ViewSignLayout {
4325
4381
  LayoutDefault = 0,
@@ -4334,10 +4390,19 @@ type ViewSignPage = {
4334
4390
  amount?: UintType;
4335
4391
  general: ViewDetail[];
4336
4392
  tip?: ViewTip;
4337
- raw_data?: ViewRawData;
4393
+ action_card?: ViewActionCard;
4338
4394
  slide_to_confirm?: boolean;
4339
4395
  layout?: ViewSignLayout;
4340
4396
  title_id?: number;
4397
+ title_arg?: string;
4398
+ content?: ViewContentPreview;
4399
+ custom_field?: ViewCustomField;
4400
+ };
4401
+ type ViewWarningPage = {
4402
+ title_id: number;
4403
+ text_id: number;
4404
+ text_arg?: string;
4405
+ cancellable?: boolean;
4341
4406
  };
4342
4407
  type ViewVerifyPage = {
4343
4408
  title?: string;
@@ -4348,6 +4413,7 @@ type ViewVerifyPage = {
4348
4413
  value_key?: number;
4349
4414
  title_id?: number;
4350
4415
  chain_id?: number;
4416
+ content?: ViewContentPreview;
4351
4417
  };
4352
4418
  declare enum ProtocolV2FailureType {
4353
4419
  Failure_InvalidMessage = 1,
@@ -4943,8 +5009,6 @@ type MessageType = {
4943
5009
  TronSignMessage: TronSignMessage;
4944
5010
  TronMessageSignature: TronMessageSignature;
4945
5011
  facotry: facotry;
4946
- experimental_message: experimental_message;
4947
- experimental_field: experimental_field;
4948
5012
  TextMemo: TextMemo;
4949
5013
  RefundMemo: RefundMemo;
4950
5014
  CoinPurchaseMemo: CoinPurchaseMemo;
@@ -4960,6 +5024,8 @@ type MessageType = {
4960
5024
  UnlockPath: UnlockPath;
4961
5025
  UnlockedPathRequest: UnlockedPathRequest;
4962
5026
  UiAnimationRequest: UiAnimationRequest;
5027
+ experimental_message: experimental_message;
5028
+ experimental_field: experimental_field;
4963
5029
  ProtocolInfoRequest: ProtocolInfoRequest;
4964
5030
  ProtocolInfo: ProtocolInfo;
4965
5031
  DeviceReboot: DeviceReboot;
@@ -4973,6 +5039,9 @@ type MessageType = {
4973
5039
  DeviceCertificateSignature: DeviceCertificateSignature;
4974
5040
  DeviceCertificateSign: DeviceCertificateSign;
4975
5041
  DeviceMiscUsbMscControl: DeviceMiscUsbMscControl;
5042
+ DeviceFindMyTokenUpdate: DeviceFindMyTokenUpdate;
5043
+ DeviceFindMyTokenStateGet: DeviceFindMyTokenStateGet;
5044
+ DeviceFindMyTokenState: DeviceFindMyTokenState;
4976
5045
  DeviceFactoryInfoManufactureTime: DeviceFactoryInfoManufactureTime;
4977
5046
  DeviceFactoryInfo: DeviceFactoryInfo;
4978
5047
  DeviceFactoryInfoSet: DeviceFactoryInfoSet;
@@ -4982,6 +5051,7 @@ type MessageType = {
4982
5051
  DeviceFirmwareTarget: DeviceFirmwareTarget;
4983
5052
  DeviceFirmwareUpdateStage: DeviceFirmwareUpdateStage;
4984
5053
  DeviceFirmwareUpdateRequest: DeviceFirmwareUpdateRequest;
5054
+ DeviceFirmwareUpdatePhaseInfo: DeviceFirmwareUpdatePhaseInfo;
4985
5055
  DeviceFirmwareUpdateRecord: DeviceFirmwareUpdateRecord;
4986
5056
  DeviceFirmwareUpdateRecordFields: DeviceFirmwareUpdateRecordFields;
4987
5057
  DeviceFirmwareUpdateStatusGet: DeviceFirmwareUpdateStatusGet;
@@ -5020,9 +5090,14 @@ type MessageType = {
5020
5090
  PortfolioUpdate: PortfolioUpdate;
5021
5091
  ViewAmount: ViewAmount;
5022
5092
  ViewDetail: ViewDetail;
5093
+ ViewCustomField: ViewCustomField;
5023
5094
  ViewTip: ViewTip;
5024
- ViewRawData: ViewRawData;
5095
+ ViewActionCard: ViewActionCard;
5096
+ ViewContentPreview: ViewContentPreview;
5097
+ ViewContentEntry: ViewContentEntry;
5098
+ ViewContentPage: ViewContentPage;
5025
5099
  ViewSignPage: ViewSignPage;
5100
+ ViewWarningPage: ViewWarningPage;
5026
5101
  ViewVerifyPage: ViewVerifyPage;
5027
5102
  };
5028
5103
  type MessageKey = keyof MessageType;
@@ -5746,8 +5821,6 @@ type messages_TronMessageSignature = TronMessageSignature;
5746
5821
  type messages_facotry = facotry;
5747
5822
  type messages_CommandFlags = CommandFlags;
5748
5823
  declare const messages_CommandFlags: typeof CommandFlags;
5749
- type messages_experimental_message = experimental_message;
5750
- type messages_experimental_field = experimental_field;
5751
5824
  type messages_TextMemo = TextMemo;
5752
5825
  type messages_RefundMemo = RefundMemo;
5753
5826
  type messages_CoinPurchaseMemo = CoinPurchaseMemo;
@@ -5769,6 +5842,8 @@ declare const messages_UiAnimationType: typeof UiAnimationType;
5769
5842
  type messages_UiAnimationCommand = UiAnimationCommand;
5770
5843
  declare const messages_UiAnimationCommand: typeof UiAnimationCommand;
5771
5844
  type messages_UiAnimationRequest = UiAnimationRequest;
5845
+ type messages_experimental_message = experimental_message;
5846
+ type messages_experimental_field = experimental_field;
5772
5847
  type messages_ProtocolInfoRequest = ProtocolInfoRequest;
5773
5848
  type messages_ProtocolInfo = ProtocolInfo;
5774
5849
  type messages_DeviceErrorCode = DeviceErrorCode;
@@ -5788,6 +5863,9 @@ type messages_DeviceCertificateRead = DeviceCertificateRead;
5788
5863
  type messages_DeviceCertificateSignature = DeviceCertificateSignature;
5789
5864
  type messages_DeviceCertificateSign = DeviceCertificateSign;
5790
5865
  type messages_DeviceMiscUsbMscControl = DeviceMiscUsbMscControl;
5866
+ type messages_DeviceFindMyTokenUpdate = DeviceFindMyTokenUpdate;
5867
+ type messages_DeviceFindMyTokenStateGet = DeviceFindMyTokenStateGet;
5868
+ type messages_DeviceFindMyTokenState = DeviceFindMyTokenState;
5791
5869
  type messages_DeviceFactoryAck = DeviceFactoryAck;
5792
5870
  declare const messages_DeviceFactoryAck: typeof DeviceFactoryAck;
5793
5871
  type messages_DeviceFactoryInfoManufactureTime = DeviceFactoryInfoManufactureTime;
@@ -5800,9 +5878,12 @@ type messages_DeviceFirmwareTargetType = DeviceFirmwareTargetType;
5800
5878
  declare const messages_DeviceFirmwareTargetType: typeof DeviceFirmwareTargetType;
5801
5879
  type messages_DeviceFirmwareUpdateTaskStatus = DeviceFirmwareUpdateTaskStatus;
5802
5880
  declare const messages_DeviceFirmwareUpdateTaskStatus: typeof DeviceFirmwareUpdateTaskStatus;
5881
+ type messages_DeviceFirmwareUpdatePhase = DeviceFirmwareUpdatePhase;
5882
+ declare const messages_DeviceFirmwareUpdatePhase: typeof DeviceFirmwareUpdatePhase;
5803
5883
  type messages_DeviceFirmwareTarget = DeviceFirmwareTarget;
5804
5884
  type messages_DeviceFirmwareUpdateStage = DeviceFirmwareUpdateStage;
5805
5885
  type messages_DeviceFirmwareUpdateRequest = DeviceFirmwareUpdateRequest;
5886
+ type messages_DeviceFirmwareUpdatePhaseInfo = DeviceFirmwareUpdatePhaseInfo;
5806
5887
  type messages_DeviceFirmwareUpdateRecord = DeviceFirmwareUpdateRecord;
5807
5888
  type messages_DeviceFirmwareUpdateRecordFields = DeviceFirmwareUpdateRecordFields;
5808
5889
  type messages_DeviceFirmwareUpdateStatusGet = DeviceFirmwareUpdateStatusGet;
@@ -5864,13 +5945,18 @@ type messages_OnboardingStatus = OnboardingStatus;
5864
5945
  type messages_PortfolioUpdate = PortfolioUpdate;
5865
5946
  type messages_ViewAmount = ViewAmount;
5866
5947
  type messages_ViewDetail = ViewDetail;
5948
+ type messages_ViewCustomField = ViewCustomField;
5867
5949
  type messages_ViewTipType = ViewTipType;
5868
5950
  declare const messages_ViewTipType: typeof ViewTipType;
5869
5951
  type messages_ViewTip = ViewTip;
5870
- type messages_ViewRawData = ViewRawData;
5952
+ type messages_ViewActionCard = ViewActionCard;
5953
+ type messages_ViewContentPreview = ViewContentPreview;
5954
+ type messages_ViewContentEntry = ViewContentEntry;
5955
+ type messages_ViewContentPage = ViewContentPage;
5871
5956
  type messages_ViewSignLayout = ViewSignLayout;
5872
5957
  declare const messages_ViewSignLayout: typeof ViewSignLayout;
5873
5958
  type messages_ViewSignPage = ViewSignPage;
5959
+ type messages_ViewWarningPage = ViewWarningPage;
5874
5960
  type messages_ViewVerifyPage = ViewVerifyPage;
5875
5961
  type messages_ProtocolV2FailureType = ProtocolV2FailureType;
5876
5962
  declare const messages_ProtocolV2FailureType: typeof ProtocolV2FailureType;
@@ -6529,8 +6615,6 @@ declare namespace messages {
6529
6615
  messages_TronMessageSignature as TronMessageSignature,
6530
6616
  messages_facotry as facotry,
6531
6617
  messages_CommandFlags as CommandFlags,
6532
- messages_experimental_message as experimental_message,
6533
- messages_experimental_field as experimental_field,
6534
6618
  messages_TextMemo as TextMemo,
6535
6619
  messages_RefundMemo as RefundMemo,
6536
6620
  messages_CoinPurchaseMemo as CoinPurchaseMemo,
@@ -6549,6 +6633,8 @@ declare namespace messages {
6549
6633
  messages_UiAnimationType as UiAnimationType,
6550
6634
  messages_UiAnimationCommand as UiAnimationCommand,
6551
6635
  messages_UiAnimationRequest as UiAnimationRequest,
6636
+ messages_experimental_message as experimental_message,
6637
+ messages_experimental_field as experimental_field,
6552
6638
  messages_ProtocolInfoRequest as ProtocolInfoRequest,
6553
6639
  messages_ProtocolInfo as ProtocolInfo,
6554
6640
  messages_DeviceErrorCode as DeviceErrorCode,
@@ -6565,6 +6651,9 @@ declare namespace messages {
6565
6651
  messages_DeviceCertificateSignature as DeviceCertificateSignature,
6566
6652
  messages_DeviceCertificateSign as DeviceCertificateSign,
6567
6653
  messages_DeviceMiscUsbMscControl as DeviceMiscUsbMscControl,
6654
+ messages_DeviceFindMyTokenUpdate as DeviceFindMyTokenUpdate,
6655
+ messages_DeviceFindMyTokenStateGet as DeviceFindMyTokenStateGet,
6656
+ messages_DeviceFindMyTokenState as DeviceFindMyTokenState,
6568
6657
  messages_DeviceFactoryAck as DeviceFactoryAck,
6569
6658
  messages_DeviceFactoryInfoManufactureTime as DeviceFactoryInfoManufactureTime,
6570
6659
  messages_DeviceFactoryInfo as DeviceFactoryInfo,
@@ -6574,9 +6663,11 @@ declare namespace messages {
6574
6663
  messages_DeviceFactoryTest as DeviceFactoryTest,
6575
6664
  messages_DeviceFirmwareTargetType as DeviceFirmwareTargetType,
6576
6665
  messages_DeviceFirmwareUpdateTaskStatus as DeviceFirmwareUpdateTaskStatus,
6666
+ messages_DeviceFirmwareUpdatePhase as DeviceFirmwareUpdatePhase,
6577
6667
  messages_DeviceFirmwareTarget as DeviceFirmwareTarget,
6578
6668
  messages_DeviceFirmwareUpdateStage as DeviceFirmwareUpdateStage,
6579
6669
  messages_DeviceFirmwareUpdateRequest as DeviceFirmwareUpdateRequest,
6670
+ messages_DeviceFirmwareUpdatePhaseInfo as DeviceFirmwareUpdatePhaseInfo,
6580
6671
  messages_DeviceFirmwareUpdateRecord as DeviceFirmwareUpdateRecord,
6581
6672
  messages_DeviceFirmwareUpdateRecordFields as DeviceFirmwareUpdateRecordFields,
6582
6673
  messages_DeviceFirmwareUpdateStatusGet as DeviceFirmwareUpdateStatusGet,
@@ -6627,11 +6718,16 @@ declare namespace messages {
6627
6718
  messages_PortfolioUpdate as PortfolioUpdate,
6628
6719
  messages_ViewAmount as ViewAmount,
6629
6720
  messages_ViewDetail as ViewDetail,
6721
+ messages_ViewCustomField as ViewCustomField,
6630
6722
  messages_ViewTipType as ViewTipType,
6631
6723
  messages_ViewTip as ViewTip,
6632
- messages_ViewRawData as ViewRawData,
6724
+ messages_ViewActionCard as ViewActionCard,
6725
+ messages_ViewContentPreview as ViewContentPreview,
6726
+ messages_ViewContentEntry as ViewContentEntry,
6727
+ messages_ViewContentPage as ViewContentPage,
6633
6728
  messages_ViewSignLayout as ViewSignLayout,
6634
6729
  messages_ViewSignPage as ViewSignPage,
6730
+ messages_ViewWarningPage as ViewWarningPage,
6635
6731
  messages_ViewVerifyPage as ViewVerifyPage,
6636
6732
  messages_ProtocolV2FailureType as ProtocolV2FailureType,
6637
6733
  messages_Enum_ProtocolV2Capability as Enum_ProtocolV2Capability,
@@ -6686,10 +6782,16 @@ type ProtocolV2CallOptions = {
6686
6782
  onIntermediateResponse?: (response: MessageFromOneKey) => void;
6687
6783
  onWriteCompleted?: (metrics: TransportWriteMetrics) => void;
6688
6784
  returnAfterWrite?: boolean;
6785
+ onResponseAfterWrite?: (response: MessageFromOneKey) => void;
6689
6786
  writeWithResponse?: boolean;
6690
6787
  };
6691
6788
 
6692
6789
  declare function hexToBytes(hex: string): Uint8Array;
6790
+ declare function detectProtocolV2LinkDisabledError({ schemas, assembler, bytes, }: {
6791
+ schemas: ProtocolV2Schemas;
6792
+ assembler: ProtocolV2FrameAssembler;
6793
+ bytes: Uint8Array;
6794
+ }): ProtocolV2LinkDisabledError | undefined;
6693
6795
  declare function bytesToHex(bytes: Uint8Array): string;
6694
6796
  declare function isProtocolV2HighThroughputCall(name: string): boolean;
6695
6797
  declare function getErrorMessage(error: unknown): string;
@@ -6699,6 +6801,7 @@ declare class ProtocolV2Session {
6699
6801
  private readonly sequenceCursor;
6700
6802
  private pendingCall;
6701
6803
  private pendingWrite;
6804
+ private pendingResponseAfterWrite?;
6702
6805
  private lastResponseSequence?;
6703
6806
  constructor(options: ProtocolV2SessionOptions);
6704
6807
  call(name: string, data: Record<string, unknown>, callOptions?: ProtocolV2CallOptions): Promise<MessageFromOneKey>;
@@ -6706,13 +6809,14 @@ declare class ProtocolV2Session {
6706
6809
  private serializeWrite;
6707
6810
  private executeCall;
6708
6811
  }
6709
- declare function probeProtocolV2({ call, timeoutMs, logger, logPrefix, onBeforeProbe, onProbeFailed, }: {
6812
+ declare function probeProtocolV2({ call, timeoutMs, logger, logPrefix, onBeforeProbe, onProbeFailed, shouldRethrow, }: {
6710
6813
  call: (name: string, data: Record<string, unknown>, options?: ProtocolV2CallOptions) => Promise<MessageFromOneKey>;
6711
6814
  timeoutMs: number;
6712
6815
  logger?: ProtocolLogger;
6713
6816
  logPrefix?: string;
6714
6817
  onBeforeProbe?: () => Promise<void> | void;
6715
6818
  onProbeFailed?: (error: unknown) => Promise<void> | void;
6819
+ shouldRethrow?: (error: unknown) => boolean;
6716
6820
  }): Promise<boolean>;
6717
6821
 
6718
6822
  type ProtocolV2LinkErrorClassification = 'link-fatal' | 'recoverable';
@@ -6750,6 +6854,7 @@ declare class ProtocolV2LinkManager<Key> {
6750
6854
  private getOrCreateLink;
6751
6855
  private executeCall;
6752
6856
  private clearSettledCallQueue;
6857
+ private createQueuedCallTimeoutError;
6753
6858
  private assertCallGeneration;
6754
6859
  }
6755
6860
 
@@ -6834,7 +6939,7 @@ declare const PROTOCOL_V1_ENVELOPE_HEADER_SIZE: number;
6834
6939
  declare const PROTOCOL_V2_FRAME_MAX_BYTES = 4200;
6835
6940
  /** FilesystemFileWrite chunk size over WebUSB. */
6836
6941
  declare const PROTOCOL_V2_WEBUSB_FILE_CHUNK_SIZE = 4000;
6837
- /** FilesystemFileWrite chunk size over BLE. */
6942
+ /** Generic FilesystemFileWrite chunk size over BLE, including support for long filesystem paths. */
6838
6943
  declare const PROTOCOL_V2_BLE_FILE_CHUNK_SIZE = 1800;
6839
6944
  /**
6840
6945
  * FirmwareUpdateV4 chunk size for its fixed BLE staging paths.
@@ -6955,4 +7060,4 @@ declare const _default: {
6955
7060
  withProtocolTimeout: typeof withProtocolTimeout;
6956
7061
  };
6957
7062
 
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 };
7063
+ 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 };