@onekeyfe/hd-transport 1.2.0-alpha.12 → 1.2.0-alpha.121

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 (59) hide show
  1. package/__tests__/messages.test.js +165 -13
  2. package/__tests__/protocol-v2-ble-frame-writer.test.js +119 -0
  3. package/__tests__/protocol-v2-link-manager.test.js +120 -9
  4. package/__tests__/protocol-v2-usb-transport-base.test.js +36 -2
  5. package/__tests__/protocol-v2.test.js +566 -69
  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 +696 -221
  10. package/dist/index.d.ts.map +1 -1
  11. package/dist/index.js +662 -130
  12. package/dist/protocols/index.d.ts +24 -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 +8 -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 +4 -0
  24. package/dist/protocols/v2/link-manager.d.ts.map +1 -1
  25. package/dist/protocols/v2/session.d.ts +11 -4
  26. package/dist/protocols/v2/session.d.ts.map +1 -1
  27. package/dist/protocols/v2/usb-transport-base.d.ts +1 -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 +345 -158
  32. package/dist/types/messages.d.ts.map +1 -1
  33. package/dist/types/transport.d.ts +21 -3
  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 +1057 -577
  38. package/package.json +3 -3
  39. package/scripts/protobuf-build.sh +85 -217
  40. package/scripts/protobuf-patches/index.js +1 -0
  41. package/scripts/protobuf-types.js +19 -1
  42. package/src/constants.ts +30 -16
  43. package/src/index.ts +5 -1
  44. package/src/protocols/index.ts +127 -4
  45. package/src/protocols/v2/ble-frame-writer.ts +77 -0
  46. package/src/protocols/v2/crc8.ts +1 -1
  47. package/src/protocols/v2/decode.ts +49 -12
  48. package/src/protocols/v2/encode.ts +1 -1
  49. package/src/protocols/v2/errors.ts +25 -0
  50. package/src/protocols/v2/frame-assembler.ts +6 -4
  51. package/src/protocols/v2/index.ts +2 -0
  52. package/src/protocols/v2/link-manager.ts +54 -5
  53. package/src/protocols/v2/session.ts +166 -59
  54. package/src/protocols/v2/usb-transport-base.ts +29 -10
  55. package/src/serialization/protobuf/decode.ts +4 -1
  56. package/src/serialization/protobuf/encode.ts +5 -1
  57. package/src/types/messages.ts +421 -201
  58. package/src/types/transport.ts +30 -3
  59. package/src/utils/transportLog.ts +102 -0
package/dist/index.d.ts CHANGED
@@ -63,20 +63,82 @@ 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
+
80
142
  declare function concatUint8Arrays(arrays: Uint8Array[]): Uint8Array;
