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

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