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

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