@onekeyfe/hd-transport 1.2.0-alpha.18 → 1.2.0-alpha.180

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 (55) hide show
  1. package/__tests__/messages.test.js +137 -32
  2. package/__tests__/protocol-v2-ble-frame-writer.test.js +119 -0
  3. package/__tests__/protocol-v2-link-manager.test.js +246 -9
  4. package/__tests__/protocol-v2-usb-transport-base.test.js +42 -6
  5. package/__tests__/protocol-v2.test.js +632 -62
  6. package/__tests__/transport-log.test.js +79 -0
  7. package/dist/constants.d.ts +3 -1
  8. package/dist/constants.d.ts.map +1 -1
  9. package/dist/index.d.ts +539 -285
  10. package/dist/index.d.ts.map +1 -1
  11. package/dist/index.js +718 -160
  12. package/dist/protocols/index.d.ts +17 -1
  13. package/dist/protocols/index.d.ts.map +1 -1
  14. package/dist/protocols/v2/ble-frame-writer.d.ts +15 -0
  15. package/dist/protocols/v2/ble-frame-writer.d.ts.map +1 -0
  16. package/dist/protocols/v2/decode.d.ts +11 -0
  17. package/dist/protocols/v2/decode.d.ts.map +1 -1
  18. package/dist/protocols/v2/errors.d.ts +16 -0
  19. package/dist/protocols/v2/errors.d.ts.map +1 -0
  20. package/dist/protocols/v2/frame-assembler.d.ts.map +1 -1
  21. package/dist/protocols/v2/index.d.ts +2 -0
  22. package/dist/protocols/v2/index.d.ts.map +1 -1
  23. package/dist/protocols/v2/link-manager.d.ts +6 -0
  24. package/dist/protocols/v2/link-manager.d.ts.map +1 -1
  25. package/dist/protocols/v2/session.d.ts +16 -4
  26. package/dist/protocols/v2/session.d.ts.map +1 -1
  27. package/dist/protocols/v2/usb-transport-base.d.ts +2 -0
  28. package/dist/protocols/v2/usb-transport-base.d.ts.map +1 -1
  29. package/dist/serialization/protobuf/encode.d.ts.map +1 -1
  30. package/dist/types/messages.d.ts +217 -202
  31. package/dist/types/messages.d.ts.map +1 -1
  32. package/dist/types/transport.d.ts +21 -2
  33. package/dist/types/transport.d.ts.map +1 -1
  34. package/dist/utils/transportLog.d.ts +9 -0
  35. package/dist/utils/transportLog.d.ts.map +1 -0
  36. package/messages-protocol-v2.json +515 -540
  37. package/package.json +2 -2
  38. package/scripts/protobuf-types.js +7 -1
  39. package/src/constants.ts +30 -16
  40. package/src/index.ts +5 -1
  41. package/src/protocols/index.ts +114 -3
  42. package/src/protocols/v2/ble-frame-writer.ts +77 -0
  43. package/src/protocols/v2/crc8.ts +1 -1
  44. package/src/protocols/v2/decode.ts +49 -12
  45. package/src/protocols/v2/encode.ts +1 -1
  46. package/src/protocols/v2/errors.ts +54 -0
  47. package/src/protocols/v2/frame-assembler.ts +6 -4
  48. package/src/protocols/v2/index.ts +2 -0
  49. package/src/protocols/v2/link-manager.ts +110 -9
  50. package/src/protocols/v2/session.ts +260 -87
  51. package/src/protocols/v2/usb-transport-base.ts +42 -10
  52. package/src/serialization/protobuf/encode.ts +5 -1
  53. package/src/types/messages.ts +269 -258
  54. package/src/types/transport.ts +39 -7
  55. package/src/utils/transportLog.ts +102 -0
package/dist/index.d.ts CHANGED
@@ -63,20 +63,90 @@ declare const PROTO_DATA_TYPE_PACKET = 0;
63
63
  declare const PROTO_DATA_TYPE_ACK = 1;
64
64
 
65
65
  declare const CRC8_TABLE: Uint8Array;
66
+ /**
67
+ * Compute CRC-8 over the first len bytes using the firmware-compatible initial value.
68
+ */
66
69
  declare function crc8(data: Uint8Array, len: number): number;
67
70
 
71
+ /**
72
+ * Advance a Protocol V2 sequence counter: 1-255, wraps around skipping 0.
73
+ */
68
74
  declare function nextProtoSeq(current: number): number;
75
+ /**
76
+ * Build a raw Protocol V2 frame (0x5A framing).
77
+ *
78
+ * Frame layout (PROTO_HEAD_CRC_SIZE = 8 overhead bytes):
79
+ * [0] SOF = 0x5A
80
+ * [1] frameLen low byte
81
+ * [2] frameLen high byte
82
+ * [3] CRC8 of bytes 0-2 (pre-header CRC)
83
+ * [4] router
84
+ * [5] attr = ((packetSrc & 0x0F) << 2) | dataType
85
+ * [6] seq (1-255, wraps skipping 0)
86
+ * [7..N-2] payload
87
+ * [N-1] CRC8 of bytes 0 to N-2 (frame CRC)
88
+ */
69
89
  declare function encodeFrame(payload: Uint8Array | null, packetSrc?: number, router?: number, seq?: number): Uint8Array;
90
+ /**
91
+ * Build a Protocol V2 frame carrying a protobuf message.
92
+ *
93
+ * Payload layout:
94
+ * [0-1] messageTypeId as little-endian uint16
95
+ * [2..] protobuf-encoded message bytes
96
+ */
70
97
  declare function encodeProtobufFrame(messageTypeId: number, pbPayload: Uint8Array, packetSrc?: number, router?: number, seq?: number): Uint8Array;
71
98
 
72
99
  interface ProtoV2Frame {
100
+ /** Little-endian message type ID */
73
101
  messageTypeId: number;
102
+ /** Raw protobuf-encoded payload (bytes after the 2-byte messageTypeId) */
74
103
  pbPayload: Uint8Array;
104
+ /** Sequence number from the frame header */
75
105
  seq: number;
106
+ /** Routing channel from the frame header */
107
+ router: number;
108
+ /** Packet source from the frame header */
109
+ packetSrc: number;
110
+ /** Packet or ACK discriminator from the frame header */
111
+ dataType: number;
76
112
  }
113
+ type ProtoV2FrameHeader = {
114
+ frameLen: number;
115
+ router: number;
116
+ packetSrc: number;
117
+ dataType: number;
118
+ seq: number;
119
+ };
120
+ declare function inspectFrameHeader(data: Uint8Array): ProtoV2FrameHeader;
77
121
  declare function isAckFrame(data: Uint8Array): boolean;
122
+ /**
123
+ * Parse and validate a Protocol V2 response frame.
124
+ *
125
+ * Validates:
126
+ * - SOF byte (0x5A)
127
+ * - Header CRC (bytes 0-2)
128
+ * - Frame CRC (full frame except last byte)
129
+ *
130
+ * Returns the decoded messageTypeId, raw protobuf payload, and sequence number.
131
+ */
78
132
  declare function decodeFrame(data: Uint8Array): ProtoV2Frame;
79
133
 
134
+ type ProtocolV2LinkErrorCode = 'response-timeout' | 'io' | 'generation' | 'router' | 'packet-source' | 'ack-sequence' | 'response-sequence' | 'frame';
135
+ declare class ProtocolV2LinkError extends Error {
136
+ readonly code: ProtocolV2LinkErrorCode;
137
+ readonly cause?: unknown;
138
+ constructor(code: ProtocolV2LinkErrorCode, message: string, cause?: unknown);
139
+ }
140
+ declare const isProtocolV2LinkError: (error: unknown) => error is ProtocolV2LinkError;
141
+ type ProtocolV2LinkDisabledError = Error & {
142
+ name: 'ProtocolV2LinkDisabledError';
143
+ failureCode: string | number;
144
+ firmwareMessage: string;
145
+ };
146
+ declare const createProtocolV2LinkDisabledError: (failureCode: string | number, firmwareMessage: string) => ProtocolV2LinkDisabledError;
147
+ declare const isProtocolV2LinkDisabledError: (error: unknown) => error is ProtocolV2LinkDisabledError;
148
+ declare const isProtocolV2LinkDisabledFailure: (failureCode: unknown, firmwareMessage: unknown) => boolean;
149
+
80
150
  declare function concatUint8Arrays(arrays: Uint8Array[]): Uint8Array;
