@onekeyfe/hd-transport 1.2.0-alpha.17 → 1.2.0-alpha.170

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 (58) 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 +176 -9
  4. package/__tests__/protocol-v2-usb-transport-base.test.js +36 -2
  5. package/__tests__/protocol-v2.test.js +535 -70
  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 +654 -286
  10. package/dist/index.d.ts.map +1 -1
  11. package/dist/index.js +681 -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 +5 -0
  24. package/dist/protocols/v2/link-manager.d.ts.map +1 -1
  25. package/dist/protocols/v2/session.d.ts +14 -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/decode.d.ts.map +1 -1
  30. package/dist/serialization/protobuf/encode.d.ts.map +1 -1
  31. package/dist/types/messages.d.ts +304 -203
  32. package/dist/types/messages.d.ts.map +1 -1
  33. package/dist/types/transport.d.ts +20 -2
  34. package/dist/types/transport.d.ts.map +1 -1
  35. package/dist/utils/transportLog.d.ts +9 -0
  36. package/dist/utils/transportLog.d.ts.map +1 -0
  37. package/messages-protocol-v2.json +515 -540
  38. package/package.json +2 -2
  39. package/scripts/protobuf-patches/index.js +1 -0
  40. package/scripts/protobuf-types.js +10 -1
  41. package/src/constants.ts +30 -16
  42. package/src/index.ts +5 -1
  43. package/src/protocols/index.ts +114 -3
  44. package/src/protocols/v2/ble-frame-writer.ts +77 -0
  45. package/src/protocols/v2/crc8.ts +1 -1
  46. package/src/protocols/v2/decode.ts +49 -12
  47. package/src/protocols/v2/encode.ts +1 -1
  48. package/src/protocols/v2/errors.ts +54 -0
  49. package/src/protocols/v2/frame-assembler.ts +6 -4
  50. package/src/protocols/v2/index.ts +2 -0
  51. package/src/protocols/v2/link-manager.ts +65 -5
  52. package/src/protocols/v2/session.ts +224 -86
  53. package/src/protocols/v2/usb-transport-base.ts +42 -10
  54. package/src/serialization/protobuf/decode.ts +4 -1
  55. package/src/serialization/protobuf/encode.ts +5 -1
  56. package/src/types/messages.ts +377 -259
  57. package/src/types/transport.ts +37 -7
  58. 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,46 @@ 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 without probing when a caller is recovering a known device workflow. */
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
+ /** Prefer acknowledged BLE characteristic writes for this call when supported. */
366
+ writeWithResponse?: boolean;
211
367
  };
212
368
  type ITransportInitFn = (logger?: any, emitter?: EventEmitter, plugin?: LowlevelTransportSharedPlugin) => Promise<string>;
