@onekeyfe/hd-transport 1.2.0-alpha.4 → 1.2.0-alpha.41

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 (68) hide show
  1. package/__tests__/messages.test.js +176 -0
  2. package/__tests__/protocol-v2-ble-frame-writer.test.js +119 -0
  3. package/__tests__/protocol-v2-link-manager.test.js +437 -0
  4. package/__tests__/protocol-v2-usb-transport-base.test.js +330 -0
  5. package/__tests__/protocol-v2.test.js +465 -56
  6. package/__tests__/transport-log.test.js +79 -0
  7. package/dist/constants.d.ts +4 -1
  8. package/dist/constants.d.ts.map +1 -1
  9. package/dist/index.d.ts +784 -198
  10. package/dist/index.d.ts.map +1 -1
  11. package/dist/index.js +820 -227
  12. package/dist/protocols/index.d.ts +14 -5
  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/constants.d.ts +1 -0
  17. package/dist/protocols/v2/constants.d.ts.map +1 -1
  18. package/dist/protocols/v2/decode.d.ts +13 -2
  19. package/dist/protocols/v2/decode.d.ts.map +1 -1
  20. package/dist/protocols/v2/encode.d.ts +2 -3
  21. package/dist/protocols/v2/encode.d.ts.map +1 -1
  22. package/dist/protocols/v2/errors.d.ts +8 -0
  23. package/dist/protocols/v2/errors.d.ts.map +1 -0
  24. package/dist/protocols/v2/frame-assembler.d.ts.map +1 -1
  25. package/dist/protocols/v2/index.d.ts +2 -1
  26. package/dist/protocols/v2/index.d.ts.map +1 -1
  27. package/dist/protocols/v2/link-manager.d.ts +39 -0
  28. package/dist/protocols/v2/link-manager.d.ts.map +1 -0
  29. package/dist/protocols/v2/sequence-cursor.d.ts +5 -0
  30. package/dist/protocols/v2/sequence-cursor.d.ts.map +1 -0
  31. package/dist/protocols/v2/session.d.ts +19 -5
  32. package/dist/protocols/v2/session.d.ts.map +1 -1
  33. package/dist/protocols/v2/usb-transport-base.d.ts +32 -0
  34. package/dist/protocols/v2/usb-transport-base.d.ts.map +1 -0
  35. package/dist/serialization/protobuf/decode.d.ts.map +1 -1
  36. package/dist/types/messages.d.ts +376 -110
  37. package/dist/types/messages.d.ts.map +1 -1
  38. package/dist/types/transport.d.ts +14 -3
  39. package/dist/types/transport.d.ts.map +1 -1
  40. package/dist/utils/transportLog.d.ts +9 -0
  41. package/dist/utils/transportLog.d.ts.map +1 -0
  42. package/messages-protocol-v2.json +1155 -481
  43. package/package.json +3 -3
  44. package/scripts/protobuf-build.sh +86 -208
  45. package/scripts/protobuf-patches/index.js +1 -0
  46. package/scripts/protobuf-types.js +19 -1
  47. package/src/constants.ts +28 -14
  48. package/src/index.ts +12 -1
  49. package/src/protocols/index.ts +39 -40
  50. package/src/protocols/v2/ble-frame-writer.ts +77 -0
  51. package/src/protocols/v2/constants.ts +1 -0
  52. package/src/protocols/v2/crc8.ts +1 -1
  53. package/src/protocols/v2/decode.ts +71 -37
  54. package/src/protocols/v2/encode.ts +2 -28
  55. package/src/protocols/v2/errors.ts +25 -0
  56. package/src/protocols/v2/frame-assembler.ts +6 -4
  57. package/src/protocols/v2/index.ts +2 -1
  58. package/src/protocols/v2/link-manager.ts +209 -0
  59. package/src/protocols/v2/sequence-cursor.ts +10 -0
  60. package/src/protocols/v2/session.ts +157 -200
  61. package/src/protocols/v2/usb-transport-base.ts +213 -0
  62. package/src/serialization/protobuf/decode.ts +4 -1
  63. package/src/types/messages.ts +458 -142
  64. package/src/types/transport.ts +14 -3
  65. package/src/utils/transportLog.ts +102 -0
  66. package/dist/protocols/v2/debug.d.ts +0 -13
  67. package/dist/protocols/v2/debug.d.ts.map +0 -1
  68. package/src/protocols/v2/debug.ts +0 -26
package/dist/index.d.ts CHANGED
@@ -60,33 +60,84 @@ declare const PROTO_HEAD_CRC_SIZE = 8;
60
60
  declare const CRC8_INIT = 48;
61
61
  declare const PACKET_SIZE = 4096;
62
62
  declare const PROTO_DATA_TYPE_PACKET = 0;
63
+ declare const PROTO_DATA_TYPE_ACK = 1;
63
64
 
64
65
  declare const CRC8_TABLE: Uint8Array;
66
+ /**
67
+ * Compute CRC-8 over the first len bytes using the firmware-compatible initial value.
68
+ */
65
69
  declare function crc8(data: Uint8Array, len: number): number;
66
70
 
67
- type ProtocolV2DebugLogger = {
68
- debug?: (...args: unknown[]) => void;
69
- };
70
- type ProtocolV2FrameDebugOptions = {
71
- logger?: ProtocolV2DebugLogger;
72
- logPrefix?: string;
73
- context?: string;
74
- messageName?: string;
75
- messageTypeId?: number;
76
- pbPayloadLength?: number;
77
- };
78
- declare function logProtocolV2Debug(options: ProtocolV2FrameDebugOptions | undefined, stage: string, details: Record<string, unknown>): void;
79
-
71
+ /**
72
+ * Advance a Protocol V2 sequence counter: 1-255, wraps around skipping 0.
73
+ */
80
74
  declare function nextProtoSeq(current: number): number;
81
- declare function encodeFrame(payload: Uint8Array | null, packetSrc?: number, router?: number, debugOptions?: ProtocolV2FrameDebugOptions, seq?: number): Uint8Array;
82
- declare function encodeProtobufFrame(messageTypeId: number, pbPayload: Uint8Array, packetSrc?: number, router?: number, debugOptions?: ProtocolV2FrameDebugOptions, seq?: number): Uint8Array;
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
+ */
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
+ */
97
+ declare function encodeProtobufFrame(messageTypeId: number, pbPayload: Uint8Array, packetSrc?: number, router?: number, seq?: number): Uint8Array;
83
98
 
84
99
  interface ProtoV2Frame {
100
+ /** Little-endian message type ID */
85
101
  messageTypeId: number;
102
+ /** Raw protobuf-encoded payload (bytes after the 2-byte messageTypeId) */
86
103
  pbPayload: Uint8Array;
104
+ /** Sequence number from the frame header */
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;
112
+ }
113
+ type ProtoV2FrameHeader = {
114
+ frameLen: number;
115
+ router: number;
116
+ packetSrc: number;
117
+ dataType: number;
87
118
  seq: number;
119
+ };
120
+ declare function inspectFrameHeader(data: Uint8Array): ProtoV2FrameHeader;
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
+ */
132
+ declare function decodeFrame(data: Uint8Array): ProtoV2Frame;
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);
88
139
  }
89
- declare function decodeFrame(data: Uint8Array, debugOptions?: ProtocolV2FrameDebugOptions): ProtoV2Frame;
140
+ declare const isProtocolV2LinkError: (error: unknown) => error is ProtocolV2LinkError;
90
141
 
91
142
  declare function concatUint8Arrays(arrays: Uint8Array[]): Uint8Array;