81
151
  declare class ProtocolV2FrameAssembler {
82
152
  private buffer;
@@ -84,11 +154,31 @@ declare class ProtocolV2FrameAssembler {
84
154
  constructor(maxFrameBytes?: number);
85
155
  reset(): void;
86
156
  push(chunk: Uint8Array): Uint8Array | undefined;
157
+ /**
158
+ * Append a chunk (optional) and extract every complete frame currently
159
+ * buffered. Same validation/throw semantics as push(); push() stays
160
+ * backward compatible for callers that drain one frame at a time.
161
+ */
87
162
  drain(chunk?: Uint8Array): Uint8Array[];
88
163
  private append;
89
164
  private extractFrame;
90
165
  }
91
166
 
167
+ type ProtocolV2BleFrameWriterOptions = {
168
+ frame: Uint8Array;
169
+ packetCapacity: number;
170
+ writePacket: (packet: Uint8Array, packetIndex: number) => Promise<void>;
171
+ assertActive?: () => void;
172
+ signal?: AbortSignal;
173
+ abortMessage?: string;
174
+ initialDelayMs?: number;
175
+ burstSize?: number;
176
+ burstPauseMs?: number;
177
+ flushDelayMs?: number;
178
+ wait?: (timeoutMs: number) => Promise<void>;
179
+ };
180
+ declare function writeProtocolV2BleFrame({ frame, packetCapacity, writePacket, assertActive, signal, abortMessage, initialDelayMs, burstSize, burstPauseMs, flushDelayMs, wait, }: ProtocolV2BleFrameWriterOptions): Promise<void>;
181
+
92
182
  declare const protocolV2Codec_PROTO_HEAD_SOF: typeof PROTO_HEAD_SOF;
93
183
  declare const protocolV2Codec_PROTO_PRE_HEAD_SIZE: typeof PROTO_PRE_HEAD_SIZE;
94
184
  declare const protocolV2Codec_PROTO_HEAD_CRC_SIZE: typeof PROTO_HEAD_CRC_SIZE;
@@ -102,11 +192,23 @@ declare const protocolV2Codec_nextProtoSeq: typeof nextProtoSeq;
102
192
  declare const protocolV2Codec_encodeFrame: typeof encodeFrame;
103
193
  declare const protocolV2Codec_encodeProtobufFrame: typeof encodeProtobufFrame;
104
194
  type protocolV2Codec_ProtoV2Frame = ProtoV2Frame;
195
+ type protocolV2Codec_ProtoV2FrameHeader = ProtoV2FrameHeader;
196
+ declare const protocolV2Codec_inspectFrameHeader: typeof inspectFrameHeader;
105
197
  declare const protocolV2Codec_isAckFrame: typeof isAckFrame;
106
198
  declare const protocolV2Codec_decodeFrame: typeof decodeFrame;
199
+ type protocolV2Codec_ProtocolV2LinkErrorCode = ProtocolV2LinkErrorCode;
200
+ type protocolV2Codec_ProtocolV2LinkError = ProtocolV2LinkError;
201
+ declare const protocolV2Codec_ProtocolV2LinkError: typeof ProtocolV2LinkError;
202
+ declare const protocolV2Codec_isProtocolV2LinkError: typeof isProtocolV2LinkError;
203
+ type protocolV2Codec_ProtocolV2LinkDisabledError = ProtocolV2LinkDisabledError;
204
+ declare const protocolV2Codec_createProtocolV2LinkDisabledError: typeof createProtocolV2LinkDisabledError;
205
+ declare const protocolV2Codec_isProtocolV2LinkDisabledError: typeof isProtocolV2LinkDisabledError;
206
+ declare const protocolV2Codec_isProtocolV2LinkDisabledFailure: typeof isProtocolV2LinkDisabledFailure;
107
207
  declare const protocolV2Codec_concatUint8Arrays: typeof concatUint8Arrays;
108
208
  type protocolV2Codec_ProtocolV2FrameAssembler = ProtocolV2FrameAssembler;
109
209
  declare const protocolV2Codec_ProtocolV2FrameAssembler: typeof ProtocolV2FrameAssembler;
210
+ type protocolV2Codec_ProtocolV2BleFrameWriterOptions = ProtocolV2BleFrameWriterOptions;
211
+ declare const protocolV2Codec_writeProtocolV2BleFrame: typeof writeProtocolV2BleFrame;
110
212
  declare namespace protocolV2Codec {
111
213
  export {
112
214
  protocolV2Codec_PROTO_HEAD_SOF as PROTO_HEAD_SOF,
@@ -122,10 +224,21 @@ declare namespace protocolV2Codec {
122
224
  protocolV2Codec_encodeFrame as encodeFrame,
123
225
  protocolV2Codec_encodeProtobufFrame as encodeProtobufFrame,
124
226
  protocolV2Codec_ProtoV2Frame as ProtoV2Frame,
227
+ protocolV2Codec_ProtoV2FrameHeader as ProtoV2FrameHeader,
228
+ protocolV2Codec_inspectFrameHeader as inspectFrameHeader,
125
229
  protocolV2Codec_isAckFrame as isAckFrame,
126
230
  protocolV2Codec_decodeFrame as decodeFrame,
231
+ protocolV2Codec_ProtocolV2LinkErrorCode as ProtocolV2LinkErrorCode,
232
+ protocolV2Codec_ProtocolV2LinkError as ProtocolV2LinkError,
233
+ protocolV2Codec_isProtocolV2LinkError as isProtocolV2LinkError,
234
+ protocolV2Codec_ProtocolV2LinkDisabledError as ProtocolV2LinkDisabledError,
235
+ protocolV2Codec_createProtocolV2LinkDisabledError as createProtocolV2LinkDisabledError,
236
+ protocolV2Codec_isProtocolV2LinkDisabledError as isProtocolV2LinkDisabledError,
237
+ protocolV2Codec_isProtocolV2LinkDisabledFailure as isProtocolV2LinkDisabledFailure,
127
238
  protocolV2Codec_concatUint8Arrays as concatUint8Arrays,
128
239
  protocolV2Codec_ProtocolV2FrameAssembler as ProtocolV2FrameAssembler,
240
+ protocolV2Codec_ProtocolV2BleFrameWriterOptions as ProtocolV2BleFrameWriterOptions,
241
+ protocolV2Codec_writeProtocolV2BleFrame as writeProtocolV2BleFrame,
129
242
  };
130
243
  }
131
244
 
@@ -137,6 +250,7 @@ type ProtocolV2Schemas$1 = {
137
250
  type ProtocolV2FrameOptions = {
138
251
  packetSrc?: number;
139
252
  router?: number;
253
+ /** Sequence number (1-255). Managed per-session by ProtocolV2Session. */
140
254
  seq?: number;
141
255
  };
142
256
  declare const ProtocolV1: {
@@ -152,15 +266,31 @@ declare const ProtocolV1: {
152
266
  };
153
267
  declare const ProtocolV2: {
154
268
  isAckFrame: typeof isAckFrame;
269
+ inspectFrameHeader: typeof inspectFrameHeader;
155
270
  inspectFrame(schemas: ProtocolV2Schemas$1, frame: Uint8Array): {
156
271
  messageName: string;
157
272
  messageTypeId: number;
158
273
  pbPayload: Uint8Array;
159
274
  seq: number;
275
+ router: number;
276
+ packetSrc: number;
277
+ dataType: number;
160
278
  type: string;
161
279
  };
162
280
  encodeFrame(schemas: ProtocolV2Schemas$1, name: string, data: Record<string, unknown>, options?: ProtocolV2FrameOptions): Uint8Array;
163
281
  decodeFrame(schemas: ProtocolV2Schemas$1, frame: Uint8Array): {
282
+ message: {
283
+ version: any;
284
+ build_fingerprint: string;
285
+ supported_messages: any;
286
+ protobuf_definition: null;
287
+ };
288
+ messageName: string;
289
+ messageTypeId: number;
290
+ pbPayload: Uint8Array;
291
+ seq: number;
292
+ type: string;
293
+ } | {
164
294
  message: {
165
295
  [key: string]: any;
166
296
  };
@@ -172,6 +302,14 @@ declare const ProtocolV2: {
172
302
  };
173
303
  };
174
304
 
305
+ declare const TRANSPORT_EVENT: {
306
+ readonly DEVICE_DISCONNECT: "transport-device-disconnect";
307
+ };
308
+ type TransportDeviceDisconnectEvent = {
309
+ id: string;
310
+ connectId: string;
311
+ name: string | null;
312
+ };
175
313
  type ProtocolType = 'V1' | 'V2';
176
314
  type OneKeyDeviceCommType = 'usb' | 'webusb' | 'ble' | 'webble' | 'electron-ble' | 'bridge' | 'emulator';
177
315
  type OneKeyUsbDeviceInfo = {
@@ -198,23 +336,48 @@ type AcquireInput = {
198
336
  uuid?: string;
199
337
  forceCleanRunPromise?: boolean;
200
338
  expectedProtocol?: ProtocolType;
339
+ protocolHint?: ProtocolType;
340
+ /**
341
+ * Explicit recovery/discovery (e.g. detectDeviceConnectProtocol): the
342
+ * transport must probe the protocol on the wire, bypassing any cached result.
343
+ */
344
+ forceProtocolDetection?: boolean;
345
+ /** Reuse expectedProtocol only when this transport previously confirmed it for the same endpoint. */
346
+ skipProtocolProbe?: boolean;
201
347
  };
202
348
  type MessageFromOneKey = {
203
349
  type: string;
204
350
  message: Record<string, any>;
205
351
  };
352
+ type TransportWriteMetrics = {
353
+ elapsedMs: number;
354
+ frameBytes: number;
355
+ };
206
356
  type TransportCallOptions = {
207
357
  timeoutMs?: number;
208
358
  expectedTypes?: string[];
209
359
  intermediateTypes?: string[];
210
360
  onIntermediateResponse?: (response: MessageFromOneKey) => void;
361
+ /** Called after the complete request frame has been submitted to the transport. */
362
+ onWriteCompleted?: (metrics: TransportWriteMetrics) => void;
363
+ /** Resolve after the complete request frame is written without waiting for a response. */
364
+ returnAfterWrite?: boolean;
365
+ /** Observe the delayed terminal response of a write-only call while a later call is active. */
366
+ onResponseAfterWrite?: (response: MessageFromOneKey) => void;
367
+ /** Prefer acknowledged BLE characteristic writes for this call when supported. */
368
+ writeWithResponse?: boolean;
211
369
  };
212
370
  type ITransportInitFn = (logger?: any, emitter?: EventEmitter, plugin?: LowlevelTransportSharedPlugin) => Promise<string>;
213
371
  type Transport = {
214
372
  enumerate(): Promise<Array<OneKeyDeviceInfo>>;
215
373
  listen(old?: Array<OneKeyDeviceInfo>): Promise<Array<OneKeyDeviceInfo>>;
216
374
  acquire(input: AcquireInput): Promise<string>;
217
- release(session: string, onclose: boolean): Promise<void>;
375
+ /**
376
+ * `keepSession` tells a transport that the caller intends to keep using this
377
+ * device across calls (firmware update, batched signing). Transports that
378
+ * hold the link open may use it to pick a longer idle window; the rest ignore it.
379
+ */
380
+ release(session: string, onclose: boolean, keepSession?: boolean): Promise<void>;
218
381
  configure(signedData: JSON | string): Promise<void>;
219
382
  configureProtocolV2?: (signedData: JSON | string) => Promise<void> | void;
220
383
  call(session: string, name: string, data: Record<string, any>, options?: TransportCallOptions): Promise<MessageFromOneKey>;
@@ -225,7 +388,7 @@ type Transport = {
225
388
  getProtocolType: (path: string) => ProtocolType | undefined;
226
389
  promptDeviceAccess?: () => Promise<USBDevice | BluetoothDevice | null>;
227
390
  init: ITransportInitFn;
228
- stop(): void;
391
+ stop(): void | Promise<void>;
229
392
  configured: boolean;
230
393
  version: string;
231
394
  name: string;
@@ -2014,7 +2177,7 @@ declare enum Enum_SafetyCheckLevel {
2014
2177
  PromptAlways = 1,
2015
2178
  PromptTemporarily = 2
2016
2179
  }
2017
- type SafetyCheckLevel = keyof typeof Enum_SafetyCheckLevel;
2180
+ type SafetyCheckLevel = keyof typeof Enum_SafetyCheckLevel | Enum_SafetyCheckLevel;
2018
2181
  type Initialize = {
2019
2182
  session_id?: string;
2020
2183
  _skip_passphrase?: boolean;
@@ -3695,17 +3858,6 @@ type EthereumSignTypedDataQR = {
3695
3858
  metamask_v4_compat?: boolean;
3696
3859
  request_id?: string;
3697
3860
  };
3698
- type InternalMyAddressRequest = {
3699
- coin_type: number;
3700
- chain_id: number;
3701
- account_index: number;
3702
- derive_type: number;
3703
- };
3704
- type StartSession = {
3705
- session_id?: string;
3706
- _skip_passphrase?: boolean;
3707
- derive_cardano?: boolean;
3708
- };
3709
3861
  type SetBusy = {
3710
3862
  expiry_ms?: number;
3711
3863
  };
@@ -3722,21 +3874,6 @@ type Nonce = {
3722
3874
  type WriteSEPrivateKey = {
3723
3875
  private_key: string;
3724
3876
  };
3725
- declare enum WallpaperTarget {
3726
- Home = 0,
3727
- Lock = 1
3728
- }
3729
- type SetWallpaper = {
3730
- target: WallpaperTarget;
3731
- path: string;
3732
- };
3733
- type GetWallpaper = {
3734
- target: WallpaperTarget;
3735
- };
3736
- type Wallpaper = {
3737
- target: WallpaperTarget;
3738
- path: string;
3739
- };
3740
3877
  type UnlockPath = {
3741
3878
  address_n: number[];
3742
3879
  mac?: string;
@@ -3750,57 +3887,27 @@ declare enum MoneroNetworkType {
3750
3887
  STAGENET = 2,
3751
3888
  FAKECHAIN = 3
3752
3889
  }
3753
- type ViewAmount = {
3754
- is_unlimited: boolean;
3755
- num: string;
3756
- };
3757
- type ViewDetail = {
3758
- key: number;
3759
- value: string;
3760
- is_overview: boolean;
3761
- has_icon: boolean;
3762
- };
3763
- declare enum ViewTipType {
3764
- Default = 0,
3765
- Highlight = 1,
3766
- Recommend = 2,
3767
- Warning = 3,
3768
- Danger = 4
3890
+ declare enum UiAnimationType {
3891
+ Unknown = 0,
3892
+ Signing = 1
3769
3893
  }
3770
- type ViewTip = {
3771
- type: ViewTipType;
3772
- text: string;
3773
- };
3774
- type ViewRawData = {
3775
- initial_data: string;
3776
- placeholder: number;
3777
- };
3778
- declare enum ViewSignLayout {
3779
- LayoutDefault = 0,
3780
- LayoutSafeTxCreate = 1,
3781
- LayoutFinalConfirm = 2,
3782
- Layout7702 = 3,
3783
- LayoutFlat = 4
3894
+ declare enum UiAnimationCommand {
3895
+ CommandUnknown = 0,
3896
+ Start = 1,
3897
+ Stop = 2,
3898
+ Refresh = 3
3784
3899
  }
3785
- type ViewSignPage = {
3786
- title: string;
3787
- amount?: UintType;
3788
- general: ViewDetail[];
3789
- tip?: ViewTip;
3790
- raw_data?: ViewRawData;
3791
- slide_to_confirm?: boolean;
3792
- layout?: ViewSignLayout;
3900
+ type UiAnimationRequest = {
3901
+ command: UiAnimationCommand;
3902
+ type?: UiAnimationType;
3793
3903
  };
3794
- type ViewVerifyPage = {
3795
- title: string;
3796
- address: string;
3797
- path: string;
3904
+ type ProtocolInfoRequest = {
3905
+ eventless_wallet_session?: boolean;
3798
3906
  };
3799
- type ProtocolInfoRequest = {};
3800
3907
  type ProtocolInfo = {
3801
3908
  version: number;
3909
+ build_fingerprint: string;
3802
3910
  supported_messages: number[];
3803
- protobuf_definition?: string;
3804
3911
  };
3805
3912
  declare enum DeviceErrorCode {
3806
3913
  DeviceError_None = 0,
@@ -3823,23 +3930,22 @@ type DeviceReboot = {
3823
3930
  reboot_type: DeviceRebootType;
3824
3931
  };
3825
3932
  type DeviceSettings = {
3826
- label?: string;
3827
3933
  bt_enable?: boolean;
3828
3934
  language?: string;
3829
3935
  wallpaper_path?: string;
3830
- passphrase_enable?: boolean;
3831
3936
  brightness?: number;
3832
- autolock_delay_ms?: number;
3833
- autoshutdown_delay_ms?: number;
3834
3937
  animation_enable?: boolean;
3835
3938
  tap_to_wake?: boolean;
3836
3939
  haptic_feedback?: boolean;
3837
3940
  device_name_display_enabled?: boolean;
3838
3941
  airgap_mode?: boolean;
3839
- fido_enabled?: boolean;
3840
- experimental_features?: boolean;
3841
3942
  usb_lock_enable?: boolean;
3842
3943
  random_keypad?: boolean;
3944
+ passphrase_enable?: boolean;
3945
+ fido_enabled?: boolean;
3946
+ autolock_delay_ms?: number;
3947
+ autoshutdown_delay_ms?: number;
3948
+ label?: string;
3843
3949
  };
3844
3950
  type DeviceSettingsGet = {};
3845
3951
  type DeviceSettingsSet = {
@@ -3869,6 +3975,39 @@ type DeviceCertificateSignature = {
3869
3975
  type DeviceCertificateSign = {
3870
3976
  data: string;
3871
3977
  };
3978
+ type DeviceMiscUsbMscControl = {
3979
+ enable: boolean;
3980
+ };
3981
+ declare enum DeviceFactoryAck {
3982
+ FACTORY_ACK_SUCCESS = 0,
3983
+ FACTORY_ACK_FAIL = 1
3984
+ }
3985
+ type DeviceFactoryInfoManufactureTime = {
3986
+ year: number;
3987
+ month: number;
3988
+ day: number;
3989
+ hour: number;
3990
+ minute: number;
3991
+ second: number;
3992
+ };
3993
+ type DeviceFactoryInfo = {
3994
+ version?: number;
3995
+ serial_number?: string;
3996
+ factory_test_completed?: boolean;
3997
+ factory_burn_in_completed?: boolean;
3998
+ manufacture_time?: DeviceFactoryInfoManufactureTime;
3999
+ };
4000
+ type DeviceFactoryInfoSet = {
4001
+ info: DeviceFactoryInfo;
4002
+ };
4003
+ type DeviceFactoryInfoGet = {};
4004
+ type DeviceFactoryPermanentLock = {
4005
+ check_a: string;
4006
+ check_b: string;
4007
+ };
4008
+ type DeviceFactoryTest = {
4009
+ burn_in_test: boolean;
4010
+ };
3872
4011
  declare enum DeviceFirmwareTargetType {
3873
4012
  FW_MGMT_TARGET_INVALID = 0,
3874
4013
  FW_MGMT_TARGET_CRATE = 1,
@@ -3899,9 +4038,10 @@ type DeviceFirmwareTarget = {
3899
4038
  target_id: DeviceFirmwareTargetType;
3900
4039
  path: string;
3901
4040
  };
3902
- type DeviceFirmwareUpdateRequest = {
4041
+ type DeviceFirmwareUpdateStage = {
3903
4042
  targets: DeviceFirmwareTarget[];
3904
4043
  };
4044
+ type DeviceFirmwareUpdateRequest = {};
3905
4045
  type DeviceFirmwareUpdateRecord = {
3906
4046
  target_id: DeviceFirmwareTargetType;
3907
4047
  status?: DeviceFirmwareUpdateTaskStatus;
@@ -3919,36 +4059,6 @@ type DeviceFirmwareUpdateStatusGet = {
3919
4059
  type DeviceFirmwareUpdateStatus = {
3920
4060
  records: DeviceFirmwareUpdateRecord[];
3921
4061
  };
3922
- declare enum DeviceFactoryAck {
3923
- FACTORY_ACK_SUCCESS = 0,
3924
- FACTORY_ACK_FAIL = 1
3925
- }
3926
- type DeviceFactoryInfoManufactureTime = {
3927
- year: number;
3928
- month: number;
3929
- day: number;
3930
- hour: number;
3931
- minute: number;
3932
- second: number;
3933
- };
3934
- type DeviceFactoryInfo = {
3935
- version?: number;
3936
- serial_number?: string;
3937
- burn_in_completed?: boolean;
3938
- factory_test_completed?: boolean;
3939
- manufacture_time?: DeviceFactoryInfoManufactureTime;
3940
- };
3941
- type DeviceFactoryInfoSet = {
3942
- info: DeviceFactoryInfo;
3943
- };
3944
- type DeviceFactoryInfoGet = {};
3945
- type DeviceFactoryPermanentLock = {
3946
- check_a: string;
3947
- check_b: string;
3948
- };
3949
- type DeviceFactoryTest = {
3950
- burn_in_test: boolean;
3951
- };
3952
4062
  declare enum DeviceType {
3953
4063
  CLASSIC1 = 0,
3954
4064
  CLASSIC1S = 1,
@@ -3999,13 +4109,12 @@ type DeviceSEInfo = {
3999
4109
  };
4000
4110
  type DeviceInfoTargets = {
4001
4111
  hw?: boolean;
4002
- fw?: boolean;
4112
+ main_mcu?: boolean;
4003
4113
  coprocessor?: boolean;
4004
4114
  se1?: boolean;
4005
4115
  se2?: boolean;
4006
4116
  se3?: boolean;
4007
4117
  se4?: boolean;
4008
- status?: boolean;
4009
4118
  };
4010
4119
  type DeviceInfoTypes = {
4011
4120
  version?: boolean;
@@ -4020,36 +4129,46 @@ type DeviceInfoGet = {
4020
4129
  type ProtocolV2DeviceInfo = {
4021
4130
  protocol_version: number;
4022
4131
  hw?: DeviceHardwareInfo;
4023
- fw?: DeviceMainMcuInfo;
4132
+ main_mcu?: DeviceMainMcuInfo;
4024
4133
  coprocessor?: DeviceCoprocessorInfo;
4025
4134
  se1?: DeviceSEInfo;
4026
4135
  se2?: DeviceSEInfo;
4027
4136
  se3?: DeviceSEInfo;
4028
4137
  se4?: DeviceSEInfo;
4029
- status?: DeviceStatus;
4030
- };
4031
- type DeviceSessionResume = {
4032
- session_id: string;
4033
- };
4034
- type DeviceHostPassphrase = {
4035
- passphrase: string;
4036
- };
4037
- type DevicePassphraseOnDevice = {};
4038
- type DeviceAttachPinOnDevice = {};
4039
- type DeviceWalletSelect = {
4040
- host_passphrase?: DeviceHostPassphrase;
4041
- passphrase_on_device?: DevicePassphraseOnDevice;
4042
- attach_pin_on_device?: DeviceAttachPinOnDevice;
4043
4138
  };
4044
- type DeviceSessionOpen = {
4045
- resume?: DeviceSessionResume;
4046
- select?: DeviceWalletSelect;
4139
+ declare enum DeviceSessionErrorCode {
4140
+ DeviceSessionError_None = 0,
4141
+ DeviceSessionError_UserCancelled = 1,
4142
+ DeviceSessionError_InvalidSession = 2,
4143
+ DeviceSessionError_AttachPinUnavailable = 3,
4144
+ DeviceSessionError_PassphraseDisabled = 4,
4145
+ DeviceSessionError_Busy = 5
4146
+ }
4147
+ declare enum DeviceSessionSeedDomain {
4148
+ SeedDomain_Standard = 1,
4149
+ SeedDomain_Cardano = 2
4150
+ }
4151
+ type DeviceSessionGet = {
4152
+ session_id?: string;
4153
+ btc_test_address?: string;
4154
+ seed_domains: DeviceSessionSeedDomain[];
4047
4155
  };
4048
4156
  type DeviceSession = {
4049
4157
  session_id?: string;
4050
4158
  btc_test_address?: string;
4051
4159
  };
4052
- type DeviceSessionAskPin = {};
4160
+ declare enum DeviceSessionPinType {
4161
+ Any = 1,
4162
+ Main = 2,
4163
+ AttachToPin = 3
4164
+ }
4165
+ type DeviceSessionAskPin = {
4166
+ type?: DeviceSessionPinType;
4167
+ };
4168
+ type DeviceSessionAskPassphrase = {
4169
+ passphrase?: string;
4170
+ on_device: boolean;
4171
+ };
4053
4172
  declare enum DeviceSessionAskPin_FailureSubCodes {
4054
4173
  UserCancel = 1
4055
4174
  }
@@ -4063,53 +4182,6 @@ type DeviceStatus = {
4063
4182
  unlocked_by_attach_to_pin?: boolean;
4064
4183
  };
4065
4184
  type DeviceStatusGet = {};
4066
- declare enum DevOnboardingStep {
4067
- DEV_ONBOARDING_STEP_UNKNOWN = 0,
4068
- DEV_ONBOARDING_STEP_CHECKING = 1,
4069
- DEV_ONBOARDING_STEP_PERSONALIZATION = 2,
4070
- DEV_ONBOARDING_STEP_PIN = 3,
4071
- DEV_ONBOARDING_STEP_SETUP = 4,
4072
- DEV_ONBOARDING_STEP_DONE = 5
4073
- }
4074
- declare enum DevOnboardingPhase {
4075
- DEV_ONBOARDING_PHASE_UNKNOWN = 0,
4076
- DEV_ONBOARDING_PHASE_SAFETY_CHECK = 1,
4077
- DEV_ONBOARDING_PHASE_PIN_SETUP = 2,
4078
- DEV_ONBOARDING_PHASE_FINGERPRINT_SETUP = 3,
4079
- DEV_ONBOARDING_PHASE_SETUP_CHOICE = 4,
4080
- DEV_ONBOARDING_PHASE_WALLET_CREATE_START = 5,
4081
- DEV_ONBOARDING_PHASE_RECOVERY_PHRASE_VIEW = 6,
4082
- DEV_ONBOARDING_PHASE_RECOVERY_PHRASE_CONFIRM = 7,
4083
- DEV_ONBOARDING_PHASE_RESTORE_METHOD_CHOICE = 8,
4084
- DEV_ONBOARDING_PHASE_RECOVERY_PHRASE_RESTORE = 9,
4085
- DEV_ONBOARDING_PHASE_SEEDCARD_RESTORE = 10,
4086
- DEV_ONBOARDING_PHASE_WALLET_READY = 11,
4087
- DEV_ONBOARDING_PHASE_SEEDCARD_BACKUP_PROMPT = 12,
4088
- DEV_ONBOARDING_PHASE_SEEDCARD_BACKUP = 13
4089
- }
4090
- declare enum DevOnboardingSetupKind {
4091
- DEV_ONBOARDING_SETUP_KIND_UNKNOWN = 0,
4092
- DEV_ONBOARDING_SETUP_KIND_CHOICE = 1,
4093
- DEV_ONBOARDING_SETUP_KIND_CREATE = 2,
4094
- DEV_ONBOARDING_SETUP_KIND_RESTORE = 3
4095
- }
4096
- declare enum DevOnboardingSetupMethod {
4097
- DEV_ONBOARDING_SETUP_METHOD_UNKNOWN = 0,
4098
- DEV_ONBOARDING_SETUP_METHOD_RECOVERY_PHRASE = 1,
4099
- DEV_ONBOARDING_SETUP_METHOD_SEEDCARD = 2
4100
- }
4101
- type DevOnboardingSetupStatus = {
4102
- kind?: DevOnboardingSetupKind;
4103
- method?: DevOnboardingSetupMethod;
4104
- };
4105
- type DevGetOnboardingStatus = {};
4106
- type DevOnboardingStatus = {
4107
- step?: DevOnboardingStep;
4108
- phase?: DevOnboardingPhase;
4109
- setup?: DevOnboardingSetupStatus;
4110
- pin_set?: boolean;
4111
- wallet_initialized?: boolean;
4112
- };
4113
4185
  type FilesystemPermissionFix = {};
4114
4186
  type FilesystemPathInfo = {
4115
4187
  exist: boolean;
@@ -4170,7 +4242,117 @@ type FilesystemFormat = {
4170
4242
  data: boolean;
4171
4243
  user: boolean;
4172
4244
  };
4245
+ type InternalMyAddressRequest = {
4246
+ coin_type: number;
4247
+ chain_id: number;
4248
+ account_index: number;
4249
+ derive_type: number;
4250
+ };
4251
+ type NftUpdate = {
4252
+ file_name_no_ext: string;
4253
+ };
4254
+ declare enum OnboardingStep {
4255
+ ONBOARDING_STEP_UNKNOWN = 0,
4256
+ ONBOARDING_STEP_CHECKING = 1,
4257
+ ONBOARDING_STEP_PERSONALIZATION = 2,
4258
+ ONBOARDING_STEP_PIN = 3,
4259
+ ONBOARDING_STEP_SETUP = 4,
4260
+ ONBOARDING_STEP_DONE = 5
4261
+ }
4262
+ declare enum OnboardingPhase {
4263
+ ONBOARDING_PHASE_UNKNOWN = 0,
4264
+ ONBOARDING_PHASE_SAFETY_CHECK = 1,
4265
+ ONBOARDING_PHASE_PIN_SETUP = 2,
4266
+ ONBOARDING_PHASE_FINGERPRINT_SETUP = 3,
4267
+ ONBOARDING_PHASE_SETUP_CHOICE = 4,
4268
+ ONBOARDING_PHASE_WALLET_CREATE_START = 5,
4269
+ ONBOARDING_PHASE_RECOVERY_PHRASE_VIEW = 6,
4270
+ ONBOARDING_PHASE_RECOVERY_PHRASE_CONFIRM = 7,
4271
+ ONBOARDING_PHASE_RESTORE_METHOD_CHOICE = 8,
4272
+ ONBOARDING_PHASE_RECOVERY_PHRASE_RESTORE = 9,
4273
+ ONBOARDING_PHASE_SEEDCARD_RESTORE = 10,
4274
+ ONBOARDING_PHASE_WALLET_READY = 11,
4275
+ ONBOARDING_PHASE_SEEDCARD_BACKUP_PROMPT = 12,
4276
+ ONBOARDING_PHASE_SEEDCARD_BACKUP = 13
4277
+ }
4278
+ declare enum OnboardingSetupKind {
4279
+ ONBOARDING_SETUP_KIND_UNKNOWN = 0,
4280
+ ONBOARDING_SETUP_KIND_CHOICE = 1,
4281
+ ONBOARDING_SETUP_KIND_CREATE = 2,
4282
+ ONBOARDING_SETUP_KIND_RESTORE = 3
4283
+ }
4284
+ declare enum OnboardingSetupMethod {
4285
+ ONBOARDING_SETUP_METHOD_UNKNOWN = 0,
4286
+ ONBOARDING_SETUP_METHOD_RECOVERY_PHRASE = 1,
4287
+ ONBOARDING_SETUP_METHOD_SEEDCARD = 2
4288
+ }
4289
+ type OnboardingSetupStatus = {
4290
+ kind?: OnboardingSetupKind;
4291
+ method?: OnboardingSetupMethod;
4292
+ };
4293
+ type OnboardingStatusGet = {};
4294
+ type OnboardingStatus = {
4295
+ step?: OnboardingStep;
4296
+ phase?: OnboardingPhase;
4297
+ setup?: OnboardingSetupStatus;
4298
+ pin_set?: boolean;
4299
+ wallet_initialized?: boolean;
4300
+ };
4173
4301
  type PortfolioUpdate = {};
4302
+ type ViewAmount = {
4303
+ is_unlimited: boolean;
4304
+ num: string;
4305
+ };
4306
+ type ViewDetail = {
4307
+ key: number;
4308
+ value: string;
4309
+ is_overview: boolean;
4310
+ has_icon: boolean;
4311
+ };
4312
+ declare enum ViewTipType {
4313
+ Default = 0,
4314
+ Highlight = 1,
4315
+ Recommend = 2,
4316
+ Warning = 3,
4317
+ Danger = 4
4318
+ }
4319
+ type ViewTip = {
4320
+ type: ViewTipType;
4321
+ text?: string;
4322
+ text_id?: number;
4323
+ };
4324
+ type ViewRawData = {
4325
+ initial_data: string;
4326
+ placeholder: number;
4327
+ };
4328
+ declare enum ViewSignLayout {
4329
+ LayoutDefault = 0,
4330
+ LayoutSafeTxCreate = 1,
4331
+ LayoutFinalConfirm = 2,
4332
+ Layout7702 = 3,
4333
+ LayoutFlat = 4,
4334
+ LayoutEthApprove = 5
4335
+ }
4336
+ type ViewSignPage = {
4337
+ title?: string;
4338
+ amount?: UintType;
4339
+ general: ViewDetail[];
4340
+ tip?: ViewTip;
4341
+ raw_data?: ViewRawData;
4342
+ slide_to_confirm?: boolean;
4343
+ layout?: ViewSignLayout;
4344
+ title_id?: number;
4345
+ };
4346
+ type ViewVerifyPage = {
4347
+ title?: string;
4348
+ address: string;
4349
+ path: string;
4350
+ network?: string;
4351
+ derive_type?: string;
4352
+ value_key?: number;
4353
+ title_id?: number;
4354
+ chain_id?: number;
4355
+ };
4174
4356
  declare enum ProtocolV2FailureType {
4175
4357
  Failure_InvalidMessage = 1,
4176
4358
  Failure_UndefinedError = 2,
@@ -4773,25 +4955,15 @@ type MessageType = {
4773
4955
  PaymentRequestMemo: PaymentRequestMemo;
4774
4956
  TxAckPaymentRequest: TxAckPaymentRequest;
4775
4957
  EthereumSignTypedDataQR: EthereumSignTypedDataQR;
4776
- InternalMyAddressRequest: InternalMyAddressRequest;
4777
- StartSession: StartSession;
4778
4958
  SetBusy: SetBusy;
4779
4959
  GetFirmwareHash: GetFirmwareHash;
4780
4960
  FirmwareHash: FirmwareHash;
4781
4961
  GetNonce: GetNonce;
4782
4962
  Nonce: Nonce;
4783
4963
  WriteSEPrivateKey: WriteSEPrivateKey;
4784
- SetWallpaper: SetWallpaper;
4785
- GetWallpaper: GetWallpaper;
4786
- Wallpaper: Wallpaper;
4787
4964
  UnlockPath: UnlockPath;
4788
4965
  UnlockedPathRequest: UnlockedPathRequest;
4789
- ViewAmount: ViewAmount;
4790
- ViewDetail: ViewDetail;
4791
- ViewTip: ViewTip;
4792
- ViewRawData: ViewRawData;
4793
- ViewSignPage: ViewSignPage;
4794
- ViewVerifyPage: ViewVerifyPage;
4966
+ UiAnimationRequest: UiAnimationRequest;
4795
4967
  ProtocolInfoRequest: ProtocolInfoRequest;
4796
4968
  ProtocolInfo: ProtocolInfo;
4797
4969
  DeviceReboot: DeviceReboot;
@@ -4804,18 +4976,20 @@ type MessageType = {
4804
4976
  DeviceCertificateRead: DeviceCertificateRead;
4805
4977
  DeviceCertificateSignature: DeviceCertificateSignature;
4806
4978
  DeviceCertificateSign: DeviceCertificateSign;
4807
- DeviceFirmwareTarget: DeviceFirmwareTarget;
4808
- DeviceFirmwareUpdateRequest: DeviceFirmwareUpdateRequest;
4809
- DeviceFirmwareUpdateRecord: DeviceFirmwareUpdateRecord;
4810
- DeviceFirmwareUpdateRecordFields: DeviceFirmwareUpdateRecordFields;
4811
- DeviceFirmwareUpdateStatusGet: DeviceFirmwareUpdateStatusGet;
4812
- DeviceFirmwareUpdateStatus: DeviceFirmwareUpdateStatus;
4979
+ DeviceMiscUsbMscControl: DeviceMiscUsbMscControl;
4813
4980
  DeviceFactoryInfoManufactureTime: DeviceFactoryInfoManufactureTime;
4814
4981
  DeviceFactoryInfo: DeviceFactoryInfo;
4815
4982
  DeviceFactoryInfoSet: DeviceFactoryInfoSet;
4816
4983
  DeviceFactoryInfoGet: DeviceFactoryInfoGet;
4817
4984
  DeviceFactoryPermanentLock: DeviceFactoryPermanentLock;
4818
4985
  DeviceFactoryTest: DeviceFactoryTest;
4986
+ DeviceFirmwareTarget: DeviceFirmwareTarget;
4987
+ DeviceFirmwareUpdateStage: DeviceFirmwareUpdateStage;
4988
+ DeviceFirmwareUpdateRequest: DeviceFirmwareUpdateRequest;
4989
+ DeviceFirmwareUpdateRecord: DeviceFirmwareUpdateRecord;
4990
+ DeviceFirmwareUpdateRecordFields: DeviceFirmwareUpdateRecordFields;
4991
+ DeviceFirmwareUpdateStatusGet: DeviceFirmwareUpdateStatusGet;
4992
+ DeviceFirmwareUpdateStatus: DeviceFirmwareUpdateStatus;
4819
4993
  DeviceFirmwareImageInfo: DeviceFirmwareImageInfo;
4820
4994
  DeviceHardwareInfo: DeviceHardwareInfo;
4821
4995
  DeviceMainMcuInfo: DeviceMainMcuInfo;
@@ -4824,19 +4998,12 @@ type MessageType = {
4824
4998
  DeviceInfoTargets: DeviceInfoTargets;
4825
4999
  DeviceInfoTypes: DeviceInfoTypes;
4826
5000
  DeviceInfoGet: DeviceInfoGet;
4827
- DeviceSessionResume: DeviceSessionResume;
4828
- DeviceHostPassphrase: DeviceHostPassphrase;
4829
- DevicePassphraseOnDevice: DevicePassphraseOnDevice;
4830
- DeviceAttachPinOnDevice: DeviceAttachPinOnDevice;
4831
- DeviceWalletSelect: DeviceWalletSelect;
4832
- DeviceSessionOpen: DeviceSessionOpen;
5001
+ DeviceSessionGet: DeviceSessionGet;
4833
5002
  DeviceSession: DeviceSession;
4834
5003
  DeviceSessionAskPin: DeviceSessionAskPin;
5004
+ DeviceSessionAskPassphrase: DeviceSessionAskPassphrase;
4835
5005
  DeviceStatus: DeviceStatus;
4836
5006
  DeviceStatusGet: DeviceStatusGet;
4837
- DevOnboardingSetupStatus: DevOnboardingSetupStatus;
4838
- DevGetOnboardingStatus: DevGetOnboardingStatus;
4839
- DevOnboardingStatus: DevOnboardingStatus;
4840
5007
  FilesystemPermissionFix: FilesystemPermissionFix;
4841
5008
  FilesystemPathInfo: FilesystemPathInfo;
4842
5009
  FilesystemPathInfoQuery: FilesystemPathInfoQuery;
@@ -4849,7 +5016,18 @@ type MessageType = {
4849
5016
  FilesystemDirMake: FilesystemDirMake;
4850
5017
  FilesystemDirRemove: FilesystemDirRemove;
4851
5018
  FilesystemFormat: FilesystemFormat;
5019
+ InternalMyAddressRequest: InternalMyAddressRequest;
5020
+ NftUpdate: NftUpdate;
5021
+ OnboardingSetupStatus: OnboardingSetupStatus;
5022
+ OnboardingStatusGet: OnboardingStatusGet;
5023
+ OnboardingStatus: OnboardingStatus;
4852
5024
  PortfolioUpdate: PortfolioUpdate;
5025
+ ViewAmount: ViewAmount;
5026
+ ViewDetail: ViewDetail;
5027
+ ViewTip: ViewTip;
5028
+ ViewRawData: ViewRawData;
5029
+ ViewSignPage: ViewSignPage;
5030
+ ViewVerifyPage: ViewVerifyPage;
4853
5031
  };
4854
5032
  type MessageKey = keyof MessageType;
4855
5033
  type MessageResponse<T extends MessageKey> = {
@@ -5580,33 +5758,21 @@ type messages_CoinPurchaseMemo = CoinPurchaseMemo;
5580
5758
  type messages_PaymentRequestMemo = PaymentRequestMemo;
5581
5759
  type messages_TxAckPaymentRequest = TxAckPaymentRequest;
5582
5760
  type messages_EthereumSignTypedDataQR = EthereumSignTypedDataQR;
5583
- type messages_InternalMyAddressRequest = InternalMyAddressRequest;
5584
- type messages_StartSession = StartSession;
5585
5761
  type messages_SetBusy = SetBusy;
5586
5762
  type messages_GetFirmwareHash = GetFirmwareHash;
5587
5763
  type messages_FirmwareHash = FirmwareHash;
5588
5764
  type messages_GetNonce = GetNonce;
5589
5765
  type messages_Nonce = Nonce;
5590
5766
  type messages_WriteSEPrivateKey = WriteSEPrivateKey;
5591
- type messages_WallpaperTarget = WallpaperTarget;
5592
- declare const messages_WallpaperTarget: typeof WallpaperTarget;
5593
- type messages_SetWallpaper = SetWallpaper;
5594
- type messages_GetWallpaper = GetWallpaper;
5595
- type messages_Wallpaper = Wallpaper;
5596
5767
  type messages_UnlockPath = UnlockPath;
5597
5768
  type messages_UnlockedPathRequest = UnlockedPathRequest;
5598
5769
  type messages_MoneroNetworkType = MoneroNetworkType;
5599
5770
  declare const messages_MoneroNetworkType: typeof MoneroNetworkType;
5600
- type messages_ViewAmount = ViewAmount;
5601
- type messages_ViewDetail = ViewDetail;
5602
- type messages_ViewTipType = ViewTipType;
5603
- declare const messages_ViewTipType: typeof ViewTipType;
5604
- type messages_ViewTip = ViewTip;
5605
- type messages_ViewRawData = ViewRawData;
5606
- type messages_ViewSignLayout = ViewSignLayout;
5607
- declare const messages_ViewSignLayout: typeof ViewSignLayout;
5608
- type messages_ViewSignPage = ViewSignPage;
5609
- type messages_ViewVerifyPage = ViewVerifyPage;
5771
+ type messages_UiAnimationType = UiAnimationType;
5772
+ declare const messages_UiAnimationType: typeof UiAnimationType;
5773
+ type messages_UiAnimationCommand = UiAnimationCommand;
5774
+ declare const messages_UiAnimationCommand: typeof UiAnimationCommand;
5775
+ type messages_UiAnimationRequest = UiAnimationRequest;
5610
5776
  type messages_ProtocolInfoRequest = ProtocolInfoRequest;
5611
5777
  type messages_ProtocolInfo = ProtocolInfo;
5612
5778
  type messages_DeviceErrorCode = DeviceErrorCode;
@@ -5625,24 +5791,26 @@ type messages_DeviceCertificateWrite = DeviceCertificateWrite;
5625
5791
  type messages_DeviceCertificateRead = DeviceCertificateRead;
5626
5792
  type messages_DeviceCertificateSignature = DeviceCertificateSignature;
5627
5793
  type messages_DeviceCertificateSign = DeviceCertificateSign;
5794
+ type messages_DeviceMiscUsbMscControl = DeviceMiscUsbMscControl;
5795
+ type messages_DeviceFactoryAck = DeviceFactoryAck;
5796
+ declare const messages_DeviceFactoryAck: typeof DeviceFactoryAck;
5797
+ type messages_DeviceFactoryInfoManufactureTime = DeviceFactoryInfoManufactureTime;
5798
+ type messages_DeviceFactoryInfo = DeviceFactoryInfo;
5799
+ type messages_DeviceFactoryInfoSet = DeviceFactoryInfoSet;
5800
+ type messages_DeviceFactoryInfoGet = DeviceFactoryInfoGet;
5801
+ type messages_DeviceFactoryPermanentLock = DeviceFactoryPermanentLock;
5802
+ type messages_DeviceFactoryTest = DeviceFactoryTest;
5628
5803
  type messages_DeviceFirmwareTargetType = DeviceFirmwareTargetType;
5629
5804
  declare const messages_DeviceFirmwareTargetType: typeof DeviceFirmwareTargetType;
5630
5805
  type messages_DeviceFirmwareUpdateTaskStatus = DeviceFirmwareUpdateTaskStatus;
5631
5806
  declare const messages_DeviceFirmwareUpdateTaskStatus: typeof DeviceFirmwareUpdateTaskStatus;
5632
5807
  type messages_DeviceFirmwareTarget = DeviceFirmwareTarget;
5808
+ type messages_DeviceFirmwareUpdateStage = DeviceFirmwareUpdateStage;
5633
5809
  type messages_DeviceFirmwareUpdateRequest = DeviceFirmwareUpdateRequest;
5634
5810
  type messages_DeviceFirmwareUpdateRecord = DeviceFirmwareUpdateRecord;
5635
5811
  type messages_DeviceFirmwareUpdateRecordFields = DeviceFirmwareUpdateRecordFields;
5636
5812
  type messages_DeviceFirmwareUpdateStatusGet = DeviceFirmwareUpdateStatusGet;
5637
5813
  type messages_DeviceFirmwareUpdateStatus = DeviceFirmwareUpdateStatus;
5638
- type messages_DeviceFactoryAck = DeviceFactoryAck;
5639
- declare const messages_DeviceFactoryAck: typeof DeviceFactoryAck;
5640
- type messages_DeviceFactoryInfoManufactureTime = DeviceFactoryInfoManufactureTime;
5641
- type messages_DeviceFactoryInfo = DeviceFactoryInfo;
5642
- type messages_DeviceFactoryInfoSet = DeviceFactoryInfoSet;
5643
- type messages_DeviceFactoryInfoGet = DeviceFactoryInfoGet;
5644
- type messages_DeviceFactoryPermanentLock = DeviceFactoryPermanentLock;
5645
- type messages_DeviceFactoryTest = DeviceFactoryTest;
5646
5814
  type messages_DeviceType = DeviceType;
5647
5815
  declare const messages_DeviceType: typeof DeviceType;
5648
5816
  type messages_DeviceSeType = DeviceSeType;
@@ -5658,29 +5826,20 @@ type messages_DeviceInfoTargets = DeviceInfoTargets;
5658
5826
  type messages_DeviceInfoTypes = DeviceInfoTypes;
5659
5827
  type messages_DeviceInfoGet = DeviceInfoGet;
5660
5828
  type messages_ProtocolV2DeviceInfo = ProtocolV2DeviceInfo;
5661
- type messages_DeviceSessionResume = DeviceSessionResume;
5662
- type messages_DeviceHostPassphrase = DeviceHostPassphrase;
5663
- type messages_DevicePassphraseOnDevice = DevicePassphraseOnDevice;
5664
- type messages_DeviceAttachPinOnDevice = DeviceAttachPinOnDevice;
5665
- type messages_DeviceWalletSelect = DeviceWalletSelect;
5666
- type messages_DeviceSessionOpen = DeviceSessionOpen;
5829
+ type messages_DeviceSessionErrorCode = DeviceSessionErrorCode;
5830
+ declare const messages_DeviceSessionErrorCode: typeof DeviceSessionErrorCode;
5831
+ type messages_DeviceSessionSeedDomain = DeviceSessionSeedDomain;
5832
+ declare const messages_DeviceSessionSeedDomain: typeof DeviceSessionSeedDomain;
5833
+ type messages_DeviceSessionGet = DeviceSessionGet;
5667
5834
  type messages_DeviceSession = DeviceSession;
5835
+ type messages_DeviceSessionPinType = DeviceSessionPinType;
5836
+ declare const messages_DeviceSessionPinType: typeof DeviceSessionPinType;
5668
5837
  type messages_DeviceSessionAskPin = DeviceSessionAskPin;
5838
+ type messages_DeviceSessionAskPassphrase = DeviceSessionAskPassphrase;
5669
5839
  type messages_DeviceSessionAskPin_FailureSubCodes = DeviceSessionAskPin_FailureSubCodes;
5670
5840
  declare const messages_DeviceSessionAskPin_FailureSubCodes: typeof DeviceSessionAskPin_FailureSubCodes;
5671
5841
  type messages_DeviceStatus = DeviceStatus;
5672
5842
  type messages_DeviceStatusGet = DeviceStatusGet;
5673
- type messages_DevOnboardingStep = DevOnboardingStep;
5674
- declare const messages_DevOnboardingStep: typeof DevOnboardingStep;
5675
- type messages_DevOnboardingPhase = DevOnboardingPhase;
5676
- declare const messages_DevOnboardingPhase: typeof DevOnboardingPhase;
5677
- type messages_DevOnboardingSetupKind = DevOnboardingSetupKind;
5678
- declare const messages_DevOnboardingSetupKind: typeof DevOnboardingSetupKind;
5679
- type messages_DevOnboardingSetupMethod = DevOnboardingSetupMethod;
5680
- declare const messages_DevOnboardingSetupMethod: typeof DevOnboardingSetupMethod;
5681
- type messages_DevOnboardingSetupStatus = DevOnboardingSetupStatus;
5682
- type messages_DevGetOnboardingStatus = DevGetOnboardingStatus;
5683
- type messages_DevOnboardingStatus = DevOnboardingStatus;
5684
5843
  type messages_FilesystemPermissionFix = FilesystemPermissionFix;
5685
5844
  type messages_FilesystemPathInfo = FilesystemPathInfo;
5686
5845
  type messages_FilesystemPathInfoQuery = FilesystemPathInfoQuery;
@@ -5693,7 +5852,30 @@ type messages_FilesystemDirList = FilesystemDirList;
5693
5852
  type messages_FilesystemDirMake = FilesystemDirMake;
5694
5853
  type messages_FilesystemDirRemove = FilesystemDirRemove;
5695
5854
  type messages_FilesystemFormat = FilesystemFormat;
5855
+ type messages_InternalMyAddressRequest = InternalMyAddressRequest;
5856
+ type messages_NftUpdate = NftUpdate;
5857
+ type messages_OnboardingStep = OnboardingStep;
5858
+ declare const messages_OnboardingStep: typeof OnboardingStep;
5859
+ type messages_OnboardingPhase = OnboardingPhase;
5860
+ declare const messages_OnboardingPhase: typeof OnboardingPhase;
5861
+ type messages_OnboardingSetupKind = OnboardingSetupKind;
5862
+ declare const messages_OnboardingSetupKind: typeof OnboardingSetupKind;
5863
+ type messages_OnboardingSetupMethod = OnboardingSetupMethod;
5864
+ declare const messages_OnboardingSetupMethod: typeof OnboardingSetupMethod;
5865
+ type messages_OnboardingSetupStatus = OnboardingSetupStatus;
5866
+ type messages_OnboardingStatusGet = OnboardingStatusGet;
5867
+ type messages_OnboardingStatus = OnboardingStatus;
5696
5868
  type messages_PortfolioUpdate = PortfolioUpdate;
5869
+ type messages_ViewAmount = ViewAmount;
5870
+ type messages_ViewDetail = ViewDetail;
5871
+ type messages_ViewTipType = ViewTipType;
5872
+ declare const messages_ViewTipType: typeof ViewTipType;
5873
+ type messages_ViewTip = ViewTip;
5874
+ type messages_ViewRawData = ViewRawData;
5875
+ type messages_ViewSignLayout = ViewSignLayout;
5876
+ declare const messages_ViewSignLayout: typeof ViewSignLayout;
5877
+ type messages_ViewSignPage = ViewSignPage;
5878
+ type messages_ViewVerifyPage = ViewVerifyPage;
5697
5879
  type messages_ProtocolV2FailureType = ProtocolV2FailureType;
5698
5880
  declare const messages_ProtocolV2FailureType: typeof ProtocolV2FailureType;
5699
5881
  type messages_Enum_ProtocolV2Capability = Enum_ProtocolV2Capability;
@@ -6359,29 +6541,18 @@ declare namespace messages {
6359
6541
  messages_PaymentRequestMemo as PaymentRequestMemo,
6360
6542
  messages_TxAckPaymentRequest as TxAckPaymentRequest,
6361
6543
  messages_EthereumSignTypedDataQR as EthereumSignTypedDataQR,
6362
- messages_InternalMyAddressRequest as InternalMyAddressRequest,
6363
- messages_StartSession as StartSession,
6364
6544
  messages_SetBusy as SetBusy,
6365
6545
  messages_GetFirmwareHash as GetFirmwareHash,
6366
6546
  messages_FirmwareHash as FirmwareHash,
6367
6547
  messages_GetNonce as GetNonce,
6368
6548
  messages_Nonce as Nonce,
6369
6549
  messages_WriteSEPrivateKey as WriteSEPrivateKey,
6370
- messages_WallpaperTarget as WallpaperTarget,
6371
- messages_SetWallpaper as SetWallpaper,
6372
- messages_GetWallpaper as GetWallpaper,
6373
- messages_Wallpaper as Wallpaper,
6374
6550
  messages_UnlockPath as UnlockPath,
6375
6551
  messages_UnlockedPathRequest as UnlockedPathRequest,
6376
6552
  messages_MoneroNetworkType as MoneroNetworkType,
6377
- messages_ViewAmount as ViewAmount,
6378
- messages_ViewDetail as ViewDetail,
6379
- messages_ViewTipType as ViewTipType,
6380
- messages_ViewTip as ViewTip,
6381
- messages_ViewRawData as ViewRawData,
6382
- messages_ViewSignLayout as ViewSignLayout,
6383
- messages_ViewSignPage as ViewSignPage,
6384
- messages_ViewVerifyPage as ViewVerifyPage,
6553
+ messages_UiAnimationType as UiAnimationType,
6554
+ messages_UiAnimationCommand as UiAnimationCommand,
6555
+ messages_UiAnimationRequest as UiAnimationRequest,
6385
6556
  messages_ProtocolInfoRequest as ProtocolInfoRequest,
6386
6557
  messages_ProtocolInfo as ProtocolInfo,
6387
6558
  messages_DeviceErrorCode as DeviceErrorCode,
@@ -6397,21 +6568,23 @@ declare namespace messages {
6397
6568
  messages_DeviceCertificateRead as DeviceCertificateRead,
6398
6569
  messages_DeviceCertificateSignature as DeviceCertificateSignature,
6399
6570
  messages_DeviceCertificateSign as DeviceCertificateSign,
6571
+ messages_DeviceMiscUsbMscControl as DeviceMiscUsbMscControl,
6572
+ messages_DeviceFactoryAck as DeviceFactoryAck,
6573
+ messages_DeviceFactoryInfoManufactureTime as DeviceFactoryInfoManufactureTime,
6574
+ messages_DeviceFactoryInfo as DeviceFactoryInfo,
6575
+ messages_DeviceFactoryInfoSet as DeviceFactoryInfoSet,
6576
+ messages_DeviceFactoryInfoGet as DeviceFactoryInfoGet,
6577
+ messages_DeviceFactoryPermanentLock as DeviceFactoryPermanentLock,
6578
+ messages_DeviceFactoryTest as DeviceFactoryTest,
6400
6579
  messages_DeviceFirmwareTargetType as DeviceFirmwareTargetType,
6401
6580
  messages_DeviceFirmwareUpdateTaskStatus as DeviceFirmwareUpdateTaskStatus,
6402
6581
  messages_DeviceFirmwareTarget as DeviceFirmwareTarget,
6582
+ messages_DeviceFirmwareUpdateStage as DeviceFirmwareUpdateStage,
6403
6583
  messages_DeviceFirmwareUpdateRequest as DeviceFirmwareUpdateRequest,
6404
6584
  messages_DeviceFirmwareUpdateRecord as DeviceFirmwareUpdateRecord,
6405
6585
  messages_DeviceFirmwareUpdateRecordFields as DeviceFirmwareUpdateRecordFields,
6406
6586
  messages_DeviceFirmwareUpdateStatusGet as DeviceFirmwareUpdateStatusGet,
6407
6587
  messages_DeviceFirmwareUpdateStatus as DeviceFirmwareUpdateStatus,
6408
- messages_DeviceFactoryAck as DeviceFactoryAck,
6409
- messages_DeviceFactoryInfoManufactureTime as DeviceFactoryInfoManufactureTime,
6410
- messages_DeviceFactoryInfo as DeviceFactoryInfo,
6411
- messages_DeviceFactoryInfoSet as DeviceFactoryInfoSet,
6412
- messages_DeviceFactoryInfoGet as DeviceFactoryInfoGet,
6413
- messages_DeviceFactoryPermanentLock as DeviceFactoryPermanentLock,
6414
- messages_DeviceFactoryTest as DeviceFactoryTest,
6415
6588
  messages_DeviceType as DeviceType,
6416
6589
  messages_DeviceSeType as DeviceSeType,
6417
6590
  messages_DeviceSEState as DeviceSEState,
@@ -6424,24 +6597,16 @@ declare namespace messages {
6424
6597
  messages_DeviceInfoTypes as DeviceInfoTypes,
6425
6598
  messages_DeviceInfoGet as DeviceInfoGet,
6426
6599
  messages_ProtocolV2DeviceInfo as ProtocolV2DeviceInfo,
6427
- messages_DeviceSessionResume as DeviceSessionResume,
6428
- messages_DeviceHostPassphrase as DeviceHostPassphrase,
6429
- messages_DevicePassphraseOnDevice as DevicePassphraseOnDevice,
6430
- messages_DeviceAttachPinOnDevice as DeviceAttachPinOnDevice,
6431
- messages_DeviceWalletSelect as DeviceWalletSelect,
6432
- messages_DeviceSessionOpen as DeviceSessionOpen,
6600
+ messages_DeviceSessionErrorCode as DeviceSessionErrorCode,
6601
+ messages_DeviceSessionSeedDomain as DeviceSessionSeedDomain,
6602
+ messages_DeviceSessionGet as DeviceSessionGet,
6433
6603
  messages_DeviceSession as DeviceSession,
6604
+ messages_DeviceSessionPinType as DeviceSessionPinType,
6434
6605
  messages_DeviceSessionAskPin as DeviceSessionAskPin,
6606
+ messages_DeviceSessionAskPassphrase as DeviceSessionAskPassphrase,
6435
6607
  messages_DeviceSessionAskPin_FailureSubCodes as DeviceSessionAskPin_FailureSubCodes,
6436
6608
  messages_DeviceStatus as DeviceStatus,
6437
6609
  messages_DeviceStatusGet as DeviceStatusGet,
6438
- messages_DevOnboardingStep as DevOnboardingStep,
6439
- messages_DevOnboardingPhase as DevOnboardingPhase,
6440
- messages_DevOnboardingSetupKind as DevOnboardingSetupKind,
6441
- messages_DevOnboardingSetupMethod as DevOnboardingSetupMethod,
6442
- messages_DevOnboardingSetupStatus as DevOnboardingSetupStatus,
6443
- messages_DevGetOnboardingStatus as DevGetOnboardingStatus,
6444
- messages_DevOnboardingStatus as DevOnboardingStatus,
6445
6610
  messages_FilesystemPermissionFix as FilesystemPermissionFix,
6446
6611
  messages_FilesystemPathInfo as FilesystemPathInfo,
6447
6612
  messages_FilesystemPathInfoQuery as FilesystemPathInfoQuery,
@@ -6454,7 +6619,24 @@ declare namespace messages {
6454
6619
  messages_FilesystemDirMake as FilesystemDirMake,
6455
6620
  messages_FilesystemDirRemove as FilesystemDirRemove,
6456
6621
  messages_FilesystemFormat as FilesystemFormat,
6622
+ messages_InternalMyAddressRequest as InternalMyAddressRequest,
6623
+ messages_NftUpdate as NftUpdate,
6624
+ messages_OnboardingStep as OnboardingStep,
6625
+ messages_OnboardingPhase as OnboardingPhase,
6626
+ messages_OnboardingSetupKind as OnboardingSetupKind,
6627
+ messages_OnboardingSetupMethod as OnboardingSetupMethod,
6628
+ messages_OnboardingSetupStatus as OnboardingSetupStatus,
6629
+ messages_OnboardingStatusGet as OnboardingStatusGet,
6630
+ messages_OnboardingStatus as OnboardingStatus,
6457
6631
  messages_PortfolioUpdate as PortfolioUpdate,
6632
+ messages_ViewAmount as ViewAmount,
6633
+ messages_ViewDetail as ViewDetail,
6634
+ messages_ViewTipType as ViewTipType,
6635
+ messages_ViewTip as ViewTip,
6636
+ messages_ViewRawData as ViewRawData,
6637
+ messages_ViewSignLayout as ViewSignLayout,
6638
+ messages_ViewSignPage as ViewSignPage,
6639
+ messages_ViewVerifyPage as ViewVerifyPage,
6458
6640
  messages_ProtocolV2FailureType as ProtocolV2FailureType,
6459
6641
  messages_Enum_ProtocolV2Capability as Enum_ProtocolV2Capability,
6460
6642
  messages_ProtocolV2Capability as ProtocolV2Capability,
@@ -6478,8 +6660,10 @@ type ProtocolV2Schemas = {
6478
6660
  type ProtocolV2CallContext = {
6479
6661
  messageName: string;
6480
6662
  timeoutMs?: number;
6481
- highVolume: boolean;
6663
+ highThroughput: boolean;
6664
+ writeWithResponse?: boolean;
6482
6665
  generation: number;
6666
+ signal: AbortSignal;
6483
6667
  };
6484
6668
  type ProtocolLogger = {
6485
6669
  debug?: (...args: any[]) => void;
@@ -6504,19 +6688,28 @@ type ProtocolV2CallOptions = {
6504
6688
  expectedTypes?: string[];
6505
6689
  intermediateTypes?: string[];
6506
6690
  onIntermediateResponse?: (response: MessageFromOneKey) => void;
6691
+ onWriteCompleted?: (metrics: TransportWriteMetrics) => void;
6692
+ returnAfterWrite?: boolean;
6693
+ onResponseAfterWrite?: (response: MessageFromOneKey) => void;
6694
+ writeWithResponse?: boolean;
6507
6695
  };
6508
6696
 
6509
6697
  declare function hexToBytes(hex: string): Uint8Array;
6510
6698
  declare function bytesToHex(bytes: Uint8Array): string;
6699
+ declare function isProtocolV2HighThroughputCall(name: string): boolean;
6511
6700
  declare function getErrorMessage(error: unknown): string;
6512
- declare function withProtocolTimeout<T>(promise: Promise<T>, timeoutMs: number | undefined, createTimeoutError: () => Error, onTimeout?: () => void): Promise<T>;
6513
- declare const PROTOCOL_V2_WRITE_WATCHDOG_TIMEOUT_MS = 0;
6701
+ declare function withProtocolTimeout<T>(promise: Promise<T>, timeoutMs: number | undefined, createTimeoutError: () => Error, onTimeout?: () => void, abortSignal?: AbortSignal): Promise<T>;
6514
6702
  declare class ProtocolV2Session {
6515
6703
  private readonly options;
6516
6704
  private readonly sequenceCursor;
6517
6705
  private pendingCall;
6706
+ private pendingWrite;
6707
+ private pendingResponseAfterWrite?;
6708
+ private lastResponseSequence?;
6518
6709
  constructor(options: ProtocolV2SessionOptions);
6519
6710
  call(name: string, data: Record<string, unknown>, callOptions?: ProtocolV2CallOptions): Promise<MessageFromOneKey>;
6711
+ sendFlowControl(name: string, data: Record<string, unknown>): Promise<MessageFromOneKey>;
6712
+ private serializeWrite;
6520
6713
  private executeCall;
6521
6714
  }
6522
6715
  declare function probeProtocolV2({ call, timeoutMs, logger, logPrefix, onBeforeProbe, onProbeFailed, }: {
@@ -6550,15 +6743,21 @@ declare class ProtocolV2LinkManager<Key> {
6550
6743
  private readonly links;
6551
6744
  private readonly sequences;
6552
6745
  private readonly callQueues;
6746
+ private readonly generations;
6747
+ private readonly invalidationReasons;
6748
+ private readonly invalidations;
6553
6749
  private readonly options;
6554
6750
  constructor(options: ProtocolV2LinkManagerOptions<Key>);
6555
6751
  call(key: Key, createAdapter: () => ProtocolV2LinkAdapter, name: string, data: Record<string, unknown>, options?: TransportCallOptions): Promise<MessageFromOneKey>;
6752
+ sendFlowControl(key: Key, createAdapter: () => ProtocolV2LinkAdapter, name: string, data: Record<string, unknown>): Promise<MessageFromOneKey>;
6556
6753
  invalidateLink(key: Key, reason: string): Promise<void>;
6557
6754
  invalidateAllLinks(reason: string): Promise<void>;
6558
6755
  dispose(reason: string): Promise<void>;
6559
6756
  private getOrCreateLink;
6560
6757
  private executeCall;
6561
6758
  private clearSettledCallQueue;
6759
+ private createQueuedCallTimeoutError;
6760
+ private assertCallGeneration;
6562
6761
  }
6563
6762
 
6564
6763
  type ProtocolV2UsbTransportBaseOptions = {
@@ -6582,12 +6781,14 @@ declare abstract class ProtocolV2UsbTransportBase<Key> {
6582
6781
  protected onProtocolV2UsbLinkInvalidated(_key: Key, _reason: string): Promise<void> | void;
6583
6782
  protected rotateProtocolV2UsbGeneration(key: Key, reason: string): Promise<number>;
6584
6783
  protected callProtocolV2Usb(key: Key, name: string, data: Record<string, unknown>, options?: TransportCallOptions): Promise<MessageFromOneKey>;
6784
+ protected sendProtocolV2UsbFlowControl(key: Key, name: string, data: Record<string, unknown>): Promise<MessageFromOneKey>;
6585
6785
  protected invalidateProtocolV2UsbLink(key: Key, reason: string): Promise<void>;
6586
6786
  protected invalidateAllProtocolV2UsbLinks(reason: string): Promise<void>;
6587
6787
  protected disposeProtocolV2UsbLinks(reason: string): Promise<void>;
6588
6788
  private createProtocolV2UsbAdapter;
6589
6789
  private getProtocolV2UsbAssembler;
6590
6790
  private createProtocolV2UsbCancellation;
6791
+ private createProtocolV2UsbIoError;
6591
6792
  }
6592
6793
 
6593
6794
  declare function info(res: any): {
@@ -6616,22 +6817,59 @@ declare namespace check {
6616
6817
 
6617
6818
  declare const LogBlockCommand: Set<string>;
6618
6819
 
6820
+ declare function getSafeTransportLogPayload(value: unknown, messageName?: string): unknown;
6821
+ declare function createTransportCallLog(name: string, protocol: ProtocolType, data: Record<string, unknown>): {
6822
+ name: string;
6823
+ protocol: ProtocolType;
6824
+ request: unknown;
6825
+ };
6826
+ declare function shouldSuppressHighVolumeCallLog(name: string): boolean;
6827
+
6828
+ /** Protocol V1 USB report marker, ASCII `?`. */
6619
6829
  declare const PROTOCOL_V1_REPORT_ID = 63;
6830
+ /** Protocol V1 envelope marker, ASCII `#`. */
6620
6831
  declare const PROTOCOL_V1_HEADER_BYTE = 35;
6832
+ /** Protocol V1 payload bytes per chunk after the report marker. */
6621
6833
  declare const PROTOCOL_V1_CHUNK_PAYLOAD_SIZE = 63;
6834
+ /** Protocol V1 USB packet length: report marker plus chunk payload. */
6622
6835
  declare const PROTOCOL_V1_USB_PACKET_SIZE: number;
6836
+ /** Protocol V1 message metadata: two-byte type plus four-byte payload length. */
6623
6837
  declare const PROTOCOL_V1_MESSAGE_HEADER_SIZE: number;
6838
+ /** Protocol V1 envelope metadata: `##`, message type, and payload length. */
6624
6839
  declare const PROTOCOL_V1_ENVELOPE_HEADER_SIZE: number;
6625
- declare const PROTOCOL_V2_FRAME_MAX_BYTES = 4608;
6840
+ /** Firmware Proto Link runtime limit for a complete V2 frame, including header and CRC. */
6841
+ declare const PROTOCOL_V2_FRAME_MAX_BYTES = 4200;
6842
+ /** FilesystemFileWrite chunk size over WebUSB. */
6626
6843
  declare const PROTOCOL_V2_WEBUSB_FILE_CHUNK_SIZE = 4000;
6844
+ /** FilesystemFileWrite chunk size over BLE. */
6627
6845
  declare const PROTOCOL_V2_BLE_FILE_CHUNK_SIZE = 1800;
6846
+ /**
6847
+ * FirmwareUpdateV4 chunk size for its fixed BLE staging paths.
6848
+ * The longest current path still leaves 28 bytes below the 2048-byte BLE frame limit.
6849
+ */
6850
+ declare const PROTOCOL_V2_BLE_FIRMWARE_FILE_CHUNK_SIZE = 1960;
6851
+ /** BLE FilesystemFileRead chunk size, limited by the Pro2 1024-byte UART TX buffer. */
6628
6852
  declare const PROTOCOL_V2_BLE_FILE_READ_CHUNK_SIZE = 900;
6853
+ /** Pro2 BLE/UART RX FIFO must hold a complete Proto Link frame. */
6629
6854
  declare const PROTOCOL_V2_BLE_FRAME_MAX_BYTES = 2048;
6855
+ /** @deprecated Use the transport-specific WebUSB or BLE file chunk constant. */
6630
6856
  declare const PROTOCOL_V2_FILE_CHUNK_SIZE = 4000;
6857
+ /**
6858
+ * Protocol V2 routing channel. USB reaches the main MCU directly, while BLE routes
6859
+ * through the BLE coprocessor UART bridge.
6860
+ */
6631
6861
  declare const PROTOCOL_V2_CHANNEL_USB = 0;
6632
6862
  declare const PROTOCOL_V2_CHANNEL_BLE_UART = 1;
6633
6863
  declare const PROTOCOL_V2_CHANNEL_SOCKET = 2;
6864
+ /** packet_src for protobuf commands; firmware routes zero to the protobuf dispatcher. */
6634
6865
  declare const PROTOCOL_V2_PACKET_SRC_COMMAND = 0;
6866
+ /**
6867
+ * Shared upper bound for a Protocol V2 request without a method-specific timeout.
6868
+ * Interactive and signing calls may wait on the device UI, so keep this longer than
6869
+ * ordinary transport timeouts while still preventing a stalled link from blocking
6870
+ * the per-device queue forever.
6871
+ */
6872
+ declare const PROTOCOL_V2_DEFAULT_RESPONSE_TIMEOUT_MS: number;
6635
6873
 
6636
6874
  declare const _default: {
6637
6875
  check: typeof check;
@@ -6650,6 +6888,7 @@ declare const _default: {
6650
6888
  };
6651
6889
  ProtocolV2: {
6652
6890
  isAckFrame: typeof isAckFrame;
6891
+ inspectFrameHeader: typeof inspectFrameHeader;
6653
6892
  inspectFrame(schemas: {
6654
6893
  protocolV1: protobuf.Root;
6655
6894
  protocolV2: protobuf.Root;
@@ -6658,6 +6897,9 @@ declare const _default: {
6658
6897
  messageTypeId: number;
6659
6898
  pbPayload: Uint8Array;
6660
6899
  seq: number;
6900
+ router: number;
6901
+ packetSrc: number;
6902
+ dataType: number;
6661
6903
  type: string;
6662
6904
  };
6663
6905
  encodeFrame(schemas: {
@@ -6672,6 +6914,18 @@ declare const _default: {
6672
6914
  protocolV1: protobuf.Root;
6673
6915
  protocolV2: protobuf.Root;
6674
6916
  }, frame: Uint8Array): {
6917
+ message: {
6918
+ version: any;
6919
+ build_fingerprint: string;
6920
+ supported_messages: any;
6921
+ protobuf_definition: null;
6922
+ };
6923
+ messageName: string;
6924
+ messageTypeId: number;
6925
+ pbPayload: Uint8Array;
6926
+ seq: number;
6927
+ type: string;
6928
+ } | {
6675
6929
  message: {
6676
6930
  [key: string]: any;
6677
6931
  };
@@ -6708,4 +6962,4 @@ declare const _default: {
6708
6962
  withProtocolTimeout: typeof withProtocolTimeout;
6709
6963
  };
6710
6964
 
6711
- 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, DevOnboardingPhase, DevOnboardingSetupKind, DevOnboardingSetupMethod, DevOnboardingSetupStatus, DevOnboardingStatus, DevOnboardingStep, DeviceAttachPinOnDevice, DeviceBackToBoot, DeviceCertificate, DeviceCertificateRead, DeviceCertificateSign, DeviceCertificateSignature, DeviceCertificateWrite, DeviceCoprocessorInfo, DeviceEraseSector, DeviceErrorCode, DeviceFactoryAck, DeviceFactoryInfo, DeviceFactoryInfoGet, DeviceFactoryInfoManufactureTime, DeviceFactoryInfoSet, DeviceFactoryPermanentLock, DeviceFactoryTest, DeviceFirmwareImageInfo, DeviceFirmwareTarget, DeviceFirmwareTargetType, DeviceFirmwareUpdateRecord, DeviceFirmwareUpdateRecordFields, DeviceFirmwareUpdateRequest, DeviceFirmwareUpdateStatus, DeviceFirmwareUpdateStatusGet, DeviceFirmwareUpdateTaskStatus, DeviceHardwareInfo, DeviceHostPassphrase, DeviceInfo, DeviceInfoGet, DeviceInfoSettings, DeviceInfoTargets, DeviceInfoTypes, DeviceMainMcuInfo, DevicePassphraseOnDevice, DeviceReboot, DeviceRebootType, DeviceSEInfo, DeviceSEState, DeviceSeType, DeviceSession, DeviceSessionAskPin, DeviceSessionAskPin_FailureSubCodes, DeviceSessionOpen, DeviceSessionResume, DeviceSettings, DeviceSettingsGet, DeviceSettingsPage, DeviceSettingsPageShow, DeviceSettingsSet, DeviceStatus, DeviceStatusGet, DeviceType, DeviceWalletSelect, 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, GetWallpaper, 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, 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, ProtocolV2Capability, ProtocolV2DeviceInfo, ProtocolV2FailureType, 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 };
6965
+ 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 };