213
369
  type Transport = {
214
370
  enumerate(): Promise<Array<OneKeyDeviceInfo>>;
215
371
  listen(old?: Array<OneKeyDeviceInfo>): Promise<Array<OneKeyDeviceInfo>>;
216
372
  acquire(input: AcquireInput): Promise<string>;
217
- release(session: string, onclose: boolean): Promise<void>;
373
+ /**
374
+ * `keepSession` tells a transport that the caller intends to keep using this
375
+ * device across calls (firmware update, batched signing). Transports that
376
+ * hold the link open may use it to pick a longer idle window; the rest ignore it.
377
+ */
378
+ release(session: string, onclose: boolean, keepSession?: boolean): Promise<void>;
218
379
  configure(signedData: JSON | string): Promise<void>;
219
380
  configureProtocolV2?: (signedData: JSON | string) => Promise<void> | void;
220
381
  call(session: string, name: string, data: Record<string, any>, options?: TransportCallOptions): Promise<MessageFromOneKey>;
@@ -225,7 +386,7 @@ type Transport = {
225
386
  getProtocolType: (path: string) => ProtocolType | undefined;
226
387
  promptDeviceAccess?: () => Promise<USBDevice | BluetoothDevice | null>;
227
388
  init: ITransportInitFn;
228
- stop(): void;
389
+ stop(): void | Promise<void>;
229
390
  configured: boolean;
230
391
  version: string;
231
392
  name: string;
@@ -1897,11 +2058,17 @@ type KaspaAddress = {
1897
2058
  };
1898
2059
  type KaspaSignTx = {
1899
2060
  address_n: number[];
1900
- raw_message: string;
2061
+ raw_message?: string;
1901
2062
  scheme?: string;
1902
2063
  prefix?: string;
1903
2064
  input_count?: number;
1904
2065
  use_tweak?: boolean;
2066
+ output_count?: number;
2067
+ version?: number;
2068
+ lock_time?: number;
2069
+ subnetwork_id?: string;
2070
+ gas?: number;
2071
+ payload_length?: number;
1905
2072
  };
1906
2073
  type KaspaTxInputRequest = {
1907
2074
  request_index: number;
@@ -1911,6 +2078,77 @@ type KaspaTxInputAck = {
1911
2078
  address_n: number[];
1912
2079
  raw_message: string;
1913
2080
  };
2081
+ type KaspaOutpoint = {
2082
+ tx_id: string;
2083
+ index: number;
2084
+ };
2085
+ declare enum Enum_KaspaInputScriptType {
2086
+ KASPA_SPEND_P2PK_SCHNORR = 0,
2087
+ KASPA_SPEND_P2PK_ECDSA = 1
2088
+ }
2089
+ type KaspaInputScriptType = keyof typeof Enum_KaspaInputScriptType;
2090
+ declare enum Enum_KaspaOutputScriptType {
2091
+ KASPA_PAYTOADDRESS = 0,
2092
+ KASPA_PAYTOCHANGE = 1
2093
+ }
2094
+ type KaspaOutputScriptType = keyof typeof Enum_KaspaOutputScriptType;
2095
+ declare enum Enum_KaspaRequestType {
2096
+ KASPA_TX_INPUT = 0,
2097
+ KASPA_TX_OUTPUT = 1,
2098
+ KASPA_TX_PAYLOAD = 2,
2099
+ KASPA_TX_FINISHED = 3,
2100
+ KASPA_TX_PREV_META = 4
2101
+ }
2102
+ type KaspaRequestType = keyof typeof Enum_KaspaRequestType;
2103
+ type KaspaTxRequestSignature = {
2104
+ signature_index: number;
2105
+ signature: string;
2106
+ };
2107
+ type KaspaTxRequest = {
2108
+ request_type: KaspaRequestType;
2109
+ request_index?: number;
2110
+ signature?: KaspaTxRequestSignature;
2111
+ request_payload_length?: number;
2112
+ prev_tx_id?: string;
2113
+ };
2114
+ type KaspaTxAckInput = {
2115
+ address_n: number[];
2116
+ previous_outpoint: KaspaOutpoint;
2117
+ amount: UintType;
2118
+ sequence: number;
2119
+ sig_op_count: number;
2120
+ script_type?: KaspaInputScriptType;
2121
+ use_tweak?: boolean;
2122
+ };
2123
+ type KaspaTxAckOutput = {
2124
+ script_type?: KaspaOutputScriptType;
2125
+ amount: UintType;
2126
+ address_n: number[];
2127
+ address?: string;
2128
+ scheme?: string;
2129
+ use_tweak?: boolean;
2130
+ };
2131
+ type KaspaTxAckPayloadChunk = {
2132
+ payload_chunk: string;
2133
+ };
2134
+ type KaspaTxAckPrevMeta = {
2135
+ version: number;
2136
+ input_count: number;
2137
+ output_count: number;
2138
+ lock_time: number;
2139
+ subnetwork_id: string;
2140
+ gas: number;
2141
+ payload_length: number;
2142
+ };
2143
+ type KaspaTxAckPrevInput = {
2144
+ previous_outpoint: KaspaOutpoint;
2145
+ sequence: number;
2146
+ };
2147
+ type KaspaTxAckPrevOutput = {
2148
+ amount: UintType;
2149
+ script_version: number;
2150
+ script_public_key: string;
2151
+ };
1914
2152
  type KaspaSignedTx = {
1915
2153
  signature: string;
1916
2154
  };
@@ -1937,7 +2175,7 @@ declare enum Enum_SafetyCheckLevel {
1937
2175
  PromptAlways = 1,
1938
2176
  PromptTemporarily = 2
1939
2177
  }
1940
- type SafetyCheckLevel = keyof typeof Enum_SafetyCheckLevel;
2178
+ type SafetyCheckLevel = keyof typeof Enum_SafetyCheckLevel | Enum_SafetyCheckLevel;
1941
2179
  type Initialize = {
1942
2180
  session_id?: string;
1943
2181
  _skip_passphrase?: boolean;
@@ -3618,17 +3856,6 @@ type EthereumSignTypedDataQR = {
3618
3856
  metamask_v4_compat?: boolean;
3619
3857
  request_id?: string;
3620
3858
  };
3621
- type InternalMyAddressRequest = {
3622
- coin_type: number;
3623
- chain_id: number;
3624
- account_index: number;
3625
- derive_type: number;
3626
- };
3627
- type StartSession = {
3628
- session_id?: string;
3629
- _skip_passphrase?: boolean;
3630
- derive_cardano?: boolean;
3631
- };
3632
3859
  type SetBusy = {
3633
3860
  expiry_ms?: number;
3634
3861
  };
@@ -3645,21 +3872,6 @@ type Nonce = {
3645
3872
  type WriteSEPrivateKey = {
3646
3873
  private_key: string;
3647
3874
  };
3648
- declare enum WallpaperTarget {
3649
- Home = 0,
3650
- Lock = 1
3651
- }
3652
- type SetWallpaper = {
3653
- target: WallpaperTarget;
3654
- path: string;
3655
- };
3656
- type GetWallpaper = {
3657
- target: WallpaperTarget;
3658
- };
3659
- type Wallpaper = {
3660
- target: WallpaperTarget;
3661
- path: string;
3662
- };
3663
3875
  type UnlockPath = {
3664
3876
  address_n: number[];
3665
3877
  mac?: string;
@@ -3673,57 +3885,27 @@ declare enum MoneroNetworkType {
3673
3885
  STAGENET = 2,
3674
3886
  FAKECHAIN = 3
3675
3887
  }
3676
- type ViewAmount = {
3677
- is_unlimited: boolean;
3678
- num: string;
3679
- };
3680
- type ViewDetail = {
3681
- key: number;
3682
- value: string;
3683
- is_overview: boolean;
3684
- has_icon: boolean;
3685
- };
3686
- declare enum ViewTipType {
3687
- Default = 0,
3688
- Highlight = 1,
3689
- Recommend = 2,
3690
- Warning = 3,
3691
- Danger = 4
3888
+ declare enum UiAnimationType {
3889
+ Unknown = 0,
3890
+ Signing = 1
3692
3891
  }
3693
- type ViewTip = {
3694
- type: ViewTipType;
3695
- text: string;
3696
- };
3697
- type ViewRawData = {
3698
- initial_data: string;
3699
- placeholder: number;
3700
- };
3701
- declare enum ViewSignLayout {
3702
- LayoutDefault = 0,
3703
- LayoutSafeTxCreate = 1,
3704
- LayoutFinalConfirm = 2,
3705
- Layout7702 = 3,
3706
- LayoutFlat = 4
3892
+ declare enum UiAnimationCommand {
3893
+ CommandUnknown = 0,
3894
+ Start = 1,
3895
+ Stop = 2,
3896
+ Refresh = 3
3707
3897
  }
3708
- type ViewSignPage = {
3709
- title: string;
3710
- amount?: UintType;
3711
- general: ViewDetail[];
3712
- tip?: ViewTip;
3713
- raw_data?: ViewRawData;
3714
- slide_to_confirm?: boolean;
3715
- layout?: ViewSignLayout;
3898
+ type UiAnimationRequest = {
3899
+ command: UiAnimationCommand;
3900
+ type?: UiAnimationType;
3716
3901
  };
3717
- type ViewVerifyPage = {
3718
- title: string;
3719
- address: string;
3720
- path: string;
3902
+ type ProtocolInfoRequest = {
3903
+ eventless_wallet_session?: boolean;
3721
3904
  };
3722
- type ProtocolInfoRequest = {};
3723
3905
  type ProtocolInfo = {
3724
3906
  version: number;
3907
+ build_fingerprint: string;
3725
3908
  supported_messages: number[];
3726
- protobuf_definition?: string;
3727
3909
  };
3728
3910
  declare enum DeviceErrorCode {
3729
3911
  DeviceError_None = 0,
@@ -3746,23 +3928,22 @@ type DeviceReboot = {
3746
3928
  reboot_type: DeviceRebootType;
3747
3929
  };
3748
3930
  type DeviceSettings = {
3749
- label?: string;
3750
3931
  bt_enable?: boolean;
3751
3932
  language?: string;
3752
3933
  wallpaper_path?: string;
3753
- passphrase_enable?: boolean;
3754
3934
  brightness?: number;
3755
- autolock_delay_ms?: number;
3756
- autoshutdown_delay_ms?: number;
3757
3935
  animation_enable?: boolean;
3758
3936
  tap_to_wake?: boolean;
3759
3937
  haptic_feedback?: boolean;
3760
3938
  device_name_display_enabled?: boolean;
3761
3939
  airgap_mode?: boolean;
3762
- fido_enabled?: boolean;
3763
- experimental_features?: boolean;
3764
3940
  usb_lock_enable?: boolean;
3765
3941
  random_keypad?: boolean;
3942
+ passphrase_enable?: boolean;
3943
+ fido_enabled?: boolean;
3944
+ autolock_delay_ms?: number;
3945
+ autoshutdown_delay_ms?: number;
3946
+ label?: string;
3766
3947
  };
3767
3948
  type DeviceSettingsGet = {};
3768
3949
  type DeviceSettingsSet = {
@@ -3792,6 +3973,39 @@ type DeviceCertificateSignature = {
3792
3973
  type DeviceCertificateSign = {
3793
3974
  data: string;
3794
3975
  };
3976
+ type DeviceMiscUsbMscControl = {
3977
+ enable: boolean;
3978
+ };
3979
+ declare enum DeviceFactoryAck {
3980
+ FACTORY_ACK_SUCCESS = 0,
3981
+ FACTORY_ACK_FAIL = 1
3982
+ }
3983
+ type DeviceFactoryInfoManufactureTime = {
3984
+ year: number;
3985
+ month: number;
3986
+ day: number;
3987
+ hour: number;
3988
+ minute: number;
3989
+ second: number;
3990
+ };
3991
+ type DeviceFactoryInfo = {
3992
+ version?: number;
3993
+ serial_number?: string;
3994
+ factory_test_completed?: boolean;
3995
+ factory_burn_in_completed?: boolean;
3996
+ manufacture_time?: DeviceFactoryInfoManufactureTime;
3997
+ };
3998
+ type DeviceFactoryInfoSet = {
3999
+ info: DeviceFactoryInfo;
4000
+ };
4001
+ type DeviceFactoryInfoGet = {};
4002
+ type DeviceFactoryPermanentLock = {
4003
+ check_a: string;
4004
+ check_b: string;
4005
+ };
4006
+ type DeviceFactoryTest = {
4007
+ burn_in_test: boolean;
4008
+ };
3795
4009
  declare enum DeviceFirmwareTargetType {
3796
4010
  FW_MGMT_TARGET_INVALID = 0,
3797
4011
  FW_MGMT_TARGET_CRATE = 1,
@@ -3822,9 +4036,10 @@ type DeviceFirmwareTarget = {
3822
4036
  target_id: DeviceFirmwareTargetType;
3823
4037
  path: string;
3824
4038
  };
3825
- type DeviceFirmwareUpdateRequest = {
4039
+ type DeviceFirmwareUpdateStage = {
3826
4040
  targets: DeviceFirmwareTarget[];
3827
4041
  };
4042
+ type DeviceFirmwareUpdateRequest = {};
3828
4043
  type DeviceFirmwareUpdateRecord = {
3829
4044
  target_id: DeviceFirmwareTargetType;
3830
4045
  status?: DeviceFirmwareUpdateTaskStatus;
@@ -3842,36 +4057,6 @@ type DeviceFirmwareUpdateStatusGet = {
3842
4057
  type DeviceFirmwareUpdateStatus = {
3843
4058
  records: DeviceFirmwareUpdateRecord[];
3844
4059
  };
3845
- declare enum DeviceFactoryAck {
3846
- FACTORY_ACK_SUCCESS = 0,
3847
- FACTORY_ACK_FAIL = 1
3848
- }
3849
- type DeviceFactoryInfoManufactureTime = {
3850
- year: number;
3851
- month: number;
3852
- day: number;
3853
- hour: number;
3854
- minute: number;
3855
- second: number;
3856
- };
3857
- type DeviceFactoryInfo = {
3858
- version?: number;
3859
- serial_number?: string;
3860
- burn_in_completed?: boolean;
3861
- factory_test_completed?: boolean;
3862
- manufacture_time?: DeviceFactoryInfoManufactureTime;
3863
- };
3864
- type DeviceFactoryInfoSet = {
3865
- info: DeviceFactoryInfo;
3866
- };
3867
- type DeviceFactoryInfoGet = {};
3868
- type DeviceFactoryPermanentLock = {
3869
- check_a: string;
3870
- check_b: string;
3871
- };
3872
- type DeviceFactoryTest = {
3873
- burn_in_test: boolean;
3874
- };
3875
4060
  declare enum DeviceType {
3876
4061
  CLASSIC1 = 0,
3877
4062
  CLASSIC1S = 1,
@@ -3922,13 +4107,12 @@ type DeviceSEInfo = {
3922
4107
  };
3923
4108
  type DeviceInfoTargets = {
3924
4109
  hw?: boolean;
3925
- fw?: boolean;
4110
+ main_mcu?: boolean;
3926
4111
  coprocessor?: boolean;
3927
4112
  se1?: boolean;
3928
4113
  se2?: boolean;
3929
4114
  se3?: boolean;
3930
4115
  se4?: boolean;
3931
- status?: boolean;
3932
4116
  };
3933
4117
  type DeviceInfoTypes = {
3934
4118
  version?: boolean;
@@ -3943,36 +4127,46 @@ type DeviceInfoGet = {
3943
4127
  type ProtocolV2DeviceInfo = {
3944
4128
  protocol_version: number;
3945
4129
  hw?: DeviceHardwareInfo;
3946
- fw?: DeviceMainMcuInfo;
4130
+ main_mcu?: DeviceMainMcuInfo;
3947
4131
  coprocessor?: DeviceCoprocessorInfo;
3948
4132
  se1?: DeviceSEInfo;
3949
4133
  se2?: DeviceSEInfo;
3950
4134
  se3?: DeviceSEInfo;
3951
4135
  se4?: DeviceSEInfo;
3952
- status?: DeviceStatus;
3953
- };
3954
- type DeviceSessionResume = {
3955
- session_id: string;
3956
- };
3957
- type DeviceHostPassphrase = {
3958
- passphrase: string;
3959
- };
3960
- type DevicePassphraseOnDevice = {};
3961
- type DeviceAttachPinOnDevice = {};
3962
- type DeviceWalletSelect = {
3963
- host_passphrase?: DeviceHostPassphrase;
3964
- passphrase_on_device?: DevicePassphraseOnDevice;
3965
- attach_pin_on_device?: DeviceAttachPinOnDevice;
3966
4136
  };
3967
- type DeviceSessionOpen = {
3968
- resume?: DeviceSessionResume;
3969
- select?: DeviceWalletSelect;
4137
+ declare enum DeviceSessionErrorCode {
4138
+ DeviceSessionError_None = 0,
4139
+ DeviceSessionError_UserCancelled = 1,
4140
+ DeviceSessionError_InvalidSession = 2,
4141
+ DeviceSessionError_AttachPinUnavailable = 3,
4142
+ DeviceSessionError_PassphraseDisabled = 4,
4143
+ DeviceSessionError_Busy = 5
4144
+ }
4145
+ declare enum DeviceSessionSeedDomain {
4146
+ SeedDomain_Standard = 1,
4147
+ SeedDomain_Cardano = 2
4148
+ }
4149
+ type DeviceSessionGet = {
4150
+ session_id?: string;
4151
+ btc_test_address?: string;
4152
+ seed_domains: DeviceSessionSeedDomain[];
3970
4153
  };
3971
4154
  type DeviceSession = {
3972
4155
  session_id?: string;
3973
4156
  btc_test_address?: string;
3974
4157
  };
3975
- type DeviceSessionAskPin = {};
4158
+ declare enum DeviceSessionPinType {
4159
+ Any = 1,
4160
+ Main = 2,
4161
+ AttachToPin = 3
4162
+ }
4163
+ type DeviceSessionAskPin = {
4164
+ type?: DeviceSessionPinType;
4165
+ };
4166
+ type DeviceSessionAskPassphrase = {
4167
+ passphrase?: string;
4168
+ on_device: boolean;
4169
+ };
3976
4170
  declare enum DeviceSessionAskPin_FailureSubCodes {
3977
4171
  UserCancel = 1
3978
4172
  }
@@ -3986,53 +4180,6 @@ type DeviceStatus = {
3986
4180
  unlocked_by_attach_to_pin?: boolean;
3987
4181
  };
3988
4182
  type DeviceStatusGet = {};
3989
- declare enum DevOnboardingStep {
3990
- DEV_ONBOARDING_STEP_UNKNOWN = 0,
3991
- DEV_ONBOARDING_STEP_CHECKING = 1,
3992
- DEV_ONBOARDING_STEP_PERSONALIZATION = 2,
3993
- DEV_ONBOARDING_STEP_PIN = 3,
3994
- DEV_ONBOARDING_STEP_SETUP = 4,
3995
- DEV_ONBOARDING_STEP_DONE = 5
3996
- }
3997
- declare enum DevOnboardingPhase {
3998
- DEV_ONBOARDING_PHASE_UNKNOWN = 0,
3999
- DEV_ONBOARDING_PHASE_SAFETY_CHECK = 1,
4000
- DEV_ONBOARDING_PHASE_PIN_SETUP = 2,
4001
- DEV_ONBOARDING_PHASE_FINGERPRINT_SETUP = 3,
4002
- DEV_ONBOARDING_PHASE_SETUP_CHOICE = 4,
4003
- DEV_ONBOARDING_PHASE_WALLET_CREATE_START = 5,
4004
- DEV_ONBOARDING_PHASE_RECOVERY_PHRASE_VIEW = 6,
4005
- DEV_ONBOARDING_PHASE_RECOVERY_PHRASE_CONFIRM = 7,
4006
- DEV_ONBOARDING_PHASE_RESTORE_METHOD_CHOICE = 8,
4007
- DEV_ONBOARDING_PHASE_RECOVERY_PHRASE_RESTORE = 9,
4008
- DEV_ONBOARDING_PHASE_SEEDCARD_RESTORE = 10,
4009
- DEV_ONBOARDING_PHASE_WALLET_READY = 11,
4010
- DEV_ONBOARDING_PHASE_SEEDCARD_BACKUP_PROMPT = 12,
4011
- DEV_ONBOARDING_PHASE_SEEDCARD_BACKUP = 13
4012
- }
4013
- declare enum DevOnboardingSetupKind {
4014
- DEV_ONBOARDING_SETUP_KIND_UNKNOWN = 0,
4015
- DEV_ONBOARDING_SETUP_KIND_CHOICE = 1,
4016
- DEV_ONBOARDING_SETUP_KIND_CREATE = 2,
4017
- DEV_ONBOARDING_SETUP_KIND_RESTORE = 3
4018
- }
4019
- declare enum DevOnboardingSetupMethod {
4020
- DEV_ONBOARDING_SETUP_METHOD_UNKNOWN = 0,
4021
- DEV_ONBOARDING_SETUP_METHOD_RECOVERY_PHRASE = 1,
4022
- DEV_ONBOARDING_SETUP_METHOD_SEEDCARD = 2
4023
- }
4024
- type DevOnboardingSetupStatus = {
4025
- kind?: DevOnboardingSetupKind;
4026
- method?: DevOnboardingSetupMethod;
4027
- };
4028
- type DevGetOnboardingStatus = {};
4029
- type DevOnboardingStatus = {
4030
- step?: DevOnboardingStep;
4031
- phase?: DevOnboardingPhase;
4032
- setup?: DevOnboardingSetupStatus;
4033
- pin_set?: boolean;
4034
- wallet_initialized?: boolean;
4035
- };
4036
4183
  type FilesystemPermissionFix = {};
4037
4184
  type FilesystemPathInfo = {
4038
4185
  exist: boolean;
@@ -4093,7 +4240,117 @@ type FilesystemFormat = {
4093
4240
  data: boolean;
4094
4241
  user: boolean;
4095
4242
  };
4243
+ type InternalMyAddressRequest = {
4244
+ coin_type: number;
4245
+ chain_id: number;
4246
+ account_index: number;
4247
+ derive_type: number;
4248
+ };
4249
+ type NftUpdate = {
4250
+ file_name_no_ext: string;
4251
+ };
4252
+ declare enum OnboardingStep {
4253
+ ONBOARDING_STEP_UNKNOWN = 0,
4254
+ ONBOARDING_STEP_CHECKING = 1,
4255
+ ONBOARDING_STEP_PERSONALIZATION = 2,
4256
+ ONBOARDING_STEP_PIN = 3,
4257
+ ONBOARDING_STEP_SETUP = 4,
4258
+ ONBOARDING_STEP_DONE = 5
4259
+ }
4260
+ declare enum OnboardingPhase {
4261
+ ONBOARDING_PHASE_UNKNOWN = 0,
4262
+ ONBOARDING_PHASE_SAFETY_CHECK = 1,
4263
+ ONBOARDING_PHASE_PIN_SETUP = 2,
4264
+ ONBOARDING_PHASE_FINGERPRINT_SETUP = 3,
4265
+ ONBOARDING_PHASE_SETUP_CHOICE = 4,
4266
+ ONBOARDING_PHASE_WALLET_CREATE_START = 5,
4267
+ ONBOARDING_PHASE_RECOVERY_PHRASE_VIEW = 6,
4268
+ ONBOARDING_PHASE_RECOVERY_PHRASE_CONFIRM = 7,
4269
+ ONBOARDING_PHASE_RESTORE_METHOD_CHOICE = 8,
4270
+ ONBOARDING_PHASE_RECOVERY_PHRASE_RESTORE = 9,
4271
+ ONBOARDING_PHASE_SEEDCARD_RESTORE = 10,
4272
+ ONBOARDING_PHASE_WALLET_READY = 11,
4273
+ ONBOARDING_PHASE_SEEDCARD_BACKUP_PROMPT = 12,
4274
+ ONBOARDING_PHASE_SEEDCARD_BACKUP = 13
4275
+ }
4276
+ declare enum OnboardingSetupKind {
4277
+ ONBOARDING_SETUP_KIND_UNKNOWN = 0,
4278
+ ONBOARDING_SETUP_KIND_CHOICE = 1,
4279
+ ONBOARDING_SETUP_KIND_CREATE = 2,
4280
+ ONBOARDING_SETUP_KIND_RESTORE = 3
4281
+ }
4282
+ declare enum OnboardingSetupMethod {
4283
+ ONBOARDING_SETUP_METHOD_UNKNOWN = 0,
4284
+ ONBOARDING_SETUP_METHOD_RECOVERY_PHRASE = 1,
4285
+ ONBOARDING_SETUP_METHOD_SEEDCARD = 2
4286
+ }
4287
+ type OnboardingSetupStatus = {
4288
+ kind?: OnboardingSetupKind;
4289
+ method?: OnboardingSetupMethod;
4290
+ };
4291
+ type OnboardingStatusGet = {};
4292
+ type OnboardingStatus = {
4293
+ step?: OnboardingStep;
4294
+ phase?: OnboardingPhase;
4295
+ setup?: OnboardingSetupStatus;
4296
+ pin_set?: boolean;
4297
+ wallet_initialized?: boolean;
4298
+ };
4096
4299
  type PortfolioUpdate = {};
4300
+ type ViewAmount = {
4301
+ is_unlimited: boolean;
4302
+ num: string;
4303
+ };
4304
+ type ViewDetail = {
4305
+ key: number;
4306
+ value: string;
4307
+ is_overview: boolean;
4308
+ has_icon: boolean;
4309
+ };
4310
+ declare enum ViewTipType {
4311
+ Default = 0,
4312
+ Highlight = 1,
4313
+ Recommend = 2,
4314
+ Warning = 3,
4315
+ Danger = 4
4316
+ }
4317
+ type ViewTip = {
4318
+ type: ViewTipType;
4319
+ text?: string;
4320
+ text_id?: number;
4321
+ };
4322
+ type ViewRawData = {
4323
+ initial_data: string;
4324
+ placeholder: number;
4325
+ };
4326
+ declare enum ViewSignLayout {
4327
+ LayoutDefault = 0,
4328
+ LayoutSafeTxCreate = 1,
4329
+ LayoutFinalConfirm = 2,
4330
+ Layout7702 = 3,
4331
+ LayoutFlat = 4,
4332
+ LayoutEthApprove = 5
4333
+ }
4334
+ type ViewSignPage = {
4335
+ title?: string;
4336
+ amount?: UintType;
4337
+ general: ViewDetail[];
4338
+ tip?: ViewTip;
4339
+ raw_data?: ViewRawData;
4340
+ slide_to_confirm?: boolean;
4341
+ layout?: ViewSignLayout;
4342
+ title_id?: number;
4343
+ };
4344
+ type ViewVerifyPage = {
4345
+ title?: string;
4346
+ address: string;
4347
+ path: string;
4348
+ network?: string;
4349
+ derive_type?: string;
4350
+ value_key?: number;
4351
+ title_id?: number;
4352
+ chain_id?: number;
4353
+ };
4097
4354
  declare enum ProtocolV2FailureType {
4098
4355
  Failure_InvalidMessage = 1,
4099
4356
  Failure_UndefinedError = 2,
@@ -4397,6 +4654,15 @@ type MessageType = {
4397
4654
  KaspaSignTx: KaspaSignTx;
4398
4655
  KaspaTxInputRequest: KaspaTxInputRequest;
4399
4656
  KaspaTxInputAck: KaspaTxInputAck;
4657
+ KaspaOutpoint: KaspaOutpoint;
4658
+ KaspaTxRequestSignature: KaspaTxRequestSignature;
4659
+ KaspaTxRequest: KaspaTxRequest;
4660
+ KaspaTxAckInput: KaspaTxAckInput;
4661
+ KaspaTxAckOutput: KaspaTxAckOutput;
4662
+ KaspaTxAckPayloadChunk: KaspaTxAckPayloadChunk;
4663
+ KaspaTxAckPrevMeta: KaspaTxAckPrevMeta;
4664
+ KaspaTxAckPrevInput: KaspaTxAckPrevInput;
4665
+ KaspaTxAckPrevOutput: KaspaTxAckPrevOutput;
4400
4666
  KaspaSignedTx: KaspaSignedTx;
4401
4667
  LnurlAuth: LnurlAuth;
4402
4668
  LnurlAuthResp: LnurlAuthResp;
@@ -4687,25 +4953,15 @@ type MessageType = {
4687
4953
  PaymentRequestMemo: PaymentRequestMemo;
4688
4954
  TxAckPaymentRequest: TxAckPaymentRequest;
4689
4955
  EthereumSignTypedDataQR: EthereumSignTypedDataQR;
4690
- InternalMyAddressRequest: InternalMyAddressRequest;
4691
- StartSession: StartSession;
4692
4956
  SetBusy: SetBusy;
4693
4957
  GetFirmwareHash: GetFirmwareHash;
4694
4958
  FirmwareHash: FirmwareHash;
4695
4959
  GetNonce: GetNonce;
4696
4960
  Nonce: Nonce;
4697
4961
  WriteSEPrivateKey: WriteSEPrivateKey;
4698
- SetWallpaper: SetWallpaper;
4699
- GetWallpaper: GetWallpaper;
4700
- Wallpaper: Wallpaper;
4701
4962
  UnlockPath: UnlockPath;
4702
4963
  UnlockedPathRequest: UnlockedPathRequest;
4703
- ViewAmount: ViewAmount;
4704
- ViewDetail: ViewDetail;
4705
- ViewTip: ViewTip;
4706
- ViewRawData: ViewRawData;
4707
- ViewSignPage: ViewSignPage;
4708
- ViewVerifyPage: ViewVerifyPage;
4964
+ UiAnimationRequest: UiAnimationRequest;
4709
4965
  ProtocolInfoRequest: ProtocolInfoRequest;
4710
4966
  ProtocolInfo: ProtocolInfo;
4711
4967
  DeviceReboot: DeviceReboot;
@@ -4718,18 +4974,20 @@ type MessageType = {
4718
4974
  DeviceCertificateRead: DeviceCertificateRead;
4719
4975
  DeviceCertificateSignature: DeviceCertificateSignature;
4720
4976
  DeviceCertificateSign: DeviceCertificateSign;
4721
- DeviceFirmwareTarget: DeviceFirmwareTarget;
4722
- DeviceFirmwareUpdateRequest: DeviceFirmwareUpdateRequest;
4723
- DeviceFirmwareUpdateRecord: DeviceFirmwareUpdateRecord;
4724
- DeviceFirmwareUpdateRecordFields: DeviceFirmwareUpdateRecordFields;
4725
- DeviceFirmwareUpdateStatusGet: DeviceFirmwareUpdateStatusGet;
4726
- DeviceFirmwareUpdateStatus: DeviceFirmwareUpdateStatus;
4977
+ DeviceMiscUsbMscControl: DeviceMiscUsbMscControl;
4727
4978
  DeviceFactoryInfoManufactureTime: DeviceFactoryInfoManufactureTime;
4728
4979
  DeviceFactoryInfo: DeviceFactoryInfo;
4729
4980
  DeviceFactoryInfoSet: DeviceFactoryInfoSet;
4730
4981
  DeviceFactoryInfoGet: DeviceFactoryInfoGet;
4731
4982
  DeviceFactoryPermanentLock: DeviceFactoryPermanentLock;
4732
4983
  DeviceFactoryTest: DeviceFactoryTest;
4984
+ DeviceFirmwareTarget: DeviceFirmwareTarget;
4985
+ DeviceFirmwareUpdateStage: DeviceFirmwareUpdateStage;
4986
+ DeviceFirmwareUpdateRequest: DeviceFirmwareUpdateRequest;
4987
+ DeviceFirmwareUpdateRecord: DeviceFirmwareUpdateRecord;
4988
+ DeviceFirmwareUpdateRecordFields: DeviceFirmwareUpdateRecordFields;
4989
+ DeviceFirmwareUpdateStatusGet: DeviceFirmwareUpdateStatusGet;
4990
+ DeviceFirmwareUpdateStatus: DeviceFirmwareUpdateStatus;
4733
4991
  DeviceFirmwareImageInfo: DeviceFirmwareImageInfo;
4734
4992
  DeviceHardwareInfo: DeviceHardwareInfo;
4735
4993
  DeviceMainMcuInfo: DeviceMainMcuInfo;
@@ -4738,19 +4996,12 @@ type MessageType = {
4738
4996
  DeviceInfoTargets: DeviceInfoTargets;
4739
4997
  DeviceInfoTypes: DeviceInfoTypes;
4740
4998
  DeviceInfoGet: DeviceInfoGet;
4741
- DeviceSessionResume: DeviceSessionResume;
4742
- DeviceHostPassphrase: DeviceHostPassphrase;
4743
- DevicePassphraseOnDevice: DevicePassphraseOnDevice;
4744
- DeviceAttachPinOnDevice: DeviceAttachPinOnDevice;
4745
- DeviceWalletSelect: DeviceWalletSelect;
4746
- DeviceSessionOpen: DeviceSessionOpen;
4999
+ DeviceSessionGet: DeviceSessionGet;
4747
5000
  DeviceSession: DeviceSession;
4748
5001
  DeviceSessionAskPin: DeviceSessionAskPin;
5002
+ DeviceSessionAskPassphrase: DeviceSessionAskPassphrase;
4749
5003
  DeviceStatus: DeviceStatus;
4750
5004
  DeviceStatusGet: DeviceStatusGet;
4751
- DevOnboardingSetupStatus: DevOnboardingSetupStatus;
4752
- DevGetOnboardingStatus: DevGetOnboardingStatus;
4753
- DevOnboardingStatus: DevOnboardingStatus;
4754
5005
  FilesystemPermissionFix: FilesystemPermissionFix;
4755
5006
  FilesystemPathInfo: FilesystemPathInfo;
4756
5007
  FilesystemPathInfoQuery: FilesystemPathInfoQuery;
@@ -4763,7 +5014,18 @@ type MessageType = {
4763
5014
  FilesystemDirMake: FilesystemDirMake;
4764
5015
  FilesystemDirRemove: FilesystemDirRemove;
4765
5016
  FilesystemFormat: FilesystemFormat;
5017
+ InternalMyAddressRequest: InternalMyAddressRequest;
5018
+ NftUpdate: NftUpdate;
5019
+ OnboardingSetupStatus: OnboardingSetupStatus;
5020
+ OnboardingStatusGet: OnboardingStatusGet;
5021
+ OnboardingStatus: OnboardingStatus;
4766
5022
  PortfolioUpdate: PortfolioUpdate;
5023
+ ViewAmount: ViewAmount;
5024
+ ViewDetail: ViewDetail;
5025
+ ViewTip: ViewTip;
5026
+ ViewRawData: ViewRawData;
5027
+ ViewSignPage: ViewSignPage;
5028
+ ViewVerifyPage: ViewVerifyPage;
4767
5029
  };
4768
5030
  type MessageKey = keyof MessageType;
4769
5031
  type MessageResponse<T extends MessageKey> = {
@@ -5120,6 +5382,24 @@ type messages_KaspaAddress = KaspaAddress;
5120
5382
  type messages_KaspaSignTx = KaspaSignTx;
5121
5383
  type messages_KaspaTxInputRequest = KaspaTxInputRequest;
5122
5384
  type messages_KaspaTxInputAck = KaspaTxInputAck;
5385
+ type messages_KaspaOutpoint = KaspaOutpoint;
5386
+ type messages_Enum_KaspaInputScriptType = Enum_KaspaInputScriptType;
5387
+ declare const messages_Enum_KaspaInputScriptType: typeof Enum_KaspaInputScriptType;
5388
+ type messages_KaspaInputScriptType = KaspaInputScriptType;
5389
+ type messages_Enum_KaspaOutputScriptType = Enum_KaspaOutputScriptType;
5390
+ declare const messages_Enum_KaspaOutputScriptType: typeof Enum_KaspaOutputScriptType;
5391
+ type messages_KaspaOutputScriptType = KaspaOutputScriptType;
5392
+ type messages_Enum_KaspaRequestType = Enum_KaspaRequestType;
5393
+ declare const messages_Enum_KaspaRequestType: typeof Enum_KaspaRequestType;
5394
+ type messages_KaspaRequestType = KaspaRequestType;
5395
+ type messages_KaspaTxRequestSignature = KaspaTxRequestSignature;
5396
+ type messages_KaspaTxRequest = KaspaTxRequest;
5397
+ type messages_KaspaTxAckInput = KaspaTxAckInput;
5398
+ type messages_KaspaTxAckOutput = KaspaTxAckOutput;
5399
+ type messages_KaspaTxAckPayloadChunk = KaspaTxAckPayloadChunk;
5400
+ type messages_KaspaTxAckPrevMeta = KaspaTxAckPrevMeta;
5401
+ type messages_KaspaTxAckPrevInput = KaspaTxAckPrevInput;
5402
+ type messages_KaspaTxAckPrevOutput = KaspaTxAckPrevOutput;
5123
5403
  type messages_KaspaSignedTx = KaspaSignedTx;
5124
5404
  type messages_LnurlAuth = LnurlAuth;
5125
5405
  type messages_LnurlAuthResp = LnurlAuthResp;
@@ -5476,33 +5756,21 @@ type messages_CoinPurchaseMemo = CoinPurchaseMemo;
5476
5756
  type messages_PaymentRequestMemo = PaymentRequestMemo;
5477
5757
  type messages_TxAckPaymentRequest = TxAckPaymentRequest;
5478
5758
  type messages_EthereumSignTypedDataQR = EthereumSignTypedDataQR;
5479
- type messages_InternalMyAddressRequest = InternalMyAddressRequest;
5480
- type messages_StartSession = StartSession;
5481
5759
  type messages_SetBusy = SetBusy;
5482
5760
  type messages_GetFirmwareHash = GetFirmwareHash;
5483
5761
  type messages_FirmwareHash = FirmwareHash;
5484
5762
  type messages_GetNonce = GetNonce;
5485
5763
  type messages_Nonce = Nonce;
5486
5764
  type messages_WriteSEPrivateKey = WriteSEPrivateKey;
5487
- type messages_WallpaperTarget = WallpaperTarget;
5488
- declare const messages_WallpaperTarget: typeof WallpaperTarget;
5489
- type messages_SetWallpaper = SetWallpaper;
5490
- type messages_GetWallpaper = GetWallpaper;
5491
- type messages_Wallpaper = Wallpaper;
5492
5765
  type messages_UnlockPath = UnlockPath;
5493
5766
  type messages_UnlockedPathRequest = UnlockedPathRequest;
5494
5767
  type messages_MoneroNetworkType = MoneroNetworkType;
5495
5768
  declare const messages_MoneroNetworkType: typeof MoneroNetworkType;
5496
- type messages_ViewAmount = ViewAmount;
5497
- type messages_ViewDetail = ViewDetail;
5498
- type messages_ViewTipType = ViewTipType;
5499
- declare const messages_ViewTipType: typeof ViewTipType;
5500
- type messages_ViewTip = ViewTip;
5501
- type messages_ViewRawData = ViewRawData;
5502
- type messages_ViewSignLayout = ViewSignLayout;
5503
- declare const messages_ViewSignLayout: typeof ViewSignLayout;
5504
- type messages_ViewSignPage = ViewSignPage;
5505
- type messages_ViewVerifyPage = ViewVerifyPage;
5769
+ type messages_UiAnimationType = UiAnimationType;
5770
+ declare const messages_UiAnimationType: typeof UiAnimationType;
5771
+ type messages_UiAnimationCommand = UiAnimationCommand;
5772
+ declare const messages_UiAnimationCommand: typeof UiAnimationCommand;
5773
+ type messages_UiAnimationRequest = UiAnimationRequest;
5506
5774
  type messages_ProtocolInfoRequest = ProtocolInfoRequest;
5507
5775
  type messages_ProtocolInfo = ProtocolInfo;
5508
5776
  type messages_DeviceErrorCode = DeviceErrorCode;
@@ -5521,24 +5789,26 @@ type messages_DeviceCertificateWrite = DeviceCertificateWrite;
5521
5789
  type messages_DeviceCertificateRead = DeviceCertificateRead;
5522
5790
  type messages_DeviceCertificateSignature = DeviceCertificateSignature;
5523
5791
  type messages_DeviceCertificateSign = DeviceCertificateSign;
5792
+ type messages_DeviceMiscUsbMscControl = DeviceMiscUsbMscControl;
5793
+ type messages_DeviceFactoryAck = DeviceFactoryAck;
5794
+ declare const messages_DeviceFactoryAck: typeof DeviceFactoryAck;
5795
+ type messages_DeviceFactoryInfoManufactureTime = DeviceFactoryInfoManufactureTime;
5796
+ type messages_DeviceFactoryInfo = DeviceFactoryInfo;
5797
+ type messages_DeviceFactoryInfoSet = DeviceFactoryInfoSet;
5798
+ type messages_DeviceFactoryInfoGet = DeviceFactoryInfoGet;
5799
+ type messages_DeviceFactoryPermanentLock = DeviceFactoryPermanentLock;
5800
+ type messages_DeviceFactoryTest = DeviceFactoryTest;
5524
5801
  type messages_DeviceFirmwareTargetType = DeviceFirmwareTargetType;
5525
5802
  declare const messages_DeviceFirmwareTargetType: typeof DeviceFirmwareTargetType;
5526
5803
  type messages_DeviceFirmwareUpdateTaskStatus = DeviceFirmwareUpdateTaskStatus;
5527
5804
  declare const messages_DeviceFirmwareUpdateTaskStatus: typeof DeviceFirmwareUpdateTaskStatus;
5528
5805
  type messages_DeviceFirmwareTarget = DeviceFirmwareTarget;
5806
+ type messages_DeviceFirmwareUpdateStage = DeviceFirmwareUpdateStage;
5529
5807
  type messages_DeviceFirmwareUpdateRequest = DeviceFirmwareUpdateRequest;
5530
5808
  type messages_DeviceFirmwareUpdateRecord = DeviceFirmwareUpdateRecord;
5531
5809
  type messages_DeviceFirmwareUpdateRecordFields = DeviceFirmwareUpdateRecordFields;
5532
5810
  type messages_DeviceFirmwareUpdateStatusGet = DeviceFirmwareUpdateStatusGet;
5533
5811
  type messages_DeviceFirmwareUpdateStatus = DeviceFirmwareUpdateStatus;
5534
- type messages_DeviceFactoryAck = DeviceFactoryAck;
5535
- declare const messages_DeviceFactoryAck: typeof DeviceFactoryAck;
5536
- type messages_DeviceFactoryInfoManufactureTime = DeviceFactoryInfoManufactureTime;
5537
- type messages_DeviceFactoryInfo = DeviceFactoryInfo;
5538
- type messages_DeviceFactoryInfoSet = DeviceFactoryInfoSet;
5539
- type messages_DeviceFactoryInfoGet = DeviceFactoryInfoGet;
5540
- type messages_DeviceFactoryPermanentLock = DeviceFactoryPermanentLock;
5541
- type messages_DeviceFactoryTest = DeviceFactoryTest;
5542
5812
  type messages_DeviceType = DeviceType;
5543
5813
  declare const messages_DeviceType: typeof DeviceType;
5544
5814
  type messages_DeviceSeType = DeviceSeType;
@@ -5554,29 +5824,20 @@ type messages_DeviceInfoTargets = DeviceInfoTargets;
5554
5824
  type messages_DeviceInfoTypes = DeviceInfoTypes;
5555
5825
  type messages_DeviceInfoGet = DeviceInfoGet;
5556
5826
  type messages_ProtocolV2DeviceInfo = ProtocolV2DeviceInfo;
5557
- type messages_DeviceSessionResume = DeviceSessionResume;
5558
- type messages_DeviceHostPassphrase = DeviceHostPassphrase;
5559
- type messages_DevicePassphraseOnDevice = DevicePassphraseOnDevice;
5560
- type messages_DeviceAttachPinOnDevice = DeviceAttachPinOnDevice;
5561
- type messages_DeviceWalletSelect = DeviceWalletSelect;
5562
- type messages_DeviceSessionOpen = DeviceSessionOpen;
5827
+ type messages_DeviceSessionErrorCode = DeviceSessionErrorCode;
5828
+ declare const messages_DeviceSessionErrorCode: typeof DeviceSessionErrorCode;
5829
+ type messages_DeviceSessionSeedDomain = DeviceSessionSeedDomain;
5830
+ declare const messages_DeviceSessionSeedDomain: typeof DeviceSessionSeedDomain;
5831
+ type messages_DeviceSessionGet = DeviceSessionGet;
5563
5832
  type messages_DeviceSession = DeviceSession;
5833
+ type messages_DeviceSessionPinType = DeviceSessionPinType;
5834
+ declare const messages_DeviceSessionPinType: typeof DeviceSessionPinType;
5564
5835
  type messages_DeviceSessionAskPin = DeviceSessionAskPin;
5836
+ type messages_DeviceSessionAskPassphrase = DeviceSessionAskPassphrase;
5565
5837
  type messages_DeviceSessionAskPin_FailureSubCodes = DeviceSessionAskPin_FailureSubCodes;
5566
5838
  declare const messages_DeviceSessionAskPin_FailureSubCodes: typeof DeviceSessionAskPin_FailureSubCodes;
5567
5839
  type messages_DeviceStatus = DeviceStatus;
5568
5840
  type messages_DeviceStatusGet = DeviceStatusGet;
5569
- type messages_DevOnboardingStep = DevOnboardingStep;
5570
- declare const messages_DevOnboardingStep: typeof DevOnboardingStep;
5571
- type messages_DevOnboardingPhase = DevOnboardingPhase;
5572
- declare const messages_DevOnboardingPhase: typeof DevOnboardingPhase;
5573
- type messages_DevOnboardingSetupKind = DevOnboardingSetupKind;
5574
- declare const messages_DevOnboardingSetupKind: typeof DevOnboardingSetupKind;
5575
- type messages_DevOnboardingSetupMethod = DevOnboardingSetupMethod;
5576
- declare const messages_DevOnboardingSetupMethod: typeof DevOnboardingSetupMethod;
5577
- type messages_DevOnboardingSetupStatus = DevOnboardingSetupStatus;
5578
- type messages_DevGetOnboardingStatus = DevGetOnboardingStatus;
5579
- type messages_DevOnboardingStatus = DevOnboardingStatus;
5580
5841
  type messages_FilesystemPermissionFix = FilesystemPermissionFix;
5581
5842
  type messages_FilesystemPathInfo = FilesystemPathInfo;
5582
5843
  type messages_FilesystemPathInfoQuery = FilesystemPathInfoQuery;
@@ -5589,7 +5850,30 @@ type messages_FilesystemDirList = FilesystemDirList;
5589
5850
  type messages_FilesystemDirMake = FilesystemDirMake;
5590
5851
  type messages_FilesystemDirRemove = FilesystemDirRemove;
5591
5852
  type messages_FilesystemFormat = FilesystemFormat;
5853
+ type messages_InternalMyAddressRequest = InternalMyAddressRequest;
5854
+ type messages_NftUpdate = NftUpdate;
5855
+ type messages_OnboardingStep = OnboardingStep;
5856
+ declare const messages_OnboardingStep: typeof OnboardingStep;
5857
+ type messages_OnboardingPhase = OnboardingPhase;
5858
+ declare const messages_OnboardingPhase: typeof OnboardingPhase;
5859
+ type messages_OnboardingSetupKind = OnboardingSetupKind;
5860
+ declare const messages_OnboardingSetupKind: typeof OnboardingSetupKind;
5861
+ type messages_OnboardingSetupMethod = OnboardingSetupMethod;
5862
+ declare const messages_OnboardingSetupMethod: typeof OnboardingSetupMethod;
5863
+ type messages_OnboardingSetupStatus = OnboardingSetupStatus;
5864
+ type messages_OnboardingStatusGet = OnboardingStatusGet;
5865
+ type messages_OnboardingStatus = OnboardingStatus;
5592
5866
  type messages_PortfolioUpdate = PortfolioUpdate;
5867
+ type messages_ViewAmount = ViewAmount;
5868
+ type messages_ViewDetail = ViewDetail;
5869
+ type messages_ViewTipType = ViewTipType;
5870
+ declare const messages_ViewTipType: typeof ViewTipType;
5871
+ type messages_ViewTip = ViewTip;
5872
+ type messages_ViewRawData = ViewRawData;
5873
+ type messages_ViewSignLayout = ViewSignLayout;
5874
+ declare const messages_ViewSignLayout: typeof ViewSignLayout;
5875
+ type messages_ViewSignPage = ViewSignPage;
5876
+ type messages_ViewVerifyPage = ViewVerifyPage;
5593
5877
  type messages_ProtocolV2FailureType = ProtocolV2FailureType;
5594
5878
  declare const messages_ProtocolV2FailureType: typeof ProtocolV2FailureType;
5595
5879
  type messages_Enum_ProtocolV2Capability = Enum_ProtocolV2Capability;
@@ -5915,6 +6199,21 @@ declare namespace messages {
5915
6199
  messages_KaspaSignTx as KaspaSignTx,
5916
6200
  messages_KaspaTxInputRequest as KaspaTxInputRequest,
5917
6201
  messages_KaspaTxInputAck as KaspaTxInputAck,
6202
+ messages_KaspaOutpoint as KaspaOutpoint,
6203
+ messages_Enum_KaspaInputScriptType as Enum_KaspaInputScriptType,
6204
+ messages_KaspaInputScriptType as KaspaInputScriptType,
6205
+ messages_Enum_KaspaOutputScriptType as Enum_KaspaOutputScriptType,
6206
+ messages_KaspaOutputScriptType as KaspaOutputScriptType,
6207
+ messages_Enum_KaspaRequestType as Enum_KaspaRequestType,
6208
+ messages_KaspaRequestType as KaspaRequestType,
6209
+ messages_KaspaTxRequestSignature as KaspaTxRequestSignature,
6210
+ messages_KaspaTxRequest as KaspaTxRequest,
6211
+ messages_KaspaTxAckInput as KaspaTxAckInput,
6212
+ messages_KaspaTxAckOutput as KaspaTxAckOutput,
6213
+ messages_KaspaTxAckPayloadChunk as KaspaTxAckPayloadChunk,
6214
+ messages_KaspaTxAckPrevMeta as KaspaTxAckPrevMeta,
6215
+ messages_KaspaTxAckPrevInput as KaspaTxAckPrevInput,
6216
+ messages_KaspaTxAckPrevOutput as KaspaTxAckPrevOutput,
5918
6217
  messages_KaspaSignedTx as KaspaSignedTx,
5919
6218
  messages_LnurlAuth as LnurlAuth,
5920
6219
  messages_LnurlAuthResp as LnurlAuthResp,
@@ -6240,29 +6539,18 @@ declare namespace messages {
6240
6539
  messages_PaymentRequestMemo as PaymentRequestMemo,
6241
6540
  messages_TxAckPaymentRequest as TxAckPaymentRequest,
6242
6541
  messages_EthereumSignTypedDataQR as EthereumSignTypedDataQR,
6243
- messages_InternalMyAddressRequest as InternalMyAddressRequest,
6244
- messages_StartSession as StartSession,
6245
6542
  messages_SetBusy as SetBusy,
6246
6543
  messages_GetFirmwareHash as GetFirmwareHash,
6247
6544
  messages_FirmwareHash as FirmwareHash,
6248
6545
  messages_GetNonce as GetNonce,
6249
6546
  messages_Nonce as Nonce,
6250
6547
  messages_WriteSEPrivateKey as WriteSEPrivateKey,
6251
- messages_WallpaperTarget as WallpaperTarget,
6252
- messages_SetWallpaper as SetWallpaper,
6253
- messages_GetWallpaper as GetWallpaper,
6254
- messages_Wallpaper as Wallpaper,
6255
6548
  messages_UnlockPath as UnlockPath,
6256
6549
  messages_UnlockedPathRequest as UnlockedPathRequest,
6257
6550
  messages_MoneroNetworkType as MoneroNetworkType,
6258
- messages_ViewAmount as ViewAmount,
6259
- messages_ViewDetail as ViewDetail,
6260
- messages_ViewTipType as ViewTipType,
6261
- messages_ViewTip as ViewTip,
6262
- messages_ViewRawData as ViewRawData,
6263
- messages_ViewSignLayout as ViewSignLayout,
6264
- messages_ViewSignPage as ViewSignPage,
6265
- messages_ViewVerifyPage as ViewVerifyPage,
6551
+ messages_UiAnimationType as UiAnimationType,
6552
+ messages_UiAnimationCommand as UiAnimationCommand,
6553
+ messages_UiAnimationRequest as UiAnimationRequest,
6266
6554
  messages_ProtocolInfoRequest as ProtocolInfoRequest,
6267
6555
  messages_ProtocolInfo as ProtocolInfo,
6268
6556
  messages_DeviceErrorCode as DeviceErrorCode,
@@ -6278,21 +6566,23 @@ declare namespace messages {
6278
6566
  messages_DeviceCertificateRead as DeviceCertificateRead,
6279
6567
  messages_DeviceCertificateSignature as DeviceCertificateSignature,
6280
6568
  messages_DeviceCertificateSign as DeviceCertificateSign,
6569
+ messages_DeviceMiscUsbMscControl as DeviceMiscUsbMscControl,
6570
+ messages_DeviceFactoryAck as DeviceFactoryAck,
6571
+ messages_DeviceFactoryInfoManufactureTime as DeviceFactoryInfoManufactureTime,
6572
+ messages_DeviceFactoryInfo as DeviceFactoryInfo,
6573
+ messages_DeviceFactoryInfoSet as DeviceFactoryInfoSet,
6574
+ messages_DeviceFactoryInfoGet as DeviceFactoryInfoGet,
6575
+ messages_DeviceFactoryPermanentLock as DeviceFactoryPermanentLock,
6576
+ messages_DeviceFactoryTest as DeviceFactoryTest,
6281
6577
  messages_DeviceFirmwareTargetType as DeviceFirmwareTargetType,
6282
6578
  messages_DeviceFirmwareUpdateTaskStatus as DeviceFirmwareUpdateTaskStatus,
6283
6579
  messages_DeviceFirmwareTarget as DeviceFirmwareTarget,
6580
+ messages_DeviceFirmwareUpdateStage as DeviceFirmwareUpdateStage,
6284
6581
  messages_DeviceFirmwareUpdateRequest as DeviceFirmwareUpdateRequest,
6285
6582
  messages_DeviceFirmwareUpdateRecord as DeviceFirmwareUpdateRecord,
6286
6583
  messages_DeviceFirmwareUpdateRecordFields as DeviceFirmwareUpdateRecordFields,
6287
6584
  messages_DeviceFirmwareUpdateStatusGet as DeviceFirmwareUpdateStatusGet,
6288
6585
  messages_DeviceFirmwareUpdateStatus as DeviceFirmwareUpdateStatus,
6289
- messages_DeviceFactoryAck as DeviceFactoryAck,
6290
- messages_DeviceFactoryInfoManufactureTime as DeviceFactoryInfoManufactureTime,
6291
- messages_DeviceFactoryInfo as DeviceFactoryInfo,
6292
- messages_DeviceFactoryInfoSet as DeviceFactoryInfoSet,
6293
- messages_DeviceFactoryInfoGet as DeviceFactoryInfoGet,
6294
- messages_DeviceFactoryPermanentLock as DeviceFactoryPermanentLock,
6295
- messages_DeviceFactoryTest as DeviceFactoryTest,
6296
6586
  messages_DeviceType as DeviceType,
6297
6587
  messages_DeviceSeType as DeviceSeType,
6298
6588
  messages_DeviceSEState as DeviceSEState,
@@ -6305,24 +6595,16 @@ declare namespace messages {
6305
6595
  messages_DeviceInfoTypes as DeviceInfoTypes,
6306
6596
  messages_DeviceInfoGet as DeviceInfoGet,
6307
6597
  messages_ProtocolV2DeviceInfo as ProtocolV2DeviceInfo,
6308
- messages_DeviceSessionResume as DeviceSessionResume,
6309
- messages_DeviceHostPassphrase as DeviceHostPassphrase,
6310
- messages_DevicePassphraseOnDevice as DevicePassphraseOnDevice,
6311
- messages_DeviceAttachPinOnDevice as DeviceAttachPinOnDevice,
6312
- messages_DeviceWalletSelect as DeviceWalletSelect,
6313
- messages_DeviceSessionOpen as DeviceSessionOpen,
6598
+ messages_DeviceSessionErrorCode as DeviceSessionErrorCode,
6599
+ messages_DeviceSessionSeedDomain as DeviceSessionSeedDomain,
6600
+ messages_DeviceSessionGet as DeviceSessionGet,
6314
6601
  messages_DeviceSession as DeviceSession,
6602
+ messages_DeviceSessionPinType as DeviceSessionPinType,
6315
6603
  messages_DeviceSessionAskPin as DeviceSessionAskPin,
6604
+ messages_DeviceSessionAskPassphrase as DeviceSessionAskPassphrase,
6316
6605
  messages_DeviceSessionAskPin_FailureSubCodes as DeviceSessionAskPin_FailureSubCodes,
6317
6606
  messages_DeviceStatus as DeviceStatus,
6318
6607
  messages_DeviceStatusGet as DeviceStatusGet,
6319
- messages_DevOnboardingStep as DevOnboardingStep,
6320
- messages_DevOnboardingPhase as DevOnboardingPhase,
6321
- messages_DevOnboardingSetupKind as DevOnboardingSetupKind,
6322
- messages_DevOnboardingSetupMethod as DevOnboardingSetupMethod,
6323
- messages_DevOnboardingSetupStatus as DevOnboardingSetupStatus,
6324
- messages_DevGetOnboardingStatus as DevGetOnboardingStatus,
6325
- messages_DevOnboardingStatus as DevOnboardingStatus,
6326
6608
  messages_FilesystemPermissionFix as FilesystemPermissionFix,
6327
6609
  messages_FilesystemPathInfo as FilesystemPathInfo,
6328
6610
  messages_FilesystemPathInfoQuery as FilesystemPathInfoQuery,
@@ -6335,7 +6617,24 @@ declare namespace messages {
6335
6617
  messages_FilesystemDirMake as FilesystemDirMake,
6336
6618
  messages_FilesystemDirRemove as FilesystemDirRemove,
6337
6619
  messages_FilesystemFormat as FilesystemFormat,
6620
+ messages_InternalMyAddressRequest as InternalMyAddressRequest,
6621
+ messages_NftUpdate as NftUpdate,
6622
+ messages_OnboardingStep as OnboardingStep,
6623
+ messages_OnboardingPhase as OnboardingPhase,
6624
+ messages_OnboardingSetupKind as OnboardingSetupKind,
6625
+ messages_OnboardingSetupMethod as OnboardingSetupMethod,
6626
+ messages_OnboardingSetupStatus as OnboardingSetupStatus,
6627
+ messages_OnboardingStatusGet as OnboardingStatusGet,
6628
+ messages_OnboardingStatus as OnboardingStatus,
6338
6629
  messages_PortfolioUpdate as PortfolioUpdate,
6630
+ messages_ViewAmount as ViewAmount,
6631
+ messages_ViewDetail as ViewDetail,
6632
+ messages_ViewTipType as ViewTipType,
6633
+ messages_ViewTip as ViewTip,
6634
+ messages_ViewRawData as ViewRawData,
6635
+ messages_ViewSignLayout as ViewSignLayout,
6636
+ messages_ViewSignPage as ViewSignPage,
6637
+ messages_ViewVerifyPage as ViewVerifyPage,
6339
6638
  messages_ProtocolV2FailureType as ProtocolV2FailureType,
6340
6639
  messages_Enum_ProtocolV2Capability as Enum_ProtocolV2Capability,
6341
6640
  messages_ProtocolV2Capability as ProtocolV2Capability,
@@ -6359,8 +6658,10 @@ type ProtocolV2Schemas = {
6359
6658
  type ProtocolV2CallContext = {
6360
6659
  messageName: string;
6361
6660
  timeoutMs?: number;
6362
- highVolume: boolean;
6661
+ highThroughput: boolean;
6662
+ writeWithResponse?: boolean;
6363
6663
  generation: number;
6664
+ signal: AbortSignal;
6364
6665
  };
6365
6666
  type ProtocolLogger = {
6366
6667
  debug?: (...args: any[]) => void;
@@ -6385,19 +6686,26 @@ type ProtocolV2CallOptions = {
6385
6686
  expectedTypes?: string[];
6386
6687
  intermediateTypes?: string[];
6387
6688
  onIntermediateResponse?: (response: MessageFromOneKey) => void;
6689
+ onWriteCompleted?: (metrics: TransportWriteMetrics) => void;
6690
+ returnAfterWrite?: boolean;
6691
+ writeWithResponse?: boolean;
6388
6692
  };
6389
6693
 
6390
6694
  declare function hexToBytes(hex: string): Uint8Array;
6391
6695
  declare function bytesToHex(bytes: Uint8Array): string;
6696
+ declare function isProtocolV2HighThroughputCall(name: string): boolean;
6392
6697
  declare function getErrorMessage(error: unknown): string;
6393
- declare function withProtocolTimeout<T>(promise: Promise<T>, timeoutMs: number | undefined, createTimeoutError: () => Error, onTimeout?: () => void): Promise<T>;
6394
- declare const PROTOCOL_V2_WRITE_WATCHDOG_TIMEOUT_MS = 0;
6698
+ declare function withProtocolTimeout<T>(promise: Promise<T>, timeoutMs: number | undefined, createTimeoutError: () => Error, onTimeout?: () => void, abortSignal?: AbortSignal): Promise<T>;
6395
6699
  declare class ProtocolV2Session {
6396
6700
  private readonly options;
6397
6701
  private readonly sequenceCursor;
6398
6702
  private pendingCall;
6703
+ private pendingWrite;
6704
+ private lastResponseSequence?;
6399
6705
  constructor(options: ProtocolV2SessionOptions);
6400
6706
  call(name: string, data: Record<string, unknown>, callOptions?: ProtocolV2CallOptions): Promise<MessageFromOneKey>;
6707
+ sendFlowControl(name: string, data: Record<string, unknown>): Promise<MessageFromOneKey>;
6708
+ private serializeWrite;
6401
6709
  private executeCall;
6402
6710
  }
6403
6711
  declare function probeProtocolV2({ call, timeoutMs, logger, logPrefix, onBeforeProbe, onProbeFailed, }: {
@@ -6431,15 +6739,20 @@ declare class ProtocolV2LinkManager<Key> {
6431
6739
  private readonly links;
6432
6740
  private readonly sequences;
6433
6741
  private readonly callQueues;
6742
+ private readonly generations;
6743
+ private readonly invalidationReasons;
6744
+ private readonly invalidations;
6434
6745
  private readonly options;
6435
6746
  constructor(options: ProtocolV2LinkManagerOptions<Key>);
6436
6747
  call(key: Key, createAdapter: () => ProtocolV2LinkAdapter, name: string, data: Record<string, unknown>, options?: TransportCallOptions): Promise<MessageFromOneKey>;
6748
+ sendFlowControl(key: Key, createAdapter: () => ProtocolV2LinkAdapter, name: string, data: Record<string, unknown>): Promise<MessageFromOneKey>;
6437
6749
  invalidateLink(key: Key, reason: string): Promise<void>;
6438
6750
  invalidateAllLinks(reason: string): Promise<void>;
6439
6751
  dispose(reason: string): Promise<void>;
6440
6752
  private getOrCreateLink;
6441
6753
  private executeCall;
6442
6754
  private clearSettledCallQueue;
6755
+ private assertCallGeneration;
6443
6756
  }
6444
6757
 
6445
6758
  type ProtocolV2UsbTransportBaseOptions = {
@@ -6463,12 +6776,14 @@ declare abstract class ProtocolV2UsbTransportBase<Key> {
6463
6776
  protected onProtocolV2UsbLinkInvalidated(_key: Key, _reason: string): Promise<void> | void;
6464
6777
  protected rotateProtocolV2UsbGeneration(key: Key, reason: string): Promise<number>;
6465
6778
  protected callProtocolV2Usb(key: Key, name: string, data: Record<string, unknown>, options?: TransportCallOptions): Promise<MessageFromOneKey>;
6779
+ protected sendProtocolV2UsbFlowControl(key: Key, name: string, data: Record<string, unknown>): Promise<MessageFromOneKey>;
6466
6780
  protected invalidateProtocolV2UsbLink(key: Key, reason: string): Promise<void>;
6467
6781
  protected invalidateAllProtocolV2UsbLinks(reason: string): Promise<void>;
6468
6782
  protected disposeProtocolV2UsbLinks(reason: string): Promise<void>;
6469
6783
  private createProtocolV2UsbAdapter;
6470
6784
  private getProtocolV2UsbAssembler;
6471
6785
  private createProtocolV2UsbCancellation;
6786
+ private createProtocolV2UsbIoError;
6472
6787
  }
6473
6788
 
6474
6789
  declare function info(res: any): {
@@ -6497,22 +6812,59 @@ declare namespace check {
6497
6812
 
6498
6813
  declare const LogBlockCommand: Set<string>;
6499
6814
 
6815
+ declare function getSafeTransportLogPayload(value: unknown, messageName?: string): unknown;
6816
+ declare function createTransportCallLog(name: string, protocol: ProtocolType, data: Record<string, unknown>): {
6817
+ name: string;
6818
+ protocol: ProtocolType;
6819
+ request: unknown;
6820
+ };
6821
+ declare function shouldSuppressHighVolumeCallLog(name: string): boolean;
6822
+
6823
+ /** Protocol V1 USB report marker, ASCII `?`. */
6500
6824
  declare const PROTOCOL_V1_REPORT_ID = 63;
6825
+ /** Protocol V1 envelope marker, ASCII `#`. */
6501
6826
  declare const PROTOCOL_V1_HEADER_BYTE = 35;
6827
+ /** Protocol V1 payload bytes per chunk after the report marker. */
6502
6828
  declare const PROTOCOL_V1_CHUNK_PAYLOAD_SIZE = 63;
6829
+ /** Protocol V1 USB packet length: report marker plus chunk payload. */
6503
6830
  declare const PROTOCOL_V1_USB_PACKET_SIZE: number;
6831
+ /** Protocol V1 message metadata: two-byte type plus four-byte payload length. */
6504
6832
  declare const PROTOCOL_V1_MESSAGE_HEADER_SIZE: number;
6833
+ /** Protocol V1 envelope metadata: `##`, message type, and payload length. */
6505
6834
  declare const PROTOCOL_V1_ENVELOPE_HEADER_SIZE: number;
6506
- declare const PROTOCOL_V2_FRAME_MAX_BYTES = 4608;
6835
+ /** Firmware Proto Link runtime limit for a complete V2 frame, including header and CRC. */
6836
+ declare const PROTOCOL_V2_FRAME_MAX_BYTES = 4200;
6837
+ /** FilesystemFileWrite chunk size over WebUSB. */
6507
6838
  declare const PROTOCOL_V2_WEBUSB_FILE_CHUNK_SIZE = 4000;
6839
+ /** FilesystemFileWrite chunk size over BLE. */
6508
6840
  declare const PROTOCOL_V2_BLE_FILE_CHUNK_SIZE = 1800;
6841
+ /**
6842
+ * FirmwareUpdateV4 chunk size for its fixed BLE staging paths.
6843
+ * The longest current path still leaves 28 bytes below the 2048-byte BLE frame limit.
6844
+ */
6845
+ declare const PROTOCOL_V2_BLE_FIRMWARE_FILE_CHUNK_SIZE = 1960;
6846
+ /** BLE FilesystemFileRead chunk size, limited by the Pro2 1024-byte UART TX buffer. */
6509
6847
  declare const PROTOCOL_V2_BLE_FILE_READ_CHUNK_SIZE = 900;
6848
+ /** Pro2 BLE/UART RX FIFO must hold a complete Proto Link frame. */
6510
6849
  declare const PROTOCOL_V2_BLE_FRAME_MAX_BYTES = 2048;
6850
+ /** @deprecated Use the transport-specific WebUSB or BLE file chunk constant. */
6511
6851
  declare const PROTOCOL_V2_FILE_CHUNK_SIZE = 4000;
6852
+ /**
6853
+ * Protocol V2 routing channel. USB reaches the main MCU directly, while BLE routes
6854
+ * through the BLE coprocessor UART bridge.
6855
+ */
6512
6856
  declare const PROTOCOL_V2_CHANNEL_USB = 0;
6513
6857
  declare const PROTOCOL_V2_CHANNEL_BLE_UART = 1;
6514
6858
  declare const PROTOCOL_V2_CHANNEL_SOCKET = 2;
6859
+ /** packet_src for protobuf commands; firmware routes zero to the protobuf dispatcher. */
6515
6860
  declare const PROTOCOL_V2_PACKET_SRC_COMMAND = 0;
6861
+ /**
6862
+ * Shared upper bound for a Protocol V2 request without a method-specific timeout.
6863
+ * Interactive and signing calls may wait on the device UI, so keep this longer than
6864
+ * ordinary transport timeouts while still preventing a stalled link from blocking
6865
+ * the per-device queue forever.
6866
+ */
6867
+ declare const PROTOCOL_V2_DEFAULT_RESPONSE_TIMEOUT_MS: number;
6516
6868
 
6517
6869
  declare const _default: {
6518
6870
  check: typeof check;
@@ -6531,6 +6883,7 @@ declare const _default: {
6531
6883
  };
6532
6884
  ProtocolV2: {
6533
6885
  isAckFrame: typeof isAckFrame;
6886
+ inspectFrameHeader: typeof inspectFrameHeader;
6534
6887
  inspectFrame(schemas: {
6535
6888
  protocolV1: protobuf.Root;
6536
6889
  protocolV2: protobuf.Root;
@@ -6539,6 +6892,9 @@ declare const _default: {
6539
6892
  messageTypeId: number;
6540
6893
  pbPayload: Uint8Array;
6541
6894
  seq: number;
6895
+ router: number;
6896
+ packetSrc: number;
6897
+ dataType: number;
6542
6898
  type: string;
6543
6899
  };
6544
6900
  encodeFrame(schemas: {
@@ -6553,6 +6909,18 @@ declare const _default: {
6553
6909
  protocolV1: protobuf.Root;
6554
6910
  protocolV2: protobuf.Root;
6555
6911
  }, frame: Uint8Array): {
6912
+ message: {
6913
+ version: any;
6914
+ build_fingerprint: string;
6915
+ supported_messages: any;
6916
+ protobuf_definition: null;
6917
+ };
6918
+ messageName: string;
6919
+ messageTypeId: number;
6920
+ pbPayload: Uint8Array;
6921
+ seq: number;
6922
+ type: string;
6923
+ } | {
6556
6924
  message: {
6557
6925
  [key: string]: any;
6558
6926
  };
@@ -6589,4 +6957,4 @@ declare const _default: {
6589
6957
  withProtocolTimeout: typeof withProtocolTimeout;
6590
6958
  };
6591
6959
 
6592
- 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_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, KaspaSignTx, KaspaSignedTx, KaspaTxInputAck, KaspaTxInputRequest, ListResDir, LnurlAuth, LnurlAuthResp, LockDevice, LogBlockCommand, LowLevelDevice, LowlevelTransportSharedPlugin, MessageFromOneKey, MessageKey, MessageResponse, MessageResponseMap, MessageSignature, MessageType, messages as Messages, MoneroAccountPublicAddress, MoneroAddress, MoneroExportedKeyImage, MoneroGetAddress, MoneroGetTxKeyAck, MoneroGetTxKeyRequest, MoneroGetWatchKey, MoneroKeyImageExportInitAck, MoneroKeyImageExportInitRequest, MoneroKeyImageSyncFinalAck, MoneroKeyImageSyncFinalRequest, MoneroKeyImageSyncStepAck, MoneroKeyImageSyncStepRequest, MoneroLiveRefreshFinalAck, MoneroLiveRefreshFinalRequest, MoneroLiveRefreshStartAck, MoneroLiveRefreshStartRequest, MoneroLiveRefreshStepAck, MoneroLiveRefreshStepRequest, MoneroMultisigKLRki, MoneroNetworkType, MoneroOutputEntry, MoneroRctKeyPublic, MoneroRingCtSig, MoneroSubAddressIndicesList, MoneroTransactionAllInputsSetAck, MoneroTransactionAllInputsSetRequest, MoneroTransactionAllOutSetAck, MoneroTransactionAllOutSetRequest, MoneroTransactionData, MoneroTransactionDestinationEntry, MoneroTransactionFinalAck, MoneroTransactionFinalRequest, MoneroTransactionInitAck, MoneroTransactionInitRequest, MoneroTransactionInputViniAck, MoneroTransactionInputViniRequest, MoneroTransactionInputsPermutationAck, MoneroTransactionInputsPermutationRequest, MoneroTransactionRsigData, MoneroTransactionSetInputAck, MoneroTransactionSetInputRequest, MoneroTransactionSetOutputAck, MoneroTransactionSetOutputRequest, MoneroTransactionSignInputAck, MoneroTransactionSignInputRequest, MoneroTransactionSourceEntry, MoneroTransferDetails, MoneroWatchKey, MultisigRedeemScriptType, NEMAddress, NEMAggregateModification, NEMCosignatoryModification, NEMDecryptMessage, NEMDecryptedMessage, NEMGetAddress, NEMImportanceTransfer, NEMImportanceTransferMode, NEMModificationType, NEMMosaic, NEMMosaicCreation, NEMMosaicDefinition, NEMMosaicLevy, NEMMosaicSupplyChange, NEMProvisionNamespace, NEMSignTx, NEMSignedTx, NEMSupplyChangeType, NEMTransactionCommon, NEMTransfer, NFTWriteData, NFTWriteInfo, NearAddress, NearGetAddress, NearSignTx, NearSignedTx, NeoAddress, NeoGetAddress, NeoSignTx, NeoSignedTx, NervosAddress, NervosGetAddress, NervosSignTx, NervosSignedTx, NervosTxAck, NervosTxRequest, NexaAddress, NexaGetAddress, NexaSignTx, NexaSignedTx, NexaTxInputAck, NexaTxInputRequest, NextU2FCounter, Nonce, NostrDecryptMessage, NostrDecryptedMessage, NostrEncryptMessage, NostrEncryptedMessage, NostrGetPublicKey, NostrPublicKey, NostrSignEvent, NostrSignSchnorr, NostrSignedEvent, NostrSignedSchnorr, OneKeyDeviceCommType, OneKeyDeviceInfo, OneKeyDeviceInfoBase, OneKeyDeviceInfoWithSession, OneKeyDeviceType, OneKeyMobileDeviceInfo, OneKeySEState, OneKeySeType, OnekeyFeatures, OnekeyGetFeatures, OutputScriptType, OwnershipId, OwnershipProof, PROTOCOL_V1_CHUNK_PAYLOAD_SIZE, PROTOCOL_V1_ENVELOPE_HEADER_SIZE, PROTOCOL_V1_HEADER_BYTE, PROTOCOL_V1_MESSAGE_HEADER_SIZE, PROTOCOL_V1_REPORT_ID, PROTOCOL_V1_USB_PACKET_SIZE, PROTOCOL_V2_BLE_FILE_CHUNK_SIZE, PROTOCOL_V2_BLE_FILE_READ_CHUNK_SIZE, PROTOCOL_V2_BLE_FRAME_MAX_BYTES, PROTOCOL_V2_CHANNEL_BLE_UART, PROTOCOL_V2_CHANNEL_SOCKET, PROTOCOL_V2_CHANNEL_USB, PROTOCOL_V2_FILE_CHUNK_SIZE, PROTOCOL_V2_FRAME_MAX_BYTES, PROTOCOL_V2_PACKET_SRC_COMMAND, PROTOCOL_V2_SYS_MESSAGE_THRESHOLD, PROTOCOL_V2_WEBUSB_FILE_CHUNK_SIZE, PROTOCOL_V2_WRITE_WATCHDOG_TIMEOUT_MS, PassphraseAck, PassphraseRequest, PassphraseState, Path, PaymentRequestMemo, PinMatrixAck, PinMatrixRequest, PinMatrixRequestType, Ping, PolkadotAddress, PolkadotGetAddress, PolkadotSignTx, PolkadotSignedTx, PortfolioUpdate, PreauthorizedRequest, PrevInput, PrevOutput, PrevTx, ProtocolInfo, ProtocolInfoRequest, ProtocolType, ProtocolV1, ProtocolV2, ProtocolV2CallContext, ProtocolV2CallOptions, 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 };
6960
+ 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 };