@onekeyfe/hd-transport 1.2.0-alpha.8 → 1.2.0-alpha.9

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.
Files changed (41) hide show
  1. package/__tests__/messages.test.js +62 -0
  2. package/__tests__/protocol-v2-link-manager.test.js +326 -0
  3. package/__tests__/protocol-v2-usb-transport-base.test.js +296 -0
  4. package/__tests__/protocol-v2.test.js +112 -4
  5. package/dist/constants.d.ts +2 -0
  6. package/dist/constants.d.ts.map +1 -1
  7. package/dist/index.d.ts +164 -6
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/index.js +352 -29
  10. package/dist/protocols/index.d.ts +2 -0
  11. package/dist/protocols/index.d.ts.map +1 -1
  12. package/dist/protocols/v2/constants.d.ts +1 -0
  13. package/dist/protocols/v2/constants.d.ts.map +1 -1
  14. package/dist/protocols/v2/decode.d.ts +1 -0
  15. package/dist/protocols/v2/decode.d.ts.map +1 -1
  16. package/dist/protocols/v2/link-manager.d.ts +35 -0
  17. package/dist/protocols/v2/link-manager.d.ts.map +1 -0
  18. package/dist/protocols/v2/sequence-cursor.d.ts +5 -0
  19. package/dist/protocols/v2/sequence-cursor.d.ts.map +1 -0
  20. package/dist/protocols/v2/session.d.ts +15 -3
  21. package/dist/protocols/v2/session.d.ts.map +1 -1
  22. package/dist/protocols/v2/usb-transport-base.d.ts +31 -0
  23. package/dist/protocols/v2/usb-transport-base.d.ts.map +1 -0
  24. package/dist/types/messages.d.ts +51 -1
  25. package/dist/types/messages.d.ts.map +1 -1
  26. package/dist/types/transport.d.ts +1 -1
  27. package/dist/types/transport.d.ts.map +1 -1
  28. package/messages-protocol-v2.json +134 -3
  29. package/package.json +2 -2
  30. package/scripts/protobuf-build.sh +46 -0
  31. package/src/constants.ts +6 -0
  32. package/src/index.ts +8 -0
  33. package/src/protocols/index.ts +3 -1
  34. package/src/protocols/v2/constants.ts +1 -0
  35. package/src/protocols/v2/decode.ts +36 -17
  36. package/src/protocols/v2/link-manager.ts +160 -0
  37. package/src/protocols/v2/sequence-cursor.ts +10 -0
  38. package/src/protocols/v2/session.ts +76 -40
  39. package/src/protocols/v2/usb-transport-base.ts +194 -0
  40. package/src/types/messages.ts +65 -1
  41. package/src/types/transport.ts +1 -1
@@ -1,8 +1,12 @@
1
1
  const { ProtocolV2 } = require('../src/protocols');
2
2
  const { parseConfigure } = require('../src/serialization/protobuf/messages');
3
- const sessionModule = require('../src/protocols/v2/session');
4
-
5
- const { ProtocolV2FrameAssembler, ProtocolV2Session, probeProtocolV2 } = sessionModule;
3
+ const {
4
+ ProtocolV2FrameAssembler,
5
+ ProtocolV2SequenceCursor,
6
+ ProtocolV2Session,
7
+ hexToBytes,
8
+ probeProtocolV2,
9
+ } = require('../src/protocols/v2/session');
6
10
  const protocolV2 = require('../src/protocols/v2');
7
11
 
8
12
  const protocolV1Messages = parseConfigure({
@@ -314,6 +318,56 @@ describe('Protocol V2 framing and session', () => {
314
318
  });
315
319
  });
316
320
 
