@onekeyfe/hd-transport 1.2.0-alpha.2 → 1.2.0-alpha.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/README.md +1 -1
  2. package/__tests__/messages.test.js +122 -0
  3. package/__tests__/protocol-v2-link-manager.test.js +351 -0
  4. package/__tests__/protocol-v2-usb-transport-base.test.js +296 -0
  5. package/__tests__/protocol-v2.test.js +384 -108
  6. package/dist/constants.d.ts +5 -3
  7. package/dist/constants.d.ts.map +1 -1
  8. package/dist/index.d.ts +920 -369
  9. package/dist/index.d.ts.map +1 -1
  10. package/dist/index.js +587 -251
  11. package/dist/protocols/index.d.ts +11 -5
  12. package/dist/protocols/index.d.ts.map +1 -1
  13. package/dist/protocols/v2/constants.d.ts +1 -0
  14. package/dist/protocols/v2/constants.d.ts.map +1 -1
  15. package/dist/protocols/v2/decode.d.ts +3 -2
  16. package/dist/protocols/v2/decode.d.ts.map +1 -1
  17. package/dist/protocols/v2/encode.d.ts +2 -3
  18. package/dist/protocols/v2/encode.d.ts.map +1 -1
  19. package/dist/protocols/v2/index.d.ts +0 -1
  20. package/dist/protocols/v2/index.d.ts.map +1 -1
  21. package/dist/protocols/v2/link-manager.d.ts +36 -0
  22. package/dist/protocols/v2/link-manager.d.ts.map +1 -0
  23. package/dist/protocols/v2/sequence-cursor.d.ts +5 -0
  24. package/dist/protocols/v2/sequence-cursor.d.ts.map +1 -0
  25. package/dist/protocols/v2/session.d.ts +18 -3
  26. package/dist/protocols/v2/session.d.ts.map +1 -1
  27. package/dist/protocols/v2/usb-transport-base.d.ts +31 -0
  28. package/dist/protocols/v2/usb-transport-base.d.ts.map +1 -0
  29. package/dist/serialization/protobuf/decode.d.ts.map +1 -1
  30. package/dist/serialization/protobuf/messages.d.ts.map +1 -1
  31. package/dist/types/messages.d.ts +534 -225
  32. package/dist/types/messages.d.ts.map +1 -1
  33. package/dist/types/transport.d.ts +5 -3
  34. package/dist/types/transport.d.ts.map +1 -1
  35. package/messages-protocol-v2.json +825 -709
  36. package/package.json +3 -3
  37. package/scripts/protobuf-build.sh +96 -310
  38. package/scripts/protobuf-patches/index.js +1 -0
  39. package/scripts/protobuf-types.js +12 -0
  40. package/src/constants.ts +21 -15
  41. package/src/index.ts +8 -0
  42. package/src/protocols/index.ts +25 -39
  43. package/src/protocols/v2/constants.ts +1 -0
  44. package/src/protocols/v2/crc8.ts +1 -1
  45. package/src/protocols/v2/decode.ts +38 -34
  46. package/src/protocols/v2/encode.ts +2 -28
  47. package/src/protocols/v2/index.ts +0 -1
  48. package/src/protocols/v2/link-manager.ts +162 -0
  49. package/src/protocols/v2/sequence-cursor.ts +10 -0
  50. package/src/protocols/v2/session.ts +132 -178
  51. package/src/protocols/v2/usb-transport-base.ts +194 -0
  52. package/src/serialization/protobuf/decode.ts +4 -1
  53. package/src/serialization/protobuf/messages.ts +6 -1
  54. package/src/types/messages.ts +636 -265
  55. package/src/types/transport.ts +3 -3
  56. package/dist/protocols/v2/debug.d.ts +0 -13
  57. package/dist/protocols/v2/debug.d.ts.map +0 -1
  58. package/src/protocols/v2/debug.ts +0 -26
package/dist/index.d.ts CHANGED
@@ -60,33 +60,63 @@ 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 */
87
105
  seq: number;
88
106
  }
89
- declare function decodeFrame(data: Uint8Array, debugOptions?: ProtocolV2FrameDebugOptions): ProtoV2Frame;
107
+ declare function isAckFrame(data: Uint8Array): boolean;
108
+ declare function getAckSequence(data: Uint8Array): number | undefined;
109
+ /**
110
+ * Parse and validate a Protocol V2 response frame.
111
+ *
112
+ * Validates:
113
+ * - SOF byte (0x5A)
114
+ * - Header CRC (bytes 0-2)
115
+ * - Frame CRC (full frame except last byte)
116
+ *
117
+ * Returns the decoded messageTypeId, raw protobuf payload, and sequence number.
118
+ */
119
+ declare function decodeFrame(data: Uint8Array): ProtoV2Frame;
90
120
 
91
121
  declare function concatUint8Arrays(arrays: Uint8Array[]): Uint8Array;
