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

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/README.md CHANGED
@@ -20,7 +20,7 @@ In order to be able to use new features of onekey-firmware you need to update pr
20
20
  1. `yarn update-submodules` to update firmware submodule
21
21
  1. `yarn update-protobuf` to generate new `./messages.json`, `./messages-protocol-v2.json` and `./src/types/messages.ts`
22
22
 
23
- The same task can be run from the repository root with `yarn update-protobuf`. The Protocol V2 schema requires the `firmware-pro2` submodule checked out on branch `main`.
23
+ The same task can be run from the repository root with `yarn update-protobuf`. The Protocol V2 schema requires the `firmware-pro2` submodule checked out on branch `dev`.
24
24
 
25
25
  ## Docs
26
26
 
@@ -88,31 +88,6 @@ describe('messages', () => {
88
88
  });
89
89
  });
90
90
 
91
- test('Protocol V2 firmware update progress matches firmware-pro2 main', () => {
92
- expect(v2Messages.nested.MessageType.values).toMatchObject({
93
- MessageType_DeviceFindMyTokenState: 60450,
94
- MessageType_DeviceFindMyTokenUpdate: 60451,
95
- MessageType_DeviceFindMyTokenStateGet: 60452,
96
- });
97
- expect(v2Messages.nested.DeviceFirmwareUpdatePhase.values).toEqual({
98
- FW_MGMT_UPDATER_PHASE_PREPARE: 0,
99
- FW_MGMT_UPDATER_PHASE_INSTALL: 1,
100
- FW_MGMT_UPDATER_PHASE_VERIFY: 2,
101
- });
102
- expect(v2Messages.nested.DeviceFirmwareUpdateRequest.fields.reboot_after_update).toMatchObject({
103
- id: 1,
104
- type: 'bool',
105
- });
106
- expect(v2Messages.nested.DeviceFirmwareUpdateRecord.fields).toMatchObject({
107
- progress_percent: { id: 11, type: 'uint32' },
108
- phase_info: { id: 12, type: 'DeviceFirmwareUpdatePhaseInfo' },
109
- });
110
- expect(v2Messages.nested.DeviceFirmwareUpdateRecordFields.fields).toMatchObject({
111
- progress_percent: { id: 11, type: 'bool' },
112
- phase_info: { id: 12, type: 'bool' },
113
- });
114
- });
115
-
116
91
  test('Protocol V2 conflicting enums keep their own wire values', () => {
117
92
  expect(generatedTypes.ProtocolV2FailureType).toMatchObject({
118
93
  Failure_DataError: 4,
@@ -317,76 +317,6 @@ describe('ProtocolV2LinkManager', () => {
317
317
  ]);
318
318
  });
319
319
 
320
- test('times out a queued call without sending it after the active call settles', async () => {
321
- let releaseActiveRead;
322
- let markActiveReadStarted;
323
- const activeReadStarted = new Promise(resolve => {
324
- markActiveReadStarted = resolve;
325
- });
326
- const activeReadBlocked = new Promise(resolve => {
327
- releaseActiveRead = resolve;
328
- });
329
- const sentSeqs = [];
330
- const success = ProtocolV2.encodeFrame(
331
- schemas,
332
- 'Success',
333
- { message: 'ok' },
334
- { router: 1, packetSrc: 0, seq: 1 }
335
- );
336
- let requestSeq = 0;
337
- let readCount = 0;
338
- const adapter = {
339
- router: 1,
340
- generation: 1,
341
- prepareCall: jest.fn(),
342
- writeFrame: jest.fn(frame => {
343
- [, , , , , , requestSeq] = frame;
344
- sentSeqs.push(requestSeq);
345
- return Promise.resolve();
346
- }),
347
- readFrame: jest.fn(async () => {
348
- readCount += 1;
349
- if (readCount === 1) {
350
- markActiveReadStarted();
351
- await activeReadBlocked;
352
- }
353
- return rewriteSeq(success, requestSeq);
354
- }),
355
- reset: jest.fn(),
356
- createTimeoutError: (name, timeoutMs) =>
357
- new Error(`response timeout after ${timeoutMs}ms for ${name}`),
358
- };
359
- const manager = new ProtocolV2LinkManager({
360
- getSchemas: () => schemas,
361
- classifyError: () => 'recoverable',
362
- });
363
- const createAdapter = jest.fn(() => adapter);
364
-
365
- const activeCall = manager.call('device-a', createAdapter, 'Ping', { message: 'active' });
366
- await activeReadStarted;
367
- const queuedCall = manager.call(
368
- 'device-a',
369
- createAdapter,
370
- 'Ping',
371
- { message: 'queued' },
372
- { timeoutMs: 20 }
373
- );
374
-
375
- await expect(queuedCall).rejects.toThrow('response timeout after 20ms for Ping');
376
- expect(sentSeqs).toEqual([1]);
377
-
378
- releaseActiveRead();
379
- await activeCall;
380
- await expect(
381
- manager.call('device-a', createAdapter, 'Ping', { message: 'after-timeout' })
382
- ).resolves.toEqual({
383
- type: 'Success',
384
- message: { message: 'ok' },
385
- });
386
-
387
- expect(sentSeqs).toEqual([1, 2]);
388
- });
389
-
390
320
  test('writes flow control while the active call is waiting for its response', async () => {
391
321
  const sentSeqs = [];
392
322
  let releaseRead;
@@ -217,7 +217,7 @@ describe('ProtocolV2UsbTransportBase', () => {
217
217
  expect(transport.nativeResets).toEqual([['device-a', 'USB reconnected']]);
218
218
  });
219
219
 
220
- test('passes each queued call its remaining timeout context', async () => {
220
+ test('passes each queued call its own timeout context', async () => {
221
221
  const transport = new FakeUsbTransport();
222
222
  await transport.rotate('device-a');
223
223
 
@@ -226,14 +226,12 @@ describe('ProtocolV2UsbTransportBase', () => {
226
226
  transport.callDevice('device-a', 'second', 222),
227
227
  ]);
228
228
 
229
- expect(transport.readContexts.slice(0, 2)).toEqual([
229
+ expect(transport.readContexts).toEqual([
230
230
  ['device-a', 111],
231
231
  ['device-a', 111],
232
+ ['device-a', 222],
233
+ ['device-a', 222],
232
234
  ]);
233
- const secondCallTimeouts = transport.readContexts.slice(2).map(([, timeoutMs]) => timeoutMs);
234
- expect(secondCallTimeouts[0]).toBeGreaterThan(0);
235
- expect(secondCallTimeouts[0]).toBeLessThanOrEqual(222);
236
- expect(secondCallTimeouts[1]).toBe(secondCallTimeouts[0]);
237
235
  });
238
236
 
239
237
  test('keeps a coalesced response buffered for the next call', async () => {
@@ -5,7 +5,6 @@ const {
5
5
  ProtocolV2LinkError,
6
6
  ProtocolV2SequenceCursor,
7
7
  ProtocolV2Session,
8
- detectProtocolV2LinkDisabledError,
9
8
  hexToBytes,
10
9
  isProtocolV2HighThroughputCall,
11
10
  probeProtocolV2,
@@ -1004,126 +1003,6 @@ describe('Protocol V2 framing and session', () => {
1004
1003
  expect(result).toEqual({ type: 'WriteCompleted', message: {} });
1005
1004
  });
1006
1005
 
1007
- test('session consumes a delayed write-only response without completing the next call', async () => {
1008
- const requestSuccess = ProtocolV2.encodeFrame(schemas, 'Success', {
1009
- message: 'install accepted',
1010
- });
1011
- const statusResponse = ProtocolV2.encodeFrame(schemas, 'DeviceFirmwareUpdateStatus', {
1012
- records: [{ target_id: 6, status: 1, path: 'vol0:/coprocessor.bin' }],
1013
- });
1014
- const prepareCall = jest.fn();
1015
- const onResponseAfterWrite = jest.fn();
1016
- const readFrame = jest
1017
- .fn()
1018
- .mockResolvedValueOnce(rewriteSeq(requestSuccess, 1))
1019
- .mockResolvedValueOnce(rewriteSeq(statusResponse, 2));
1020
- const session = new ProtocolV2Session({
1021
- schemas,
1022
- router: 1,
1023
- prepareCall,
1024
- writeFrame: () => Promise.resolve(),
1025
- readFrame,
1026
- });
1027
-
1028
- await expect(
1029
- session.call(
1030
- 'DeviceFirmwareUpdateRequest',
1031
- {},
1032
- {
1033
- returnAfterWrite: true,
1034
- expectedTypes: ['Success'],
1035
- onResponseAfterWrite,
1036
- }
1037
- )
1038
- ).resolves.toEqual({ type: 'WriteCompleted', message: {} });
1039
-
1040
- await expect(
1041
- session.call(
1042
- 'Ping',
1043
- { message: 'status-poll' },
1044
- {
1045
- expectedTypes: ['DeviceFirmwareUpdateStatus'],
1046
- }
1047
- )
1048
- ).resolves.toMatchObject({
1049
- type: 'DeviceFirmwareUpdateStatus',
1050
- message: {
1051
- records: [{ target_id: 6, status: 1, path: 'vol0:/coprocessor.bin' }],
1052
- },
1053
- });
1054
-
1055
- expect(prepareCall).toHaveBeenCalledTimes(1);
1056
- expect(onResponseAfterWrite).toHaveBeenCalledWith({
1057
- type: 'Success',
1058
- message: { message: 'install accepted' },
1059
- });
1060
- expect(readFrame).toHaveBeenCalledTimes(2);
1061
- });
1062
-
1063
- test('session preserves a delayed write-only Failure for the next caller', async () => {
1064
- const requestFailure = ProtocolV2.encodeFrame(schemas, 'Failure', {
1065
- code: 4,
1066
- message: 'install cancelled',
1067
- });
1068
- const prepareCall = jest.fn();
1069
- const onResponseAfterWrite = jest.fn();
1070
- const readFrame = jest.fn().mockResolvedValueOnce(rewriteSeq(requestFailure, 1));
1071
- const session = new ProtocolV2Session({
1072
- schemas,
1073
- router: 1,
1074
- prepareCall,
1075
- writeFrame: () => Promise.resolve(),
1076
- readFrame,
1077
- });
1078
-
1079
- await expect(
1080
- session.call(
1081
- 'DeviceFirmwareUpdateRequest',
1082
- {},
1083
- {
1084
- returnAfterWrite: true,
1085
- expectedTypes: ['Success'],
1086
- onResponseAfterWrite,
1087
- }
1088
- )
1089
- ).resolves.toEqual({ type: 'WriteCompleted', message: {} });
1090
-
1091
- await expect(
1092
- session.call(
1093
- 'Ping',
1094
- { message: 'status-poll' },
1095
- {
1096
- expectedTypes: ['DeviceFirmwareUpdateStatus'],
1097
- }
1098
- )
1099
- ).resolves.toMatchObject({
1100
- type: 'Failure',
1101
- message: {
1102
- code: 4,
1103
- message: 'install cancelled',
1104
- },
1105
- });
1106
-
1107
- expect(prepareCall).toHaveBeenCalledTimes(1);
1108
- expect(onResponseAfterWrite).not.toHaveBeenCalled();
1109
- expect(readFrame).toHaveBeenCalledTimes(1);
1110
- });
1111
-
1112
- test('probeProtocolV2 rethrows caller-selected fatal errors without treating them as a miss', async () => {
1113
- const onProbeFailed = jest.fn();
1114
- const staleBond = Object.assign(new Error('Bluetooth pairing failed'), { errorCode: 715 });
1115
-
1116
- await expect(
1117
- probeProtocolV2({
1118
- call: () => Promise.reject(staleBond),
1119
- timeoutMs: 1,
1120
- onProbeFailed,
1121
- shouldRethrow: error => error?.errorCode === 715,
1122
- })
1123
- ).rejects.toBe(staleBond);
1124
- expect(onProbeFailed).not.toHaveBeenCalled();
1125
- });
1126
-
1127
1006
  test('probeProtocolV2 accepts Success as a normal V2 probe response', async () => {
1128
1007
  await expect(
1129
1008
  probeProtocolV2({
@@ -1146,36 +1025,6 @@ describe('Protocol V2 framing and session', () => {
1146
1025
  expect(isProtocolV2LinkDisabledFailure('Failure_ProcessError', 'busy')).toBe(false);
1147
1026
  });
1148
1027
 
1149
- test('detects a split Protocol V2 link-disabled frame in the shared transport layer', () => {
1150
- const assembler = new ProtocolV2FrameAssembler();
1151
- const frame = ProtocolV2.encodeFrame(
1152
- schemas,
1153
- 'Failure',
1154
- { code: 5, message: 'link disabled' },
1155
- { router: 2 }
1156
- );
1157
- const splitAt = 4;
1158
-
1159
- expect(
1160
- detectProtocolV2LinkDisabledError({
1161
- schemas,
1162
- assembler,
1163
- bytes: frame.subarray(0, splitAt),
1164
- })
1165
- ).toBeUndefined();
1166
- expect(
1167
- detectProtocolV2LinkDisabledError({
1168
- schemas,
1169
- assembler,
1170
- bytes: frame.subarray(splitAt),
1171
- })
1172
- ).toMatchObject({
1173
- name: 'ProtocolV2LinkDisabledError',
1174
- failureCode: 5,
1175
- firmwareMessage: 'link disabled',
1176
- });
1177
- });
1178
-
1179
1028
  test.each(['Failure_ProcessError', 5])(
1180
1029
  'probeProtocolV2 surfaces link disabled without resetting the link for code %s',
1181
1030
  async code => {
package/dist/index.d.ts CHANGED
@@ -342,8 +342,6 @@ 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;
347
345
  };
348
346
  type MessageFromOneKey = {
349
347
  type: string;
@@ -362,8 +360,6 @@ type TransportCallOptions = {
362
360
  onWriteCompleted?: (metrics: TransportWriteMetrics) => void;
363
361
  /** Resolve after the complete request frame is written without waiting for a response. */
364
362
  returnAfterWrite?: boolean;
365
- /** Observe the delayed terminal response of a write-only call while a later call is active. */
366
- onResponseAfterWrite?: (response: MessageFromOneKey) => void;
367
363
  /** Prefer acknowledged BLE characteristic writes for this call when supported. */
368
364
  writeWithResponse?: boolean;
369
365
  };
@@ -1867,8 +1863,6 @@ type EthereumSignTxOneKey = {
1867
1863
  data_length?: number;
1868
1864
  chain_id: number;
1869
1865
  tx_type?: number;
1870
- expected_address?: string;
1871
- source_fingerprint?: number;
1872
1866
  };
1873
1867
  type EthereumAccessListOneKey = {
1874
1868
  address: string;
@@ -1886,8 +1880,6 @@ type EthereumSignTxEIP1559OneKey = {
1886
1880
  data_length: number;
1887
1881
  chain_id: number;
1888
1882
  access_list: EthereumAccessListOneKey[];
1889
- expected_address?: string;
1890
- source_fingerprint?: number;
1891
1883
  };
1892
1884
  type EthereumAuthorizationSignature = {
1893
1885
  y_parity: number;
@@ -1929,7 +1921,6 @@ type EthereumSignMessageOneKey = {
1929
1921
  address_n: number[];
1930
1922
  message: string;
1931
1923
  chain_id?: number;
1932
- source_fingerprint?: number;
1933
1924
  };
1934
1925
  type EthereumMessageSignatureOneKey = {
1935
1926
  signature: string;
@@ -3262,7 +3253,6 @@ type SolanaSignTx = {
3262
3253
  address_n: number[];
3263
3254
  raw_tx: string;
3264
3255
  extra_info?: SolanaTxExtraInfo;
3265
- source_fingerprint?: number;
3266
3256
  };
3267
3257
  type SolanaSignedTx = {
3268
3258
  signature?: string;
@@ -3280,12 +3270,10 @@ type SolanaSignOffChainMessage = {
3280
3270
  message_version?: SolanaOffChainMessageVersion;
3281
3271
  message_format?: SolanaOffChainMessageFormat;
3282
3272
  application_domain?: string;
3283
- source_fingerprint?: number;
3284
3273
  };
3285
3274
  type SolanaSignUnsafeMessage = {
3286
3275
  address_n: number[];
3287
3276
  message: string;
3288
- source_fingerprint?: number;
3289
3277
  };
3290
3278
  type SolanaMessageSignature = {
3291
3279
  signature: string;
@@ -3865,7 +3853,6 @@ type EthereumSignTypedDataQR = {
3865
3853
  chain_id?: number;
3866
3854
  metamask_v4_compat?: boolean;
3867
3855
  request_id?: string;
3868
- source_fingerprint?: number;
3869
3856
  };
3870
3857
  type SetBusy = {
3871
3858
  expiry_ms?: number;
@@ -3987,13 +3974,6 @@ type DeviceCertificateSign = {
3987
3974
  type DeviceMiscUsbMscControl = {
3988
3975
  enable: boolean;
3989
3976
  };
3990
- type DeviceFindMyTokenUpdate = {
3991
- token: string;
3992
- };
3993
- type DeviceFindMyTokenStateGet = {};
3994
- type DeviceFindMyTokenState = {
3995
- burned: boolean;
3996
- };
3997
3977
  declare enum DeviceFactoryAck {
3998
3978
  FACTORY_ACK_SUCCESS = 0,
3999
3979
  FACTORY_ACK_FAIL = 1
@@ -4050,11 +4030,6 @@ declare enum DeviceFirmwareUpdateTaskStatus {
4050
4030
  FW_MGMT_UPDATER_TASK_STATUS_FAILED_BUSY = 9,
4051
4031
  FW_MGMT_UPDATER_TASK_STATUS_FAILED_ENTRY_OUT_OF_BOUNDS = 10
4052
4032
  }
4053
- declare enum DeviceFirmwareUpdatePhase {
4054
- FW_MGMT_UPDATER_PHASE_PREPARE = 0,
4055
- FW_MGMT_UPDATER_PHASE_INSTALL = 1,
4056
- FW_MGMT_UPDATER_PHASE_VERIFY = 2
4057
- }
4058
4033
  type DeviceFirmwareTarget = {
4059
4034
  target_id: DeviceFirmwareTargetType;
4060
4035
  path: string;
@@ -4062,25 +4037,15 @@ type DeviceFirmwareTarget = {
4062
4037
  type DeviceFirmwareUpdateStage = {
4063
4038
  targets: DeviceFirmwareTarget[];
4064
4039
  };
4065
- type DeviceFirmwareUpdateRequest = {
4066
- reboot_after_update?: boolean;
4067
- };
4068
- type DeviceFirmwareUpdatePhaseInfo = {
4069
- phase: DeviceFirmwareUpdatePhase;
4070
- progress_percent: number;
4071
- };
4040
+ type DeviceFirmwareUpdateRequest = {};
4072
4041
  type DeviceFirmwareUpdateRecord = {
4073
4042
  target_id: DeviceFirmwareTargetType;
4074
4043
  status?: DeviceFirmwareUpdateTaskStatus;
4075
- progress_percent?: number;
4076
- phase_info?: DeviceFirmwareUpdatePhaseInfo;
4077
4044
  payload_version?: number;
4078
4045
  path?: string;
4079
4046
  };
4080
4047
  type DeviceFirmwareUpdateRecordFields = {
4081
4048
  status?: boolean;
4082
- progress_percent?: boolean;
4083
- phase_info?: boolean;
4084
4049
  payload_version?: boolean;
4085
4050
  path?: boolean;
4086
4051
  };
@@ -4351,7 +4316,6 @@ type ViewTip = {
4351
4316
  type: ViewTipType;
4352
4317
  text?: string;
4353
4318
  text_id?: number;
4354
- text_arg?: string;
4355
4319
  };
4356
4320
  type ViewRawData = {
4357
4321
  initial_data: string;
@@ -4374,7 +4338,6 @@ type ViewSignPage = {
4374
4338
  slide_to_confirm?: boolean;
4375
4339
  layout?: ViewSignLayout;
4376
4340
  title_id?: number;
4377
- title_arg?: string;
4378
4341
  };
4379
4342
  type ViewVerifyPage = {
4380
4343
  title?: string;
@@ -5010,9 +4973,6 @@ type MessageType = {
5010
4973
  DeviceCertificateSignature: DeviceCertificateSignature;
5011
4974
  DeviceCertificateSign: DeviceCertificateSign;
5012
4975
  DeviceMiscUsbMscControl: DeviceMiscUsbMscControl;
5013
- DeviceFindMyTokenUpdate: DeviceFindMyTokenUpdate;
5014
- DeviceFindMyTokenStateGet: DeviceFindMyTokenStateGet;
5015
- DeviceFindMyTokenState: DeviceFindMyTokenState;
5016
4976
  DeviceFactoryInfoManufactureTime: DeviceFactoryInfoManufactureTime;
5017
4977
  DeviceFactoryInfo: DeviceFactoryInfo;
5018
4978
  DeviceFactoryInfoSet: DeviceFactoryInfoSet;
@@ -5022,7 +4982,6 @@ type MessageType = {
5022
4982
  DeviceFirmwareTarget: DeviceFirmwareTarget;
5023
4983
  DeviceFirmwareUpdateStage: DeviceFirmwareUpdateStage;
5024
4984
  DeviceFirmwareUpdateRequest: DeviceFirmwareUpdateRequest;
5025
- DeviceFirmwareUpdatePhaseInfo: DeviceFirmwareUpdatePhaseInfo;
5026
4985
  DeviceFirmwareUpdateRecord: DeviceFirmwareUpdateRecord;
5027
4986
  DeviceFirmwareUpdateRecordFields: DeviceFirmwareUpdateRecordFields;
5028
4987
  DeviceFirmwareUpdateStatusGet: DeviceFirmwareUpdateStatusGet;
@@ -5829,9 +5788,6 @@ type messages_DeviceCertificateRead = DeviceCertificateRead;
5829
5788
  type messages_DeviceCertificateSignature = DeviceCertificateSignature;
5830
5789
  type messages_DeviceCertificateSign = DeviceCertificateSign;
5831
5790
  type messages_DeviceMiscUsbMscControl = DeviceMiscUsbMscControl;
5832
- type messages_DeviceFindMyTokenUpdate = DeviceFindMyTokenUpdate;
5833
- type messages_DeviceFindMyTokenStateGet = DeviceFindMyTokenStateGet;
5834
- type messages_DeviceFindMyTokenState = DeviceFindMyTokenState;
5835
5791
  type messages_DeviceFactoryAck = DeviceFactoryAck;
5836
5792
  declare const messages_DeviceFactoryAck: typeof DeviceFactoryAck;
5837
5793
  type messages_DeviceFactoryInfoManufactureTime = DeviceFactoryInfoManufactureTime;
@@ -5844,12 +5800,9 @@ type messages_DeviceFirmwareTargetType = DeviceFirmwareTargetType;
5844
5800
  declare const messages_DeviceFirmwareTargetType: typeof DeviceFirmwareTargetType;
5845
5801
  type messages_DeviceFirmwareUpdateTaskStatus = DeviceFirmwareUpdateTaskStatus;
5846
5802
  declare const messages_DeviceFirmwareUpdateTaskStatus: typeof DeviceFirmwareUpdateTaskStatus;
5847
- type messages_DeviceFirmwareUpdatePhase = DeviceFirmwareUpdatePhase;
5848
- declare const messages_DeviceFirmwareUpdatePhase: typeof DeviceFirmwareUpdatePhase;
5849
5803
  type messages_DeviceFirmwareTarget = DeviceFirmwareTarget;
5850
5804
  type messages_DeviceFirmwareUpdateStage = DeviceFirmwareUpdateStage;
5851
5805
  type messages_DeviceFirmwareUpdateRequest = DeviceFirmwareUpdateRequest;
5852
- type messages_DeviceFirmwareUpdatePhaseInfo = DeviceFirmwareUpdatePhaseInfo;
5853
5806
  type messages_DeviceFirmwareUpdateRecord = DeviceFirmwareUpdateRecord;
5854
5807
  type messages_DeviceFirmwareUpdateRecordFields = DeviceFirmwareUpdateRecordFields;
5855
5808
  type messages_DeviceFirmwareUpdateStatusGet = DeviceFirmwareUpdateStatusGet;
@@ -6612,9 +6565,6 @@ declare namespace messages {
6612
6565
  messages_DeviceCertificateSignature as DeviceCertificateSignature,
6613
6566
  messages_DeviceCertificateSign as DeviceCertificateSign,
6614
6567
  messages_DeviceMiscUsbMscControl as DeviceMiscUsbMscControl,
6615
- messages_DeviceFindMyTokenUpdate as DeviceFindMyTokenUpdate,
6616
- messages_DeviceFindMyTokenStateGet as DeviceFindMyTokenStateGet,
6617
- messages_DeviceFindMyTokenState as DeviceFindMyTokenState,
6618
6568
  messages_DeviceFactoryAck as DeviceFactoryAck,
6619
6569
  messages_DeviceFactoryInfoManufactureTime as DeviceFactoryInfoManufactureTime,
6620
6570
  messages_DeviceFactoryInfo as DeviceFactoryInfo,
@@ -6624,11 +6574,9 @@ declare namespace messages {
6624
6574
  messages_DeviceFactoryTest as DeviceFactoryTest,
6625
6575
  messages_DeviceFirmwareTargetType as DeviceFirmwareTargetType,
6626
6576
  messages_DeviceFirmwareUpdateTaskStatus as DeviceFirmwareUpdateTaskStatus,
6627
- messages_DeviceFirmwareUpdatePhase as DeviceFirmwareUpdatePhase,
6628
6577
  messages_DeviceFirmwareTarget as DeviceFirmwareTarget,
6629
6578
  messages_DeviceFirmwareUpdateStage as DeviceFirmwareUpdateStage,
6630
6579
  messages_DeviceFirmwareUpdateRequest as DeviceFirmwareUpdateRequest,
6631
- messages_DeviceFirmwareUpdatePhaseInfo as DeviceFirmwareUpdatePhaseInfo,
6632
6580
  messages_DeviceFirmwareUpdateRecord as DeviceFirmwareUpdateRecord,
6633
6581
  messages_DeviceFirmwareUpdateRecordFields as DeviceFirmwareUpdateRecordFields,
6634
6582
  messages_DeviceFirmwareUpdateStatusGet as DeviceFirmwareUpdateStatusGet,
@@ -6738,16 +6686,10 @@ type ProtocolV2CallOptions = {
6738
6686
  onIntermediateResponse?: (response: MessageFromOneKey) => void;
6739
6687
  onWriteCompleted?: (metrics: TransportWriteMetrics) => void;
6740
6688
  returnAfterWrite?: boolean;
6741
- onResponseAfterWrite?: (response: MessageFromOneKey) => void;
6742
6689
  writeWithResponse?: boolean;
6743
6690
  };
6744
6691
 
6745
6692
  declare function hexToBytes(hex: string): Uint8Array;
6746
- declare function detectProtocolV2LinkDisabledError({ schemas, assembler, bytes, }: {
6747
- schemas: ProtocolV2Schemas;
6748
- assembler: ProtocolV2FrameAssembler;
6749
- bytes: Uint8Array;
6750
- }): ProtocolV2LinkDisabledError | undefined;
6751
6693
  declare function bytesToHex(bytes: Uint8Array): string;
6752
6694
  declare function isProtocolV2HighThroughputCall(name: string): boolean;
6753
6695
  declare function getErrorMessage(error: unknown): string;
@@ -6757,7 +6699,6 @@ declare class ProtocolV2Session {
6757
6699
  private readonly sequenceCursor;
6758
6700
  private pendingCall;
6759
6701
  private pendingWrite;
6760
- private pendingResponseAfterWrite?;
6761
6702
  private lastResponseSequence?;
6762
6703
  constructor(options: ProtocolV2SessionOptions);
6763
6704
  call(name: string, data: Record<string, unknown>, callOptions?: ProtocolV2CallOptions): Promise<MessageFromOneKey>;
@@ -6765,14 +6706,13 @@ declare class ProtocolV2Session {
6765
6706
  private serializeWrite;
6766
6707
  private executeCall;
6767
6708
  }
6768
- declare function probeProtocolV2({ call, timeoutMs, logger, logPrefix, onBeforeProbe, onProbeFailed, shouldRethrow, }: {
6709
+ declare function probeProtocolV2({ call, timeoutMs, logger, logPrefix, onBeforeProbe, onProbeFailed, }: {
6769
6710
  call: (name: string, data: Record<string, unknown>, options?: ProtocolV2CallOptions) => Promise<MessageFromOneKey>;
6770
6711
  timeoutMs: number;
6771
6712
  logger?: ProtocolLogger;
6772
6713
  logPrefix?: string;
6773
6714
  onBeforeProbe?: () => Promise<void> | void;
6774
6715
  onProbeFailed?: (error: unknown) => Promise<void> | void;
6775
- shouldRethrow?: (error: unknown) => boolean;
6776
6716
  }): Promise<boolean>;
6777
6717
 
6778
6718
  type ProtocolV2LinkErrorClassification = 'link-fatal' | 'recoverable';
@@ -6810,7 +6750,6 @@ declare class ProtocolV2LinkManager<Key> {
6810
6750
  private getOrCreateLink;
6811
6751
  private executeCall;
6812
6752
  private clearSettledCallQueue;
6813
- private createQueuedCallTimeoutError;
6814
6753
  private assertCallGeneration;
6815
6754
  }
6816
6755
 
@@ -7016,4 +6955,4 @@ declare const _default: {
7016
6955
  withProtocolTimeout: typeof withProtocolTimeout;
7017
6956
  };
7018
6957
 
7019
- 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, 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, detectProtocolV2LinkDisabledError, experimental_field, experimental_message, facotry, getErrorMessage, getSafeTransportLogPayload, hexToBytes, isProtocolV2HighThroughputCall, isProtocolV2LinkDisabledError, isProtocolV2LinkDisabledFailure, isProtocolV2LinkError, probeProtocolV2, index as protocolV1, protocolV2Codec as protocolV2, shouldSuppressHighVolumeCallLog, withProtocolTimeout, writeProtocolV2BleFrame };
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 };