321
+ test('session skips Proto Link ACK frames before decoding the protobuf response', async () => {
322
+ const ack = new Uint8Array(8);
323
+ ack[0] = 0x5a;
324
+ ack[1] = 8;
325
+ ack[2] = 0;
326
+ ack[4] = 1;
327
+ ack[5] = 1;
328
+ ack[6] = 1;
329
+ ack[3] = protocolV2.crc8(ack, 3);
330
+ ack[7] = protocolV2.crc8(ack, 7);
331
+
332
+ const response = ProtocolV2.encodeFrame(schemas, 'Success', {
333
+ message: 'ok',
334
+ });
335
+ const readFrame = jest.fn().mockResolvedValueOnce(ack).mockResolvedValueOnce(response);
336
+ const session = new ProtocolV2Session({
337
+ schemas,
338
+ router: 1,
339
+ writeFrame: () => Promise.resolve(),
340
+ readFrame,
341
+ });
342
+
343
+ await expect(session.call('Ping', { message: 'hello' })).resolves.toEqual({
344
+ type: 'Success',
345
+ message: {
346
+ message: 'ok',
347
+ },
348
+ });
349
+ expect(readFrame).toHaveBeenCalledTimes(2);
350
+ });
351
+
352
+ test('session rejects BLE frames above its configured frame limit before writing', async () => {
353
+ const writeFrame = jest.fn().mockResolvedValue(undefined);
354
+ const response = ProtocolV2.encodeFrame(schemas, 'Success', {
355
+ message: 'ok',
356
+ });
357
+ const session = new ProtocolV2Session({
358
+ schemas,
359
+ router: 1,
360
+ maxFrameBytes: 2048,
361
+ writeFrame,
362
+ readFrame: () => Promise.resolve(response),
363
+ });
364
+
365
+ await expect(session.call('Ping', { message: 'x'.repeat(2048) })).rejects.toThrow(
366
+ 'Protocol V2 frame too large for transport: 2061 > 2048'
367
+ );
368
+ expect(writeFrame).not.toHaveBeenCalled();
369
+ });
370
+
317
371
  test('session starts response timeout after the frame is written', async () => {
318
372
  const response = ProtocolV2.encodeFrame(schemas, 'Success', {
319
373
  message: 'ok',
@@ -702,6 +756,61 @@ describe('Protocol V2 framing and session', () => {
702
756
  expect(written.map(frame => frame[6])).toEqual([1, 2, 1]);
703
757
  });
704
758
 
759
+ test('session reuses an injected sequence cursor across recreated sessions', async () => {
760
+ const written = [];
761
+ const cursor = new ProtocolV2SequenceCursor();
762
+ const makeSession = () =>
763
+ new ProtocolV2Session({
764
+ schemas,
765
+ router: 1,
766
+ sequenceCursor: cursor,
767
+ writeFrame: frame => {
768
+ written.push(frame);
769
+ return Promise.resolve();
770
+ },
771
+ readFrame: () => {
772
+ const [frame] = written.slice(-1);
773
+ const { seq } = protocolV2.decodeFrame(frame);
774
+ return Promise.resolve(
775
+ rewriteSeq(ProtocolV2.encodeFrame(schemas, 'Success', { message: 'ok' }), seq)
776
+ );
777
+ },
778
+ });
779
+
780
+ await makeSession().call('Ping', { message: '1' });
781
+ await makeSession().call('Ping', { message: '2' });
782
+
783
+ expect(written.map(frame => frame[6])).toEqual([1, 2]);
784
+ });
785
+
786
+ test('session passes per-call context to frame IO callbacks', async () => {
787
+ const writeContexts = [];
788
+ const readContexts = [];
789
+ const response = ProtocolV2.encodeFrame(schemas, 'Success', { message: 'ok' });
790
+ const session = new ProtocolV2Session({
791
+ schemas,
792
+ router: 1,
793
+ generation: 7,
794
+ writeFrame: (_frame, context) => {
795
+ writeContexts.push(context);
796
+ return Promise.resolve();
797
+ },
798
+ readFrame: context => {
799
+ readContexts.push(context);
800
+ return Promise.resolve(response);
801
+ },
802
+ });
803
+
804
+ await session.call('Ping', { message: 'ping' }, { timeoutMs: 123 });
805
+ await session.call('FileWrite', {}, { timeoutMs: 456 });
806
+
807
+ expect(writeContexts).toEqual([
808
+ { messageName: 'Ping', timeoutMs: 123, highVolume: false, generation: 7 },
809
+ { messageName: 'FileWrite', timeoutMs: 456, highVolume: true, generation: 7 },
810
+ ]);
811
+ expect(readContexts).toEqual(writeContexts);
812
+ });
813
+
705
814
  test('assembler throws and resets on frames with an impossible length field', () => {
706
815
  const assembler = new ProtocolV2FrameAssembler();
707
816
  // expectedLen = 0 < 8-byte minimum: without the guard this poisons the
@@ -781,7 +890,6 @@ describe('Protocol V2 framing and session', () => {
781
890
  });
782
891
 
783
892
  test('hexToBytes converts valid hex and rejects malformed input', () => {
784
- const { hexToBytes } = sessionModule;
785
893
  expect(hexToBytes('5a0102')).toEqual(new Uint8Array([0x5a, 0x01, 0x02]));
786
894
  expect(hexToBytes('')).toEqual(new Uint8Array(0));
787
895
  expect(() => hexToBytes('abc')).toThrow('Invalid hex string: odd length');
@@ -7,6 +7,8 @@ export declare const PROTOCOL_V1_ENVELOPE_HEADER_SIZE: number;
7
7
  export declare const PROTOCOL_V2_FRAME_MAX_BYTES = 4608;
8
8
  export declare const PROTOCOL_V2_WEBUSB_FILE_CHUNK_SIZE = 4000;
9
9
  export declare const PROTOCOL_V2_BLE_FILE_CHUNK_SIZE = 1800;
10
+ export declare const PROTOCOL_V2_BLE_FILE_READ_CHUNK_SIZE = 900;
11
+ export declare const PROTOCOL_V2_BLE_FRAME_MAX_BYTES = 2048;
10
12
  export declare const PROTOCOL_V2_FILE_CHUNK_SIZE = 4000;
11
13
  export declare const PROTOCOL_V2_CHANNEL_USB = 0;
12
14
  export declare const PROTOCOL_V2_CHANNEL_BLE_UART = 1;
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,qBAAqB,KAAO,CAAC;AAG1C,eAAO,MAAM,uBAAuB,KAAO,CAAC;AAG5C,eAAO,MAAM,8BAA8B,KAAK,CAAC;AAGjD,eAAO,MAAM,2BAA2B,QAAqC,CAAC;AAG9E,eAAO,MAAM,+BAA+B,QAAQ,CAAC;AAGrD,eAAO,MAAM,gCAAgC,QAA0C,CAAC;AAKxF,eAAO,MAAM,2BAA2B,OAAO,CAAC;AAGhD,eAAO,MAAM,kCAAkC,OAAO,CAAC;AAGvD,eAAO,MAAM,+BAA+B,OAAO,CAAC;AAGpD,eAAO,MAAM,2BAA2B,OAAqC,CAAC;AAM9E,eAAO,MAAM,uBAAuB,IAAI,CAAC;AACzC,eAAO,MAAM,4BAA4B,IAAI,CAAC;AAC9C,eAAO,MAAM,0BAA0B,IAAI,CAAC;AAG5C,eAAO,MAAM,8BAA8B,IAAI,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,qBAAqB,KAAO,CAAC;AAG1C,eAAO,MAAM,uBAAuB,KAAO,CAAC;AAG5C,eAAO,MAAM,8BAA8B,KAAK,CAAC;AAGjD,eAAO,MAAM,2BAA2B,QAAqC,CAAC;AAG9E,eAAO,MAAM,+BAA+B,QAAQ,CAAC;AAGrD,eAAO,MAAM,gCAAgC,QAA0C,CAAC;AAKxF,eAAO,MAAM,2BAA2B,OAAO,CAAC;AAGhD,eAAO,MAAM,kCAAkC,OAAO,CAAC;AAGvD,eAAO,MAAM,+BAA+B,OAAO,CAAC;AAGpD,eAAO,MAAM,oCAAoC,MAAM,CAAC;AAGxD,eAAO,MAAM,+BAA+B,OAAO,CAAC;AAGpD,eAAO,MAAM,2BAA2B,OAAqC,CAAC;AAM9E,eAAO,MAAM,uBAAuB,IAAI,CAAC;AACzC,eAAO,MAAM,4BAA4B,IAAI,CAAC;AAC9C,eAAO,MAAM,0BAA0B,IAAI,CAAC;AAG5C,eAAO,MAAM,8BAA8B,IAAI,CAAC"}
package/dist/index.d.ts CHANGED
@@ -60,6 +60,7 @@ declare const PROTO_HEAD_CRC_SIZE = 8;
60
60
  declare const CRC8_INIT = 48;
61
61
  declare const PACKET_SIZE = 4096;
62
62
  declare const PROTO_DATA_TYPE_PACKET = 0;
63
+ declare const PROTO_DATA_TYPE_ACK = 1;
63
64
 
64
65
  declare const CRC8_TABLE: Uint8Array;
65
66
  declare function crc8(data: Uint8Array, len: number): number;
@@ -86,6 +87,7 @@ interface ProtoV2Frame {
86
87
  pbPayload: Uint8Array;
87
88
  seq: number;
88
89
  }
90
+ declare function isAckFrame(data: Uint8Array): boolean;
89
91
  declare function decodeFrame(data: Uint8Array, debugOptions?: ProtocolV2FrameDebugOptions): ProtoV2Frame;
90
92
 
91
93
  declare function concatUint8Arrays(arrays: Uint8Array[]): Uint8Array;
@@ -106,6 +108,7 @@ declare const protocolV2Codec_PROTO_HEAD_CRC_SIZE: typeof PROTO_HEAD_CRC_SIZE;
106
108
  declare const protocolV2Codec_CRC8_INIT: typeof CRC8_INIT;
107
109
  declare const protocolV2Codec_PACKET_SIZE: typeof PACKET_SIZE;
108
110
  declare const protocolV2Codec_PROTO_DATA_TYPE_PACKET: typeof PROTO_DATA_TYPE_PACKET;
111
+ declare const protocolV2Codec_PROTO_DATA_TYPE_ACK: typeof PROTO_DATA_TYPE_ACK;
109
112
  declare const protocolV2Codec_CRC8_TABLE: typeof CRC8_TABLE;
110
113
  declare const protocolV2Codec_crc8: typeof crc8;
111
114
  type protocolV2Codec_ProtocolV2DebugLogger = ProtocolV2DebugLogger;
@@ -115,6 +118,7 @@ declare const protocolV2Codec_nextProtoSeq: typeof nextProtoSeq;
115
118
  declare const protocolV2Codec_encodeFrame: typeof encodeFrame;
116
119
  declare const protocolV2Codec_encodeProtobufFrame: typeof encodeProtobufFrame;
117
120
  type protocolV2Codec_ProtoV2Frame = ProtoV2Frame;
121
+ declare const protocolV2Codec_isAckFrame: typeof isAckFrame;
118
122
  declare const protocolV2Codec_decodeFrame: typeof decodeFrame;
119
123
  declare const protocolV2Codec_concatUint8Arrays: typeof concatUint8Arrays;
120
124
  type protocolV2Codec_ProtocolV2FrameAssembler = ProtocolV2FrameAssembler;
@@ -127,6 +131,7 @@ declare namespace protocolV2Codec {
127
131
  protocolV2Codec_CRC8_INIT as CRC8_INIT,
128
132
  protocolV2Codec_PACKET_SIZE as PACKET_SIZE,
129
133
  protocolV2Codec_PROTO_DATA_TYPE_PACKET as PROTO_DATA_TYPE_PACKET,
134
+ protocolV2Codec_PROTO_DATA_TYPE_ACK as PROTO_DATA_TYPE_ACK,
130
135
  protocolV2Codec_CRC8_TABLE as CRC8_TABLE,
131
136
  protocolV2Codec_crc8 as crc8,
132
137
  protocolV2Codec_ProtocolV2DebugLogger as ProtocolV2DebugLogger,
@@ -136,6 +141,7 @@ declare namespace protocolV2Codec {
136
141
  protocolV2Codec_encodeFrame as encodeFrame,
137
142
  protocolV2Codec_encodeProtobufFrame as encodeProtobufFrame,
138
143
  protocolV2Codec_ProtoV2Frame as ProtoV2Frame,
144
+ protocolV2Codec_isAckFrame as isAckFrame,
139
145
  protocolV2Codec_decodeFrame as decodeFrame,
140
146
  protocolV2Codec_concatUint8Arrays as concatUint8Arrays,
141
147
  protocolV2Codec_ProtocolV2FrameAssembler as ProtocolV2FrameAssembler,
@@ -167,6 +173,7 @@ declare const ProtocolV1: {
167
173
  decodeMessage: typeof decodeMessage;
168
174
  };
169
175
  declare const ProtocolV2: {
176
+ isAckFrame: typeof isAckFrame;
170
177
  encodeFrame(schemas: ProtocolV2Schemas$1, name: string, data: Record<string, unknown>, options?: ProtocolV2FrameOptions): Uint8Array;
171
178
  decodeFrame(schemas: ProtocolV2Schemas$1, frame: Uint8Array, options?: Pick<ProtocolV2FrameOptions, 'logger' | 'logPrefix' | 'context'>): {
172
179
  message: {
@@ -247,7 +254,7 @@ type LowLevelDevice = OneKeyDeviceInfoBase & {
247
254
  type LowlevelTransportSharedPlugin = {
248
255
  enumerate: () => Promise<LowLevelDevice[]>;
249
256
  send: (uuid: string, data: string) => Promise<void>;
250
- receive: () => Promise<string>;
257
+ receive: (uuid?: string) => Promise<string>;
251
258
  connect: (uuid: string) => Promise<void>;
252
259
  disconnect: (uuid: string) => Promise<void>;
253
260
  init: () => Promise<void>;
@@ -3606,6 +3613,13 @@ type TxAckPaymentRequest = {
3606
3613
  amount?: UintType;
3607
3614
  signature: string;
3608
3615
  };
3616
+ type EthereumSignTypedDataQR = {
3617
+ address_n: number[];
3618
+ json_data?: string;
3619
+ chain_id?: number;
3620
+ metamask_v4_compat?: boolean;
3621
+ request_id?: string;
3622
+ };
3609
3623
  type InternalMyAddressRequest = {
3610
3624
  coin_type: number;
3611
3625
  chain_id: number;
@@ -3682,11 +3696,22 @@ type ViewTip = {
3682
3696
  type: ViewTipType;
3683
3697
  text: string;
3684
3698
  };
3699
+ type ViewRawData = {
3700
+ initial_data: string;
3701
+ placeholder: number;
3702
+ };
3703
+ declare enum ViewSignLayout {
3704
+ LayoutDefault = 0,
3705
+ LayoutSafeTxCreate = 1
3706
+ }
3685
3707
  type ViewSignPage = {
3686
3708
  title: string;
3687
3709
  amount?: UintType;
3688
3710
  general: ViewDetail[];
3689
3711
  tip?: ViewTip;
3712
+ raw_data?: ViewRawData;
3713
+ slide_to_confirm?: boolean;
3714
+ layout?: ViewSignLayout;
3690
3715
  };
3691
3716
  type ViewVerifyPage = {
3692
3717
  title: string;
@@ -3905,6 +3930,28 @@ type DeviceStatus = {
3905
3930
  attach_to_pin_enabled?: boolean;
3906
3931
  unlocked_by_attach_to_pin?: boolean;
3907
3932
  };
3933
+ type DeviceStatusGet = {};
3934
+ declare enum DevOnboardingStage {
3935
+ DEV_ONBOARDING_STAGE_UNKNOWN = 0,
3936
+ DEV_ONBOARDING_STAGE_SAFETY_CHECK = 1,
3937
+ DEV_ONBOARDING_STAGE_PERSONALIZATION = 2,
3938
+ DEV_ONBOARDING_STAGE_SELECT_SETUP_METHOD = 3,
3939
+ DEV_ONBOARDING_STAGE_NEW_DEVICE = 4,
3940
+ DEV_ONBOARDING_STAGE_SELECT_RESTORE_METHOD = 5,
3941
+ DEV_ONBOARDING_STAGE_RESTORE_MNEMONIC = 6,
3942
+ DEV_ONBOARDING_STAGE_RESTORE_SEEDCARD = 7,
3943
+ DEV_ONBOARDING_STAGE_WALLET_READY = 8,
3944
+ DEV_ONBOARDING_STAGE_SEEDCARD_BACKUP_PROMPT = 9,
3945
+ DEV_ONBOARDING_STAGE_SELECT_SEEDCARD_BACKUP_METHOD = 10,
3946
+ DEV_ONBOARDING_STAGE_SEEDCARD_BACKUP = 11,
3947
+ DEV_ONBOARDING_STAGE_DONE = 12
3948
+ }
3949
+ type DevGetOnboardingStatus = {};
3950
+ type DevOnboardingStatus = {
3951
+ stage: DevOnboardingStage;
3952
+ status_code?: number;
3953
+ detail_code?: number;
3954
+ };
3908
3955
  type FilesystemPermissionFix = {};
3909
3956
  type FilesystemPathInfo = {
3910
3957
  exist: boolean;
@@ -3961,7 +4008,11 @@ type FilesystemDirMake = {
3961
4008
  type FilesystemDirRemove = {
3962
4009
  path: string;
3963
4010
  };
3964
- type FilesystemFormat = {};
4011
+ type FilesystemFormat = {
4012
+ data: boolean;
4013
+ user: boolean;
4014
+ };
4015
+ type PortfolioUpdate = {};
3965
4016
  type MessageType = {
3966
4017
  AlephiumGetAddress: AlephiumGetAddress;
3967
4018
  AlephiumAddress: AlephiumAddress;
@@ -4525,6 +4576,7 @@ type MessageType = {
4525
4576
  CoinPurchaseMemo: CoinPurchaseMemo;
4526
4577
  PaymentRequestMemo: PaymentRequestMemo;
4527
4578
  TxAckPaymentRequest: TxAckPaymentRequest;
4579
+ EthereumSignTypedDataQR: EthereumSignTypedDataQR;
4528
4580
  InternalMyAddressRequest: InternalMyAddressRequest;
4529
4581
  StartSession: StartSession;
4530
4582
  SetBusy: SetBusy;
@@ -4541,6 +4593,7 @@ type MessageType = {
4541
4593
  ViewAmount: ViewAmount;
4542
4594
  ViewDetail: ViewDetail;
4543
4595
  ViewTip: ViewTip;
4596
+ ViewRawData: ViewRawData;
4544
4597
  ViewSignPage: ViewSignPage;
4545
4598
  ViewVerifyPage: ViewVerifyPage;
4546
4599
  ProtocolInfoRequest: ProtocolInfoRequest;
@@ -4577,6 +4630,9 @@ type MessageType = {
4577
4630
  DeviceSessionGet: DeviceSessionGet;
4578
4631
  DeviceSession: DeviceSession;
4579
4632
  DeviceStatus: DeviceStatus;
4633
+ DeviceStatusGet: DeviceStatusGet;
4634
+ DevGetOnboardingStatus: DevGetOnboardingStatus;
4635
+ DevOnboardingStatus: DevOnboardingStatus;
4580
4636
  FilesystemPermissionFix: FilesystemPermissionFix;
4581
4637
  FilesystemPathInfo: FilesystemPathInfo;
4582
4638
  FilesystemPathInfoQuery: FilesystemPathInfoQuery;
@@ -4589,6 +4645,7 @@ type MessageType = {
4589
4645
  FilesystemDirMake: FilesystemDirMake;
4590
4646
  FilesystemDirRemove: FilesystemDirRemove;
4591
4647
  FilesystemFormat: FilesystemFormat;
4648
+ PortfolioUpdate: PortfolioUpdate;
4592
4649
  };
4593
4650
  type MessageKey = keyof MessageType;
4594
4651
  type MessageResponse<T extends MessageKey> = {
@@ -5300,6 +5357,7 @@ type messages_RefundMemo = RefundMemo;
5300
5357
  type messages_CoinPurchaseMemo = CoinPurchaseMemo;
5301
5358
  type messages_PaymentRequestMemo = PaymentRequestMemo;
5302
5359
  type messages_TxAckPaymentRequest = TxAckPaymentRequest;
5360
+ type messages_EthereumSignTypedDataQR = EthereumSignTypedDataQR;
5303
5361
  type messages_InternalMyAddressRequest = InternalMyAddressRequest;
5304
5362
  type messages_StartSession = StartSession;
5305
5363
  type messages_SetBusy = SetBusy;
@@ -5322,6 +5380,9 @@ type messages_ViewDetail = ViewDetail;
5322
5380
  type messages_ViewTipType = ViewTipType;
5323
5381
  declare const messages_ViewTipType: typeof ViewTipType;
5324
5382
  type messages_ViewTip = ViewTip;
5383
+ type messages_ViewRawData = ViewRawData;
5384
+ type messages_ViewSignLayout = ViewSignLayout;
5385
+ declare const messages_ViewSignLayout: typeof ViewSignLayout;
5325
5386
  type messages_ViewSignPage = ViewSignPage;
5326
5387
  type messages_ViewVerifyPage = ViewVerifyPage;
5327
5388
  type messages_ProtocolInfoRequest = ProtocolInfoRequest;
@@ -5373,6 +5434,11 @@ type messages_ProtocolV2DeviceInfo = ProtocolV2DeviceInfo;
5373
5434
  type messages_DeviceSessionGet = DeviceSessionGet;
5374
5435
  type messages_DeviceSession = DeviceSession;
5375
5436
  type messages_DeviceStatus = DeviceStatus;
5437
+ type messages_DeviceStatusGet = DeviceStatusGet;
5438
+ type messages_DevOnboardingStage = DevOnboardingStage;
5439
+ declare const messages_DevOnboardingStage: typeof DevOnboardingStage;
5440
+ type messages_DevGetOnboardingStatus = DevGetOnboardingStatus;
5441
+ type messages_DevOnboardingStatus = DevOnboardingStatus;
5376
5442
  type messages_FilesystemPermissionFix = FilesystemPermissionFix;
5377
5443
  type messages_FilesystemPathInfo = FilesystemPathInfo;
5378
5444
  type messages_FilesystemPathInfoQuery = FilesystemPathInfoQuery;
@@ -5385,6 +5451,7 @@ type messages_FilesystemDirList = FilesystemDirList;
5385
5451
  type messages_FilesystemDirMake = FilesystemDirMake;
5386
5452
  type messages_FilesystemDirRemove = FilesystemDirRemove;
5387
5453
  type messages_FilesystemFormat = FilesystemFormat;
5454
+ type messages_PortfolioUpdate = PortfolioUpdate;
5388
5455
  type messages_MessageType = MessageType;
5389
5456
  type messages_MessageKey = MessageKey;
5390
5457
  type messages_MessageResponse<T extends MessageKey> = MessageResponse<T>;
@@ -6029,6 +6096,7 @@ declare namespace messages {
6029
6096
  messages_CoinPurchaseMemo as CoinPurchaseMemo,
6030
6097
  messages_PaymentRequestMemo as PaymentRequestMemo,
6031
6098
  messages_TxAckPaymentRequest as TxAckPaymentRequest,
6099
+ messages_EthereumSignTypedDataQR as EthereumSignTypedDataQR,
6032
6100
  messages_InternalMyAddressRequest as InternalMyAddressRequest,
6033
6101
  messages_StartSession as StartSession,
6034
6102
  messages_SetBusy as SetBusy,
@@ -6048,6 +6116,8 @@ declare namespace messages {
6048
6116
  messages_ViewDetail as ViewDetail,
6049
6117
  messages_ViewTipType as ViewTipType,
6050
6118
  messages_ViewTip as ViewTip,
6119
+ messages_ViewRawData as ViewRawData,
6120
+ messages_ViewSignLayout as ViewSignLayout,
6051
6121
  messages_ViewSignPage as ViewSignPage,
6052
6122
  messages_ViewVerifyPage as ViewVerifyPage,
6053
6123
  messages_ProtocolInfoRequest as ProtocolInfoRequest,
@@ -6092,6 +6162,10 @@ declare namespace messages {
6092
6162
  messages_DeviceSessionGet as DeviceSessionGet,
6093
6163
  messages_DeviceSession as DeviceSession,
6094
6164
  messages_DeviceStatus as DeviceStatus,
6165
+ messages_DeviceStatusGet as DeviceStatusGet,
6166
+ messages_DevOnboardingStage as DevOnboardingStage,
6167
+ messages_DevGetOnboardingStatus as DevGetOnboardingStatus,
6168
+ messages_DevOnboardingStatus as DevOnboardingStatus,
6095
6169
  messages_FilesystemPermissionFix as FilesystemPermissionFix,
6096
6170
  messages_FilesystemPathInfo as FilesystemPathInfo,
6097
6171
  messages_FilesystemPathInfoQuery as FilesystemPathInfoQuery,
@@ -6104,6 +6178,7 @@ declare namespace messages {
6104
6178
  messages_FilesystemDirMake as FilesystemDirMake,
6105
6179
  messages_FilesystemDirRemove as FilesystemDirRemove,
6106
6180
  messages_FilesystemFormat as FilesystemFormat,
6181
+ messages_PortfolioUpdate as PortfolioUpdate,
6107
6182
  messages_MessageType as MessageType,
6108
6183
  messages_MessageKey as MessageKey,
6109
6184
  messages_MessageResponse as MessageResponse,
@@ -6112,10 +6187,21 @@ declare namespace messages {
6112
6187
  };
6113
6188
  }
6114
6189
 
6190
+ declare class ProtocolV2SequenceCursor {
6191
+ private current;
6192
+ next(): number;
6193
+ }
6194
+
6115
6195
  type ProtocolV2Schemas = {
6116
6196
  protocolV1: Root;
6117
6197
  protocolV2: Root;
6118
6198
  };
6199
+ type ProtocolV2CallContext = {
6200
+ messageName: string;
6201
+ timeoutMs?: number;
6202
+ highVolume: boolean;
6203
+ generation: number;
6204
+ };
6119
6205
  type ProtocolLogger = {
6120
6206
  debug?: (...args: any[]) => void;
6121
6207
  error?: (...args: any[]) => void;
@@ -6124,11 +6210,15 @@ type ProtocolV2SessionOptions = {
6124
6210
  schemas: ProtocolV2Schemas;
6125
6211
  router: number;
6126
6212
  packetSrc?: number;
6127
- writeFrame: (frame: Uint8Array) => Promise<void>;
6128
- readFrame: () => Promise<Uint8Array>;
6213
+ maxFrameBytes?: number;
6214
+ prepareCall?: (context: ProtocolV2CallContext) => Promise<void> | void;
6215
+ writeFrame: (frame: Uint8Array, context: ProtocolV2CallContext) => Promise<void>;
6216
+ readFrame: (context: ProtocolV2CallContext) => Promise<Uint8Array>;
6129
6217
  logger?: ProtocolLogger;
6130
6218
  logPrefix?: string;
6131
6219
  createTimeoutError?: (name: string, timeoutMs: number) => Error;
6220
+ sequenceCursor?: ProtocolV2SequenceCursor;
6221
+ generation?: number;
6132
6222
  };
6133
6223
  type ProtocolV2CallOptions = {
6134
6224
  timeoutMs?: number;
@@ -6144,8 +6234,8 @@ declare function withProtocolTimeout<T>(promise: Promise<T>, timeoutMs: number |
6144
6234
  declare const PROTOCOL_V2_WRITE_WATCHDOG_TIMEOUT_MS = 0;
6145
6235
  declare class ProtocolV2Session {
6146
6236
  private readonly options;
6237
+ private readonly sequenceCursor;
6147
6238
  private pendingCall;
6148
- private protoSeq;
6149
6239
  constructor(options: ProtocolV2SessionOptions);
6150
6240
  call(name: string, data: Record<string, unknown>, callOptions?: ProtocolV2CallOptions): Promise<MessageFromOneKey>;
6151
6241
  private executeCall;
@@ -6159,6 +6249,68 @@ declare function probeProtocolV2({ call, timeoutMs, logger, logPrefix, onBeforeP
6159
6249
  onProbeFailed?: (error: unknown) => Promise<void> | void;
6160
6250
  }): Promise<boolean>;
6161
6251
 
6252
+ type ProtocolV2LinkErrorClassification = 'link-fatal' | 'recoverable';
6253
+ interface ProtocolV2LinkAdapter {
6254
+ router: number;
6255
+ maxFrameBytes?: number;
6256
+ generation: number;
6257
+ prepareCall(context: ProtocolV2CallContext): Promise<void> | void;
6258
+ writeFrame(frame: Uint8Array, context: ProtocolV2CallContext): Promise<void>;
6259
+ readFrame(context: ProtocolV2CallContext): Promise<Uint8Array>;
6260
+ reset(reason: string): Promise<void> | void;
6261
+ logger?: ProtocolV2SessionOptions['logger'];
6262
+ logPrefix?: string;
6263
+ createTimeoutError?: ProtocolV2SessionOptions['createTimeoutError'];
6264
+ }
6265
+ type ProtocolV2LinkManagerOptions<Key> = {
6266
+ getSchemas: () => ProtocolV2Schemas;
6267
+ classifyError: (error: unknown) => ProtocolV2LinkErrorClassification;
6268
+ onLinkInvalidated?: (key: Key, reason: string) => Promise<void> | void;
6269
+ };
6270
+ declare class ProtocolV2LinkManager<Key> {
6271
+ private readonly links;
6272
+ private readonly sequences;
6273
+ private readonly callQueues;
6274
+ private readonly options;
6275
+ constructor(options: ProtocolV2LinkManagerOptions<Key>);
6276
+ call(key: Key, createAdapter: () => ProtocolV2LinkAdapter, name: string, data: Record<string, unknown>, options?: TransportCallOptions): Promise<MessageFromOneKey>;
6277
+ invalidateLink(key: Key, reason: string): Promise<void>;
6278
+ invalidateAllLinks(reason: string): Promise<void>;
6279
+ dispose(reason: string): Promise<void>;
6280
+ private getOrCreateLink;
6281
+ private executeCall;
6282
+ private clearSettledCallQueue;
6283
+ }
6284
+
6285
+ type ProtocolV2UsbTransportBaseOptions = {
6286
+ router: number;
6287
+ maxFrameBytes: number;
6288
+ logPrefix: string;
6289
+ };
6290
+ declare abstract class ProtocolV2UsbTransportBase<Key> {
6291
+ private readonly protocolV2UsbLinks;
6292
+ private readonly protocolV2UsbAssemblers;
6293
+ private readonly protocolV2UsbGenerations;
6294
+ private readonly protocolV2UsbCancellations;
6295
+ private readonly protocolV2UsbOptions;
6296
+ protected constructor(options: ProtocolV2UsbTransportBaseOptions);
6297
+ protected abstract getProtocolV2UsbSchemas(): ProtocolV2Schemas;
6298
+ protected abstract getProtocolV2UsbLogger(): ProtocolV2SessionOptions['logger'];
6299
+ protected abstract writeProtocolV2UsbPacket(key: Key, frame: Uint8Array, context: ProtocolV2CallContext): Promise<void>;
6300
+ protected abstract readProtocolV2UsbPacket(key: Key, context: ProtocolV2CallContext): Promise<Uint8Array>;
6301
+ protected abstract resetProtocolV2UsbNativeLink(key: Key, reason: string): Promise<void>;
6302
+ protected abstract createProtocolV2UsbTimeoutError(name: string, timeoutMs: number): Error;
6303
+ protected onProtocolV2UsbLinkInvalidated(_key: Key, _reason: string): Promise<void> | void;
6304
+ protected rotateProtocolV2UsbGeneration(key: Key, reason: string): Promise<number>;
6305
+ protected callProtocolV2Usb(key: Key, name: string, data: Record<string, unknown>, options?: TransportCallOptions): Promise<MessageFromOneKey>;
6306
+ protected invalidateProtocolV2UsbLink(key: Key, reason: string): Promise<void>;
6307
+ protected invalidateAllProtocolV2UsbLinks(reason: string): Promise<void>;
6308
+ protected disposeProtocolV2UsbLinks(reason: string): Promise<void>;
6309
+ private createProtocolV2UsbAdapter;
6310
+ private getProtocolV2UsbAssembler;
6311
+ private createProtocolV2UsbCancellation;
6312
+ }
6313
+
6162
6314
  declare function info(res: any): {
6163
6315
  version: string;
6164
6316
  configured: boolean;
@@ -6194,6 +6346,8 @@ declare const PROTOCOL_V1_ENVELOPE_HEADER_SIZE: number;
6194
6346
  declare const PROTOCOL_V2_FRAME_MAX_BYTES = 4608;
6195
6347
  declare const PROTOCOL_V2_WEBUSB_FILE_CHUNK_SIZE = 4000;
6196
6348
  declare const PROTOCOL_V2_BLE_FILE_CHUNK_SIZE = 1800;
6349
+ declare const PROTOCOL_V2_BLE_FILE_READ_CHUNK_SIZE = 900;
6350
+ declare const PROTOCOL_V2_BLE_FRAME_MAX_BYTES = 2048;
6197
6351
  declare const PROTOCOL_V2_FILE_CHUNK_SIZE = 4000;
6198
6352
  declare const PROTOCOL_V2_CHANNEL_USB = 0;
6199
6353
  declare const PROTOCOL_V2_CHANNEL_BLE_UART = 1;
@@ -6216,6 +6370,7 @@ declare const _default: {
6216
6370
  decodeMessage: typeof decodeMessage;
6217
6371
  };
6218
6372
  ProtocolV2: {
6373
+ isAckFrame: typeof isAckFrame;
6219
6374
  encodeFrame(schemas: {
6220
6375
  protocolV1: protobuf.Root;
6221
6376
  protocolV2: protobuf.Root;
@@ -6250,7 +6405,10 @@ declare const _default: {
6250
6405
  };
6251
6406
  PROTOCOL_V2_SYS_MESSAGE_THRESHOLD: number;
6252
6407
  ProtocolV2FrameAssembler: typeof ProtocolV2FrameAssembler;
6408
+ ProtocolV2LinkManager: typeof ProtocolV2LinkManager;
6409
+ ProtocolV2SequenceCursor: typeof ProtocolV2SequenceCursor;
6253
6410
  ProtocolV2Session: typeof ProtocolV2Session;
6411
+ ProtocolV2UsbTransportBase: typeof ProtocolV2UsbTransportBase;
6254
6412
  bytesToHex: typeof bytesToHex;
6255
6413
  concatUint8Arrays: typeof concatUint8Arrays;
6256
6414
  createMessageFromName: (messages: protobuf.Root, name: string) => {
@@ -6271,4 +6429,4 @@ declare const _default: {
6271
6429
  withProtocolTimeout: typeof withProtocolTimeout;
6272
6430
  };
6273
6431
 
6274
- 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, DeviceFactoryAck, DeviceFactoryInfo, DeviceFactoryInfoGet, DeviceFactoryInfoManufactureTime, DeviceFactoryInfoSet, DeviceFactoryPermanentLock, DeviceFactoryTest, DeviceFirmwareImageInfo, DeviceFirmwareTarget, DeviceFirmwareTargetType, DeviceFirmwareUpdateRecord, DeviceFirmwareUpdateRecordFields, DeviceFirmwareUpdateRequest, DeviceFirmwareUpdateStatus, DeviceFirmwareUpdateStatusGet, DeviceFirmwareUpdateTaskStatus, DeviceHardwareInfo, DeviceInfo, DeviceInfoGet, DeviceInfoSettings, DeviceInfoTargets, DeviceInfoTypes, DeviceMainMcuInfo, DeviceReboot, DeviceRebootType, DeviceSEInfo, DeviceSEState, DeviceSeType, DeviceSession, DeviceSessionGet, DeviceSettings, DeviceSettingsGet, DeviceSettingsSet, DeviceStatus, 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_OutputScriptType, Enum_PinMatrixRequestType, 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, 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, GetWallpaper, HDNodePathType, HDNodeType, IdentityType, Initialize, InputScriptType, InternalInputScriptType, InternalMyAddressRequest, KaspaAddress, KaspaGetAddress, KaspaSignTx, KaspaSignedTx, KaspaTxInputAck, KaspaTxInputRequest, 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, Nonce, NostrDecryptMessage, NostrDecryptedMessage, NostrEncryptMessage, NostrEncryptedMessage, NostrGetPublicKey, NostrPublicKey, NostrSignEvent, NostrSignSchnorr, NostrSignedEvent, NostrSignedSchnorr, 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_CHANNEL_BLE_UART, PROTOCOL_V2_CHANNEL_SOCKET, PROTOCOL_V2_CHANNEL_USB, 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, PROTOCOL_V2_WRITE_WATCHDOG_TIMEOUT_MS, PassphraseAck, PassphraseRequest, PassphraseState, Path, PaymentRequestMemo, PinMatrixAck, PinMatrixRequest, PinMatrixRequestType, Ping, PolkadotAddress, PolkadotGetAddress, PolkadotSignTx, PolkadotSignedTx, PreauthorizedRequest, PrevInput, PrevOutput, PrevTx, ProtocolInfo, ProtocolInfoRequest, ProtocolType, ProtocolV1, ProtocolV2, ProtocolV2CallOptions, ProtocolV2DeviceInfo, ProtocolV2FrameAssembler, ProtocolV2Schemas, ProtocolV2Session, ProtocolV2SessionOptions, 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, SetWallpaper, 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, StartSession, 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, 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, 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, UintType, UnLockDevice, UnLockDeviceResponse, UnlockPath, UnlockedPathRequest, UpgradeFileHeader, VerifyMessage, ViewAmount, ViewDetail, ViewSignPage, ViewTip, ViewTipType, ViewVerifyPage, Vote, WL_OperationType, Wallpaper, WallpaperTarget, WipeDevice, WordAck, WordRequest, WordRequestType, WriteSEPrivateKey, WriteSEPublicCert, ZoomRequest, bytesToHex, concatUint8Arrays, _default as default, experimental_field, experimental_message, facotry, getErrorMessage, hexToBytes, probeProtocolV2, index as protocolV1, protocolV2Codec as protocolV2, withProtocolTimeout };
6432
+ 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, DevGetOnboardingStatus, DevOnboardingStage, DevOnboardingStatus, DeviceBackToBoot, DeviceCertificate, DeviceCertificateRead, DeviceCertificateSign, DeviceCertificateSignature, DeviceCertificateWrite, DeviceCoprocessorInfo, DeviceEraseSector, DeviceFactoryAck, DeviceFactoryInfo, DeviceFactoryInfoGet, DeviceFactoryInfoManufactureTime, DeviceFactoryInfoSet, DeviceFactoryPermanentLock, DeviceFactoryTest, DeviceFirmwareImageInfo, DeviceFirmwareTarget, DeviceFirmwareTargetType, DeviceFirmwareUpdateRecord, DeviceFirmwareUpdateRecordFields, DeviceFirmwareUpdateRequest, DeviceFirmwareUpdateStatus, DeviceFirmwareUpdateStatusGet, DeviceFirmwareUpdateTaskStatus, DeviceHardwareInfo, DeviceInfo, DeviceInfoGet, DeviceInfoSettings, DeviceInfoTargets, DeviceInfoTypes, DeviceMainMcuInfo, DeviceReboot, DeviceRebootType, DeviceSEInfo, DeviceSEState, DeviceSeType, DeviceSession, DeviceSessionGet, DeviceSettings, DeviceSettingsGet, 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_OutputScriptType, Enum_PinMatrixRequestType, 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, GetWallpaper, HDNodePathType, HDNodeType, IdentityType, Initialize, InputScriptType, InternalInputScriptType, InternalMyAddressRequest, KaspaAddress, KaspaGetAddress, KaspaSignTx, KaspaSignedTx, KaspaTxInputAck, KaspaTxInputRequest, 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, Nonce, NostrDecryptMessage, NostrDecryptedMessage, NostrEncryptMessage, NostrEncryptedMessage, NostrGetPublicKey, NostrPublicKey, NostrSignEvent, NostrSignSchnorr, NostrSignedEvent, NostrSignedSchnorr, 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_FRAME_MAX_BYTES, PROTOCOL_V2_CHANNEL_BLE_UART, PROTOCOL_V2_CHANNEL_SOCKET, PROTOCOL_V2_CHANNEL_USB, 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, PROTOCOL_V2_WRITE_WATCHDOG_TIMEOUT_MS, PassphraseAck, PassphraseRequest, PassphraseState, Path, PaymentRequestMemo, PinMatrixAck, PinMatrixRequest, PinMatrixRequestType, Ping, PolkadotAddress, PolkadotGetAddress, PolkadotSignTx, PolkadotSignedTx, PortfolioUpdate, PreauthorizedRequest, PrevInput, PrevOutput, PrevTx, ProtocolInfo, ProtocolInfoRequest, ProtocolType, ProtocolV1, ProtocolV2, ProtocolV2CallContext, ProtocolV2CallOptions, ProtocolV2DeviceInfo, ProtocolV2FrameAssembler, ProtocolV2LinkAdapter, ProtocolV2LinkErrorClassification, 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, SetWallpaper, 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, StartSession, 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, 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, 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, UintType, UnLockDevice, UnLockDeviceResponse, UnlockPath, UnlockedPathRequest, UpgradeFileHeader, VerifyMessage, ViewAmount, ViewDetail, ViewRawData, ViewSignLayout, ViewSignPage, ViewTip, ViewTipType, ViewVerifyPage, Vote, WL_OperationType, Wallpaper, WallpaperTarget, WipeDevice, WordAck, WordRequest, WordRequestType, WriteSEPrivateKey, WriteSEPublicCert, ZoomRequest, bytesToHex, concatUint8Arrays, _default as default, experimental_field, experimental_message, facotry, getErrorMessage, hexToBytes, probeProtocolV2, index as protocolV1, protocolV2Codec as protocolV2, withProtocolTimeout };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAG7C,OAAO,EAKL,cAAc,EACf,MAAM,iBAAiB,CAAC;AAEzB,OAAO,KAAK,eAAe,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAEL,iBAAiB,EACjB,UAAU,EAEV,eAAe,EACf,UAAU,EACV,eAAe,EACf,mBAAmB,EACpB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,KAAK,MAAM,0BAA0B,CAAC;AAKlD,YAAY,EACV,SAAS,EACT,YAAY,EACZ,gBAAgB,EAChB,sBAAsB,EACtB,2BAA2B,EAC3B,iBAAiB,EACjB,oBAAoB,EACpB,6BAA6B,EAC7B,cAAc,EACd,oBAAoB,EACpB,oBAAoB,EACpB,YAAY,GACb,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AAExC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,OAAO,KAAK,UAAU,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,gBAAgB,CAAC;AAC7C,cAAc,wBAAwB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEvC,wBAmBE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAG7C,OAAO,EAKL,cAAc,EACf,MAAM,iBAAiB,CAAC;AAEzB,OAAO,KAAK,eAAe,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAC;AAC/E,OAAO,EAEL,wBAAwB,EACxB,iBAAiB,EACjB,UAAU,EAEV,eAAe,EACf,UAAU,EACV,eAAe,EACf,mBAAmB,EACpB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,KAAK,MAAM,0BAA0B,CAAC;AAKlD,YAAY,EACV,SAAS,EACT,YAAY,EACZ,gBAAgB,EAChB,sBAAsB,EACtB,2BAA2B,EAC3B,iBAAiB,EACjB,oBAAoB,EACpB,6BAA6B,EAC7B,cAAc,EACd,oBAAoB,EACpB,oBAAoB,EACpB,YAAY,GACb,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AAExC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,OAAO,KAAK,UAAU,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,gBAAgB,CAAC;AAC7C,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAElD,wBAsBE"}