92
122
  declare class ProtocolV2FrameAssembler {
@@ -95,6 +125,11 @@ declare class ProtocolV2FrameAssembler {
95
125
  constructor(maxFrameBytes?: number);
96
126
  reset(): void;
97
127
  push(chunk: Uint8Array): Uint8Array | undefined;
128
+ /**
129
+ * Append a chunk (optional) and extract every complete frame currently
130
+ * buffered. Same validation/throw semantics as push(); push() stays
131
+ * backward compatible for callers that drain one frame at a time.
132
+ */
98
133
  drain(chunk?: Uint8Array): Uint8Array[];
99
134
  private append;
100
135
  private extractFrame;
@@ -106,15 +141,15 @@ declare const protocolV2Codec_PROTO_HEAD_CRC_SIZE: typeof PROTO_HEAD_CRC_SIZE;
106
141
  declare const protocolV2Codec_CRC8_INIT: typeof CRC8_INIT;
107
142
  declare const protocolV2Codec_PACKET_SIZE: typeof PACKET_SIZE;
108
143
  declare const protocolV2Codec_PROTO_DATA_TYPE_PACKET: typeof PROTO_DATA_TYPE_PACKET;
144
+ declare const protocolV2Codec_PROTO_DATA_TYPE_ACK: typeof PROTO_DATA_TYPE_ACK;
109
145
  declare const protocolV2Codec_CRC8_TABLE: typeof CRC8_TABLE;
110
146
  declare const protocolV2Codec_crc8: typeof crc8;
111
- type protocolV2Codec_ProtocolV2DebugLogger = ProtocolV2DebugLogger;
112
- type protocolV2Codec_ProtocolV2FrameDebugOptions = ProtocolV2FrameDebugOptions;
113
- declare const protocolV2Codec_logProtocolV2Debug: typeof logProtocolV2Debug;
114
147
  declare const protocolV2Codec_nextProtoSeq: typeof nextProtoSeq;
115
148
  declare const protocolV2Codec_encodeFrame: typeof encodeFrame;
116
149
  declare const protocolV2Codec_encodeProtobufFrame: typeof encodeProtobufFrame;
117
150
  type protocolV2Codec_ProtoV2Frame = ProtoV2Frame;
151
+ declare const protocolV2Codec_isAckFrame: typeof isAckFrame;
152
+ declare const protocolV2Codec_getAckSequence: typeof getAckSequence;
118
153
  declare const protocolV2Codec_decodeFrame: typeof decodeFrame;
119
154
  declare const protocolV2Codec_concatUint8Arrays: typeof concatUint8Arrays;
120
155
  type protocolV2Codec_ProtocolV2FrameAssembler = ProtocolV2FrameAssembler;
@@ -127,15 +162,15 @@ declare namespace protocolV2Codec {
127
162
  protocolV2Codec_CRC8_INIT as CRC8_INIT,
128
163
  protocolV2Codec_PACKET_SIZE as PACKET_SIZE,
129
164
  protocolV2Codec_PROTO_DATA_TYPE_PACKET as PROTO_DATA_TYPE_PACKET,
165
+ protocolV2Codec_PROTO_DATA_TYPE_ACK as PROTO_DATA_TYPE_ACK,
130
166
  protocolV2Codec_CRC8_TABLE as CRC8_TABLE,
131
167
  protocolV2Codec_crc8 as crc8,
132
- protocolV2Codec_ProtocolV2DebugLogger as ProtocolV2DebugLogger,
133
- protocolV2Codec_ProtocolV2FrameDebugOptions as ProtocolV2FrameDebugOptions,
134
- protocolV2Codec_logProtocolV2Debug as logProtocolV2Debug,
135
168
  protocolV2Codec_nextProtoSeq as nextProtoSeq,
136
169
  protocolV2Codec_encodeFrame as encodeFrame,
137
170
  protocolV2Codec_encodeProtobufFrame as encodeProtobufFrame,
138
171
  protocolV2Codec_ProtoV2Frame as ProtoV2Frame,
172
+ protocolV2Codec_isAckFrame as isAckFrame,
173
+ protocolV2Codec_getAckSequence as getAckSequence,
139
174
  protocolV2Codec_decodeFrame as decodeFrame,
140
175
  protocolV2Codec_concatUint8Arrays as concatUint8Arrays,
141
176
  protocolV2Codec_ProtocolV2FrameAssembler as ProtocolV2FrameAssembler,
@@ -150,10 +185,8 @@ type ProtocolV2Schemas$1 = {
150
185
  type ProtocolV2FrameOptions = {
151
186
  packetSrc?: number;
152
187
  router?: number;
188
+ /** Sequence number (1-255). Managed per-session by ProtocolV2Session. */
153
189
  seq?: number;
154
- logger?: ProtocolV2DebugLogger;
155
- logPrefix?: string;
156
- context?: string;
157
190
  };
158
191
  declare const ProtocolV1: {
159
192
  encodeEnvelope: typeof encodeEnvelopeMessage;
@@ -167,8 +200,17 @@ declare const ProtocolV1: {
167
200
  decodeMessage: typeof decodeMessage;
168
201
  };
169
202
  declare const ProtocolV2: {
203
+ isAckFrame: typeof isAckFrame;
204
+ getAckSequence: typeof getAckSequence;
205
+ inspectFrame(schemas: ProtocolV2Schemas$1, frame: Uint8Array): {
206
+ messageName: string;
207
+ messageTypeId: number;
208
+ pbPayload: Uint8Array;
209
+ seq: number;
210
+ type: string;
211
+ };
170
212
  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'>): {
213
+ decodeFrame(schemas: ProtocolV2Schemas$1, frame: Uint8Array): {
172
214
  message: {
173
215
  [key: string]: any;
174
216
  };
@@ -233,7 +275,7 @@ type Transport = {
233
275
  getProtocolType: (path: string) => ProtocolType | undefined;
234
276
  promptDeviceAccess?: () => Promise<USBDevice | BluetoothDevice | null>;
235
277
  init: ITransportInitFn;
236
- stop(): void;
278
+ stop(): void | Promise<void>;
237
279
  configured: boolean;
238
280
  version: string;
239
281
  name: string;
@@ -246,8 +288,10 @@ type LowLevelDevice = OneKeyDeviceInfoBase & {
246
288
  };
247
289
  type LowlevelTransportSharedPlugin = {
248
290
  enumerate: () => Promise<LowLevelDevice[]>;
249
- send: (uuid: string, data: string) => Promise<void>;
250
- receive: () => Promise<string>;
291
+ send: (uuid: string, data: string, options?: {
292
+ withoutResponse?: boolean;
293
+ }) => Promise<void>;
294
+ receive: (uuid?: string) => Promise<string>;
251
295
  connect: (uuid: string) => Promise<void>;
252
296
  disconnect: (uuid: string) => Promise<void>;
253
297
  init: () => Promise<void>;
@@ -1137,11 +1181,15 @@ declare enum FailureType {
1137
1181
  Failure_PinMismatch = 12,
1138
1182
  Failure_WipeCodeMismatch = 13,
1139
1183
  Failure_InvalidSession = 14,
1140
- Failure_FirmwareError = 99
1184
+ Failure_FirmwareError = 99,
1185
+ Failure_InvalidMessage = 1,
1186
+ Failure_UndefinedError = 2,
1187
+ Failure_UsageError = 3
1141
1188
  }
1142
1189
  type Failure = {
1143
1190
  code?: FailureType;
1144
1191
  message?: string;
1192
+ subcode?: number;
1145
1193
  };
1146
1194
  declare enum Enum_ButtonRequestType {
1147
1195
  ButtonRequest_Other = 1,
@@ -1899,11 +1947,17 @@ type KaspaAddress = {
1899
1947
  };
1900
1948
  type KaspaSignTx = {
1901
1949
  address_n: number[];
1902
- raw_message: string;
1950
+ raw_message?: string;
1903
1951
  scheme?: string;
1904
1952
  prefix?: string;
1905
1953
  input_count?: number;
1906
1954
  use_tweak?: boolean;
1955
+ output_count?: number;
1956
+ version?: number;
1957
+ lock_time?: number;
1958
+ subnetwork_id?: string;
1959
+ gas?: number;
1960
+ payload_length?: number;
1907
1961
  };
1908
1962
  type KaspaTxInputRequest = {
1909
1963
  request_index: number;
@@ -1913,6 +1967,77 @@ type KaspaTxInputAck = {
1913
1967
  address_n: number[];
1914
1968
  raw_message: string;
1915
1969
  };
1970
+ type KaspaOutpoint = {
1971
+ tx_id: string;
1972
+ index: number;
1973
+ };
1974
+ declare enum Enum_KaspaInputScriptType {
1975
+ KASPA_SPEND_P2PK_SCHNORR = 0,
1976
+ KASPA_SPEND_P2PK_ECDSA = 1
1977
+ }
1978
+ type KaspaInputScriptType = keyof typeof Enum_KaspaInputScriptType;
1979
+ declare enum Enum_KaspaOutputScriptType {
1980
+ KASPA_PAYTOADDRESS = 0,
1981
+ KASPA_PAYTOCHANGE = 1
1982
+ }
1983
+ type KaspaOutputScriptType = keyof typeof Enum_KaspaOutputScriptType;
1984
+ declare enum Enum_KaspaRequestType {
1985
+ KASPA_TX_INPUT = 0,
1986
+ KASPA_TX_OUTPUT = 1,
1987
+ KASPA_TX_PAYLOAD = 2,
1988
+ KASPA_TX_FINISHED = 3,
1989
+ KASPA_TX_PREV_META = 4
1990
+ }
1991
+ type KaspaRequestType = keyof typeof Enum_KaspaRequestType;
1992
+ type KaspaTxRequestSignature = {
1993
+ signature_index: number;
1994
+ signature: string;
1995
+ };
1996
+ type KaspaTxRequest = {
1997
+ request_type: KaspaRequestType;
1998
+ request_index?: number;
1999
+ signature?: KaspaTxRequestSignature;
2000
+ request_payload_length?: number;
2001
+ prev_tx_id?: string;
2002
+ };
2003
+ type KaspaTxAckInput = {
2004
+ address_n: number[];
2005
+ previous_outpoint: KaspaOutpoint;
2006
+ amount: UintType;
2007
+ sequence: number;
2008
+ sig_op_count: number;
2009
+ script_type?: KaspaInputScriptType;
2010
+ use_tweak?: boolean;
2011
+ };
2012
+ type KaspaTxAckOutput = {
2013
+ script_type?: KaspaOutputScriptType;
2014
+ amount: UintType;
2015
+ address_n: number[];
2016
+ address?: string;
2017
+ scheme?: string;
2018
+ use_tweak?: boolean;
2019
+ };
2020
+ type KaspaTxAckPayloadChunk = {
2021
+ payload_chunk: string;
2022
+ };
2023
+ type KaspaTxAckPrevMeta = {
2024
+ version: number;
2025
+ input_count: number;
2026
+ output_count: number;
2027
+ lock_time: number;
2028
+ subnetwork_id: string;
2029
+ gas: number;
2030
+ payload_length: number;
2031
+ };
2032
+ type KaspaTxAckPrevInput = {
2033
+ previous_outpoint: KaspaOutpoint;
2034
+ sequence: number;
2035
+ };
2036
+ type KaspaTxAckPrevOutput = {
2037
+ amount: UintType;
2038
+ script_version: number;
2039
+ script_public_key: string;
2040
+ };
1916
2041
  type KaspaSignedTx = {
1917
2042
  signature: string;
1918
2043
  };
@@ -2078,6 +2203,19 @@ type Features = {
2078
2203
  onekey_se04_state?: string | null;
2079
2204
  attach_to_pin_user?: boolean;
2080
2205
  unlocked_attach_pin?: boolean;
2206
+ coprocessor_bt_name?: string;
2207
+ coprocessor_version?: string;
2208
+ coprocessor_bt_enable?: boolean;
2209
+ romloader_version?: string;
2210
+ onekey_romloader_version?: string;
2211
+ onekey_romloader_hash?: string;
2212
+ onekey_bootloader_version?: string;
2213
+ onekey_bootloader_hash?: string;
2214
+ onekey_bootloader_build_id?: string;
2215
+ onekey_coprocessor_bt_name?: string;
2216
+ onekey_coprocessor_version?: string;
2217
+ onekey_coprocessor_build_id?: string;
2218
+ onekey_coprocessor_hash?: string;
2081
2219
  };
2082
2220
  type OnekeyFeatures = {
2083
2221
  onekey_device_type?: OneKeyDeviceType;
@@ -2124,6 +2262,28 @@ type OnekeyFeatures = {
2124
2262
  onekey_se02_boot_build_id?: string;
2125
2263
  onekey_se03_boot_build_id?: string;
2126
2264
  onekey_se04_boot_build_id?: string;
2265
+ onekey_romloader_version?: string;
2266
+ onekey_bootloader_version?: string;
2267
+ onekey_romloader_hash?: string;
2268
+ onekey_bootloader_hash?: string;
2269
+ onekey_romloader_build_id?: string;
2270
+ onekey_bootloader_build_id?: string;
2271
+ onekey_coprocessor_bt_name?: string;
2272
+ onekey_coprocessor_version?: string;
2273
+ onekey_coprocessor_build_id?: string;
2274
+ onekey_coprocessor_hash?: string;
2275
+ onekey_se01_bootloader_version?: string;
2276
+ onekey_se02_bootloader_version?: string;
2277
+ onekey_se03_bootloader_version?: string;
2278
+ onekey_se04_bootloader_version?: string;
2279
+ onekey_se01_bootloader_hash?: string;
2280
+ onekey_se02_bootloader_hash?: string;
2281
+ onekey_se03_bootloader_hash?: string;
2282
+ onekey_se04_bootloader_hash?: string;
2283
+ onekey_se01_bootloader_build_id?: string;
2284
+ onekey_se02_bootloader_build_id?: string;
2285
+ onekey_se03_bootloader_build_id?: string;
2286
+ onekey_se04_bootloader_build_id?: string;
2127
2287
  };
2128
2288
  type LockDevice = {};
2129
2289
  type EndSession = {};
@@ -2407,8 +2567,6 @@ type UnLockDeviceResponse = {
2407
2567
  };
2408
2568
  type GetPassphraseState = {
2409
2569
  passphrase_state?: string;
2410
- _only_main_pin?: boolean;
2411
- allow_create_attach_pin?: boolean;
2412
2570
  };
2413
2571
  type PassphraseState = {
2414
2572
  passphrase_state?: string;
@@ -3580,6 +3738,24 @@ type TxAckPaymentRequest = {
3580
3738
  amount?: UintType;
3581
3739
  signature: string;
3582
3740
  };
3741
+ type EthereumSignTypedDataQR = {
3742
+ address_n: number[];
3743
+ json_data?: string;
3744
+ chain_id?: number;
3745
+ metamask_v4_compat?: boolean;
3746
+ request_id?: string;
3747
+ };
3748
+ type InternalMyAddressRequest = {
3749
+ coin_type: number;
3750
+ chain_id: number;
3751
+ account_index: number;
3752
+ derive_type: number;
3753
+ };
3754
+ type StartSession = {
3755
+ session_id?: string;
3756
+ _skip_passphrase?: boolean;
3757
+ derive_cardano?: boolean;
3758
+ };
3583
3759
  type SetBusy = {
3584
3760
  expiry_ms?: number;
3585
3761
  };
@@ -3596,6 +3772,21 @@ type Nonce = {
3596
3772
  type WriteSEPrivateKey = {
3597
3773
  private_key: string;
3598
3774
  };
3775
+ declare enum WallpaperTarget {
3776
+ Home = 0,
3777
+ Lock = 1
3778
+ }
3779
+ type SetWallpaper = {
3780
+ target: WallpaperTarget;
3781
+ path: string;
3782
+ };
3783
+ type GetWallpaper = {
3784
+ target: WallpaperTarget;
3785
+ };
3786
+ type Wallpaper = {
3787
+ target: WallpaperTarget;
3788
+ path: string;
3789
+ };
3599
3790
  type UnlockPath = {
3600
3791
  address_n: number[];
3601
3792
  mac?: string;
@@ -3609,225 +3800,356 @@ declare enum MoneroNetworkType {
3609
3800
  STAGENET = 2,
3610
3801
  FAKECHAIN = 3
3611
3802
  }
3612
- type TxDetailsAmount = {
3803
+ type ViewAmount = {
3804
+ is_unlimited: boolean;
3613
3805
  num: string;
3614
- decimals: number;
3615
- symbol: string;
3616
3806
  };
3617
- type TxDetailsAddress = {
3618
- key: number;
3619
- address: string;
3620
- owner?: string;
3621
- icon?: string;
3622
- };
3623
- type TxDetailsNetwork = {
3624
- coin_type: number;
3625
- chain_id?: number;
3626
- };
3627
- type TxDetailsGeneral = {
3807
+ type ViewDetail = {
3628
3808
  key: number;
3629
3809
  value: string;
3630
3810
  is_overview: boolean;
3811
+ has_icon: boolean;
3812
+ };
3813
+ declare enum ViewTipType {
3814
+ Default = 0,
3815
+ Highlight = 1,
3816
+ Recommend = 2,
3817
+ Warning = 3,
3818
+ Danger = 4
3819
+ }
3820
+ type ViewTip = {
3821
+ type: ViewTipType;
3822
+ text: string;
3631
3823
  };
3632
- declare enum TxDetailsDisplayType {
3633
- DISPLAY_TYPE_INFO = 0,
3634
- DISPLAY_TYPE_SIGN = 1
3824
+ type ViewRawData = {
3825
+ initial_data: string;
3826
+ placeholder: number;
3827
+ };
3828
+ declare enum ViewSignLayout {
3829
+ LayoutDefault = 0,
3830
+ LayoutSafeTxCreate = 1,
3831
+ LayoutFinalConfirm = 2,
3832
+ Layout7702 = 3,
3833
+ LayoutFlat = 4,
3834
+ LayoutEthApprove = 5
3635
3835
  }
3636
- type TxDetailsPage = {
3836
+ type ViewSignPage = {
3637
3837
  title: string;
3638
- display_type: TxDetailsDisplayType;
3639
3838
  amount?: UintType;
3640
- network?: TxDetailsNetwork;
3641
- address: TxDetailsAddress[];
3642
- general: TxDetailsGeneral[];
3839
+ general: ViewDetail[];
3840
+ tip?: ViewTip;
3841
+ raw_data?: ViewRawData;
3842
+ slide_to_confirm?: boolean;
3843
+ layout?: ViewSignLayout;
3643
3844
  };
3644
- type GetProtoVersion = {};
3645
- type ProtoVersion = {
3646
- proto_version: number;
3845
+ type ViewVerifyPage = {
3846
+ title: string;
3847
+ address: string;
3848
+ path: string;
3849
+ network?: string;
3850
+ derive_type?: string;
3851
+ value_key?: number;
3647
3852
  };
3648
- declare enum DevRebootType {
3649
- Normal = 0,
3650
- Boardloader = 1,
3651
- Bootloader = 2
3853
+ type ProtocolInfoRequest = {};
3854
+ type ProtocolInfo = {
3855
+ version: number;
3856
+ supported_messages: number[];
3857
+ protobuf_definition?: string;
3858
+ };
3859
+ declare enum DeviceErrorCode {
3860
+ DeviceError_None = 0,
3861
+ DeviceError_Busy = 1,
3862
+ DeviceError_NotInitialized = 2,
3863
+ DeviceError_ActionCancelled = 3,
3864
+ DeviceError_PinAlreadyUsed = 4,
3865
+ DeviceError_PersistFailed = 5,
3866
+ DeviceError_SeError = 6,
3867
+ DeviceError_InvalidLanguage = 7,
3868
+ DeviceError_WallpaperNotUsable = 8,
3869
+ DeviceError_DeviceLocked = 9
3652
3870
  }
3653
3871
  declare enum DeviceRebootType {
3654
3872
  Normal = 0,
3655
3873
  Romloader = 1,
3656
3874
  Bootloader = 2
3657
3875
  }
3658
- type DevReboot = {
3659
- reboot_type: DevRebootType;
3660
- };
3661
3876
  type DeviceReboot = {
3662
3877
  reboot_type: DeviceRebootType;
3663
3878
  };
3879
+ type DeviceSettings = {
3880
+ bt_enable?: boolean;
3881
+ language?: string;
3882
+ wallpaper_path?: string;
3883
+ brightness?: number;
3884
+ animation_enable?: boolean;
3885
+ tap_to_wake?: boolean;
3886
+ haptic_feedback?: boolean;
3887
+ device_name_display_enabled?: boolean;
3888
+ airgap_mode?: boolean;
3889
+ usb_lock_enable?: boolean;
3890
+ random_keypad?: boolean;
3891
+ passphrase_enable?: boolean;
3892
+ fido_enabled?: boolean;
3893
+ autolock_delay_ms?: number;
3894
+ autoshutdown_delay_ms?: number;
3895
+ label?: string;
3896
+ };
3897
+ type DeviceSettingsGet = {};
3898
+ type DeviceSettingsSet = {
3899
+ settings: DeviceSettings;
3900
+ };
3901
+ declare enum DeviceSettingsPage {
3902
+ DeviceReset = 0,
3903
+ DevicePinChange = 1,
3904
+ DevicePassphrase = 2,
3905
+ DeviceAirgap = 3
3906
+ }
3907
+ type DeviceSettingsPageShow = {
3908
+ page: DeviceSettingsPage;
3909
+ field_name?: string;
3910
+ };
3911
+ type DeviceCertificate = {
3912
+ cert_and_pubkey: string;
3913
+ private_key?: string;
3914
+ };
3915
+ type DeviceCertificateWrite = {
3916
+ cert: DeviceCertificate;
3917
+ };
3918
+ type DeviceCertificateRead = {};
3919
+ type DeviceCertificateSignature = {
3920
+ data: string;
3921
+ };
3922
+ type DeviceCertificateSign = {
3923
+ data: string;
3924
+ };
3925
+ declare enum DeviceFirmwareTargetType {
3926
+ FW_MGMT_TARGET_INVALID = 0,
3927
+ FW_MGMT_TARGET_CRATE = 1,
3928
+ FW_MGMT_TARGET_ROMLOADER = 2,
3929
+ FW_MGMT_TARGET_BOOTLOADER = 3,
3930
+ FW_MGMT_TARGET_APPLICATION_P1 = 4,
3931
+ FW_MGMT_TARGET_APPLICATION_P2 = 5,
3932
+ FW_MGMT_TARGET_COPROCESSOR = 6,
3933
+ FW_MGMT_TARGET_SE01 = 7,
3934
+ FW_MGMT_TARGET_SE02 = 8,
3935
+ FW_MGMT_TARGET_SE03 = 9,
3936
+ FW_MGMT_TARGET_SE04 = 10
3937
+ }
3938
+ declare enum DeviceFirmwareUpdateTaskStatus {
3939
+ FW_MGMT_UPDATER_TASK_STATUS_PENDING = 0,
3940
+ FW_MGMT_UPDATER_TASK_STATUS_IN_PROGRESS = 1,
3941
+ FW_MGMT_UPDATER_TASK_STATUS_FINISHED = 2,
3942
+ FW_MGMT_UPDATER_TASK_STATUS_FAILED_FILE_NOT_FOUND = 3,
3943
+ FW_MGMT_UPDATER_TASK_STATUS_FAILED_FILE_READ = 4,
3944
+ FW_MGMT_UPDATER_TASK_STATUS_FAILED_FILE_WRITE = 5,
3945
+ FW_MGMT_UPDATER_TASK_STATUS_FAILED_VERIFY = 6,
3946
+ FW_MGMT_UPDATER_TASK_STATUS_FAILED_INSTALL = 7,
3947
+ FW_MGMT_UPDATER_TASK_STATUS_FAILED_ABORT = 8,
3948
+ FW_MGMT_UPDATER_TASK_STATUS_FAILED_BUSY = 9,
3949
+ FW_MGMT_UPDATER_TASK_STATUS_FAILED_ENTRY_OUT_OF_BOUNDS = 10
3950
+ }
3951
+ type DeviceFirmwareTarget = {
3952
+ target_id: DeviceFirmwareTargetType;
3953
+ path: string;
3954
+ };
3955
+ type DeviceFirmwareUpdateRequest = {
3956
+ targets: DeviceFirmwareTarget[];
3957
+ };
3958
+ type DeviceFirmwareUpdateRecord = {
3959
+ target_id: DeviceFirmwareTargetType;
3960
+ status?: DeviceFirmwareUpdateTaskStatus;
3961
+ payload_version?: number;
3962
+ path?: string;
3963
+ };
3964
+ type DeviceFirmwareUpdateRecordFields = {
3965
+ status?: boolean;
3966
+ payload_version?: boolean;
3967
+ path?: boolean;
3968
+ };
3969
+ type DeviceFirmwareUpdateStatusGet = {
3970
+ fields?: DeviceFirmwareUpdateRecordFields;
3971
+ };
3972
+ type DeviceFirmwareUpdateStatus = {
3973
+ records: DeviceFirmwareUpdateRecord[];
3974
+ };
3975
+ declare enum DeviceFactoryAck {
3976
+ FACTORY_ACK_SUCCESS = 0,
3977
+ FACTORY_ACK_FAIL = 1
3978
+ }
3979
+ type DeviceFactoryInfoManufactureTime = {
3980
+ year: number;
3981
+ month: number;
3982
+ day: number;
3983
+ hour: number;
3984
+ minute: number;
3985
+ second: number;
3986
+ };
3987
+ type DeviceFactoryInfo = {
3988
+ version?: number;
3989
+ serial_number?: string;
3990
+ burn_in_completed?: boolean;
3991
+ factory_test_completed?: boolean;
3992
+ manufacture_time?: DeviceFactoryInfoManufactureTime;
3993
+ };
3994
+ type DeviceFactoryInfoSet = {
3995
+ info: DeviceFactoryInfo;
3996
+ };
3997
+ type DeviceFactoryInfoGet = {};
3998
+ type DeviceFactoryPermanentLock = {
3999
+ check_a: string;
4000
+ check_b: string;
4001
+ };
4002
+ type DeviceFactoryTest = {
4003
+ burn_in_test: boolean;
4004
+ };
3664
4005
  declare enum DeviceType {
3665
4006
  CLASSIC1 = 0,
3666
4007
  CLASSIC1S = 1,
3667
4008
  MINI = 2,
3668
4009
  TOUCH = 3,
3669
4010
  PRO = 5,
3670
- CLASSIC1S_PURE = 6
4011
+ CLASSIC1S_PURE = 6,
4012
+ PRO2 = 7,
4013
+ NEO = 8
3671
4014
  }
3672
- declare enum DevSeType {
4015
+ declare enum DeviceSeType {
3673
4016
  THD89 = 0,
3674
4017
  SE608A = 1
3675
4018
  }
3676
- declare enum DevSEState {
4019
+ declare enum DeviceSEState {
3677
4020
  BOOT = 0,
3678
4021
  APP_FACTORY = 51,
3679
4022
  APP = 85
3680
4023
  }
3681
- type DevFirmwareImageInfo = {
4024
+ type DeviceFirmwareImageInfo = {
3682
4025
  version?: string;
3683
4026
  build_id?: string;
3684
4027
  hash?: string;
3685
4028
  };
3686
- type DevHardwareInfo = {
3687
- device_type?: DeviceType;
4029
+ type DeviceHardwareInfo = {
4030
+ Device_type?: DeviceType;
3688
4031
  serial_no?: string;
3689
4032
  hardware_version?: string;
3690
4033
  hardware_version_raw_adc?: number;
3691
4034
  };
3692
- type DevMainMcuInfo = {
3693
- board?: DevFirmwareImageInfo;
3694
- boot?: DevFirmwareImageInfo;
3695
- app?: DevFirmwareImageInfo;
3696
- };
3697
- type DevBluetoothInfo = {
3698
- boot?: DevFirmwareImageInfo;
3699
- app?: DevFirmwareImageInfo;
3700
- adv_name?: string;
3701
- mac?: string;
3702
- };
3703
- type DevSEInfo = {
3704
- boot?: DevFirmwareImageInfo;
3705
- app?: DevFirmwareImageInfo;
3706
- type?: DevSeType;
3707
- state?: DevSEState;
3708
- };
3709
- type DevInfoTargets = {
4035
+ type DeviceMainMcuInfo = {
4036
+ romloader?: DeviceFirmwareImageInfo;
4037
+ bootloader?: DeviceFirmwareImageInfo;
4038
+ application?: DeviceFirmwareImageInfo;
4039
+ application_data?: DeviceFirmwareImageInfo;
4040
+ };
4041
+ type DeviceCoprocessorInfo = {
4042
+ bootloader?: DeviceFirmwareImageInfo;
4043
+ application?: DeviceFirmwareImageInfo;
4044
+ bt_adv_name?: string;
4045
+ bt_mac?: string;
4046
+ };
4047
+ type DeviceSEInfo = {
4048
+ bootloader?: DeviceFirmwareImageInfo;
4049
+ application?: DeviceFirmwareImageInfo;
4050
+ type?: DeviceSeType;
4051
+ state?: DeviceSEState;
4052
+ };
4053
+ type DeviceInfoTargets = {
3710
4054
  hw?: boolean;
3711
4055
  fw?: boolean;
3712
- bt?: boolean;
4056
+ coprocessor?: boolean;
3713
4057
  se1?: boolean;
3714
4058
  se2?: boolean;
3715
4059
  se3?: boolean;
3716
4060
  se4?: boolean;
3717
4061
  status?: boolean;
3718
4062
  };
3719
- type DevInfoTypes = {
4063
+ type DeviceInfoTypes = {
3720
4064
  version?: boolean;
3721
4065
  build_id?: boolean;
3722
4066
  hash?: boolean;
3723
4067
  specific?: boolean;
3724
4068
  };
3725
- type DevStatus = {
3726
- language?: string;
3727
- bt_enable?: boolean;
3728
- init_states?: boolean;
3729
- backup_required?: boolean;
3730
- passphrase_protection?: boolean;
3731
- label?: string;
3732
- };
3733
- type DevGetDeviceInfo = {
3734
- targets?: DevInfoTargets;
3735
- types?: DevInfoTypes;
4069
+ type DeviceInfoGet = {
4070
+ targets?: DeviceInfoTargets;
4071
+ types?: DeviceInfoTypes;
3736
4072
  };
3737
- type DeviceGetDeviceInfo = DevGetDeviceInfo;
3738
4073
  type ProtocolV2DeviceInfo = {
3739
4074
  protocol_version: number;
3740
- hw?: DevHardwareInfo;
3741
- fw?: DevMainMcuInfo;
3742
- bt?: DevBluetoothInfo;
3743
- se1?: DevSEInfo;
3744
- se2?: DevSEInfo;
3745
- se3?: DevSEInfo;
3746
- se4?: DevSEInfo;
3747
- status?: DevStatus;
3748
- };
3749
- declare enum DevFirmwareTargetType {
3750
- TARGET_INVALID = 0,
3751
- TARGET_ROMLOADER = 1,
3752
- TARGET_BOOTLOADER = 2,
3753
- TARGET_APPLICATION_P1 = 3,
3754
- TARGET_APPLICATION_P2 = 4,
3755
- TARGET_COPROCESSOR = 5,
3756
- TARGET_SE01 = 6,
3757
- TARGET_SE02 = 7,
3758
- TARGET_SE03 = 8,
3759
- TARGET_SE04 = 9,
3760
- TARGET_RESOURCE = 10
3761
- }
3762
- declare enum DeviceFirmwareTargetType {
3763
- TARGET_INVALID = 0,
3764
- TARGET_ROMLOADER = 1,
3765
- TARGET_BOOTLOADER = 2,
3766
- TARGET_APPLICATION_P1 = 3,
3767
- TARGET_APPLICATION_P2 = 4,
3768
- TARGET_COPROCESSOR = 5,
3769
- TARGET_SE01 = 6,
3770
- TARGET_SE02 = 7,
3771
- TARGET_SE03 = 8,
3772
- TARGET_SE04 = 9,
3773
- TARGET_RESOURCE = 10
3774
- }
3775
- type DevFirmwareTarget = {
3776
- target_id: DevFirmwareTargetType;
3777
- path: string;
3778
- };
3779
- type DeviceFirmwareTarget = {
3780
- target_id: DeviceFirmwareTargetType;
3781
- path: string;
3782
- };
3783
- type DevFirmwareUpdate = {
3784
- targets: DevFirmwareTarget[];
3785
- };
3786
- type DeviceFirmwareUpdate = {
3787
- targets: DeviceFirmwareTarget[];
3788
- max_concurrent?: number;
3789
- };
3790
- type DevFirmwareInstallProgress = {
3791
- target_id: DevFirmwareTargetType;
3792
- progress: number;
3793
- stage?: string;
3794
- };
3795
- type DeviceFirmwareInstallProgress = {
3796
- target_id: DeviceFirmwareTargetType;
3797
- progress: number;
3798
- stage?: string;
3799
- };
3800
- type DevFirmwareUpdateStatusEntry = {
3801
- target_id: DevFirmwareTargetType;
3802
- status: number;
3803
- };
3804
- type DeviceFirmwareUpdateStatusEntry = {
3805
- target_id: DeviceFirmwareTargetType;
3806
- status: number;
3807
- };
3808
- type DevGetFirmwareUpdateStatus = {};
3809
- type DeviceGetFirmwareUpdateStatus = {};
3810
- type DevFirmwareUpdateStatus = {
3811
- targets: DevFirmwareUpdateStatusEntry[];
3812
- };
3813
- type DeviceFirmwareUpdateStatus = {
3814
- targets: DeviceFirmwareUpdateStatusEntry[];
3815
- };
3816
- type FactoryDeviceInfoSettings = {
3817
- serial_no?: string;
3818
- cpu_info?: string;
3819
- pre_firmware?: string;
4075
+ hw?: DeviceHardwareInfo;
4076
+ fw?: DeviceMainMcuInfo;
4077
+ coprocessor?: DeviceCoprocessorInfo;
4078
+ se1?: DeviceSEInfo;
4079
+ se2?: DeviceSEInfo;
4080
+ se3?: DeviceSEInfo;
4081
+ se4?: DeviceSEInfo;
4082
+ status?: DeviceStatus;
4083
+ };
4084
+ type DeviceSessionGet = {
4085
+ session_id?: string;
3820
4086
  };
3821
- type FactoryGetDeviceInfo = {};
3822
- type FactoryDeviceInfo = {
3823
- serial_no?: string;
3824
- spi_flash_info?: string;
3825
- se_info?: string;
3826
- nft_voucher?: string;
3827
- cpu_info?: string;
3828
- pre_firmware?: string;
4087
+ type DeviceSession = {
4088
+ session_id?: string;
4089
+ btc_test_address?: string;
3829
4090
  };
3830
- type FilesystemFixPermission = {};
4091
+ type DeviceSessionAskPin = {};
4092
+ declare enum DeviceSessionAskPin_FailureSubCodes {
4093
+ UserCancel = 1
4094
+ }
4095
+ type DeviceStatus = {
4096
+ device_id?: string;
4097
+ unlocked?: boolean;
4098
+ init_states?: boolean;
4099
+ backup_required?: boolean;
4100
+ passphrase_enabled?: boolean;
4101
+ attach_to_pin_enabled?: boolean;
4102
+ unlocked_by_attach_to_pin?: boolean;
4103
+ };
4104
+ type DeviceStatusGet = {};
4105
+ declare enum DevOnboardingStep {
4106
+ DEV_ONBOARDING_STEP_UNKNOWN = 0,
4107
+ DEV_ONBOARDING_STEP_CHECKING = 1,
4108
+ DEV_ONBOARDING_STEP_PERSONALIZATION = 2,
4109
+ DEV_ONBOARDING_STEP_PIN = 3,
4110
+ DEV_ONBOARDING_STEP_SETUP = 4,
4111
+ DEV_ONBOARDING_STEP_DONE = 5
4112
+ }
4113
+ declare enum DevOnboardingPhase {
4114
+ DEV_ONBOARDING_PHASE_UNKNOWN = 0,
4115
+ DEV_ONBOARDING_PHASE_SAFETY_CHECK = 1,
4116
+ DEV_ONBOARDING_PHASE_PIN_SETUP = 2,
4117
+ DEV_ONBOARDING_PHASE_FINGERPRINT_SETUP = 3,
4118
+ DEV_ONBOARDING_PHASE_SETUP_CHOICE = 4,
4119
+ DEV_ONBOARDING_PHASE_WALLET_CREATE_START = 5,
4120
+ DEV_ONBOARDING_PHASE_RECOVERY_PHRASE_VIEW = 6,
4121
+ DEV_ONBOARDING_PHASE_RECOVERY_PHRASE_CONFIRM = 7,
4122
+ DEV_ONBOARDING_PHASE_RESTORE_METHOD_CHOICE = 8,
4123
+ DEV_ONBOARDING_PHASE_RECOVERY_PHRASE_RESTORE = 9,
4124
+ DEV_ONBOARDING_PHASE_SEEDCARD_RESTORE = 10,
4125
+ DEV_ONBOARDING_PHASE_WALLET_READY = 11,
4126
+ DEV_ONBOARDING_PHASE_SEEDCARD_BACKUP_PROMPT = 12,
4127
+ DEV_ONBOARDING_PHASE_SEEDCARD_BACKUP = 13
4128
+ }
4129
+ declare enum DevOnboardingSetupKind {
4130
+ DEV_ONBOARDING_SETUP_KIND_UNKNOWN = 0,
4131
+ DEV_ONBOARDING_SETUP_KIND_CHOICE = 1,
4132
+ DEV_ONBOARDING_SETUP_KIND_CREATE = 2,
4133
+ DEV_ONBOARDING_SETUP_KIND_RESTORE = 3
4134
+ }
4135
+ declare enum DevOnboardingSetupMethod {
4136
+ DEV_ONBOARDING_SETUP_METHOD_UNKNOWN = 0,
4137
+ DEV_ONBOARDING_SETUP_METHOD_RECOVERY_PHRASE = 1,
4138
+ DEV_ONBOARDING_SETUP_METHOD_SEEDCARD = 2
4139
+ }
4140
+ type DevOnboardingSetupStatus = {
4141
+ kind?: DevOnboardingSetupKind;
4142
+ method?: DevOnboardingSetupMethod;
4143
+ };
4144
+ type DevGetOnboardingStatus = {};
4145
+ type DevOnboardingStatus = {
4146
+ step?: DevOnboardingStep;
4147
+ phase?: DevOnboardingPhase;
4148
+ setup?: DevOnboardingSetupStatus;
4149
+ pin_set?: boolean;
4150
+ wallet_initialized?: boolean;
4151
+ };
4152
+ type FilesystemPermissionFix = {};
3831
4153
  type FilesystemPathInfo = {
3832
4154
  exist: boolean;
3833
4155
  size: number;
@@ -3883,32 +4205,40 @@ type FilesystemDirMake = {
3883
4205
  type FilesystemDirRemove = {
3884
4206
  path: string;
3885
4207
  };
3886
- type FilesystemFormat = {};
3887
- declare enum OnboardingStep {
3888
- ONBOARDING_STEP_UNKNOWN = 0,
3889
- ONBOARDING_STEP_DEVICE_VERIFICATION = 1,
3890
- ONBOARDING_STEP_PERSONALIZATION = 2,
3891
- ONBOARDING_STEP_SETUP = 3,
3892
- ONBOARDING_STEP_FIRMWARE = 4
4208
+ type FilesystemFormat = {
4209
+ data: boolean;
4210
+ user: boolean;
4211
+ };
4212
+ type PortfolioUpdate = {};
4213
+ declare enum ProtocolV2FailureType {
4214
+ Failure_InvalidMessage = 1,
4215
+ Failure_UndefinedError = 2,
4216
+ Failure_UsageError = 3,
4217
+ Failure_DataError = 4,
4218
+ Failure_ProcessError = 5
3893
4219
  }
3894
- type GetOnboardingStatus = {};
3895
- type NewDevice = {
3896
- seedcard_backup?: boolean;
3897
- };
3898
- type Restore = {
3899
- mnemonic?: boolean;
3900
- seedcard?: boolean;
3901
- };
3902
- type Setup = {
3903
- new_device?: NewDevice;
3904
- restore?: Restore;
3905
- };
3906
- type OnboardingStatus = {
3907
- step: OnboardingStep;
3908
- setup?: Setup;
3909
- detail_code?: number;
3910
- detail_str?: string;
3911
- };
4220
+ declare enum Enum_ProtocolV2Capability {
4221
+ Capability_Bitcoin = 1,
4222
+ Capability_Bitcoin_like = 2,
4223
+ Capability_Binance = 3,
4224
+ Capability_Cardano = 4,
4225
+ Capability_Crypto = 5,
4226
+ Capability_EOS = 6,
4227
+ Capability_Ethereum = 7,
4228
+ Capability_Lisk = 8,
4229
+ Capability_Monero = 9,
4230
+ Capability_NEM = 10,
4231
+ Capability_Ripple = 11,
4232
+ Capability_Stellar = 12,
4233
+ Capability_Tezos = 13,
4234
+ Capability_U2F = 14,
4235
+ Capability_Shamir = 15,
4236
+ Capability_ShamirGroups = 16,
4237
+ Capability_PassphraseEntry = 17,
4238
+ Capability_AttachToPin = 18,
4239
+ Capability_EthereumTypedData = 1000
4240
+ }
4241
+ type ProtocolV2Capability = keyof typeof Enum_ProtocolV2Capability;
3912
4242
  type MessageType = {
3913
4243
  AlephiumGetAddress: AlephiumGetAddress;
3914
4244
  AlephiumAddress: AlephiumAddress;
@@ -4183,6 +4513,15 @@ type MessageType = {
4183
4513
  KaspaSignTx: KaspaSignTx;
4184
4514
  KaspaTxInputRequest: KaspaTxInputRequest;
4185
4515
  KaspaTxInputAck: KaspaTxInputAck;
4516
+ KaspaOutpoint: KaspaOutpoint;
4517
+ KaspaTxRequestSignature: KaspaTxRequestSignature;
4518
+ KaspaTxRequest: KaspaTxRequest;
4519
+ KaspaTxAckInput: KaspaTxAckInput;
4520
+ KaspaTxAckOutput: KaspaTxAckOutput;
4521
+ KaspaTxAckPayloadChunk: KaspaTxAckPayloadChunk;
4522
+ KaspaTxAckPrevMeta: KaspaTxAckPrevMeta;
4523
+ KaspaTxAckPrevInput: KaspaTxAckPrevInput;
4524
+ KaspaTxAckPrevOutput: KaspaTxAckPrevOutput;
4186
4525
  KaspaSignedTx: KaspaSignedTx;
4187
4526
  LnurlAuth: LnurlAuth;
4188
4527
  LnurlAuthResp: LnurlAuthResp;
@@ -4472,49 +4811,67 @@ type MessageType = {
4472
4811
  CoinPurchaseMemo: CoinPurchaseMemo;
4473
4812
  PaymentRequestMemo: PaymentRequestMemo;
4474
4813
  TxAckPaymentRequest: TxAckPaymentRequest;
4814
+ EthereumSignTypedDataQR: EthereumSignTypedDataQR;
4815
+ InternalMyAddressRequest: InternalMyAddressRequest;
4816
+ StartSession: StartSession;
4475
4817
  SetBusy: SetBusy;
4476
4818
  GetFirmwareHash: GetFirmwareHash;
4477
4819
  FirmwareHash: FirmwareHash;
4478
4820
  GetNonce: GetNonce;
4479
4821
  Nonce: Nonce;
4480
4822
  WriteSEPrivateKey: WriteSEPrivateKey;
4823
+ SetWallpaper: SetWallpaper;
4824
+ GetWallpaper: GetWallpaper;
4825
+ Wallpaper: Wallpaper;
4481
4826
  UnlockPath: UnlockPath;
4482
4827
  UnlockedPathRequest: UnlockedPathRequest;
4483
- TxDetailsAmount: TxDetailsAmount;
4484
- TxDetailsAddress: TxDetailsAddress;
4485
- TxDetailsNetwork: TxDetailsNetwork;
4486
- TxDetailsGeneral: TxDetailsGeneral;
4487
- TxDetailsPage: TxDetailsPage;
4488
- GetProtoVersion: GetProtoVersion;
4489
- ProtoVersion: ProtoVersion;
4490
- DevReboot: DevReboot;
4828
+ ViewAmount: ViewAmount;
4829
+ ViewDetail: ViewDetail;
4830
+ ViewTip: ViewTip;
4831
+ ViewRawData: ViewRawData;
4832
+ ViewSignPage: ViewSignPage;
4833
+ ViewVerifyPage: ViewVerifyPage;
4834
+ ProtocolInfoRequest: ProtocolInfoRequest;
4835
+ ProtocolInfo: ProtocolInfo;
4491
4836
  DeviceReboot: DeviceReboot;
4492
- DevFirmwareImageInfo: DevFirmwareImageInfo;
4493
- DevHardwareInfo: DevHardwareInfo;
4494
- DevMainMcuInfo: DevMainMcuInfo;
4495
- DevBluetoothInfo: DevBluetoothInfo;
4496
- DevSEInfo: DevSEInfo;
4497
- DevInfoTargets: DevInfoTargets;
4498
- DevInfoTypes: DevInfoTypes;
4499
- DevStatus: DevStatus;
4500
- DevGetDeviceInfo: DevGetDeviceInfo;
4501
- DeviceGetDeviceInfo: DeviceGetDeviceInfo;
4502
- DevFirmwareTarget: DevFirmwareTarget;
4837
+ DeviceSettings: DeviceSettings;
4838
+ DeviceSettingsGet: DeviceSettingsGet;
4839
+ DeviceSettingsSet: DeviceSettingsSet;
4840
+ DeviceSettingsPageShow: DeviceSettingsPageShow;
4841
+ DeviceCertificate: DeviceCertificate;
4842
+ DeviceCertificateWrite: DeviceCertificateWrite;
4843
+ DeviceCertificateRead: DeviceCertificateRead;
4844
+ DeviceCertificateSignature: DeviceCertificateSignature;
4845
+ DeviceCertificateSign: DeviceCertificateSign;
4503
4846
  DeviceFirmwareTarget: DeviceFirmwareTarget;
4504
- DevFirmwareUpdate: DevFirmwareUpdate;
4505
- DeviceFirmwareUpdate: DeviceFirmwareUpdate;
4506
- DevFirmwareInstallProgress: DevFirmwareInstallProgress;
4507
- DeviceFirmwareInstallProgress: DeviceFirmwareInstallProgress;
4508
- DevFirmwareUpdateStatusEntry: DevFirmwareUpdateStatusEntry;
4509
- DeviceFirmwareUpdateStatusEntry: DeviceFirmwareUpdateStatusEntry;
4510
- DevGetFirmwareUpdateStatus: DevGetFirmwareUpdateStatus;
4511
- DeviceGetFirmwareUpdateStatus: DeviceGetFirmwareUpdateStatus;
4512
- DevFirmwareUpdateStatus: DevFirmwareUpdateStatus;
4847
+ DeviceFirmwareUpdateRequest: DeviceFirmwareUpdateRequest;
4848
+ DeviceFirmwareUpdateRecord: DeviceFirmwareUpdateRecord;
4849
+ DeviceFirmwareUpdateRecordFields: DeviceFirmwareUpdateRecordFields;
4850
+ DeviceFirmwareUpdateStatusGet: DeviceFirmwareUpdateStatusGet;
4513
4851
  DeviceFirmwareUpdateStatus: DeviceFirmwareUpdateStatus;
4514
- FactoryDeviceInfoSettings: FactoryDeviceInfoSettings;
4515
- FactoryGetDeviceInfo: FactoryGetDeviceInfo;
4516
- FactoryDeviceInfo: FactoryDeviceInfo;
4517
- FilesystemFixPermission: FilesystemFixPermission;
4852
+ DeviceFactoryInfoManufactureTime: DeviceFactoryInfoManufactureTime;
4853
+ DeviceFactoryInfo: DeviceFactoryInfo;
4854
+ DeviceFactoryInfoSet: DeviceFactoryInfoSet;
4855
+ DeviceFactoryInfoGet: DeviceFactoryInfoGet;
4856
+ DeviceFactoryPermanentLock: DeviceFactoryPermanentLock;
4857
+ DeviceFactoryTest: DeviceFactoryTest;
4858
+ DeviceFirmwareImageInfo: DeviceFirmwareImageInfo;
4859
+ DeviceHardwareInfo: DeviceHardwareInfo;
4860
+ DeviceMainMcuInfo: DeviceMainMcuInfo;
4861
+ DeviceCoprocessorInfo: DeviceCoprocessorInfo;
4862
+ DeviceSEInfo: DeviceSEInfo;
4863
+ DeviceInfoTargets: DeviceInfoTargets;
4864
+ DeviceInfoTypes: DeviceInfoTypes;
4865
+ DeviceInfoGet: DeviceInfoGet;
4866
+ DeviceSessionGet: DeviceSessionGet;
4867
+ DeviceSession: DeviceSession;
4868
+ DeviceSessionAskPin: DeviceSessionAskPin;
4869
+ DeviceStatus: DeviceStatus;
4870
+ DeviceStatusGet: DeviceStatusGet;
4871
+ DevOnboardingSetupStatus: DevOnboardingSetupStatus;
4872
+ DevGetOnboardingStatus: DevGetOnboardingStatus;
4873
+ DevOnboardingStatus: DevOnboardingStatus;
4874
+ FilesystemPermissionFix: FilesystemPermissionFix;
4518
4875
  FilesystemPathInfo: FilesystemPathInfo;
4519
4876
  FilesystemPathInfoQuery: FilesystemPathInfoQuery;
4520
4877
  FilesystemFile: FilesystemFile;
@@ -4526,11 +4883,7 @@ type MessageType = {
4526
4883
  FilesystemDirMake: FilesystemDirMake;
4527
4884
  FilesystemDirRemove: FilesystemDirRemove;
4528
4885
  FilesystemFormat: FilesystemFormat;
4529
- GetOnboardingStatus: GetOnboardingStatus;
4530
- NewDevice: NewDevice;
4531
- Restore: Restore;
4532
- Setup: Setup;
4533
- OnboardingStatus: OnboardingStatus;
4886
+ PortfolioUpdate: PortfolioUpdate;
4534
4887
  };
4535
4888
  type MessageKey = keyof MessageType;
4536
4889
  type MessageResponse<T extends MessageKey> = {
@@ -4887,6 +5240,24 @@ type messages_KaspaAddress = KaspaAddress;
4887
5240
  type messages_KaspaSignTx = KaspaSignTx;
4888
5241
  type messages_KaspaTxInputRequest = KaspaTxInputRequest;
4889
5242
  type messages_KaspaTxInputAck = KaspaTxInputAck;
5243
+ type messages_KaspaOutpoint = KaspaOutpoint;
5244
+ type messages_Enum_KaspaInputScriptType = Enum_KaspaInputScriptType;
5245
+ declare const messages_Enum_KaspaInputScriptType: typeof Enum_KaspaInputScriptType;
5246
+ type messages_KaspaInputScriptType = KaspaInputScriptType;
5247
+ type messages_Enum_KaspaOutputScriptType = Enum_KaspaOutputScriptType;
5248
+ declare const messages_Enum_KaspaOutputScriptType: typeof Enum_KaspaOutputScriptType;
5249
+ type messages_KaspaOutputScriptType = KaspaOutputScriptType;
5250
+ type messages_Enum_KaspaRequestType = Enum_KaspaRequestType;
5251
+ declare const messages_Enum_KaspaRequestType: typeof Enum_KaspaRequestType;
5252
+ type messages_KaspaRequestType = KaspaRequestType;
5253
+ type messages_KaspaTxRequestSignature = KaspaTxRequestSignature;
5254
+ type messages_KaspaTxRequest = KaspaTxRequest;
5255
+ type messages_KaspaTxAckInput = KaspaTxAckInput;
5256
+ type messages_KaspaTxAckOutput = KaspaTxAckOutput;
5257
+ type messages_KaspaTxAckPayloadChunk = KaspaTxAckPayloadChunk;
5258
+ type messages_KaspaTxAckPrevMeta = KaspaTxAckPrevMeta;
5259
+ type messages_KaspaTxAckPrevInput = KaspaTxAckPrevInput;
5260
+ type messages_KaspaTxAckPrevOutput = KaspaTxAckPrevOutput;
4890
5261
  type messages_KaspaSignedTx = KaspaSignedTx;
4891
5262
  type messages_LnurlAuth = LnurlAuth;
4892
5263
  type messages_LnurlAuthResp = LnurlAuthResp;
@@ -5242,68 +5613,104 @@ type messages_RefundMemo = RefundMemo;
5242
5613
  type messages_CoinPurchaseMemo = CoinPurchaseMemo;
5243
5614
  type messages_PaymentRequestMemo = PaymentRequestMemo;
5244
5615
  type messages_TxAckPaymentRequest = TxAckPaymentRequest;
5616
+ type messages_EthereumSignTypedDataQR = EthereumSignTypedDataQR;
5617
+ type messages_InternalMyAddressRequest = InternalMyAddressRequest;
5618
+ type messages_StartSession = StartSession;
5245
5619
  type messages_SetBusy = SetBusy;
5246
5620
  type messages_GetFirmwareHash = GetFirmwareHash;
5247
5621
  type messages_FirmwareHash = FirmwareHash;
5248
5622
  type messages_GetNonce = GetNonce;
5249
5623
  type messages_Nonce = Nonce;
5250
5624
  type messages_WriteSEPrivateKey = WriteSEPrivateKey;
5625
+ type messages_WallpaperTarget = WallpaperTarget;
5626
+ declare const messages_WallpaperTarget: typeof WallpaperTarget;
5627
+ type messages_SetWallpaper = SetWallpaper;
5628
+ type messages_GetWallpaper = GetWallpaper;
5629
+ type messages_Wallpaper = Wallpaper;
5251
5630
  type messages_UnlockPath = UnlockPath;
5252
5631
  type messages_UnlockedPathRequest = UnlockedPathRequest;
5253
5632
  type messages_MoneroNetworkType = MoneroNetworkType;
5254
5633
  declare const messages_MoneroNetworkType: typeof MoneroNetworkType;
5255
- type messages_TxDetailsAmount = TxDetailsAmount;
5256
- type messages_TxDetailsAddress = TxDetailsAddress;
5257
- type messages_TxDetailsNetwork = TxDetailsNetwork;
5258
- type messages_TxDetailsGeneral = TxDetailsGeneral;
5259
- type messages_TxDetailsDisplayType = TxDetailsDisplayType;
5260
- declare const messages_TxDetailsDisplayType: typeof TxDetailsDisplayType;
5261
- type messages_TxDetailsPage = TxDetailsPage;
5262
- type messages_GetProtoVersion = GetProtoVersion;
5263
- type messages_ProtoVersion = ProtoVersion;
5264
- type messages_DevRebootType = DevRebootType;
5265
- declare const messages_DevRebootType: typeof DevRebootType;
5634
+ type messages_ViewAmount = ViewAmount;
5635
+ type messages_ViewDetail = ViewDetail;
5636
+ type messages_ViewTipType = ViewTipType;
5637
+ declare const messages_ViewTipType: typeof ViewTipType;
5638
+ type messages_ViewTip = ViewTip;
5639
+ type messages_ViewRawData = ViewRawData;
5640
+ type messages_ViewSignLayout = ViewSignLayout;
5641
+ declare const messages_ViewSignLayout: typeof ViewSignLayout;
5642
+ type messages_ViewSignPage = ViewSignPage;
5643
+ type messages_ViewVerifyPage = ViewVerifyPage;
5644
+ type messages_ProtocolInfoRequest = ProtocolInfoRequest;
5645
+ type messages_ProtocolInfo = ProtocolInfo;
5646
+ type messages_DeviceErrorCode = DeviceErrorCode;
5647
+ declare const messages_DeviceErrorCode: typeof DeviceErrorCode;
5266
5648
  type messages_DeviceRebootType = DeviceRebootType;
5267
5649
  declare const messages_DeviceRebootType: typeof DeviceRebootType;
5268
- type messages_DevReboot = DevReboot;
5269
5650
  type messages_DeviceReboot = DeviceReboot;
5270
- type messages_DeviceType = DeviceType;
5271
- declare const messages_DeviceType: typeof DeviceType;
5272
- type messages_DevSeType = DevSeType;
5273
- declare const messages_DevSeType: typeof DevSeType;
5274
- type messages_DevSEState = DevSEState;
5275
- declare const messages_DevSEState: typeof DevSEState;
5276
- type messages_DevFirmwareImageInfo = DevFirmwareImageInfo;
5277
- type messages_DevHardwareInfo = DevHardwareInfo;
5278
- type messages_DevMainMcuInfo = DevMainMcuInfo;
5279
- type messages_DevBluetoothInfo = DevBluetoothInfo;
5280
- type messages_DevSEInfo = DevSEInfo;
5281
- type messages_DevInfoTargets = DevInfoTargets;
5282
- type messages_DevInfoTypes = DevInfoTypes;
5283
- type messages_DevStatus = DevStatus;
5284
- type messages_DevGetDeviceInfo = DevGetDeviceInfo;
5285
- type messages_DeviceGetDeviceInfo = DeviceGetDeviceInfo;
5286
- type messages_ProtocolV2DeviceInfo = ProtocolV2DeviceInfo;
5287
- type messages_DevFirmwareTargetType = DevFirmwareTargetType;
5288
- declare const messages_DevFirmwareTargetType: typeof DevFirmwareTargetType;
5651
+ type messages_DeviceSettings = DeviceSettings;
5652
+ type messages_DeviceSettingsGet = DeviceSettingsGet;
5653
+ type messages_DeviceSettingsSet = DeviceSettingsSet;
5654
+ type messages_DeviceSettingsPage = DeviceSettingsPage;
5655
+ declare const messages_DeviceSettingsPage: typeof DeviceSettingsPage;
5656
+ type messages_DeviceSettingsPageShow = DeviceSettingsPageShow;
5657
+ type messages_DeviceCertificate = DeviceCertificate;
5658
+ type messages_DeviceCertificateWrite = DeviceCertificateWrite;
5659
+ type messages_DeviceCertificateRead = DeviceCertificateRead;
5660
+ type messages_DeviceCertificateSignature = DeviceCertificateSignature;
5661
+ type messages_DeviceCertificateSign = DeviceCertificateSign;
5289
5662
  type messages_DeviceFirmwareTargetType = DeviceFirmwareTargetType;
5290
5663
  declare const messages_DeviceFirmwareTargetType: typeof DeviceFirmwareTargetType;
5291
- type messages_DevFirmwareTarget = DevFirmwareTarget;
5664
+ type messages_DeviceFirmwareUpdateTaskStatus = DeviceFirmwareUpdateTaskStatus;
5665
+ declare const messages_DeviceFirmwareUpdateTaskStatus: typeof DeviceFirmwareUpdateTaskStatus;
5292
5666
  type messages_DeviceFirmwareTarget = DeviceFirmwareTarget;
5293
- type messages_DevFirmwareUpdate = DevFirmwareUpdate;
5294
- type messages_DeviceFirmwareUpdate = DeviceFirmwareUpdate;
5295
- type messages_DevFirmwareInstallProgress = DevFirmwareInstallProgress;
5296
- type messages_DeviceFirmwareInstallProgress = DeviceFirmwareInstallProgress;
5297
- type messages_DevFirmwareUpdateStatusEntry = DevFirmwareUpdateStatusEntry;
5298
- type messages_DeviceFirmwareUpdateStatusEntry = DeviceFirmwareUpdateStatusEntry;
5299
- type messages_DevGetFirmwareUpdateStatus = DevGetFirmwareUpdateStatus;
5300
- type messages_DeviceGetFirmwareUpdateStatus = DeviceGetFirmwareUpdateStatus;
5301
- type messages_DevFirmwareUpdateStatus = DevFirmwareUpdateStatus;
5667
+ type messages_DeviceFirmwareUpdateRequest = DeviceFirmwareUpdateRequest;
5668
+ type messages_DeviceFirmwareUpdateRecord = DeviceFirmwareUpdateRecord;
5669
+ type messages_DeviceFirmwareUpdateRecordFields = DeviceFirmwareUpdateRecordFields;
5670
+ type messages_DeviceFirmwareUpdateStatusGet = DeviceFirmwareUpdateStatusGet;
5302
5671
  type messages_DeviceFirmwareUpdateStatus = DeviceFirmwareUpdateStatus;
5303
- type messages_FactoryDeviceInfoSettings = FactoryDeviceInfoSettings;
5304
- type messages_FactoryGetDeviceInfo = FactoryGetDeviceInfo;
5305
- type messages_FactoryDeviceInfo = FactoryDeviceInfo;
5306
- type messages_FilesystemFixPermission = FilesystemFixPermission;
5672
+ type messages_DeviceFactoryAck = DeviceFactoryAck;
5673
+ declare const messages_DeviceFactoryAck: typeof DeviceFactoryAck;
5674
+ type messages_DeviceFactoryInfoManufactureTime = DeviceFactoryInfoManufactureTime;
5675
+ type messages_DeviceFactoryInfo = DeviceFactoryInfo;
5676
+ type messages_DeviceFactoryInfoSet = DeviceFactoryInfoSet;
5677
+ type messages_DeviceFactoryInfoGet = DeviceFactoryInfoGet;
5678
+ type messages_DeviceFactoryPermanentLock = DeviceFactoryPermanentLock;
5679
+ type messages_DeviceFactoryTest = DeviceFactoryTest;
5680
+ type messages_DeviceType = DeviceType;
5681
+ declare const messages_DeviceType: typeof DeviceType;
5682
+ type messages_DeviceSeType = DeviceSeType;
5683
+ declare const messages_DeviceSeType: typeof DeviceSeType;
5684
+ type messages_DeviceSEState = DeviceSEState;
5685
+ declare const messages_DeviceSEState: typeof DeviceSEState;
5686
+ type messages_DeviceFirmwareImageInfo = DeviceFirmwareImageInfo;
5687
+ type messages_DeviceHardwareInfo = DeviceHardwareInfo;
5688
+ type messages_DeviceMainMcuInfo = DeviceMainMcuInfo;
5689
+ type messages_DeviceCoprocessorInfo = DeviceCoprocessorInfo;
5690
+ type messages_DeviceSEInfo = DeviceSEInfo;
5691
+ type messages_DeviceInfoTargets = DeviceInfoTargets;
5692
+ type messages_DeviceInfoTypes = DeviceInfoTypes;
5693
+ type messages_DeviceInfoGet = DeviceInfoGet;
5694
+ type messages_ProtocolV2DeviceInfo = ProtocolV2DeviceInfo;
5695
+ type messages_DeviceSessionGet = DeviceSessionGet;
5696
+ type messages_DeviceSession = DeviceSession;
5697
+ type messages_DeviceSessionAskPin = DeviceSessionAskPin;
5698
+ type messages_DeviceSessionAskPin_FailureSubCodes = DeviceSessionAskPin_FailureSubCodes;
5699
+ declare const messages_DeviceSessionAskPin_FailureSubCodes: typeof DeviceSessionAskPin_FailureSubCodes;
5700
+ type messages_DeviceStatus = DeviceStatus;
5701
+ type messages_DeviceStatusGet = DeviceStatusGet;
5702
+ type messages_DevOnboardingStep = DevOnboardingStep;
5703
+ declare const messages_DevOnboardingStep: typeof DevOnboardingStep;
5704
+ type messages_DevOnboardingPhase = DevOnboardingPhase;
5705
+ declare const messages_DevOnboardingPhase: typeof DevOnboardingPhase;
5706
+ type messages_DevOnboardingSetupKind = DevOnboardingSetupKind;
5707
+ declare const messages_DevOnboardingSetupKind: typeof DevOnboardingSetupKind;
5708
+ type messages_DevOnboardingSetupMethod = DevOnboardingSetupMethod;
5709
+ declare const messages_DevOnboardingSetupMethod: typeof DevOnboardingSetupMethod;
5710
+ type messages_DevOnboardingSetupStatus = DevOnboardingSetupStatus;
5711
+ type messages_DevGetOnboardingStatus = DevGetOnboardingStatus;
5712
+ type messages_DevOnboardingStatus = DevOnboardingStatus;
5713
+ type messages_FilesystemPermissionFix = FilesystemPermissionFix;
5307
5714
  type messages_FilesystemPathInfo = FilesystemPathInfo;
5308
5715
  type messages_FilesystemPathInfoQuery = FilesystemPathInfoQuery;
5309
5716
  type messages_FilesystemFile = FilesystemFile;
@@ -5315,13 +5722,12 @@ type messages_FilesystemDirList = FilesystemDirList;
5315
5722
  type messages_FilesystemDirMake = FilesystemDirMake;
5316
5723
  type messages_FilesystemDirRemove = FilesystemDirRemove;
5317
5724
  type messages_FilesystemFormat = FilesystemFormat;
5318
- type messages_OnboardingStep = OnboardingStep;
5319
- declare const messages_OnboardingStep: typeof OnboardingStep;
5320
- type messages_GetOnboardingStatus = GetOnboardingStatus;
5321
- type messages_NewDevice = NewDevice;
5322
- type messages_Restore = Restore;
5323
- type messages_Setup = Setup;
5324
- type messages_OnboardingStatus = OnboardingStatus;
5725
+ type messages_PortfolioUpdate = PortfolioUpdate;
5726
+ type messages_ProtocolV2FailureType = ProtocolV2FailureType;
5727
+ declare const messages_ProtocolV2FailureType: typeof ProtocolV2FailureType;
5728
+ type messages_Enum_ProtocolV2Capability = Enum_ProtocolV2Capability;
5729
+ declare const messages_Enum_ProtocolV2Capability: typeof Enum_ProtocolV2Capability;
5730
+ type messages_ProtocolV2Capability = ProtocolV2Capability;
5325
5731
  type messages_MessageType = MessageType;
5326
5732
  type messages_MessageKey = MessageKey;
5327
5733
  type messages_MessageResponse<T extends MessageKey> = MessageResponse<T>;
@@ -5642,6 +6048,21 @@ declare namespace messages {
5642
6048
  messages_KaspaSignTx as KaspaSignTx,
5643
6049
  messages_KaspaTxInputRequest as KaspaTxInputRequest,
5644
6050
  messages_KaspaTxInputAck as KaspaTxInputAck,
6051
+ messages_KaspaOutpoint as KaspaOutpoint,
6052
+ messages_Enum_KaspaInputScriptType as Enum_KaspaInputScriptType,
6053
+ messages_KaspaInputScriptType as KaspaInputScriptType,
6054
+ messages_Enum_KaspaOutputScriptType as Enum_KaspaOutputScriptType,
6055
+ messages_KaspaOutputScriptType as KaspaOutputScriptType,
6056
+ messages_Enum_KaspaRequestType as Enum_KaspaRequestType,
6057
+ messages_KaspaRequestType as KaspaRequestType,
6058
+ messages_KaspaTxRequestSignature as KaspaTxRequestSignature,
6059
+ messages_KaspaTxRequest as KaspaTxRequest,
6060
+ messages_KaspaTxAckInput as KaspaTxAckInput,
6061
+ messages_KaspaTxAckOutput as KaspaTxAckOutput,
6062
+ messages_KaspaTxAckPayloadChunk as KaspaTxAckPayloadChunk,
6063
+ messages_KaspaTxAckPrevMeta as KaspaTxAckPrevMeta,
6064
+ messages_KaspaTxAckPrevInput as KaspaTxAckPrevInput,
6065
+ messages_KaspaTxAckPrevOutput as KaspaTxAckPrevOutput,
5645
6066
  messages_KaspaSignedTx as KaspaSignedTx,
5646
6067
  messages_LnurlAuth as LnurlAuth,
5647
6068
  messages_LnurlAuthResp as LnurlAuthResp,
@@ -5966,59 +6387,86 @@ declare namespace messages {
5966
6387
  messages_CoinPurchaseMemo as CoinPurchaseMemo,
5967
6388
  messages_PaymentRequestMemo as PaymentRequestMemo,
5968
6389
  messages_TxAckPaymentRequest as TxAckPaymentRequest,
6390
+ messages_EthereumSignTypedDataQR as EthereumSignTypedDataQR,
6391
+ messages_InternalMyAddressRequest as InternalMyAddressRequest,
6392
+ messages_StartSession as StartSession,
5969
6393
  messages_SetBusy as SetBusy,
5970
6394
  messages_GetFirmwareHash as GetFirmwareHash,
5971
6395
  messages_FirmwareHash as FirmwareHash,
5972
6396
  messages_GetNonce as GetNonce,
5973
6397
  messages_Nonce as Nonce,
5974
6398
  messages_WriteSEPrivateKey as WriteSEPrivateKey,
6399
+ messages_WallpaperTarget as WallpaperTarget,
6400
+ messages_SetWallpaper as SetWallpaper,
6401
+ messages_GetWallpaper as GetWallpaper,
6402
+ messages_Wallpaper as Wallpaper,
5975
6403
  messages_UnlockPath as UnlockPath,
5976
6404
  messages_UnlockedPathRequest as UnlockedPathRequest,
5977
6405
  messages_MoneroNetworkType as MoneroNetworkType,
5978
- messages_TxDetailsAmount as TxDetailsAmount,
5979
- messages_TxDetailsAddress as TxDetailsAddress,
5980
- messages_TxDetailsNetwork as TxDetailsNetwork,
5981
- messages_TxDetailsGeneral as TxDetailsGeneral,
5982
- messages_TxDetailsDisplayType as TxDetailsDisplayType,
5983
- messages_TxDetailsPage as TxDetailsPage,
5984
- messages_GetProtoVersion as GetProtoVersion,
5985
- messages_ProtoVersion as ProtoVersion,
5986
- messages_DevRebootType as DevRebootType,
6406
+ messages_ViewAmount as ViewAmount,
6407
+ messages_ViewDetail as ViewDetail,
6408
+ messages_ViewTipType as ViewTipType,
6409
+ messages_ViewTip as ViewTip,
6410
+ messages_ViewRawData as ViewRawData,
6411
+ messages_ViewSignLayout as ViewSignLayout,
6412
+ messages_ViewSignPage as ViewSignPage,
6413
+ messages_ViewVerifyPage as ViewVerifyPage,
6414
+ messages_ProtocolInfoRequest as ProtocolInfoRequest,
6415
+ messages_ProtocolInfo as ProtocolInfo,
6416
+ messages_DeviceErrorCode as DeviceErrorCode,
5987
6417
  messages_DeviceRebootType as DeviceRebootType,
5988
- messages_DevReboot as DevReboot,
5989
6418
  messages_DeviceReboot as DeviceReboot,
5990
- messages_DeviceType as DeviceType,
5991
- messages_DevSeType as DevSeType,
5992
- messages_DevSEState as DevSEState,
5993
- messages_DevFirmwareImageInfo as DevFirmwareImageInfo,
5994
- messages_DevHardwareInfo as DevHardwareInfo,
5995
- messages_DevMainMcuInfo as DevMainMcuInfo,
5996
- messages_DevBluetoothInfo as DevBluetoothInfo,
5997
- messages_DevSEInfo as DevSEInfo,
5998
- messages_DevInfoTargets as DevInfoTargets,
5999
- messages_DevInfoTypes as DevInfoTypes,
6000
- messages_DevStatus as DevStatus,
6001
- messages_DevGetDeviceInfo as DevGetDeviceInfo,
6002
- messages_DeviceGetDeviceInfo as DeviceGetDeviceInfo,
6003
- messages_ProtocolV2DeviceInfo as ProtocolV2DeviceInfo,
6004
- messages_DevFirmwareTargetType as DevFirmwareTargetType,
6419
+ messages_DeviceSettings as DeviceSettings,
6420
+ messages_DeviceSettingsGet as DeviceSettingsGet,
6421
+ messages_DeviceSettingsSet as DeviceSettingsSet,
6422
+ messages_DeviceSettingsPage as DeviceSettingsPage,
6423
+ messages_DeviceSettingsPageShow as DeviceSettingsPageShow,
6424
+ messages_DeviceCertificate as DeviceCertificate,
6425
+ messages_DeviceCertificateWrite as DeviceCertificateWrite,
6426
+ messages_DeviceCertificateRead as DeviceCertificateRead,
6427
+ messages_DeviceCertificateSignature as DeviceCertificateSignature,
6428
+ messages_DeviceCertificateSign as DeviceCertificateSign,
6005
6429
  messages_DeviceFirmwareTargetType as DeviceFirmwareTargetType,
6006
- messages_DevFirmwareTarget as DevFirmwareTarget,
6430
+ messages_DeviceFirmwareUpdateTaskStatus as DeviceFirmwareUpdateTaskStatus,
6007
6431
  messages_DeviceFirmwareTarget as DeviceFirmwareTarget,
6008
- messages_DevFirmwareUpdate as DevFirmwareUpdate,
6009
- messages_DeviceFirmwareUpdate as DeviceFirmwareUpdate,
6010
- messages_DevFirmwareInstallProgress as DevFirmwareInstallProgress,
6011
- messages_DeviceFirmwareInstallProgress as DeviceFirmwareInstallProgress,
6012
- messages_DevFirmwareUpdateStatusEntry as DevFirmwareUpdateStatusEntry,
6013
- messages_DeviceFirmwareUpdateStatusEntry as DeviceFirmwareUpdateStatusEntry,
6014
- messages_DevGetFirmwareUpdateStatus as DevGetFirmwareUpdateStatus,
6015
- messages_DeviceGetFirmwareUpdateStatus as DeviceGetFirmwareUpdateStatus,
6016
- messages_DevFirmwareUpdateStatus as DevFirmwareUpdateStatus,
6432
+ messages_DeviceFirmwareUpdateRequest as DeviceFirmwareUpdateRequest,
6433
+ messages_DeviceFirmwareUpdateRecord as DeviceFirmwareUpdateRecord,
6434
+ messages_DeviceFirmwareUpdateRecordFields as DeviceFirmwareUpdateRecordFields,
6435
+ messages_DeviceFirmwareUpdateStatusGet as DeviceFirmwareUpdateStatusGet,
6017
6436
  messages_DeviceFirmwareUpdateStatus as DeviceFirmwareUpdateStatus,
6018
- messages_FactoryDeviceInfoSettings as FactoryDeviceInfoSettings,
6019
- messages_FactoryGetDeviceInfo as FactoryGetDeviceInfo,
6020
- messages_FactoryDeviceInfo as FactoryDeviceInfo,
6021
- messages_FilesystemFixPermission as FilesystemFixPermission,
6437
+ messages_DeviceFactoryAck as DeviceFactoryAck,
6438
+ messages_DeviceFactoryInfoManufactureTime as DeviceFactoryInfoManufactureTime,
6439
+ messages_DeviceFactoryInfo as DeviceFactoryInfo,
6440
+ messages_DeviceFactoryInfoSet as DeviceFactoryInfoSet,
6441
+ messages_DeviceFactoryInfoGet as DeviceFactoryInfoGet,
6442
+ messages_DeviceFactoryPermanentLock as DeviceFactoryPermanentLock,
6443
+ messages_DeviceFactoryTest as DeviceFactoryTest,
6444
+ messages_DeviceType as DeviceType,
6445
+ messages_DeviceSeType as DeviceSeType,
6446
+ messages_DeviceSEState as DeviceSEState,
6447
+ messages_DeviceFirmwareImageInfo as DeviceFirmwareImageInfo,
6448
+ messages_DeviceHardwareInfo as DeviceHardwareInfo,
6449
+ messages_DeviceMainMcuInfo as DeviceMainMcuInfo,
6450
+ messages_DeviceCoprocessorInfo as DeviceCoprocessorInfo,
6451
+ messages_DeviceSEInfo as DeviceSEInfo,
6452
+ messages_DeviceInfoTargets as DeviceInfoTargets,
6453
+ messages_DeviceInfoTypes as DeviceInfoTypes,
6454
+ messages_DeviceInfoGet as DeviceInfoGet,
6455
+ messages_ProtocolV2DeviceInfo as ProtocolV2DeviceInfo,
6456
+ messages_DeviceSessionGet as DeviceSessionGet,
6457
+ messages_DeviceSession as DeviceSession,
6458
+ messages_DeviceSessionAskPin as DeviceSessionAskPin,
6459
+ messages_DeviceSessionAskPin_FailureSubCodes as DeviceSessionAskPin_FailureSubCodes,
6460
+ messages_DeviceStatus as DeviceStatus,
6461
+ messages_DeviceStatusGet as DeviceStatusGet,
6462
+ messages_DevOnboardingStep as DevOnboardingStep,
6463
+ messages_DevOnboardingPhase as DevOnboardingPhase,
6464
+ messages_DevOnboardingSetupKind as DevOnboardingSetupKind,
6465
+ messages_DevOnboardingSetupMethod as DevOnboardingSetupMethod,
6466
+ messages_DevOnboardingSetupStatus as DevOnboardingSetupStatus,
6467
+ messages_DevGetOnboardingStatus as DevGetOnboardingStatus,
6468
+ messages_DevOnboardingStatus as DevOnboardingStatus,
6469
+ messages_FilesystemPermissionFix as FilesystemPermissionFix,
6022
6470
  messages_FilesystemPathInfo as FilesystemPathInfo,
6023
6471
  messages_FilesystemPathInfoQuery as FilesystemPathInfoQuery,
6024
6472
  messages_FilesystemFile as FilesystemFile,
@@ -6030,12 +6478,10 @@ declare namespace messages {
6030
6478
  messages_FilesystemDirMake as FilesystemDirMake,
6031
6479
  messages_FilesystemDirRemove as FilesystemDirRemove,
6032
6480
  messages_FilesystemFormat as FilesystemFormat,
6033
- messages_OnboardingStep as OnboardingStep,
6034
- messages_GetOnboardingStatus as GetOnboardingStatus,
6035
- messages_NewDevice as NewDevice,
6036
- messages_Restore as Restore,
6037
- messages_Setup as Setup,
6038
- messages_OnboardingStatus as OnboardingStatus,
6481
+ messages_PortfolioUpdate as PortfolioUpdate,
6482
+ messages_ProtocolV2FailureType as ProtocolV2FailureType,
6483
+ messages_Enum_ProtocolV2Capability as Enum_ProtocolV2Capability,
6484
+ messages_ProtocolV2Capability as ProtocolV2Capability,
6039
6485
  messages_MessageType as MessageType,
6040
6486
  messages_MessageKey as MessageKey,
6041
6487
  messages_MessageResponse as MessageResponse,
@@ -6044,10 +6490,21 @@ declare namespace messages {
6044
6490
  };
6045
6491
  }
6046
6492
 
6493
+ declare class ProtocolV2SequenceCursor {
6494
+ private current;
6495
+ next(): number;
6496
+ }
6497
+
6047
6498
  type ProtocolV2Schemas = {
6048
6499
  protocolV1: Root;
6049
6500
  protocolV2: Root;
6050
6501
  };
6502
+ type ProtocolV2CallContext = {
6503
+ messageName: string;
6504
+ timeoutMs?: number;
6505
+ highVolume: boolean;
6506
+ generation: number;
6507
+ };
6051
6508
  type ProtocolLogger = {
6052
6509
  debug?: (...args: any[]) => void;
6053
6510
  error?: (...args: any[]) => void;
@@ -6056,11 +6513,17 @@ type ProtocolV2SessionOptions = {
6056
6513
  schemas: ProtocolV2Schemas;
6057
6514
  router: number;
6058
6515
  packetSrc?: number;
6059
- writeFrame: (frame: Uint8Array) => Promise<void>;
6060
- readFrame: () => Promise<Uint8Array>;
6516
+ maxFrameBytes?: number;
6517
+ prepareCall?: (context: ProtocolV2CallContext) => Promise<void> | void;
6518
+ writeFrame: (frame: Uint8Array, context: ProtocolV2CallContext) => Promise<void>;
6519
+ readFrame: (context: ProtocolV2CallContext) => Promise<Uint8Array>;
6061
6520
  logger?: ProtocolLogger;
6062
6521
  logPrefix?: string;
6063
6522
  createTimeoutError?: (name: string, timeoutMs: number) => Error;
6523
+ sequenceCursor?: ProtocolV2SequenceCursor;
6524
+ generation?: number;
6525
+ writeTimeoutMs?: number;
6526
+ deliveryTimeoutMs?: number;
6064
6527
  };
6065
6528
  type ProtocolV2CallOptions = {
6066
6529
  timeoutMs?: number;
@@ -6074,10 +6537,11 @@ declare function bytesToHex(bytes: Uint8Array): string;
6074
6537
  declare function getErrorMessage(error: unknown): string;
6075
6538
  declare function withProtocolTimeout<T>(promise: Promise<T>, timeoutMs: number | undefined, createTimeoutError: () => Error, onTimeout?: () => void): Promise<T>;
6076
6539
  declare const PROTOCOL_V2_WRITE_WATCHDOG_TIMEOUT_MS = 30000;
6540
+ declare const PROTOCOL_V2_DELIVERY_WATCHDOG_TIMEOUT_MS = 5000;
6077
6541
  declare class ProtocolV2Session {
6078
6542
  private readonly options;
6543
+ private readonly sequenceCursor;
6079
6544
  private pendingCall;
6080
- private protoSeq;
6081
6545
  constructor(options: ProtocolV2SessionOptions);
6082
6546
  call(name: string, data: Record<string, unknown>, callOptions?: ProtocolV2CallOptions): Promise<MessageFromOneKey>;
6083
6547
  private executeCall;
@@ -6091,6 +6555,69 @@ declare function probeProtocolV2({ call, timeoutMs, logger, logPrefix, onBeforeP
6091
6555
  onProbeFailed?: (error: unknown) => Promise<void> | void;
6092
6556
  }): Promise<boolean>;
6093
6557
 
6558
+ type ProtocolV2LinkErrorClassification = 'link-fatal' | 'recoverable';
6559
+ interface ProtocolV2LinkAdapter {
6560
+ router: number;
6561
+ maxFrameBytes?: number;
6562
+ generation: number;
6563
+ prepareCall(context: ProtocolV2CallContext): Promise<void> | void;
6564
+ writeFrame(frame: Uint8Array, context: ProtocolV2CallContext): Promise<void>;
6565
+ readFrame(context: ProtocolV2CallContext): Promise<Uint8Array>;
6566
+ reset(reason: string): Promise<void> | void;
6567
+ logger?: ProtocolV2SessionOptions['logger'];
6568
+ logPrefix?: string;
6569
+ createTimeoutError?: ProtocolV2SessionOptions['createTimeoutError'];
6570
+ writeTimeoutMs?: number;
6571
+ }
6572
+ type ProtocolV2LinkManagerOptions<Key> = {
6573
+ getSchemas: () => ProtocolV2Schemas;
6574
+ classifyError: (error: unknown) => ProtocolV2LinkErrorClassification;
6575
+ onLinkInvalidated?: (key: Key, reason: string) => Promise<void> | void;
6576
+ };
6577
+ declare class ProtocolV2LinkManager<Key> {
6578
+ private readonly links;
6579
+ private readonly sequences;
6580
+ private readonly callQueues;
6581
+ private readonly options;
6582
+ constructor(options: ProtocolV2LinkManagerOptions<Key>);
6583
+ call(key: Key, createAdapter: () => ProtocolV2LinkAdapter, name: string, data: Record<string, unknown>, options?: TransportCallOptions): Promise<MessageFromOneKey>;
6584
+ invalidateLink(key: Key, reason: string): Promise<void>;
6585
+ invalidateAllLinks(reason: string): Promise<void>;
6586
+ dispose(reason: string): Promise<void>;
6587
+ private getOrCreateLink;
6588
+ private executeCall;
6589
+ private clearSettledCallQueue;
6590
+ }
6591
+
6592
+ type ProtocolV2UsbTransportBaseOptions = {
6593
+ router: number;
6594
+ maxFrameBytes: number;
6595
+ logPrefix: string;
6596
+ };
6597
+ declare abstract class ProtocolV2UsbTransportBase<Key> {
6598
+ private readonly protocolV2UsbLinks;
6599
+ private readonly protocolV2UsbAssemblers;
6600
+ private readonly protocolV2UsbGenerations;
6601
+ private readonly protocolV2UsbCancellations;
6602
+ private readonly protocolV2UsbOptions;
6603
+ protected constructor(options: ProtocolV2UsbTransportBaseOptions);
6604
+ protected abstract getProtocolV2UsbSchemas(): ProtocolV2Schemas;
6605
+ protected abstract getProtocolV2UsbLogger(): ProtocolV2SessionOptions['logger'];
6606
+ protected abstract writeProtocolV2UsbPacket(key: Key, frame: Uint8Array, context: ProtocolV2CallContext): Promise<void>;
6607
+ protected abstract readProtocolV2UsbPacket(key: Key, context: ProtocolV2CallContext): Promise<Uint8Array>;
6608
+ protected abstract resetProtocolV2UsbNativeLink(key: Key, reason: string): Promise<void>;
6609
+ protected abstract createProtocolV2UsbTimeoutError(name: string, timeoutMs: number): Error;
6610
+ protected onProtocolV2UsbLinkInvalidated(_key: Key, _reason: string): Promise<void> | void;
6611
+ protected rotateProtocolV2UsbGeneration(key: Key, reason: string): Promise<number>;
6612
+ protected callProtocolV2Usb(key: Key, name: string, data: Record<string, unknown>, options?: TransportCallOptions): Promise<MessageFromOneKey>;
6613
+ protected invalidateProtocolV2UsbLink(key: Key, reason: string): Promise<void>;
6614
+ protected invalidateAllProtocolV2UsbLinks(reason: string): Promise<void>;
6615
+ protected disposeProtocolV2UsbLinks(reason: string): Promise<void>;
6616
+ private createProtocolV2UsbAdapter;
6617
+ private getProtocolV2UsbAssembler;
6618
+ private createProtocolV2UsbCancellation;
6619
+ }
6620
+
6094
6621
  declare function info(res: any): {
6095
6622
  version: string;
6096
6623
  configured: boolean;
@@ -6117,19 +6644,38 @@ declare namespace check {
6117
6644
 
6118
6645
  declare const LogBlockCommand: Set<string>;
6119
6646
 
6647
+ /** Protocol V1 USB report marker, ASCII `?`. */
6120
6648
  declare const PROTOCOL_V1_REPORT_ID = 63;
6649
+ /** Protocol V1 envelope marker, ASCII `#`. */
6121
6650
  declare const PROTOCOL_V1_HEADER_BYTE = 35;
6651
+ /** Protocol V1 payload bytes per chunk after the report marker. */
6122
6652
  declare const PROTOCOL_V1_CHUNK_PAYLOAD_SIZE = 63;
6653
+ /** Protocol V1 USB packet length: report marker plus chunk payload. */
6123
6654
  declare const PROTOCOL_V1_USB_PACKET_SIZE: number;
6655
+ /** Protocol V1 message metadata: two-byte type plus four-byte payload length. */
6124
6656
  declare const PROTOCOL_V1_MESSAGE_HEADER_SIZE: number;
6657
+ /** Protocol V1 envelope metadata: `##`, message type, and payload length. */
6125
6658
  declare const PROTOCOL_V1_ENVELOPE_HEADER_SIZE: number;
6126
- declare const PROTOCOL_V2_FRAME_MAX_BYTES = 4608;
6127
- declare const PROTOCOL_V2_WEBUSB_FILE_CHUNK_SIZE = 4096;
6659
+ /** Firmware Proto Link runtime limit for a complete V2 frame, including header and CRC. */
6660
+ declare const PROTOCOL_V2_FRAME_MAX_BYTES = 4200;
6661
+ /** FilesystemFileWrite chunk size over WebUSB. */
6662
+ declare const PROTOCOL_V2_WEBUSB_FILE_CHUNK_SIZE = 4000;
6663
+ /** FilesystemFileWrite chunk size over BLE. */
6128
6664
  declare const PROTOCOL_V2_BLE_FILE_CHUNK_SIZE = 1800;
6129
- declare const PROTOCOL_V2_FILE_CHUNK_SIZE = 4096;
6665
+ /** BLE FilesystemFileRead chunk size, limited by the Pro2 1024-byte UART TX buffer. */
6666
+ declare const PROTOCOL_V2_BLE_FILE_READ_CHUNK_SIZE = 900;
6667
+ /** Pro2 BLE/UART RX FIFO must hold a complete Proto Link frame. */
6668
+ declare const PROTOCOL_V2_BLE_FRAME_MAX_BYTES = 2048;
6669
+ /** @deprecated Use the transport-specific WebUSB or BLE file chunk constant. */
6670
+ declare const PROTOCOL_V2_FILE_CHUNK_SIZE = 4000;
6671
+ /**
6672
+ * Protocol V2 routing channel. USB reaches the main MCU directly, while BLE routes
6673
+ * through the BLE coprocessor UART bridge.
6674
+ */
6130
6675
  declare const PROTOCOL_V2_CHANNEL_USB = 0;
6131
6676
  declare const PROTOCOL_V2_CHANNEL_BLE_UART = 1;
6132
6677
  declare const PROTOCOL_V2_CHANNEL_SOCKET = 2;
6678
+ /** packet_src for protobuf commands; firmware routes zero to the protobuf dispatcher. */
6133
6679
  declare const PROTOCOL_V2_PACKET_SRC_COMMAND = 0;
6134
6680
 
6135
6681
  declare const _default: {
@@ -6148,6 +6694,18 @@ declare const _default: {
6148
6694
  decodeMessage: typeof decodeMessage;
6149
6695
  };
6150
6696
  ProtocolV2: {
6697
+ isAckFrame: typeof isAckFrame;
6698
+ getAckSequence: typeof getAckSequence;
6699
+ inspectFrame(schemas: {
6700
+ protocolV1: protobuf.Root;
6701
+ protocolV2: protobuf.Root;
6702
+ }, frame: Uint8Array): {
6703
+ messageName: string;
6704
+ messageTypeId: number;
6705
+ pbPayload: Uint8Array;
6706
+ seq: number;
6707
+ type: string;
6708
+ };
6151
6709
  encodeFrame(schemas: {
6152
6710
  protocolV1: protobuf.Root;
6153
6711
  protocolV2: protobuf.Root;
@@ -6155,21 +6713,11 @@ declare const _default: {
6155
6713
  packetSrc?: number | undefined;
6156
6714
  router?: number | undefined;
6157
6715
  seq?: number | undefined;
6158
- logger?: ProtocolV2DebugLogger | undefined;
6159
- logPrefix?: string | undefined;
6160
- context?: string | undefined;
6161
6716
  }): Uint8Array;
6162
6717
  decodeFrame(schemas: {
6163
6718
  protocolV1: protobuf.Root;
6164
6719
  protocolV2: protobuf.Root;
6165
- }, frame: Uint8Array, options?: Pick<{
6166
- packetSrc?: number | undefined;
6167
- router?: number | undefined;
6168
- seq?: number | undefined;
6169
- logger?: ProtocolV2DebugLogger | undefined;
6170
- logPrefix?: string | undefined;
6171
- context?: string | undefined;
6172
- }, "logger" | "logPrefix" | "context">): {
6720
+ }, frame: Uint8Array): {
6173
6721
  message: {
6174
6722
  [key: string]: any;
6175
6723
  };
@@ -6182,7 +6730,10 @@ declare const _default: {
6182
6730
  };
6183
6731
  PROTOCOL_V2_SYS_MESSAGE_THRESHOLD: number;
6184
6732
  ProtocolV2FrameAssembler: typeof ProtocolV2FrameAssembler;
6733
+ ProtocolV2LinkManager: typeof ProtocolV2LinkManager;
6734
+ ProtocolV2SequenceCursor: typeof ProtocolV2SequenceCursor;
6185
6735
  ProtocolV2Session: typeof ProtocolV2Session;
6736
+ ProtocolV2UsbTransportBase: typeof ProtocolV2UsbTransportBase;
6186
6737
  bytesToHex: typeof bytesToHex;
6187
6738
  concatUint8Arrays: typeof concatUint8Arrays;
6188
6739
  createMessageFromName: (messages: protobuf.Root, name: string) => {
@@ -6203,4 +6754,4 @@ declare const _default: {
6203
6754
  withProtocolTimeout: typeof withProtocolTimeout;
6204
6755
  };
6205
6756
 
6206
- 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, DevBluetoothInfo, DevFirmwareImageInfo, DevFirmwareInstallProgress, DevFirmwareTarget, DevFirmwareTargetType, DevFirmwareUpdate, DevFirmwareUpdateStatus, DevFirmwareUpdateStatusEntry, DevGetDeviceInfo, DevGetFirmwareUpdateStatus, DevHardwareInfo, DevInfoTargets, DevInfoTypes, DevMainMcuInfo, DevReboot, DevRebootType, DevSEInfo, DevSEState, DevSeType, DevStatus, DeviceBackToBoot, DeviceEraseSector, DeviceFirmwareInstallProgress, DeviceFirmwareTarget, DeviceFirmwareTargetType, DeviceFirmwareUpdate, DeviceFirmwareUpdateStatus, DeviceFirmwareUpdateStatusEntry, DeviceGetDeviceInfo, DeviceGetFirmwareUpdateStatus, DeviceInfo, DeviceInfoSettings, DeviceReboot, DeviceRebootType, 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, FactoryDeviceInfo, FactoryDeviceInfoSettings, FactoryGetDeviceInfo, Failure, FailureType, Features, FileInfo, FileInfoList, FilecoinAddress, FilecoinGetAddress, FilecoinSignTx, FilecoinSignedTx, FilesystemDir, FilesystemDirList, FilesystemDirMake, FilesystemDirRemove, FilesystemFile, FilesystemFileDelete, FilesystemFileRead, FilesystemFileWrite, FilesystemFixPermission, FilesystemFormat, FilesystemPathInfo, FilesystemPathInfoQuery, FirmwareErase, FirmwareErase_ex, FirmwareHash, FirmwareRequest, FirmwareUpdateEmmc, FirmwareUpload, GetAddress, GetDeviceInfo, GetECDHSessionKey, GetEntropy, GetFeatures, GetFirmwareHash, GetNextU2FCounter, GetNonce, GetOnboardingStatus, GetOwnershipId, GetOwnershipProof, GetPassphraseState, GetProtoVersion, GetPublicKey, GetPublicKeyMultiple, HDNodePathType, HDNodeType, IdentityType, Initialize, InputScriptType, InternalInputScriptType, 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, NewDevice, NexaAddress, NexaGetAddress, NexaSignTx, NexaSignedTx, NexaTxInputAck, NexaTxInputRequest, NextU2FCounter, Nonce, NostrDecryptMessage, NostrDecryptedMessage, NostrEncryptMessage, NostrEncryptedMessage, NostrGetPublicKey, NostrPublicKey, NostrSignEvent, NostrSignSchnorr, NostrSignedEvent, NostrSignedSchnorr, OnboardingStatus, 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_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, ProtoVersion, 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, Restore, RippleAddress, RippleGetAddress, RipplePayment, RippleSignTx, RippleSignedTx, SEMessageSignature, SEPublicCert, SEPublicKey, SESignMessage, SafetyCheckLevel, ScdoAddress, ScdoGetAddress, ScdoSignMessage, ScdoSignTx, ScdoSignedMessage, ScdoSignedTx, ScdoTxAck, SdProtect, SdProtectOperationType, SeedRequestType, SelfTest, SetBusy, SetU2FCounter, Setup, 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, 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, TxDetailsAddress, TxDetailsAmount, TxDetailsDisplayType, TxDetailsGeneral, TxDetailsNetwork, TxDetailsPage, TxInput, TxInputType, TxOutput, TxOutputBinType, TxOutputType, TxRequest, TxRequestDetailsType, TxRequestSerializedType, TypedCall, UintType, UnLockDevice, UnLockDeviceResponse, UnlockPath, UnlockedPathRequest, UpgradeFileHeader, VerifyMessage, Vote, WL_OperationType, 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 };
6757
+ export { AcquireInput, Address, AlephiumAddress, AlephiumBytecodeAck, AlephiumBytecodeRequest, AlephiumGetAddress, AlephiumMessageSignature, AlephiumSignMessage, AlephiumSignTx, AlephiumSignedTx, AlephiumTxAck, AlephiumTxRequest, AlgorandAddress, AlgorandGetAddress, AlgorandSignTx, AlgorandSignedTx, AmountUnit, ApplyFlags, ApplySettings, AptosAddress, AptosGetAddress, AptosMessagePayload, AptosMessageSignature, AptosSignMessage, AptosSignSIWAMessage, AptosSignTx, AptosSignedTx, AptosTransactionType, AuthorizeCoinJoin, BIP32Address, BackupDevice, BackupType, BatchGetPublickeys, BenfenAddress, BenfenGetAddress, BenfenMessageSignature, BenfenSignMessage, BenfenSignTx, BenfenSignedTx, BenfenTxAck, BenfenTxRequest, BinanceAddress, BinanceCancelMsg, BinanceCoin, BinanceGetAddress, BinanceGetPublicKey, BinanceInputOutput, BinanceOrderMsg, BinanceOrderSide, BinanceOrderType, BinancePublicKey, BinanceSignTx, BinanceSignedTx, BinanceTimeInForce, BinanceTransferMsg, BinanceTxRequest, BixinBackupAck, BixinBackupDevice, BixinBackupDeviceAck, BixinBackupRequest, BixinLoadDevice, BixinMessageSE, BixinOutMessageSE, BixinPinInputOnDevice, BixinRestoreAck, BixinRestoreRequest, BixinSeedOperate, BixinVerifyDeviceAck, BixinVerifyDeviceRequest, BixinWhiteListAck, BixinWhiteListRequest, BlurRequest, ButtonAck, ButtonRequest, ButtonRequestType, Cancel, CancelAuthorization, Capability, CardanoAddress, CardanoAddressParametersType, CardanoAddressType, CardanoAssetGroup, CardanoBlockchainPointerType, CardanoCVoteRegistrationDelegation, CardanoCVoteRegistrationFormat, CardanoCVoteRegistrationParametersType, CardanoCertificateType, CardanoDRep, CardanoDRepType, CardanoDerivationType, CardanoGetAddress, CardanoGetNativeScriptHash, CardanoGetPublicKey, CardanoMessageSignature, CardanoNativeScript, CardanoNativeScriptHash, CardanoNativeScriptHashDisplayFormat, CardanoNativeScriptType, CardanoPoolMetadataType, CardanoPoolOwner, CardanoPoolParametersType, CardanoPoolRelayParameters, CardanoPoolRelayType, CardanoPublicKey, CardanoSignMessage, CardanoSignTxFinished, CardanoSignTxInit, CardanoToken, CardanoTxAuxiliaryData, CardanoTxAuxiliaryDataSupplement, CardanoTxAuxiliaryDataSupplementType, CardanoTxBodyHash, CardanoTxCertificate, CardanoTxCollateralInput, CardanoTxHostAck, CardanoTxInlineDatumChunk, CardanoTxInput, CardanoTxItemAck, CardanoTxMint, CardanoTxOutput, CardanoTxOutputSerializationFormat, CardanoTxReferenceInput, CardanoTxReferenceScriptChunk, CardanoTxRequiredSigner, CardanoTxSigningMode, CardanoTxWithdrawal, CardanoTxWitnessRequest, CardanoTxWitnessResponse, CardanoTxWitnessType, ChangeOutputScriptType, ChangePin, ChangeWipeCode, CipherKeyValue, CipheredKeyValue, CoinJoinRequest, CoinPurchaseMemo, CommandFlags, ConfluxAddress, ConfluxGetAddress, ConfluxMessageSignature, ConfluxSignMessage, ConfluxSignMessageCIP23, ConfluxSignTx, ConfluxTxAck, ConfluxTxRequest, CosmosAddress, CosmosGetAddress, CosmosSignTx, CosmosSignedTx, DecredStakingSpendType, Deprecated_PassphraseStateAck, Deprecated_PassphraseStateRequest, DevGetOnboardingStatus, DevOnboardingPhase, DevOnboardingSetupKind, DevOnboardingSetupMethod, DevOnboardingSetupStatus, DevOnboardingStatus, DevOnboardingStep, DeviceBackToBoot, DeviceCertificate, DeviceCertificateRead, DeviceCertificateSign, DeviceCertificateSignature, DeviceCertificateWrite, DeviceCoprocessorInfo, DeviceEraseSector, DeviceErrorCode, DeviceFactoryAck, DeviceFactoryInfo, DeviceFactoryInfoGet, DeviceFactoryInfoManufactureTime, DeviceFactoryInfoSet, DeviceFactoryPermanentLock, DeviceFactoryTest, DeviceFirmwareImageInfo, DeviceFirmwareTarget, DeviceFirmwareTargetType, DeviceFirmwareUpdateRecord, DeviceFirmwareUpdateRecordFields, DeviceFirmwareUpdateRequest, DeviceFirmwareUpdateStatus, DeviceFirmwareUpdateStatusGet, DeviceFirmwareUpdateTaskStatus, DeviceHardwareInfo, DeviceInfo, DeviceInfoGet, DeviceInfoSettings, DeviceInfoTargets, DeviceInfoTypes, DeviceMainMcuInfo, DeviceReboot, DeviceRebootType, DeviceSEInfo, DeviceSEState, DeviceSeType, DeviceSession, DeviceSessionAskPin, DeviceSessionAskPin_FailureSubCodes, DeviceSessionGet, 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, GetWallpaper, HDNodePathType, HDNodeType, IdentityType, Initialize, InputScriptType, InternalInputScriptType, InternalMyAddressRequest, KaspaAddress, KaspaGetAddress, KaspaInputScriptType, KaspaOutpoint, KaspaOutputScriptType, KaspaRequestType, KaspaSignTx, KaspaSignedTx, KaspaTxAckInput, KaspaTxAckOutput, KaspaTxAckPayloadChunk, KaspaTxAckPrevInput, KaspaTxAckPrevMeta, KaspaTxAckPrevOutput, KaspaTxInputAck, KaspaTxInputRequest, KaspaTxRequest, KaspaTxRequestSignature, ListResDir, LnurlAuth, LnurlAuthResp, LockDevice, LogBlockCommand, LowLevelDevice, LowlevelTransportSharedPlugin, MessageFromOneKey, MessageKey, MessageResponse, MessageResponseMap, MessageSignature, MessageType, messages as Messages, MoneroAccountPublicAddress, MoneroAddress, MoneroExportedKeyImage, MoneroGetAddress, MoneroGetTxKeyAck, MoneroGetTxKeyRequest, MoneroGetWatchKey, MoneroKeyImageExportInitAck, MoneroKeyImageExportInitRequest, MoneroKeyImageSyncFinalAck, MoneroKeyImageSyncFinalRequest, MoneroKeyImageSyncStepAck, MoneroKeyImageSyncStepRequest, MoneroLiveRefreshFinalAck, MoneroLiveRefreshFinalRequest, MoneroLiveRefreshStartAck, MoneroLiveRefreshStartRequest, MoneroLiveRefreshStepAck, MoneroLiveRefreshStepRequest, MoneroMultisigKLRki, MoneroNetworkType, MoneroOutputEntry, MoneroRctKeyPublic, MoneroRingCtSig, MoneroSubAddressIndicesList, MoneroTransactionAllInputsSetAck, MoneroTransactionAllInputsSetRequest, MoneroTransactionAllOutSetAck, MoneroTransactionAllOutSetRequest, MoneroTransactionData, MoneroTransactionDestinationEntry, MoneroTransactionFinalAck, MoneroTransactionFinalRequest, MoneroTransactionInitAck, MoneroTransactionInitRequest, MoneroTransactionInputViniAck, MoneroTransactionInputViniRequest, MoneroTransactionInputsPermutationAck, MoneroTransactionInputsPermutationRequest, MoneroTransactionRsigData, MoneroTransactionSetInputAck, MoneroTransactionSetInputRequest, MoneroTransactionSetOutputAck, MoneroTransactionSetOutputRequest, MoneroTransactionSignInputAck, MoneroTransactionSignInputRequest, MoneroTransactionSourceEntry, MoneroTransferDetails, MoneroWatchKey, MultisigRedeemScriptType, NEMAddress, NEMAggregateModification, NEMCosignatoryModification, NEMDecryptMessage, NEMDecryptedMessage, NEMGetAddress, NEMImportanceTransfer, NEMImportanceTransferMode, NEMModificationType, NEMMosaic, NEMMosaicCreation, NEMMosaicDefinition, NEMMosaicLevy, NEMMosaicSupplyChange, NEMProvisionNamespace, NEMSignTx, NEMSignedTx, NEMSupplyChangeType, NEMTransactionCommon, NEMTransfer, NFTWriteData, NFTWriteInfo, NearAddress, NearGetAddress, NearSignTx, NearSignedTx, NeoAddress, NeoGetAddress, NeoSignTx, NeoSignedTx, NervosAddress, NervosGetAddress, NervosSignTx, NervosSignedTx, NervosTxAck, NervosTxRequest, NexaAddress, NexaGetAddress, NexaSignTx, NexaSignedTx, NexaTxInputAck, NexaTxInputRequest, NextU2FCounter, Nonce, NostrDecryptMessage, NostrDecryptedMessage, NostrEncryptMessage, NostrEncryptedMessage, NostrGetPublicKey, NostrPublicKey, NostrSignEvent, NostrSignSchnorr, NostrSignedEvent, NostrSignedSchnorr, OneKeyDeviceCommType, OneKeyDeviceInfo, OneKeyDeviceInfoBase, OneKeyDeviceInfoWithSession, OneKeyDeviceType, OneKeyMobileDeviceInfo, OneKeySEState, OneKeySeType, OnekeyFeatures, OnekeyGetFeatures, OutputScriptType, OwnershipId, OwnershipProof, PROTOCOL_V1_CHUNK_PAYLOAD_SIZE, PROTOCOL_V1_ENVELOPE_HEADER_SIZE, PROTOCOL_V1_HEADER_BYTE, PROTOCOL_V1_MESSAGE_HEADER_SIZE, PROTOCOL_V1_REPORT_ID, PROTOCOL_V1_USB_PACKET_SIZE, PROTOCOL_V2_BLE_FILE_CHUNK_SIZE, PROTOCOL_V2_BLE_FILE_READ_CHUNK_SIZE, PROTOCOL_V2_BLE_FRAME_MAX_BYTES, PROTOCOL_V2_CHANNEL_BLE_UART, PROTOCOL_V2_CHANNEL_SOCKET, PROTOCOL_V2_CHANNEL_USB, PROTOCOL_V2_DELIVERY_WATCHDOG_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, PROTOCOL_V2_WRITE_WATCHDOG_TIMEOUT_MS, PassphraseAck, PassphraseRequest, PassphraseState, Path, PaymentRequestMemo, PinMatrixAck, PinMatrixRequest, PinMatrixRequestType, Ping, PolkadotAddress, PolkadotGetAddress, PolkadotSignTx, PolkadotSignedTx, PortfolioUpdate, PreauthorizedRequest, PrevInput, PrevOutput, PrevTx, ProtocolInfo, ProtocolInfoRequest, ProtocolType, ProtocolV1, ProtocolV2, ProtocolV2CallContext, ProtocolV2CallOptions, ProtocolV2Capability, ProtocolV2DeviceInfo, ProtocolV2FailureType, ProtocolV2FrameAssembler, ProtocolV2LinkAdapter, ProtocolV2LinkErrorClassification, ProtocolV2LinkManager, ProtocolV2LinkManagerOptions, ProtocolV2Schemas, ProtocolV2SequenceCursor, ProtocolV2Session, ProtocolV2SessionOptions, ProtocolV2UsbTransportBase, ProtocolV2UsbTransportBaseOptions, PublicKey, PublicKeyMultiple, ReadSEPublicCert, ReadSEPublicKey, Reboot, RebootToBoardloader, RebootToBootloader, RebootType, RecoveryDevice, RecoveryDeviceType, RefundMemo, RequestType, ResetDevice, ResourceAck, ResourceRequest, ResourceType, ResourceUpdate, ResourceUpload, RippleAddress, RippleGetAddress, RipplePayment, RippleSignTx, RippleSignedTx, SEMessageSignature, SEPublicCert, SEPublicKey, SESignMessage, SafetyCheckLevel, ScdoAddress, ScdoGetAddress, ScdoSignMessage, ScdoSignTx, ScdoSignedMessage, ScdoSignedTx, ScdoTxAck, SdProtect, SdProtectOperationType, SeedRequestType, SelfTest, SetBusy, SetU2FCounter, SetWallpaper, SignIdentity, SignMessage, SignPsbt, SignTx, SignedIdentity, SignedPsbt, SolanaAddress, SolanaGetAddress, SolanaMessageSignature, SolanaOffChainMessageFormat, SolanaOffChainMessageVersion, SolanaSignOffChainMessage, SolanaSignTx, SolanaSignUnsafeMessage, SolanaSignedTx, SolanaTxATADetails, SolanaTxExtraInfo, SpiFlashData, SpiFlashRead, SpiFlashWrite, StarcoinAddress, StarcoinGetAddress, StarcoinGetPublicKey, StarcoinMessageSignature, StarcoinPublicKey, StarcoinSignMessage, StarcoinSignTx, StarcoinSignedTx, StarcoinVerifyMessage, StartSession, StellarAccountMergeOp, StellarAddress, StellarAllowTrustOp, StellarAsset, StellarAssetType, StellarBumpSequenceOp, StellarChangeTrustOp, StellarCreateAccountOp, StellarCreatePassiveSellOfferOp, StellarGetAddress, StellarInvokeHostFunctionOp, StellarManageBuyOfferOp, StellarManageDataOp, StellarManageSellOfferOp, StellarMemoType, StellarPathPaymentStrictReceiveOp, StellarPathPaymentStrictSendOp, StellarPaymentOp, StellarRequestType, StellarSetOptionsOp, StellarSignTx, StellarSignedTx, StellarSignerType, StellarSorobanDataAck, StellarSorobanDataRequest, StellarTxOpRequest, Success, SuiAddress, SuiGetAddress, SuiMessageSignature, SuiSignMessage, SuiSignTx, SuiSignedTx, SuiTxAck, SuiTxRequest, TextMemo, TezosAddress, TezosBallotOp, TezosBallotType, TezosContractID, TezosContractType, TezosDelegationOp, TezosGetAddress, TezosGetPublicKey, TezosManagerTransfer, TezosOriginationOp, TezosParametersManager, TezosProposalOp, TezosPublicKey, TezosRevealOp, TezosSignTx, TezosSignedTx, TezosTransactionOp, TonAddress, TonGetAddress, TonSignData, TonSignDataType, TonSignMessage, TonSignProof, TonSignedData, TonSignedMessage, TonSignedProof, TonTxAck, TonWalletVersion, TonWorkChain, Transport, TransportCallOptions, TronAddress, TronCancelAllUnfreezeV2Contract, TronContract, TronDelegateResourceContract, TronFreezeBalanceContract, TronFreezeBalanceV2Contract, TronGetAddress, TronMessageSignature, TronMessageType, TronResourceCode, TronSignMessage, TronSignTx, TronSignedTx, TronTransferContract, TronTriggerSmartContract, TronUnDelegateResourceContract, TronUnfreezeBalanceContract, TronUnfreezeBalanceV2Contract, TronVoteWitnessContract, TronWithdrawBalanceContract, TronWithdrawExpireUnfreezeContract, TxAck, TxAckInput, TxAckInputWrapper, TxAckOutput, TxAckOutputWrapper, TxAckPaymentRequest, TxAckPrevExtraData, TxAckPrevExtraDataWrapper, TxAckPrevInput, TxAckPrevInputWrapper, TxAckPrevMeta, TxAckPrevOutput, TxAckPrevOutputWrapper, TxAckResponse, TxInput, TxInputType, TxOutput, TxOutputBinType, TxOutputType, TxRequest, TxRequestDetailsType, TxRequestSerializedType, TypedCall, UintType, UnLockDevice, UnLockDeviceResponse, UnlockPath, UnlockedPathRequest, UpgradeFileHeader, VerifyMessage, ViewAmount, ViewDetail, ViewRawData, ViewSignLayout, ViewSignPage, ViewTip, ViewTipType, ViewVerifyPage, Vote, WL_OperationType, Wallpaper, WallpaperTarget, WipeDevice, WordAck, WordRequest, WordRequestType, WriteSEPrivateKey, WriteSEPublicCert, ZoomRequest, bytesToHex, concatUint8Arrays, _default as default, experimental_field, experimental_message, facotry, getErrorMessage, hexToBytes, probeProtocolV2, index as protocolV1, protocolV2Codec as protocolV2, withProtocolTimeout };