81
143
  declare class ProtocolV2FrameAssembler {
82
144
  private buffer;
@@ -84,11 +146,31 @@ declare class ProtocolV2FrameAssembler {
84
146
  constructor(maxFrameBytes?: number);
85
147
  reset(): void;
86
148
  push(chunk: Uint8Array): Uint8Array | undefined;
149
+ /**
150
+ * Append a chunk (optional) and extract every complete frame currently
151
+ * buffered. Same validation/throw semantics as push(); push() stays
152
+ * backward compatible for callers that drain one frame at a time.
153
+ */
87
154
  drain(chunk?: Uint8Array): Uint8Array[];
88
155
  private append;
89
156
  private extractFrame;
90
157
  }
91
158
 
159
+ type ProtocolV2BleFrameWriterOptions = {
160
+ frame: Uint8Array;
161
+ packetCapacity: number;
162
+ writePacket: (packet: Uint8Array, packetIndex: number) => Promise<void>;
163
+ assertActive?: () => void;
164
+ signal?: AbortSignal;
165
+ abortMessage?: string;
166
+ initialDelayMs?: number;
167
+ burstSize?: number;
168
+ burstPauseMs?: number;
169
+ flushDelayMs?: number;
170
+ wait?: (timeoutMs: number) => Promise<void>;
171
+ };
172
+ declare function writeProtocolV2BleFrame({ frame, packetCapacity, writePacket, assertActive, signal, abortMessage, initialDelayMs, burstSize, burstPauseMs, flushDelayMs, wait, }: ProtocolV2BleFrameWriterOptions): Promise<void>;
173
+
92
174
  declare const protocolV2Codec_PROTO_HEAD_SOF: typeof PROTO_HEAD_SOF;
93
175
  declare const protocolV2Codec_PROTO_PRE_HEAD_SIZE: typeof PROTO_PRE_HEAD_SIZE;
94
176
  declare const protocolV2Codec_PROTO_HEAD_CRC_SIZE: typeof PROTO_HEAD_CRC_SIZE;
@@ -102,11 +184,19 @@ declare const protocolV2Codec_nextProtoSeq: typeof nextProtoSeq;
102
184
  declare const protocolV2Codec_encodeFrame: typeof encodeFrame;
103
185
  declare const protocolV2Codec_encodeProtobufFrame: typeof encodeProtobufFrame;
104
186
  type protocolV2Codec_ProtoV2Frame = ProtoV2Frame;
187
+ type protocolV2Codec_ProtoV2FrameHeader = ProtoV2FrameHeader;
188
+ declare const protocolV2Codec_inspectFrameHeader: typeof inspectFrameHeader;
105
189
  declare const protocolV2Codec_isAckFrame: typeof isAckFrame;
106
190
  declare const protocolV2Codec_decodeFrame: typeof decodeFrame;
191
+ type protocolV2Codec_ProtocolV2LinkErrorCode = ProtocolV2LinkErrorCode;
192
+ type protocolV2Codec_ProtocolV2LinkError = ProtocolV2LinkError;
193
+ declare const protocolV2Codec_ProtocolV2LinkError: typeof ProtocolV2LinkError;
194
+ declare const protocolV2Codec_isProtocolV2LinkError: typeof isProtocolV2LinkError;
107
195
  declare const protocolV2Codec_concatUint8Arrays: typeof concatUint8Arrays;
108
196
  type protocolV2Codec_ProtocolV2FrameAssembler = ProtocolV2FrameAssembler;
109
197
  declare const protocolV2Codec_ProtocolV2FrameAssembler: typeof ProtocolV2FrameAssembler;
198
+ type protocolV2Codec_ProtocolV2BleFrameWriterOptions = ProtocolV2BleFrameWriterOptions;
199
+ declare const protocolV2Codec_writeProtocolV2BleFrame: typeof writeProtocolV2BleFrame;
110
200
  declare namespace protocolV2Codec {
111
201
  export {
112
202
  protocolV2Codec_PROTO_HEAD_SOF as PROTO_HEAD_SOF,
@@ -122,10 +212,17 @@ declare namespace protocolV2Codec {
122
212
  protocolV2Codec_encodeFrame as encodeFrame,
123
213
  protocolV2Codec_encodeProtobufFrame as encodeProtobufFrame,
124
214
  protocolV2Codec_ProtoV2Frame as ProtoV2Frame,
215
+ protocolV2Codec_ProtoV2FrameHeader as ProtoV2FrameHeader,
216
+ protocolV2Codec_inspectFrameHeader as inspectFrameHeader,
125
217
  protocolV2Codec_isAckFrame as isAckFrame,
126
218
  protocolV2Codec_decodeFrame as decodeFrame,
219
+ protocolV2Codec_ProtocolV2LinkErrorCode as ProtocolV2LinkErrorCode,
220
+ protocolV2Codec_ProtocolV2LinkError as ProtocolV2LinkError,
221
+ protocolV2Codec_isProtocolV2LinkError as isProtocolV2LinkError,
127
222
  protocolV2Codec_concatUint8Arrays as concatUint8Arrays,
128
223
  protocolV2Codec_ProtocolV2FrameAssembler as ProtocolV2FrameAssembler,
224
+ protocolV2Codec_ProtocolV2BleFrameWriterOptions as ProtocolV2BleFrameWriterOptions,
225
+ protocolV2Codec_writeProtocolV2BleFrame as writeProtocolV2BleFrame,
129
226
  };
130
227
  }
131
228
 
@@ -137,6 +234,7 @@ type ProtocolV2Schemas$1 = {
137
234
  type ProtocolV2FrameOptions = {
138
235
  packetSrc?: number;
139
236
  router?: number;
237
+ /** Sequence number (1-255). Managed per-session by ProtocolV2Session. */
140
238
  seq?: number;
141
239
  };
142
240
  declare const ProtocolV1: {
@@ -152,8 +250,31 @@ declare const ProtocolV1: {
152
250
  };
153
251
  declare const ProtocolV2: {
154
252
  isAckFrame: typeof isAckFrame;
253
+ inspectFrameHeader: typeof inspectFrameHeader;
254
+ inspectFrame(schemas: ProtocolV2Schemas$1, frame: Uint8Array): {
255
+ messageName: string;
256
+ messageTypeId: number;
257
+ pbPayload: Uint8Array;
258
+ seq: number;
259
+ router: number;
260
+ packetSrc: number;
261
+ dataType: number;
262
+ type: string;
263
+ };
155
264
  encodeFrame(schemas: ProtocolV2Schemas$1, name: string, data: Record<string, unknown>, options?: ProtocolV2FrameOptions): Uint8Array;
156
265
  decodeFrame(schemas: ProtocolV2Schemas$1, frame: Uint8Array): {
266
+ message: {
267
+ version: any;
268
+ build_fingerprint: string;
269
+ supported_messages: any;
270
+ protobuf_definition: null;
271
+ };
272
+ messageName: string;
273
+ messageTypeId: number;
274
+ pbPayload: Uint8Array;
275
+ seq: number;
276
+ type: string;
277
+ } | {
157
278
  message: {
158
279
  [key: string]: any;
159
280
  };
@@ -165,6 +286,14 @@ declare const ProtocolV2: {
165
286
  };
166
287
  };
167
288
 
289
+ declare const TRANSPORT_EVENT: {
290
+ readonly DEVICE_DISCONNECT: "transport-device-disconnect";
291
+ };
292
+ type TransportDeviceDisconnectEvent = {
293
+ id: string;
294
+ connectId: string;
295
+ name: string | null;
296
+ };
168
297
  type ProtocolType = 'V1' | 'V2';
169
298
  type OneKeyDeviceCommType = 'usb' | 'webusb' | 'ble' | 'webble' | 'electron-ble' | 'bridge' | 'emulator';
170
299
  type OneKeyUsbDeviceInfo = {
@@ -191,23 +320,39 @@ type AcquireInput = {
191
320
  uuid?: string;
192
321
  forceCleanRunPromise?: boolean;
193
322
  expectedProtocol?: ProtocolType;
323
+ protocolHint?: ProtocolType;
194
324
  };
195
325
  type MessageFromOneKey = {
196
326
  type: string;
197
327
  message: Record<string, any>;
198
328
  };
329
+ type TransportWriteMetrics = {
330
+ elapsedMs: number;
331
+ frameBytes: number;
332
+ };
199
333
  type TransportCallOptions = {
200
334
  timeoutMs?: number;
201
335
  expectedTypes?: string[];
202
336
  intermediateTypes?: string[];
203
337
  onIntermediateResponse?: (response: MessageFromOneKey) => void;
338
+ /** Called after the complete request frame has been submitted to the transport. */
339
+ onWriteCompleted?: (metrics: TransportWriteMetrics) => void;
340
+ /** Resolve after the complete request frame is written without waiting for a response. */
341
+ returnAfterWrite?: boolean;
342
+ /** Prefer acknowledged BLE characteristic writes for this call when supported. */
343
+ writeWithResponse?: boolean;
204
344
  };
205
345
  type ITransportInitFn = (logger?: any, emitter?: EventEmitter, plugin?: LowlevelTransportSharedPlugin) => Promise<string>;
206
346
  type Transport = {
207
347
  enumerate(): Promise<Array<OneKeyDeviceInfo>>;
208
348
  listen(old?: Array<OneKeyDeviceInfo>): Promise<Array<OneKeyDeviceInfo>>;
209
349
  acquire(input: AcquireInput): Promise<string>;
210
- release(session: string, onclose: boolean): Promise<void>;
350
+ /**
351
+ * `keepSession` tells a transport that the caller intends to keep using this
352
+ * device across calls (firmware update, batched signing). Transports that
353
+ * hold the link open may use it to pick a longer idle window; the rest ignore it.
354
+ */
355
+ release(session: string, onclose: boolean, keepSession?: boolean): Promise<void>;
211
356
  configure(signedData: JSON | string): Promise<void>;
212
357
  configureProtocolV2?: (signedData: JSON | string) => Promise<void> | void;
213
358
  call(session: string, name: string, data: Record<string, any>, options?: TransportCallOptions): Promise<MessageFromOneKey>;
@@ -218,7 +363,7 @@ type Transport = {
218
363
  getProtocolType: (path: string) => ProtocolType | undefined;
219
364
  promptDeviceAccess?: () => Promise<USBDevice | BluetoothDevice | null>;
220
365
  init: ITransportInitFn;
221
- stop(): void;
366
+ stop(): void | Promise<void>;
222
367
  configured: boolean;
223
368
  version: string;
224
369
  name: string;
@@ -231,7 +376,9 @@ type LowLevelDevice = OneKeyDeviceInfoBase & {
231
376
  };
232
377
  type LowlevelTransportSharedPlugin = {
233
378
  enumerate: () => Promise<LowLevelDevice[]>;
234
- send: (uuid: string, data: string) => Promise<void>;
379
+ send: (uuid: string, data: string, options?: {
380
+ withoutResponse?: boolean;
381
+ }) => Promise<void>;
235
382
  receive: (uuid?: string) => Promise<string>;
236
383
  connect: (uuid: string) => Promise<void>;
237
384
  disconnect: (uuid: string) => Promise<void>;
@@ -1888,11 +2035,17 @@ type KaspaAddress = {
1888
2035
  };
1889
2036
  type KaspaSignTx = {
1890
2037
  address_n: number[];
1891
- raw_message: string;
2038
+ raw_message?: string;
1892
2039
  scheme?: string;
1893
2040
  prefix?: string;
1894
2041
  input_count?: number;
1895
2042
  use_tweak?: boolean;
2043
+ output_count?: number;
2044
+ version?: number;
2045
+ lock_time?: number;
2046
+ subnetwork_id?: string;
2047
+ gas?: number;
2048
+ payload_length?: number;
1896
2049
  };
1897
2050
  type KaspaTxInputRequest = {
1898
2051
  request_index: number;
@@ -1902,6 +2055,77 @@ type KaspaTxInputAck = {
1902
2055
  address_n: number[];
1903
2056
  raw_message: string;
1904
2057
  };
2058
+ type KaspaOutpoint = {
2059
+ tx_id: string;
2060
+ index: number;
2061
+ };
2062
+ declare enum Enum_KaspaInputScriptType {
2063
+ KASPA_SPEND_P2PK_SCHNORR = 0,
2064
+ KASPA_SPEND_P2PK_ECDSA = 1
2065
+ }
2066
+ type KaspaInputScriptType = keyof typeof Enum_KaspaInputScriptType;
2067
+ declare enum Enum_KaspaOutputScriptType {
2068
+ KASPA_PAYTOADDRESS = 0,
2069
+ KASPA_PAYTOCHANGE = 1
2070
+ }
2071
+ type KaspaOutputScriptType = keyof typeof Enum_KaspaOutputScriptType;
2072
+ declare enum Enum_KaspaRequestType {
2073
+ KASPA_TX_INPUT = 0,
2074
+ KASPA_TX_OUTPUT = 1,
2075
+ KASPA_TX_PAYLOAD = 2,
2076
+ KASPA_TX_FINISHED = 3,
2077
+ KASPA_TX_PREV_META = 4
2078
+ }
2079
+ type KaspaRequestType = keyof typeof Enum_KaspaRequestType;
2080
+ type KaspaTxRequestSignature = {
2081
+ signature_index: number;
2082
+ signature: string;
2083
+ };
2084
+ type KaspaTxRequest = {
2085
+ request_type: KaspaRequestType;
2086
+ request_index?: number;
2087
+ signature?: KaspaTxRequestSignature;
2088
+ request_payload_length?: number;
2089
+ prev_tx_id?: string;
2090
+ };
2091
+ type KaspaTxAckInput = {
2092
+ address_n: number[];
2093
+ previous_outpoint: KaspaOutpoint;
2094
+ amount: UintType;
2095
+ sequence: number;
2096
+ sig_op_count: number;
2097
+ script_type?: KaspaInputScriptType;
2098
+ use_tweak?: boolean;
2099
+ };
2100
+ type KaspaTxAckOutput = {
2101
+ script_type?: KaspaOutputScriptType;
2102
+ amount: UintType;
2103
+ address_n: number[];
2104
+ address?: string;
2105
+ scheme?: string;
2106
+ use_tweak?: boolean;
2107
+ };
2108
+ type KaspaTxAckPayloadChunk = {
2109
+ payload_chunk: string;
2110
+ };
2111
+ type KaspaTxAckPrevMeta = {
2112
+ version: number;
2113
+ input_count: number;
2114
+ output_count: number;
2115
+ lock_time: number;
2116
+ subnetwork_id: string;
2117
+ gas: number;
2118
+ payload_length: number;
2119
+ };
2120
+ type KaspaTxAckPrevInput = {
2121
+ previous_outpoint: KaspaOutpoint;
2122
+ sequence: number;
2123
+ };
2124
+ type KaspaTxAckPrevOutput = {
2125
+ amount: UintType;
2126
+ script_version: number;
2127
+ script_public_key: string;
2128
+ };
1905
2129
  type KaspaSignedTx = {
1906
2130
  signature: string;
1907
2131
  };
@@ -1928,7 +2152,7 @@ declare enum Enum_SafetyCheckLevel {
1928
2152
  PromptAlways = 1,
1929
2153
  PromptTemporarily = 2
1930
2154
  }
1931
- type SafetyCheckLevel = keyof typeof Enum_SafetyCheckLevel;
2155
+ type SafetyCheckLevel = keyof typeof Enum_SafetyCheckLevel | Enum_SafetyCheckLevel;
1932
2156
  type Initialize = {
1933
2157
  session_id?: string;
1934
2158
  _skip_passphrase?: boolean;
@@ -2067,6 +2291,19 @@ type Features = {
2067
2291
  onekey_se04_state?: string | null;
2068
2292
  attach_to_pin_user?: boolean;
2069
2293
  unlocked_attach_pin?: boolean;
2294
+ coprocessor_bt_name?: string;
2295
+ coprocessor_version?: string;
2296
+ coprocessor_bt_enable?: boolean;
2297
+ romloader_version?: string;
2298
+ onekey_romloader_version?: string;
2299
+ onekey_romloader_hash?: string;
2300
+ onekey_bootloader_version?: string;
2301
+ onekey_bootloader_hash?: string;
2302
+ onekey_bootloader_build_id?: string;
2303
+ onekey_coprocessor_bt_name?: string;
2304
+ onekey_coprocessor_version?: string;
2305
+ onekey_coprocessor_build_id?: string;
2306
+ onekey_coprocessor_hash?: string;
2070
2307
  };
2071
2308
  type OnekeyFeatures = {
2072
2309
  onekey_device_type?: OneKeyDeviceType;
@@ -2418,8 +2655,6 @@ type UnLockDeviceResponse = {
2418
2655
  };
2419
2656
  type GetPassphraseState = {
2420
2657
  passphrase_state?: string;
2421
- _only_main_pin?: boolean;
2422
- allow_create_attach_pin?: boolean;
2423
2658
  };
2424
2659
  type PassphraseState = {
2425
2660
  passphrase_state?: string;
@@ -3598,17 +3833,6 @@ type EthereumSignTypedDataQR = {
3598
3833
  metamask_v4_compat?: boolean;
3599
3834
  request_id?: string;
3600
3835
  };
3601
- type InternalMyAddressRequest = {
3602
- coin_type: number;
3603
- chain_id: number;
3604
- account_index: number;
3605
- derive_type: number;
3606
- };
3607
- type StartSession = {
3608
- session_id?: string;
3609
- _skip_passphrase?: boolean;
3610
- derive_cardano?: boolean;
3611
- };
3612
3836
  type SetBusy = {
3613
3837
  expiry_ms?: number;
3614
3838
  };
@@ -3625,21 +3849,6 @@ type Nonce = {
3625
3849
  type WriteSEPrivateKey = {
3626
3850
  private_key: string;
3627
3851
  };
3628
- declare enum WallpaperTarget {
3629
- Home = 0,
3630
- Lock = 1
3631
- }
3632
- type SetWallpaper = {
3633
- target: WallpaperTarget;
3634
- path: string;
3635
- };
3636
- type GetWallpaper = {
3637
- target: WallpaperTarget;
3638
- };
3639
- type Wallpaper = {
3640
- target: WallpaperTarget;
3641
- path: string;
3642
- };
3643
3852
  type UnlockPath = {
3644
3853
  address_n: number[];
3645
3854
  mac?: string;
@@ -3653,54 +3862,27 @@ declare enum MoneroNetworkType {
3653
3862
  STAGENET = 2,
3654
3863
  FAKECHAIN = 3
3655
3864
  }
3656
- type ViewAmount = {
3657
- is_unlimited: boolean;
3658
- num: string;
3659
- };
3660
- type ViewDetail = {
3661
- key: number;
3662
- value: string;
3663
- is_overview: boolean;
3664
- has_icon: boolean;
3665
- };
3666
- declare enum ViewTipType {
3667
- Default = 0,
3668
- Highlight = 1,
3669
- Recommend = 2,
3670
- Warning = 3,
3671
- Danger = 4
3865
+ declare enum UiAnimationType {
3866
+ Unknown = 0,
3867
+ Signing = 1
3672
3868
  }
3673
- type ViewTip = {
3674
- type: ViewTipType;
3675
- text: string;
3676
- };
3677
- type ViewRawData = {
3678
- initial_data: string;
3679
- placeholder: number;
3680
- };
3681
- declare enum ViewSignLayout {
3682
- LayoutDefault = 0,
3683
- LayoutSafeTxCreate = 1
3869
+ declare enum UiAnimationCommand {
3870
+ CommandUnknown = 0,
3871
+ Start = 1,
3872
+ Stop = 2,
3873
+ Refresh = 3
3684
3874
  }
3685
- type ViewSignPage = {
3686
- title: string;
3687
- amount?: UintType;
3688
- general: ViewDetail[];
3689
- tip?: ViewTip;
3690
- raw_data?: ViewRawData;
3691
- slide_to_confirm?: boolean;
3692
- layout?: ViewSignLayout;
3875
+ type UiAnimationRequest = {
3876
+ command: UiAnimationCommand;
3877
+ type?: UiAnimationType;
3693
3878
  };
3694
- type ViewVerifyPage = {
3695
- title: string;
3696
- address: string;
3697
- path: string;
3879
+ type ProtocolInfoRequest = {
3880
+ eventless_wallet_session?: boolean;
3698
3881
  };
3699
- type ProtocolInfoRequest = {};
3700
3882
  type ProtocolInfo = {
3701
3883
  version: number;
3884
+ build_fingerprint: string;
3702
3885
  supported_messages: number[];
3703
- protobuf_definition?: string;
3704
3886
  };
3705
3887
  declare enum DeviceErrorCode {
3706
3888
  DeviceError_None = 0,
@@ -3723,23 +3905,22 @@ type DeviceReboot = {
3723
3905
  reboot_type: DeviceRebootType;
3724
3906
  };
3725
3907
  type DeviceSettings = {
3726
- label?: string;
3727
3908
  bt_enable?: boolean;
3728
3909
  language?: string;
3729
3910
  wallpaper_path?: string;
3730
- passphrase_enable?: boolean;
3731
3911
  brightness?: number;
3732
- autolock_delay_ms?: number;
3733
- autoshutdown_delay_ms?: number;
3734
3912
  animation_enable?: boolean;
3735
3913
  tap_to_wake?: boolean;
3736
3914
  haptic_feedback?: boolean;
3737
3915
  device_name_display_enabled?: boolean;
3738
3916
  airgap_mode?: boolean;
3739
- fido_enabled?: boolean;
3740
- experimental_features?: boolean;
3741
3917
  usb_lock_enable?: boolean;
3742
3918
  random_keypad?: boolean;
3919
+ passphrase_enable?: boolean;
3920
+ fido_enabled?: boolean;
3921
+ autolock_delay_ms?: number;
3922
+ autoshutdown_delay_ms?: number;
3923
+ label?: string;
3743
3924
  };
3744
3925
  type DeviceSettingsGet = {};
3745
3926
  type DeviceSettingsSet = {
@@ -3769,6 +3950,39 @@ type DeviceCertificateSignature = {
3769
3950
  type DeviceCertificateSign = {
3770
3951
  data: string;
3771
3952
  };
3953
+ type DeviceMiscUsbMscControl = {
3954
+ enable: boolean;
3955
+ };
3956
+ declare enum DeviceFactoryAck {
3957
+ FACTORY_ACK_SUCCESS = 0,
3958
+ FACTORY_ACK_FAIL = 1
3959
+ }
3960
+ type DeviceFactoryInfoManufactureTime = {
3961
+ year: number;
3962
+ month: number;
3963
+ day: number;
3964
+ hour: number;
3965
+ minute: number;
3966
+ second: number;
3967
+ };
3968
+ type DeviceFactoryInfo = {
3969
+ version?: number;
3970
+ serial_number?: string;
3971
+ factory_test_completed?: boolean;
3972
+ factory_burn_in_completed?: boolean;
3973
+ manufacture_time?: DeviceFactoryInfoManufactureTime;
3974
+ };
3975
+ type DeviceFactoryInfoSet = {
3976
+ info: DeviceFactoryInfo;
3977
+ };
3978
+ type DeviceFactoryInfoGet = {};
3979
+ type DeviceFactoryPermanentLock = {
3980
+ check_a: string;
3981
+ check_b: string;
3982
+ };
3983
+ type DeviceFactoryTest = {
3984
+ burn_in_test: boolean;
3985
+ };
3772
3986
  declare enum DeviceFirmwareTargetType {
3773
3987
  FW_MGMT_TARGET_INVALID = 0,
3774
3988
  FW_MGMT_TARGET_CRATE = 1,
@@ -3799,9 +4013,10 @@ type DeviceFirmwareTarget = {
3799
4013
  target_id: DeviceFirmwareTargetType;
3800
4014
  path: string;
3801
4015
  };
3802
- type DeviceFirmwareUpdateRequest = {
4016
+ type DeviceFirmwareUpdateStage = {
3803
4017
  targets: DeviceFirmwareTarget[];
3804
4018
  };
4019
+ type DeviceFirmwareUpdateRequest = {};
3805
4020
  type DeviceFirmwareUpdateRecord = {
3806
4021
  target_id: DeviceFirmwareTargetType;
3807
4022
  status?: DeviceFirmwareUpdateTaskStatus;
@@ -3819,36 +4034,6 @@ type DeviceFirmwareUpdateStatusGet = {
3819
4034
  type DeviceFirmwareUpdateStatus = {
3820
4035
  records: DeviceFirmwareUpdateRecord[];
3821
4036
  };
3822
- declare enum DeviceFactoryAck {
3823
- FACTORY_ACK_SUCCESS = 0,
3824
- FACTORY_ACK_FAIL = 1
3825
- }
3826
- type DeviceFactoryInfoManufactureTime = {
3827
- year: number;
3828
- month: number;
3829
- day: number;
3830
- hour: number;
3831
- minute: number;
3832
- second: number;
3833
- };
3834
- type DeviceFactoryInfo = {
3835
- version?: number;
3836
- serial_number?: string;
3837
- burn_in_completed?: boolean;
3838
- factory_test_completed?: boolean;
3839
- manufacture_time?: DeviceFactoryInfoManufactureTime;
3840
- };
3841
- type DeviceFactoryInfoSet = {
3842
- info: DeviceFactoryInfo;
3843
- };
3844
- type DeviceFactoryInfoGet = {};
3845
- type DeviceFactoryPermanentLock = {
3846
- check_a: string;
3847
- check_b: string;
3848
- };
3849
- type DeviceFactoryTest = {
3850
- burn_in_test: boolean;
3851
- };
3852
4037
  declare enum DeviceType {
3853
4038
  CLASSIC1 = 0,
3854
4039
  CLASSIC1S = 1,
@@ -3899,13 +4084,12 @@ type DeviceSEInfo = {
3899
4084
  };
3900
4085
  type DeviceInfoTargets = {
3901
4086
  hw?: boolean;
3902
- fw?: boolean;
4087
+ main_mcu?: boolean;
3903
4088
  coprocessor?: boolean;
3904
4089
  se1?: boolean;
3905
4090
  se2?: boolean;
3906
4091
  se3?: boolean;
3907
4092
  se4?: boolean;
3908
- status?: boolean;
3909
4093
  };
3910
4094
  type DeviceInfoTypes = {
3911
4095
  version?: boolean;
@@ -3920,27 +4104,49 @@ type DeviceInfoGet = {
3920
4104
  type ProtocolV2DeviceInfo = {
3921
4105
  protocol_version: number;
3922
4106
  hw?: DeviceHardwareInfo;
3923
- fw?: DeviceMainMcuInfo;
4107
+ main_mcu?: DeviceMainMcuInfo;
3924
4108
  coprocessor?: DeviceCoprocessorInfo;
3925
4109
  se1?: DeviceSEInfo;
3926
4110
  se2?: DeviceSEInfo;
3927
4111
  se3?: DeviceSEInfo;
3928
4112
  se4?: DeviceSEInfo;
3929
- status?: DeviceStatus;
3930
4113
  };
4114
+ declare enum DeviceSessionErrorCode {
4115
+ DeviceSessionError_None = 0,
4116
+ DeviceSessionError_UserCancelled = 1,
4117
+ DeviceSessionError_InvalidSession = 2,
4118
+ DeviceSessionError_AttachPinUnavailable = 3,
4119
+ DeviceSessionError_PassphraseDisabled = 4,
4120
+ DeviceSessionError_Busy = 5
4121
+ }
4122
+ declare enum DeviceSessionSeedDomain {
4123
+ SeedDomain_Standard = 1,
4124
+ SeedDomain_Cardano = 2
4125
+ }
3931
4126
  type DeviceSessionGet = {
3932
4127
  session_id?: string;
4128
+ btc_test_address?: string;
4129
+ seed_domains: DeviceSessionSeedDomain[];
3933
4130
  };
3934
4131
  type DeviceSession = {
3935
4132
  session_id?: string;
3936
4133
  btc_test_address?: string;
3937
4134
  };
3938
- type DeviceSessionAskPin = {};
3939
- type DeviceSessionPinResult = {
3940
- unlocked?: boolean;
3941
- unlocked_attach_pin?: boolean;
3942
- passphrase_protection?: boolean;
4135
+ declare enum DeviceSessionPinType {
4136
+ Any = 1,
4137
+ Main = 2,
4138
+ AttachToPin = 3
4139
+ }
4140
+ type DeviceSessionAskPin = {
4141
+ type?: DeviceSessionPinType;
4142
+ };
4143
+ type DeviceSessionAskPassphrase = {
4144
+ passphrase?: string;
4145
+ on_device: boolean;
3943
4146
  };
4147
+ declare enum DeviceSessionAskPin_FailureSubCodes {
4148
+ UserCancel = 1
4149
+ }
3944
4150
  type DeviceStatus = {
3945
4151
  device_id?: string;
3946
4152
  unlocked?: boolean;
@@ -3951,27 +4157,6 @@ type DeviceStatus = {
3951
4157
  unlocked_by_attach_to_pin?: boolean;
3952
4158
  };
3953
4159
  type DeviceStatusGet = {};
3954
- declare enum DevOnboardingStage {
3955
- DEV_ONBOARDING_STAGE_UNKNOWN = 0,
3956
- DEV_ONBOARDING_STAGE_SAFETY_CHECK = 1,
3957
- DEV_ONBOARDING_STAGE_PERSONALIZATION = 2,
3958
- DEV_ONBOARDING_STAGE_SELECT_SETUP_METHOD = 3,
3959
- DEV_ONBOARDING_STAGE_NEW_DEVICE = 4,
3960
- DEV_ONBOARDING_STAGE_SELECT_RESTORE_METHOD = 5,
3961
- DEV_ONBOARDING_STAGE_RESTORE_MNEMONIC = 6,
3962
- DEV_ONBOARDING_STAGE_RESTORE_SEEDCARD = 7,
3963
- DEV_ONBOARDING_STAGE_WALLET_READY = 8,
3964
- DEV_ONBOARDING_STAGE_SEEDCARD_BACKUP_PROMPT = 9,
3965
- DEV_ONBOARDING_STAGE_SELECT_SEEDCARD_BACKUP_METHOD = 10,
3966
- DEV_ONBOARDING_STAGE_SEEDCARD_BACKUP = 11,
3967
- DEV_ONBOARDING_STAGE_DONE = 12
3968
- }
3969
- type DevGetOnboardingStatus = {};
3970
- type DevOnboardingStatus = {
3971
- stage: DevOnboardingStage;
3972
- status_code?: number;
3973
- detail_code?: number;
3974
- };
3975
4160
  type FilesystemPermissionFix = {};
3976
4161
  type FilesystemPathInfo = {
3977
4162
  exist: boolean;
@@ -4032,7 +4217,146 @@ type FilesystemFormat = {
4032
4217
  data: boolean;
4033
4218
  user: boolean;
4034
4219
  };
4220
+ type InternalMyAddressRequest = {
4221
+ coin_type: number;
4222
+ chain_id: number;
4223
+ account_index: number;
4224
+ derive_type: number;
4225
+ };
4226
+ type NftUpdate = {
4227
+ file_name_no_ext: string;
4228
+ };
4229
+ declare enum OnboardingStep {
4230
+ ONBOARDING_STEP_UNKNOWN = 0,
4231
+ ONBOARDING_STEP_CHECKING = 1,
4232
+ ONBOARDING_STEP_PERSONALIZATION = 2,
4233
+ ONBOARDING_STEP_PIN = 3,
4234
+ ONBOARDING_STEP_SETUP = 4,
4235
+ ONBOARDING_STEP_DONE = 5
4236
+ }
4237
+ declare enum OnboardingPhase {
4238
+ ONBOARDING_PHASE_UNKNOWN = 0,
4239
+ ONBOARDING_PHASE_SAFETY_CHECK = 1,
4240
+ ONBOARDING_PHASE_PIN_SETUP = 2,
4241
+ ONBOARDING_PHASE_FINGERPRINT_SETUP = 3,
4242
+ ONBOARDING_PHASE_SETUP_CHOICE = 4,
4243
+ ONBOARDING_PHASE_WALLET_CREATE_START = 5,
4244
+ ONBOARDING_PHASE_RECOVERY_PHRASE_VIEW = 6,
4245
+ ONBOARDING_PHASE_RECOVERY_PHRASE_CONFIRM = 7,
4246
+ ONBOARDING_PHASE_RESTORE_METHOD_CHOICE = 8,
4247
+ ONBOARDING_PHASE_RECOVERY_PHRASE_RESTORE = 9,
4248
+ ONBOARDING_PHASE_SEEDCARD_RESTORE = 10,
4249
+ ONBOARDING_PHASE_WALLET_READY = 11,
4250
+ ONBOARDING_PHASE_SEEDCARD_BACKUP_PROMPT = 12,
4251
+ ONBOARDING_PHASE_SEEDCARD_BACKUP = 13
4252
+ }
4253
+ declare enum OnboardingSetupKind {
4254
+ ONBOARDING_SETUP_KIND_UNKNOWN = 0,
4255
+ ONBOARDING_SETUP_KIND_CHOICE = 1,
4256
+ ONBOARDING_SETUP_KIND_CREATE = 2,
4257
+ ONBOARDING_SETUP_KIND_RESTORE = 3
4258
+ }
4259
+ declare enum OnboardingSetupMethod {
4260
+ ONBOARDING_SETUP_METHOD_UNKNOWN = 0,
4261
+ ONBOARDING_SETUP_METHOD_RECOVERY_PHRASE = 1,
4262
+ ONBOARDING_SETUP_METHOD_SEEDCARD = 2
4263
+ }
4264
+ type OnboardingSetupStatus = {
4265
+ kind?: OnboardingSetupKind;
4266
+ method?: OnboardingSetupMethod;
4267
+ };
4268
+ type OnboardingStatusGet = {};
4269
+ type OnboardingStatus = {
4270
+ step?: OnboardingStep;
4271
+ phase?: OnboardingPhase;
4272
+ setup?: OnboardingSetupStatus;
4273
+ pin_set?: boolean;
4274
+ wallet_initialized?: boolean;
4275
+ };
4035
4276
  type PortfolioUpdate = {};
4277
+ type ViewAmount = {
4278
+ is_unlimited: boolean;
4279
+ num: string;
4280
+ };
4281
+ type ViewDetail = {
4282
+ key: number;
4283
+ value: string;
4284
+ is_overview: boolean;
4285
+ has_icon: boolean;
4286
+ };
4287
+ declare enum ViewTipType {
4288
+ Default = 0,
4289
+ Highlight = 1,
4290
+ Recommend = 2,
4291
+ Warning = 3,
4292
+ Danger = 4
4293
+ }
4294
+ type ViewTip = {
4295
+ type: ViewTipType;
4296
+ text?: string;
4297
+ text_id?: number;
4298
+ };
4299
+ type ViewRawData = {
4300
+ initial_data: string;
4301
+ placeholder: number;
4302
+ };
4303
+ declare enum ViewSignLayout {
4304
+ LayoutDefault = 0,
4305
+ LayoutSafeTxCreate = 1,
4306
+ LayoutFinalConfirm = 2,
4307
+ Layout7702 = 3,
4308
+ LayoutFlat = 4,
4309
+ LayoutEthApprove = 5
4310
+ }
4311
+ type ViewSignPage = {
4312
+ title?: string;
4313
+ amount?: UintType;
4314
+ general: ViewDetail[];
4315
+ tip?: ViewTip;
4316
+ raw_data?: ViewRawData;
4317
+ slide_to_confirm?: boolean;
4318
+ layout?: ViewSignLayout;
4319
+ title_id?: number;
4320
+ };
4321
+ type ViewVerifyPage = {
4322
+ title?: string;
4323
+ address: string;
4324
+ path: string;
4325
+ network?: string;
4326
+ derive_type?: string;
4327
+ value_key?: number;
4328
+ title_id?: number;
4329
+ chain_id?: number;
4330
+ };
4331
+ declare enum ProtocolV2FailureType {
4332
+ Failure_InvalidMessage = 1,
4333
+ Failure_UndefinedError = 2,
4334
+ Failure_UsageError = 3,
4335
+ Failure_DataError = 4,
4336
+ Failure_ProcessError = 5
4337
+ }
4338
+ declare enum Enum_ProtocolV2Capability {
4339
+ Capability_Bitcoin = 1,
4340
+ Capability_Bitcoin_like = 2,
4341
+ Capability_Binance = 3,
4342
+ Capability_Cardano = 4,
4343
+ Capability_Crypto = 5,
4344
+ Capability_EOS = 6,
4345
+ Capability_Ethereum = 7,
4346
+ Capability_Lisk = 8,
4347
+ Capability_Monero = 9,
4348
+ Capability_NEM = 10,
4349
+ Capability_Ripple = 11,
4350
+ Capability_Stellar = 12,
4351
+ Capability_Tezos = 13,
4352
+ Capability_U2F = 14,
4353
+ Capability_Shamir = 15,
4354
+ Capability_ShamirGroups = 16,
4355
+ Capability_PassphraseEntry = 17,
4356
+ Capability_AttachToPin = 18,
4357
+ Capability_EthereumTypedData = 1000
4358
+ }
4359
+ type ProtocolV2Capability = keyof typeof Enum_ProtocolV2Capability;
4036
4360
  type MessageType = {
4037
4361
  AlephiumGetAddress: AlephiumGetAddress;
4038
4362
  AlephiumAddress: AlephiumAddress;
@@ -4307,6 +4631,15 @@ type MessageType = {
4307
4631
  KaspaSignTx: KaspaSignTx;
4308
4632
  KaspaTxInputRequest: KaspaTxInputRequest;
4309
4633
  KaspaTxInputAck: KaspaTxInputAck;
4634
+ KaspaOutpoint: KaspaOutpoint;
4635
+ KaspaTxRequestSignature: KaspaTxRequestSignature;
4636
+ KaspaTxRequest: KaspaTxRequest;
4637
+ KaspaTxAckInput: KaspaTxAckInput;
4638
+ KaspaTxAckOutput: KaspaTxAckOutput;
4639
+ KaspaTxAckPayloadChunk: KaspaTxAckPayloadChunk;
4640
+ KaspaTxAckPrevMeta: KaspaTxAckPrevMeta;
4641
+ KaspaTxAckPrevInput: KaspaTxAckPrevInput;
4642
+ KaspaTxAckPrevOutput: KaspaTxAckPrevOutput;
4310
4643
  KaspaSignedTx: KaspaSignedTx;
4311
4644
  LnurlAuth: LnurlAuth;
4312
4645
  LnurlAuthResp: LnurlAuthResp;
@@ -4597,25 +4930,15 @@ type MessageType = {
4597
4930
  PaymentRequestMemo: PaymentRequestMemo;
4598
4931
  TxAckPaymentRequest: TxAckPaymentRequest;
4599
4932
  EthereumSignTypedDataQR: EthereumSignTypedDataQR;
4600
- InternalMyAddressRequest: InternalMyAddressRequest;
4601
- StartSession: StartSession;
4602
4933
  SetBusy: SetBusy;
4603
4934
  GetFirmwareHash: GetFirmwareHash;
4604
4935
  FirmwareHash: FirmwareHash;
4605
4936
  GetNonce: GetNonce;
4606
4937
  Nonce: Nonce;
4607
4938
  WriteSEPrivateKey: WriteSEPrivateKey;
4608
- SetWallpaper: SetWallpaper;
4609
- GetWallpaper: GetWallpaper;
4610
- Wallpaper: Wallpaper;
4611
4939
  UnlockPath: UnlockPath;
4612
4940
  UnlockedPathRequest: UnlockedPathRequest;
4613
- ViewAmount: ViewAmount;
4614
- ViewDetail: ViewDetail;
4615
- ViewTip: ViewTip;
4616
- ViewRawData: ViewRawData;
4617
- ViewSignPage: ViewSignPage;
4618
- ViewVerifyPage: ViewVerifyPage;
4941
+ UiAnimationRequest: UiAnimationRequest;
4619
4942
  ProtocolInfoRequest: ProtocolInfoRequest;
4620
4943
  ProtocolInfo: ProtocolInfo;
4621
4944
  DeviceReboot: DeviceReboot;
@@ -4628,18 +4951,20 @@ type MessageType = {
4628
4951
  DeviceCertificateRead: DeviceCertificateRead;
4629
4952
  DeviceCertificateSignature: DeviceCertificateSignature;
4630
4953
  DeviceCertificateSign: DeviceCertificateSign;
4631
- DeviceFirmwareTarget: DeviceFirmwareTarget;
4632
- DeviceFirmwareUpdateRequest: DeviceFirmwareUpdateRequest;
4633
- DeviceFirmwareUpdateRecord: DeviceFirmwareUpdateRecord;
4634
- DeviceFirmwareUpdateRecordFields: DeviceFirmwareUpdateRecordFields;
4635
- DeviceFirmwareUpdateStatusGet: DeviceFirmwareUpdateStatusGet;
4636
- DeviceFirmwareUpdateStatus: DeviceFirmwareUpdateStatus;
4954
+ DeviceMiscUsbMscControl: DeviceMiscUsbMscControl;
4637
4955
  DeviceFactoryInfoManufactureTime: DeviceFactoryInfoManufactureTime;
4638
4956
  DeviceFactoryInfo: DeviceFactoryInfo;
4639
4957
  DeviceFactoryInfoSet: DeviceFactoryInfoSet;
4640
4958
  DeviceFactoryInfoGet: DeviceFactoryInfoGet;
4641
4959
  DeviceFactoryPermanentLock: DeviceFactoryPermanentLock;
4642
4960
  DeviceFactoryTest: DeviceFactoryTest;
4961
+ DeviceFirmwareTarget: DeviceFirmwareTarget;
4962
+ DeviceFirmwareUpdateStage: DeviceFirmwareUpdateStage;
4963
+ DeviceFirmwareUpdateRequest: DeviceFirmwareUpdateRequest;
4964
+ DeviceFirmwareUpdateRecord: DeviceFirmwareUpdateRecord;
4965
+ DeviceFirmwareUpdateRecordFields: DeviceFirmwareUpdateRecordFields;
4966
+ DeviceFirmwareUpdateStatusGet: DeviceFirmwareUpdateStatusGet;
4967
+ DeviceFirmwareUpdateStatus: DeviceFirmwareUpdateStatus;
4643
4968
  DeviceFirmwareImageInfo: DeviceFirmwareImageInfo;
4644
4969
  DeviceHardwareInfo: DeviceHardwareInfo;
4645
4970
  DeviceMainMcuInfo: DeviceMainMcuInfo;
@@ -4651,11 +4976,9 @@ type MessageType = {
4651
4976
  DeviceSessionGet: DeviceSessionGet;
4652
4977
  DeviceSession: DeviceSession;
4653
4978
  DeviceSessionAskPin: DeviceSessionAskPin;
4654
- DeviceSessionPinResult: DeviceSessionPinResult;
4979
+ DeviceSessionAskPassphrase: DeviceSessionAskPassphrase;
4655
4980
  DeviceStatus: DeviceStatus;
4656
4981
  DeviceStatusGet: DeviceStatusGet;
4657
- DevGetOnboardingStatus: DevGetOnboardingStatus;
4658
- DevOnboardingStatus: DevOnboardingStatus;
4659
4982
  FilesystemPermissionFix: FilesystemPermissionFix;
4660
4983
  FilesystemPathInfo: FilesystemPathInfo;
4661
4984
  FilesystemPathInfoQuery: FilesystemPathInfoQuery;
@@ -4668,7 +4991,18 @@ type MessageType = {
4668
4991
  FilesystemDirMake: FilesystemDirMake;
4669
4992
  FilesystemDirRemove: FilesystemDirRemove;
4670
4993
  FilesystemFormat: FilesystemFormat;
4994
+ InternalMyAddressRequest: InternalMyAddressRequest;
4995
+ NftUpdate: NftUpdate;
4996
+ OnboardingSetupStatus: OnboardingSetupStatus;
4997
+ OnboardingStatusGet: OnboardingStatusGet;
4998
+ OnboardingStatus: OnboardingStatus;
4671
4999
  PortfolioUpdate: PortfolioUpdate;
5000
+ ViewAmount: ViewAmount;
5001
+ ViewDetail: ViewDetail;
5002
+ ViewTip: ViewTip;
5003
+ ViewRawData: ViewRawData;
5004
+ ViewSignPage: ViewSignPage;
5005
+ ViewVerifyPage: ViewVerifyPage;
4672
5006
  };
4673
5007
  type MessageKey = keyof MessageType;
4674
5008
  type MessageResponse<T extends MessageKey> = {
@@ -5025,6 +5359,24 @@ type messages_KaspaAddress = KaspaAddress;
5025
5359
  type messages_KaspaSignTx = KaspaSignTx;
5026
5360
  type messages_KaspaTxInputRequest = KaspaTxInputRequest;
5027
5361
  type messages_KaspaTxInputAck = KaspaTxInputAck;
5362
+ type messages_KaspaOutpoint = KaspaOutpoint;
5363
+ type messages_Enum_KaspaInputScriptType = Enum_KaspaInputScriptType;
5364
+ declare const messages_Enum_KaspaInputScriptType: typeof Enum_KaspaInputScriptType;
5365
+ type messages_KaspaInputScriptType = KaspaInputScriptType;
5366
+ type messages_Enum_KaspaOutputScriptType = Enum_KaspaOutputScriptType;
5367
+ declare const messages_Enum_KaspaOutputScriptType: typeof Enum_KaspaOutputScriptType;
5368
+ type messages_KaspaOutputScriptType = KaspaOutputScriptType;
5369
+ type messages_Enum_KaspaRequestType = Enum_KaspaRequestType;
5370
+ declare const messages_Enum_KaspaRequestType: typeof Enum_KaspaRequestType;
5371
+ type messages_KaspaRequestType = KaspaRequestType;
5372
+ type messages_KaspaTxRequestSignature = KaspaTxRequestSignature;
5373
+ type messages_KaspaTxRequest = KaspaTxRequest;
5374
+ type messages_KaspaTxAckInput = KaspaTxAckInput;
5375
+ type messages_KaspaTxAckOutput = KaspaTxAckOutput;
5376
+ type messages_KaspaTxAckPayloadChunk = KaspaTxAckPayloadChunk;
5377
+ type messages_KaspaTxAckPrevMeta = KaspaTxAckPrevMeta;
5378
+ type messages_KaspaTxAckPrevInput = KaspaTxAckPrevInput;
5379
+ type messages_KaspaTxAckPrevOutput = KaspaTxAckPrevOutput;
5028
5380
  type messages_KaspaSignedTx = KaspaSignedTx;
5029
5381
  type messages_LnurlAuth = LnurlAuth;
5030
5382
  type messages_LnurlAuthResp = LnurlAuthResp;
@@ -5381,33 +5733,21 @@ type messages_CoinPurchaseMemo = CoinPurchaseMemo;
5381
5733
  type messages_PaymentRequestMemo = PaymentRequestMemo;
5382
5734
  type messages_TxAckPaymentRequest = TxAckPaymentRequest;
5383
5735
  type messages_EthereumSignTypedDataQR = EthereumSignTypedDataQR;
5384
- type messages_InternalMyAddressRequest = InternalMyAddressRequest;
5385
- type messages_StartSession = StartSession;
5386
5736
  type messages_SetBusy = SetBusy;
5387
5737
  type messages_GetFirmwareHash = GetFirmwareHash;
5388
5738
  type messages_FirmwareHash = FirmwareHash;
5389
5739
  type messages_GetNonce = GetNonce;
5390
5740
  type messages_Nonce = Nonce;
5391
5741
  type messages_WriteSEPrivateKey = WriteSEPrivateKey;
5392
- type messages_WallpaperTarget = WallpaperTarget;
5393
- declare const messages_WallpaperTarget: typeof WallpaperTarget;
5394
- type messages_SetWallpaper = SetWallpaper;
5395
- type messages_GetWallpaper = GetWallpaper;
5396
- type messages_Wallpaper = Wallpaper;
5397
5742
  type messages_UnlockPath = UnlockPath;
5398
5743
  type messages_UnlockedPathRequest = UnlockedPathRequest;
5399
5744
  type messages_MoneroNetworkType = MoneroNetworkType;
5400
5745
  declare const messages_MoneroNetworkType: typeof MoneroNetworkType;
5401
- type messages_ViewAmount = ViewAmount;
5402
- type messages_ViewDetail = ViewDetail;
5403
- type messages_ViewTipType = ViewTipType;
5404
- declare const messages_ViewTipType: typeof ViewTipType;
5405
- type messages_ViewTip = ViewTip;
5406
- type messages_ViewRawData = ViewRawData;
5407
- type messages_ViewSignLayout = ViewSignLayout;
5408
- declare const messages_ViewSignLayout: typeof ViewSignLayout;
5409
- type messages_ViewSignPage = ViewSignPage;
5410
- type messages_ViewVerifyPage = ViewVerifyPage;
5746
+ type messages_UiAnimationType = UiAnimationType;
5747
+ declare const messages_UiAnimationType: typeof UiAnimationType;
5748
+ type messages_UiAnimationCommand = UiAnimationCommand;
5749
+ declare const messages_UiAnimationCommand: typeof UiAnimationCommand;
5750
+ type messages_UiAnimationRequest = UiAnimationRequest;
5411
5751
  type messages_ProtocolInfoRequest = ProtocolInfoRequest;
5412
5752
  type messages_ProtocolInfo = ProtocolInfo;
5413
5753
  type messages_DeviceErrorCode = DeviceErrorCode;
@@ -5426,24 +5766,26 @@ type messages_DeviceCertificateWrite = DeviceCertificateWrite;
5426
5766
  type messages_DeviceCertificateRead = DeviceCertificateRead;
5427
5767
  type messages_DeviceCertificateSignature = DeviceCertificateSignature;
5428
5768
  type messages_DeviceCertificateSign = DeviceCertificateSign;
5769
+ type messages_DeviceMiscUsbMscControl = DeviceMiscUsbMscControl;
5770
+ type messages_DeviceFactoryAck = DeviceFactoryAck;
5771
+ declare const messages_DeviceFactoryAck: typeof DeviceFactoryAck;
5772
+ type messages_DeviceFactoryInfoManufactureTime = DeviceFactoryInfoManufactureTime;
5773
+ type messages_DeviceFactoryInfo = DeviceFactoryInfo;
5774
+ type messages_DeviceFactoryInfoSet = DeviceFactoryInfoSet;
5775
+ type messages_DeviceFactoryInfoGet = DeviceFactoryInfoGet;
5776
+ type messages_DeviceFactoryPermanentLock = DeviceFactoryPermanentLock;
5777
+ type messages_DeviceFactoryTest = DeviceFactoryTest;
5429
5778
  type messages_DeviceFirmwareTargetType = DeviceFirmwareTargetType;
5430
5779
  declare const messages_DeviceFirmwareTargetType: typeof DeviceFirmwareTargetType;
5431
5780
  type messages_DeviceFirmwareUpdateTaskStatus = DeviceFirmwareUpdateTaskStatus;
5432
5781
  declare const messages_DeviceFirmwareUpdateTaskStatus: typeof DeviceFirmwareUpdateTaskStatus;
5433
5782
  type messages_DeviceFirmwareTarget = DeviceFirmwareTarget;
5783
+ type messages_DeviceFirmwareUpdateStage = DeviceFirmwareUpdateStage;
5434
5784
  type messages_DeviceFirmwareUpdateRequest = DeviceFirmwareUpdateRequest;
5435
5785
  type messages_DeviceFirmwareUpdateRecord = DeviceFirmwareUpdateRecord;
5436
5786
  type messages_DeviceFirmwareUpdateRecordFields = DeviceFirmwareUpdateRecordFields;
5437
5787
  type messages_DeviceFirmwareUpdateStatusGet = DeviceFirmwareUpdateStatusGet;
5438
5788
  type messages_DeviceFirmwareUpdateStatus = DeviceFirmwareUpdateStatus;
5439
- type messages_DeviceFactoryAck = DeviceFactoryAck;
5440
- declare const messages_DeviceFactoryAck: typeof DeviceFactoryAck;
5441
- type messages_DeviceFactoryInfoManufactureTime = DeviceFactoryInfoManufactureTime;
5442
- type messages_DeviceFactoryInfo = DeviceFactoryInfo;
5443
- type messages_DeviceFactoryInfoSet = DeviceFactoryInfoSet;
5444
- type messages_DeviceFactoryInfoGet = DeviceFactoryInfoGet;
5445
- type messages_DeviceFactoryPermanentLock = DeviceFactoryPermanentLock;
5446
- type messages_DeviceFactoryTest = DeviceFactoryTest;
5447
5789
  type messages_DeviceType = DeviceType;
5448
5790
  declare const messages_DeviceType: typeof DeviceType;
5449
5791
  type messages_DeviceSeType = DeviceSeType;
@@ -5459,16 +5801,20 @@ type messages_DeviceInfoTargets = DeviceInfoTargets;
5459
5801
  type messages_DeviceInfoTypes = DeviceInfoTypes;
5460
5802
  type messages_DeviceInfoGet = DeviceInfoGet;
5461
5803
  type messages_ProtocolV2DeviceInfo = ProtocolV2DeviceInfo;
5804
+ type messages_DeviceSessionErrorCode = DeviceSessionErrorCode;
5805
+ declare const messages_DeviceSessionErrorCode: typeof DeviceSessionErrorCode;
5806
+ type messages_DeviceSessionSeedDomain = DeviceSessionSeedDomain;
5807
+ declare const messages_DeviceSessionSeedDomain: typeof DeviceSessionSeedDomain;
5462
5808
  type messages_DeviceSessionGet = DeviceSessionGet;
5463
5809
  type messages_DeviceSession = DeviceSession;
5810
+ type messages_DeviceSessionPinType = DeviceSessionPinType;
5811
+ declare const messages_DeviceSessionPinType: typeof DeviceSessionPinType;
5464
5812
  type messages_DeviceSessionAskPin = DeviceSessionAskPin;
5465
- type messages_DeviceSessionPinResult = DeviceSessionPinResult;
5813
+ type messages_DeviceSessionAskPassphrase = DeviceSessionAskPassphrase;
5814
+ type messages_DeviceSessionAskPin_FailureSubCodes = DeviceSessionAskPin_FailureSubCodes;
5815
+ declare const messages_DeviceSessionAskPin_FailureSubCodes: typeof DeviceSessionAskPin_FailureSubCodes;
5466
5816
  type messages_DeviceStatus = DeviceStatus;
5467
5817
  type messages_DeviceStatusGet = DeviceStatusGet;
5468
- type messages_DevOnboardingStage = DevOnboardingStage;
5469
- declare const messages_DevOnboardingStage: typeof DevOnboardingStage;
5470
- type messages_DevGetOnboardingStatus = DevGetOnboardingStatus;
5471
- type messages_DevOnboardingStatus = DevOnboardingStatus;
5472
5818
  type messages_FilesystemPermissionFix = FilesystemPermissionFix;
5473
5819
  type messages_FilesystemPathInfo = FilesystemPathInfo;
5474
5820
  type messages_FilesystemPathInfoQuery = FilesystemPathInfoQuery;
@@ -5481,7 +5827,35 @@ type messages_FilesystemDirList = FilesystemDirList;
5481
5827
  type messages_FilesystemDirMake = FilesystemDirMake;
5482
5828
  type messages_FilesystemDirRemove = FilesystemDirRemove;
5483
5829
  type messages_FilesystemFormat = FilesystemFormat;
5830
+ type messages_InternalMyAddressRequest = InternalMyAddressRequest;
5831
+ type messages_NftUpdate = NftUpdate;
5832
+ type messages_OnboardingStep = OnboardingStep;
5833
+ declare const messages_OnboardingStep: typeof OnboardingStep;
5834
+ type messages_OnboardingPhase = OnboardingPhase;
5835
+ declare const messages_OnboardingPhase: typeof OnboardingPhase;
5836
+ type messages_OnboardingSetupKind = OnboardingSetupKind;
5837
+ declare const messages_OnboardingSetupKind: typeof OnboardingSetupKind;
5838
+ type messages_OnboardingSetupMethod = OnboardingSetupMethod;
5839
+ declare const messages_OnboardingSetupMethod: typeof OnboardingSetupMethod;
5840
+ type messages_OnboardingSetupStatus = OnboardingSetupStatus;
5841
+ type messages_OnboardingStatusGet = OnboardingStatusGet;
5842
+ type messages_OnboardingStatus = OnboardingStatus;
5484
5843
  type messages_PortfolioUpdate = PortfolioUpdate;
5844
+ type messages_ViewAmount = ViewAmount;
5845
+ type messages_ViewDetail = ViewDetail;
5846
+ type messages_ViewTipType = ViewTipType;
5847
+ declare const messages_ViewTipType: typeof ViewTipType;
5848
+ type messages_ViewTip = ViewTip;
5849
+ type messages_ViewRawData = ViewRawData;
5850
+ type messages_ViewSignLayout = ViewSignLayout;
5851
+ declare const messages_ViewSignLayout: typeof ViewSignLayout;
5852
+ type messages_ViewSignPage = ViewSignPage;
5853
+ type messages_ViewVerifyPage = ViewVerifyPage;
5854
+ type messages_ProtocolV2FailureType = ProtocolV2FailureType;
5855
+ declare const messages_ProtocolV2FailureType: typeof ProtocolV2FailureType;
5856
+ type messages_Enum_ProtocolV2Capability = Enum_ProtocolV2Capability;
5857
+ declare const messages_Enum_ProtocolV2Capability: typeof Enum_ProtocolV2Capability;
5858
+ type messages_ProtocolV2Capability = ProtocolV2Capability;
5485
5859
  type messages_MessageType = MessageType;
5486
5860
  type messages_MessageKey = MessageKey;
5487
5861
  type messages_MessageResponse<T extends MessageKey> = MessageResponse<T>;
@@ -5802,6 +6176,21 @@ declare namespace messages {
5802
6176
  messages_KaspaSignTx as KaspaSignTx,
5803
6177
  messages_KaspaTxInputRequest as KaspaTxInputRequest,
5804
6178
  messages_KaspaTxInputAck as KaspaTxInputAck,
6179
+ messages_KaspaOutpoint as KaspaOutpoint,
6180
+ messages_Enum_KaspaInputScriptType as Enum_KaspaInputScriptType,
6181
+ messages_KaspaInputScriptType as KaspaInputScriptType,
6182
+ messages_Enum_KaspaOutputScriptType as Enum_KaspaOutputScriptType,
6183
+ messages_KaspaOutputScriptType as KaspaOutputScriptType,
6184
+ messages_Enum_KaspaRequestType as Enum_KaspaRequestType,
6185
+ messages_KaspaRequestType as KaspaRequestType,
6186
+ messages_KaspaTxRequestSignature as KaspaTxRequestSignature,
6187
+ messages_KaspaTxRequest as KaspaTxRequest,
6188
+ messages_KaspaTxAckInput as KaspaTxAckInput,
6189
+ messages_KaspaTxAckOutput as KaspaTxAckOutput,
6190
+ messages_KaspaTxAckPayloadChunk as KaspaTxAckPayloadChunk,
6191
+ messages_KaspaTxAckPrevMeta as KaspaTxAckPrevMeta,
6192
+ messages_KaspaTxAckPrevInput as KaspaTxAckPrevInput,
6193
+ messages_KaspaTxAckPrevOutput as KaspaTxAckPrevOutput,
5805
6194
  messages_KaspaSignedTx as KaspaSignedTx,
5806
6195
  messages_LnurlAuth as LnurlAuth,
5807
6196
  messages_LnurlAuthResp as LnurlAuthResp,
@@ -6127,29 +6516,18 @@ declare namespace messages {
6127
6516
  messages_PaymentRequestMemo as PaymentRequestMemo,
6128
6517
  messages_TxAckPaymentRequest as TxAckPaymentRequest,
6129
6518
  messages_EthereumSignTypedDataQR as EthereumSignTypedDataQR,
6130
- messages_InternalMyAddressRequest as InternalMyAddressRequest,
6131
- messages_StartSession as StartSession,
6132
6519
  messages_SetBusy as SetBusy,
6133
6520
  messages_GetFirmwareHash as GetFirmwareHash,
6134
6521
  messages_FirmwareHash as FirmwareHash,
6135
6522
  messages_GetNonce as GetNonce,
6136
6523
  messages_Nonce as Nonce,
6137
6524
  messages_WriteSEPrivateKey as WriteSEPrivateKey,
6138
- messages_WallpaperTarget as WallpaperTarget,
6139
- messages_SetWallpaper as SetWallpaper,
6140
- messages_GetWallpaper as GetWallpaper,
6141
- messages_Wallpaper as Wallpaper,
6142
6525
  messages_UnlockPath as UnlockPath,
6143
6526
  messages_UnlockedPathRequest as UnlockedPathRequest,
6144
6527
  messages_MoneroNetworkType as MoneroNetworkType,
6145
- messages_ViewAmount as ViewAmount,
6146
- messages_ViewDetail as ViewDetail,
6147
- messages_ViewTipType as ViewTipType,
6148
- messages_ViewTip as ViewTip,
6149
- messages_ViewRawData as ViewRawData,
6150
- messages_ViewSignLayout as ViewSignLayout,
6151
- messages_ViewSignPage as ViewSignPage,
6152
- messages_ViewVerifyPage as ViewVerifyPage,
6528
+ messages_UiAnimationType as UiAnimationType,
6529
+ messages_UiAnimationCommand as UiAnimationCommand,
6530
+ messages_UiAnimationRequest as UiAnimationRequest,
6153
6531
  messages_ProtocolInfoRequest as ProtocolInfoRequest,
6154
6532
  messages_ProtocolInfo as ProtocolInfo,
6155
6533
  messages_DeviceErrorCode as DeviceErrorCode,
@@ -6165,21 +6543,23 @@ declare namespace messages {
6165
6543
  messages_DeviceCertificateRead as DeviceCertificateRead,
6166
6544
  messages_DeviceCertificateSignature as DeviceCertificateSignature,
6167
6545
  messages_DeviceCertificateSign as DeviceCertificateSign,
6546
+ messages_DeviceMiscUsbMscControl as DeviceMiscUsbMscControl,
6547
+ messages_DeviceFactoryAck as DeviceFactoryAck,
6548
+ messages_DeviceFactoryInfoManufactureTime as DeviceFactoryInfoManufactureTime,
6549
+ messages_DeviceFactoryInfo as DeviceFactoryInfo,
6550
+ messages_DeviceFactoryInfoSet as DeviceFactoryInfoSet,
6551
+ messages_DeviceFactoryInfoGet as DeviceFactoryInfoGet,
6552
+ messages_DeviceFactoryPermanentLock as DeviceFactoryPermanentLock,
6553
+ messages_DeviceFactoryTest as DeviceFactoryTest,
6168
6554
  messages_DeviceFirmwareTargetType as DeviceFirmwareTargetType,
6169
6555
  messages_DeviceFirmwareUpdateTaskStatus as DeviceFirmwareUpdateTaskStatus,
6170
6556
  messages_DeviceFirmwareTarget as DeviceFirmwareTarget,
6557
+ messages_DeviceFirmwareUpdateStage as DeviceFirmwareUpdateStage,
6171
6558
  messages_DeviceFirmwareUpdateRequest as DeviceFirmwareUpdateRequest,
6172
6559
  messages_DeviceFirmwareUpdateRecord as DeviceFirmwareUpdateRecord,
6173
6560
  messages_DeviceFirmwareUpdateRecordFields as DeviceFirmwareUpdateRecordFields,
6174
6561
  messages_DeviceFirmwareUpdateStatusGet as DeviceFirmwareUpdateStatusGet,
6175
6562
  messages_DeviceFirmwareUpdateStatus as DeviceFirmwareUpdateStatus,
6176
- messages_DeviceFactoryAck as DeviceFactoryAck,
6177
- messages_DeviceFactoryInfoManufactureTime as DeviceFactoryInfoManufactureTime,
6178
- messages_DeviceFactoryInfo as DeviceFactoryInfo,
6179
- messages_DeviceFactoryInfoSet as DeviceFactoryInfoSet,
6180
- messages_DeviceFactoryInfoGet as DeviceFactoryInfoGet,
6181
- messages_DeviceFactoryPermanentLock as DeviceFactoryPermanentLock,
6182
- messages_DeviceFactoryTest as DeviceFactoryTest,
6183
6563
  messages_DeviceType as DeviceType,
6184
6564
  messages_DeviceSeType as DeviceSeType,
6185
6565
  messages_DeviceSEState as DeviceSEState,
@@ -6192,15 +6572,16 @@ declare namespace messages {
6192
6572
  messages_DeviceInfoTypes as DeviceInfoTypes,
6193
6573
  messages_DeviceInfoGet as DeviceInfoGet,
6194
6574
  messages_ProtocolV2DeviceInfo as ProtocolV2DeviceInfo,
6575
+ messages_DeviceSessionErrorCode as DeviceSessionErrorCode,
6576
+ messages_DeviceSessionSeedDomain as DeviceSessionSeedDomain,
6195
6577
  messages_DeviceSessionGet as DeviceSessionGet,
6196
6578
  messages_DeviceSession as DeviceSession,
6579
+ messages_DeviceSessionPinType as DeviceSessionPinType,
6197
6580
  messages_DeviceSessionAskPin as DeviceSessionAskPin,
6198
- messages_DeviceSessionPinResult as DeviceSessionPinResult,
6581
+ messages_DeviceSessionAskPassphrase as DeviceSessionAskPassphrase,
6582
+ messages_DeviceSessionAskPin_FailureSubCodes as DeviceSessionAskPin_FailureSubCodes,
6199
6583
  messages_DeviceStatus as DeviceStatus,
6200
6584
  messages_DeviceStatusGet as DeviceStatusGet,
6201
- messages_DevOnboardingStage as DevOnboardingStage,
6202
- messages_DevGetOnboardingStatus as DevGetOnboardingStatus,
6203
- messages_DevOnboardingStatus as DevOnboardingStatus,
6204
6585
  messages_FilesystemPermissionFix as FilesystemPermissionFix,
6205
6586
  messages_FilesystemPathInfo as FilesystemPathInfo,
6206
6587
  messages_FilesystemPathInfoQuery as FilesystemPathInfoQuery,
@@ -6213,7 +6594,27 @@ declare namespace messages {
6213
6594
  messages_FilesystemDirMake as FilesystemDirMake,
6214
6595
  messages_FilesystemDirRemove as FilesystemDirRemove,
6215
6596
  messages_FilesystemFormat as FilesystemFormat,
6597
+ messages_InternalMyAddressRequest as InternalMyAddressRequest,
6598
+ messages_NftUpdate as NftUpdate,
6599
+ messages_OnboardingStep as OnboardingStep,
6600
+ messages_OnboardingPhase as OnboardingPhase,
6601
+ messages_OnboardingSetupKind as OnboardingSetupKind,
6602
+ messages_OnboardingSetupMethod as OnboardingSetupMethod,
6603
+ messages_OnboardingSetupStatus as OnboardingSetupStatus,
6604
+ messages_OnboardingStatusGet as OnboardingStatusGet,
6605
+ messages_OnboardingStatus as OnboardingStatus,
6216
6606
  messages_PortfolioUpdate as PortfolioUpdate,
6607
+ messages_ViewAmount as ViewAmount,
6608
+ messages_ViewDetail as ViewDetail,
6609
+ messages_ViewTipType as ViewTipType,
6610
+ messages_ViewTip as ViewTip,
6611
+ messages_ViewRawData as ViewRawData,
6612
+ messages_ViewSignLayout as ViewSignLayout,
6613
+ messages_ViewSignPage as ViewSignPage,
6614
+ messages_ViewVerifyPage as ViewVerifyPage,
6615
+ messages_ProtocolV2FailureType as ProtocolV2FailureType,
6616
+ messages_Enum_ProtocolV2Capability as Enum_ProtocolV2Capability,
6617
+ messages_ProtocolV2Capability as ProtocolV2Capability,
6217
6618
  messages_MessageType as MessageType,
6218
6619
  messages_MessageKey as MessageKey,
6219
6620
  messages_MessageResponse as MessageResponse,
@@ -6234,8 +6635,10 @@ type ProtocolV2Schemas = {
6234
6635
  type ProtocolV2CallContext = {
6235
6636
  messageName: string;
6236
6637
  timeoutMs?: number;
6237
- highVolume: boolean;
6638
+ highThroughput: boolean;
6639
+ writeWithResponse?: boolean;
6238
6640
  generation: number;
6641
+ signal: AbortSignal;
6239
6642
  };
6240
6643
  type ProtocolLogger = {
6241
6644
  debug?: (...args: any[]) => void;
@@ -6260,17 +6663,21 @@ type ProtocolV2CallOptions = {
6260
6663
  expectedTypes?: string[];
6261
6664
  intermediateTypes?: string[];
6262
6665
  onIntermediateResponse?: (response: MessageFromOneKey) => void;
6666
+ onWriteCompleted?: (metrics: TransportWriteMetrics) => void;
6667
+ returnAfterWrite?: boolean;
6668
+ writeWithResponse?: boolean;
6263
6669
  };
6264
6670
 
6265
6671
  declare function hexToBytes(hex: string): Uint8Array;
6266
6672
  declare function bytesToHex(bytes: Uint8Array): string;
6673
+ declare function isProtocolV2HighThroughputCall(name: string): boolean;
6267
6674
  declare function getErrorMessage(error: unknown): string;
6268
- declare function withProtocolTimeout<T>(promise: Promise<T>, timeoutMs: number | undefined, createTimeoutError: () => Error, onTimeout?: () => void): Promise<T>;
6269
- declare const PROTOCOL_V2_WRITE_WATCHDOG_TIMEOUT_MS = 0;
6675
+ declare function withProtocolTimeout<T>(promise: Promise<T>, timeoutMs: number | undefined, createTimeoutError: () => Error, onTimeout?: () => void, abortSignal?: AbortSignal): Promise<T>;
6270
6676
  declare class ProtocolV2Session {
6271
6677
  private readonly options;
6272
6678
  private readonly sequenceCursor;
6273
6679
  private pendingCall;
6680
+ private lastResponseSequence?;
6274
6681
  constructor(options: ProtocolV2SessionOptions);
6275
6682
  call(name: string, data: Record<string, unknown>, callOptions?: ProtocolV2CallOptions): Promise<MessageFromOneKey>;
6276
6683
  private executeCall;
@@ -6306,6 +6713,9 @@ declare class ProtocolV2LinkManager<Key> {
6306
6713
  private readonly links;
6307
6714
  private readonly sequences;
6308
6715
  private readonly callQueues;
6716
+ private readonly generations;
6717
+ private readonly invalidationReasons;
6718
+ private readonly invalidations;
6309
6719
  private readonly options;
6310
6720
  constructor(options: ProtocolV2LinkManagerOptions<Key>);
6311
6721
  call(key: Key, createAdapter: () => ProtocolV2LinkAdapter, name: string, data: Record<string, unknown>, options?: TransportCallOptions): Promise<MessageFromOneKey>;
@@ -6315,6 +6725,7 @@ declare class ProtocolV2LinkManager<Key> {
6315
6725
  private getOrCreateLink;
6316
6726
  private executeCall;
6317
6727
  private clearSettledCallQueue;
6728
+ private assertCallGeneration;
6318
6729
  }
6319
6730
 
6320
6731
  type ProtocolV2UsbTransportBaseOptions = {
@@ -6344,6 +6755,7 @@ declare abstract class ProtocolV2UsbTransportBase<Key> {
6344
6755
  private createProtocolV2UsbAdapter;
6345
6756
  private getProtocolV2UsbAssembler;
6346
6757
  private createProtocolV2UsbCancellation;
6758
+ private createProtocolV2UsbIoError;
6347
6759
  }
6348
6760
 
6349
6761
  declare function info(res: any): {
@@ -6372,22 +6784,59 @@ declare namespace check {
6372
6784
 
6373
6785
  declare const LogBlockCommand: Set<string>;
6374
6786
 
6787
+ declare function getSafeTransportLogPayload(value: unknown, messageName?: string): unknown;
6788
+ declare function createTransportCallLog(name: string, protocol: ProtocolType, data: Record<string, unknown>): {
6789
+ name: string;
6790
+ protocol: ProtocolType;
6791
+ request: unknown;
6792
+ };
6793
+ declare function shouldSuppressHighVolumeCallLog(name: string): boolean;
6794
+
6795
+ /** Protocol V1 USB report marker, ASCII `?`. */
6375
6796
  declare const PROTOCOL_V1_REPORT_ID = 63;
6797
+ /** Protocol V1 envelope marker, ASCII `#`. */
6376
6798
  declare const PROTOCOL_V1_HEADER_BYTE = 35;
6799
+ /** Protocol V1 payload bytes per chunk after the report marker. */
6377
6800
  declare const PROTOCOL_V1_CHUNK_PAYLOAD_SIZE = 63;
6801
+ /** Protocol V1 USB packet length: report marker plus chunk payload. */
6378
6802
  declare const PROTOCOL_V1_USB_PACKET_SIZE: number;
6803
+ /** Protocol V1 message metadata: two-byte type plus four-byte payload length. */
6379
6804
  declare const PROTOCOL_V1_MESSAGE_HEADER_SIZE: number;
6805
+ /** Protocol V1 envelope metadata: `##`, message type, and payload length. */
6380
6806
  declare const PROTOCOL_V1_ENVELOPE_HEADER_SIZE: number;
6381
- declare const PROTOCOL_V2_FRAME_MAX_BYTES = 4608;
6807
+ /** Firmware Proto Link runtime limit for a complete V2 frame, including header and CRC. */
6808
+ declare const PROTOCOL_V2_FRAME_MAX_BYTES = 4200;
6809
+ /** FilesystemFileWrite chunk size over WebUSB. */
6382
6810
  declare const PROTOCOL_V2_WEBUSB_FILE_CHUNK_SIZE = 4000;
6811
+ /** FilesystemFileWrite chunk size over BLE. */
6383
6812
  declare const PROTOCOL_V2_BLE_FILE_CHUNK_SIZE = 1800;
6813
+ /**
6814
+ * FirmwareUpdateV4 chunk size for its fixed BLE staging paths.
6815
+ * The longest current path still leaves 28 bytes below the 2048-byte BLE frame limit.
6816
+ */
6817
+ declare const PROTOCOL_V2_BLE_FIRMWARE_FILE_CHUNK_SIZE = 1960;
6818
+ /** BLE FilesystemFileRead chunk size, limited by the Pro2 1024-byte UART TX buffer. */
6384
6819
  declare const PROTOCOL_V2_BLE_FILE_READ_CHUNK_SIZE = 900;
6820
+ /** Pro2 BLE/UART RX FIFO must hold a complete Proto Link frame. */
6385
6821
  declare const PROTOCOL_V2_BLE_FRAME_MAX_BYTES = 2048;
6822
+ /** @deprecated Use the transport-specific WebUSB or BLE file chunk constant. */
6386
6823
  declare const PROTOCOL_V2_FILE_CHUNK_SIZE = 4000;
6824
+ /**
6825
+ * Protocol V2 routing channel. USB reaches the main MCU directly, while BLE routes
6826
+ * through the BLE coprocessor UART bridge.
6827
+ */
6387
6828
  declare const PROTOCOL_V2_CHANNEL_USB = 0;
6388
6829
  declare const PROTOCOL_V2_CHANNEL_BLE_UART = 1;
6389
6830
  declare const PROTOCOL_V2_CHANNEL_SOCKET = 2;
6831
+ /** packet_src for protobuf commands; firmware routes zero to the protobuf dispatcher. */
6390
6832
  declare const PROTOCOL_V2_PACKET_SRC_COMMAND = 0;
6833
+ /**
6834
+ * Shared upper bound for a Protocol V2 request without a method-specific timeout.
6835
+ * Interactive and signing calls may wait on the device UI, so keep this longer than
6836
+ * ordinary transport timeouts while still preventing a stalled link from blocking
6837
+ * the per-device queue forever.
6838
+ */
6839
+ declare const PROTOCOL_V2_DEFAULT_RESPONSE_TIMEOUT_MS: number;
6391
6840
 
6392
6841
  declare const _default: {
6393
6842
  check: typeof check;
@@ -6406,6 +6855,20 @@ declare const _default: {
6406
6855
  };
6407
6856
  ProtocolV2: {
6408
6857
  isAckFrame: typeof isAckFrame;
6858
+ inspectFrameHeader: typeof inspectFrameHeader;
6859
+ inspectFrame(schemas: {
6860
+ protocolV1: protobuf.Root;
6861
+ protocolV2: protobuf.Root;
6862
+ }, frame: Uint8Array): {
6863
+ messageName: string;
6864
+ messageTypeId: number;
6865
+ pbPayload: Uint8Array;
6866
+ seq: number;
6867
+ router: number;
6868
+ packetSrc: number;
6869
+ dataType: number;
6870
+ type: string;
6871
+ };
6409
6872
  encodeFrame(schemas: {
6410
6873
  protocolV1: protobuf.Root;
6411
6874
  protocolV2: protobuf.Root;
@@ -6418,6 +6881,18 @@ declare const _default: {
6418
6881
  protocolV1: protobuf.Root;
6419
6882
  protocolV2: protobuf.Root;
6420
6883
  }, frame: Uint8Array): {
6884
+ message: {
6885
+ version: any;
6886
+ build_fingerprint: string;
6887
+ supported_messages: any;
6888
+ protobuf_definition: null;
6889
+ };
6890
+ messageName: string;
6891
+ messageTypeId: number;
6892
+ pbPayload: Uint8Array;
6893
+ seq: number;
6894
+ type: string;
6895
+ } | {
6421
6896
  message: {
6422
6897
  [key: string]: any;
6423
6898
  };
@@ -6454,4 +6929,4 @@ declare const _default: {
6454
6929
  withProtocolTimeout: typeof withProtocolTimeout;
6455
6930
  };
6456
6931
 
6457
- export { AcquireInput, Address, AlephiumAddress, AlephiumBytecodeAck, AlephiumBytecodeRequest, AlephiumGetAddress, AlephiumMessageSignature, AlephiumSignMessage, AlephiumSignTx, AlephiumSignedTx, AlephiumTxAck, AlephiumTxRequest, AlgorandAddress, AlgorandGetAddress, AlgorandSignTx, AlgorandSignedTx, AmountUnit, ApplyFlags, ApplySettings, AptosAddress, AptosGetAddress, AptosMessagePayload, AptosMessageSignature, AptosSignMessage, AptosSignSIWAMessage, AptosSignTx, AptosSignedTx, AptosTransactionType, AuthorizeCoinJoin, BIP32Address, BackupDevice, BackupType, BatchGetPublickeys, BenfenAddress, BenfenGetAddress, BenfenMessageSignature, BenfenSignMessage, BenfenSignTx, BenfenSignedTx, BenfenTxAck, BenfenTxRequest, BinanceAddress, BinanceCancelMsg, BinanceCoin, BinanceGetAddress, BinanceGetPublicKey, BinanceInputOutput, BinanceOrderMsg, BinanceOrderSide, BinanceOrderType, BinancePublicKey, BinanceSignTx, BinanceSignedTx, BinanceTimeInForce, BinanceTransferMsg, BinanceTxRequest, BixinBackupAck, BixinBackupDevice, BixinBackupDeviceAck, BixinBackupRequest, BixinLoadDevice, BixinMessageSE, BixinOutMessageSE, BixinPinInputOnDevice, BixinRestoreAck, BixinRestoreRequest, BixinSeedOperate, BixinVerifyDeviceAck, BixinVerifyDeviceRequest, BixinWhiteListAck, BixinWhiteListRequest, BlurRequest, ButtonAck, ButtonRequest, ButtonRequestType, Cancel, CancelAuthorization, Capability, CardanoAddress, CardanoAddressParametersType, CardanoAddressType, CardanoAssetGroup, CardanoBlockchainPointerType, CardanoCVoteRegistrationDelegation, CardanoCVoteRegistrationFormat, CardanoCVoteRegistrationParametersType, CardanoCertificateType, CardanoDRep, CardanoDRepType, CardanoDerivationType, CardanoGetAddress, CardanoGetNativeScriptHash, CardanoGetPublicKey, CardanoMessageSignature, CardanoNativeScript, CardanoNativeScriptHash, CardanoNativeScriptHashDisplayFormat, CardanoNativeScriptType, CardanoPoolMetadataType, CardanoPoolOwner, CardanoPoolParametersType, CardanoPoolRelayParameters, CardanoPoolRelayType, CardanoPublicKey, CardanoSignMessage, CardanoSignTxFinished, CardanoSignTxInit, CardanoToken, CardanoTxAuxiliaryData, CardanoTxAuxiliaryDataSupplement, CardanoTxAuxiliaryDataSupplementType, CardanoTxBodyHash, CardanoTxCertificate, CardanoTxCollateralInput, CardanoTxHostAck, CardanoTxInlineDatumChunk, CardanoTxInput, CardanoTxItemAck, CardanoTxMint, CardanoTxOutput, CardanoTxOutputSerializationFormat, CardanoTxReferenceInput, CardanoTxReferenceScriptChunk, CardanoTxRequiredSigner, CardanoTxSigningMode, CardanoTxWithdrawal, CardanoTxWitnessRequest, CardanoTxWitnessResponse, CardanoTxWitnessType, ChangeOutputScriptType, ChangePin, ChangeWipeCode, CipherKeyValue, CipheredKeyValue, CoinJoinRequest, CoinPurchaseMemo, CommandFlags, ConfluxAddress, ConfluxGetAddress, ConfluxMessageSignature, ConfluxSignMessage, ConfluxSignMessageCIP23, ConfluxSignTx, ConfluxTxAck, ConfluxTxRequest, CosmosAddress, CosmosGetAddress, CosmosSignTx, CosmosSignedTx, DecredStakingSpendType, Deprecated_PassphraseStateAck, Deprecated_PassphraseStateRequest, DevGetOnboardingStatus, DevOnboardingStage, DevOnboardingStatus, DeviceBackToBoot, DeviceCertificate, DeviceCertificateRead, DeviceCertificateSign, DeviceCertificateSignature, DeviceCertificateWrite, DeviceCoprocessorInfo, DeviceEraseSector, DeviceErrorCode, DeviceFactoryAck, DeviceFactoryInfo, DeviceFactoryInfoGet, DeviceFactoryInfoManufactureTime, DeviceFactoryInfoSet, DeviceFactoryPermanentLock, DeviceFactoryTest, DeviceFirmwareImageInfo, DeviceFirmwareTarget, DeviceFirmwareTargetType, DeviceFirmwareUpdateRecord, DeviceFirmwareUpdateRecordFields, DeviceFirmwareUpdateRequest, DeviceFirmwareUpdateStatus, DeviceFirmwareUpdateStatusGet, DeviceFirmwareUpdateTaskStatus, DeviceHardwareInfo, DeviceInfo, DeviceInfoGet, DeviceInfoSettings, DeviceInfoTargets, DeviceInfoTypes, DeviceMainMcuInfo, DeviceReboot, DeviceRebootType, DeviceSEInfo, DeviceSEState, DeviceSeType, DeviceSession, DeviceSessionAskPin, DeviceSessionGet, DeviceSessionPinResult, 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_OutputScriptType, Enum_PinMatrixRequestType, Enum_RequestType, Enum_SafetyCheckLevel, Enum_WordRequestType, EosActionBuyRam, EosActionBuyRamBytes, EosActionCommon, EosActionDelegate, EosActionDeleteAuth, EosActionLinkAuth, EosActionNewAccount, EosActionRefund, EosActionSellRam, EosActionTransfer, EosActionUndelegate, EosActionUnknown, EosActionUnlinkAuth, EosActionUpdateAuth, EosActionVoteProducer, EosAsset, EosAuthorization, EosAuthorizationAccount, EosAuthorizationKey, EosAuthorizationWait, EosGetPublicKey, EosPermissionLevel, EosPublicKey, EosSignTx, EosSignedTx, EosTxActionAck, EosTxActionRequest, EosTxHeader, EthereumAccessList, EthereumAccessListOneKey, EthereumAddress, EthereumAddressOneKey, EthereumAuthorizationOneKey, EthereumAuthorizationSignature, EthereumDataType, EthereumDataTypeOneKey, EthereumDefinitionType, EthereumDefinitions, EthereumFieldType, EthereumFieldTypeOneKey, EthereumGetAddress, EthereumGetAddressOneKey, EthereumGetPublicKey, EthereumGetPublicKeyOneKey, EthereumGnosisSafeTxAck, EthereumGnosisSafeTxOperation, EthereumGnosisSafeTxRequest, EthereumMessageSignature, EthereumMessageSignatureOneKey, EthereumNetworkInfo, EthereumPublicKey, EthereumPublicKeyOneKey, EthereumSignMessage, EthereumSignMessageEIP712, EthereumSignMessageOneKey, EthereumSignTx, EthereumSignTxEIP1559, EthereumSignTxEIP1559OneKey, EthereumSignTxEIP7702OneKey, EthereumSignTxOneKey, EthereumSignTypedData, EthereumSignTypedDataOneKey, EthereumSignTypedDataQR, EthereumSignTypedHash, EthereumSignTypedHashOneKey, EthereumStructMember, EthereumStructMemberOneKey, EthereumTokenInfo, EthereumTxAck, EthereumTxAckOneKey, EthereumTxRequest, EthereumTxRequestOneKey, EthereumTypedDataSignature, EthereumTypedDataSignatureOneKey, EthereumTypedDataStructAck, EthereumTypedDataStructAckOneKey, EthereumTypedDataStructRequest, EthereumTypedDataStructRequestOneKey, EthereumTypedDataValueAck, EthereumTypedDataValueAckOneKey, EthereumTypedDataValueRequest, EthereumTypedDataValueRequestOneKey, EthereumVerifyMessage, EthereumVerifyMessageOneKey, ExportType, Failure, FailureType, Features, FileInfo, FileInfoList, FilecoinAddress, FilecoinGetAddress, FilecoinSignTx, FilecoinSignedTx, FilesystemDir, FilesystemDirList, FilesystemDirMake, FilesystemDirRemove, FilesystemFile, FilesystemFileDelete, FilesystemFileRead, FilesystemFileWrite, FilesystemFormat, FilesystemPathInfo, FilesystemPathInfoQuery, FilesystemPermissionFix, FirmwareErase, FirmwareErase_ex, FirmwareHash, FirmwareRequest, FirmwareUpdateEmmc, FirmwareUpload, GetAddress, GetDeviceInfo, GetECDHSessionKey, GetEntropy, GetFeatures, GetFirmwareHash, GetNextU2FCounter, GetNonce, GetOwnershipId, GetOwnershipProof, GetPassphraseState, GetPublicKey, GetPublicKeyMultiple, GetWallpaper, HDNodePathType, HDNodeType, IdentityType, Initialize, InputScriptType, InternalInputScriptType, InternalMyAddressRequest, KaspaAddress, KaspaGetAddress, KaspaSignTx, KaspaSignedTx, KaspaTxInputAck, KaspaTxInputRequest, ListResDir, LnurlAuth, LnurlAuthResp, LockDevice, LogBlockCommand, LowLevelDevice, LowlevelTransportSharedPlugin, MessageFromOneKey, MessageKey, MessageResponse, MessageResponseMap, MessageSignature, MessageType, messages as Messages, MoneroAccountPublicAddress, MoneroAddress, MoneroExportedKeyImage, MoneroGetAddress, MoneroGetTxKeyAck, MoneroGetTxKeyRequest, MoneroGetWatchKey, MoneroKeyImageExportInitAck, MoneroKeyImageExportInitRequest, MoneroKeyImageSyncFinalAck, MoneroKeyImageSyncFinalRequest, MoneroKeyImageSyncStepAck, MoneroKeyImageSyncStepRequest, MoneroLiveRefreshFinalAck, MoneroLiveRefreshFinalRequest, MoneroLiveRefreshStartAck, MoneroLiveRefreshStartRequest, MoneroLiveRefreshStepAck, MoneroLiveRefreshStepRequest, MoneroMultisigKLRki, MoneroNetworkType, MoneroOutputEntry, MoneroRctKeyPublic, MoneroRingCtSig, MoneroSubAddressIndicesList, MoneroTransactionAllInputsSetAck, MoneroTransactionAllInputsSetRequest, MoneroTransactionAllOutSetAck, MoneroTransactionAllOutSetRequest, MoneroTransactionData, MoneroTransactionDestinationEntry, MoneroTransactionFinalAck, MoneroTransactionFinalRequest, MoneroTransactionInitAck, MoneroTransactionInitRequest, MoneroTransactionInputViniAck, MoneroTransactionInputViniRequest, MoneroTransactionInputsPermutationAck, MoneroTransactionInputsPermutationRequest, MoneroTransactionRsigData, MoneroTransactionSetInputAck, MoneroTransactionSetInputRequest, MoneroTransactionSetOutputAck, MoneroTransactionSetOutputRequest, MoneroTransactionSignInputAck, MoneroTransactionSignInputRequest, MoneroTransactionSourceEntry, MoneroTransferDetails, MoneroWatchKey, MultisigRedeemScriptType, NEMAddress, NEMAggregateModification, NEMCosignatoryModification, NEMDecryptMessage, NEMDecryptedMessage, NEMGetAddress, NEMImportanceTransfer, NEMImportanceTransferMode, NEMModificationType, NEMMosaic, NEMMosaicCreation, NEMMosaicDefinition, NEMMosaicLevy, NEMMosaicSupplyChange, NEMProvisionNamespace, NEMSignTx, NEMSignedTx, NEMSupplyChangeType, NEMTransactionCommon, NEMTransfer, NFTWriteData, NFTWriteInfo, NearAddress, NearGetAddress, NearSignTx, NearSignedTx, NeoAddress, NeoGetAddress, NeoSignTx, NeoSignedTx, NervosAddress, NervosGetAddress, NervosSignTx, NervosSignedTx, NervosTxAck, NervosTxRequest, NexaAddress, NexaGetAddress, NexaSignTx, NexaSignedTx, NexaTxInputAck, NexaTxInputRequest, NextU2FCounter, Nonce, NostrDecryptMessage, NostrDecryptedMessage, NostrEncryptMessage, NostrEncryptedMessage, NostrGetPublicKey, NostrPublicKey, NostrSignEvent, NostrSignSchnorr, NostrSignedEvent, NostrSignedSchnorr, OneKeyDeviceCommType, OneKeyDeviceInfo, OneKeyDeviceInfoBase, OneKeyDeviceInfoWithSession, OneKeyDeviceType, OneKeyMobileDeviceInfo, OneKeySEState, OneKeySeType, OnekeyFeatures, OnekeyGetFeatures, OutputScriptType, OwnershipId, OwnershipProof, PROTOCOL_V1_CHUNK_PAYLOAD_SIZE, PROTOCOL_V1_ENVELOPE_HEADER_SIZE, PROTOCOL_V1_HEADER_BYTE, PROTOCOL_V1_MESSAGE_HEADER_SIZE, PROTOCOL_V1_REPORT_ID, PROTOCOL_V1_USB_PACKET_SIZE, PROTOCOL_V2_BLE_FILE_CHUNK_SIZE, PROTOCOL_V2_BLE_FILE_READ_CHUNK_SIZE, PROTOCOL_V2_BLE_FRAME_MAX_BYTES, PROTOCOL_V2_CHANNEL_BLE_UART, PROTOCOL_V2_CHANNEL_SOCKET, PROTOCOL_V2_CHANNEL_USB, PROTOCOL_V2_FILE_CHUNK_SIZE, PROTOCOL_V2_FRAME_MAX_BYTES, PROTOCOL_V2_PACKET_SRC_COMMAND, PROTOCOL_V2_SYS_MESSAGE_THRESHOLD, PROTOCOL_V2_WEBUSB_FILE_CHUNK_SIZE, PROTOCOL_V2_WRITE_WATCHDOG_TIMEOUT_MS, PassphraseAck, PassphraseRequest, PassphraseState, Path, PaymentRequestMemo, PinMatrixAck, PinMatrixRequest, PinMatrixRequestType, Ping, PolkadotAddress, PolkadotGetAddress, PolkadotSignTx, PolkadotSignedTx, PortfolioUpdate, PreauthorizedRequest, PrevInput, PrevOutput, PrevTx, ProtocolInfo, ProtocolInfoRequest, ProtocolType, ProtocolV1, ProtocolV2, ProtocolV2CallContext, ProtocolV2CallOptions, ProtocolV2DeviceInfo, ProtocolV2FrameAssembler, ProtocolV2LinkAdapter, ProtocolV2LinkErrorClassification, ProtocolV2LinkManager, ProtocolV2LinkManagerOptions, ProtocolV2Schemas, ProtocolV2SequenceCursor, ProtocolV2Session, ProtocolV2SessionOptions, ProtocolV2UsbTransportBase, ProtocolV2UsbTransportBaseOptions, PublicKey, PublicKeyMultiple, ReadSEPublicCert, ReadSEPublicKey, Reboot, RebootToBoardloader, RebootToBootloader, RebootType, RecoveryDevice, RecoveryDeviceType, RefundMemo, RequestType, ResetDevice, ResourceAck, ResourceRequest, ResourceType, ResourceUpdate, ResourceUpload, RippleAddress, RippleGetAddress, RipplePayment, RippleSignTx, RippleSignedTx, SEMessageSignature, SEPublicCert, SEPublicKey, SESignMessage, SafetyCheckLevel, ScdoAddress, ScdoGetAddress, ScdoSignMessage, ScdoSignTx, ScdoSignedMessage, ScdoSignedTx, ScdoTxAck, SdProtect, SdProtectOperationType, SeedRequestType, SelfTest, SetBusy, SetU2FCounter, SetWallpaper, SignIdentity, SignMessage, SignPsbt, SignTx, SignedIdentity, SignedPsbt, SolanaAddress, SolanaGetAddress, SolanaMessageSignature, SolanaOffChainMessageFormat, SolanaOffChainMessageVersion, SolanaSignOffChainMessage, SolanaSignTx, SolanaSignUnsafeMessage, SolanaSignedTx, SolanaTxATADetails, SolanaTxExtraInfo, SpiFlashData, SpiFlashRead, SpiFlashWrite, StarcoinAddress, StarcoinGetAddress, StarcoinGetPublicKey, StarcoinMessageSignature, StarcoinPublicKey, StarcoinSignMessage, StarcoinSignTx, StarcoinSignedTx, StarcoinVerifyMessage, StartSession, StellarAccountMergeOp, StellarAddress, StellarAllowTrustOp, StellarAsset, StellarAssetType, StellarBumpSequenceOp, StellarChangeTrustOp, StellarCreateAccountOp, StellarCreatePassiveSellOfferOp, StellarGetAddress, StellarInvokeHostFunctionOp, StellarManageBuyOfferOp, StellarManageDataOp, StellarManageSellOfferOp, StellarMemoType, StellarPathPaymentStrictReceiveOp, StellarPathPaymentStrictSendOp, StellarPaymentOp, StellarRequestType, StellarSetOptionsOp, StellarSignTx, StellarSignedTx, StellarSignerType, StellarSorobanDataAck, StellarSorobanDataRequest, StellarTxOpRequest, Success, SuiAddress, SuiGetAddress, SuiMessageSignature, SuiSignMessage, SuiSignTx, SuiSignedTx, SuiTxAck, SuiTxRequest, TextMemo, TezosAddress, TezosBallotOp, TezosBallotType, TezosContractID, TezosContractType, TezosDelegationOp, TezosGetAddress, TezosGetPublicKey, TezosManagerTransfer, TezosOriginationOp, TezosParametersManager, TezosProposalOp, TezosPublicKey, TezosRevealOp, TezosSignTx, TezosSignedTx, TezosTransactionOp, TonAddress, TonGetAddress, TonSignData, TonSignDataType, TonSignMessage, TonSignProof, TonSignedData, TonSignedMessage, TonSignedProof, TonTxAck, TonWalletVersion, TonWorkChain, Transport, TransportCallOptions, TronAddress, TronCancelAllUnfreezeV2Contract, TronContract, TronDelegateResourceContract, TronFreezeBalanceContract, TronFreezeBalanceV2Contract, TronGetAddress, TronMessageSignature, TronMessageType, TronResourceCode, TronSignMessage, TronSignTx, TronSignedTx, TronTransferContract, TronTriggerSmartContract, TronUnDelegateResourceContract, TronUnfreezeBalanceContract, TronUnfreezeBalanceV2Contract, TronVoteWitnessContract, TronWithdrawBalanceContract, TronWithdrawExpireUnfreezeContract, TxAck, TxAckInput, TxAckInputWrapper, TxAckOutput, TxAckOutputWrapper, TxAckPaymentRequest, TxAckPrevExtraData, TxAckPrevExtraDataWrapper, TxAckPrevInput, TxAckPrevInputWrapper, TxAckPrevMeta, TxAckPrevOutput, TxAckPrevOutputWrapper, TxAckResponse, TxInput, TxInputType, TxOutput, TxOutputBinType, TxOutputType, TxRequest, TxRequestDetailsType, TxRequestSerializedType, TypedCall, UintType, UnLockDevice, UnLockDeviceResponse, UnlockPath, UnlockedPathRequest, UpgradeFileHeader, VerifyMessage, ViewAmount, ViewDetail, ViewRawData, ViewSignLayout, ViewSignPage, ViewTip, ViewTipType, ViewVerifyPage, Vote, WL_OperationType, Wallpaper, WallpaperTarget, WipeDevice, WordAck, WordRequest, WordRequestType, WriteSEPrivateKey, WriteSEPublicCert, ZoomRequest, bytesToHex, concatUint8Arrays, _default as default, experimental_field, experimental_message, facotry, getErrorMessage, hexToBytes, probeProtocolV2, index as protocolV1, protocolV2Codec as protocolV2, withProtocolTimeout };
6932
+ 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, 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, createTransportCallLog, _default as default, experimental_field, experimental_message, facotry, getErrorMessage, getSafeTransportLogPayload, hexToBytes, isProtocolV2HighThroughputCall, isProtocolV2LinkError, probeProtocolV2, index as protocolV1, protocolV2Codec as protocolV2, shouldSuppressHighVolumeCallLog, withProtocolTimeout, writeProtocolV2BleFrame };