92
143
  declare class ProtocolV2FrameAssembler {
@@ -95,30 +146,57 @@ declare class ProtocolV2FrameAssembler {
95
146
  constructor(maxFrameBytes?: number);
96
147
  reset(): void;
97
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
+ */
98
154
  drain(chunk?: Uint8Array): Uint8Array[];
99
155
  private append;
100
156
  private extractFrame;
101
157
  }
102
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
+
103
174
  declare const protocolV2Codec_PROTO_HEAD_SOF: typeof PROTO_HEAD_SOF;
104
175
  declare const protocolV2Codec_PROTO_PRE_HEAD_SIZE: typeof PROTO_PRE_HEAD_SIZE;
105
176
  declare const protocolV2Codec_PROTO_HEAD_CRC_SIZE: typeof PROTO_HEAD_CRC_SIZE;
106
177
  declare const protocolV2Codec_CRC8_INIT: typeof CRC8_INIT;
107
178
  declare const protocolV2Codec_PACKET_SIZE: typeof PACKET_SIZE;
108
179
  declare const protocolV2Codec_PROTO_DATA_TYPE_PACKET: typeof PROTO_DATA_TYPE_PACKET;
180
+ declare const protocolV2Codec_PROTO_DATA_TYPE_ACK: typeof PROTO_DATA_TYPE_ACK;
109
181
  declare const protocolV2Codec_CRC8_TABLE: typeof CRC8_TABLE;
110
182
  declare const protocolV2Codec_crc8: typeof crc8;
111
- type protocolV2Codec_ProtocolV2DebugLogger = ProtocolV2DebugLogger;
112
- type protocolV2Codec_ProtocolV2FrameDebugOptions = ProtocolV2FrameDebugOptions;
113
- declare const protocolV2Codec_logProtocolV2Debug: typeof logProtocolV2Debug;
114
183
  declare const protocolV2Codec_nextProtoSeq: typeof nextProtoSeq;
115
184
  declare const protocolV2Codec_encodeFrame: typeof encodeFrame;
116
185
  declare const protocolV2Codec_encodeProtobufFrame: typeof encodeProtobufFrame;
117
186
  type protocolV2Codec_ProtoV2Frame = ProtoV2Frame;
187
+ type protocolV2Codec_ProtoV2FrameHeader = ProtoV2FrameHeader;
188
+ declare const protocolV2Codec_inspectFrameHeader: typeof inspectFrameHeader;
189
+ declare const protocolV2Codec_isAckFrame: typeof isAckFrame;
118
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;
119
195
  declare const protocolV2Codec_concatUint8Arrays: typeof concatUint8Arrays;
120
196
  type protocolV2Codec_ProtocolV2FrameAssembler = ProtocolV2FrameAssembler;
121
197
  declare const protocolV2Codec_ProtocolV2FrameAssembler: typeof ProtocolV2FrameAssembler;
198
+ type protocolV2Codec_ProtocolV2BleFrameWriterOptions = ProtocolV2BleFrameWriterOptions;
199
+ declare const protocolV2Codec_writeProtocolV2BleFrame: typeof writeProtocolV2BleFrame;
122
200
  declare namespace protocolV2Codec {
123
201
  export {
124
202
  protocolV2Codec_PROTO_HEAD_SOF as PROTO_HEAD_SOF,
@@ -127,18 +205,24 @@ declare namespace protocolV2Codec {
127
205
  protocolV2Codec_CRC8_INIT as CRC8_INIT,
128
206
  protocolV2Codec_PACKET_SIZE as PACKET_SIZE,
129
207
  protocolV2Codec_PROTO_DATA_TYPE_PACKET as PROTO_DATA_TYPE_PACKET,
208
+ protocolV2Codec_PROTO_DATA_TYPE_ACK as PROTO_DATA_TYPE_ACK,
130
209
  protocolV2Codec_CRC8_TABLE as CRC8_TABLE,
131
210
  protocolV2Codec_crc8 as crc8,
132
- protocolV2Codec_ProtocolV2DebugLogger as ProtocolV2DebugLogger,
133
- protocolV2Codec_ProtocolV2FrameDebugOptions as ProtocolV2FrameDebugOptions,
134
- protocolV2Codec_logProtocolV2Debug as logProtocolV2Debug,
135
211
  protocolV2Codec_nextProtoSeq as nextProtoSeq,
136
212
  protocolV2Codec_encodeFrame as encodeFrame,
137
213
  protocolV2Codec_encodeProtobufFrame as encodeProtobufFrame,
138
214
  protocolV2Codec_ProtoV2Frame as ProtoV2Frame,
215
+ protocolV2Codec_ProtoV2FrameHeader as ProtoV2FrameHeader,
216
+ protocolV2Codec_inspectFrameHeader as inspectFrameHeader,
217
+ protocolV2Codec_isAckFrame as isAckFrame,
139
218
  protocolV2Codec_decodeFrame as decodeFrame,
219
+ protocolV2Codec_ProtocolV2LinkErrorCode as ProtocolV2LinkErrorCode,
220
+ protocolV2Codec_ProtocolV2LinkError as ProtocolV2LinkError,
221
+ protocolV2Codec_isProtocolV2LinkError as isProtocolV2LinkError,
140
222
  protocolV2Codec_concatUint8Arrays as concatUint8Arrays,
141
223
  protocolV2Codec_ProtocolV2FrameAssembler as ProtocolV2FrameAssembler,
224
+ protocolV2Codec_ProtocolV2BleFrameWriterOptions as ProtocolV2BleFrameWriterOptions,
225
+ protocolV2Codec_writeProtocolV2BleFrame as writeProtocolV2BleFrame,
142
226
  };
143
227
  }
144
228
 
@@ -150,10 +234,8 @@ type ProtocolV2Schemas$1 = {
150
234
  type ProtocolV2FrameOptions = {
151
235
  packetSrc?: number;
152
236
  router?: number;
237
+ /** Sequence number (1-255). Managed per-session by ProtocolV2Session. */
153
238
  seq?: number;
154
- logger?: ProtocolV2DebugLogger;
155
- logPrefix?: string;
156
- context?: string;
157
239
  };
158
240
  declare const ProtocolV1: {
159
241
  encodeEnvelope: typeof encodeEnvelopeMessage;
@@ -167,8 +249,20 @@ declare const ProtocolV1: {
167
249
  decodeMessage: typeof decodeMessage;
168
250
  };
169
251
  declare const ProtocolV2: {
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
+ };
170
264
  encodeFrame(schemas: ProtocolV2Schemas$1, name: string, data: Record<string, unknown>, options?: ProtocolV2FrameOptions): Uint8Array;
171
- decodeFrame(schemas: ProtocolV2Schemas$1, frame: Uint8Array, options?: Pick<ProtocolV2FrameOptions, 'logger' | 'logPrefix' | 'context'>): {
265
+ decodeFrame(schemas: ProtocolV2Schemas$1, frame: Uint8Array): {
172
266
  message: {
173
267
  [key: string]: any;
174
268
  };
@@ -180,6 +274,14 @@ declare const ProtocolV2: {
180
274
  };
181
275
  };
182
276
 
277
+ declare const TRANSPORT_EVENT: {
278
+ readonly DEVICE_DISCONNECT: "transport-device-disconnect";
279
+ };
280
+ type TransportDeviceDisconnectEvent = {
281
+ id: string;
282
+ connectId: string;
283
+ name: string | null;
284
+ };
183
285
  type ProtocolType = 'V1' | 'V2';
184
286
  type OneKeyDeviceCommType = 'usb' | 'webusb' | 'ble' | 'webble' | 'electron-ble' | 'bridge' | 'emulator';
185
287
  type OneKeyUsbDeviceInfo = {
@@ -206,6 +308,7 @@ type AcquireInput = {
206
308
  uuid?: string;
207
309
  forceCleanRunPromise?: boolean;
208
310
  expectedProtocol?: ProtocolType;
311
+ protocolHint?: ProtocolType;
209
312
  };
210
313
  type MessageFromOneKey = {
211
314
  type: string;
@@ -233,7 +336,7 @@ type Transport = {
233
336
  getProtocolType: (path: string) => ProtocolType | undefined;
234
337
  promptDeviceAccess?: () => Promise<USBDevice | BluetoothDevice | null>;
235
338
  init: ITransportInitFn;
236
- stop(): void;
339
+ stop(): void | Promise<void>;
237
340
  configured: boolean;
238
341
  version: string;
239
342
  name: string;
@@ -246,8 +349,10 @@ type LowLevelDevice = OneKeyDeviceInfoBase & {
246
349
  };
247
350
  type LowlevelTransportSharedPlugin = {
248
351
  enumerate: () => Promise<LowLevelDevice[]>;
249
- send: (uuid: string, data: string) => Promise<void>;
250
- receive: () => Promise<string>;
352
+ send: (uuid: string, data: string, options?: {
353
+ withoutResponse?: boolean;
354
+ }) => Promise<void>;
355
+ receive: (uuid?: string) => Promise<string>;
251
356
  connect: (uuid: string) => Promise<void>;
252
357
  disconnect: (uuid: string) => Promise<void>;
253
358
  init: () => Promise<void>;
@@ -1903,11 +2008,17 @@ type KaspaAddress = {
1903
2008
  };
1904
2009
  type KaspaSignTx = {
1905
2010
  address_n: number[];
1906
- raw_message: string;
2011
+ raw_message?: string;
1907
2012
  scheme?: string;
1908
2013
  prefix?: string;
1909
2014
  input_count?: number;
1910
2015
  use_tweak?: boolean;
2016
+ output_count?: number;
2017
+ version?: number;
2018
+ lock_time?: number;
2019
+ subnetwork_id?: string;
2020
+ gas?: number;
2021
+ payload_length?: number;
1911
2022
  };
1912
2023
  type KaspaTxInputRequest = {
1913
2024
  request_index: number;
@@ -1917,6 +2028,77 @@ type KaspaTxInputAck = {
1917
2028
  address_n: number[];
1918
2029
  raw_message: string;
1919
2030
  };
2031
+ type KaspaOutpoint = {
2032
+ tx_id: string;
2033
+ index: number;
2034
+ };
2035
+ declare enum Enum_KaspaInputScriptType {
2036
+ KASPA_SPEND_P2PK_SCHNORR = 0,
2037
+ KASPA_SPEND_P2PK_ECDSA = 1
2038
+ }
2039
+ type KaspaInputScriptType = keyof typeof Enum_KaspaInputScriptType;
2040
+ declare enum Enum_KaspaOutputScriptType {
2041
+ KASPA_PAYTOADDRESS = 0,
2042
+ KASPA_PAYTOCHANGE = 1
2043
+ }
2044
+ type KaspaOutputScriptType = keyof typeof Enum_KaspaOutputScriptType;
2045
+ declare enum Enum_KaspaRequestType {
2046
+ KASPA_TX_INPUT = 0,
2047
+ KASPA_TX_OUTPUT = 1,
2048
+ KASPA_TX_PAYLOAD = 2,
2049
+ KASPA_TX_FINISHED = 3,
2050
+ KASPA_TX_PREV_META = 4
2051
+ }
2052
+ type KaspaRequestType = keyof typeof Enum_KaspaRequestType;
2053
+ type KaspaTxRequestSignature = {
2054
+ signature_index: number;
2055
+ signature: string;
2056
+ };
2057
+ type KaspaTxRequest = {
2058
+ request_type: KaspaRequestType;
2059
+ request_index?: number;
2060
+ signature?: KaspaTxRequestSignature;
2061
+ request_payload_length?: number;
2062
+ prev_tx_id?: string;
2063
+ };
2064
+ type KaspaTxAckInput = {
2065
+ address_n: number[];
2066
+ previous_outpoint: KaspaOutpoint;
2067
+ amount: UintType;
2068
+ sequence: number;
2069
+ sig_op_count: number;
2070
+ script_type?: KaspaInputScriptType;
2071
+ use_tweak?: boolean;
2072
+ };
2073
+ type KaspaTxAckOutput = {
2074
+ script_type?: KaspaOutputScriptType;
2075
+ amount: UintType;
2076
+ address_n: number[];
2077
+ address?: string;
2078
+ scheme?: string;
2079
+ use_tweak?: boolean;
2080
+ };
2081
+ type KaspaTxAckPayloadChunk = {
2082
+ payload_chunk: string;
2083
+ };
2084
+ type KaspaTxAckPrevMeta = {
2085
+ version: number;
2086
+ input_count: number;
2087
+ output_count: number;
2088
+ lock_time: number;
2089
+ subnetwork_id: string;
2090
+ gas: number;
2091
+ payload_length: number;
2092
+ };
2093
+ type KaspaTxAckPrevInput = {
2094
+ previous_outpoint: KaspaOutpoint;
2095
+ sequence: number;
2096
+ };
2097
+ type KaspaTxAckPrevOutput = {
2098
+ amount: UintType;
2099
+ script_version: number;
2100
+ script_public_key: string;
2101
+ };
1920
2102
  type KaspaSignedTx = {
1921
2103
  signature: string;
1922
2104
  };
@@ -1943,7 +2125,7 @@ declare enum Enum_SafetyCheckLevel {
1943
2125
  PromptAlways = 1,
1944
2126
  PromptTemporarily = 2
1945
2127
  }
1946
- type SafetyCheckLevel = keyof typeof Enum_SafetyCheckLevel;
2128
+ type SafetyCheckLevel = keyof typeof Enum_SafetyCheckLevel | Enum_SafetyCheckLevel;
1947
2129
  type Initialize = {
1948
2130
  session_id?: string;
1949
2131
  _skip_passphrase?: boolean;
@@ -2082,6 +2264,19 @@ type Features = {
2082
2264
  onekey_se04_state?: string | null;
2083
2265
  attach_to_pin_user?: boolean;
2084
2266
  unlocked_attach_pin?: boolean;
2267
+ coprocessor_bt_name?: string;
2268
+ coprocessor_version?: string;
2269
+ coprocessor_bt_enable?: boolean;
2270
+ romloader_version?: string;
2271
+ onekey_romloader_version?: string;
2272
+ onekey_romloader_hash?: string;
2273
+ onekey_bootloader_version?: string;
2274
+ onekey_bootloader_hash?: string;
2275
+ onekey_bootloader_build_id?: string;
2276
+ onekey_coprocessor_bt_name?: string;
2277
+ onekey_coprocessor_version?: string;
2278
+ onekey_coprocessor_build_id?: string;
2279
+ onekey_coprocessor_hash?: string;
2085
2280
  };
2086
2281
  type OnekeyFeatures = {
2087
2282
  onekey_device_type?: OneKeyDeviceType;
@@ -2433,8 +2628,6 @@ type UnLockDeviceResponse = {
2433
2628
  };
2434
2629
  type GetPassphraseState = {
2435
2630
  passphrase_state?: string;
2436
- _only_main_pin?: boolean;
2437
- allow_create_attach_pin?: boolean;
2438
2631
  };
2439
2632
  type PassphraseState = {
2440
2633
  passphrase_state?: string;
@@ -3606,16 +3799,12 @@ type TxAckPaymentRequest = {
3606
3799
  amount?: UintType;
3607
3800
  signature: string;
3608
3801
  };
3609
- type InternalMyAddressRequest = {
3610
- coin_type: number;
3611
- chain_id: number;
3612
- account_index: number;
3613
- derive_type: number;
3614
- };
3615
- type StartSession = {
3616
- session_id?: string;
3617
- _skip_passphrase?: boolean;
3618
- derive_cardano?: boolean;
3802
+ type EthereumSignTypedDataQR = {
3803
+ address_n: number[];
3804
+ json_data?: string;
3805
+ chain_id?: number;
3806
+ metamask_v4_compat?: boolean;
3807
+ request_id?: string;
3619
3808
  };
3620
3809
  type SetBusy = {
3621
3810
  expiry_ms?: number;
@@ -3633,21 +3822,6 @@ type Nonce = {
3633
3822
  type WriteSEPrivateKey = {
3634
3823
  private_key: string;
3635
3824
  };
3636
- declare enum WallpaperTarget {
3637
- Home = 0,
3638
- Lock = 1
3639
- }
3640
- type SetWallpaper = {
3641
- target: WallpaperTarget;
3642
- path: string;
3643
- };
3644
- type GetWallpaper = {
3645
- target: WallpaperTarget;
3646
- };
3647
- type Wallpaper = {
3648
- target: WallpaperTarget;
3649
- path: string;
3650
- };
3651
3825
  type UnlockPath = {
3652
3826
  address_n: number[];
3653
3827
  mac?: string;
@@ -3661,44 +3835,40 @@ declare enum MoneroNetworkType {
3661
3835
  STAGENET = 2,
3662
3836
  FAKECHAIN = 3
3663
3837
  }
3664
- type ViewAmount = {
3665
- is_unlimited: boolean;
3666
- num: string;
3667
- };
3668
- type ViewDetail = {
3669
- key: number;
3670
- value: string;
3671
- is_overview: boolean;
3672
- has_icon: boolean;
3673
- };
3674
- declare enum ViewTipType {
3675
- Default = 0,
3676
- Highlight = 1,
3677
- Recommend = 2,
3678
- Warning = 3,
3679
- Danger = 4
3838
+ declare enum UiAnimationType {
3839
+ Unknown = 0,
3840
+ Signing = 1
3680
3841
  }
3681
- type ViewTip = {
3682
- type: ViewTipType;
3683
- text: string;
3684
- };
3685
- type ViewSignPage = {
3686
- title: string;
3687
- amount?: UintType;
3688
- general: ViewDetail[];
3689
- tip?: ViewTip;
3842
+ declare enum UiAnimationCommand {
3843
+ CommandUnknown = 0,
3844
+ Start = 1,
3845
+ Stop = 2,
3846
+ Refresh = 3
3847
+ }
3848
+ type UiAnimationRequest = {
3849
+ command: UiAnimationCommand;
3850
+ type?: UiAnimationType;
3690
3851
  };
3691
- type ViewVerifyPage = {
3692
- title: string;
3693
- address: string;
3694
- path: string;
3852
+ type ProtocolInfoRequest = {
3853
+ eventless_wallet_session?: boolean;
3695
3854
  };
3696
- type ProtocolInfoRequest = {};
3697
3855
  type ProtocolInfo = {
3698
3856
  version: number;
3857
+ build_fingerprint: string;
3699
3858
  supported_messages: number[];
3700
- protobuf_definition?: string;
3701
3859
  };
3860
+ declare enum DeviceErrorCode {
3861
+ DeviceError_None = 0,
3862
+ DeviceError_Busy = 1,
3863
+ DeviceError_NotInitialized = 2,
3864
+ DeviceError_ActionCancelled = 3,
3865
+ DeviceError_PinAlreadyUsed = 4,
3866
+ DeviceError_PersistFailed = 5,
3867
+ DeviceError_SeError = 6,
3868
+ DeviceError_InvalidLanguage = 7,
3869
+ DeviceError_WallpaperNotUsable = 8,
3870
+ DeviceError_DeviceLocked = 9
3871
+ }
3702
3872
  declare enum DeviceRebootType {
3703
3873
  Normal = 0,
3704
3874
  Romloader = 1,
@@ -3708,14 +3878,37 @@ type DeviceReboot = {
3708
3878
  reboot_type: DeviceRebootType;
3709
3879
  };
3710
3880
  type DeviceSettings = {
3711
- label?: string;
3712
3881
  bt_enable?: boolean;
3713
3882
  language?: string;
3883
+ wallpaper_path?: string;
3884
+ brightness?: number;
3885
+ animation_enable?: boolean;
3886
+ tap_to_wake?: boolean;
3887
+ haptic_feedback?: boolean;
3888
+ device_name_display_enabled?: boolean;
3889
+ airgap_mode?: boolean;
3890
+ usb_lock_enable?: boolean;
3891
+ random_keypad?: boolean;
3892
+ passphrase_enable?: boolean;
3893
+ fido_enabled?: boolean;
3894
+ autolock_delay_ms?: number;
3895
+ autoshutdown_delay_ms?: number;
3896
+ label?: string;
3714
3897
  };
3715
3898
  type DeviceSettingsGet = {};
3716
3899
  type DeviceSettingsSet = {
3717
3900
  settings: DeviceSettings;
3718
3901
  };
3902
+ declare enum DeviceSettingsPage {
3903
+ DeviceReset = 0,
3904
+ DevicePinChange = 1,
3905
+ DevicePassphrase = 2,
3906
+ DeviceAirgap = 3
3907
+ }
3908
+ type DeviceSettingsPageShow = {
3909
+ page: DeviceSettingsPage;
3910
+ field_name?: string;
3911
+ };
3719
3912
  type DeviceCertificate = {
3720
3913
  cert_and_pubkey: string;
3721
3914
  private_key?: string;
@@ -3730,6 +3923,39 @@ type DeviceCertificateSignature = {
3730
3923
  type DeviceCertificateSign = {
3731
3924
  data: string;
3732
3925
  };
3926
+ type DeviceMiscUsbMscControl = {
3927
+ enable: boolean;
3928
+ };
3929
+ declare enum DeviceFactoryAck {
3930
+ FACTORY_ACK_SUCCESS = 0,
3931
+ FACTORY_ACK_FAIL = 1
3932
+ }
3933
+ type DeviceFactoryInfoManufactureTime = {
3934
+ year: number;
3935
+ month: number;
3936
+ day: number;
3937
+ hour: number;
3938
+ minute: number;
3939
+ second: number;
3940
+ };
3941
+ type DeviceFactoryInfo = {
3942
+ version?: number;
3943
+ serial_number?: string;
3944
+ burn_in_completed?: boolean;
3945
+ factory_test_completed?: boolean;
3946
+ manufacture_time?: DeviceFactoryInfoManufactureTime;
3947
+ };
3948
+ type DeviceFactoryInfoSet = {
3949
+ info: DeviceFactoryInfo;
3950
+ };
3951
+ type DeviceFactoryInfoGet = {};
3952
+ type DeviceFactoryPermanentLock = {
3953
+ check_a: string;
3954
+ check_b: string;
3955
+ };
3956
+ type DeviceFactoryTest = {
3957
+ burn_in_test: boolean;
3958
+ };
3733
3959
  declare enum DeviceFirmwareTargetType {
3734
3960
  FW_MGMT_TARGET_INVALID = 0,
3735
3961
  FW_MGMT_TARGET_CRATE = 1,
@@ -3780,36 +4006,6 @@ type DeviceFirmwareUpdateStatusGet = {
3780
4006
  type DeviceFirmwareUpdateStatus = {
3781
4007
  records: DeviceFirmwareUpdateRecord[];
3782
4008
  };
3783
- declare enum DeviceFactoryAck {
3784
- FACTORY_ACK_SUCCESS = 0,
3785
- FACTORY_ACK_FAIL = 1
3786
- }
3787
- type DeviceFactoryInfoManufactureTime = {
3788
- year: number;
3789
- month: number;
3790
- day: number;
3791
- hour: number;
3792
- minute: number;
3793
- second: number;
3794
- };
3795
- type DeviceFactoryInfo = {
3796
- version?: number;
3797
- serial_number?: string;
3798
- burn_in_completed?: boolean;
3799
- factory_test_completed?: boolean;
3800
- manufacture_time?: DeviceFactoryInfoManufactureTime;
3801
- };
3802
- type DeviceFactoryInfoSet = {
3803
- info: DeviceFactoryInfo;
3804
- };
3805
- type DeviceFactoryInfoGet = {};
3806
- type DeviceFactoryPermanentLock = {
3807
- check_a: string;
3808
- check_b: string;
3809
- };
3810
- type DeviceFactoryTest = {
3811
- burn_in_test: boolean;
3812
- };
3813
4009
  declare enum DeviceType {
3814
4010
  CLASSIC1 = 0,
3815
4011
  CLASSIC1S = 1,
@@ -3866,7 +4062,6 @@ type DeviceInfoTargets = {
3866
4062
  se2?: boolean;
3867
4063
  se3?: boolean;
3868
4064
  se4?: boolean;
3869
- status?: boolean;
3870
4065
  };
3871
4066
  type DeviceInfoTypes = {
3872
4067
  version?: boolean;
@@ -3887,8 +4082,15 @@ type ProtocolV2DeviceInfo = {
3887
4082
  se2?: DeviceSEInfo;
3888
4083
  se3?: DeviceSEInfo;
3889
4084
  se4?: DeviceSEInfo;
3890
- status?: DeviceStatus;
3891
4085
  };
4086
+ declare enum DeviceSessionErrorCode {
4087
+ DeviceSessionError_None = 0,
4088
+ DeviceSessionError_UserCancelled = 1,
4089
+ DeviceSessionError_InvalidSession = 2,
4090
+ DeviceSessionError_AttachPinUnavailable = 3,
4091
+ DeviceSessionError_PassphraseDisabled = 4,
4092
+ DeviceSessionError_Busy = 5
4093
+ }
3892
4094
  type DeviceSessionGet = {
3893
4095
  session_id?: string;
3894
4096
  };
@@ -3896,6 +4098,21 @@ type DeviceSession = {
3896
4098
  session_id?: string;
3897
4099
  btc_test_address?: string;
3898
4100
  };
4101
+ declare enum DeviceSessionPinType {
4102
+ Any = 1,
4103
+ Main = 2,
4104
+ AttachToPin = 3
4105
+ }
4106
+ type DeviceSessionAskPin = {
4107
+ type?: DeviceSessionPinType;
4108
+ };
4109
+ type DeviceSessionAskPassphrase = {
4110
+ passphrase?: string;
4111
+ on_device: boolean;
4112
+ };
4113
+ declare enum DeviceSessionAskPin_FailureSubCodes {
4114
+ UserCancel = 1
4115
+ }
3899
4116
  type DeviceStatus = {
3900
4117
  device_id?: string;
3901
4118
  unlocked?: boolean;
@@ -3905,6 +4122,7 @@ type DeviceStatus = {
3905
4122
  attach_to_pin_enabled?: boolean;
3906
4123
  unlocked_by_attach_to_pin?: boolean;
3907
4124
  };
4125
+ type DeviceStatusGet = {};
3908
4126
  type FilesystemPermissionFix = {};
3909
4127
  type FilesystemPathInfo = {
3910
4128
  exist: boolean;
@@ -3961,7 +4179,143 @@ type FilesystemDirMake = {
3961
4179
  type FilesystemDirRemove = {
3962
4180
  path: string;
3963
4181
  };
3964
- type FilesystemFormat = {};
4182
+ type FilesystemFormat = {
4183
+ data: boolean;
4184
+ user: boolean;
4185
+ };
4186
+ type InternalMyAddressRequest = {
4187
+ coin_type: number;
4188
+ chain_id: number;
4189
+ account_index: number;
4190
+ derive_type: number;
4191
+ };
4192
+ declare enum OnboardingStep {
4193
+ ONBOARDING_STEP_UNKNOWN = 0,
4194
+ ONBOARDING_STEP_CHECKING = 1,
4195
+ ONBOARDING_STEP_PERSONALIZATION = 2,
4196
+ ONBOARDING_STEP_PIN = 3,
4197
+ ONBOARDING_STEP_SETUP = 4,
4198
+ ONBOARDING_STEP_DONE = 5
4199
+ }
4200
+ declare enum OnboardingPhase {
4201
+ ONBOARDING_PHASE_UNKNOWN = 0,
4202
+ ONBOARDING_PHASE_SAFETY_CHECK = 1,
4203
+ ONBOARDING_PHASE_PIN_SETUP = 2,
4204
+ ONBOARDING_PHASE_FINGERPRINT_SETUP = 3,
4205
+ ONBOARDING_PHASE_SETUP_CHOICE = 4,
4206
+ ONBOARDING_PHASE_WALLET_CREATE_START = 5,
4207
+ ONBOARDING_PHASE_RECOVERY_PHRASE_VIEW = 6,
4208
+ ONBOARDING_PHASE_RECOVERY_PHRASE_CONFIRM = 7,
4209
+ ONBOARDING_PHASE_RESTORE_METHOD_CHOICE = 8,
4210
+ ONBOARDING_PHASE_RECOVERY_PHRASE_RESTORE = 9,
4211
+ ONBOARDING_PHASE_SEEDCARD_RESTORE = 10,
4212
+ ONBOARDING_PHASE_WALLET_READY = 11,
4213
+ ONBOARDING_PHASE_SEEDCARD_BACKUP_PROMPT = 12,
4214
+ ONBOARDING_PHASE_SEEDCARD_BACKUP = 13
4215
+ }
4216
+ declare enum OnboardingSetupKind {
4217
+ ONBOARDING_SETUP_KIND_UNKNOWN = 0,
4218
+ ONBOARDING_SETUP_KIND_CHOICE = 1,
4219
+ ONBOARDING_SETUP_KIND_CREATE = 2,
4220
+ ONBOARDING_SETUP_KIND_RESTORE = 3
4221
+ }
4222
+ declare enum OnboardingSetupMethod {
4223
+ ONBOARDING_SETUP_METHOD_UNKNOWN = 0,
4224
+ ONBOARDING_SETUP_METHOD_RECOVERY_PHRASE = 1,
4225
+ ONBOARDING_SETUP_METHOD_SEEDCARD = 2
4226
+ }
4227
+ type OnboardingSetupStatus = {
4228
+ kind?: OnboardingSetupKind;
4229
+ method?: OnboardingSetupMethod;
4230
+ };
4231
+ type OnboardingStatusGet = {};
4232
+ type OnboardingStatus = {
4233
+ step?: OnboardingStep;
4234
+ phase?: OnboardingPhase;
4235
+ setup?: OnboardingSetupStatus;
4236
+ pin_set?: boolean;
4237
+ wallet_initialized?: boolean;
4238
+ };
4239
+ type PortfolioUpdate = {};
4240
+ type ViewAmount = {
4241
+ is_unlimited: boolean;
4242
+ num: string;
4243
+ };
4244
+ type ViewDetail = {
4245
+ key: number;
4246
+ value: string;
4247
+ is_overview: boolean;
4248
+ has_icon: boolean;
4249
+ };
4250
+ declare enum ViewTipType {
4251
+ Default = 0,
4252
+ Highlight = 1,
4253
+ Recommend = 2,
4254
+ Warning = 3,
4255
+ Danger = 4
4256
+ }
4257
+ type ViewTip = {
4258
+ type: ViewTipType;
4259
+ text: string;
4260
+ };
4261
+ type ViewRawData = {
4262
+ initial_data: string;
4263
+ placeholder: number;
4264
+ };
4265
+ declare enum ViewSignLayout {
4266
+ LayoutDefault = 0,
4267
+ LayoutSafeTxCreate = 1,
4268
+ LayoutFinalConfirm = 2,
4269
+ Layout7702 = 3,
4270
+ LayoutFlat = 4,
4271
+ LayoutEthApprove = 5
4272
+ }
4273
+ type ViewSignPage = {
4274
+ title: string;
4275
+ amount?: UintType;
4276
+ general: ViewDetail[];
4277
+ tip?: ViewTip;
4278
+ raw_data?: ViewRawData;
4279
+ slide_to_confirm?: boolean;
4280
+ layout?: ViewSignLayout;
4281
+ };
4282
+ type ViewVerifyPage = {
4283
+ title: string;
4284
+ address: string;
4285
+ path: string;
4286
+ network?: string;
4287
+ derive_type?: string;
4288
+ value_key?: number;
4289
+ };
4290
+ declare enum ProtocolV2FailureType {
4291
+ Failure_InvalidMessage = 1,
4292
+ Failure_UndefinedError = 2,
4293
+ Failure_UsageError = 3,
4294
+ Failure_DataError = 4,
4295
+ Failure_ProcessError = 5
4296
+ }
4297
+ declare enum Enum_ProtocolV2Capability {
4298
+ Capability_Bitcoin = 1,
4299
+ Capability_Bitcoin_like = 2,
4300
+ Capability_Binance = 3,
4301
+ Capability_Cardano = 4,
4302
+ Capability_Crypto = 5,
4303
+ Capability_EOS = 6,
4304
+ Capability_Ethereum = 7,
4305
+ Capability_Lisk = 8,
4306
+ Capability_Monero = 9,
4307
+ Capability_NEM = 10,
4308
+ Capability_Ripple = 11,
4309
+ Capability_Stellar = 12,
4310
+ Capability_Tezos = 13,
4311
+ Capability_U2F = 14,
4312
+ Capability_Shamir = 15,
4313
+ Capability_ShamirGroups = 16,
4314
+ Capability_PassphraseEntry = 17,
4315
+ Capability_AttachToPin = 18,
4316
+ Capability_EthereumTypedData = 1000
4317
+ }
4318
+ type ProtocolV2Capability = keyof typeof Enum_ProtocolV2Capability;
3965
4319
  type MessageType = {
3966
4320
  AlephiumGetAddress: AlephiumGetAddress;
3967
4321
  AlephiumAddress: AlephiumAddress;
@@ -4236,6 +4590,15 @@ type MessageType = {
4236
4590
  KaspaSignTx: KaspaSignTx;
4237
4591
  KaspaTxInputRequest: KaspaTxInputRequest;
4238
4592
  KaspaTxInputAck: KaspaTxInputAck;
4593
+ KaspaOutpoint: KaspaOutpoint;
4594
+ KaspaTxRequestSignature: KaspaTxRequestSignature;
4595
+ KaspaTxRequest: KaspaTxRequest;
4596
+ KaspaTxAckInput: KaspaTxAckInput;
4597
+ KaspaTxAckOutput: KaspaTxAckOutput;
4598
+ KaspaTxAckPayloadChunk: KaspaTxAckPayloadChunk;
4599
+ KaspaTxAckPrevMeta: KaspaTxAckPrevMeta;
4600
+ KaspaTxAckPrevInput: KaspaTxAckPrevInput;
4601
+ KaspaTxAckPrevOutput: KaspaTxAckPrevOutput;
4239
4602
  KaspaSignedTx: KaspaSignedTx;
4240
4603
  LnurlAuth: LnurlAuth;
4241
4604
  LnurlAuthResp: LnurlAuthResp;
@@ -4525,47 +4888,41 @@ type MessageType = {
4525
4888
  CoinPurchaseMemo: CoinPurchaseMemo;
4526
4889
  PaymentRequestMemo: PaymentRequestMemo;
4527
4890
  TxAckPaymentRequest: TxAckPaymentRequest;
4528
- InternalMyAddressRequest: InternalMyAddressRequest;
4529
- StartSession: StartSession;
4891
+ EthereumSignTypedDataQR: EthereumSignTypedDataQR;
4530
4892
  SetBusy: SetBusy;
4531
4893
  GetFirmwareHash: GetFirmwareHash;
4532
4894
  FirmwareHash: FirmwareHash;
4533
4895
  GetNonce: GetNonce;
4534
4896
  Nonce: Nonce;
4535
4897
  WriteSEPrivateKey: WriteSEPrivateKey;
4536
- SetWallpaper: SetWallpaper;
4537
- GetWallpaper: GetWallpaper;
4538
- Wallpaper: Wallpaper;
4539
4898
  UnlockPath: UnlockPath;
4540
4899
  UnlockedPathRequest: UnlockedPathRequest;
4541
- ViewAmount: ViewAmount;
4542
- ViewDetail: ViewDetail;
4543
- ViewTip: ViewTip;
4544
- ViewSignPage: ViewSignPage;
4545
- ViewVerifyPage: ViewVerifyPage;
4900
+ UiAnimationRequest: UiAnimationRequest;
4546
4901
  ProtocolInfoRequest: ProtocolInfoRequest;
4547
4902
  ProtocolInfo: ProtocolInfo;
4548
4903
  DeviceReboot: DeviceReboot;
4549
4904
  DeviceSettings: DeviceSettings;
4550
4905
  DeviceSettingsGet: DeviceSettingsGet;
4551
4906
  DeviceSettingsSet: DeviceSettingsSet;
4907
+ DeviceSettingsPageShow: DeviceSettingsPageShow;
4552
4908
  DeviceCertificate: DeviceCertificate;
4553
4909
  DeviceCertificateWrite: DeviceCertificateWrite;
4554
4910
  DeviceCertificateRead: DeviceCertificateRead;
4555
4911
  DeviceCertificateSignature: DeviceCertificateSignature;
4556
4912
  DeviceCertificateSign: DeviceCertificateSign;
4557
- DeviceFirmwareTarget: DeviceFirmwareTarget;
4558
- DeviceFirmwareUpdateRequest: DeviceFirmwareUpdateRequest;
4559
- DeviceFirmwareUpdateRecord: DeviceFirmwareUpdateRecord;
4560
- DeviceFirmwareUpdateRecordFields: DeviceFirmwareUpdateRecordFields;
4561
- DeviceFirmwareUpdateStatusGet: DeviceFirmwareUpdateStatusGet;
4562
- DeviceFirmwareUpdateStatus: DeviceFirmwareUpdateStatus;
4913
+ DeviceMiscUsbMscControl: DeviceMiscUsbMscControl;
4563
4914
  DeviceFactoryInfoManufactureTime: DeviceFactoryInfoManufactureTime;
4564
4915
  DeviceFactoryInfo: DeviceFactoryInfo;
4565
4916
  DeviceFactoryInfoSet: DeviceFactoryInfoSet;
4566
4917
  DeviceFactoryInfoGet: DeviceFactoryInfoGet;
4567
4918
  DeviceFactoryPermanentLock: DeviceFactoryPermanentLock;
4568
4919
  DeviceFactoryTest: DeviceFactoryTest;
4920
+ DeviceFirmwareTarget: DeviceFirmwareTarget;
4921
+ DeviceFirmwareUpdateRequest: DeviceFirmwareUpdateRequest;
4922
+ DeviceFirmwareUpdateRecord: DeviceFirmwareUpdateRecord;
4923
+ DeviceFirmwareUpdateRecordFields: DeviceFirmwareUpdateRecordFields;
4924
+ DeviceFirmwareUpdateStatusGet: DeviceFirmwareUpdateStatusGet;
4925
+ DeviceFirmwareUpdateStatus: DeviceFirmwareUpdateStatus;
4569
4926
  DeviceFirmwareImageInfo: DeviceFirmwareImageInfo;
4570
4927
  DeviceHardwareInfo: DeviceHardwareInfo;
4571
4928
  DeviceMainMcuInfo: DeviceMainMcuInfo;
@@ -4576,7 +4933,10 @@ type MessageType = {
4576
4933
  DeviceInfoGet: DeviceInfoGet;
4577
4934
  DeviceSessionGet: DeviceSessionGet;
4578
4935
  DeviceSession: DeviceSession;
4936
+ DeviceSessionAskPin: DeviceSessionAskPin;
4937
+ DeviceSessionAskPassphrase: DeviceSessionAskPassphrase;
4579
4938
  DeviceStatus: DeviceStatus;
4939
+ DeviceStatusGet: DeviceStatusGet;
4580
4940
  FilesystemPermissionFix: FilesystemPermissionFix;
4581
4941
  FilesystemPathInfo: FilesystemPathInfo;
4582
4942
  FilesystemPathInfoQuery: FilesystemPathInfoQuery;
@@ -4589,6 +4949,17 @@ type MessageType = {
4589
4949
  FilesystemDirMake: FilesystemDirMake;
4590
4950
  FilesystemDirRemove: FilesystemDirRemove;
4591
4951
  FilesystemFormat: FilesystemFormat;
4952
+ InternalMyAddressRequest: InternalMyAddressRequest;
4953
+ OnboardingSetupStatus: OnboardingSetupStatus;
4954
+ OnboardingStatusGet: OnboardingStatusGet;
4955
+ OnboardingStatus: OnboardingStatus;
4956
+ PortfolioUpdate: PortfolioUpdate;
4957
+ ViewAmount: ViewAmount;
4958
+ ViewDetail: ViewDetail;
4959
+ ViewTip: ViewTip;
4960
+ ViewRawData: ViewRawData;
4961
+ ViewSignPage: ViewSignPage;
4962
+ ViewVerifyPage: ViewVerifyPage;
4592
4963
  };
4593
4964
  type MessageKey = keyof MessageType;
4594
4965
  type MessageResponse<T extends MessageKey> = {
@@ -4945,6 +5316,24 @@ type messages_KaspaAddress = KaspaAddress;
4945
5316
  type messages_KaspaSignTx = KaspaSignTx;
4946
5317
  type messages_KaspaTxInputRequest = KaspaTxInputRequest;
4947
5318
  type messages_KaspaTxInputAck = KaspaTxInputAck;
5319
+ type messages_KaspaOutpoint = KaspaOutpoint;
5320
+ type messages_Enum_KaspaInputScriptType = Enum_KaspaInputScriptType;
5321
+ declare const messages_Enum_KaspaInputScriptType: typeof Enum_KaspaInputScriptType;
5322
+ type messages_KaspaInputScriptType = KaspaInputScriptType;
5323
+ type messages_Enum_KaspaOutputScriptType = Enum_KaspaOutputScriptType;
5324
+ declare const messages_Enum_KaspaOutputScriptType: typeof Enum_KaspaOutputScriptType;
5325
+ type messages_KaspaOutputScriptType = KaspaOutputScriptType;
5326
+ type messages_Enum_KaspaRequestType = Enum_KaspaRequestType;
5327
+ declare const messages_Enum_KaspaRequestType: typeof Enum_KaspaRequestType;
5328
+ type messages_KaspaRequestType = KaspaRequestType;
5329
+ type messages_KaspaTxRequestSignature = KaspaTxRequestSignature;
5330
+ type messages_KaspaTxRequest = KaspaTxRequest;
5331
+ type messages_KaspaTxAckInput = KaspaTxAckInput;
5332
+ type messages_KaspaTxAckOutput = KaspaTxAckOutput;
5333
+ type messages_KaspaTxAckPayloadChunk = KaspaTxAckPayloadChunk;
5334
+ type messages_KaspaTxAckPrevMeta = KaspaTxAckPrevMeta;
5335
+ type messages_KaspaTxAckPrevInput = KaspaTxAckPrevInput;
5336
+ type messages_KaspaTxAckPrevOutput = KaspaTxAckPrevOutput;
4948
5337
  type messages_KaspaSignedTx = KaspaSignedTx;
4949
5338
  type messages_LnurlAuth = LnurlAuth;
4950
5339
  type messages_LnurlAuthResp = LnurlAuthResp;
@@ -5300,43 +5689,49 @@ type messages_RefundMemo = RefundMemo;
5300
5689
  type messages_CoinPurchaseMemo = CoinPurchaseMemo;
5301
5690
  type messages_PaymentRequestMemo = PaymentRequestMemo;
5302
5691
  type messages_TxAckPaymentRequest = TxAckPaymentRequest;
5303
- type messages_InternalMyAddressRequest = InternalMyAddressRequest;
5304
- type messages_StartSession = StartSession;
5692
+ type messages_EthereumSignTypedDataQR = EthereumSignTypedDataQR;
5305
5693
  type messages_SetBusy = SetBusy;
5306
5694
  type messages_GetFirmwareHash = GetFirmwareHash;
5307
5695
  type messages_FirmwareHash = FirmwareHash;
5308
5696
  type messages_GetNonce = GetNonce;
5309
5697
  type messages_Nonce = Nonce;
5310
5698
  type messages_WriteSEPrivateKey = WriteSEPrivateKey;
5311
- type messages_WallpaperTarget = WallpaperTarget;
5312
- declare const messages_WallpaperTarget: typeof WallpaperTarget;
5313
- type messages_SetWallpaper = SetWallpaper;
5314
- type messages_GetWallpaper = GetWallpaper;
5315
- type messages_Wallpaper = Wallpaper;
5316
5699
  type messages_UnlockPath = UnlockPath;
5317
5700
  type messages_UnlockedPathRequest = UnlockedPathRequest;
5318
5701
  type messages_MoneroNetworkType = MoneroNetworkType;
5319
5702
  declare const messages_MoneroNetworkType: typeof MoneroNetworkType;
5320
- type messages_ViewAmount = ViewAmount;
5321
- type messages_ViewDetail = ViewDetail;
5322
- type messages_ViewTipType = ViewTipType;
5323
- declare const messages_ViewTipType: typeof ViewTipType;
5324
- type messages_ViewTip = ViewTip;
5325
- type messages_ViewSignPage = ViewSignPage;
5326
- type messages_ViewVerifyPage = ViewVerifyPage;
5703
+ type messages_UiAnimationType = UiAnimationType;
5704
+ declare const messages_UiAnimationType: typeof UiAnimationType;
5705
+ type messages_UiAnimationCommand = UiAnimationCommand;
5706
+ declare const messages_UiAnimationCommand: typeof UiAnimationCommand;
5707
+ type messages_UiAnimationRequest = UiAnimationRequest;
5327
5708
  type messages_ProtocolInfoRequest = ProtocolInfoRequest;
5328
5709
  type messages_ProtocolInfo = ProtocolInfo;
5710
+ type messages_DeviceErrorCode = DeviceErrorCode;
5711
+ declare const messages_DeviceErrorCode: typeof DeviceErrorCode;
5329
5712
  type messages_DeviceRebootType = DeviceRebootType;
5330
5713
  declare const messages_DeviceRebootType: typeof DeviceRebootType;
5331
5714
  type messages_DeviceReboot = DeviceReboot;
5332
5715
  type messages_DeviceSettings = DeviceSettings;
5333
5716
  type messages_DeviceSettingsGet = DeviceSettingsGet;
5334
5717
  type messages_DeviceSettingsSet = DeviceSettingsSet;
5718
+ type messages_DeviceSettingsPage = DeviceSettingsPage;
5719
+ declare const messages_DeviceSettingsPage: typeof DeviceSettingsPage;
5720
+ type messages_DeviceSettingsPageShow = DeviceSettingsPageShow;
5335
5721
  type messages_DeviceCertificate = DeviceCertificate;
5336
5722
  type messages_DeviceCertificateWrite = DeviceCertificateWrite;
5337
5723
  type messages_DeviceCertificateRead = DeviceCertificateRead;
5338
5724
  type messages_DeviceCertificateSignature = DeviceCertificateSignature;
5339
5725
  type messages_DeviceCertificateSign = DeviceCertificateSign;
5726
+ type messages_DeviceMiscUsbMscControl = DeviceMiscUsbMscControl;
5727
+ type messages_DeviceFactoryAck = DeviceFactoryAck;
5728
+ declare const messages_DeviceFactoryAck: typeof DeviceFactoryAck;
5729
+ type messages_DeviceFactoryInfoManufactureTime = DeviceFactoryInfoManufactureTime;
5730
+ type messages_DeviceFactoryInfo = DeviceFactoryInfo;
5731
+ type messages_DeviceFactoryInfoSet = DeviceFactoryInfoSet;
5732
+ type messages_DeviceFactoryInfoGet = DeviceFactoryInfoGet;
5733
+ type messages_DeviceFactoryPermanentLock = DeviceFactoryPermanentLock;
5734
+ type messages_DeviceFactoryTest = DeviceFactoryTest;
5340
5735
  type messages_DeviceFirmwareTargetType = DeviceFirmwareTargetType;
5341
5736
  declare const messages_DeviceFirmwareTargetType: typeof DeviceFirmwareTargetType;
5342
5737
  type messages_DeviceFirmwareUpdateTaskStatus = DeviceFirmwareUpdateTaskStatus;
@@ -5347,14 +5742,6 @@ type messages_DeviceFirmwareUpdateRecord = DeviceFirmwareUpdateRecord;
5347
5742
  type messages_DeviceFirmwareUpdateRecordFields = DeviceFirmwareUpdateRecordFields;
5348
5743
  type messages_DeviceFirmwareUpdateStatusGet = DeviceFirmwareUpdateStatusGet;
5349
5744
  type messages_DeviceFirmwareUpdateStatus = DeviceFirmwareUpdateStatus;
5350
- type messages_DeviceFactoryAck = DeviceFactoryAck;
5351
- declare const messages_DeviceFactoryAck: typeof DeviceFactoryAck;
5352
- type messages_DeviceFactoryInfoManufactureTime = DeviceFactoryInfoManufactureTime;
5353
- type messages_DeviceFactoryInfo = DeviceFactoryInfo;
5354
- type messages_DeviceFactoryInfoSet = DeviceFactoryInfoSet;
5355
- type messages_DeviceFactoryInfoGet = DeviceFactoryInfoGet;
5356
- type messages_DeviceFactoryPermanentLock = DeviceFactoryPermanentLock;
5357
- type messages_DeviceFactoryTest = DeviceFactoryTest;
5358
5745
  type messages_DeviceType = DeviceType;
5359
5746
  declare const messages_DeviceType: typeof DeviceType;
5360
5747
  type messages_DeviceSeType = DeviceSeType;
@@ -5370,9 +5757,18 @@ type messages_DeviceInfoTargets = DeviceInfoTargets;
5370
5757
  type messages_DeviceInfoTypes = DeviceInfoTypes;
5371
5758
  type messages_DeviceInfoGet = DeviceInfoGet;
5372
5759
  type messages_ProtocolV2DeviceInfo = ProtocolV2DeviceInfo;
5760
+ type messages_DeviceSessionErrorCode = DeviceSessionErrorCode;
5761
+ declare const messages_DeviceSessionErrorCode: typeof DeviceSessionErrorCode;
5373
5762
  type messages_DeviceSessionGet = DeviceSessionGet;
5374
5763
  type messages_DeviceSession = DeviceSession;
5764
+ type messages_DeviceSessionPinType = DeviceSessionPinType;
5765
+ declare const messages_DeviceSessionPinType: typeof DeviceSessionPinType;
5766
+ type messages_DeviceSessionAskPin = DeviceSessionAskPin;
5767
+ type messages_DeviceSessionAskPassphrase = DeviceSessionAskPassphrase;
5768
+ type messages_DeviceSessionAskPin_FailureSubCodes = DeviceSessionAskPin_FailureSubCodes;
5769
+ declare const messages_DeviceSessionAskPin_FailureSubCodes: typeof DeviceSessionAskPin_FailureSubCodes;
5375
5770
  type messages_DeviceStatus = DeviceStatus;
5771
+ type messages_DeviceStatusGet = DeviceStatusGet;
5376
5772
  type messages_FilesystemPermissionFix = FilesystemPermissionFix;
5377
5773
  type messages_FilesystemPathInfo = FilesystemPathInfo;
5378
5774
  type messages_FilesystemPathInfoQuery = FilesystemPathInfoQuery;
@@ -5385,6 +5781,34 @@ type messages_FilesystemDirList = FilesystemDirList;
5385
5781
  type messages_FilesystemDirMake = FilesystemDirMake;
5386
5782
  type messages_FilesystemDirRemove = FilesystemDirRemove;
5387
5783
  type messages_FilesystemFormat = FilesystemFormat;
5784
+ type messages_InternalMyAddressRequest = InternalMyAddressRequest;
5785
+ type messages_OnboardingStep = OnboardingStep;
5786
+ declare const messages_OnboardingStep: typeof OnboardingStep;
5787
+ type messages_OnboardingPhase = OnboardingPhase;
5788
+ declare const messages_OnboardingPhase: typeof OnboardingPhase;
5789
+ type messages_OnboardingSetupKind = OnboardingSetupKind;
5790
+ declare const messages_OnboardingSetupKind: typeof OnboardingSetupKind;
5791
+ type messages_OnboardingSetupMethod = OnboardingSetupMethod;
5792
+ declare const messages_OnboardingSetupMethod: typeof OnboardingSetupMethod;
5793
+ type messages_OnboardingSetupStatus = OnboardingSetupStatus;
5794
+ type messages_OnboardingStatusGet = OnboardingStatusGet;
5795
+ type messages_OnboardingStatus = OnboardingStatus;
5796
+ type messages_PortfolioUpdate = PortfolioUpdate;
5797
+ type messages_ViewAmount = ViewAmount;
5798
+ type messages_ViewDetail = ViewDetail;
5799
+ type messages_ViewTipType = ViewTipType;
5800
+ declare const messages_ViewTipType: typeof ViewTipType;
5801
+ type messages_ViewTip = ViewTip;
5802
+ type messages_ViewRawData = ViewRawData;
5803
+ type messages_ViewSignLayout = ViewSignLayout;
5804
+ declare const messages_ViewSignLayout: typeof ViewSignLayout;
5805
+ type messages_ViewSignPage = ViewSignPage;
5806
+ type messages_ViewVerifyPage = ViewVerifyPage;
5807
+ type messages_ProtocolV2FailureType = ProtocolV2FailureType;
5808
+ declare const messages_ProtocolV2FailureType: typeof ProtocolV2FailureType;
5809
+ type messages_Enum_ProtocolV2Capability = Enum_ProtocolV2Capability;
5810
+ declare const messages_Enum_ProtocolV2Capability: typeof Enum_ProtocolV2Capability;
5811
+ type messages_ProtocolV2Capability = ProtocolV2Capability;
5388
5812
  type messages_MessageType = MessageType;
5389
5813
  type messages_MessageKey = MessageKey;
5390
5814
  type messages_MessageResponse<T extends MessageKey> = MessageResponse<T>;
@@ -5705,6 +6129,21 @@ declare namespace messages {
5705
6129
  messages_KaspaSignTx as KaspaSignTx,
5706
6130
  messages_KaspaTxInputRequest as KaspaTxInputRequest,
5707
6131
  messages_KaspaTxInputAck as KaspaTxInputAck,
6132
+ messages_KaspaOutpoint as KaspaOutpoint,
6133
+ messages_Enum_KaspaInputScriptType as Enum_KaspaInputScriptType,
6134
+ messages_KaspaInputScriptType as KaspaInputScriptType,
6135
+ messages_Enum_KaspaOutputScriptType as Enum_KaspaOutputScriptType,
6136
+ messages_KaspaOutputScriptType as KaspaOutputScriptType,
6137
+ messages_Enum_KaspaRequestType as Enum_KaspaRequestType,
6138
+ messages_KaspaRequestType as KaspaRequestType,
6139
+ messages_KaspaTxRequestSignature as KaspaTxRequestSignature,
6140
+ messages_KaspaTxRequest as KaspaTxRequest,
6141
+ messages_KaspaTxAckInput as KaspaTxAckInput,
6142
+ messages_KaspaTxAckOutput as KaspaTxAckOutput,
6143
+ messages_KaspaTxAckPayloadChunk as KaspaTxAckPayloadChunk,
6144
+ messages_KaspaTxAckPrevMeta as KaspaTxAckPrevMeta,
6145
+ messages_KaspaTxAckPrevInput as KaspaTxAckPrevInput,
6146
+ messages_KaspaTxAckPrevOutput as KaspaTxAckPrevOutput,
5708
6147
  messages_KaspaSignedTx as KaspaSignedTx,
5709
6148
  messages_LnurlAuth as LnurlAuth,
5710
6149
  messages_LnurlAuthResp as LnurlAuthResp,
@@ -6029,39 +6468,42 @@ declare namespace messages {
6029
6468
  messages_CoinPurchaseMemo as CoinPurchaseMemo,
6030
6469
  messages_PaymentRequestMemo as PaymentRequestMemo,
6031
6470
  messages_TxAckPaymentRequest as TxAckPaymentRequest,
6032
- messages_InternalMyAddressRequest as InternalMyAddressRequest,
6033
- messages_StartSession as StartSession,
6471
+ messages_EthereumSignTypedDataQR as EthereumSignTypedDataQR,
6034
6472
  messages_SetBusy as SetBusy,
6035
6473
  messages_GetFirmwareHash as GetFirmwareHash,
6036
6474
  messages_FirmwareHash as FirmwareHash,
6037
6475
  messages_GetNonce as GetNonce,
6038
6476
  messages_Nonce as Nonce,
6039
6477
  messages_WriteSEPrivateKey as WriteSEPrivateKey,
6040
- messages_WallpaperTarget as WallpaperTarget,
6041
- messages_SetWallpaper as SetWallpaper,
6042
- messages_GetWallpaper as GetWallpaper,
6043
- messages_Wallpaper as Wallpaper,
6044
6478
  messages_UnlockPath as UnlockPath,
6045
6479
  messages_UnlockedPathRequest as UnlockedPathRequest,
6046
6480
  messages_MoneroNetworkType as MoneroNetworkType,
6047
- messages_ViewAmount as ViewAmount,
6048
- messages_ViewDetail as ViewDetail,
6049
- messages_ViewTipType as ViewTipType,
6050
- messages_ViewTip as ViewTip,
6051
- messages_ViewSignPage as ViewSignPage,
6052
- messages_ViewVerifyPage as ViewVerifyPage,
6481
+ messages_UiAnimationType as UiAnimationType,
6482
+ messages_UiAnimationCommand as UiAnimationCommand,
6483
+ messages_UiAnimationRequest as UiAnimationRequest,
6053
6484
  messages_ProtocolInfoRequest as ProtocolInfoRequest,
6054
6485
  messages_ProtocolInfo as ProtocolInfo,
6486
+ messages_DeviceErrorCode as DeviceErrorCode,
6055
6487
  messages_DeviceRebootType as DeviceRebootType,
6056
6488
  messages_DeviceReboot as DeviceReboot,
6057
6489
  messages_DeviceSettings as DeviceSettings,
6058
6490
  messages_DeviceSettingsGet as DeviceSettingsGet,
6059
6491
  messages_DeviceSettingsSet as DeviceSettingsSet,
6492
+ messages_DeviceSettingsPage as DeviceSettingsPage,
6493
+ messages_DeviceSettingsPageShow as DeviceSettingsPageShow,
6060
6494
  messages_DeviceCertificate as DeviceCertificate,
6061
6495
  messages_DeviceCertificateWrite as DeviceCertificateWrite,
6062
6496
  messages_DeviceCertificateRead as DeviceCertificateRead,
6063
6497
  messages_DeviceCertificateSignature as DeviceCertificateSignature,
6064
6498
  messages_DeviceCertificateSign as DeviceCertificateSign,
6499
+ messages_DeviceMiscUsbMscControl as DeviceMiscUsbMscControl,
6500
+ messages_DeviceFactoryAck as DeviceFactoryAck,
6501
+ messages_DeviceFactoryInfoManufactureTime as DeviceFactoryInfoManufactureTime,
6502
+ messages_DeviceFactoryInfo as DeviceFactoryInfo,
6503
+ messages_DeviceFactoryInfoSet as DeviceFactoryInfoSet,
6504
+ messages_DeviceFactoryInfoGet as DeviceFactoryInfoGet,
6505
+ messages_DeviceFactoryPermanentLock as DeviceFactoryPermanentLock,
6506
+ messages_DeviceFactoryTest as DeviceFactoryTest,
6065
6507
  messages_DeviceFirmwareTargetType as DeviceFirmwareTargetType,
6066
6508
  messages_DeviceFirmwareUpdateTaskStatus as DeviceFirmwareUpdateTaskStatus,
6067
6509
  messages_DeviceFirmwareTarget as DeviceFirmwareTarget,
@@ -6070,13 +6512,6 @@ declare namespace messages {
6070
6512
  messages_DeviceFirmwareUpdateRecordFields as DeviceFirmwareUpdateRecordFields,
6071
6513
  messages_DeviceFirmwareUpdateStatusGet as DeviceFirmwareUpdateStatusGet,
6072
6514
  messages_DeviceFirmwareUpdateStatus as DeviceFirmwareUpdateStatus,
6073
- messages_DeviceFactoryAck as DeviceFactoryAck,
6074
- messages_DeviceFactoryInfoManufactureTime as DeviceFactoryInfoManufactureTime,
6075
- messages_DeviceFactoryInfo as DeviceFactoryInfo,
6076
- messages_DeviceFactoryInfoSet as DeviceFactoryInfoSet,
6077
- messages_DeviceFactoryInfoGet as DeviceFactoryInfoGet,
6078
- messages_DeviceFactoryPermanentLock as DeviceFactoryPermanentLock,
6079
- messages_DeviceFactoryTest as DeviceFactoryTest,
6080
6515
  messages_DeviceType as DeviceType,
6081
6516
  messages_DeviceSeType as DeviceSeType,
6082
6517
  messages_DeviceSEState as DeviceSEState,
@@ -6089,9 +6524,15 @@ declare namespace messages {
6089
6524
  messages_DeviceInfoTypes as DeviceInfoTypes,
6090
6525
  messages_DeviceInfoGet as DeviceInfoGet,
6091
6526
  messages_ProtocolV2DeviceInfo as ProtocolV2DeviceInfo,
6527
+ messages_DeviceSessionErrorCode as DeviceSessionErrorCode,
6092
6528
  messages_DeviceSessionGet as DeviceSessionGet,
6093
6529
  messages_DeviceSession as DeviceSession,
6530
+ messages_DeviceSessionPinType as DeviceSessionPinType,
6531
+ messages_DeviceSessionAskPin as DeviceSessionAskPin,
6532
+ messages_DeviceSessionAskPassphrase as DeviceSessionAskPassphrase,
6533
+ messages_DeviceSessionAskPin_FailureSubCodes as DeviceSessionAskPin_FailureSubCodes,
6094
6534
  messages_DeviceStatus as DeviceStatus,
6535
+ messages_DeviceStatusGet as DeviceStatusGet,
6095
6536
  messages_FilesystemPermissionFix as FilesystemPermissionFix,
6096
6537
  messages_FilesystemPathInfo as FilesystemPathInfo,
6097
6538
  messages_FilesystemPathInfoQuery as FilesystemPathInfoQuery,
@@ -6104,6 +6545,26 @@ declare namespace messages {
6104
6545
  messages_FilesystemDirMake as FilesystemDirMake,
6105
6546
  messages_FilesystemDirRemove as FilesystemDirRemove,
6106
6547
  messages_FilesystemFormat as FilesystemFormat,
6548
+ messages_InternalMyAddressRequest as InternalMyAddressRequest,
6549
+ messages_OnboardingStep as OnboardingStep,
6550
+ messages_OnboardingPhase as OnboardingPhase,
6551
+ messages_OnboardingSetupKind as OnboardingSetupKind,
6552
+ messages_OnboardingSetupMethod as OnboardingSetupMethod,
6553
+ messages_OnboardingSetupStatus as OnboardingSetupStatus,
6554
+ messages_OnboardingStatusGet as OnboardingStatusGet,
6555
+ messages_OnboardingStatus as OnboardingStatus,
6556
+ messages_PortfolioUpdate as PortfolioUpdate,
6557
+ messages_ViewAmount as ViewAmount,
6558
+ messages_ViewDetail as ViewDetail,
6559
+ messages_ViewTipType as ViewTipType,
6560
+ messages_ViewTip as ViewTip,
6561
+ messages_ViewRawData as ViewRawData,
6562
+ messages_ViewSignLayout as ViewSignLayout,
6563
+ messages_ViewSignPage as ViewSignPage,
6564
+ messages_ViewVerifyPage as ViewVerifyPage,
6565
+ messages_ProtocolV2FailureType as ProtocolV2FailureType,
6566
+ messages_Enum_ProtocolV2Capability as Enum_ProtocolV2Capability,
6567
+ messages_ProtocolV2Capability as ProtocolV2Capability,
6107
6568
  messages_MessageType as MessageType,
6108
6569
  messages_MessageKey as MessageKey,
6109
6570
  messages_MessageResponse as MessageResponse,
@@ -6112,10 +6573,22 @@ declare namespace messages {
6112
6573
  };
6113
6574
  }
6114
6575
 
6576
+ declare class ProtocolV2SequenceCursor {
6577
+ private current;
6578
+ next(): number;
6579
+ }
6580
+
6115
6581
  type ProtocolV2Schemas = {
6116
6582
  protocolV1: Root;
6117
6583
  protocolV2: Root;
6118
6584
  };
6585
+ type ProtocolV2CallContext = {
6586
+ messageName: string;
6587
+ timeoutMs?: number;
6588
+ highVolume: boolean;
6589
+ generation: number;
6590
+ signal: AbortSignal;
6591
+ };
6119
6592
  type ProtocolLogger = {
6120
6593
  debug?: (...args: any[]) => void;
6121
6594
  error?: (...args: any[]) => void;
@@ -6124,11 +6597,15 @@ type ProtocolV2SessionOptions = {
6124
6597
  schemas: ProtocolV2Schemas;
6125
6598
  router: number;
6126
6599
  packetSrc?: number;
6127
- writeFrame: (frame: Uint8Array) => Promise<void>;
6128
- readFrame: () => Promise<Uint8Array>;
6600
+ maxFrameBytes?: number;
6601
+ prepareCall?: (context: ProtocolV2CallContext) => Promise<void> | void;
6602
+ writeFrame: (frame: Uint8Array, context: ProtocolV2CallContext) => Promise<void>;
6603
+ readFrame: (context: ProtocolV2CallContext) => Promise<Uint8Array>;
6129
6604
  logger?: ProtocolLogger;
6130
6605
  logPrefix?: string;
6131
6606
  createTimeoutError?: (name: string, timeoutMs: number) => Error;
6607
+ sequenceCursor?: ProtocolV2SequenceCursor;
6608
+ generation?: number;
6132
6609
  };
6133
6610
  type ProtocolV2CallOptions = {
6134
6611
  timeoutMs?: number;
@@ -6140,12 +6617,12 @@ type ProtocolV2CallOptions = {
6140
6617
  declare function hexToBytes(hex: string): Uint8Array;
6141
6618
  declare function bytesToHex(bytes: Uint8Array): string;
6142
6619
  declare function getErrorMessage(error: unknown): string;
6143
- declare function withProtocolTimeout<T>(promise: Promise<T>, timeoutMs: number | undefined, createTimeoutError: () => Error, onTimeout?: () => void): Promise<T>;
6144
- declare const PROTOCOL_V2_WRITE_WATCHDOG_TIMEOUT_MS = 0;
6620
+ declare function withProtocolTimeout<T>(promise: Promise<T>, timeoutMs: number | undefined, createTimeoutError: () => Error, onTimeout?: () => void, abortSignal?: AbortSignal): Promise<T>;
6145
6621
  declare class ProtocolV2Session {
6146
6622
  private readonly options;
6623
+ private readonly sequenceCursor;
6147
6624
  private pendingCall;
6148
- private protoSeq;
6625
+ private lastResponseSequence?;
6149
6626
  constructor(options: ProtocolV2SessionOptions);
6150
6627
  call(name: string, data: Record<string, unknown>, callOptions?: ProtocolV2CallOptions): Promise<MessageFromOneKey>;
6151
6628
  private executeCall;
@@ -6159,6 +6636,73 @@ declare function probeProtocolV2({ call, timeoutMs, logger, logPrefix, onBeforeP
6159
6636
  onProbeFailed?: (error: unknown) => Promise<void> | void;
6160
6637
  }): Promise<boolean>;
6161
6638
 
6639
+ type ProtocolV2LinkErrorClassification = 'link-fatal' | 'recoverable';
6640
+ interface ProtocolV2LinkAdapter {
6641
+ router: number;
6642
+ maxFrameBytes?: number;
6643
+ generation: number;
6644
+ prepareCall(context: ProtocolV2CallContext): Promise<void> | void;
6645
+ writeFrame(frame: Uint8Array, context: ProtocolV2CallContext): Promise<void>;
6646
+ readFrame(context: ProtocolV2CallContext): Promise<Uint8Array>;
6647
+ reset(reason: string): Promise<void> | void;
6648
+ logger?: ProtocolV2SessionOptions['logger'];
6649
+ logPrefix?: string;
6650
+ createTimeoutError?: ProtocolV2SessionOptions['createTimeoutError'];
6651
+ }
6652
+ type ProtocolV2LinkManagerOptions<Key> = {
6653
+ getSchemas: () => ProtocolV2Schemas;
6654
+ classifyError: (error: unknown) => ProtocolV2LinkErrorClassification;
6655
+ onLinkInvalidated?: (key: Key, reason: string) => Promise<void> | void;
6656
+ };
6657
+ declare class ProtocolV2LinkManager<Key> {
6658
+ private readonly links;
6659
+ private readonly sequences;
6660
+ private readonly callQueues;
6661
+ private readonly generations;
6662
+ private readonly invalidationReasons;
6663
+ private readonly invalidations;
6664
+ private readonly options;
6665
+ constructor(options: ProtocolV2LinkManagerOptions<Key>);
6666
+ call(key: Key, createAdapter: () => ProtocolV2LinkAdapter, name: string, data: Record<string, unknown>, options?: TransportCallOptions): Promise<MessageFromOneKey>;
6667
+ invalidateLink(key: Key, reason: string): Promise<void>;
6668
+ invalidateAllLinks(reason: string): Promise<void>;
6669
+ dispose(reason: string): Promise<void>;
6670
+ private getOrCreateLink;
6671
+ private executeCall;
6672
+ private clearSettledCallQueue;
6673
+ private assertCallGeneration;
6674
+ }
6675
+
6676
+ type ProtocolV2UsbTransportBaseOptions = {
6677
+ router: number;
6678
+ maxFrameBytes: number;
6679
+ logPrefix: string;
6680
+ };
6681
+ declare abstract class ProtocolV2UsbTransportBase<Key> {
6682
+ private readonly protocolV2UsbLinks;
6683
+ private readonly protocolV2UsbAssemblers;
6684
+ private readonly protocolV2UsbGenerations;
6685
+ private readonly protocolV2UsbCancellations;
6686
+ private readonly protocolV2UsbOptions;
6687
+ protected constructor(options: ProtocolV2UsbTransportBaseOptions);
6688
+ protected abstract getProtocolV2UsbSchemas(): ProtocolV2Schemas;
6689
+ protected abstract getProtocolV2UsbLogger(): ProtocolV2SessionOptions['logger'];
6690
+ protected abstract writeProtocolV2UsbPacket(key: Key, frame: Uint8Array, context: ProtocolV2CallContext): Promise<void>;
6691
+ protected abstract readProtocolV2UsbPacket(key: Key, context: ProtocolV2CallContext): Promise<Uint8Array>;
6692
+ protected abstract resetProtocolV2UsbNativeLink(key: Key, reason: string): Promise<void>;
6693
+ protected abstract createProtocolV2UsbTimeoutError(name: string, timeoutMs: number): Error;
6694
+ protected onProtocolV2UsbLinkInvalidated(_key: Key, _reason: string): Promise<void> | void;
6695
+ protected rotateProtocolV2UsbGeneration(key: Key, reason: string): Promise<number>;
6696
+ protected callProtocolV2Usb(key: Key, name: string, data: Record<string, unknown>, options?: TransportCallOptions): Promise<MessageFromOneKey>;
6697
+ protected invalidateProtocolV2UsbLink(key: Key, reason: string): Promise<void>;
6698
+ protected invalidateAllProtocolV2UsbLinks(reason: string): Promise<void>;
6699
+ protected disposeProtocolV2UsbLinks(reason: string): Promise<void>;
6700
+ private createProtocolV2UsbAdapter;
6701
+ private getProtocolV2UsbAssembler;
6702
+ private createProtocolV2UsbCancellation;
6703
+ private createProtocolV2UsbIoError;
6704
+ }
6705
+
6162
6706
  declare function info(res: any): {
6163
6707
  version: string;
6164
6708
  configured: boolean;
@@ -6185,20 +6729,54 @@ declare namespace check {
6185
6729
 
6186
6730
  declare const LogBlockCommand: Set<string>;
6187
6731
 
6732
+ declare function getSafeTransportLogPayload(value: unknown, messageName?: string): unknown;
6733
+ declare function createTransportCallLog(name: string, protocol: ProtocolType, data: Record<string, unknown>): {
6734
+ name: string;
6735
+ protocol: ProtocolType;
6736
+ request: unknown;
6737
+ };
6738
+ declare function shouldSuppressHighVolumeCallLog(name: string): boolean;
6739
+
6740
+ /** Protocol V1 USB report marker, ASCII `?`. */
6188
6741
  declare const PROTOCOL_V1_REPORT_ID = 63;
6742
+ /** Protocol V1 envelope marker, ASCII `#`. */
6189
6743
  declare const PROTOCOL_V1_HEADER_BYTE = 35;
6744
+ /** Protocol V1 payload bytes per chunk after the report marker. */
6190
6745
  declare const PROTOCOL_V1_CHUNK_PAYLOAD_SIZE = 63;
6746
+ /** Protocol V1 USB packet length: report marker plus chunk payload. */
6191
6747
  declare const PROTOCOL_V1_USB_PACKET_SIZE: number;
6748
+ /** Protocol V1 message metadata: two-byte type plus four-byte payload length. */
6192
6749
  declare const PROTOCOL_V1_MESSAGE_HEADER_SIZE: number;
6750
+ /** Protocol V1 envelope metadata: `##`, message type, and payload length. */
6193
6751
  declare const PROTOCOL_V1_ENVELOPE_HEADER_SIZE: number;
6194
- declare const PROTOCOL_V2_FRAME_MAX_BYTES = 4608;
6752
+ /** Firmware Proto Link runtime limit for a complete V2 frame, including header and CRC. */
6753
+ declare const PROTOCOL_V2_FRAME_MAX_BYTES = 4200;
6754
+ /** FilesystemFileWrite chunk size over WebUSB. */
6195
6755
  declare const PROTOCOL_V2_WEBUSB_FILE_CHUNK_SIZE = 4000;
6756
+ /** FilesystemFileWrite chunk size over BLE. */
6196
6757
  declare const PROTOCOL_V2_BLE_FILE_CHUNK_SIZE = 1800;
6758
+ /** BLE FilesystemFileRead chunk size, limited by the Pro2 1024-byte UART TX buffer. */
6759
+ declare const PROTOCOL_V2_BLE_FILE_READ_CHUNK_SIZE = 900;
6760
+ /** Pro2 BLE/UART RX FIFO must hold a complete Proto Link frame. */
6761
+ declare const PROTOCOL_V2_BLE_FRAME_MAX_BYTES = 2048;
6762
+ /** @deprecated Use the transport-specific WebUSB or BLE file chunk constant. */
6197
6763
  declare const PROTOCOL_V2_FILE_CHUNK_SIZE = 4000;
6764
+ /**
6765
+ * Protocol V2 routing channel. USB reaches the main MCU directly, while BLE routes
6766
+ * through the BLE coprocessor UART bridge.
6767
+ */
6198
6768
  declare const PROTOCOL_V2_CHANNEL_USB = 0;
6199
6769
  declare const PROTOCOL_V2_CHANNEL_BLE_UART = 1;
6200
6770
  declare const PROTOCOL_V2_CHANNEL_SOCKET = 2;
6771
+ /** packet_src for protobuf commands; firmware routes zero to the protobuf dispatcher. */
6201
6772
  declare const PROTOCOL_V2_PACKET_SRC_COMMAND = 0;
6773
+ /**
6774
+ * Shared upper bound for a Protocol V2 request without a method-specific timeout.
6775
+ * Interactive and signing calls may wait on the device UI, so keep this longer than
6776
+ * ordinary transport timeouts while still preventing a stalled link from blocking
6777
+ * the per-device queue forever.
6778
+ */
6779
+ declare const PROTOCOL_V2_DEFAULT_RESPONSE_TIMEOUT_MS: number;
6202
6780
 
6203
6781
  declare const _default: {
6204
6782
  check: typeof check;
@@ -6216,6 +6794,21 @@ declare const _default: {
6216
6794
  decodeMessage: typeof decodeMessage;
6217
6795
  };
6218
6796
  ProtocolV2: {
6797
+ isAckFrame: typeof isAckFrame;
6798
+ inspectFrameHeader: typeof inspectFrameHeader;
6799
+ inspectFrame(schemas: {
6800
+ protocolV1: protobuf.Root;
6801
+ protocolV2: protobuf.Root;
6802
+ }, frame: Uint8Array): {
6803
+ messageName: string;
6804
+ messageTypeId: number;
6805
+ pbPayload: Uint8Array;
6806
+ seq: number;
6807
+ router: number;
6808
+ packetSrc: number;
6809
+ dataType: number;
6810
+ type: string;
6811
+ };
6219
6812
  encodeFrame(schemas: {
6220
6813
  protocolV1: protobuf.Root;
6221
6814
  protocolV2: protobuf.Root;
@@ -6223,21 +6816,11 @@ declare const _default: {
6223
6816
  packetSrc?: number | undefined;
6224
6817
  router?: number | undefined;
6225
6818
  seq?: number | undefined;
6226
- logger?: ProtocolV2DebugLogger | undefined;
6227
- logPrefix?: string | undefined;
6228
- context?: string | undefined;
6229
6819
  }): Uint8Array;
6230
6820
  decodeFrame(schemas: {
6231
6821
  protocolV1: protobuf.Root;
6232
6822
  protocolV2: protobuf.Root;
6233
- }, frame: Uint8Array, options?: Pick<{
6234
- packetSrc?: number | undefined;
6235
- router?: number | undefined;
6236
- seq?: number | undefined;
6237
- logger?: ProtocolV2DebugLogger | undefined;
6238
- logPrefix?: string | undefined;
6239
- context?: string | undefined;
6240
- }, "logger" | "logPrefix" | "context">): {
6823
+ }, frame: Uint8Array): {
6241
6824
  message: {
6242
6825
  [key: string]: any;
6243
6826
  };
@@ -6250,7 +6833,10 @@ declare const _default: {
6250
6833
  };
6251
6834
  PROTOCOL_V2_SYS_MESSAGE_THRESHOLD: number;
6252
6835
  ProtocolV2FrameAssembler: typeof ProtocolV2FrameAssembler;
6836
+ ProtocolV2LinkManager: typeof ProtocolV2LinkManager;
6837
+ ProtocolV2SequenceCursor: typeof ProtocolV2SequenceCursor;
6253
6838
  ProtocolV2Session: typeof ProtocolV2Session;
6839
+ ProtocolV2UsbTransportBase: typeof ProtocolV2UsbTransportBase;
6254
6840
  bytesToHex: typeof bytesToHex;
6255
6841
  concatUint8Arrays: typeof concatUint8Arrays;
6256
6842
  createMessageFromName: (messages: protobuf.Root, name: string) => {
@@ -6271,4 +6857,4 @@ declare const _default: {
6271
6857
  withProtocolTimeout: typeof withProtocolTimeout;
6272
6858
  };
6273
6859
 
6274
- export { AcquireInput, Address, AlephiumAddress, AlephiumBytecodeAck, AlephiumBytecodeRequest, AlephiumGetAddress, AlephiumMessageSignature, AlephiumSignMessage, AlephiumSignTx, AlephiumSignedTx, AlephiumTxAck, AlephiumTxRequest, AlgorandAddress, AlgorandGetAddress, AlgorandSignTx, AlgorandSignedTx, AmountUnit, ApplyFlags, ApplySettings, AptosAddress, AptosGetAddress, AptosMessagePayload, AptosMessageSignature, AptosSignMessage, AptosSignSIWAMessage, AptosSignTx, AptosSignedTx, AptosTransactionType, AuthorizeCoinJoin, BIP32Address, BackupDevice, BackupType, BatchGetPublickeys, BenfenAddress, BenfenGetAddress, BenfenMessageSignature, BenfenSignMessage, BenfenSignTx, BenfenSignedTx, BenfenTxAck, BenfenTxRequest, BinanceAddress, BinanceCancelMsg, BinanceCoin, BinanceGetAddress, BinanceGetPublicKey, BinanceInputOutput, BinanceOrderMsg, BinanceOrderSide, BinanceOrderType, BinancePublicKey, BinanceSignTx, BinanceSignedTx, BinanceTimeInForce, BinanceTransferMsg, BinanceTxRequest, BixinBackupAck, BixinBackupDevice, BixinBackupDeviceAck, BixinBackupRequest, BixinLoadDevice, BixinMessageSE, BixinOutMessageSE, BixinPinInputOnDevice, BixinRestoreAck, BixinRestoreRequest, BixinSeedOperate, BixinVerifyDeviceAck, BixinVerifyDeviceRequest, BixinWhiteListAck, BixinWhiteListRequest, BlurRequest, ButtonAck, ButtonRequest, ButtonRequestType, Cancel, CancelAuthorization, Capability, CardanoAddress, CardanoAddressParametersType, CardanoAddressType, CardanoAssetGroup, CardanoBlockchainPointerType, CardanoCVoteRegistrationDelegation, CardanoCVoteRegistrationFormat, CardanoCVoteRegistrationParametersType, CardanoCertificateType, CardanoDRep, CardanoDRepType, CardanoDerivationType, CardanoGetAddress, CardanoGetNativeScriptHash, CardanoGetPublicKey, CardanoMessageSignature, CardanoNativeScript, CardanoNativeScriptHash, CardanoNativeScriptHashDisplayFormat, CardanoNativeScriptType, CardanoPoolMetadataType, CardanoPoolOwner, CardanoPoolParametersType, CardanoPoolRelayParameters, CardanoPoolRelayType, CardanoPublicKey, CardanoSignMessage, CardanoSignTxFinished, CardanoSignTxInit, CardanoToken, CardanoTxAuxiliaryData, CardanoTxAuxiliaryDataSupplement, CardanoTxAuxiliaryDataSupplementType, CardanoTxBodyHash, CardanoTxCertificate, CardanoTxCollateralInput, CardanoTxHostAck, CardanoTxInlineDatumChunk, CardanoTxInput, CardanoTxItemAck, CardanoTxMint, CardanoTxOutput, CardanoTxOutputSerializationFormat, CardanoTxReferenceInput, CardanoTxReferenceScriptChunk, CardanoTxRequiredSigner, CardanoTxSigningMode, CardanoTxWithdrawal, CardanoTxWitnessRequest, CardanoTxWitnessResponse, CardanoTxWitnessType, ChangeOutputScriptType, ChangePin, ChangeWipeCode, CipherKeyValue, CipheredKeyValue, CoinJoinRequest, CoinPurchaseMemo, CommandFlags, ConfluxAddress, ConfluxGetAddress, ConfluxMessageSignature, ConfluxSignMessage, ConfluxSignMessageCIP23, ConfluxSignTx, ConfluxTxAck, ConfluxTxRequest, CosmosAddress, CosmosGetAddress, CosmosSignTx, CosmosSignedTx, DecredStakingSpendType, Deprecated_PassphraseStateAck, Deprecated_PassphraseStateRequest, DeviceBackToBoot, DeviceCertificate, DeviceCertificateRead, DeviceCertificateSign, DeviceCertificateSignature, DeviceCertificateWrite, DeviceCoprocessorInfo, DeviceEraseSector, DeviceFactoryAck, DeviceFactoryInfo, DeviceFactoryInfoGet, DeviceFactoryInfoManufactureTime, DeviceFactoryInfoSet, DeviceFactoryPermanentLock, DeviceFactoryTest, DeviceFirmwareImageInfo, DeviceFirmwareTarget, DeviceFirmwareTargetType, DeviceFirmwareUpdateRecord, DeviceFirmwareUpdateRecordFields, DeviceFirmwareUpdateRequest, DeviceFirmwareUpdateStatus, DeviceFirmwareUpdateStatusGet, DeviceFirmwareUpdateTaskStatus, DeviceHardwareInfo, DeviceInfo, DeviceInfoGet, DeviceInfoSettings, DeviceInfoTargets, DeviceInfoTypes, DeviceMainMcuInfo, DeviceReboot, DeviceRebootType, DeviceSEInfo, DeviceSEState, DeviceSeType, DeviceSession, DeviceSessionGet, DeviceSettings, DeviceSettingsGet, DeviceSettingsSet, DeviceStatus, DeviceType, DnxAddress, DnxComputedKeyImage, DnxGetAddress, DnxInputAck, DnxInputRequest, DnxRTSigsRequest, DnxSignTx, DnxSignedTx, DnxTxKey, DoPreauthorized, ECDHSessionKey, EcdsaPublicKeys, EmmcDir, EmmcDirList, EmmcDirMake, EmmcDirRemove, EmmcFile, EmmcFileDelete, EmmcFileRead, EmmcFileWrite, EmmcFixPermission, EmmcPath, EmmcPathInfo, EndSession, Entropy, EntropyAck, EntropyRequest, Enum_BackupType, Enum_ButtonRequestType, Enum_Capability, Enum_InputScriptType, Enum_OutputScriptType, Enum_PinMatrixRequestType, Enum_RequestType, Enum_SafetyCheckLevel, Enum_WordRequestType, EosActionBuyRam, EosActionBuyRamBytes, EosActionCommon, EosActionDelegate, EosActionDeleteAuth, EosActionLinkAuth, EosActionNewAccount, EosActionRefund, EosActionSellRam, EosActionTransfer, EosActionUndelegate, EosActionUnknown, EosActionUnlinkAuth, EosActionUpdateAuth, EosActionVoteProducer, EosAsset, EosAuthorization, EosAuthorizationAccount, EosAuthorizationKey, EosAuthorizationWait, EosGetPublicKey, EosPermissionLevel, EosPublicKey, EosSignTx, EosSignedTx, EosTxActionAck, EosTxActionRequest, EosTxHeader, EthereumAccessList, EthereumAccessListOneKey, EthereumAddress, EthereumAddressOneKey, EthereumAuthorizationOneKey, EthereumAuthorizationSignature, EthereumDataType, EthereumDataTypeOneKey, EthereumDefinitionType, EthereumDefinitions, EthereumFieldType, EthereumFieldTypeOneKey, EthereumGetAddress, EthereumGetAddressOneKey, EthereumGetPublicKey, EthereumGetPublicKeyOneKey, EthereumGnosisSafeTxAck, EthereumGnosisSafeTxOperation, EthereumGnosisSafeTxRequest, EthereumMessageSignature, EthereumMessageSignatureOneKey, EthereumNetworkInfo, EthereumPublicKey, EthereumPublicKeyOneKey, EthereumSignMessage, EthereumSignMessageEIP712, EthereumSignMessageOneKey, EthereumSignTx, EthereumSignTxEIP1559, EthereumSignTxEIP1559OneKey, EthereumSignTxEIP7702OneKey, EthereumSignTxOneKey, EthereumSignTypedData, EthereumSignTypedDataOneKey, EthereumSignTypedHash, EthereumSignTypedHashOneKey, EthereumStructMember, EthereumStructMemberOneKey, EthereumTokenInfo, EthereumTxAck, EthereumTxAckOneKey, EthereumTxRequest, EthereumTxRequestOneKey, EthereumTypedDataSignature, EthereumTypedDataSignatureOneKey, EthereumTypedDataStructAck, EthereumTypedDataStructAckOneKey, EthereumTypedDataStructRequest, EthereumTypedDataStructRequestOneKey, EthereumTypedDataValueAck, EthereumTypedDataValueAckOneKey, EthereumTypedDataValueRequest, EthereumTypedDataValueRequestOneKey, EthereumVerifyMessage, EthereumVerifyMessageOneKey, ExportType, Failure, FailureType, Features, FileInfo, FileInfoList, FilecoinAddress, FilecoinGetAddress, FilecoinSignTx, FilecoinSignedTx, FilesystemDir, FilesystemDirList, FilesystemDirMake, FilesystemDirRemove, FilesystemFile, FilesystemFileDelete, FilesystemFileRead, FilesystemFileWrite, FilesystemFormat, FilesystemPathInfo, FilesystemPathInfoQuery, FilesystemPermissionFix, FirmwareErase, FirmwareErase_ex, FirmwareHash, FirmwareRequest, FirmwareUpdateEmmc, FirmwareUpload, GetAddress, GetDeviceInfo, GetECDHSessionKey, GetEntropy, GetFeatures, GetFirmwareHash, GetNextU2FCounter, GetNonce, GetOwnershipId, GetOwnershipProof, GetPassphraseState, GetPublicKey, GetPublicKeyMultiple, GetWallpaper, HDNodePathType, HDNodeType, IdentityType, Initialize, InputScriptType, InternalInputScriptType, InternalMyAddressRequest, KaspaAddress, KaspaGetAddress, KaspaSignTx, KaspaSignedTx, KaspaTxInputAck, KaspaTxInputRequest, ListResDir, LnurlAuth, LnurlAuthResp, LockDevice, LogBlockCommand, LowLevelDevice, LowlevelTransportSharedPlugin, MessageFromOneKey, MessageKey, MessageResponse, MessageResponseMap, MessageSignature, MessageType, messages as Messages, MoneroAccountPublicAddress, MoneroAddress, MoneroExportedKeyImage, MoneroGetAddress, MoneroGetTxKeyAck, MoneroGetTxKeyRequest, MoneroGetWatchKey, MoneroKeyImageExportInitAck, MoneroKeyImageExportInitRequest, MoneroKeyImageSyncFinalAck, MoneroKeyImageSyncFinalRequest, MoneroKeyImageSyncStepAck, MoneroKeyImageSyncStepRequest, MoneroLiveRefreshFinalAck, MoneroLiveRefreshFinalRequest, MoneroLiveRefreshStartAck, MoneroLiveRefreshStartRequest, MoneroLiveRefreshStepAck, MoneroLiveRefreshStepRequest, MoneroMultisigKLRki, MoneroNetworkType, MoneroOutputEntry, MoneroRctKeyPublic, MoneroRingCtSig, MoneroSubAddressIndicesList, MoneroTransactionAllInputsSetAck, MoneroTransactionAllInputsSetRequest, MoneroTransactionAllOutSetAck, MoneroTransactionAllOutSetRequest, MoneroTransactionData, MoneroTransactionDestinationEntry, MoneroTransactionFinalAck, MoneroTransactionFinalRequest, MoneroTransactionInitAck, MoneroTransactionInitRequest, MoneroTransactionInputViniAck, MoneroTransactionInputViniRequest, MoneroTransactionInputsPermutationAck, MoneroTransactionInputsPermutationRequest, MoneroTransactionRsigData, MoneroTransactionSetInputAck, MoneroTransactionSetInputRequest, MoneroTransactionSetOutputAck, MoneroTransactionSetOutputRequest, MoneroTransactionSignInputAck, MoneroTransactionSignInputRequest, MoneroTransactionSourceEntry, MoneroTransferDetails, MoneroWatchKey, MultisigRedeemScriptType, NEMAddress, NEMAggregateModification, NEMCosignatoryModification, NEMDecryptMessage, NEMDecryptedMessage, NEMGetAddress, NEMImportanceTransfer, NEMImportanceTransferMode, NEMModificationType, NEMMosaic, NEMMosaicCreation, NEMMosaicDefinition, NEMMosaicLevy, NEMMosaicSupplyChange, NEMProvisionNamespace, NEMSignTx, NEMSignedTx, NEMSupplyChangeType, NEMTransactionCommon, NEMTransfer, NFTWriteData, NFTWriteInfo, NearAddress, NearGetAddress, NearSignTx, NearSignedTx, NeoAddress, NeoGetAddress, NeoSignTx, NeoSignedTx, NervosAddress, NervosGetAddress, NervosSignTx, NervosSignedTx, NervosTxAck, NervosTxRequest, NexaAddress, NexaGetAddress, NexaSignTx, NexaSignedTx, NexaTxInputAck, NexaTxInputRequest, NextU2FCounter, Nonce, NostrDecryptMessage, NostrDecryptedMessage, NostrEncryptMessage, NostrEncryptedMessage, NostrGetPublicKey, NostrPublicKey, NostrSignEvent, NostrSignSchnorr, NostrSignedEvent, NostrSignedSchnorr, OneKeyDeviceCommType, OneKeyDeviceInfo, OneKeyDeviceInfoBase, OneKeyDeviceInfoWithSession, OneKeyDeviceType, OneKeyMobileDeviceInfo, OneKeySEState, OneKeySeType, OnekeyFeatures, OnekeyGetFeatures, OutputScriptType, OwnershipId, OwnershipProof, PROTOCOL_V1_CHUNK_PAYLOAD_SIZE, PROTOCOL_V1_ENVELOPE_HEADER_SIZE, PROTOCOL_V1_HEADER_BYTE, PROTOCOL_V1_MESSAGE_HEADER_SIZE, PROTOCOL_V1_REPORT_ID, PROTOCOL_V1_USB_PACKET_SIZE, PROTOCOL_V2_BLE_FILE_CHUNK_SIZE, PROTOCOL_V2_CHANNEL_BLE_UART, PROTOCOL_V2_CHANNEL_SOCKET, PROTOCOL_V2_CHANNEL_USB, PROTOCOL_V2_FILE_CHUNK_SIZE, PROTOCOL_V2_FRAME_MAX_BYTES, PROTOCOL_V2_PACKET_SRC_COMMAND, PROTOCOL_V2_SYS_MESSAGE_THRESHOLD, PROTOCOL_V2_WEBUSB_FILE_CHUNK_SIZE, PROTOCOL_V2_WRITE_WATCHDOG_TIMEOUT_MS, PassphraseAck, PassphraseRequest, PassphraseState, Path, PaymentRequestMemo, PinMatrixAck, PinMatrixRequest, PinMatrixRequestType, Ping, PolkadotAddress, PolkadotGetAddress, PolkadotSignTx, PolkadotSignedTx, PreauthorizedRequest, PrevInput, PrevOutput, PrevTx, ProtocolInfo, ProtocolInfoRequest, ProtocolType, ProtocolV1, ProtocolV2, ProtocolV2CallOptions, ProtocolV2DeviceInfo, ProtocolV2FrameAssembler, ProtocolV2Schemas, ProtocolV2Session, ProtocolV2SessionOptions, PublicKey, PublicKeyMultiple, ReadSEPublicCert, ReadSEPublicKey, Reboot, RebootToBoardloader, RebootToBootloader, RebootType, RecoveryDevice, RecoveryDeviceType, RefundMemo, RequestType, ResetDevice, ResourceAck, ResourceRequest, ResourceType, ResourceUpdate, ResourceUpload, RippleAddress, RippleGetAddress, RipplePayment, RippleSignTx, RippleSignedTx, SEMessageSignature, SEPublicCert, SEPublicKey, SESignMessage, SafetyCheckLevel, ScdoAddress, ScdoGetAddress, ScdoSignMessage, ScdoSignTx, ScdoSignedMessage, ScdoSignedTx, ScdoTxAck, SdProtect, SdProtectOperationType, SeedRequestType, SelfTest, SetBusy, SetU2FCounter, SetWallpaper, SignIdentity, SignMessage, SignPsbt, SignTx, SignedIdentity, SignedPsbt, SolanaAddress, SolanaGetAddress, SolanaMessageSignature, SolanaOffChainMessageFormat, SolanaOffChainMessageVersion, SolanaSignOffChainMessage, SolanaSignTx, SolanaSignUnsafeMessage, SolanaSignedTx, SolanaTxATADetails, SolanaTxExtraInfo, SpiFlashData, SpiFlashRead, SpiFlashWrite, StarcoinAddress, StarcoinGetAddress, StarcoinGetPublicKey, StarcoinMessageSignature, StarcoinPublicKey, StarcoinSignMessage, StarcoinSignTx, StarcoinSignedTx, StarcoinVerifyMessage, StartSession, StellarAccountMergeOp, StellarAddress, StellarAllowTrustOp, StellarAsset, StellarAssetType, StellarBumpSequenceOp, StellarChangeTrustOp, StellarCreateAccountOp, StellarCreatePassiveSellOfferOp, StellarGetAddress, StellarInvokeHostFunctionOp, StellarManageBuyOfferOp, StellarManageDataOp, StellarManageSellOfferOp, StellarMemoType, StellarPathPaymentStrictReceiveOp, StellarPathPaymentStrictSendOp, StellarPaymentOp, StellarRequestType, StellarSetOptionsOp, StellarSignTx, StellarSignedTx, StellarSignerType, StellarSorobanDataAck, StellarSorobanDataRequest, StellarTxOpRequest, Success, SuiAddress, SuiGetAddress, SuiMessageSignature, SuiSignMessage, SuiSignTx, SuiSignedTx, SuiTxAck, SuiTxRequest, TextMemo, TezosAddress, TezosBallotOp, TezosBallotType, TezosContractID, TezosContractType, TezosDelegationOp, TezosGetAddress, TezosGetPublicKey, TezosManagerTransfer, TezosOriginationOp, TezosParametersManager, TezosProposalOp, TezosPublicKey, TezosRevealOp, TezosSignTx, TezosSignedTx, TezosTransactionOp, TonAddress, TonGetAddress, TonSignData, TonSignDataType, TonSignMessage, TonSignProof, TonSignedData, TonSignedMessage, TonSignedProof, TonTxAck, TonWalletVersion, TonWorkChain, Transport, TransportCallOptions, TronAddress, TronCancelAllUnfreezeV2Contract, TronContract, TronDelegateResourceContract, TronFreezeBalanceContract, TronFreezeBalanceV2Contract, TronGetAddress, TronMessageSignature, TronMessageType, TronResourceCode, TronSignMessage, TronSignTx, TronSignedTx, TronTransferContract, TronTriggerSmartContract, TronUnDelegateResourceContract, TronUnfreezeBalanceContract, TronUnfreezeBalanceV2Contract, TronVoteWitnessContract, TronWithdrawBalanceContract, TronWithdrawExpireUnfreezeContract, TxAck, TxAckInput, TxAckInputWrapper, TxAckOutput, TxAckOutputWrapper, TxAckPaymentRequest, TxAckPrevExtraData, TxAckPrevExtraDataWrapper, TxAckPrevInput, TxAckPrevInputWrapper, TxAckPrevMeta, TxAckPrevOutput, TxAckPrevOutputWrapper, TxAckResponse, TxInput, TxInputType, TxOutput, TxOutputBinType, TxOutputType, TxRequest, TxRequestDetailsType, TxRequestSerializedType, TypedCall, UintType, UnLockDevice, UnLockDeviceResponse, UnlockPath, UnlockedPathRequest, UpgradeFileHeader, VerifyMessage, ViewAmount, ViewDetail, ViewSignPage, ViewTip, ViewTipType, ViewVerifyPage, Vote, WL_OperationType, Wallpaper, WallpaperTarget, WipeDevice, WordAck, WordRequest, WordRequestType, WriteSEPrivateKey, WriteSEPublicCert, ZoomRequest, bytesToHex, concatUint8Arrays, _default as default, experimental_field, experimental_message, facotry, getErrorMessage, hexToBytes, probeProtocolV2, index as protocolV1, protocolV2Codec as protocolV2, withProtocolTimeout };
6860
+ 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, DeviceFirmwareUpdateStatus, DeviceFirmwareUpdateStatusGet, DeviceFirmwareUpdateTaskStatus, DeviceHardwareInfo, DeviceInfo, DeviceInfoGet, DeviceInfoSettings, DeviceInfoTargets, DeviceInfoTypes, DeviceMainMcuInfo, DeviceMiscUsbMscControl, DeviceReboot, DeviceRebootType, DeviceSEInfo, DeviceSEState, DeviceSeType, DeviceSession, DeviceSessionAskPassphrase, DeviceSessionAskPin, DeviceSessionAskPin_FailureSubCodes, DeviceSessionErrorCode, DeviceSessionGet, DeviceSessionPinType, 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, 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_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, 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, isProtocolV2LinkError, probeProtocolV2, index as protocolV1, protocolV2Codec as protocolV2, shouldSuppressHighVolumeCallLog, withProtocolTimeout, writeProtocolV2BleFrame };