@onekeyfe/hd-transport 1.2.0-alpha.13 → 1.2.0-alpha.131
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.
- package/__tests__/messages.test.js +144 -4
- package/__tests__/protocol-v2-ble-frame-writer.test.js +119 -0
- package/__tests__/protocol-v2-link-manager.test.js +176 -9
- package/__tests__/protocol-v2-usb-transport-base.test.js +36 -2
- package/__tests__/protocol-v2.test.js +540 -108
- package/__tests__/transport-log.test.js +79 -0
- package/dist/constants.d.ts +3 -1
- package/dist/constants.d.ts.map +1 -1
- package/dist/index.d.ts +645 -217
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +679 -153
- package/dist/protocols/index.d.ts +17 -1
- package/dist/protocols/index.d.ts.map +1 -1
- package/dist/protocols/v2/ble-frame-writer.d.ts +15 -0
- package/dist/protocols/v2/ble-frame-writer.d.ts.map +1 -0
- package/dist/protocols/v2/decode.d.ts +11 -0
- package/dist/protocols/v2/decode.d.ts.map +1 -1
- package/dist/protocols/v2/errors.d.ts +16 -0
- package/dist/protocols/v2/errors.d.ts.map +1 -0
- package/dist/protocols/v2/frame-assembler.d.ts.map +1 -1
- package/dist/protocols/v2/index.d.ts +2 -0
- package/dist/protocols/v2/index.d.ts.map +1 -1
- package/dist/protocols/v2/link-manager.d.ts +5 -0
- package/dist/protocols/v2/link-manager.d.ts.map +1 -1
- package/dist/protocols/v2/session.d.ts +14 -4
- package/dist/protocols/v2/session.d.ts.map +1 -1
- package/dist/protocols/v2/usb-transport-base.d.ts +2 -0
- package/dist/protocols/v2/usb-transport-base.d.ts.map +1 -1
- package/dist/serialization/protobuf/decode.d.ts.map +1 -1
- package/dist/serialization/protobuf/encode.d.ts.map +1 -1
- package/dist/types/messages.d.ts +301 -156
- package/dist/types/messages.d.ts.map +1 -1
- package/dist/types/transport.d.ts +21 -3
- package/dist/types/transport.d.ts.map +1 -1
- package/dist/utils/transportLog.d.ts +9 -0
- package/dist/utils/transportLog.d.ts.map +1 -0
- package/messages-protocol-v2.json +523 -449
- package/package.json +2 -2
- package/scripts/protobuf-build.sh +112 -32
- package/scripts/protobuf-patches/index.js +1 -0
- package/scripts/protobuf-types.js +10 -1
- package/src/constants.ts +30 -16
- package/src/index.ts +5 -1
- package/src/protocols/index.ts +114 -3
- package/src/protocols/v2/ble-frame-writer.ts +77 -0
- package/src/protocols/v2/crc8.ts +1 -1
- package/src/protocols/v2/decode.ts +49 -12
- package/src/protocols/v2/encode.ts +1 -1
- package/src/protocols/v2/errors.ts +54 -0
- package/src/protocols/v2/frame-assembler.ts +6 -4
- package/src/protocols/v2/index.ts +2 -0
- package/src/protocols/v2/link-manager.ts +65 -5
- package/src/protocols/v2/session.ts +224 -80
- package/src/protocols/v2/usb-transport-base.ts +42 -10
- package/src/serialization/protobuf/decode.ts +4 -1
- package/src/serialization/protobuf/encode.ts +5 -1
- package/src/types/messages.ts +375 -198
- package/src/types/transport.ts +30 -3
- package/src/utils/transportLog.ts +102 -0
package/dist/index.d.ts
CHANGED
|
@@ -63,20 +63,90 @@ declare const PROTO_DATA_TYPE_PACKET = 0;
|
|
|
63
63
|
declare const PROTO_DATA_TYPE_ACK = 1;
|
|
64
64
|
|
|
65
65
|
declare const CRC8_TABLE: Uint8Array;
|
|
66
|
+
/**
|
|
67
|
+
* Compute CRC-8 over the first len bytes using the firmware-compatible initial value.
|
|
68
|
+
*/
|
|
66
69
|
declare function crc8(data: Uint8Array, len: number): number;
|
|
67
70
|
|
|
71
|
+
/**
|
|
72
|
+
* Advance a Protocol V2 sequence counter: 1-255, wraps around skipping 0.
|
|
73
|
+
*/
|
|
68
74
|
declare function nextProtoSeq(current: number): number;
|
|
75
|
+
/**
|
|
76
|
+
* Build a raw Protocol V2 frame (0x5A framing).
|
|
77
|
+
*
|
|
78
|
+
* Frame layout (PROTO_HEAD_CRC_SIZE = 8 overhead bytes):
|
|
79
|
+
* [0] SOF = 0x5A
|
|
80
|
+
* [1] frameLen low byte
|
|
81
|
+
* [2] frameLen high byte
|
|
82
|
+
* [3] CRC8 of bytes 0-2 (pre-header CRC)
|
|
83
|
+
* [4] router
|
|
84
|
+
* [5] attr = ((packetSrc & 0x0F) << 2) | dataType
|
|
85
|
+
* [6] seq (1-255, wraps skipping 0)
|
|
86
|
+
* [7..N-2] payload
|
|
87
|
+
* [N-1] CRC8 of bytes 0 to N-2 (frame CRC)
|
|
88
|
+
*/
|
|
69
89
|
declare function encodeFrame(payload: Uint8Array | null, packetSrc?: number, router?: number, seq?: number): Uint8Array;
|
|
90
|
+
/**
|
|
91
|
+
* Build a Protocol V2 frame carrying a protobuf message.
|
|
92
|
+
*
|
|
93
|
+
* Payload layout:
|
|
94
|
+
* [0-1] messageTypeId as little-endian uint16
|
|
95
|
+
* [2..] protobuf-encoded message bytes
|
|
96
|
+
*/
|
|
70
97
|
declare function encodeProtobufFrame(messageTypeId: number, pbPayload: Uint8Array, packetSrc?: number, router?: number, seq?: number): Uint8Array;
|
|
71
98
|
|
|
72
99
|
interface ProtoV2Frame {
|
|
100
|
+
/** Little-endian message type ID */
|
|
73
101
|
messageTypeId: number;
|
|
102
|
+
/** Raw protobuf-encoded payload (bytes after the 2-byte messageTypeId) */
|
|
74
103
|
pbPayload: Uint8Array;
|
|
104
|
+
/** Sequence number from the frame header */
|
|
75
105
|
seq: number;
|
|
106
|
+
/** Routing channel from the frame header */
|
|
107
|
+
router: number;
|
|
108
|
+
/** Packet source from the frame header */
|
|
109
|
+
packetSrc: number;
|
|
110
|
+
/** Packet or ACK discriminator from the frame header */
|
|
111
|
+
dataType: number;
|
|
76
112
|
}
|
|
113
|
+
type ProtoV2FrameHeader = {
|
|
114
|
+
frameLen: number;
|
|
115
|
+
router: number;
|
|
116
|
+
packetSrc: number;
|
|
117
|
+
dataType: number;
|
|
118
|
+
seq: number;
|
|
119
|
+
};
|
|
120
|
+
declare function inspectFrameHeader(data: Uint8Array): ProtoV2FrameHeader;
|
|
77
121
|
declare function isAckFrame(data: Uint8Array): boolean;
|
|
122
|
+
/**
|
|
123
|
+
* Parse and validate a Protocol V2 response frame.
|
|
124
|
+
*
|
|
125
|
+
* Validates:
|
|
126
|
+
* - SOF byte (0x5A)
|
|
127
|
+
* - Header CRC (bytes 0-2)
|
|
128
|
+
* - Frame CRC (full frame except last byte)
|
|
129
|
+
*
|
|
130
|
+
* Returns the decoded messageTypeId, raw protobuf payload, and sequence number.
|
|
131
|
+
*/
|
|
78
132
|
declare function decodeFrame(data: Uint8Array): ProtoV2Frame;
|
|
79
133
|
|
|
134
|
+
type ProtocolV2LinkErrorCode = 'response-timeout' | 'io' | 'generation' | 'router' | 'packet-source' | 'ack-sequence' | 'response-sequence' | 'frame';
|
|
135
|
+
declare class ProtocolV2LinkError extends Error {
|
|
136
|
+
readonly code: ProtocolV2LinkErrorCode;
|
|
137
|
+
readonly cause?: unknown;
|
|
138
|
+
constructor(code: ProtocolV2LinkErrorCode, message: string, cause?: unknown);
|
|
139
|
+
}
|
|
140
|
+
declare const isProtocolV2LinkError: (error: unknown) => error is ProtocolV2LinkError;
|
|
141
|
+
type ProtocolV2LinkDisabledError = Error & {
|
|
142
|
+
name: 'ProtocolV2LinkDisabledError';
|
|
143
|
+
failureCode: string | number;
|
|
144
|
+
firmwareMessage: string;
|
|
145
|
+
};
|
|
146
|
+
declare const createProtocolV2LinkDisabledError: (failureCode: string | number, firmwareMessage: string) => ProtocolV2LinkDisabledError;
|
|
147
|
+
declare const isProtocolV2LinkDisabledError: (error: unknown) => error is ProtocolV2LinkDisabledError;
|
|
148
|
+
declare const isProtocolV2LinkDisabledFailure: (failureCode: unknown, firmwareMessage: unknown) => boolean;
|
|
149
|
+
|
|
80
150
|
declare function concatUint8Arrays(arrays: Uint8Array[]): Uint8Array;
|
|
81
151
|
declare class ProtocolV2FrameAssembler {
|
|
82
152
|
private buffer;
|
|
@@ -84,11 +154,31 @@ declare class ProtocolV2FrameAssembler {
|
|
|
84
154
|
constructor(maxFrameBytes?: number);
|
|
85
155
|
reset(): void;
|
|
86
156
|
push(chunk: Uint8Array): Uint8Array | undefined;
|
|
157
|
+
/**
|
|
158
|
+
* Append a chunk (optional) and extract every complete frame currently
|
|
159
|
+
* buffered. Same validation/throw semantics as push(); push() stays
|
|
160
|
+
* backward compatible for callers that drain one frame at a time.
|
|
161
|
+
*/
|
|
87
162
|
drain(chunk?: Uint8Array): Uint8Array[];
|
|
88
163
|
private append;
|
|
89
164
|
private extractFrame;
|
|
90
165
|
}
|
|
91
166
|
|
|
167
|
+
type ProtocolV2BleFrameWriterOptions = {
|
|
168
|
+
frame: Uint8Array;
|
|
169
|
+
packetCapacity: number;
|
|
170
|
+
writePacket: (packet: Uint8Array, packetIndex: number) => Promise<void>;
|
|
171
|
+
assertActive?: () => void;
|
|
172
|
+
signal?: AbortSignal;
|
|
173
|
+
abortMessage?: string;
|
|
174
|
+
initialDelayMs?: number;
|
|
175
|
+
burstSize?: number;
|
|
176
|
+
burstPauseMs?: number;
|
|
177
|
+
flushDelayMs?: number;
|
|
178
|
+
wait?: (timeoutMs: number) => Promise<void>;
|
|
179
|
+
};
|
|
180
|
+
declare function writeProtocolV2BleFrame({ frame, packetCapacity, writePacket, assertActive, signal, abortMessage, initialDelayMs, burstSize, burstPauseMs, flushDelayMs, wait, }: ProtocolV2BleFrameWriterOptions): Promise<void>;
|
|
181
|
+
|
|
92
182
|
declare const protocolV2Codec_PROTO_HEAD_SOF: typeof PROTO_HEAD_SOF;
|
|
93
183
|
declare const protocolV2Codec_PROTO_PRE_HEAD_SIZE: typeof PROTO_PRE_HEAD_SIZE;
|
|
94
184
|
declare const protocolV2Codec_PROTO_HEAD_CRC_SIZE: typeof PROTO_HEAD_CRC_SIZE;
|
|
@@ -102,11 +192,23 @@ declare const protocolV2Codec_nextProtoSeq: typeof nextProtoSeq;
|
|
|
102
192
|
declare const protocolV2Codec_encodeFrame: typeof encodeFrame;
|
|
103
193
|
declare const protocolV2Codec_encodeProtobufFrame: typeof encodeProtobufFrame;
|
|
104
194
|
type protocolV2Codec_ProtoV2Frame = ProtoV2Frame;
|
|
195
|
+
type protocolV2Codec_ProtoV2FrameHeader = ProtoV2FrameHeader;
|
|
196
|
+
declare const protocolV2Codec_inspectFrameHeader: typeof inspectFrameHeader;
|
|
105
197
|
declare const protocolV2Codec_isAckFrame: typeof isAckFrame;
|
|
106
198
|
declare const protocolV2Codec_decodeFrame: typeof decodeFrame;
|
|
199
|
+
type protocolV2Codec_ProtocolV2LinkErrorCode = ProtocolV2LinkErrorCode;
|
|
200
|
+
type protocolV2Codec_ProtocolV2LinkError = ProtocolV2LinkError;
|
|
201
|
+
declare const protocolV2Codec_ProtocolV2LinkError: typeof ProtocolV2LinkError;
|
|
202
|
+
declare const protocolV2Codec_isProtocolV2LinkError: typeof isProtocolV2LinkError;
|
|
203
|
+
type protocolV2Codec_ProtocolV2LinkDisabledError = ProtocolV2LinkDisabledError;
|
|
204
|
+
declare const protocolV2Codec_createProtocolV2LinkDisabledError: typeof createProtocolV2LinkDisabledError;
|
|
205
|
+
declare const protocolV2Codec_isProtocolV2LinkDisabledError: typeof isProtocolV2LinkDisabledError;
|
|
206
|
+
declare const protocolV2Codec_isProtocolV2LinkDisabledFailure: typeof isProtocolV2LinkDisabledFailure;
|
|
107
207
|
declare const protocolV2Codec_concatUint8Arrays: typeof concatUint8Arrays;
|
|
108
208
|
type protocolV2Codec_ProtocolV2FrameAssembler = ProtocolV2FrameAssembler;
|
|
109
209
|
declare const protocolV2Codec_ProtocolV2FrameAssembler: typeof ProtocolV2FrameAssembler;
|
|
210
|
+
type protocolV2Codec_ProtocolV2BleFrameWriterOptions = ProtocolV2BleFrameWriterOptions;
|
|
211
|
+
declare const protocolV2Codec_writeProtocolV2BleFrame: typeof writeProtocolV2BleFrame;
|
|
110
212
|
declare namespace protocolV2Codec {
|
|
111
213
|
export {
|
|
112
214
|
protocolV2Codec_PROTO_HEAD_SOF as PROTO_HEAD_SOF,
|
|
@@ -122,10 +224,21 @@ declare namespace protocolV2Codec {
|
|
|
122
224
|
protocolV2Codec_encodeFrame as encodeFrame,
|
|
123
225
|
protocolV2Codec_encodeProtobufFrame as encodeProtobufFrame,
|
|
124
226
|
protocolV2Codec_ProtoV2Frame as ProtoV2Frame,
|
|
227
|
+
protocolV2Codec_ProtoV2FrameHeader as ProtoV2FrameHeader,
|
|
228
|
+
protocolV2Codec_inspectFrameHeader as inspectFrameHeader,
|
|
125
229
|
protocolV2Codec_isAckFrame as isAckFrame,
|
|
126
230
|
protocolV2Codec_decodeFrame as decodeFrame,
|
|
231
|
+
protocolV2Codec_ProtocolV2LinkErrorCode as ProtocolV2LinkErrorCode,
|
|
232
|
+
protocolV2Codec_ProtocolV2LinkError as ProtocolV2LinkError,
|
|
233
|
+
protocolV2Codec_isProtocolV2LinkError as isProtocolV2LinkError,
|
|
234
|
+
protocolV2Codec_ProtocolV2LinkDisabledError as ProtocolV2LinkDisabledError,
|
|
235
|
+
protocolV2Codec_createProtocolV2LinkDisabledError as createProtocolV2LinkDisabledError,
|
|
236
|
+
protocolV2Codec_isProtocolV2LinkDisabledError as isProtocolV2LinkDisabledError,
|
|
237
|
+
protocolV2Codec_isProtocolV2LinkDisabledFailure as isProtocolV2LinkDisabledFailure,
|
|
127
238
|
protocolV2Codec_concatUint8Arrays as concatUint8Arrays,
|
|
128
239
|
protocolV2Codec_ProtocolV2FrameAssembler as ProtocolV2FrameAssembler,
|
|
240
|
+
protocolV2Codec_ProtocolV2BleFrameWriterOptions as ProtocolV2BleFrameWriterOptions,
|
|
241
|
+
protocolV2Codec_writeProtocolV2BleFrame as writeProtocolV2BleFrame,
|
|
129
242
|
};
|
|
130
243
|
}
|
|
131
244
|
|
|
@@ -137,6 +250,7 @@ type ProtocolV2Schemas$1 = {
|
|
|
137
250
|
type ProtocolV2FrameOptions = {
|
|
138
251
|
packetSrc?: number;
|
|
139
252
|
router?: number;
|
|
253
|
+
/** Sequence number (1-255). Managed per-session by ProtocolV2Session. */
|
|
140
254
|
seq?: number;
|
|
141
255
|
};
|
|
142
256
|
declare const ProtocolV1: {
|
|
@@ -152,15 +266,31 @@ declare const ProtocolV1: {
|
|
|
152
266
|
};
|
|
153
267
|
declare const ProtocolV2: {
|
|
154
268
|
isAckFrame: typeof isAckFrame;
|
|
269
|
+
inspectFrameHeader: typeof inspectFrameHeader;
|
|
155
270
|
inspectFrame(schemas: ProtocolV2Schemas$1, frame: Uint8Array): {
|
|
156
271
|
messageName: string;
|
|
157
272
|
messageTypeId: number;
|
|
158
273
|
pbPayload: Uint8Array;
|
|
159
274
|
seq: number;
|
|
275
|
+
router: number;
|
|
276
|
+
packetSrc: number;
|
|
277
|
+
dataType: number;
|
|
160
278
|
type: string;
|
|
161
279
|
};
|
|
162
280
|
encodeFrame(schemas: ProtocolV2Schemas$1, name: string, data: Record<string, unknown>, options?: ProtocolV2FrameOptions): Uint8Array;
|
|
163
281
|
decodeFrame(schemas: ProtocolV2Schemas$1, frame: Uint8Array): {
|
|
282
|
+
message: {
|
|
283
|
+
version: any;
|
|
284
|
+
build_fingerprint: string;
|
|
285
|
+
supported_messages: any;
|
|
286
|
+
protobuf_definition: null;
|
|
287
|
+
};
|
|
288
|
+
messageName: string;
|
|
289
|
+
messageTypeId: number;
|
|
290
|
+
pbPayload: Uint8Array;
|
|
291
|
+
seq: number;
|
|
292
|
+
type: string;
|
|
293
|
+
} | {
|
|
164
294
|
message: {
|
|
165
295
|
[key: string]: any;
|
|
166
296
|
};
|
|
@@ -172,6 +302,14 @@ declare const ProtocolV2: {
|
|
|
172
302
|
};
|
|
173
303
|
};
|
|
174
304
|
|
|
305
|
+
declare const TRANSPORT_EVENT: {
|
|
306
|
+
readonly DEVICE_DISCONNECT: "transport-device-disconnect";
|
|
307
|
+
};
|
|
308
|
+
type TransportDeviceDisconnectEvent = {
|
|
309
|
+
id: string;
|
|
310
|
+
connectId: string;
|
|
311
|
+
name: string | null;
|
|
312
|
+
};
|
|
175
313
|
type ProtocolType = 'V1' | 'V2';
|
|
176
314
|
type OneKeyDeviceCommType = 'usb' | 'webusb' | 'ble' | 'webble' | 'electron-ble' | 'bridge' | 'emulator';
|
|
177
315
|
type OneKeyUsbDeviceInfo = {
|
|
@@ -198,23 +336,39 @@ type AcquireInput = {
|
|
|
198
336
|
uuid?: string;
|
|
199
337
|
forceCleanRunPromise?: boolean;
|
|
200
338
|
expectedProtocol?: ProtocolType;
|
|
339
|
+
protocolHint?: ProtocolType;
|
|
201
340
|
};
|
|
202
341
|
type MessageFromOneKey = {
|
|
203
342
|
type: string;
|
|
204
343
|
message: Record<string, any>;
|
|
205
344
|
};
|
|
345
|
+
type TransportWriteMetrics = {
|
|
346
|
+
elapsedMs: number;
|
|
347
|
+
frameBytes: number;
|
|
348
|
+
};
|
|
206
349
|
type TransportCallOptions = {
|
|
207
350
|
timeoutMs?: number;
|
|
208
351
|
expectedTypes?: string[];
|
|
209
352
|
intermediateTypes?: string[];
|
|
210
353
|
onIntermediateResponse?: (response: MessageFromOneKey) => void;
|
|
354
|
+
/** Called after the complete request frame has been submitted to the transport. */
|
|
355
|
+
onWriteCompleted?: (metrics: TransportWriteMetrics) => void;
|
|
356
|
+
/** Resolve after the complete request frame is written without waiting for a response. */
|
|
357
|
+
returnAfterWrite?: boolean;
|
|
358
|
+
/** Prefer acknowledged BLE characteristic writes for this call when supported. */
|
|
359
|
+
writeWithResponse?: boolean;
|
|
211
360
|
};
|
|
212
361
|
type ITransportInitFn = (logger?: any, emitter?: EventEmitter, plugin?: LowlevelTransportSharedPlugin) => Promise<string>;
|
|
213
362
|
type Transport = {
|
|
214
363
|
enumerate(): Promise<Array<OneKeyDeviceInfo>>;
|
|
215
364
|
listen(old?: Array<OneKeyDeviceInfo>): Promise<Array<OneKeyDeviceInfo>>;
|
|
216
365
|
acquire(input: AcquireInput): Promise<string>;
|
|
217
|
-
|
|
366
|
+
/**
|
|
367
|
+
* `keepSession` tells a transport that the caller intends to keep using this
|
|
368
|
+
* device across calls (firmware update, batched signing). Transports that
|
|
369
|
+
* hold the link open may use it to pick a longer idle window; the rest ignore it.
|
|
370
|
+
*/
|
|
371
|
+
release(session: string, onclose: boolean, keepSession?: boolean): Promise<void>;
|
|
218
372
|
configure(signedData: JSON | string): Promise<void>;
|
|
219
373
|
configureProtocolV2?: (signedData: JSON | string) => Promise<void> | void;
|
|
220
374
|
call(session: string, name: string, data: Record<string, any>, options?: TransportCallOptions): Promise<MessageFromOneKey>;
|
|
@@ -225,7 +379,7 @@ type Transport = {
|
|
|
225
379
|
getProtocolType: (path: string) => ProtocolType | undefined;
|
|
226
380
|
promptDeviceAccess?: () => Promise<USBDevice | BluetoothDevice | null>;
|
|
227
381
|
init: ITransportInitFn;
|
|
228
|
-
stop(): void
|
|
382
|
+
stop(): void | Promise<void>;
|
|
229
383
|
configured: boolean;
|
|
230
384
|
version: string;
|
|
231
385
|
name: string;
|
|
@@ -238,7 +392,9 @@ type LowLevelDevice = OneKeyDeviceInfoBase & {
|
|
|
238
392
|
};
|
|
239
393
|
type LowlevelTransportSharedPlugin = {
|
|
240
394
|
enumerate: () => Promise<LowLevelDevice[]>;
|
|
241
|
-
send: (uuid: string, data: string
|
|
395
|
+
send: (uuid: string, data: string, options?: {
|
|
396
|
+
withoutResponse?: boolean;
|
|
397
|
+
}) => Promise<void>;
|
|
242
398
|
receive: (uuid?: string) => Promise<string>;
|
|
243
399
|
connect: (uuid: string) => Promise<void>;
|
|
244
400
|
disconnect: (uuid: string) => Promise<void>;
|
|
@@ -1895,11 +2051,17 @@ type KaspaAddress = {
|
|
|
1895
2051
|
};
|
|
1896
2052
|
type KaspaSignTx = {
|
|
1897
2053
|
address_n: number[];
|
|
1898
|
-
raw_message
|
|
2054
|
+
raw_message?: string;
|
|
1899
2055
|
scheme?: string;
|
|
1900
2056
|
prefix?: string;
|
|
1901
2057
|
input_count?: number;
|
|
1902
2058
|
use_tweak?: boolean;
|
|
2059
|
+
output_count?: number;
|
|
2060
|
+
version?: number;
|
|
2061
|
+
lock_time?: number;
|
|
2062
|
+
subnetwork_id?: string;
|
|
2063
|
+
gas?: number;
|
|
2064
|
+
payload_length?: number;
|
|
1903
2065
|
};
|
|
1904
2066
|
type KaspaTxInputRequest = {
|
|
1905
2067
|
request_index: number;
|
|
@@ -1909,6 +2071,77 @@ type KaspaTxInputAck = {
|
|
|
1909
2071
|
address_n: number[];
|
|
1910
2072
|
raw_message: string;
|
|
1911
2073
|
};
|
|
2074
|
+
type KaspaOutpoint = {
|
|
2075
|
+
tx_id: string;
|
|
2076
|
+
index: number;
|
|
2077
|
+
};
|
|
2078
|
+
declare enum Enum_KaspaInputScriptType {
|
|
2079
|
+
KASPA_SPEND_P2PK_SCHNORR = 0,
|
|
2080
|
+
KASPA_SPEND_P2PK_ECDSA = 1
|
|
2081
|
+
}
|
|
2082
|
+
type KaspaInputScriptType = keyof typeof Enum_KaspaInputScriptType;
|
|
2083
|
+
declare enum Enum_KaspaOutputScriptType {
|
|
2084
|
+
KASPA_PAYTOADDRESS = 0,
|
|
2085
|
+
KASPA_PAYTOCHANGE = 1
|
|
2086
|
+
}
|
|
2087
|
+
type KaspaOutputScriptType = keyof typeof Enum_KaspaOutputScriptType;
|
|
2088
|
+
declare enum Enum_KaspaRequestType {
|
|
2089
|
+
KASPA_TX_INPUT = 0,
|
|
2090
|
+
KASPA_TX_OUTPUT = 1,
|
|
2091
|
+
KASPA_TX_PAYLOAD = 2,
|
|
2092
|
+
KASPA_TX_FINISHED = 3,
|
|
2093
|
+
KASPA_TX_PREV_META = 4
|
|
2094
|
+
}
|
|
2095
|
+
type KaspaRequestType = keyof typeof Enum_KaspaRequestType;
|
|
2096
|
+
type KaspaTxRequestSignature = {
|
|
2097
|
+
signature_index: number;
|
|
2098
|
+
signature: string;
|
|
2099
|
+
};
|
|
2100
|
+
type KaspaTxRequest = {
|
|
2101
|
+
request_type: KaspaRequestType;
|
|
2102
|
+
request_index?: number;
|
|
2103
|
+
signature?: KaspaTxRequestSignature;
|
|
2104
|
+
request_payload_length?: number;
|
|
2105
|
+
prev_tx_id?: string;
|
|
2106
|
+
};
|
|
2107
|
+
type KaspaTxAckInput = {
|
|
2108
|
+
address_n: number[];
|
|
2109
|
+
previous_outpoint: KaspaOutpoint;
|
|
2110
|
+
amount: UintType;
|
|
2111
|
+
sequence: number;
|
|
2112
|
+
sig_op_count: number;
|
|
2113
|
+
script_type?: KaspaInputScriptType;
|
|
2114
|
+
use_tweak?: boolean;
|
|
2115
|
+
};
|
|
2116
|
+
type KaspaTxAckOutput = {
|
|
2117
|
+
script_type?: KaspaOutputScriptType;
|
|
2118
|
+
amount: UintType;
|
|
2119
|
+
address_n: number[];
|
|
2120
|
+
address?: string;
|
|
2121
|
+
scheme?: string;
|
|
2122
|
+
use_tweak?: boolean;
|
|
2123
|
+
};
|
|
2124
|
+
type KaspaTxAckPayloadChunk = {
|
|
2125
|
+
payload_chunk: string;
|
|
2126
|
+
};
|
|
2127
|
+
type KaspaTxAckPrevMeta = {
|
|
2128
|
+
version: number;
|
|
2129
|
+
input_count: number;
|
|
2130
|
+
output_count: number;
|
|
2131
|
+
lock_time: number;
|
|
2132
|
+
subnetwork_id: string;
|
|
2133
|
+
gas: number;
|
|
2134
|
+
payload_length: number;
|
|
2135
|
+
};
|
|
2136
|
+
type KaspaTxAckPrevInput = {
|
|
2137
|
+
previous_outpoint: KaspaOutpoint;
|
|
2138
|
+
sequence: number;
|
|
2139
|
+
};
|
|
2140
|
+
type KaspaTxAckPrevOutput = {
|
|
2141
|
+
amount: UintType;
|
|
2142
|
+
script_version: number;
|
|
2143
|
+
script_public_key: string;
|
|
2144
|
+
};
|
|
1912
2145
|
type KaspaSignedTx = {
|
|
1913
2146
|
signature: string;
|
|
1914
2147
|
};
|
|
@@ -1935,7 +2168,7 @@ declare enum Enum_SafetyCheckLevel {
|
|
|
1935
2168
|
PromptAlways = 1,
|
|
1936
2169
|
PromptTemporarily = 2
|
|
1937
2170
|
}
|
|
1938
|
-
type SafetyCheckLevel = keyof typeof Enum_SafetyCheckLevel;
|
|
2171
|
+
type SafetyCheckLevel = keyof typeof Enum_SafetyCheckLevel | Enum_SafetyCheckLevel;
|
|
1939
2172
|
type Initialize = {
|
|
1940
2173
|
session_id?: string;
|
|
1941
2174
|
_skip_passphrase?: boolean;
|
|
@@ -2438,8 +2671,6 @@ type UnLockDeviceResponse = {
|
|
|
2438
2671
|
};
|
|
2439
2672
|
type GetPassphraseState = {
|
|
2440
2673
|
passphrase_state?: string;
|
|
2441
|
-
_only_main_pin?: boolean;
|
|
2442
|
-
allow_create_attach_pin?: boolean;
|
|
2443
2674
|
};
|
|
2444
2675
|
type PassphraseState = {
|
|
2445
2676
|
passphrase_state?: string;
|
|
@@ -3618,17 +3849,6 @@ type EthereumSignTypedDataQR = {
|
|
|
3618
3849
|
metamask_v4_compat?: boolean;
|
|
3619
3850
|
request_id?: string;
|
|
3620
3851
|
};
|
|
3621
|
-
type InternalMyAddressRequest = {
|
|
3622
|
-
coin_type: number;
|
|
3623
|
-
chain_id: number;
|
|
3624
|
-
account_index: number;
|
|
3625
|
-
derive_type: number;
|
|
3626
|
-
};
|
|
3627
|
-
type StartSession = {
|
|
3628
|
-
session_id?: string;
|
|
3629
|
-
_skip_passphrase?: boolean;
|
|
3630
|
-
derive_cardano?: boolean;
|
|
3631
|
-
};
|
|
3632
3852
|
type SetBusy = {
|
|
3633
3853
|
expiry_ms?: number;
|
|
3634
3854
|
};
|
|
@@ -3645,21 +3865,6 @@ type Nonce = {
|
|
|
3645
3865
|
type WriteSEPrivateKey = {
|
|
3646
3866
|
private_key: string;
|
|
3647
3867
|
};
|
|
3648
|
-
declare enum WallpaperTarget {
|
|
3649
|
-
Home = 0,
|
|
3650
|
-
Lock = 1
|
|
3651
|
-
}
|
|
3652
|
-
type SetWallpaper = {
|
|
3653
|
-
target: WallpaperTarget;
|
|
3654
|
-
path: string;
|
|
3655
|
-
};
|
|
3656
|
-
type GetWallpaper = {
|
|
3657
|
-
target: WallpaperTarget;
|
|
3658
|
-
};
|
|
3659
|
-
type Wallpaper = {
|
|
3660
|
-
target: WallpaperTarget;
|
|
3661
|
-
path: string;
|
|
3662
|
-
};
|
|
3663
3868
|
type UnlockPath = {
|
|
3664
3869
|
address_n: number[];
|
|
3665
3870
|
mac?: string;
|
|
@@ -3673,57 +3878,27 @@ declare enum MoneroNetworkType {
|
|
|
3673
3878
|
STAGENET = 2,
|
|
3674
3879
|
FAKECHAIN = 3
|
|
3675
3880
|
}
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
};
|
|
3680
|
-
type ViewDetail = {
|
|
3681
|
-
key: number;
|
|
3682
|
-
value: string;
|
|
3683
|
-
is_overview: boolean;
|
|
3684
|
-
has_icon: boolean;
|
|
3685
|
-
};
|
|
3686
|
-
declare enum ViewTipType {
|
|
3687
|
-
Default = 0,
|
|
3688
|
-
Highlight = 1,
|
|
3689
|
-
Recommend = 2,
|
|
3690
|
-
Warning = 3,
|
|
3691
|
-
Danger = 4
|
|
3881
|
+
declare enum UiAnimationType {
|
|
3882
|
+
Unknown = 0,
|
|
3883
|
+
Signing = 1
|
|
3692
3884
|
}
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
initial_data: string;
|
|
3699
|
-
placeholder: number;
|
|
3700
|
-
};
|
|
3701
|
-
declare enum ViewSignLayout {
|
|
3702
|
-
LayoutDefault = 0,
|
|
3703
|
-
LayoutSafeTxCreate = 1,
|
|
3704
|
-
LayoutFinalConfirm = 2,
|
|
3705
|
-
Layout7702 = 3,
|
|
3706
|
-
LayoutFlat = 4
|
|
3885
|
+
declare enum UiAnimationCommand {
|
|
3886
|
+
CommandUnknown = 0,
|
|
3887
|
+
Start = 1,
|
|
3888
|
+
Stop = 2,
|
|
3889
|
+
Refresh = 3
|
|
3707
3890
|
}
|
|
3708
|
-
type
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
general: ViewDetail[];
|
|
3712
|
-
tip?: ViewTip;
|
|
3713
|
-
raw_data?: ViewRawData;
|
|
3714
|
-
slide_to_confirm?: boolean;
|
|
3715
|
-
layout?: ViewSignLayout;
|
|
3891
|
+
type UiAnimationRequest = {
|
|
3892
|
+
command: UiAnimationCommand;
|
|
3893
|
+
type?: UiAnimationType;
|
|
3716
3894
|
};
|
|
3717
|
-
type
|
|
3718
|
-
|
|
3719
|
-
address: string;
|
|
3720
|
-
path: string;
|
|
3895
|
+
type ProtocolInfoRequest = {
|
|
3896
|
+
eventless_wallet_session?: boolean;
|
|
3721
3897
|
};
|
|
3722
|
-
type ProtocolInfoRequest = {};
|
|
3723
3898
|
type ProtocolInfo = {
|
|
3724
3899
|
version: number;
|
|
3900
|
+
build_fingerprint: string;
|
|
3725
3901
|
supported_messages: number[];
|
|
3726
|
-
protobuf_definition?: string;
|
|
3727
3902
|
};
|
|
3728
3903
|
declare enum DeviceErrorCode {
|
|
3729
3904
|
DeviceError_None = 0,
|
|
@@ -3746,23 +3921,22 @@ type DeviceReboot = {
|
|
|
3746
3921
|
reboot_type: DeviceRebootType;
|
|
3747
3922
|
};
|
|
3748
3923
|
type DeviceSettings = {
|
|
3749
|
-
label?: string;
|
|
3750
3924
|
bt_enable?: boolean;
|
|
3751
3925
|
language?: string;
|
|
3752
3926
|
wallpaper_path?: string;
|
|
3753
|
-
passphrase_enable?: boolean;
|
|
3754
3927
|
brightness?: number;
|
|
3755
|
-
autolock_delay_ms?: number;
|
|
3756
|
-
autoshutdown_delay_ms?: number;
|
|
3757
3928
|
animation_enable?: boolean;
|
|
3758
3929
|
tap_to_wake?: boolean;
|
|
3759
3930
|
haptic_feedback?: boolean;
|
|
3760
3931
|
device_name_display_enabled?: boolean;
|
|
3761
3932
|
airgap_mode?: boolean;
|
|
3762
|
-
fido_enabled?: boolean;
|
|
3763
|
-
experimental_features?: boolean;
|
|
3764
3933
|
usb_lock_enable?: boolean;
|
|
3765
3934
|
random_keypad?: boolean;
|
|
3935
|
+
passphrase_enable?: boolean;
|
|
3936
|
+
fido_enabled?: boolean;
|
|
3937
|
+
autolock_delay_ms?: number;
|
|
3938
|
+
autoshutdown_delay_ms?: number;
|
|
3939
|
+
label?: string;
|
|
3766
3940
|
};
|
|
3767
3941
|
type DeviceSettingsGet = {};
|
|
3768
3942
|
type DeviceSettingsSet = {
|
|
@@ -3792,6 +3966,39 @@ type DeviceCertificateSignature = {
|
|
|
3792
3966
|
type DeviceCertificateSign = {
|
|
3793
3967
|
data: string;
|
|
3794
3968
|
};
|
|
3969
|
+
type DeviceMiscUsbMscControl = {
|
|
3970
|
+
enable: boolean;
|
|
3971
|
+
};
|
|
3972
|
+
declare enum DeviceFactoryAck {
|
|
3973
|
+
FACTORY_ACK_SUCCESS = 0,
|
|
3974
|
+
FACTORY_ACK_FAIL = 1
|
|
3975
|
+
}
|
|
3976
|
+
type DeviceFactoryInfoManufactureTime = {
|
|
3977
|
+
year: number;
|
|
3978
|
+
month: number;
|
|
3979
|
+
day: number;
|
|
3980
|
+
hour: number;
|
|
3981
|
+
minute: number;
|
|
3982
|
+
second: number;
|
|
3983
|
+
};
|
|
3984
|
+
type DeviceFactoryInfo = {
|
|
3985
|
+
version?: number;
|
|
3986
|
+
serial_number?: string;
|
|
3987
|
+
factory_test_completed?: boolean;
|
|
3988
|
+
factory_burn_in_completed?: boolean;
|
|
3989
|
+
manufacture_time?: DeviceFactoryInfoManufactureTime;
|
|
3990
|
+
};
|
|
3991
|
+
type DeviceFactoryInfoSet = {
|
|
3992
|
+
info: DeviceFactoryInfo;
|
|
3993
|
+
};
|
|
3994
|
+
type DeviceFactoryInfoGet = {};
|
|
3995
|
+
type DeviceFactoryPermanentLock = {
|
|
3996
|
+
check_a: string;
|
|
3997
|
+
check_b: string;
|
|
3998
|
+
};
|
|
3999
|
+
type DeviceFactoryTest = {
|
|
4000
|
+
burn_in_test: boolean;
|
|
4001
|
+
};
|
|
3795
4002
|
declare enum DeviceFirmwareTargetType {
|
|
3796
4003
|
FW_MGMT_TARGET_INVALID = 0,
|
|
3797
4004
|
FW_MGMT_TARGET_CRATE = 1,
|
|
@@ -3822,9 +4029,10 @@ type DeviceFirmwareTarget = {
|
|
|
3822
4029
|
target_id: DeviceFirmwareTargetType;
|
|
3823
4030
|
path: string;
|
|
3824
4031
|
};
|
|
3825
|
-
type
|
|
4032
|
+
type DeviceFirmwareUpdateStage = {
|
|
3826
4033
|
targets: DeviceFirmwareTarget[];
|
|
3827
4034
|
};
|
|
4035
|
+
type DeviceFirmwareUpdateRequest = {};
|
|
3828
4036
|
type DeviceFirmwareUpdateRecord = {
|
|
3829
4037
|
target_id: DeviceFirmwareTargetType;
|
|
3830
4038
|
status?: DeviceFirmwareUpdateTaskStatus;
|
|
@@ -3842,36 +4050,6 @@ type DeviceFirmwareUpdateStatusGet = {
|
|
|
3842
4050
|
type DeviceFirmwareUpdateStatus = {
|
|
3843
4051
|
records: DeviceFirmwareUpdateRecord[];
|
|
3844
4052
|
};
|
|
3845
|
-
declare enum DeviceFactoryAck {
|
|
3846
|
-
FACTORY_ACK_SUCCESS = 0,
|
|
3847
|
-
FACTORY_ACK_FAIL = 1
|
|
3848
|
-
}
|
|
3849
|
-
type DeviceFactoryInfoManufactureTime = {
|
|
3850
|
-
year: number;
|
|
3851
|
-
month: number;
|
|
3852
|
-
day: number;
|
|
3853
|
-
hour: number;
|
|
3854
|
-
minute: number;
|
|
3855
|
-
second: number;
|
|
3856
|
-
};
|
|
3857
|
-
type DeviceFactoryInfo = {
|
|
3858
|
-
version?: number;
|
|
3859
|
-
serial_number?: string;
|
|
3860
|
-
burn_in_completed?: boolean;
|
|
3861
|
-
factory_test_completed?: boolean;
|
|
3862
|
-
manufacture_time?: DeviceFactoryInfoManufactureTime;
|
|
3863
|
-
};
|
|
3864
|
-
type DeviceFactoryInfoSet = {
|
|
3865
|
-
info: DeviceFactoryInfo;
|
|
3866
|
-
};
|
|
3867
|
-
type DeviceFactoryInfoGet = {};
|
|
3868
|
-
type DeviceFactoryPermanentLock = {
|
|
3869
|
-
check_a: string;
|
|
3870
|
-
check_b: string;
|
|
3871
|
-
};
|
|
3872
|
-
type DeviceFactoryTest = {
|
|
3873
|
-
burn_in_test: boolean;
|
|
3874
|
-
};
|
|
3875
4053
|
declare enum DeviceType {
|
|
3876
4054
|
CLASSIC1 = 0,
|
|
3877
4055
|
CLASSIC1S = 1,
|
|
@@ -3922,13 +4100,12 @@ type DeviceSEInfo = {
|
|
|
3922
4100
|
};
|
|
3923
4101
|
type DeviceInfoTargets = {
|
|
3924
4102
|
hw?: boolean;
|
|
3925
|
-
|
|
4103
|
+
main_mcu?: boolean;
|
|
3926
4104
|
coprocessor?: boolean;
|
|
3927
4105
|
se1?: boolean;
|
|
3928
4106
|
se2?: boolean;
|
|
3929
4107
|
se3?: boolean;
|
|
3930
4108
|
se4?: boolean;
|
|
3931
|
-
status?: boolean;
|
|
3932
4109
|
};
|
|
3933
4110
|
type DeviceInfoTypes = {
|
|
3934
4111
|
version?: boolean;
|
|
@@ -3943,22 +4120,46 @@ type DeviceInfoGet = {
|
|
|
3943
4120
|
type ProtocolV2DeviceInfo = {
|
|
3944
4121
|
protocol_version: number;
|
|
3945
4122
|
hw?: DeviceHardwareInfo;
|
|
3946
|
-
|
|
4123
|
+
main_mcu?: DeviceMainMcuInfo;
|
|
3947
4124
|
coprocessor?: DeviceCoprocessorInfo;
|
|
3948
4125
|
se1?: DeviceSEInfo;
|
|
3949
4126
|
se2?: DeviceSEInfo;
|
|
3950
4127
|
se3?: DeviceSEInfo;
|
|
3951
4128
|
se4?: DeviceSEInfo;
|
|
3952
|
-
status?: DeviceStatus;
|
|
3953
4129
|
};
|
|
4130
|
+
declare enum DeviceSessionErrorCode {
|
|
4131
|
+
DeviceSessionError_None = 0,
|
|
4132
|
+
DeviceSessionError_UserCancelled = 1,
|
|
4133
|
+
DeviceSessionError_InvalidSession = 2,
|
|
4134
|
+
DeviceSessionError_AttachPinUnavailable = 3,
|
|
4135
|
+
DeviceSessionError_PassphraseDisabled = 4,
|
|
4136
|
+
DeviceSessionError_Busy = 5
|
|
4137
|
+
}
|
|
4138
|
+
declare enum DeviceSessionSeedDomain {
|
|
4139
|
+
SeedDomain_Standard = 1,
|
|
4140
|
+
SeedDomain_Cardano = 2
|
|
4141
|
+
}
|
|
3954
4142
|
type DeviceSessionGet = {
|
|
3955
4143
|
session_id?: string;
|
|
4144
|
+
btc_test_address?: string;
|
|
4145
|
+
seed_domains: DeviceSessionSeedDomain[];
|
|
3956
4146
|
};
|
|
3957
4147
|
type DeviceSession = {
|
|
3958
4148
|
session_id?: string;
|
|
3959
4149
|
btc_test_address?: string;
|
|
3960
4150
|
};
|
|
3961
|
-
|
|
4151
|
+
declare enum DeviceSessionPinType {
|
|
4152
|
+
Any = 1,
|
|
4153
|
+
Main = 2,
|
|
4154
|
+
AttachToPin = 3
|
|
4155
|
+
}
|
|
4156
|
+
type DeviceSessionAskPin = {
|
|
4157
|
+
type?: DeviceSessionPinType;
|
|
4158
|
+
};
|
|
4159
|
+
type DeviceSessionAskPassphrase = {
|
|
4160
|
+
passphrase?: string;
|
|
4161
|
+
on_device: boolean;
|
|
4162
|
+
};
|
|
3962
4163
|
declare enum DeviceSessionAskPin_FailureSubCodes {
|
|
3963
4164
|
UserCancel = 1
|
|
3964
4165
|
}
|
|
@@ -3972,27 +4173,6 @@ type DeviceStatus = {
|
|
|
3972
4173
|
unlocked_by_attach_to_pin?: boolean;
|
|
3973
4174
|
};
|
|
3974
4175
|
type DeviceStatusGet = {};
|
|
3975
|
-
declare enum DevOnboardingStage {
|
|
3976
|
-
DEV_ONBOARDING_STAGE_UNKNOWN = 0,
|
|
3977
|
-
DEV_ONBOARDING_STAGE_SAFETY_CHECK = 1,
|
|
3978
|
-
DEV_ONBOARDING_STAGE_PERSONALIZATION = 2,
|
|
3979
|
-
DEV_ONBOARDING_STAGE_SELECT_SETUP_METHOD = 3,
|
|
3980
|
-
DEV_ONBOARDING_STAGE_NEW_DEVICE = 4,
|
|
3981
|
-
DEV_ONBOARDING_STAGE_SELECT_RESTORE_METHOD = 5,
|
|
3982
|
-
DEV_ONBOARDING_STAGE_RESTORE_MNEMONIC = 6,
|
|
3983
|
-
DEV_ONBOARDING_STAGE_RESTORE_SEEDCARD = 7,
|
|
3984
|
-
DEV_ONBOARDING_STAGE_WALLET_READY = 8,
|
|
3985
|
-
DEV_ONBOARDING_STAGE_SEEDCARD_BACKUP_PROMPT = 9,
|
|
3986
|
-
DEV_ONBOARDING_STAGE_SELECT_SEEDCARD_BACKUP_METHOD = 10,
|
|
3987
|
-
DEV_ONBOARDING_STAGE_SEEDCARD_BACKUP = 11,
|
|
3988
|
-
DEV_ONBOARDING_STAGE_DONE = 12
|
|
3989
|
-
}
|
|
3990
|
-
type DevGetOnboardingStatus = {};
|
|
3991
|
-
type DevOnboardingStatus = {
|
|
3992
|
-
stage: DevOnboardingStage;
|
|
3993
|
-
status_code?: number;
|
|
3994
|
-
detail_code?: number;
|
|
3995
|
-
};
|
|
3996
4176
|
type FilesystemPermissionFix = {};
|
|
3997
4177
|
type FilesystemPathInfo = {
|
|
3998
4178
|
exist: boolean;
|
|
@@ -4053,7 +4233,117 @@ type FilesystemFormat = {
|
|
|
4053
4233
|
data: boolean;
|
|
4054
4234
|
user: boolean;
|
|
4055
4235
|
};
|
|
4236
|
+
type InternalMyAddressRequest = {
|
|
4237
|
+
coin_type: number;
|
|
4238
|
+
chain_id: number;
|
|
4239
|
+
account_index: number;
|
|
4240
|
+
derive_type: number;
|
|
4241
|
+
};
|
|
4242
|
+
type NftUpdate = {
|
|
4243
|
+
file_name_no_ext: string;
|
|
4244
|
+
};
|
|
4245
|
+
declare enum OnboardingStep {
|
|
4246
|
+
ONBOARDING_STEP_UNKNOWN = 0,
|
|
4247
|
+
ONBOARDING_STEP_CHECKING = 1,
|
|
4248
|
+
ONBOARDING_STEP_PERSONALIZATION = 2,
|
|
4249
|
+
ONBOARDING_STEP_PIN = 3,
|
|
4250
|
+
ONBOARDING_STEP_SETUP = 4,
|
|
4251
|
+
ONBOARDING_STEP_DONE = 5
|
|
4252
|
+
}
|
|
4253
|
+
declare enum OnboardingPhase {
|
|
4254
|
+
ONBOARDING_PHASE_UNKNOWN = 0,
|
|
4255
|
+
ONBOARDING_PHASE_SAFETY_CHECK = 1,
|
|
4256
|
+
ONBOARDING_PHASE_PIN_SETUP = 2,
|
|
4257
|
+
ONBOARDING_PHASE_FINGERPRINT_SETUP = 3,
|
|
4258
|
+
ONBOARDING_PHASE_SETUP_CHOICE = 4,
|
|
4259
|
+
ONBOARDING_PHASE_WALLET_CREATE_START = 5,
|
|
4260
|
+
ONBOARDING_PHASE_RECOVERY_PHRASE_VIEW = 6,
|
|
4261
|
+
ONBOARDING_PHASE_RECOVERY_PHRASE_CONFIRM = 7,
|
|
4262
|
+
ONBOARDING_PHASE_RESTORE_METHOD_CHOICE = 8,
|
|
4263
|
+
ONBOARDING_PHASE_RECOVERY_PHRASE_RESTORE = 9,
|
|
4264
|
+
ONBOARDING_PHASE_SEEDCARD_RESTORE = 10,
|
|
4265
|
+
ONBOARDING_PHASE_WALLET_READY = 11,
|
|
4266
|
+
ONBOARDING_PHASE_SEEDCARD_BACKUP_PROMPT = 12,
|
|
4267
|
+
ONBOARDING_PHASE_SEEDCARD_BACKUP = 13
|
|
4268
|
+
}
|
|
4269
|
+
declare enum OnboardingSetupKind {
|
|
4270
|
+
ONBOARDING_SETUP_KIND_UNKNOWN = 0,
|
|
4271
|
+
ONBOARDING_SETUP_KIND_CHOICE = 1,
|
|
4272
|
+
ONBOARDING_SETUP_KIND_CREATE = 2,
|
|
4273
|
+
ONBOARDING_SETUP_KIND_RESTORE = 3
|
|
4274
|
+
}
|
|
4275
|
+
declare enum OnboardingSetupMethod {
|
|
4276
|
+
ONBOARDING_SETUP_METHOD_UNKNOWN = 0,
|
|
4277
|
+
ONBOARDING_SETUP_METHOD_RECOVERY_PHRASE = 1,
|
|
4278
|
+
ONBOARDING_SETUP_METHOD_SEEDCARD = 2
|
|
4279
|
+
}
|
|
4280
|
+
type OnboardingSetupStatus = {
|
|
4281
|
+
kind?: OnboardingSetupKind;
|
|
4282
|
+
method?: OnboardingSetupMethod;
|
|
4283
|
+
};
|
|
4284
|
+
type OnboardingStatusGet = {};
|
|
4285
|
+
type OnboardingStatus = {
|
|
4286
|
+
step?: OnboardingStep;
|
|
4287
|
+
phase?: OnboardingPhase;
|
|
4288
|
+
setup?: OnboardingSetupStatus;
|
|
4289
|
+
pin_set?: boolean;
|
|
4290
|
+
wallet_initialized?: boolean;
|
|
4291
|
+
};
|
|
4056
4292
|
type PortfolioUpdate = {};
|
|
4293
|
+
type ViewAmount = {
|
|
4294
|
+
is_unlimited: boolean;
|
|
4295
|
+
num: string;
|
|
4296
|
+
};
|
|
4297
|
+
type ViewDetail = {
|
|
4298
|
+
key: number;
|
|
4299
|
+
value: string;
|
|
4300
|
+
is_overview: boolean;
|
|
4301
|
+
has_icon: boolean;
|
|
4302
|
+
};
|
|
4303
|
+
declare enum ViewTipType {
|
|
4304
|
+
Default = 0,
|
|
4305
|
+
Highlight = 1,
|
|
4306
|
+
Recommend = 2,
|
|
4307
|
+
Warning = 3,
|
|
4308
|
+
Danger = 4
|
|
4309
|
+
}
|
|
4310
|
+
type ViewTip = {
|
|
4311
|
+
type: ViewTipType;
|
|
4312
|
+
text?: string;
|
|
4313
|
+
text_id?: number;
|
|
4314
|
+
};
|
|
4315
|
+
type ViewRawData = {
|
|
4316
|
+
initial_data: string;
|
|
4317
|
+
placeholder: number;
|
|
4318
|
+
};
|
|
4319
|
+
declare enum ViewSignLayout {
|
|
4320
|
+
LayoutDefault = 0,
|
|
4321
|
+
LayoutSafeTxCreate = 1,
|
|
4322
|
+
LayoutFinalConfirm = 2,
|
|
4323
|
+
Layout7702 = 3,
|
|
4324
|
+
LayoutFlat = 4,
|
|
4325
|
+
LayoutEthApprove = 5
|
|
4326
|
+
}
|
|
4327
|
+
type ViewSignPage = {
|
|
4328
|
+
title?: string;
|
|
4329
|
+
amount?: UintType;
|
|
4330
|
+
general: ViewDetail[];
|
|
4331
|
+
tip?: ViewTip;
|
|
4332
|
+
raw_data?: ViewRawData;
|
|
4333
|
+
slide_to_confirm?: boolean;
|
|
4334
|
+
layout?: ViewSignLayout;
|
|
4335
|
+
title_id?: number;
|
|
4336
|
+
};
|
|
4337
|
+
type ViewVerifyPage = {
|
|
4338
|
+
title?: string;
|
|
4339
|
+
address: string;
|
|
4340
|
+
path: string;
|
|
4341
|
+
network?: string;
|
|
4342
|
+
derive_type?: string;
|
|
4343
|
+
value_key?: number;
|
|
4344
|
+
title_id?: number;
|
|
4345
|
+
chain_id?: number;
|
|
4346
|
+
};
|
|
4057
4347
|
declare enum ProtocolV2FailureType {
|
|
4058
4348
|
Failure_InvalidMessage = 1,
|
|
4059
4349
|
Failure_UndefinedError = 2,
|
|
@@ -4357,6 +4647,15 @@ type MessageType = {
|
|
|
4357
4647
|
KaspaSignTx: KaspaSignTx;
|
|
4358
4648
|
KaspaTxInputRequest: KaspaTxInputRequest;
|
|
4359
4649
|
KaspaTxInputAck: KaspaTxInputAck;
|
|
4650
|
+
KaspaOutpoint: KaspaOutpoint;
|
|
4651
|
+
KaspaTxRequestSignature: KaspaTxRequestSignature;
|
|
4652
|
+
KaspaTxRequest: KaspaTxRequest;
|
|
4653
|
+
KaspaTxAckInput: KaspaTxAckInput;
|
|
4654
|
+
KaspaTxAckOutput: KaspaTxAckOutput;
|
|
4655
|
+
KaspaTxAckPayloadChunk: KaspaTxAckPayloadChunk;
|
|
4656
|
+
KaspaTxAckPrevMeta: KaspaTxAckPrevMeta;
|
|
4657
|
+
KaspaTxAckPrevInput: KaspaTxAckPrevInput;
|
|
4658
|
+
KaspaTxAckPrevOutput: KaspaTxAckPrevOutput;
|
|
4360
4659
|
KaspaSignedTx: KaspaSignedTx;
|
|
4361
4660
|
LnurlAuth: LnurlAuth;
|
|
4362
4661
|
LnurlAuthResp: LnurlAuthResp;
|
|
@@ -4647,25 +4946,15 @@ type MessageType = {
|
|
|
4647
4946
|
PaymentRequestMemo: PaymentRequestMemo;
|
|
4648
4947
|
TxAckPaymentRequest: TxAckPaymentRequest;
|
|
4649
4948
|
EthereumSignTypedDataQR: EthereumSignTypedDataQR;
|
|
4650
|
-
InternalMyAddressRequest: InternalMyAddressRequest;
|
|
4651
|
-
StartSession: StartSession;
|
|
4652
4949
|
SetBusy: SetBusy;
|
|
4653
4950
|
GetFirmwareHash: GetFirmwareHash;
|
|
4654
4951
|
FirmwareHash: FirmwareHash;
|
|
4655
4952
|
GetNonce: GetNonce;
|
|
4656
4953
|
Nonce: Nonce;
|
|
4657
4954
|
WriteSEPrivateKey: WriteSEPrivateKey;
|
|
4658
|
-
SetWallpaper: SetWallpaper;
|
|
4659
|
-
GetWallpaper: GetWallpaper;
|
|
4660
|
-
Wallpaper: Wallpaper;
|
|
4661
4955
|
UnlockPath: UnlockPath;
|
|
4662
4956
|
UnlockedPathRequest: UnlockedPathRequest;
|
|
4663
|
-
|
|
4664
|
-
ViewDetail: ViewDetail;
|
|
4665
|
-
ViewTip: ViewTip;
|
|
4666
|
-
ViewRawData: ViewRawData;
|
|
4667
|
-
ViewSignPage: ViewSignPage;
|
|
4668
|
-
ViewVerifyPage: ViewVerifyPage;
|
|
4957
|
+
UiAnimationRequest: UiAnimationRequest;
|
|
4669
4958
|
ProtocolInfoRequest: ProtocolInfoRequest;
|
|
4670
4959
|
ProtocolInfo: ProtocolInfo;
|
|
4671
4960
|
DeviceReboot: DeviceReboot;
|
|
@@ -4678,18 +4967,20 @@ type MessageType = {
|
|
|
4678
4967
|
DeviceCertificateRead: DeviceCertificateRead;
|
|
4679
4968
|
DeviceCertificateSignature: DeviceCertificateSignature;
|
|
4680
4969
|
DeviceCertificateSign: DeviceCertificateSign;
|
|
4681
|
-
|
|
4682
|
-
DeviceFirmwareUpdateRequest: DeviceFirmwareUpdateRequest;
|
|
4683
|
-
DeviceFirmwareUpdateRecord: DeviceFirmwareUpdateRecord;
|
|
4684
|
-
DeviceFirmwareUpdateRecordFields: DeviceFirmwareUpdateRecordFields;
|
|
4685
|
-
DeviceFirmwareUpdateStatusGet: DeviceFirmwareUpdateStatusGet;
|
|
4686
|
-
DeviceFirmwareUpdateStatus: DeviceFirmwareUpdateStatus;
|
|
4970
|
+
DeviceMiscUsbMscControl: DeviceMiscUsbMscControl;
|
|
4687
4971
|
DeviceFactoryInfoManufactureTime: DeviceFactoryInfoManufactureTime;
|
|
4688
4972
|
DeviceFactoryInfo: DeviceFactoryInfo;
|
|
4689
4973
|
DeviceFactoryInfoSet: DeviceFactoryInfoSet;
|
|
4690
4974
|
DeviceFactoryInfoGet: DeviceFactoryInfoGet;
|
|
4691
4975
|
DeviceFactoryPermanentLock: DeviceFactoryPermanentLock;
|
|
4692
4976
|
DeviceFactoryTest: DeviceFactoryTest;
|
|
4977
|
+
DeviceFirmwareTarget: DeviceFirmwareTarget;
|
|
4978
|
+
DeviceFirmwareUpdateStage: DeviceFirmwareUpdateStage;
|
|
4979
|
+
DeviceFirmwareUpdateRequest: DeviceFirmwareUpdateRequest;
|
|
4980
|
+
DeviceFirmwareUpdateRecord: DeviceFirmwareUpdateRecord;
|
|
4981
|
+
DeviceFirmwareUpdateRecordFields: DeviceFirmwareUpdateRecordFields;
|
|
4982
|
+
DeviceFirmwareUpdateStatusGet: DeviceFirmwareUpdateStatusGet;
|
|
4983
|
+
DeviceFirmwareUpdateStatus: DeviceFirmwareUpdateStatus;
|
|
4693
4984
|
DeviceFirmwareImageInfo: DeviceFirmwareImageInfo;
|
|
4694
4985
|
DeviceHardwareInfo: DeviceHardwareInfo;
|
|
4695
4986
|
DeviceMainMcuInfo: DeviceMainMcuInfo;
|
|
@@ -4701,10 +4992,9 @@ type MessageType = {
|
|
|
4701
4992
|
DeviceSessionGet: DeviceSessionGet;
|
|
4702
4993
|
DeviceSession: DeviceSession;
|
|
4703
4994
|
DeviceSessionAskPin: DeviceSessionAskPin;
|
|
4995
|
+
DeviceSessionAskPassphrase: DeviceSessionAskPassphrase;
|
|
4704
4996
|
DeviceStatus: DeviceStatus;
|
|
4705
4997
|
DeviceStatusGet: DeviceStatusGet;
|
|
4706
|
-
DevGetOnboardingStatus: DevGetOnboardingStatus;
|
|
4707
|
-
DevOnboardingStatus: DevOnboardingStatus;
|
|
4708
4998
|
FilesystemPermissionFix: FilesystemPermissionFix;
|
|
4709
4999
|
FilesystemPathInfo: FilesystemPathInfo;
|
|
4710
5000
|
FilesystemPathInfoQuery: FilesystemPathInfoQuery;
|
|
@@ -4717,7 +5007,18 @@ type MessageType = {
|
|
|
4717
5007
|
FilesystemDirMake: FilesystemDirMake;
|
|
4718
5008
|
FilesystemDirRemove: FilesystemDirRemove;
|
|
4719
5009
|
FilesystemFormat: FilesystemFormat;
|
|
5010
|
+
InternalMyAddressRequest: InternalMyAddressRequest;
|
|
5011
|
+
NftUpdate: NftUpdate;
|
|
5012
|
+
OnboardingSetupStatus: OnboardingSetupStatus;
|
|
5013
|
+
OnboardingStatusGet: OnboardingStatusGet;
|
|
5014
|
+
OnboardingStatus: OnboardingStatus;
|
|
4720
5015
|
PortfolioUpdate: PortfolioUpdate;
|
|
5016
|
+
ViewAmount: ViewAmount;
|
|
5017
|
+
ViewDetail: ViewDetail;
|
|
5018
|
+
ViewTip: ViewTip;
|
|
5019
|
+
ViewRawData: ViewRawData;
|
|
5020
|
+
ViewSignPage: ViewSignPage;
|
|
5021
|
+
ViewVerifyPage: ViewVerifyPage;
|
|
4721
5022
|
};
|
|
4722
5023
|
type MessageKey = keyof MessageType;
|
|
4723
5024
|
type MessageResponse<T extends MessageKey> = {
|
|
@@ -5074,6 +5375,24 @@ type messages_KaspaAddress = KaspaAddress;
|
|
|
5074
5375
|
type messages_KaspaSignTx = KaspaSignTx;
|
|
5075
5376
|
type messages_KaspaTxInputRequest = KaspaTxInputRequest;
|
|
5076
5377
|
type messages_KaspaTxInputAck = KaspaTxInputAck;
|
|
5378
|
+
type messages_KaspaOutpoint = KaspaOutpoint;
|
|
5379
|
+
type messages_Enum_KaspaInputScriptType = Enum_KaspaInputScriptType;
|
|
5380
|
+
declare const messages_Enum_KaspaInputScriptType: typeof Enum_KaspaInputScriptType;
|
|
5381
|
+
type messages_KaspaInputScriptType = KaspaInputScriptType;
|
|
5382
|
+
type messages_Enum_KaspaOutputScriptType = Enum_KaspaOutputScriptType;
|
|
5383
|
+
declare const messages_Enum_KaspaOutputScriptType: typeof Enum_KaspaOutputScriptType;
|
|
5384
|
+
type messages_KaspaOutputScriptType = KaspaOutputScriptType;
|
|
5385
|
+
type messages_Enum_KaspaRequestType = Enum_KaspaRequestType;
|
|
5386
|
+
declare const messages_Enum_KaspaRequestType: typeof Enum_KaspaRequestType;
|
|
5387
|
+
type messages_KaspaRequestType = KaspaRequestType;
|
|
5388
|
+
type messages_KaspaTxRequestSignature = KaspaTxRequestSignature;
|
|
5389
|
+
type messages_KaspaTxRequest = KaspaTxRequest;
|
|
5390
|
+
type messages_KaspaTxAckInput = KaspaTxAckInput;
|
|
5391
|
+
type messages_KaspaTxAckOutput = KaspaTxAckOutput;
|
|
5392
|
+
type messages_KaspaTxAckPayloadChunk = KaspaTxAckPayloadChunk;
|
|
5393
|
+
type messages_KaspaTxAckPrevMeta = KaspaTxAckPrevMeta;
|
|
5394
|
+
type messages_KaspaTxAckPrevInput = KaspaTxAckPrevInput;
|
|
5395
|
+
type messages_KaspaTxAckPrevOutput = KaspaTxAckPrevOutput;
|
|
5077
5396
|
type messages_KaspaSignedTx = KaspaSignedTx;
|
|
5078
5397
|
type messages_LnurlAuth = LnurlAuth;
|
|
5079
5398
|
type messages_LnurlAuthResp = LnurlAuthResp;
|
|
@@ -5430,33 +5749,21 @@ type messages_CoinPurchaseMemo = CoinPurchaseMemo;
|
|
|
5430
5749
|
type messages_PaymentRequestMemo = PaymentRequestMemo;
|
|
5431
5750
|
type messages_TxAckPaymentRequest = TxAckPaymentRequest;
|
|
5432
5751
|
type messages_EthereumSignTypedDataQR = EthereumSignTypedDataQR;
|
|
5433
|
-
type messages_InternalMyAddressRequest = InternalMyAddressRequest;
|
|
5434
|
-
type messages_StartSession = StartSession;
|
|
5435
5752
|
type messages_SetBusy = SetBusy;
|
|
5436
5753
|
type messages_GetFirmwareHash = GetFirmwareHash;
|
|
5437
5754
|
type messages_FirmwareHash = FirmwareHash;
|
|
5438
5755
|
type messages_GetNonce = GetNonce;
|
|
5439
5756
|
type messages_Nonce = Nonce;
|
|
5440
5757
|
type messages_WriteSEPrivateKey = WriteSEPrivateKey;
|
|
5441
|
-
type messages_WallpaperTarget = WallpaperTarget;
|
|
5442
|
-
declare const messages_WallpaperTarget: typeof WallpaperTarget;
|
|
5443
|
-
type messages_SetWallpaper = SetWallpaper;
|
|
5444
|
-
type messages_GetWallpaper = GetWallpaper;
|
|
5445
|
-
type messages_Wallpaper = Wallpaper;
|
|
5446
5758
|
type messages_UnlockPath = UnlockPath;
|
|
5447
5759
|
type messages_UnlockedPathRequest = UnlockedPathRequest;
|
|
5448
5760
|
type messages_MoneroNetworkType = MoneroNetworkType;
|
|
5449
5761
|
declare const messages_MoneroNetworkType: typeof MoneroNetworkType;
|
|
5450
|
-
type
|
|
5451
|
-
|
|
5452
|
-
type
|
|
5453
|
-
declare const
|
|
5454
|
-
type
|
|
5455
|
-
type messages_ViewRawData = ViewRawData;
|
|
5456
|
-
type messages_ViewSignLayout = ViewSignLayout;
|
|
5457
|
-
declare const messages_ViewSignLayout: typeof ViewSignLayout;
|
|
5458
|
-
type messages_ViewSignPage = ViewSignPage;
|
|
5459
|
-
type messages_ViewVerifyPage = ViewVerifyPage;
|
|
5762
|
+
type messages_UiAnimationType = UiAnimationType;
|
|
5763
|
+
declare const messages_UiAnimationType: typeof UiAnimationType;
|
|
5764
|
+
type messages_UiAnimationCommand = UiAnimationCommand;
|
|
5765
|
+
declare const messages_UiAnimationCommand: typeof UiAnimationCommand;
|
|
5766
|
+
type messages_UiAnimationRequest = UiAnimationRequest;
|
|
5460
5767
|
type messages_ProtocolInfoRequest = ProtocolInfoRequest;
|
|
5461
5768
|
type messages_ProtocolInfo = ProtocolInfo;
|
|
5462
5769
|
type messages_DeviceErrorCode = DeviceErrorCode;
|
|
@@ -5475,24 +5782,26 @@ type messages_DeviceCertificateWrite = DeviceCertificateWrite;
|
|
|
5475
5782
|
type messages_DeviceCertificateRead = DeviceCertificateRead;
|
|
5476
5783
|
type messages_DeviceCertificateSignature = DeviceCertificateSignature;
|
|
5477
5784
|
type messages_DeviceCertificateSign = DeviceCertificateSign;
|
|
5785
|
+
type messages_DeviceMiscUsbMscControl = DeviceMiscUsbMscControl;
|
|
5786
|
+
type messages_DeviceFactoryAck = DeviceFactoryAck;
|
|
5787
|
+
declare const messages_DeviceFactoryAck: typeof DeviceFactoryAck;
|
|
5788
|
+
type messages_DeviceFactoryInfoManufactureTime = DeviceFactoryInfoManufactureTime;
|
|
5789
|
+
type messages_DeviceFactoryInfo = DeviceFactoryInfo;
|
|
5790
|
+
type messages_DeviceFactoryInfoSet = DeviceFactoryInfoSet;
|
|
5791
|
+
type messages_DeviceFactoryInfoGet = DeviceFactoryInfoGet;
|
|
5792
|
+
type messages_DeviceFactoryPermanentLock = DeviceFactoryPermanentLock;
|
|
5793
|
+
type messages_DeviceFactoryTest = DeviceFactoryTest;
|
|
5478
5794
|
type messages_DeviceFirmwareTargetType = DeviceFirmwareTargetType;
|
|
5479
5795
|
declare const messages_DeviceFirmwareTargetType: typeof DeviceFirmwareTargetType;
|
|
5480
5796
|
type messages_DeviceFirmwareUpdateTaskStatus = DeviceFirmwareUpdateTaskStatus;
|
|
5481
5797
|
declare const messages_DeviceFirmwareUpdateTaskStatus: typeof DeviceFirmwareUpdateTaskStatus;
|
|
5482
5798
|
type messages_DeviceFirmwareTarget = DeviceFirmwareTarget;
|
|
5799
|
+
type messages_DeviceFirmwareUpdateStage = DeviceFirmwareUpdateStage;
|
|
5483
5800
|
type messages_DeviceFirmwareUpdateRequest = DeviceFirmwareUpdateRequest;
|
|
5484
5801
|
type messages_DeviceFirmwareUpdateRecord = DeviceFirmwareUpdateRecord;
|
|
5485
5802
|
type messages_DeviceFirmwareUpdateRecordFields = DeviceFirmwareUpdateRecordFields;
|
|
5486
5803
|
type messages_DeviceFirmwareUpdateStatusGet = DeviceFirmwareUpdateStatusGet;
|
|
5487
5804
|
type messages_DeviceFirmwareUpdateStatus = DeviceFirmwareUpdateStatus;
|
|
5488
|
-
type messages_DeviceFactoryAck = DeviceFactoryAck;
|
|
5489
|
-
declare const messages_DeviceFactoryAck: typeof DeviceFactoryAck;
|
|
5490
|
-
type messages_DeviceFactoryInfoManufactureTime = DeviceFactoryInfoManufactureTime;
|
|
5491
|
-
type messages_DeviceFactoryInfo = DeviceFactoryInfo;
|
|
5492
|
-
type messages_DeviceFactoryInfoSet = DeviceFactoryInfoSet;
|
|
5493
|
-
type messages_DeviceFactoryInfoGet = DeviceFactoryInfoGet;
|
|
5494
|
-
type messages_DeviceFactoryPermanentLock = DeviceFactoryPermanentLock;
|
|
5495
|
-
type messages_DeviceFactoryTest = DeviceFactoryTest;
|
|
5496
5805
|
type messages_DeviceType = DeviceType;
|
|
5497
5806
|
declare const messages_DeviceType: typeof DeviceType;
|
|
5498
5807
|
type messages_DeviceSeType = DeviceSeType;
|
|
@@ -5508,17 +5817,20 @@ type messages_DeviceInfoTargets = DeviceInfoTargets;
|
|
|
5508
5817
|
type messages_DeviceInfoTypes = DeviceInfoTypes;
|
|
5509
5818
|
type messages_DeviceInfoGet = DeviceInfoGet;
|
|
5510
5819
|
type messages_ProtocolV2DeviceInfo = ProtocolV2DeviceInfo;
|
|
5820
|
+
type messages_DeviceSessionErrorCode = DeviceSessionErrorCode;
|
|
5821
|
+
declare const messages_DeviceSessionErrorCode: typeof DeviceSessionErrorCode;
|
|
5822
|
+
type messages_DeviceSessionSeedDomain = DeviceSessionSeedDomain;
|
|
5823
|
+
declare const messages_DeviceSessionSeedDomain: typeof DeviceSessionSeedDomain;
|
|
5511
5824
|
type messages_DeviceSessionGet = DeviceSessionGet;
|
|
5512
5825
|
type messages_DeviceSession = DeviceSession;
|
|
5826
|
+
type messages_DeviceSessionPinType = DeviceSessionPinType;
|
|
5827
|
+
declare const messages_DeviceSessionPinType: typeof DeviceSessionPinType;
|
|
5513
5828
|
type messages_DeviceSessionAskPin = DeviceSessionAskPin;
|
|
5829
|
+
type messages_DeviceSessionAskPassphrase = DeviceSessionAskPassphrase;
|
|
5514
5830
|
type messages_DeviceSessionAskPin_FailureSubCodes = DeviceSessionAskPin_FailureSubCodes;
|
|
5515
5831
|
declare const messages_DeviceSessionAskPin_FailureSubCodes: typeof DeviceSessionAskPin_FailureSubCodes;
|
|
5516
5832
|
type messages_DeviceStatus = DeviceStatus;
|
|
5517
5833
|
type messages_DeviceStatusGet = DeviceStatusGet;
|
|
5518
|
-
type messages_DevOnboardingStage = DevOnboardingStage;
|
|
5519
|
-
declare const messages_DevOnboardingStage: typeof DevOnboardingStage;
|
|
5520
|
-
type messages_DevGetOnboardingStatus = DevGetOnboardingStatus;
|
|
5521
|
-
type messages_DevOnboardingStatus = DevOnboardingStatus;
|
|
5522
5834
|
type messages_FilesystemPermissionFix = FilesystemPermissionFix;
|
|
5523
5835
|
type messages_FilesystemPathInfo = FilesystemPathInfo;
|
|
5524
5836
|
type messages_FilesystemPathInfoQuery = FilesystemPathInfoQuery;
|
|
@@ -5531,7 +5843,30 @@ type messages_FilesystemDirList = FilesystemDirList;
|
|
|
5531
5843
|
type messages_FilesystemDirMake = FilesystemDirMake;
|
|
5532
5844
|
type messages_FilesystemDirRemove = FilesystemDirRemove;
|
|
5533
5845
|
type messages_FilesystemFormat = FilesystemFormat;
|
|
5846
|
+
type messages_InternalMyAddressRequest = InternalMyAddressRequest;
|
|
5847
|
+
type messages_NftUpdate = NftUpdate;
|
|
5848
|
+
type messages_OnboardingStep = OnboardingStep;
|
|
5849
|
+
declare const messages_OnboardingStep: typeof OnboardingStep;
|
|
5850
|
+
type messages_OnboardingPhase = OnboardingPhase;
|
|
5851
|
+
declare const messages_OnboardingPhase: typeof OnboardingPhase;
|
|
5852
|
+
type messages_OnboardingSetupKind = OnboardingSetupKind;
|
|
5853
|
+
declare const messages_OnboardingSetupKind: typeof OnboardingSetupKind;
|
|
5854
|
+
type messages_OnboardingSetupMethod = OnboardingSetupMethod;
|
|
5855
|
+
declare const messages_OnboardingSetupMethod: typeof OnboardingSetupMethod;
|
|
5856
|
+
type messages_OnboardingSetupStatus = OnboardingSetupStatus;
|
|
5857
|
+
type messages_OnboardingStatusGet = OnboardingStatusGet;
|
|
5858
|
+
type messages_OnboardingStatus = OnboardingStatus;
|
|
5534
5859
|
type messages_PortfolioUpdate = PortfolioUpdate;
|
|
5860
|
+
type messages_ViewAmount = ViewAmount;
|
|
5861
|
+
type messages_ViewDetail = ViewDetail;
|
|
5862
|
+
type messages_ViewTipType = ViewTipType;
|
|
5863
|
+
declare const messages_ViewTipType: typeof ViewTipType;
|
|
5864
|
+
type messages_ViewTip = ViewTip;
|
|
5865
|
+
type messages_ViewRawData = ViewRawData;
|
|
5866
|
+
type messages_ViewSignLayout = ViewSignLayout;
|
|
5867
|
+
declare const messages_ViewSignLayout: typeof ViewSignLayout;
|
|
5868
|
+
type messages_ViewSignPage = ViewSignPage;
|
|
5869
|
+
type messages_ViewVerifyPage = ViewVerifyPage;
|
|
5535
5870
|
type messages_ProtocolV2FailureType = ProtocolV2FailureType;
|
|
5536
5871
|
declare const messages_ProtocolV2FailureType: typeof ProtocolV2FailureType;
|
|
5537
5872
|
type messages_Enum_ProtocolV2Capability = Enum_ProtocolV2Capability;
|
|
@@ -5857,6 +6192,21 @@ declare namespace messages {
|
|
|
5857
6192
|
messages_KaspaSignTx as KaspaSignTx,
|
|
5858
6193
|
messages_KaspaTxInputRequest as KaspaTxInputRequest,
|
|
5859
6194
|
messages_KaspaTxInputAck as KaspaTxInputAck,
|
|
6195
|
+
messages_KaspaOutpoint as KaspaOutpoint,
|
|
6196
|
+
messages_Enum_KaspaInputScriptType as Enum_KaspaInputScriptType,
|
|
6197
|
+
messages_KaspaInputScriptType as KaspaInputScriptType,
|
|
6198
|
+
messages_Enum_KaspaOutputScriptType as Enum_KaspaOutputScriptType,
|
|
6199
|
+
messages_KaspaOutputScriptType as KaspaOutputScriptType,
|
|
6200
|
+
messages_Enum_KaspaRequestType as Enum_KaspaRequestType,
|
|
6201
|
+
messages_KaspaRequestType as KaspaRequestType,
|
|
6202
|
+
messages_KaspaTxRequestSignature as KaspaTxRequestSignature,
|
|
6203
|
+
messages_KaspaTxRequest as KaspaTxRequest,
|
|
6204
|
+
messages_KaspaTxAckInput as KaspaTxAckInput,
|
|
6205
|
+
messages_KaspaTxAckOutput as KaspaTxAckOutput,
|
|
6206
|
+
messages_KaspaTxAckPayloadChunk as KaspaTxAckPayloadChunk,
|
|
6207
|
+
messages_KaspaTxAckPrevMeta as KaspaTxAckPrevMeta,
|
|
6208
|
+
messages_KaspaTxAckPrevInput as KaspaTxAckPrevInput,
|
|
6209
|
+
messages_KaspaTxAckPrevOutput as KaspaTxAckPrevOutput,
|
|
5860
6210
|
messages_KaspaSignedTx as KaspaSignedTx,
|
|
5861
6211
|
messages_LnurlAuth as LnurlAuth,
|
|
5862
6212
|
messages_LnurlAuthResp as LnurlAuthResp,
|
|
@@ -6182,29 +6532,18 @@ declare namespace messages {
|
|
|
6182
6532
|
messages_PaymentRequestMemo as PaymentRequestMemo,
|
|
6183
6533
|
messages_TxAckPaymentRequest as TxAckPaymentRequest,
|
|
6184
6534
|
messages_EthereumSignTypedDataQR as EthereumSignTypedDataQR,
|
|
6185
|
-
messages_InternalMyAddressRequest as InternalMyAddressRequest,
|
|
6186
|
-
messages_StartSession as StartSession,
|
|
6187
6535
|
messages_SetBusy as SetBusy,
|
|
6188
6536
|
messages_GetFirmwareHash as GetFirmwareHash,
|
|
6189
6537
|
messages_FirmwareHash as FirmwareHash,
|
|
6190
6538
|
messages_GetNonce as GetNonce,
|
|
6191
6539
|
messages_Nonce as Nonce,
|
|
6192
6540
|
messages_WriteSEPrivateKey as WriteSEPrivateKey,
|
|
6193
|
-
messages_WallpaperTarget as WallpaperTarget,
|
|
6194
|
-
messages_SetWallpaper as SetWallpaper,
|
|
6195
|
-
messages_GetWallpaper as GetWallpaper,
|
|
6196
|
-
messages_Wallpaper as Wallpaper,
|
|
6197
6541
|
messages_UnlockPath as UnlockPath,
|
|
6198
6542
|
messages_UnlockedPathRequest as UnlockedPathRequest,
|
|
6199
6543
|
messages_MoneroNetworkType as MoneroNetworkType,
|
|
6200
|
-
|
|
6201
|
-
|
|
6202
|
-
|
|
6203
|
-
messages_ViewTip as ViewTip,
|
|
6204
|
-
messages_ViewRawData as ViewRawData,
|
|
6205
|
-
messages_ViewSignLayout as ViewSignLayout,
|
|
6206
|
-
messages_ViewSignPage as ViewSignPage,
|
|
6207
|
-
messages_ViewVerifyPage as ViewVerifyPage,
|
|
6544
|
+
messages_UiAnimationType as UiAnimationType,
|
|
6545
|
+
messages_UiAnimationCommand as UiAnimationCommand,
|
|
6546
|
+
messages_UiAnimationRequest as UiAnimationRequest,
|
|
6208
6547
|
messages_ProtocolInfoRequest as ProtocolInfoRequest,
|
|
6209
6548
|
messages_ProtocolInfo as ProtocolInfo,
|
|
6210
6549
|
messages_DeviceErrorCode as DeviceErrorCode,
|
|
@@ -6220,21 +6559,23 @@ declare namespace messages {
|
|
|
6220
6559
|
messages_DeviceCertificateRead as DeviceCertificateRead,
|
|
6221
6560
|
messages_DeviceCertificateSignature as DeviceCertificateSignature,
|
|
6222
6561
|
messages_DeviceCertificateSign as DeviceCertificateSign,
|
|
6562
|
+
messages_DeviceMiscUsbMscControl as DeviceMiscUsbMscControl,
|
|
6563
|
+
messages_DeviceFactoryAck as DeviceFactoryAck,
|
|
6564
|
+
messages_DeviceFactoryInfoManufactureTime as DeviceFactoryInfoManufactureTime,
|
|
6565
|
+
messages_DeviceFactoryInfo as DeviceFactoryInfo,
|
|
6566
|
+
messages_DeviceFactoryInfoSet as DeviceFactoryInfoSet,
|
|
6567
|
+
messages_DeviceFactoryInfoGet as DeviceFactoryInfoGet,
|
|
6568
|
+
messages_DeviceFactoryPermanentLock as DeviceFactoryPermanentLock,
|
|
6569
|
+
messages_DeviceFactoryTest as DeviceFactoryTest,
|
|
6223
6570
|
messages_DeviceFirmwareTargetType as DeviceFirmwareTargetType,
|
|
6224
6571
|
messages_DeviceFirmwareUpdateTaskStatus as DeviceFirmwareUpdateTaskStatus,
|
|
6225
6572
|
messages_DeviceFirmwareTarget as DeviceFirmwareTarget,
|
|
6573
|
+
messages_DeviceFirmwareUpdateStage as DeviceFirmwareUpdateStage,
|
|
6226
6574
|
messages_DeviceFirmwareUpdateRequest as DeviceFirmwareUpdateRequest,
|
|
6227
6575
|
messages_DeviceFirmwareUpdateRecord as DeviceFirmwareUpdateRecord,
|
|
6228
6576
|
messages_DeviceFirmwareUpdateRecordFields as DeviceFirmwareUpdateRecordFields,
|
|
6229
6577
|
messages_DeviceFirmwareUpdateStatusGet as DeviceFirmwareUpdateStatusGet,
|
|
6230
6578
|
messages_DeviceFirmwareUpdateStatus as DeviceFirmwareUpdateStatus,
|
|
6231
|
-
messages_DeviceFactoryAck as DeviceFactoryAck,
|
|
6232
|
-
messages_DeviceFactoryInfoManufactureTime as DeviceFactoryInfoManufactureTime,
|
|
6233
|
-
messages_DeviceFactoryInfo as DeviceFactoryInfo,
|
|
6234
|
-
messages_DeviceFactoryInfoSet as DeviceFactoryInfoSet,
|
|
6235
|
-
messages_DeviceFactoryInfoGet as DeviceFactoryInfoGet,
|
|
6236
|
-
messages_DeviceFactoryPermanentLock as DeviceFactoryPermanentLock,
|
|
6237
|
-
messages_DeviceFactoryTest as DeviceFactoryTest,
|
|
6238
6579
|
messages_DeviceType as DeviceType,
|
|
6239
6580
|
messages_DeviceSeType as DeviceSeType,
|
|
6240
6581
|
messages_DeviceSEState as DeviceSEState,
|
|
@@ -6247,15 +6588,16 @@ declare namespace messages {
|
|
|
6247
6588
|
messages_DeviceInfoTypes as DeviceInfoTypes,
|
|
6248
6589
|
messages_DeviceInfoGet as DeviceInfoGet,
|
|
6249
6590
|
messages_ProtocolV2DeviceInfo as ProtocolV2DeviceInfo,
|
|
6591
|
+
messages_DeviceSessionErrorCode as DeviceSessionErrorCode,
|
|
6592
|
+
messages_DeviceSessionSeedDomain as DeviceSessionSeedDomain,
|
|
6250
6593
|
messages_DeviceSessionGet as DeviceSessionGet,
|
|
6251
6594
|
messages_DeviceSession as DeviceSession,
|
|
6595
|
+
messages_DeviceSessionPinType as DeviceSessionPinType,
|
|
6252
6596
|
messages_DeviceSessionAskPin as DeviceSessionAskPin,
|
|
6597
|
+
messages_DeviceSessionAskPassphrase as DeviceSessionAskPassphrase,
|
|
6253
6598
|
messages_DeviceSessionAskPin_FailureSubCodes as DeviceSessionAskPin_FailureSubCodes,
|
|
6254
6599
|
messages_DeviceStatus as DeviceStatus,
|
|
6255
6600
|
messages_DeviceStatusGet as DeviceStatusGet,
|
|
6256
|
-
messages_DevOnboardingStage as DevOnboardingStage,
|
|
6257
|
-
messages_DevGetOnboardingStatus as DevGetOnboardingStatus,
|
|
6258
|
-
messages_DevOnboardingStatus as DevOnboardingStatus,
|
|
6259
6601
|
messages_FilesystemPermissionFix as FilesystemPermissionFix,
|
|
6260
6602
|
messages_FilesystemPathInfo as FilesystemPathInfo,
|
|
6261
6603
|
messages_FilesystemPathInfoQuery as FilesystemPathInfoQuery,
|
|
@@ -6268,7 +6610,24 @@ declare namespace messages {
|
|
|
6268
6610
|
messages_FilesystemDirMake as FilesystemDirMake,
|
|
6269
6611
|
messages_FilesystemDirRemove as FilesystemDirRemove,
|
|
6270
6612
|
messages_FilesystemFormat as FilesystemFormat,
|
|
6613
|
+
messages_InternalMyAddressRequest as InternalMyAddressRequest,
|
|
6614
|
+
messages_NftUpdate as NftUpdate,
|
|
6615
|
+
messages_OnboardingStep as OnboardingStep,
|
|
6616
|
+
messages_OnboardingPhase as OnboardingPhase,
|
|
6617
|
+
messages_OnboardingSetupKind as OnboardingSetupKind,
|
|
6618
|
+
messages_OnboardingSetupMethod as OnboardingSetupMethod,
|
|
6619
|
+
messages_OnboardingSetupStatus as OnboardingSetupStatus,
|
|
6620
|
+
messages_OnboardingStatusGet as OnboardingStatusGet,
|
|
6621
|
+
messages_OnboardingStatus as OnboardingStatus,
|
|
6271
6622
|
messages_PortfolioUpdate as PortfolioUpdate,
|
|
6623
|
+
messages_ViewAmount as ViewAmount,
|
|
6624
|
+
messages_ViewDetail as ViewDetail,
|
|
6625
|
+
messages_ViewTipType as ViewTipType,
|
|
6626
|
+
messages_ViewTip as ViewTip,
|
|
6627
|
+
messages_ViewRawData as ViewRawData,
|
|
6628
|
+
messages_ViewSignLayout as ViewSignLayout,
|
|
6629
|
+
messages_ViewSignPage as ViewSignPage,
|
|
6630
|
+
messages_ViewVerifyPage as ViewVerifyPage,
|
|
6272
6631
|
messages_ProtocolV2FailureType as ProtocolV2FailureType,
|
|
6273
6632
|
messages_Enum_ProtocolV2Capability as Enum_ProtocolV2Capability,
|
|
6274
6633
|
messages_ProtocolV2Capability as ProtocolV2Capability,
|
|
@@ -6292,8 +6651,10 @@ type ProtocolV2Schemas = {
|
|
|
6292
6651
|
type ProtocolV2CallContext = {
|
|
6293
6652
|
messageName: string;
|
|
6294
6653
|
timeoutMs?: number;
|
|
6295
|
-
|
|
6654
|
+
highThroughput: boolean;
|
|
6655
|
+
writeWithResponse?: boolean;
|
|
6296
6656
|
generation: number;
|
|
6657
|
+
signal: AbortSignal;
|
|
6297
6658
|
};
|
|
6298
6659
|
type ProtocolLogger = {
|
|
6299
6660
|
debug?: (...args: any[]) => void;
|
|
@@ -6318,19 +6679,26 @@ type ProtocolV2CallOptions = {
|
|
|
6318
6679
|
expectedTypes?: string[];
|
|
6319
6680
|
intermediateTypes?: string[];
|
|
6320
6681
|
onIntermediateResponse?: (response: MessageFromOneKey) => void;
|
|
6682
|
+
onWriteCompleted?: (metrics: TransportWriteMetrics) => void;
|
|
6683
|
+
returnAfterWrite?: boolean;
|
|
6684
|
+
writeWithResponse?: boolean;
|
|
6321
6685
|
};
|
|
6322
6686
|
|
|
6323
6687
|
declare function hexToBytes(hex: string): Uint8Array;
|
|
6324
6688
|
declare function bytesToHex(bytes: Uint8Array): string;
|
|
6689
|
+
declare function isProtocolV2HighThroughputCall(name: string): boolean;
|
|
6325
6690
|
declare function getErrorMessage(error: unknown): string;
|
|
6326
|
-
declare function withProtocolTimeout<T>(promise: Promise<T>, timeoutMs: number | undefined, createTimeoutError: () => Error, onTimeout?: () => void): Promise<T>;
|
|
6327
|
-
declare const PROTOCOL_V2_WRITE_WATCHDOG_TIMEOUT_MS = 0;
|
|
6691
|
+
declare function withProtocolTimeout<T>(promise: Promise<T>, timeoutMs: number | undefined, createTimeoutError: () => Error, onTimeout?: () => void, abortSignal?: AbortSignal): Promise<T>;
|
|
6328
6692
|
declare class ProtocolV2Session {
|
|
6329
6693
|
private readonly options;
|
|
6330
6694
|
private readonly sequenceCursor;
|
|
6331
6695
|
private pendingCall;
|
|
6696
|
+
private pendingWrite;
|
|
6697
|
+
private lastResponseSequence?;
|
|
6332
6698
|
constructor(options: ProtocolV2SessionOptions);
|
|
6333
6699
|
call(name: string, data: Record<string, unknown>, callOptions?: ProtocolV2CallOptions): Promise<MessageFromOneKey>;
|
|
6700
|
+
sendFlowControl(name: string, data: Record<string, unknown>): Promise<MessageFromOneKey>;
|
|
6701
|
+
private serializeWrite;
|
|
6334
6702
|
private executeCall;
|
|
6335
6703
|
}
|
|
6336
6704
|
declare function probeProtocolV2({ call, timeoutMs, logger, logPrefix, onBeforeProbe, onProbeFailed, }: {
|
|
@@ -6364,15 +6732,20 @@ declare class ProtocolV2LinkManager<Key> {
|
|
|
6364
6732
|
private readonly links;
|
|
6365
6733
|
private readonly sequences;
|
|
6366
6734
|
private readonly callQueues;
|
|
6735
|
+
private readonly generations;
|
|
6736
|
+
private readonly invalidationReasons;
|
|
6737
|
+
private readonly invalidations;
|
|
6367
6738
|
private readonly options;
|
|
6368
6739
|
constructor(options: ProtocolV2LinkManagerOptions<Key>);
|
|
6369
6740
|
call(key: Key, createAdapter: () => ProtocolV2LinkAdapter, name: string, data: Record<string, unknown>, options?: TransportCallOptions): Promise<MessageFromOneKey>;
|
|
6741
|
+
sendFlowControl(key: Key, createAdapter: () => ProtocolV2LinkAdapter, name: string, data: Record<string, unknown>): Promise<MessageFromOneKey>;
|
|
6370
6742
|
invalidateLink(key: Key, reason: string): Promise<void>;
|
|
6371
6743
|
invalidateAllLinks(reason: string): Promise<void>;
|
|
6372
6744
|
dispose(reason: string): Promise<void>;
|
|
6373
6745
|
private getOrCreateLink;
|
|
6374
6746
|
private executeCall;
|
|
6375
6747
|
private clearSettledCallQueue;
|
|
6748
|
+
private assertCallGeneration;
|
|
6376
6749
|
}
|
|
6377
6750
|
|
|
6378
6751
|
type ProtocolV2UsbTransportBaseOptions = {
|
|
@@ -6396,12 +6769,14 @@ declare abstract class ProtocolV2UsbTransportBase<Key> {
|
|
|
6396
6769
|
protected onProtocolV2UsbLinkInvalidated(_key: Key, _reason: string): Promise<void> | void;
|
|
6397
6770
|
protected rotateProtocolV2UsbGeneration(key: Key, reason: string): Promise<number>;
|
|
6398
6771
|
protected callProtocolV2Usb(key: Key, name: string, data: Record<string, unknown>, options?: TransportCallOptions): Promise<MessageFromOneKey>;
|
|
6772
|
+
protected sendProtocolV2UsbFlowControl(key: Key, name: string, data: Record<string, unknown>): Promise<MessageFromOneKey>;
|
|
6399
6773
|
protected invalidateProtocolV2UsbLink(key: Key, reason: string): Promise<void>;
|
|
6400
6774
|
protected invalidateAllProtocolV2UsbLinks(reason: string): Promise<void>;
|
|
6401
6775
|
protected disposeProtocolV2UsbLinks(reason: string): Promise<void>;
|
|
6402
6776
|
private createProtocolV2UsbAdapter;
|
|
6403
6777
|
private getProtocolV2UsbAssembler;
|
|
6404
6778
|
private createProtocolV2UsbCancellation;
|
|
6779
|
+
private createProtocolV2UsbIoError;
|
|
6405
6780
|
}
|
|
6406
6781
|
|
|
6407
6782
|
declare function info(res: any): {
|
|
@@ -6430,22 +6805,59 @@ declare namespace check {
|
|
|
6430
6805
|
|
|
6431
6806
|
declare const LogBlockCommand: Set<string>;
|
|
6432
6807
|
|
|
6808
|
+
declare function getSafeTransportLogPayload(value: unknown, messageName?: string): unknown;
|
|
6809
|
+
declare function createTransportCallLog(name: string, protocol: ProtocolType, data: Record<string, unknown>): {
|
|
6810
|
+
name: string;
|
|
6811
|
+
protocol: ProtocolType;
|
|
6812
|
+
request: unknown;
|
|
6813
|
+
};
|
|
6814
|
+
declare function shouldSuppressHighVolumeCallLog(name: string): boolean;
|
|
6815
|
+
|
|
6816
|
+
/** Protocol V1 USB report marker, ASCII `?`. */
|
|
6433
6817
|
declare const PROTOCOL_V1_REPORT_ID = 63;
|
|
6818
|
+
/** Protocol V1 envelope marker, ASCII `#`. */
|
|
6434
6819
|
declare const PROTOCOL_V1_HEADER_BYTE = 35;
|
|
6820
|
+
/** Protocol V1 payload bytes per chunk after the report marker. */
|
|
6435
6821
|
declare const PROTOCOL_V1_CHUNK_PAYLOAD_SIZE = 63;
|
|
6822
|
+
/** Protocol V1 USB packet length: report marker plus chunk payload. */
|
|
6436
6823
|
declare const PROTOCOL_V1_USB_PACKET_SIZE: number;
|
|
6824
|
+
/** Protocol V1 message metadata: two-byte type plus four-byte payload length. */
|
|
6437
6825
|
declare const PROTOCOL_V1_MESSAGE_HEADER_SIZE: number;
|
|
6826
|
+
/** Protocol V1 envelope metadata: `##`, message type, and payload length. */
|
|
6438
6827
|
declare const PROTOCOL_V1_ENVELOPE_HEADER_SIZE: number;
|
|
6439
|
-
|
|
6828
|
+
/** Firmware Proto Link runtime limit for a complete V2 frame, including header and CRC. */
|
|
6829
|
+
declare const PROTOCOL_V2_FRAME_MAX_BYTES = 4200;
|
|
6830
|
+
/** FilesystemFileWrite chunk size over WebUSB. */
|
|
6440
6831
|
declare const PROTOCOL_V2_WEBUSB_FILE_CHUNK_SIZE = 4000;
|
|
6832
|
+
/** FilesystemFileWrite chunk size over BLE. */
|
|
6441
6833
|
declare const PROTOCOL_V2_BLE_FILE_CHUNK_SIZE = 1800;
|
|
6834
|
+
/**
|
|
6835
|
+
* FirmwareUpdateV4 chunk size for its fixed BLE staging paths.
|
|
6836
|
+
* The longest current path still leaves 28 bytes below the 2048-byte BLE frame limit.
|
|
6837
|
+
*/
|
|
6838
|
+
declare const PROTOCOL_V2_BLE_FIRMWARE_FILE_CHUNK_SIZE = 1960;
|
|
6839
|
+
/** BLE FilesystemFileRead chunk size, limited by the Pro2 1024-byte UART TX buffer. */
|
|
6442
6840
|
declare const PROTOCOL_V2_BLE_FILE_READ_CHUNK_SIZE = 900;
|
|
6841
|
+
/** Pro2 BLE/UART RX FIFO must hold a complete Proto Link frame. */
|
|
6443
6842
|
declare const PROTOCOL_V2_BLE_FRAME_MAX_BYTES = 2048;
|
|
6843
|
+
/** @deprecated Use the transport-specific WebUSB or BLE file chunk constant. */
|
|
6444
6844
|
declare const PROTOCOL_V2_FILE_CHUNK_SIZE = 4000;
|
|
6845
|
+
/**
|
|
6846
|
+
* Protocol V2 routing channel. USB reaches the main MCU directly, while BLE routes
|
|
6847
|
+
* through the BLE coprocessor UART bridge.
|
|
6848
|
+
*/
|
|
6445
6849
|
declare const PROTOCOL_V2_CHANNEL_USB = 0;
|
|
6446
6850
|
declare const PROTOCOL_V2_CHANNEL_BLE_UART = 1;
|
|
6447
6851
|
declare const PROTOCOL_V2_CHANNEL_SOCKET = 2;
|
|
6852
|
+
/** packet_src for protobuf commands; firmware routes zero to the protobuf dispatcher. */
|
|
6448
6853
|
declare const PROTOCOL_V2_PACKET_SRC_COMMAND = 0;
|
|
6854
|
+
/**
|
|
6855
|
+
* Shared upper bound for a Protocol V2 request without a method-specific timeout.
|
|
6856
|
+
* Interactive and signing calls may wait on the device UI, so keep this longer than
|
|
6857
|
+
* ordinary transport timeouts while still preventing a stalled link from blocking
|
|
6858
|
+
* the per-device queue forever.
|
|
6859
|
+
*/
|
|
6860
|
+
declare const PROTOCOL_V2_DEFAULT_RESPONSE_TIMEOUT_MS: number;
|
|
6449
6861
|
|
|
6450
6862
|
declare const _default: {
|
|
6451
6863
|
check: typeof check;
|
|
@@ -6464,6 +6876,7 @@ declare const _default: {
|
|
|
6464
6876
|
};
|
|
6465
6877
|
ProtocolV2: {
|
|
6466
6878
|
isAckFrame: typeof isAckFrame;
|
|
6879
|
+
inspectFrameHeader: typeof inspectFrameHeader;
|
|
6467
6880
|
inspectFrame(schemas: {
|
|
6468
6881
|
protocolV1: protobuf.Root;
|
|
6469
6882
|
protocolV2: protobuf.Root;
|
|
@@ -6472,6 +6885,9 @@ declare const _default: {
|
|
|
6472
6885
|
messageTypeId: number;
|
|
6473
6886
|
pbPayload: Uint8Array;
|
|
6474
6887
|
seq: number;
|
|
6888
|
+
router: number;
|
|
6889
|
+
packetSrc: number;
|
|
6890
|
+
dataType: number;
|
|
6475
6891
|
type: string;
|
|
6476
6892
|
};
|
|
6477
6893
|
encodeFrame(schemas: {
|
|
@@ -6486,6 +6902,18 @@ declare const _default: {
|
|
|
6486
6902
|
protocolV1: protobuf.Root;
|
|
6487
6903
|
protocolV2: protobuf.Root;
|
|
6488
6904
|
}, frame: Uint8Array): {
|
|
6905
|
+
message: {
|
|
6906
|
+
version: any;
|
|
6907
|
+
build_fingerprint: string;
|
|
6908
|
+
supported_messages: any;
|
|
6909
|
+
protobuf_definition: null;
|
|
6910
|
+
};
|
|
6911
|
+
messageName: string;
|
|
6912
|
+
messageTypeId: number;
|
|
6913
|
+
pbPayload: Uint8Array;
|
|
6914
|
+
seq: number;
|
|
6915
|
+
type: string;
|
|
6916
|
+
} | {
|
|
6489
6917
|
message: {
|
|
6490
6918
|
[key: string]: any;
|
|
6491
6919
|
};
|
|
@@ -6522,4 +6950,4 @@ declare const _default: {
|
|
|
6522
6950
|
withProtocolTimeout: typeof withProtocolTimeout;
|
|
6523
6951
|
};
|
|
6524
6952
|
|
|
6525
|
-
export { AcquireInput, Address, AlephiumAddress, AlephiumBytecodeAck, AlephiumBytecodeRequest, AlephiumGetAddress, AlephiumMessageSignature, AlephiumSignMessage, AlephiumSignTx, AlephiumSignedTx, AlephiumTxAck, AlephiumTxRequest, AlgorandAddress, AlgorandGetAddress, AlgorandSignTx, AlgorandSignedTx, AmountUnit, ApplyFlags, ApplySettings, AptosAddress, AptosGetAddress, AptosMessagePayload, AptosMessageSignature, AptosSignMessage, AptosSignSIWAMessage, AptosSignTx, AptosSignedTx, AptosTransactionType, AuthorizeCoinJoin, BIP32Address, BackupDevice, BackupType, BatchGetPublickeys, BenfenAddress, BenfenGetAddress, BenfenMessageSignature, BenfenSignMessage, BenfenSignTx, BenfenSignedTx, BenfenTxAck, BenfenTxRequest, BinanceAddress, BinanceCancelMsg, BinanceCoin, BinanceGetAddress, BinanceGetPublicKey, BinanceInputOutput, BinanceOrderMsg, BinanceOrderSide, BinanceOrderType, BinancePublicKey, BinanceSignTx, BinanceSignedTx, BinanceTimeInForce, BinanceTransferMsg, BinanceTxRequest, BixinBackupAck, BixinBackupDevice, BixinBackupDeviceAck, BixinBackupRequest, BixinLoadDevice, BixinMessageSE, BixinOutMessageSE, BixinPinInputOnDevice, BixinRestoreAck, BixinRestoreRequest, BixinSeedOperate, BixinVerifyDeviceAck, BixinVerifyDeviceRequest, BixinWhiteListAck, BixinWhiteListRequest, BlurRequest, ButtonAck, ButtonRequest, ButtonRequestType, Cancel, CancelAuthorization, Capability, CardanoAddress, CardanoAddressParametersType, CardanoAddressType, CardanoAssetGroup, CardanoBlockchainPointerType, CardanoCVoteRegistrationDelegation, CardanoCVoteRegistrationFormat, CardanoCVoteRegistrationParametersType, CardanoCertificateType, CardanoDRep, CardanoDRepType, CardanoDerivationType, CardanoGetAddress, CardanoGetNativeScriptHash, CardanoGetPublicKey, CardanoMessageSignature, CardanoNativeScript, CardanoNativeScriptHash, CardanoNativeScriptHashDisplayFormat, CardanoNativeScriptType, CardanoPoolMetadataType, CardanoPoolOwner, CardanoPoolParametersType, CardanoPoolRelayParameters, CardanoPoolRelayType, CardanoPublicKey, CardanoSignMessage, CardanoSignTxFinished, CardanoSignTxInit, CardanoToken, CardanoTxAuxiliaryData, CardanoTxAuxiliaryDataSupplement, CardanoTxAuxiliaryDataSupplementType, CardanoTxBodyHash, CardanoTxCertificate, CardanoTxCollateralInput, CardanoTxHostAck, CardanoTxInlineDatumChunk, CardanoTxInput, CardanoTxItemAck, CardanoTxMint, CardanoTxOutput, CardanoTxOutputSerializationFormat, CardanoTxReferenceInput, CardanoTxReferenceScriptChunk, CardanoTxRequiredSigner, CardanoTxSigningMode, CardanoTxWithdrawal, CardanoTxWitnessRequest, CardanoTxWitnessResponse, CardanoTxWitnessType, ChangeOutputScriptType, ChangePin, ChangeWipeCode, CipherKeyValue, CipheredKeyValue, CoinJoinRequest, CoinPurchaseMemo, CommandFlags, ConfluxAddress, ConfluxGetAddress, ConfluxMessageSignature, ConfluxSignMessage, ConfluxSignMessageCIP23, ConfluxSignTx, ConfluxTxAck, ConfluxTxRequest, CosmosAddress, CosmosGetAddress, CosmosSignTx, CosmosSignedTx, DecredStakingSpendType, Deprecated_PassphraseStateAck, Deprecated_PassphraseStateRequest, DevGetOnboardingStatus, DevOnboardingStage, DevOnboardingStatus, DeviceBackToBoot, DeviceCertificate, DeviceCertificateRead, DeviceCertificateSign, DeviceCertificateSignature, DeviceCertificateWrite, DeviceCoprocessorInfo, DeviceEraseSector, DeviceErrorCode, DeviceFactoryAck, DeviceFactoryInfo, DeviceFactoryInfoGet, DeviceFactoryInfoManufactureTime, DeviceFactoryInfoSet, DeviceFactoryPermanentLock, DeviceFactoryTest, DeviceFirmwareImageInfo, DeviceFirmwareTarget, DeviceFirmwareTargetType, DeviceFirmwareUpdateRecord, DeviceFirmwareUpdateRecordFields, DeviceFirmwareUpdateRequest, DeviceFirmwareUpdateStatus, DeviceFirmwareUpdateStatusGet, DeviceFirmwareUpdateTaskStatus, DeviceHardwareInfo, DeviceInfo, DeviceInfoGet, DeviceInfoSettings, DeviceInfoTargets, DeviceInfoTypes, DeviceMainMcuInfo, DeviceReboot, DeviceRebootType, DeviceSEInfo, DeviceSEState, DeviceSeType, DeviceSession, DeviceSessionAskPin, 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_OutputScriptType, Enum_PinMatrixRequestType, Enum_ProtocolV2Capability, Enum_RequestType, Enum_SafetyCheckLevel, Enum_WordRequestType, EosActionBuyRam, EosActionBuyRamBytes, EosActionCommon, EosActionDelegate, EosActionDeleteAuth, EosActionLinkAuth, EosActionNewAccount, EosActionRefund, EosActionSellRam, EosActionTransfer, EosActionUndelegate, EosActionUnknown, EosActionUnlinkAuth, EosActionUpdateAuth, EosActionVoteProducer, EosAsset, EosAuthorization, EosAuthorizationAccount, EosAuthorizationKey, EosAuthorizationWait, EosGetPublicKey, EosPermissionLevel, EosPublicKey, EosSignTx, EosSignedTx, EosTxActionAck, EosTxActionRequest, EosTxHeader, EthereumAccessList, EthereumAccessListOneKey, EthereumAddress, EthereumAddressOneKey, EthereumAuthorizationOneKey, EthereumAuthorizationSignature, EthereumDataType, EthereumDataTypeOneKey, EthereumDefinitionType, EthereumDefinitions, EthereumFieldType, EthereumFieldTypeOneKey, EthereumGetAddress, EthereumGetAddressOneKey, EthereumGetPublicKey, EthereumGetPublicKeyOneKey, EthereumGnosisSafeTxAck, EthereumGnosisSafeTxOperation, EthereumGnosisSafeTxRequest, EthereumMessageSignature, EthereumMessageSignatureOneKey, EthereumNetworkInfo, EthereumPublicKey, EthereumPublicKeyOneKey, EthereumSignMessage, EthereumSignMessageEIP712, EthereumSignMessageOneKey, EthereumSignTx, EthereumSignTxEIP1559, EthereumSignTxEIP1559OneKey, EthereumSignTxEIP7702OneKey, EthereumSignTxOneKey, EthereumSignTypedData, EthereumSignTypedDataOneKey, EthereumSignTypedDataQR, EthereumSignTypedHash, EthereumSignTypedHashOneKey, EthereumStructMember, EthereumStructMemberOneKey, EthereumTokenInfo, EthereumTxAck, EthereumTxAckOneKey, EthereumTxRequest, EthereumTxRequestOneKey, EthereumTypedDataSignature, EthereumTypedDataSignatureOneKey, EthereumTypedDataStructAck, EthereumTypedDataStructAckOneKey, EthereumTypedDataStructRequest, EthereumTypedDataStructRequestOneKey, EthereumTypedDataValueAck, EthereumTypedDataValueAckOneKey, EthereumTypedDataValueRequest, EthereumTypedDataValueRequestOneKey, EthereumVerifyMessage, EthereumVerifyMessageOneKey, ExportType, Failure, FailureType, Features, FileInfo, FileInfoList, FilecoinAddress, FilecoinGetAddress, FilecoinSignTx, FilecoinSignedTx, FilesystemDir, FilesystemDirList, FilesystemDirMake, FilesystemDirRemove, FilesystemFile, FilesystemFileDelete, FilesystemFileRead, FilesystemFileWrite, FilesystemFormat, FilesystemPathInfo, FilesystemPathInfoQuery, FilesystemPermissionFix, FirmwareErase, FirmwareErase_ex, FirmwareHash, FirmwareRequest, FirmwareUpdateEmmc, FirmwareUpload, GetAddress, GetDeviceInfo, GetECDHSessionKey, GetEntropy, GetFeatures, GetFirmwareHash, GetNextU2FCounter, GetNonce, GetOwnershipId, GetOwnershipProof, GetPassphraseState, GetPublicKey, GetPublicKeyMultiple, GetWallpaper, HDNodePathType, HDNodeType, IdentityType, Initialize, InputScriptType, InternalInputScriptType, InternalMyAddressRequest, KaspaAddress, KaspaGetAddress, KaspaSignTx, KaspaSignedTx, KaspaTxInputAck, KaspaTxInputRequest, ListResDir, LnurlAuth, LnurlAuthResp, LockDevice, LogBlockCommand, LowLevelDevice, LowlevelTransportSharedPlugin, MessageFromOneKey, MessageKey, MessageResponse, MessageResponseMap, MessageSignature, MessageType, messages as Messages, MoneroAccountPublicAddress, MoneroAddress, MoneroExportedKeyImage, MoneroGetAddress, MoneroGetTxKeyAck, MoneroGetTxKeyRequest, MoneroGetWatchKey, MoneroKeyImageExportInitAck, MoneroKeyImageExportInitRequest, MoneroKeyImageSyncFinalAck, MoneroKeyImageSyncFinalRequest, MoneroKeyImageSyncStepAck, MoneroKeyImageSyncStepRequest, MoneroLiveRefreshFinalAck, MoneroLiveRefreshFinalRequest, MoneroLiveRefreshStartAck, MoneroLiveRefreshStartRequest, MoneroLiveRefreshStepAck, MoneroLiveRefreshStepRequest, MoneroMultisigKLRki, MoneroNetworkType, MoneroOutputEntry, MoneroRctKeyPublic, MoneroRingCtSig, MoneroSubAddressIndicesList, MoneroTransactionAllInputsSetAck, MoneroTransactionAllInputsSetRequest, MoneroTransactionAllOutSetAck, MoneroTransactionAllOutSetRequest, MoneroTransactionData, MoneroTransactionDestinationEntry, MoneroTransactionFinalAck, MoneroTransactionFinalRequest, MoneroTransactionInitAck, MoneroTransactionInitRequest, MoneroTransactionInputViniAck, MoneroTransactionInputViniRequest, MoneroTransactionInputsPermutationAck, MoneroTransactionInputsPermutationRequest, MoneroTransactionRsigData, MoneroTransactionSetInputAck, MoneroTransactionSetInputRequest, MoneroTransactionSetOutputAck, MoneroTransactionSetOutputRequest, MoneroTransactionSignInputAck, MoneroTransactionSignInputRequest, MoneroTransactionSourceEntry, MoneroTransferDetails, MoneroWatchKey, MultisigRedeemScriptType, NEMAddress, NEMAggregateModification, NEMCosignatoryModification, NEMDecryptMessage, NEMDecryptedMessage, NEMGetAddress, NEMImportanceTransfer, NEMImportanceTransferMode, NEMModificationType, NEMMosaic, NEMMosaicCreation, NEMMosaicDefinition, NEMMosaicLevy, NEMMosaicSupplyChange, NEMProvisionNamespace, NEMSignTx, NEMSignedTx, NEMSupplyChangeType, NEMTransactionCommon, NEMTransfer, NFTWriteData, NFTWriteInfo, NearAddress, NearGetAddress, NearSignTx, NearSignedTx, NeoAddress, NeoGetAddress, NeoSignTx, NeoSignedTx, NervosAddress, NervosGetAddress, NervosSignTx, NervosSignedTx, NervosTxAck, NervosTxRequest, NexaAddress, NexaGetAddress, NexaSignTx, NexaSignedTx, NexaTxInputAck, NexaTxInputRequest, NextU2FCounter, Nonce, NostrDecryptMessage, NostrDecryptedMessage, NostrEncryptMessage, NostrEncryptedMessage, NostrGetPublicKey, NostrPublicKey, NostrSignEvent, NostrSignSchnorr, NostrSignedEvent, NostrSignedSchnorr, OneKeyDeviceCommType, OneKeyDeviceInfo, OneKeyDeviceInfoBase, OneKeyDeviceInfoWithSession, OneKeyDeviceType, OneKeyMobileDeviceInfo, OneKeySEState, OneKeySeType, OnekeyFeatures, OnekeyGetFeatures, OutputScriptType, OwnershipId, OwnershipProof, PROTOCOL_V1_CHUNK_PAYLOAD_SIZE, PROTOCOL_V1_ENVELOPE_HEADER_SIZE, PROTOCOL_V1_HEADER_BYTE, PROTOCOL_V1_MESSAGE_HEADER_SIZE, PROTOCOL_V1_REPORT_ID, PROTOCOL_V1_USB_PACKET_SIZE, PROTOCOL_V2_BLE_FILE_CHUNK_SIZE, PROTOCOL_V2_BLE_FILE_READ_CHUNK_SIZE, PROTOCOL_V2_BLE_FRAME_MAX_BYTES, PROTOCOL_V2_CHANNEL_BLE_UART, PROTOCOL_V2_CHANNEL_SOCKET, PROTOCOL_V2_CHANNEL_USB, PROTOCOL_V2_FILE_CHUNK_SIZE, PROTOCOL_V2_FRAME_MAX_BYTES, PROTOCOL_V2_PACKET_SRC_COMMAND, PROTOCOL_V2_SYS_MESSAGE_THRESHOLD, PROTOCOL_V2_WEBUSB_FILE_CHUNK_SIZE, PROTOCOL_V2_WRITE_WATCHDOG_TIMEOUT_MS, PassphraseAck, PassphraseRequest, PassphraseState, Path, PaymentRequestMemo, PinMatrixAck, PinMatrixRequest, PinMatrixRequestType, Ping, PolkadotAddress, PolkadotGetAddress, PolkadotSignTx, PolkadotSignedTx, PortfolioUpdate, PreauthorizedRequest, PrevInput, PrevOutput, PrevTx, ProtocolInfo, ProtocolInfoRequest, ProtocolType, ProtocolV1, ProtocolV2, ProtocolV2CallContext, ProtocolV2CallOptions, ProtocolV2Capability, ProtocolV2DeviceInfo, ProtocolV2FailureType, ProtocolV2FrameAssembler, ProtocolV2LinkAdapter, ProtocolV2LinkErrorClassification, ProtocolV2LinkManager, ProtocolV2LinkManagerOptions, ProtocolV2Schemas, ProtocolV2SequenceCursor, ProtocolV2Session, ProtocolV2SessionOptions, ProtocolV2UsbTransportBase, ProtocolV2UsbTransportBaseOptions, PublicKey, PublicKeyMultiple, ReadSEPublicCert, ReadSEPublicKey, Reboot, RebootToBoardloader, RebootToBootloader, RebootType, RecoveryDevice, RecoveryDeviceType, RefundMemo, RequestType, ResetDevice, ResourceAck, ResourceRequest, ResourceType, ResourceUpdate, ResourceUpload, RippleAddress, RippleGetAddress, RipplePayment, RippleSignTx, RippleSignedTx, SEMessageSignature, SEPublicCert, SEPublicKey, SESignMessage, SafetyCheckLevel, ScdoAddress, ScdoGetAddress, ScdoSignMessage, ScdoSignTx, ScdoSignedMessage, ScdoSignedTx, ScdoTxAck, SdProtect, SdProtectOperationType, SeedRequestType, SelfTest, SetBusy, SetU2FCounter, SetWallpaper, SignIdentity, SignMessage, SignPsbt, SignTx, SignedIdentity, SignedPsbt, SolanaAddress, SolanaGetAddress, SolanaMessageSignature, SolanaOffChainMessageFormat, SolanaOffChainMessageVersion, SolanaSignOffChainMessage, SolanaSignTx, SolanaSignUnsafeMessage, SolanaSignedTx, SolanaTxATADetails, SolanaTxExtraInfo, SpiFlashData, SpiFlashRead, SpiFlashWrite, StarcoinAddress, StarcoinGetAddress, StarcoinGetPublicKey, StarcoinMessageSignature, StarcoinPublicKey, StarcoinSignMessage, StarcoinSignTx, StarcoinSignedTx, StarcoinVerifyMessage, StartSession, StellarAccountMergeOp, StellarAddress, StellarAllowTrustOp, StellarAsset, StellarAssetType, StellarBumpSequenceOp, StellarChangeTrustOp, StellarCreateAccountOp, StellarCreatePassiveSellOfferOp, StellarGetAddress, StellarInvokeHostFunctionOp, StellarManageBuyOfferOp, StellarManageDataOp, StellarManageSellOfferOp, StellarMemoType, StellarPathPaymentStrictReceiveOp, StellarPathPaymentStrictSendOp, StellarPaymentOp, StellarRequestType, StellarSetOptionsOp, StellarSignTx, StellarSignedTx, StellarSignerType, StellarSorobanDataAck, StellarSorobanDataRequest, StellarTxOpRequest, Success, SuiAddress, SuiGetAddress, SuiMessageSignature, SuiSignMessage, SuiSignTx, SuiSignedTx, SuiTxAck, SuiTxRequest, TextMemo, TezosAddress, TezosBallotOp, TezosBallotType, TezosContractID, TezosContractType, TezosDelegationOp, TezosGetAddress, TezosGetPublicKey, TezosManagerTransfer, TezosOriginationOp, TezosParametersManager, TezosProposalOp, TezosPublicKey, TezosRevealOp, TezosSignTx, TezosSignedTx, TezosTransactionOp, TonAddress, TonGetAddress, TonSignData, TonSignDataType, TonSignMessage, TonSignProof, TonSignedData, TonSignedMessage, TonSignedProof, TonTxAck, TonWalletVersion, TonWorkChain, Transport, TransportCallOptions, TronAddress, TronCancelAllUnfreezeV2Contract, TronContract, TronDelegateResourceContract, TronFreezeBalanceContract, TronFreezeBalanceV2Contract, TronGetAddress, TronMessageSignature, TronMessageType, TronResourceCode, TronSignMessage, TronSignTx, TronSignedTx, TronTransferContract, TronTriggerSmartContract, TronUnDelegateResourceContract, TronUnfreezeBalanceContract, TronUnfreezeBalanceV2Contract, TronVoteWitnessContract, TronWithdrawBalanceContract, TronWithdrawExpireUnfreezeContract, TxAck, TxAckInput, TxAckInputWrapper, TxAckOutput, TxAckOutputWrapper, TxAckPaymentRequest, TxAckPrevExtraData, TxAckPrevExtraDataWrapper, TxAckPrevInput, TxAckPrevInputWrapper, TxAckPrevMeta, TxAckPrevOutput, TxAckPrevOutputWrapper, TxAckResponse, TxInput, TxInputType, TxOutput, TxOutputBinType, TxOutputType, TxRequest, TxRequestDetailsType, TxRequestSerializedType, TypedCall, UintType, UnLockDevice, UnLockDeviceResponse, UnlockPath, UnlockedPathRequest, UpgradeFileHeader, VerifyMessage, ViewAmount, ViewDetail, ViewRawData, ViewSignLayout, ViewSignPage, ViewTip, ViewTipType, ViewVerifyPage, Vote, WL_OperationType, Wallpaper, WallpaperTarget, WipeDevice, WordAck, WordRequest, WordRequestType, WriteSEPrivateKey, WriteSEPublicCert, ZoomRequest, bytesToHex, concatUint8Arrays, _default as default, experimental_field, experimental_message, facotry, getErrorMessage, hexToBytes, probeProtocolV2, index as protocolV1, protocolV2Codec as protocolV2, withProtocolTimeout };
|
|
6953
|
+
export { AcquireInput, Address, AlephiumAddress, AlephiumBytecodeAck, AlephiumBytecodeRequest, AlephiumGetAddress, AlephiumMessageSignature, AlephiumSignMessage, AlephiumSignTx, AlephiumSignedTx, AlephiumTxAck, AlephiumTxRequest, AlgorandAddress, AlgorandGetAddress, AlgorandSignTx, AlgorandSignedTx, AmountUnit, ApplyFlags, ApplySettings, AptosAddress, AptosGetAddress, AptosMessagePayload, AptosMessageSignature, AptosSignMessage, AptosSignSIWAMessage, AptosSignTx, AptosSignedTx, AptosTransactionType, AuthorizeCoinJoin, BIP32Address, BackupDevice, BackupType, BatchGetPublickeys, BenfenAddress, BenfenGetAddress, BenfenMessageSignature, BenfenSignMessage, BenfenSignTx, BenfenSignedTx, BenfenTxAck, BenfenTxRequest, BinanceAddress, BinanceCancelMsg, BinanceCoin, BinanceGetAddress, BinanceGetPublicKey, BinanceInputOutput, BinanceOrderMsg, BinanceOrderSide, BinanceOrderType, BinancePublicKey, BinanceSignTx, BinanceSignedTx, BinanceTimeInForce, BinanceTransferMsg, BinanceTxRequest, BixinBackupAck, BixinBackupDevice, BixinBackupDeviceAck, BixinBackupRequest, BixinLoadDevice, BixinMessageSE, BixinOutMessageSE, BixinPinInputOnDevice, BixinRestoreAck, BixinRestoreRequest, BixinSeedOperate, BixinVerifyDeviceAck, BixinVerifyDeviceRequest, BixinWhiteListAck, BixinWhiteListRequest, BlurRequest, ButtonAck, ButtonRequest, ButtonRequestType, Cancel, CancelAuthorization, Capability, CardanoAddress, CardanoAddressParametersType, CardanoAddressType, CardanoAssetGroup, CardanoBlockchainPointerType, CardanoCVoteRegistrationDelegation, CardanoCVoteRegistrationFormat, CardanoCVoteRegistrationParametersType, CardanoCertificateType, CardanoDRep, CardanoDRepType, CardanoDerivationType, CardanoGetAddress, CardanoGetNativeScriptHash, CardanoGetPublicKey, CardanoMessageSignature, CardanoNativeScript, CardanoNativeScriptHash, CardanoNativeScriptHashDisplayFormat, CardanoNativeScriptType, CardanoPoolMetadataType, CardanoPoolOwner, CardanoPoolParametersType, CardanoPoolRelayParameters, CardanoPoolRelayType, CardanoPublicKey, CardanoSignMessage, CardanoSignTxFinished, CardanoSignTxInit, CardanoToken, CardanoTxAuxiliaryData, CardanoTxAuxiliaryDataSupplement, CardanoTxAuxiliaryDataSupplementType, CardanoTxBodyHash, CardanoTxCertificate, CardanoTxCollateralInput, CardanoTxHostAck, CardanoTxInlineDatumChunk, CardanoTxInput, CardanoTxItemAck, CardanoTxMint, CardanoTxOutput, CardanoTxOutputSerializationFormat, CardanoTxReferenceInput, CardanoTxReferenceScriptChunk, CardanoTxRequiredSigner, CardanoTxSigningMode, CardanoTxWithdrawal, CardanoTxWitnessRequest, CardanoTxWitnessResponse, CardanoTxWitnessType, ChangeOutputScriptType, ChangePin, ChangeWipeCode, CipherKeyValue, CipheredKeyValue, CoinJoinRequest, CoinPurchaseMemo, CommandFlags, ConfluxAddress, ConfluxGetAddress, ConfluxMessageSignature, ConfluxSignMessage, ConfluxSignMessageCIP23, ConfluxSignTx, ConfluxTxAck, ConfluxTxRequest, CosmosAddress, CosmosGetAddress, CosmosSignTx, CosmosSignedTx, DecredStakingSpendType, Deprecated_PassphraseStateAck, Deprecated_PassphraseStateRequest, DeviceBackToBoot, DeviceCertificate, DeviceCertificateRead, DeviceCertificateSign, DeviceCertificateSignature, DeviceCertificateWrite, DeviceCoprocessorInfo, DeviceEraseSector, DeviceErrorCode, DeviceFactoryAck, DeviceFactoryInfo, DeviceFactoryInfoGet, DeviceFactoryInfoManufactureTime, DeviceFactoryInfoSet, DeviceFactoryPermanentLock, DeviceFactoryTest, DeviceFirmwareImageInfo, DeviceFirmwareTarget, DeviceFirmwareTargetType, DeviceFirmwareUpdateRecord, DeviceFirmwareUpdateRecordFields, DeviceFirmwareUpdateRequest, DeviceFirmwareUpdateStage, DeviceFirmwareUpdateStatus, DeviceFirmwareUpdateStatusGet, DeviceFirmwareUpdateTaskStatus, DeviceHardwareInfo, DeviceInfo, DeviceInfoGet, DeviceInfoSettings, DeviceInfoTargets, DeviceInfoTypes, DeviceMainMcuInfo, DeviceMiscUsbMscControl, DeviceReboot, DeviceRebootType, DeviceSEInfo, DeviceSEState, DeviceSeType, DeviceSession, DeviceSessionAskPassphrase, DeviceSessionAskPin, DeviceSessionAskPin_FailureSubCodes, DeviceSessionErrorCode, DeviceSessionGet, DeviceSessionPinType, DeviceSessionSeedDomain, DeviceSettings, DeviceSettingsGet, DeviceSettingsPage, DeviceSettingsPageShow, DeviceSettingsSet, DeviceStatus, DeviceStatusGet, DeviceType, DnxAddress, DnxComputedKeyImage, DnxGetAddress, DnxInputAck, DnxInputRequest, DnxRTSigsRequest, DnxSignTx, DnxSignedTx, DnxTxKey, DoPreauthorized, ECDHSessionKey, EcdsaPublicKeys, EmmcDir, EmmcDirList, EmmcDirMake, EmmcDirRemove, EmmcFile, EmmcFileDelete, EmmcFileRead, EmmcFileWrite, EmmcFixPermission, EmmcPath, EmmcPathInfo, EndSession, Entropy, EntropyAck, EntropyRequest, Enum_BackupType, Enum_ButtonRequestType, Enum_Capability, Enum_InputScriptType, Enum_KaspaInputScriptType, Enum_KaspaOutputScriptType, Enum_KaspaRequestType, Enum_OutputScriptType, Enum_PinMatrixRequestType, Enum_ProtocolV2Capability, Enum_RequestType, Enum_SafetyCheckLevel, Enum_WordRequestType, EosActionBuyRam, EosActionBuyRamBytes, EosActionCommon, EosActionDelegate, EosActionDeleteAuth, EosActionLinkAuth, EosActionNewAccount, EosActionRefund, EosActionSellRam, EosActionTransfer, EosActionUndelegate, EosActionUnknown, EosActionUnlinkAuth, EosActionUpdateAuth, EosActionVoteProducer, EosAsset, EosAuthorization, EosAuthorizationAccount, EosAuthorizationKey, EosAuthorizationWait, EosGetPublicKey, EosPermissionLevel, EosPublicKey, EosSignTx, EosSignedTx, EosTxActionAck, EosTxActionRequest, EosTxHeader, EthereumAccessList, EthereumAccessListOneKey, EthereumAddress, EthereumAddressOneKey, EthereumAuthorizationOneKey, EthereumAuthorizationSignature, EthereumDataType, EthereumDataTypeOneKey, EthereumDefinitionType, EthereumDefinitions, EthereumFieldType, EthereumFieldTypeOneKey, EthereumGetAddress, EthereumGetAddressOneKey, EthereumGetPublicKey, EthereumGetPublicKeyOneKey, EthereumGnosisSafeTxAck, EthereumGnosisSafeTxOperation, EthereumGnosisSafeTxRequest, EthereumMessageSignature, EthereumMessageSignatureOneKey, EthereumNetworkInfo, EthereumPublicKey, EthereumPublicKeyOneKey, EthereumSignMessage, EthereumSignMessageEIP712, EthereumSignMessageOneKey, EthereumSignTx, EthereumSignTxEIP1559, EthereumSignTxEIP1559OneKey, EthereumSignTxEIP7702OneKey, EthereumSignTxOneKey, EthereumSignTypedData, EthereumSignTypedDataOneKey, EthereumSignTypedDataQR, EthereumSignTypedHash, EthereumSignTypedHashOneKey, EthereumStructMember, EthereumStructMemberOneKey, EthereumTokenInfo, EthereumTxAck, EthereumTxAckOneKey, EthereumTxRequest, EthereumTxRequestOneKey, EthereumTypedDataSignature, EthereumTypedDataSignatureOneKey, EthereumTypedDataStructAck, EthereumTypedDataStructAckOneKey, EthereumTypedDataStructRequest, EthereumTypedDataStructRequestOneKey, EthereumTypedDataValueAck, EthereumTypedDataValueAckOneKey, EthereumTypedDataValueRequest, EthereumTypedDataValueRequestOneKey, EthereumVerifyMessage, EthereumVerifyMessageOneKey, ExportType, Failure, FailureType, Features, FileInfo, FileInfoList, FilecoinAddress, FilecoinGetAddress, FilecoinSignTx, FilecoinSignedTx, FilesystemDir, FilesystemDirList, FilesystemDirMake, FilesystemDirRemove, FilesystemFile, FilesystemFileDelete, FilesystemFileRead, FilesystemFileWrite, FilesystemFormat, FilesystemPathInfo, FilesystemPathInfoQuery, FilesystemPermissionFix, FirmwareErase, FirmwareErase_ex, FirmwareHash, FirmwareRequest, FirmwareUpdateEmmc, FirmwareUpload, GetAddress, GetDeviceInfo, GetECDHSessionKey, GetEntropy, GetFeatures, GetFirmwareHash, GetNextU2FCounter, GetNonce, GetOwnershipId, GetOwnershipProof, GetPassphraseState, GetPublicKey, GetPublicKeyMultiple, HDNodePathType, HDNodeType, IdentityType, Initialize, InputScriptType, InternalInputScriptType, InternalMyAddressRequest, KaspaAddress, KaspaGetAddress, KaspaInputScriptType, KaspaOutpoint, KaspaOutputScriptType, KaspaRequestType, KaspaSignTx, KaspaSignedTx, KaspaTxAckInput, KaspaTxAckOutput, KaspaTxAckPayloadChunk, KaspaTxAckPrevInput, KaspaTxAckPrevMeta, KaspaTxAckPrevOutput, KaspaTxInputAck, KaspaTxInputRequest, KaspaTxRequest, KaspaTxRequestSignature, ListResDir, LnurlAuth, LnurlAuthResp, LockDevice, LogBlockCommand, LowLevelDevice, LowlevelTransportSharedPlugin, MessageFromOneKey, MessageKey, MessageResponse, MessageResponseMap, MessageSignature, MessageType, messages as Messages, MoneroAccountPublicAddress, MoneroAddress, MoneroExportedKeyImage, MoneroGetAddress, MoneroGetTxKeyAck, MoneroGetTxKeyRequest, MoneroGetWatchKey, MoneroKeyImageExportInitAck, MoneroKeyImageExportInitRequest, MoneroKeyImageSyncFinalAck, MoneroKeyImageSyncFinalRequest, MoneroKeyImageSyncStepAck, MoneroKeyImageSyncStepRequest, MoneroLiveRefreshFinalAck, MoneroLiveRefreshFinalRequest, MoneroLiveRefreshStartAck, MoneroLiveRefreshStartRequest, MoneroLiveRefreshStepAck, MoneroLiveRefreshStepRequest, MoneroMultisigKLRki, MoneroNetworkType, MoneroOutputEntry, MoneroRctKeyPublic, MoneroRingCtSig, MoneroSubAddressIndicesList, MoneroTransactionAllInputsSetAck, MoneroTransactionAllInputsSetRequest, MoneroTransactionAllOutSetAck, MoneroTransactionAllOutSetRequest, MoneroTransactionData, MoneroTransactionDestinationEntry, MoneroTransactionFinalAck, MoneroTransactionFinalRequest, MoneroTransactionInitAck, MoneroTransactionInitRequest, MoneroTransactionInputViniAck, MoneroTransactionInputViniRequest, MoneroTransactionInputsPermutationAck, MoneroTransactionInputsPermutationRequest, MoneroTransactionRsigData, MoneroTransactionSetInputAck, MoneroTransactionSetInputRequest, MoneroTransactionSetOutputAck, MoneroTransactionSetOutputRequest, MoneroTransactionSignInputAck, MoneroTransactionSignInputRequest, MoneroTransactionSourceEntry, MoneroTransferDetails, MoneroWatchKey, MultisigRedeemScriptType, NEMAddress, NEMAggregateModification, NEMCosignatoryModification, NEMDecryptMessage, NEMDecryptedMessage, NEMGetAddress, NEMImportanceTransfer, NEMImportanceTransferMode, NEMModificationType, NEMMosaic, NEMMosaicCreation, NEMMosaicDefinition, NEMMosaicLevy, NEMMosaicSupplyChange, NEMProvisionNamespace, NEMSignTx, NEMSignedTx, NEMSupplyChangeType, NEMTransactionCommon, NEMTransfer, NFTWriteData, NFTWriteInfo, NearAddress, NearGetAddress, NearSignTx, NearSignedTx, NeoAddress, NeoGetAddress, NeoSignTx, NeoSignedTx, NervosAddress, NervosGetAddress, NervosSignTx, NervosSignedTx, NervosTxAck, NervosTxRequest, NexaAddress, NexaGetAddress, NexaSignTx, NexaSignedTx, NexaTxInputAck, NexaTxInputRequest, NextU2FCounter, NftUpdate, Nonce, NostrDecryptMessage, NostrDecryptedMessage, NostrEncryptMessage, NostrEncryptedMessage, NostrGetPublicKey, NostrPublicKey, NostrSignEvent, NostrSignSchnorr, NostrSignedEvent, NostrSignedSchnorr, OnboardingPhase, OnboardingSetupKind, OnboardingSetupMethod, OnboardingSetupStatus, OnboardingStatus, OnboardingStatusGet, OnboardingStep, OneKeyDeviceCommType, OneKeyDeviceInfo, OneKeyDeviceInfoBase, OneKeyDeviceInfoWithSession, OneKeyDeviceType, OneKeyMobileDeviceInfo, OneKeySEState, OneKeySeType, OnekeyFeatures, OnekeyGetFeatures, OutputScriptType, OwnershipId, OwnershipProof, PROTOCOL_V1_CHUNK_PAYLOAD_SIZE, PROTOCOL_V1_ENVELOPE_HEADER_SIZE, PROTOCOL_V1_HEADER_BYTE, PROTOCOL_V1_MESSAGE_HEADER_SIZE, PROTOCOL_V1_REPORT_ID, PROTOCOL_V1_USB_PACKET_SIZE, PROTOCOL_V2_BLE_FILE_CHUNK_SIZE, PROTOCOL_V2_BLE_FILE_READ_CHUNK_SIZE, PROTOCOL_V2_BLE_FIRMWARE_FILE_CHUNK_SIZE, PROTOCOL_V2_BLE_FRAME_MAX_BYTES, PROTOCOL_V2_CHANNEL_BLE_UART, PROTOCOL_V2_CHANNEL_SOCKET, PROTOCOL_V2_CHANNEL_USB, PROTOCOL_V2_DEFAULT_RESPONSE_TIMEOUT_MS, PROTOCOL_V2_FILE_CHUNK_SIZE, PROTOCOL_V2_FRAME_MAX_BYTES, PROTOCOL_V2_PACKET_SRC_COMMAND, PROTOCOL_V2_SYS_MESSAGE_THRESHOLD, PROTOCOL_V2_WEBUSB_FILE_CHUNK_SIZE, PassphraseAck, PassphraseRequest, PassphraseState, Path, PaymentRequestMemo, PinMatrixAck, PinMatrixRequest, PinMatrixRequestType, Ping, PolkadotAddress, PolkadotGetAddress, PolkadotSignTx, PolkadotSignedTx, PortfolioUpdate, PreauthorizedRequest, PrevInput, PrevOutput, PrevTx, ProtocolInfo, ProtocolInfoRequest, ProtocolType, ProtocolV1, ProtocolV2, ProtocolV2BleFrameWriterOptions, ProtocolV2CallContext, ProtocolV2CallOptions, ProtocolV2Capability, ProtocolV2DeviceInfo, ProtocolV2FailureType, ProtocolV2FrameAssembler, ProtocolV2LinkAdapter, ProtocolV2LinkDisabledError, ProtocolV2LinkError, ProtocolV2LinkErrorClassification, ProtocolV2LinkErrorCode, ProtocolV2LinkManager, ProtocolV2LinkManagerOptions, ProtocolV2Schemas, ProtocolV2SequenceCursor, ProtocolV2Session, ProtocolV2SessionOptions, ProtocolV2UsbTransportBase, ProtocolV2UsbTransportBaseOptions, PublicKey, PublicKeyMultiple, ReadSEPublicCert, ReadSEPublicKey, Reboot, RebootToBoardloader, RebootToBootloader, RebootType, RecoveryDevice, RecoveryDeviceType, RefundMemo, RequestType, ResetDevice, ResourceAck, ResourceRequest, ResourceType, ResourceUpdate, ResourceUpload, RippleAddress, RippleGetAddress, RipplePayment, RippleSignTx, RippleSignedTx, SEMessageSignature, SEPublicCert, SEPublicKey, SESignMessage, SafetyCheckLevel, ScdoAddress, ScdoGetAddress, ScdoSignMessage, ScdoSignTx, ScdoSignedMessage, ScdoSignedTx, ScdoTxAck, SdProtect, SdProtectOperationType, SeedRequestType, SelfTest, SetBusy, SetU2FCounter, SignIdentity, SignMessage, SignPsbt, SignTx, SignedIdentity, SignedPsbt, SolanaAddress, SolanaGetAddress, SolanaMessageSignature, SolanaOffChainMessageFormat, SolanaOffChainMessageVersion, SolanaSignOffChainMessage, SolanaSignTx, SolanaSignUnsafeMessage, SolanaSignedTx, SolanaTxATADetails, SolanaTxExtraInfo, SpiFlashData, SpiFlashRead, SpiFlashWrite, StarcoinAddress, StarcoinGetAddress, StarcoinGetPublicKey, StarcoinMessageSignature, StarcoinPublicKey, StarcoinSignMessage, StarcoinSignTx, StarcoinSignedTx, StarcoinVerifyMessage, StellarAccountMergeOp, StellarAddress, StellarAllowTrustOp, StellarAsset, StellarAssetType, StellarBumpSequenceOp, StellarChangeTrustOp, StellarCreateAccountOp, StellarCreatePassiveSellOfferOp, StellarGetAddress, StellarInvokeHostFunctionOp, StellarManageBuyOfferOp, StellarManageDataOp, StellarManageSellOfferOp, StellarMemoType, StellarPathPaymentStrictReceiveOp, StellarPathPaymentStrictSendOp, StellarPaymentOp, StellarRequestType, StellarSetOptionsOp, StellarSignTx, StellarSignedTx, StellarSignerType, StellarSorobanDataAck, StellarSorobanDataRequest, StellarTxOpRequest, Success, SuiAddress, SuiGetAddress, SuiMessageSignature, SuiSignMessage, SuiSignTx, SuiSignedTx, SuiTxAck, SuiTxRequest, TRANSPORT_EVENT, TextMemo, TezosAddress, TezosBallotOp, TezosBallotType, TezosContractID, TezosContractType, TezosDelegationOp, TezosGetAddress, TezosGetPublicKey, TezosManagerTransfer, TezosOriginationOp, TezosParametersManager, TezosProposalOp, TezosPublicKey, TezosRevealOp, TezosSignTx, TezosSignedTx, TezosTransactionOp, TonAddress, TonGetAddress, TonSignData, TonSignDataType, TonSignMessage, TonSignProof, TonSignedData, TonSignedMessage, TonSignedProof, TonTxAck, TonWalletVersion, TonWorkChain, Transport, TransportCallOptions, TransportDeviceDisconnectEvent, TransportWriteMetrics, TronAddress, TronCancelAllUnfreezeV2Contract, TronContract, TronDelegateResourceContract, TronFreezeBalanceContract, TronFreezeBalanceV2Contract, TronGetAddress, TronMessageSignature, TronMessageType, TronResourceCode, TronSignMessage, TronSignTx, TronSignedTx, TronTransferContract, TronTriggerSmartContract, TronUnDelegateResourceContract, TronUnfreezeBalanceContract, TronUnfreezeBalanceV2Contract, TronVoteWitnessContract, TronWithdrawBalanceContract, TronWithdrawExpireUnfreezeContract, TxAck, TxAckInput, TxAckInputWrapper, TxAckOutput, TxAckOutputWrapper, TxAckPaymentRequest, TxAckPrevExtraData, TxAckPrevExtraDataWrapper, TxAckPrevInput, TxAckPrevInputWrapper, TxAckPrevMeta, TxAckPrevOutput, TxAckPrevOutputWrapper, TxAckResponse, TxInput, TxInputType, TxOutput, TxOutputBinType, TxOutputType, TxRequest, TxRequestDetailsType, TxRequestSerializedType, TypedCall, UiAnimationCommand, UiAnimationRequest, UiAnimationType, UintType, UnLockDevice, UnLockDeviceResponse, UnlockPath, UnlockedPathRequest, UpgradeFileHeader, VerifyMessage, ViewAmount, ViewDetail, ViewRawData, ViewSignLayout, ViewSignPage, ViewTip, ViewTipType, ViewVerifyPage, Vote, WL_OperationType, WipeDevice, WordAck, WordRequest, WordRequestType, WriteSEPrivateKey, WriteSEPublicCert, ZoomRequest, bytesToHex, concatUint8Arrays, createProtocolV2LinkDisabledError, createTransportCallLog, _default as default, experimental_field, experimental_message, facotry, getErrorMessage, getSafeTransportLogPayload, hexToBytes, isProtocolV2HighThroughputCall, isProtocolV2LinkDisabledError, isProtocolV2LinkDisabledFailure, isProtocolV2LinkError, probeProtocolV2, index as protocolV1, protocolV2Codec as protocolV2, shouldSuppressHighVolumeCallLog, withProtocolTimeout, writeProtocolV2BleFrame };
|