@onekeyfe/hd-transport 1.2.0-alpha.11 → 1.2.0-alpha.111
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 +165 -13
- package/__tests__/protocol-v2-ble-frame-writer.test.js +119 -0
- package/__tests__/protocol-v2-link-manager.test.js +120 -9
- package/__tests__/protocol-v2-usb-transport-base.test.js +36 -2
- package/__tests__/protocol-v2.test.js +553 -63
- 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 +687 -255
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +661 -296
- package/dist/protocols/index.d.ts +25 -6
- 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 +12 -2
- package/dist/protocols/v2/decode.d.ts.map +1 -1
- package/dist/protocols/v2/encode.d.ts +2 -3
- package/dist/protocols/v2/encode.d.ts.map +1 -1
- package/dist/protocols/v2/errors.d.ts +8 -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 -1
- package/dist/protocols/v2/index.d.ts.map +1 -1
- package/dist/protocols/v2/link-manager.d.ts +4 -0
- package/dist/protocols/v2/link-manager.d.ts.map +1 -1
- package/dist/protocols/v2/session.d.ts +10 -4
- package/dist/protocols/v2/session.d.ts.map +1 -1
- package/dist/protocols/v2/usb-transport-base.d.ts +1 -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 +336 -155
- package/dist/types/messages.d.ts.map +1 -1
- package/dist/types/transport.d.ts +20 -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 +1030 -567
- package/package.json +3 -3
- package/scripts/protobuf-build.sh +85 -217
- package/scripts/protobuf-patches/index.js +1 -0
- package/scripts/protobuf-types.js +19 -1
- package/src/constants.ts +30 -16
- package/src/index.ts +5 -1
- package/src/protocols/index.ts +128 -40
- package/src/protocols/v2/ble-frame-writer.ts +77 -0
- package/src/protocols/v2/crc8.ts +1 -1
- package/src/protocols/v2/decode.ts +50 -35
- package/src/protocols/v2/encode.ts +2 -28
- package/src/protocols/v2/errors.ts +25 -0
- package/src/protocols/v2/frame-assembler.ts +6 -4
- package/src/protocols/v2/index.ts +2 -1
- package/src/protocols/v2/link-manager.ts +54 -5
- package/src/protocols/v2/session.ts +151 -200
- package/src/protocols/v2/usb-transport-base.ts +29 -10
- package/src/serialization/protobuf/decode.ts +4 -1
- package/src/serialization/protobuf/encode.ts +5 -1
- package/src/types/messages.ts +409 -197
- package/src/types/transport.ts +28 -3
- package/src/utils/transportLog.ts +102 -0
- package/dist/protocols/v2/debug.d.ts +0 -13
- package/dist/protocols/v2/debug.d.ts.map +0 -1
- package/src/protocols/v2/debug.ts +0 -26
package/dist/index.d.ts
CHANGED
|
@@ -63,32 +63,81 @@ 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
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
type ProtocolV2FrameDebugOptions = {
|
|
72
|
-
logger?: ProtocolV2DebugLogger;
|
|
73
|
-
logPrefix?: string;
|
|
74
|
-
context?: string;
|
|
75
|
-
messageName?: string;
|
|
76
|
-
messageTypeId?: number;
|
|
77
|
-
pbPayloadLength?: number;
|
|
78
|
-
};
|
|
79
|
-
declare function logProtocolV2Debug(options: ProtocolV2FrameDebugOptions | undefined, stage: string, details: Record<string, unknown>): void;
|
|
80
|
-
|
|
71
|
+
/**
|
|
72
|
+
* Advance a Protocol V2 sequence counter: 1-255, wraps around skipping 0.
|
|
73
|
+
*/
|
|
81
74
|
declare function nextProtoSeq(current: number): number;
|
|
82
|
-
|
|
83
|
-
|
|
75
|
+
/**
|
|
76
|
+
* Build a raw Protocol V2 frame (0x5A framing).
|
|
77
|
+
*
|
|
78
|
+
* Frame layout (PROTO_HEAD_CRC_SIZE = 8 overhead bytes):
|
|
79
|
+
* [0] SOF = 0x5A
|
|
80
|
+
* [1] frameLen low byte
|
|
81
|
+
* [2] frameLen high byte
|
|
82
|
+
* [3] CRC8 of bytes 0-2 (pre-header CRC)
|
|
83
|
+
* [4] router
|
|
84
|
+
* [5] attr = ((packetSrc & 0x0F) << 2) | dataType
|
|
85
|
+
* [6] seq (1-255, wraps skipping 0)
|
|
86
|
+
* [7..N-2] payload
|
|
87
|
+
* [N-1] CRC8 of bytes 0 to N-2 (frame CRC)
|
|
88
|
+
*/
|
|
89
|
+
declare function encodeFrame(payload: Uint8Array | null, packetSrc?: number, router?: number, seq?: number): Uint8Array;
|
|
90
|
+
/**
|
|
91
|
+
* Build a Protocol V2 frame carrying a protobuf message.
|
|
92
|
+
*
|
|
93
|
+
* Payload layout:
|
|
94
|
+
* [0-1] messageTypeId as little-endian uint16
|
|
95
|
+
* [2..] protobuf-encoded message bytes
|
|
96
|
+
*/
|
|
97
|
+
declare function encodeProtobufFrame(messageTypeId: number, pbPayload: Uint8Array, packetSrc?: number, router?: number, seq?: number): Uint8Array;
|
|
84
98
|
|
|
85
99
|
interface ProtoV2Frame {
|
|
100
|
+
/** Little-endian message type ID */
|
|
86
101
|
messageTypeId: number;
|
|
102
|
+
/** Raw protobuf-encoded payload (bytes after the 2-byte messageTypeId) */
|
|
87
103
|
pbPayload: Uint8Array;
|
|
104
|
+
/** Sequence number from the frame header */
|
|
88
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;
|
|
89
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;
|
|
90
121
|
declare function isAckFrame(data: Uint8Array): boolean;
|
|
91
|
-
|
|
122
|
+
/**
|
|
123
|
+
* Parse and validate a Protocol V2 response frame.
|
|
124
|
+
*
|
|
125
|
+
* Validates:
|
|
126
|
+
* - SOF byte (0x5A)
|
|
127
|
+
* - Header CRC (bytes 0-2)
|
|
128
|
+
* - Frame CRC (full frame except last byte)
|
|
129
|
+
*
|
|
130
|
+
* Returns the decoded messageTypeId, raw protobuf payload, and sequence number.
|
|
131
|
+
*/
|
|
132
|
+
declare function decodeFrame(data: Uint8Array): ProtoV2Frame;
|
|
133
|
+
|
|
134
|
+
type ProtocolV2LinkErrorCode = 'response-timeout' | 'io' | 'generation' | 'router' | 'packet-source' | 'ack-sequence' | 'response-sequence' | 'frame';
|
|
135
|
+
declare class ProtocolV2LinkError extends Error {
|
|
136
|
+
readonly code: ProtocolV2LinkErrorCode;
|
|
137
|
+
readonly cause?: unknown;
|
|
138
|
+
constructor(code: ProtocolV2LinkErrorCode, message: string, cause?: unknown);
|
|
139
|
+
}
|
|
140
|
+
declare const isProtocolV2LinkError: (error: unknown) => error is ProtocolV2LinkError;
|
|
92
141
|
|
|
93
142
|
declare function concatUint8Arrays(arrays: Uint8Array[]): Uint8Array;
|
|
94
143
|
declare class ProtocolV2FrameAssembler {
|
|
@@ -97,11 +146,31 @@ declare class ProtocolV2FrameAssembler {
|
|
|
97
146
|
constructor(maxFrameBytes?: number);
|
|
98
147
|
reset(): void;
|
|
99
148
|
push(chunk: Uint8Array): Uint8Array | undefined;
|
|
149
|
+
/**
|
|
150
|
+
* Append a chunk (optional) and extract every complete frame currently
|
|
151
|
+
* buffered. Same validation/throw semantics as push(); push() stays
|
|
152
|
+
* backward compatible for callers that drain one frame at a time.
|
|
153
|
+
*/
|
|
100
154
|
drain(chunk?: Uint8Array): Uint8Array[];
|
|
101
155
|
private append;
|
|
102
156
|
private extractFrame;
|
|
103
157
|
}
|
|
104
158
|
|
|
159
|
+
type ProtocolV2BleFrameWriterOptions = {
|
|
160
|
+
frame: Uint8Array;
|
|
161
|
+
packetCapacity: number;
|
|
162
|
+
writePacket: (packet: Uint8Array, packetIndex: number) => Promise<void>;
|
|
163
|
+
assertActive?: () => void;
|
|
164
|
+
signal?: AbortSignal;
|
|
165
|
+
abortMessage?: string;
|
|
166
|
+
initialDelayMs?: number;
|
|
167
|
+
burstSize?: number;
|
|
168
|
+
burstPauseMs?: number;
|
|
169
|
+
flushDelayMs?: number;
|
|
170
|
+
wait?: (timeoutMs: number) => Promise<void>;
|
|
171
|
+
};
|
|
172
|
+
declare function writeProtocolV2BleFrame({ frame, packetCapacity, writePacket, assertActive, signal, abortMessage, initialDelayMs, burstSize, burstPauseMs, flushDelayMs, wait, }: ProtocolV2BleFrameWriterOptions): Promise<void>;
|
|
173
|
+
|
|
105
174
|
declare const protocolV2Codec_PROTO_HEAD_SOF: typeof PROTO_HEAD_SOF;
|
|
106
175
|
declare const protocolV2Codec_PROTO_PRE_HEAD_SIZE: typeof PROTO_PRE_HEAD_SIZE;
|
|
107
176
|
declare const protocolV2Codec_PROTO_HEAD_CRC_SIZE: typeof PROTO_HEAD_CRC_SIZE;
|
|
@@ -111,18 +180,23 @@ declare const protocolV2Codec_PROTO_DATA_TYPE_PACKET: typeof PROTO_DATA_TYPE_PAC
|
|
|
111
180
|
declare const protocolV2Codec_PROTO_DATA_TYPE_ACK: typeof PROTO_DATA_TYPE_ACK;
|
|
112
181
|
declare const protocolV2Codec_CRC8_TABLE: typeof CRC8_TABLE;
|
|
113
182
|
declare const protocolV2Codec_crc8: typeof crc8;
|
|
114
|
-
type protocolV2Codec_ProtocolV2DebugLogger = ProtocolV2DebugLogger;
|
|
115
|
-
type protocolV2Codec_ProtocolV2FrameDebugOptions = ProtocolV2FrameDebugOptions;
|
|
116
|
-
declare const protocolV2Codec_logProtocolV2Debug: typeof logProtocolV2Debug;
|
|
117
183
|
declare const protocolV2Codec_nextProtoSeq: typeof nextProtoSeq;
|
|
118
184
|
declare const protocolV2Codec_encodeFrame: typeof encodeFrame;
|
|
119
185
|
declare const protocolV2Codec_encodeProtobufFrame: typeof encodeProtobufFrame;
|
|
120
186
|
type protocolV2Codec_ProtoV2Frame = ProtoV2Frame;
|
|
187
|
+
type protocolV2Codec_ProtoV2FrameHeader = ProtoV2FrameHeader;
|
|
188
|
+
declare const protocolV2Codec_inspectFrameHeader: typeof inspectFrameHeader;
|
|
121
189
|
declare const protocolV2Codec_isAckFrame: typeof isAckFrame;
|
|
122
190
|
declare const protocolV2Codec_decodeFrame: typeof decodeFrame;
|
|
191
|
+
type protocolV2Codec_ProtocolV2LinkErrorCode = ProtocolV2LinkErrorCode;
|
|
192
|
+
type protocolV2Codec_ProtocolV2LinkError = ProtocolV2LinkError;
|
|
193
|
+
declare const protocolV2Codec_ProtocolV2LinkError: typeof ProtocolV2LinkError;
|
|
194
|
+
declare const protocolV2Codec_isProtocolV2LinkError: typeof isProtocolV2LinkError;
|
|
123
195
|
declare const protocolV2Codec_concatUint8Arrays: typeof concatUint8Arrays;
|
|
124
196
|
type protocolV2Codec_ProtocolV2FrameAssembler = ProtocolV2FrameAssembler;
|
|
125
197
|
declare const protocolV2Codec_ProtocolV2FrameAssembler: typeof ProtocolV2FrameAssembler;
|
|
198
|
+
type protocolV2Codec_ProtocolV2BleFrameWriterOptions = ProtocolV2BleFrameWriterOptions;
|
|
199
|
+
declare const protocolV2Codec_writeProtocolV2BleFrame: typeof writeProtocolV2BleFrame;
|
|
126
200
|
declare namespace protocolV2Codec {
|
|
127
201
|
export {
|
|
128
202
|
protocolV2Codec_PROTO_HEAD_SOF as PROTO_HEAD_SOF,
|
|
@@ -134,17 +208,21 @@ declare namespace protocolV2Codec {
|
|
|
134
208
|
protocolV2Codec_PROTO_DATA_TYPE_ACK as PROTO_DATA_TYPE_ACK,
|
|
135
209
|
protocolV2Codec_CRC8_TABLE as CRC8_TABLE,
|
|
136
210
|
protocolV2Codec_crc8 as crc8,
|
|
137
|
-
protocolV2Codec_ProtocolV2DebugLogger as ProtocolV2DebugLogger,
|
|
138
|
-
protocolV2Codec_ProtocolV2FrameDebugOptions as ProtocolV2FrameDebugOptions,
|
|
139
|
-
protocolV2Codec_logProtocolV2Debug as logProtocolV2Debug,
|
|
140
211
|
protocolV2Codec_nextProtoSeq as nextProtoSeq,
|
|
141
212
|
protocolV2Codec_encodeFrame as encodeFrame,
|
|
142
213
|
protocolV2Codec_encodeProtobufFrame as encodeProtobufFrame,
|
|
143
214
|
protocolV2Codec_ProtoV2Frame as ProtoV2Frame,
|
|
215
|
+
protocolV2Codec_ProtoV2FrameHeader as ProtoV2FrameHeader,
|
|
216
|
+
protocolV2Codec_inspectFrameHeader as inspectFrameHeader,
|
|
144
217
|
protocolV2Codec_isAckFrame as isAckFrame,
|
|
145
218
|
protocolV2Codec_decodeFrame as decodeFrame,
|
|
219
|
+
protocolV2Codec_ProtocolV2LinkErrorCode as ProtocolV2LinkErrorCode,
|
|
220
|
+
protocolV2Codec_ProtocolV2LinkError as ProtocolV2LinkError,
|
|
221
|
+
protocolV2Codec_isProtocolV2LinkError as isProtocolV2LinkError,
|
|
146
222
|
protocolV2Codec_concatUint8Arrays as concatUint8Arrays,
|
|
147
223
|
protocolV2Codec_ProtocolV2FrameAssembler as ProtocolV2FrameAssembler,
|
|
224
|
+
protocolV2Codec_ProtocolV2BleFrameWriterOptions as ProtocolV2BleFrameWriterOptions,
|
|
225
|
+
protocolV2Codec_writeProtocolV2BleFrame as writeProtocolV2BleFrame,
|
|
148
226
|
};
|
|
149
227
|
}
|
|
150
228
|
|
|
@@ -156,10 +234,8 @@ type ProtocolV2Schemas$1 = {
|
|
|
156
234
|
type ProtocolV2FrameOptions = {
|
|
157
235
|
packetSrc?: number;
|
|
158
236
|
router?: number;
|
|
237
|
+
/** Sequence number (1-255). Managed per-session by ProtocolV2Session. */
|
|
159
238
|
seq?: number;
|
|
160
|
-
logger?: ProtocolV2DebugLogger;
|
|
161
|
-
logPrefix?: string;
|
|
162
|
-
context?: string;
|
|
163
239
|
};
|
|
164
240
|
declare const ProtocolV1: {
|
|
165
241
|
encodeEnvelope: typeof encodeEnvelopeMessage;
|
|
@@ -174,8 +250,31 @@ declare const ProtocolV1: {
|
|
|
174
250
|
};
|
|
175
251
|
declare const ProtocolV2: {
|
|
176
252
|
isAckFrame: typeof isAckFrame;
|
|
253
|
+
inspectFrameHeader: typeof inspectFrameHeader;
|
|
254
|
+
inspectFrame(schemas: ProtocolV2Schemas$1, frame: Uint8Array): {
|
|
255
|
+
messageName: string;
|
|
256
|
+
messageTypeId: number;
|
|
257
|
+
pbPayload: Uint8Array;
|
|
258
|
+
seq: number;
|
|
259
|
+
router: number;
|
|
260
|
+
packetSrc: number;
|
|
261
|
+
dataType: number;
|
|
262
|
+
type: string;
|
|
263
|
+
};
|
|
177
264
|
encodeFrame(schemas: ProtocolV2Schemas$1, name: string, data: Record<string, unknown>, options?: ProtocolV2FrameOptions): Uint8Array;
|
|
178
|
-
decodeFrame(schemas: ProtocolV2Schemas$1, frame: Uint8Array
|
|
265
|
+
decodeFrame(schemas: ProtocolV2Schemas$1, frame: Uint8Array): {
|
|
266
|
+
message: {
|
|
267
|
+
version: any;
|
|
268
|
+
build_fingerprint: string;
|
|
269
|
+
supported_messages: any;
|
|
270
|
+
protobuf_definition: null;
|
|
271
|
+
};
|
|
272
|
+
messageName: string;
|
|
273
|
+
messageTypeId: number;
|
|
274
|
+
pbPayload: Uint8Array;
|
|
275
|
+
seq: number;
|
|
276
|
+
type: string;
|
|
277
|
+
} | {
|
|
179
278
|
message: {
|
|
180
279
|
[key: string]: any;
|
|
181
280
|
};
|
|
@@ -187,6 +286,14 @@ declare const ProtocolV2: {
|
|
|
187
286
|
};
|
|
188
287
|
};
|
|
189
288
|
|
|
289
|
+
declare const TRANSPORT_EVENT: {
|
|
290
|
+
readonly DEVICE_DISCONNECT: "transport-device-disconnect";
|
|
291
|
+
};
|
|
292
|
+
type TransportDeviceDisconnectEvent = {
|
|
293
|
+
id: string;
|
|
294
|
+
connectId: string;
|
|
295
|
+
name: string | null;
|
|
296
|
+
};
|
|
190
297
|
type ProtocolType = 'V1' | 'V2';
|
|
191
298
|
type OneKeyDeviceCommType = 'usb' | 'webusb' | 'ble' | 'webble' | 'electron-ble' | 'bridge' | 'emulator';
|
|
192
299
|
type OneKeyUsbDeviceInfo = {
|
|
@@ -213,23 +320,37 @@ type AcquireInput = {
|
|
|
213
320
|
uuid?: string;
|
|
214
321
|
forceCleanRunPromise?: boolean;
|
|
215
322
|
expectedProtocol?: ProtocolType;
|
|
323
|
+
protocolHint?: ProtocolType;
|
|
216
324
|
};
|
|
217
325
|
type MessageFromOneKey = {
|
|
218
326
|
type: string;
|
|
219
327
|
message: Record<string, any>;
|
|
220
328
|
};
|
|
329
|
+
type TransportWriteMetrics = {
|
|
330
|
+
elapsedMs: number;
|
|
331
|
+
frameBytes: number;
|
|
332
|
+
};
|
|
221
333
|
type TransportCallOptions = {
|
|
222
334
|
timeoutMs?: number;
|
|
223
335
|
expectedTypes?: string[];
|
|
224
336
|
intermediateTypes?: string[];
|
|
225
337
|
onIntermediateResponse?: (response: MessageFromOneKey) => void;
|
|
338
|
+
/** Called after the complete request frame has been submitted to the transport. */
|
|
339
|
+
onWriteCompleted?: (metrics: TransportWriteMetrics) => void;
|
|
340
|
+
/** Prefer acknowledged BLE characteristic writes for this call when supported. */
|
|
341
|
+
writeWithResponse?: boolean;
|
|
226
342
|
};
|
|
227
343
|
type ITransportInitFn = (logger?: any, emitter?: EventEmitter, plugin?: LowlevelTransportSharedPlugin) => Promise<string>;
|
|
228
344
|
type Transport = {
|
|
229
345
|
enumerate(): Promise<Array<OneKeyDeviceInfo>>;
|
|
230
346
|
listen(old?: Array<OneKeyDeviceInfo>): Promise<Array<OneKeyDeviceInfo>>;
|
|
231
347
|
acquire(input: AcquireInput): Promise<string>;
|
|
232
|
-
|
|
348
|
+
/**
|
|
349
|
+
* `keepSession` tells a transport that the caller intends to keep using this
|
|
350
|
+
* device across calls (firmware update, batched signing). Transports that
|
|
351
|
+
* hold the link open may use it to pick a longer idle window; the rest ignore it.
|
|
352
|
+
*/
|
|
353
|
+
release(session: string, onclose: boolean, keepSession?: boolean): Promise<void>;
|
|
233
354
|
configure(signedData: JSON | string): Promise<void>;
|
|
234
355
|
configureProtocolV2?: (signedData: JSON | string) => Promise<void> | void;
|
|
235
356
|
call(session: string, name: string, data: Record<string, any>, options?: TransportCallOptions): Promise<MessageFromOneKey>;
|
|
@@ -240,7 +361,7 @@ type Transport = {
|
|
|
240
361
|
getProtocolType: (path: string) => ProtocolType | undefined;
|
|
241
362
|
promptDeviceAccess?: () => Promise<USBDevice | BluetoothDevice | null>;
|
|
242
363
|
init: ITransportInitFn;
|
|
243
|
-
stop(): void
|
|
364
|
+
stop(): void | Promise<void>;
|
|
244
365
|
configured: boolean;
|
|
245
366
|
version: string;
|
|
246
367
|
name: string;
|
|
@@ -253,7 +374,9 @@ type LowLevelDevice = OneKeyDeviceInfoBase & {
|
|
|
253
374
|
};
|
|
254
375
|
type LowlevelTransportSharedPlugin = {
|
|
255
376
|
enumerate: () => Promise<LowLevelDevice[]>;
|
|
256
|
-
send: (uuid: string, data: string
|
|
377
|
+
send: (uuid: string, data: string, options?: {
|
|
378
|
+
withoutResponse?: boolean;
|
|
379
|
+
}) => Promise<void>;
|
|
257
380
|
receive: (uuid?: string) => Promise<string>;
|
|
258
381
|
connect: (uuid: string) => Promise<void>;
|
|
259
382
|
disconnect: (uuid: string) => Promise<void>;
|
|
@@ -1910,11 +2033,17 @@ type KaspaAddress = {
|
|
|
1910
2033
|
};
|
|
1911
2034
|
type KaspaSignTx = {
|
|
1912
2035
|
address_n: number[];
|
|
1913
|
-
raw_message
|
|
2036
|
+
raw_message?: string;
|
|
1914
2037
|
scheme?: string;
|
|
1915
2038
|
prefix?: string;
|
|
1916
2039
|
input_count?: number;
|
|
1917
2040
|
use_tweak?: boolean;
|
|
2041
|
+
output_count?: number;
|
|
2042
|
+
version?: number;
|
|
2043
|
+
lock_time?: number;
|
|
2044
|
+
subnetwork_id?: string;
|
|
2045
|
+
gas?: number;
|
|
2046
|
+
payload_length?: number;
|
|
1918
2047
|
};
|
|
1919
2048
|
type KaspaTxInputRequest = {
|
|
1920
2049
|
request_index: number;
|
|
@@ -1924,6 +2053,77 @@ type KaspaTxInputAck = {
|
|
|
1924
2053
|
address_n: number[];
|
|
1925
2054
|
raw_message: string;
|
|
1926
2055
|
};
|
|
2056
|
+
type KaspaOutpoint = {
|
|
2057
|
+
tx_id: string;
|
|
2058
|
+
index: number;
|
|
2059
|
+
};
|
|
2060
|
+
declare enum Enum_KaspaInputScriptType {
|
|
2061
|
+
KASPA_SPEND_P2PK_SCHNORR = 0,
|
|
2062
|
+
KASPA_SPEND_P2PK_ECDSA = 1
|
|
2063
|
+
}
|
|
2064
|
+
type KaspaInputScriptType = keyof typeof Enum_KaspaInputScriptType;
|
|
2065
|
+
declare enum Enum_KaspaOutputScriptType {
|
|
2066
|
+
KASPA_PAYTOADDRESS = 0,
|
|
2067
|
+
KASPA_PAYTOCHANGE = 1
|
|
2068
|
+
}
|
|
2069
|
+
type KaspaOutputScriptType = keyof typeof Enum_KaspaOutputScriptType;
|
|
2070
|
+
declare enum Enum_KaspaRequestType {
|
|
2071
|
+
KASPA_TX_INPUT = 0,
|
|
2072
|
+
KASPA_TX_OUTPUT = 1,
|
|
2073
|
+
KASPA_TX_PAYLOAD = 2,
|
|
2074
|
+
KASPA_TX_FINISHED = 3,
|
|
2075
|
+
KASPA_TX_PREV_META = 4
|
|
2076
|
+
}
|
|
2077
|
+
type KaspaRequestType = keyof typeof Enum_KaspaRequestType;
|
|
2078
|
+
type KaspaTxRequestSignature = {
|
|
2079
|
+
signature_index: number;
|
|
2080
|
+
signature: string;
|
|
2081
|
+
};
|
|
2082
|
+
type KaspaTxRequest = {
|
|
2083
|
+
request_type: KaspaRequestType;
|
|
2084
|
+
request_index?: number;
|
|
2085
|
+
signature?: KaspaTxRequestSignature;
|
|
2086
|
+
request_payload_length?: number;
|
|
2087
|
+
prev_tx_id?: string;
|
|
2088
|
+
};
|
|
2089
|
+
type KaspaTxAckInput = {
|
|
2090
|
+
address_n: number[];
|
|
2091
|
+
previous_outpoint: KaspaOutpoint;
|
|
2092
|
+
amount: UintType;
|
|
2093
|
+
sequence: number;
|
|
2094
|
+
sig_op_count: number;
|
|
2095
|
+
script_type?: KaspaInputScriptType;
|
|
2096
|
+
use_tweak?: boolean;
|
|
2097
|
+
};
|
|
2098
|
+
type KaspaTxAckOutput = {
|
|
2099
|
+
script_type?: KaspaOutputScriptType;
|
|
2100
|
+
amount: UintType;
|
|
2101
|
+
address_n: number[];
|
|
2102
|
+
address?: string;
|
|
2103
|
+
scheme?: string;
|
|
2104
|
+
use_tweak?: boolean;
|
|
2105
|
+
};
|
|
2106
|
+
type KaspaTxAckPayloadChunk = {
|
|
2107
|
+
payload_chunk: string;
|
|
2108
|
+
};
|
|
2109
|
+
type KaspaTxAckPrevMeta = {
|
|
2110
|
+
version: number;
|
|
2111
|
+
input_count: number;
|
|
2112
|
+
output_count: number;
|
|
2113
|
+
lock_time: number;
|
|
2114
|
+
subnetwork_id: string;
|
|
2115
|
+
gas: number;
|
|
2116
|
+
payload_length: number;
|
|
2117
|
+
};
|
|
2118
|
+
type KaspaTxAckPrevInput = {
|
|
2119
|
+
previous_outpoint: KaspaOutpoint;
|
|
2120
|
+
sequence: number;
|
|
2121
|
+
};
|
|
2122
|
+
type KaspaTxAckPrevOutput = {
|
|
2123
|
+
amount: UintType;
|
|
2124
|
+
script_version: number;
|
|
2125
|
+
script_public_key: string;
|
|
2126
|
+
};
|
|
1927
2127
|
type KaspaSignedTx = {
|
|
1928
2128
|
signature: string;
|
|
1929
2129
|
};
|
|
@@ -1950,7 +2150,7 @@ declare enum Enum_SafetyCheckLevel {
|
|
|
1950
2150
|
PromptAlways = 1,
|
|
1951
2151
|
PromptTemporarily = 2
|
|
1952
2152
|
}
|
|
1953
|
-
type SafetyCheckLevel = keyof typeof Enum_SafetyCheckLevel;
|
|
2153
|
+
type SafetyCheckLevel = keyof typeof Enum_SafetyCheckLevel | Enum_SafetyCheckLevel;
|
|
1954
2154
|
type Initialize = {
|
|
1955
2155
|
session_id?: string;
|
|
1956
2156
|
_skip_passphrase?: boolean;
|
|
@@ -2089,6 +2289,19 @@ type Features = {
|
|
|
2089
2289
|
onekey_se04_state?: string | null;
|
|
2090
2290
|
attach_to_pin_user?: boolean;
|
|
2091
2291
|
unlocked_attach_pin?: boolean;
|
|
2292
|
+
coprocessor_bt_name?: string;
|
|
2293
|
+
coprocessor_version?: string;
|
|
2294
|
+
coprocessor_bt_enable?: boolean;
|
|
2295
|
+
romloader_version?: string;
|
|
2296
|
+
onekey_romloader_version?: string;
|
|
2297
|
+
onekey_romloader_hash?: string;
|
|
2298
|
+
onekey_bootloader_version?: string;
|
|
2299
|
+
onekey_bootloader_hash?: string;
|
|
2300
|
+
onekey_bootloader_build_id?: string;
|
|
2301
|
+
onekey_coprocessor_bt_name?: string;
|
|
2302
|
+
onekey_coprocessor_version?: string;
|
|
2303
|
+
onekey_coprocessor_build_id?: string;
|
|
2304
|
+
onekey_coprocessor_hash?: string;
|
|
2092
2305
|
};
|
|
2093
2306
|
type OnekeyFeatures = {
|
|
2094
2307
|
onekey_device_type?: OneKeyDeviceType;
|
|
@@ -2440,8 +2653,6 @@ type UnLockDeviceResponse = {
|
|
|
2440
2653
|
};
|
|
2441
2654
|
type GetPassphraseState = {
|
|
2442
2655
|
passphrase_state?: string;
|
|
2443
|
-
_only_main_pin?: boolean;
|
|
2444
|
-
allow_create_attach_pin?: boolean;
|
|
2445
2656
|
};
|
|
2446
2657
|
type PassphraseState = {
|
|
2447
2658
|
passphrase_state?: string;
|
|
@@ -3620,17 +3831,6 @@ type EthereumSignTypedDataQR = {
|
|
|
3620
3831
|
metamask_v4_compat?: boolean;
|
|
3621
3832
|
request_id?: string;
|
|
3622
3833
|
};
|
|
3623
|
-
type InternalMyAddressRequest = {
|
|
3624
|
-
coin_type: number;
|
|
3625
|
-
chain_id: number;
|
|
3626
|
-
account_index: number;
|
|
3627
|
-
derive_type: number;
|
|
3628
|
-
};
|
|
3629
|
-
type StartSession = {
|
|
3630
|
-
session_id?: string;
|
|
3631
|
-
_skip_passphrase?: boolean;
|
|
3632
|
-
derive_cardano?: boolean;
|
|
3633
|
-
};
|
|
3634
3834
|
type SetBusy = {
|
|
3635
3835
|
expiry_ms?: number;
|
|
3636
3836
|
};
|
|
@@ -3647,21 +3847,6 @@ type Nonce = {
|
|
|
3647
3847
|
type WriteSEPrivateKey = {
|
|
3648
3848
|
private_key: string;
|
|
3649
3849
|
};
|
|
3650
|
-
declare enum WallpaperTarget {
|
|
3651
|
-
Home = 0,
|
|
3652
|
-
Lock = 1
|
|
3653
|
-
}
|
|
3654
|
-
type SetWallpaper = {
|
|
3655
|
-
target: WallpaperTarget;
|
|
3656
|
-
path: string;
|
|
3657
|
-
};
|
|
3658
|
-
type GetWallpaper = {
|
|
3659
|
-
target: WallpaperTarget;
|
|
3660
|
-
};
|
|
3661
|
-
type Wallpaper = {
|
|
3662
|
-
target: WallpaperTarget;
|
|
3663
|
-
path: string;
|
|
3664
|
-
};
|
|
3665
3850
|
type UnlockPath = {
|
|
3666
3851
|
address_n: number[];
|
|
3667
3852
|
mac?: string;
|
|
@@ -3675,54 +3860,27 @@ declare enum MoneroNetworkType {
|
|
|
3675
3860
|
STAGENET = 2,
|
|
3676
3861
|
FAKECHAIN = 3
|
|
3677
3862
|
}
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
};
|
|
3682
|
-
type ViewDetail = {
|
|
3683
|
-
key: number;
|
|
3684
|
-
value: string;
|
|
3685
|
-
is_overview: boolean;
|
|
3686
|
-
has_icon: boolean;
|
|
3687
|
-
};
|
|
3688
|
-
declare enum ViewTipType {
|
|
3689
|
-
Default = 0,
|
|
3690
|
-
Highlight = 1,
|
|
3691
|
-
Recommend = 2,
|
|
3692
|
-
Warning = 3,
|
|
3693
|
-
Danger = 4
|
|
3863
|
+
declare enum UiAnimationType {
|
|
3864
|
+
Unknown = 0,
|
|
3865
|
+
Signing = 1
|
|
3694
3866
|
}
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
initial_data: string;
|
|
3701
|
-
placeholder: number;
|
|
3702
|
-
};
|
|
3703
|
-
declare enum ViewSignLayout {
|
|
3704
|
-
LayoutDefault = 0,
|
|
3705
|
-
LayoutSafeTxCreate = 1
|
|
3867
|
+
declare enum UiAnimationCommand {
|
|
3868
|
+
CommandUnknown = 0,
|
|
3869
|
+
Start = 1,
|
|
3870
|
+
Stop = 2,
|
|
3871
|
+
Refresh = 3
|
|
3706
3872
|
}
|
|
3707
|
-
type
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
general: ViewDetail[];
|
|
3711
|
-
tip?: ViewTip;
|
|
3712
|
-
raw_data?: ViewRawData;
|
|
3713
|
-
slide_to_confirm?: boolean;
|
|
3714
|
-
layout?: ViewSignLayout;
|
|
3873
|
+
type UiAnimationRequest = {
|
|
3874
|
+
command: UiAnimationCommand;
|
|
3875
|
+
type?: UiAnimationType;
|
|
3715
3876
|
};
|
|
3716
|
-
type
|
|
3717
|
-
|
|
3718
|
-
address: string;
|
|
3719
|
-
path: string;
|
|
3877
|
+
type ProtocolInfoRequest = {
|
|
3878
|
+
eventless_wallet_session?: boolean;
|
|
3720
3879
|
};
|
|
3721
|
-
type ProtocolInfoRequest = {};
|
|
3722
3880
|
type ProtocolInfo = {
|
|
3723
3881
|
version: number;
|
|
3882
|
+
build_fingerprint: string;
|
|
3724
3883
|
supported_messages: number[];
|
|
3725
|
-
protobuf_definition?: string;
|
|
3726
3884
|
};
|
|
3727
3885
|
declare enum DeviceErrorCode {
|
|
3728
3886
|
DeviceError_None = 0,
|
|
@@ -3745,23 +3903,22 @@ type DeviceReboot = {
|
|
|
3745
3903
|
reboot_type: DeviceRebootType;
|
|
3746
3904
|
};
|
|
3747
3905
|
type DeviceSettings = {
|
|
3748
|
-
label?: string;
|
|
3749
3906
|
bt_enable?: boolean;
|
|
3750
3907
|
language?: string;
|
|
3751
3908
|
wallpaper_path?: string;
|
|
3752
|
-
passphrase_enable?: boolean;
|
|
3753
3909
|
brightness?: number;
|
|
3754
|
-
autolock_delay_ms?: number;
|
|
3755
|
-
autoshutdown_delay_ms?: number;
|
|
3756
3910
|
animation_enable?: boolean;
|
|
3757
3911
|
tap_to_wake?: boolean;
|
|
3758
3912
|
haptic_feedback?: boolean;
|
|
3759
3913
|
device_name_display_enabled?: boolean;
|
|
3760
3914
|
airgap_mode?: boolean;
|
|
3761
|
-
fido_enabled?: boolean;
|
|
3762
|
-
experimental_features?: boolean;
|
|
3763
3915
|
usb_lock_enable?: boolean;
|
|
3764
3916
|
random_keypad?: boolean;
|
|
3917
|
+
passphrase_enable?: boolean;
|
|
3918
|
+
fido_enabled?: boolean;
|
|
3919
|
+
autolock_delay_ms?: number;
|
|
3920
|
+
autoshutdown_delay_ms?: number;
|
|
3921
|
+
label?: string;
|
|
3765
3922
|
};
|
|
3766
3923
|
type DeviceSettingsGet = {};
|
|
3767
3924
|
type DeviceSettingsSet = {
|
|
@@ -3791,6 +3948,39 @@ type DeviceCertificateSignature = {
|
|
|
3791
3948
|
type DeviceCertificateSign = {
|
|
3792
3949
|
data: string;
|
|
3793
3950
|
};
|
|
3951
|
+
type DeviceMiscUsbMscControl = {
|
|
3952
|
+
enable: boolean;
|
|
3953
|
+
};
|
|
3954
|
+
declare enum DeviceFactoryAck {
|
|
3955
|
+
FACTORY_ACK_SUCCESS = 0,
|
|
3956
|
+
FACTORY_ACK_FAIL = 1
|
|
3957
|
+
}
|
|
3958
|
+
type DeviceFactoryInfoManufactureTime = {
|
|
3959
|
+
year: number;
|
|
3960
|
+
month: number;
|
|
3961
|
+
day: number;
|
|
3962
|
+
hour: number;
|
|
3963
|
+
minute: number;
|
|
3964
|
+
second: number;
|
|
3965
|
+
};
|
|
3966
|
+
type DeviceFactoryInfo = {
|
|
3967
|
+
version?: number;
|
|
3968
|
+
serial_number?: string;
|
|
3969
|
+
burn_in_completed?: boolean;
|
|
3970
|
+
factory_test_completed?: boolean;
|
|
3971
|
+
manufacture_time?: DeviceFactoryInfoManufactureTime;
|
|
3972
|
+
};
|
|
3973
|
+
type DeviceFactoryInfoSet = {
|
|
3974
|
+
info: DeviceFactoryInfo;
|
|
3975
|
+
};
|
|
3976
|
+
type DeviceFactoryInfoGet = {};
|
|
3977
|
+
type DeviceFactoryPermanentLock = {
|
|
3978
|
+
check_a: string;
|
|
3979
|
+
check_b: string;
|
|
3980
|
+
};
|
|
3981
|
+
type DeviceFactoryTest = {
|
|
3982
|
+
burn_in_test: boolean;
|
|
3983
|
+
};
|
|
3794
3984
|
declare enum DeviceFirmwareTargetType {
|
|
3795
3985
|
FW_MGMT_TARGET_INVALID = 0,
|
|
3796
3986
|
FW_MGMT_TARGET_CRATE = 1,
|
|
@@ -3841,36 +4031,6 @@ type DeviceFirmwareUpdateStatusGet = {
|
|
|
3841
4031
|
type DeviceFirmwareUpdateStatus = {
|
|
3842
4032
|
records: DeviceFirmwareUpdateRecord[];
|
|
3843
4033
|
};
|
|
3844
|
-
declare enum DeviceFactoryAck {
|
|
3845
|
-
FACTORY_ACK_SUCCESS = 0,
|
|
3846
|
-
FACTORY_ACK_FAIL = 1
|
|
3847
|
-
}
|
|
3848
|
-
type DeviceFactoryInfoManufactureTime = {
|
|
3849
|
-
year: number;
|
|
3850
|
-
month: number;
|
|
3851
|
-
day: number;
|
|
3852
|
-
hour: number;
|
|
3853
|
-
minute: number;
|
|
3854
|
-
second: number;
|
|
3855
|
-
};
|
|
3856
|
-
type DeviceFactoryInfo = {
|
|
3857
|
-
version?: number;
|
|
3858
|
-
serial_number?: string;
|
|
3859
|
-
burn_in_completed?: boolean;
|
|
3860
|
-
factory_test_completed?: boolean;
|
|
3861
|
-
manufacture_time?: DeviceFactoryInfoManufactureTime;
|
|
3862
|
-
};
|
|
3863
|
-
type DeviceFactoryInfoSet = {
|
|
3864
|
-
info: DeviceFactoryInfo;
|
|
3865
|
-
};
|
|
3866
|
-
type DeviceFactoryInfoGet = {};
|
|
3867
|
-
type DeviceFactoryPermanentLock = {
|
|
3868
|
-
check_a: string;
|
|
3869
|
-
check_b: string;
|
|
3870
|
-
};
|
|
3871
|
-
type DeviceFactoryTest = {
|
|
3872
|
-
burn_in_test: boolean;
|
|
3873
|
-
};
|
|
3874
4034
|
declare enum DeviceType {
|
|
3875
4035
|
CLASSIC1 = 0,
|
|
3876
4036
|
CLASSIC1S = 1,
|
|
@@ -3927,7 +4087,6 @@ type DeviceInfoTargets = {
|
|
|
3927
4087
|
se2?: boolean;
|
|
3928
4088
|
se3?: boolean;
|
|
3929
4089
|
se4?: boolean;
|
|
3930
|
-
status?: boolean;
|
|
3931
4090
|
};
|
|
3932
4091
|
type DeviceInfoTypes = {
|
|
3933
4092
|
version?: boolean;
|
|
@@ -3948,21 +4107,43 @@ type ProtocolV2DeviceInfo = {
|
|
|
3948
4107
|
se2?: DeviceSEInfo;
|
|
3949
4108
|
se3?: DeviceSEInfo;
|
|
3950
4109
|
se4?: DeviceSEInfo;
|
|
3951
|
-
status?: DeviceStatus;
|
|
3952
4110
|
};
|
|
4111
|
+
declare enum DeviceSessionErrorCode {
|
|
4112
|
+
DeviceSessionError_None = 0,
|
|
4113
|
+
DeviceSessionError_UserCancelled = 1,
|
|
4114
|
+
DeviceSessionError_InvalidSession = 2,
|
|
4115
|
+
DeviceSessionError_AttachPinUnavailable = 3,
|
|
4116
|
+
DeviceSessionError_PassphraseDisabled = 4,
|
|
4117
|
+
DeviceSessionError_Busy = 5
|
|
4118
|
+
}
|
|
4119
|
+
declare enum DeviceSessionSeedDomain {
|
|
4120
|
+
SeedDomain_Standard = 1,
|
|
4121
|
+
SeedDomain_Cardano = 2
|
|
4122
|
+
}
|
|
3953
4123
|
type DeviceSessionGet = {
|
|
3954
4124
|
session_id?: string;
|
|
4125
|
+
btc_test_address?: string;
|
|
4126
|
+
seed_domains: DeviceSessionSeedDomain[];
|
|
3955
4127
|
};
|
|
3956
4128
|
type DeviceSession = {
|
|
3957
4129
|
session_id?: string;
|
|
3958
4130
|
btc_test_address?: string;
|
|
3959
4131
|
};
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
4132
|
+
declare enum DeviceSessionPinType {
|
|
4133
|
+
Any = 1,
|
|
4134
|
+
Main = 2,
|
|
4135
|
+
AttachToPin = 3
|
|
4136
|
+
}
|
|
4137
|
+
type DeviceSessionAskPin = {
|
|
4138
|
+
type?: DeviceSessionPinType;
|
|
3965
4139
|
};
|
|
4140
|
+
type DeviceSessionAskPassphrase = {
|
|
4141
|
+
passphrase?: string;
|
|
4142
|
+
on_device: boolean;
|
|
4143
|
+
};
|
|
4144
|
+
declare enum DeviceSessionAskPin_FailureSubCodes {
|
|
4145
|
+
UserCancel = 1
|
|
4146
|
+
}
|
|
3966
4147
|
type DeviceStatus = {
|
|
3967
4148
|
device_id?: string;
|
|
3968
4149
|
unlocked?: boolean;
|
|
@@ -3973,27 +4154,6 @@ type DeviceStatus = {
|
|
|
3973
4154
|
unlocked_by_attach_to_pin?: boolean;
|
|
3974
4155
|
};
|
|
3975
4156
|
type DeviceStatusGet = {};
|
|
3976
|
-
declare enum DevOnboardingStage {
|
|
3977
|
-
DEV_ONBOARDING_STAGE_UNKNOWN = 0,
|
|
3978
|
-
DEV_ONBOARDING_STAGE_SAFETY_CHECK = 1,
|
|
3979
|
-
DEV_ONBOARDING_STAGE_PERSONALIZATION = 2,
|
|
3980
|
-
DEV_ONBOARDING_STAGE_SELECT_SETUP_METHOD = 3,
|
|
3981
|
-
DEV_ONBOARDING_STAGE_NEW_DEVICE = 4,
|
|
3982
|
-
DEV_ONBOARDING_STAGE_SELECT_RESTORE_METHOD = 5,
|
|
3983
|
-
DEV_ONBOARDING_STAGE_RESTORE_MNEMONIC = 6,
|
|
3984
|
-
DEV_ONBOARDING_STAGE_RESTORE_SEEDCARD = 7,
|
|
3985
|
-
DEV_ONBOARDING_STAGE_WALLET_READY = 8,
|
|
3986
|
-
DEV_ONBOARDING_STAGE_SEEDCARD_BACKUP_PROMPT = 9,
|
|
3987
|
-
DEV_ONBOARDING_STAGE_SELECT_SEEDCARD_BACKUP_METHOD = 10,
|
|
3988
|
-
DEV_ONBOARDING_STAGE_SEEDCARD_BACKUP = 11,
|
|
3989
|
-
DEV_ONBOARDING_STAGE_DONE = 12
|
|
3990
|
-
}
|
|
3991
|
-
type DevGetOnboardingStatus = {};
|
|
3992
|
-
type DevOnboardingStatus = {
|
|
3993
|
-
stage: DevOnboardingStage;
|
|
3994
|
-
status_code?: number;
|
|
3995
|
-
detail_code?: number;
|
|
3996
|
-
};
|
|
3997
4157
|
type FilesystemPermissionFix = {};
|
|
3998
4158
|
type FilesystemPathInfo = {
|
|
3999
4159
|
exist: boolean;
|
|
@@ -4054,7 +4214,142 @@ type FilesystemFormat = {
|
|
|
4054
4214
|
data: boolean;
|
|
4055
4215
|
user: boolean;
|
|
4056
4216
|
};
|
|
4217
|
+
type InternalMyAddressRequest = {
|
|
4218
|
+
coin_type: number;
|
|
4219
|
+
chain_id: number;
|
|
4220
|
+
account_index: number;
|
|
4221
|
+
derive_type: number;
|
|
4222
|
+
};
|
|
4223
|
+
type NftUpdate = {
|
|
4224
|
+
file_name_no_ext: string;
|
|
4225
|
+
};
|
|
4226
|
+
declare enum OnboardingStep {
|
|
4227
|
+
ONBOARDING_STEP_UNKNOWN = 0,
|
|
4228
|
+
ONBOARDING_STEP_CHECKING = 1,
|
|
4229
|
+
ONBOARDING_STEP_PERSONALIZATION = 2,
|
|
4230
|
+
ONBOARDING_STEP_PIN = 3,
|
|
4231
|
+
ONBOARDING_STEP_SETUP = 4,
|
|
4232
|
+
ONBOARDING_STEP_DONE = 5
|
|
4233
|
+
}
|
|
4234
|
+
declare enum OnboardingPhase {
|
|
4235
|
+
ONBOARDING_PHASE_UNKNOWN = 0,
|
|
4236
|
+
ONBOARDING_PHASE_SAFETY_CHECK = 1,
|
|
4237
|
+
ONBOARDING_PHASE_PIN_SETUP = 2,
|
|
4238
|
+
ONBOARDING_PHASE_FINGERPRINT_SETUP = 3,
|
|
4239
|
+
ONBOARDING_PHASE_SETUP_CHOICE = 4,
|
|
4240
|
+
ONBOARDING_PHASE_WALLET_CREATE_START = 5,
|
|
4241
|
+
ONBOARDING_PHASE_RECOVERY_PHRASE_VIEW = 6,
|
|
4242
|
+
ONBOARDING_PHASE_RECOVERY_PHRASE_CONFIRM = 7,
|
|
4243
|
+
ONBOARDING_PHASE_RESTORE_METHOD_CHOICE = 8,
|
|
4244
|
+
ONBOARDING_PHASE_RECOVERY_PHRASE_RESTORE = 9,
|
|
4245
|
+
ONBOARDING_PHASE_SEEDCARD_RESTORE = 10,
|
|
4246
|
+
ONBOARDING_PHASE_WALLET_READY = 11,
|
|
4247
|
+
ONBOARDING_PHASE_SEEDCARD_BACKUP_PROMPT = 12,
|
|
4248
|
+
ONBOARDING_PHASE_SEEDCARD_BACKUP = 13
|
|
4249
|
+
}
|
|
4250
|
+
declare enum OnboardingSetupKind {
|
|
4251
|
+
ONBOARDING_SETUP_KIND_UNKNOWN = 0,
|
|
4252
|
+
ONBOARDING_SETUP_KIND_CHOICE = 1,
|
|
4253
|
+
ONBOARDING_SETUP_KIND_CREATE = 2,
|
|
4254
|
+
ONBOARDING_SETUP_KIND_RESTORE = 3
|
|
4255
|
+
}
|
|
4256
|
+
declare enum OnboardingSetupMethod {
|
|
4257
|
+
ONBOARDING_SETUP_METHOD_UNKNOWN = 0,
|
|
4258
|
+
ONBOARDING_SETUP_METHOD_RECOVERY_PHRASE = 1,
|
|
4259
|
+
ONBOARDING_SETUP_METHOD_SEEDCARD = 2
|
|
4260
|
+
}
|
|
4261
|
+
type OnboardingSetupStatus = {
|
|
4262
|
+
kind?: OnboardingSetupKind;
|
|
4263
|
+
method?: OnboardingSetupMethod;
|
|
4264
|
+
};
|
|
4265
|
+
type OnboardingStatusGet = {};
|
|
4266
|
+
type OnboardingStatus = {
|
|
4267
|
+
step?: OnboardingStep;
|
|
4268
|
+
phase?: OnboardingPhase;
|
|
4269
|
+
setup?: OnboardingSetupStatus;
|
|
4270
|
+
pin_set?: boolean;
|
|
4271
|
+
wallet_initialized?: boolean;
|
|
4272
|
+
};
|
|
4057
4273
|
type PortfolioUpdate = {};
|
|
4274
|
+
type ViewAmount = {
|
|
4275
|
+
is_unlimited: boolean;
|
|
4276
|
+
num: string;
|
|
4277
|
+
};
|
|
4278
|
+
type ViewDetail = {
|
|
4279
|
+
key: number;
|
|
4280
|
+
value: string;
|
|
4281
|
+
is_overview: boolean;
|
|
4282
|
+
has_icon: boolean;
|
|
4283
|
+
};
|
|
4284
|
+
declare enum ViewTipType {
|
|
4285
|
+
Default = 0,
|
|
4286
|
+
Highlight = 1,
|
|
4287
|
+
Recommend = 2,
|
|
4288
|
+
Warning = 3,
|
|
4289
|
+
Danger = 4
|
|
4290
|
+
}
|
|
4291
|
+
type ViewTip = {
|
|
4292
|
+
type: ViewTipType;
|
|
4293
|
+
text: string;
|
|
4294
|
+
};
|
|
4295
|
+
type ViewRawData = {
|
|
4296
|
+
initial_data: string;
|
|
4297
|
+
placeholder: number;
|
|
4298
|
+
};
|
|
4299
|
+
declare enum ViewSignLayout {
|
|
4300
|
+
LayoutDefault = 0,
|
|
4301
|
+
LayoutSafeTxCreate = 1,
|
|
4302
|
+
LayoutFinalConfirm = 2,
|
|
4303
|
+
Layout7702 = 3,
|
|
4304
|
+
LayoutFlat = 4,
|
|
4305
|
+
LayoutEthApprove = 5
|
|
4306
|
+
}
|
|
4307
|
+
type ViewSignPage = {
|
|
4308
|
+
title: string;
|
|
4309
|
+
amount?: UintType;
|
|
4310
|
+
general: ViewDetail[];
|
|
4311
|
+
tip?: ViewTip;
|
|
4312
|
+
raw_data?: ViewRawData;
|
|
4313
|
+
slide_to_confirm?: boolean;
|
|
4314
|
+
layout?: ViewSignLayout;
|
|
4315
|
+
};
|
|
4316
|
+
type ViewVerifyPage = {
|
|
4317
|
+
title: string;
|
|
4318
|
+
address: string;
|
|
4319
|
+
path: string;
|
|
4320
|
+
network?: string;
|
|
4321
|
+
derive_type?: string;
|
|
4322
|
+
value_key?: number;
|
|
4323
|
+
};
|
|
4324
|
+
declare enum ProtocolV2FailureType {
|
|
4325
|
+
Failure_InvalidMessage = 1,
|
|
4326
|
+
Failure_UndefinedError = 2,
|
|
4327
|
+
Failure_UsageError = 3,
|
|
4328
|
+
Failure_DataError = 4,
|
|
4329
|
+
Failure_ProcessError = 5
|
|
4330
|
+
}
|
|
4331
|
+
declare enum Enum_ProtocolV2Capability {
|
|
4332
|
+
Capability_Bitcoin = 1,
|
|
4333
|
+
Capability_Bitcoin_like = 2,
|
|
4334
|
+
Capability_Binance = 3,
|
|
4335
|
+
Capability_Cardano = 4,
|
|
4336
|
+
Capability_Crypto = 5,
|
|
4337
|
+
Capability_EOS = 6,
|
|
4338
|
+
Capability_Ethereum = 7,
|
|
4339
|
+
Capability_Lisk = 8,
|
|
4340
|
+
Capability_Monero = 9,
|
|
4341
|
+
Capability_NEM = 10,
|
|
4342
|
+
Capability_Ripple = 11,
|
|
4343
|
+
Capability_Stellar = 12,
|
|
4344
|
+
Capability_Tezos = 13,
|
|
4345
|
+
Capability_U2F = 14,
|
|
4346
|
+
Capability_Shamir = 15,
|
|
4347
|
+
Capability_ShamirGroups = 16,
|
|
4348
|
+
Capability_PassphraseEntry = 17,
|
|
4349
|
+
Capability_AttachToPin = 18,
|
|
4350
|
+
Capability_EthereumTypedData = 1000
|
|
4351
|
+
}
|
|
4352
|
+
type ProtocolV2Capability = keyof typeof Enum_ProtocolV2Capability;
|
|
4058
4353
|
type MessageType = {
|
|
4059
4354
|
AlephiumGetAddress: AlephiumGetAddress;
|
|
4060
4355
|
AlephiumAddress: AlephiumAddress;
|
|
@@ -4329,6 +4624,15 @@ type MessageType = {
|
|
|
4329
4624
|
KaspaSignTx: KaspaSignTx;
|
|
4330
4625
|
KaspaTxInputRequest: KaspaTxInputRequest;
|
|
4331
4626
|
KaspaTxInputAck: KaspaTxInputAck;
|
|
4627
|
+
KaspaOutpoint: KaspaOutpoint;
|
|
4628
|
+
KaspaTxRequestSignature: KaspaTxRequestSignature;
|
|
4629
|
+
KaspaTxRequest: KaspaTxRequest;
|
|
4630
|
+
KaspaTxAckInput: KaspaTxAckInput;
|
|
4631
|
+
KaspaTxAckOutput: KaspaTxAckOutput;
|
|
4632
|
+
KaspaTxAckPayloadChunk: KaspaTxAckPayloadChunk;
|
|
4633
|
+
KaspaTxAckPrevMeta: KaspaTxAckPrevMeta;
|
|
4634
|
+
KaspaTxAckPrevInput: KaspaTxAckPrevInput;
|
|
4635
|
+
KaspaTxAckPrevOutput: KaspaTxAckPrevOutput;
|
|
4332
4636
|
KaspaSignedTx: KaspaSignedTx;
|
|
4333
4637
|
LnurlAuth: LnurlAuth;
|
|
4334
4638
|
LnurlAuthResp: LnurlAuthResp;
|
|
@@ -4619,25 +4923,15 @@ type MessageType = {
|
|
|
4619
4923
|
PaymentRequestMemo: PaymentRequestMemo;
|
|
4620
4924
|
TxAckPaymentRequest: TxAckPaymentRequest;
|
|
4621
4925
|
EthereumSignTypedDataQR: EthereumSignTypedDataQR;
|
|
4622
|
-
InternalMyAddressRequest: InternalMyAddressRequest;
|
|
4623
|
-
StartSession: StartSession;
|
|
4624
4926
|
SetBusy: SetBusy;
|
|
4625
4927
|
GetFirmwareHash: GetFirmwareHash;
|
|
4626
4928
|
FirmwareHash: FirmwareHash;
|
|
4627
4929
|
GetNonce: GetNonce;
|
|
4628
4930
|
Nonce: Nonce;
|
|
4629
4931
|
WriteSEPrivateKey: WriteSEPrivateKey;
|
|
4630
|
-
SetWallpaper: SetWallpaper;
|
|
4631
|
-
GetWallpaper: GetWallpaper;
|
|
4632
|
-
Wallpaper: Wallpaper;
|
|
4633
4932
|
UnlockPath: UnlockPath;
|
|
4634
4933
|
UnlockedPathRequest: UnlockedPathRequest;
|
|
4635
|
-
|
|
4636
|
-
ViewDetail: ViewDetail;
|
|
4637
|
-
ViewTip: ViewTip;
|
|
4638
|
-
ViewRawData: ViewRawData;
|
|
4639
|
-
ViewSignPage: ViewSignPage;
|
|
4640
|
-
ViewVerifyPage: ViewVerifyPage;
|
|
4934
|
+
UiAnimationRequest: UiAnimationRequest;
|
|
4641
4935
|
ProtocolInfoRequest: ProtocolInfoRequest;
|
|
4642
4936
|
ProtocolInfo: ProtocolInfo;
|
|
4643
4937
|
DeviceReboot: DeviceReboot;
|
|
@@ -4650,18 +4944,19 @@ type MessageType = {
|
|
|
4650
4944
|
DeviceCertificateRead: DeviceCertificateRead;
|
|
4651
4945
|
DeviceCertificateSignature: DeviceCertificateSignature;
|
|
4652
4946
|
DeviceCertificateSign: DeviceCertificateSign;
|
|
4653
|
-
|
|
4654
|
-
DeviceFirmwareUpdateRequest: DeviceFirmwareUpdateRequest;
|
|
4655
|
-
DeviceFirmwareUpdateRecord: DeviceFirmwareUpdateRecord;
|
|
4656
|
-
DeviceFirmwareUpdateRecordFields: DeviceFirmwareUpdateRecordFields;
|
|
4657
|
-
DeviceFirmwareUpdateStatusGet: DeviceFirmwareUpdateStatusGet;
|
|
4658
|
-
DeviceFirmwareUpdateStatus: DeviceFirmwareUpdateStatus;
|
|
4947
|
+
DeviceMiscUsbMscControl: DeviceMiscUsbMscControl;
|
|
4659
4948
|
DeviceFactoryInfoManufactureTime: DeviceFactoryInfoManufactureTime;
|
|
4660
4949
|
DeviceFactoryInfo: DeviceFactoryInfo;
|
|
4661
4950
|
DeviceFactoryInfoSet: DeviceFactoryInfoSet;
|
|
4662
4951
|
DeviceFactoryInfoGet: DeviceFactoryInfoGet;
|
|
4663
4952
|
DeviceFactoryPermanentLock: DeviceFactoryPermanentLock;
|
|
4664
4953
|
DeviceFactoryTest: DeviceFactoryTest;
|
|
4954
|
+
DeviceFirmwareTarget: DeviceFirmwareTarget;
|
|
4955
|
+
DeviceFirmwareUpdateRequest: DeviceFirmwareUpdateRequest;
|
|
4956
|
+
DeviceFirmwareUpdateRecord: DeviceFirmwareUpdateRecord;
|
|
4957
|
+
DeviceFirmwareUpdateRecordFields: DeviceFirmwareUpdateRecordFields;
|
|
4958
|
+
DeviceFirmwareUpdateStatusGet: DeviceFirmwareUpdateStatusGet;
|
|
4959
|
+
DeviceFirmwareUpdateStatus: DeviceFirmwareUpdateStatus;
|
|
4665
4960
|
DeviceFirmwareImageInfo: DeviceFirmwareImageInfo;
|
|
4666
4961
|
DeviceHardwareInfo: DeviceHardwareInfo;
|
|
4667
4962
|
DeviceMainMcuInfo: DeviceMainMcuInfo;
|
|
@@ -4673,11 +4968,9 @@ type MessageType = {
|
|
|
4673
4968
|
DeviceSessionGet: DeviceSessionGet;
|
|
4674
4969
|
DeviceSession: DeviceSession;
|
|
4675
4970
|
DeviceSessionAskPin: DeviceSessionAskPin;
|
|
4676
|
-
|
|
4971
|
+
DeviceSessionAskPassphrase: DeviceSessionAskPassphrase;
|
|
4677
4972
|
DeviceStatus: DeviceStatus;
|
|
4678
4973
|
DeviceStatusGet: DeviceStatusGet;
|
|
4679
|
-
DevGetOnboardingStatus: DevGetOnboardingStatus;
|
|
4680
|
-
DevOnboardingStatus: DevOnboardingStatus;
|
|
4681
4974
|
FilesystemPermissionFix: FilesystemPermissionFix;
|
|
4682
4975
|
FilesystemPathInfo: FilesystemPathInfo;
|
|
4683
4976
|
FilesystemPathInfoQuery: FilesystemPathInfoQuery;
|
|
@@ -4690,7 +4983,18 @@ type MessageType = {
|
|
|
4690
4983
|
FilesystemDirMake: FilesystemDirMake;
|
|
4691
4984
|
FilesystemDirRemove: FilesystemDirRemove;
|
|
4692
4985
|
FilesystemFormat: FilesystemFormat;
|
|
4986
|
+
InternalMyAddressRequest: InternalMyAddressRequest;
|
|
4987
|
+
NftUpdate: NftUpdate;
|
|
4988
|
+
OnboardingSetupStatus: OnboardingSetupStatus;
|
|
4989
|
+
OnboardingStatusGet: OnboardingStatusGet;
|
|
4990
|
+
OnboardingStatus: OnboardingStatus;
|
|
4693
4991
|
PortfolioUpdate: PortfolioUpdate;
|
|
4992
|
+
ViewAmount: ViewAmount;
|
|
4993
|
+
ViewDetail: ViewDetail;
|
|
4994
|
+
ViewTip: ViewTip;
|
|
4995
|
+
ViewRawData: ViewRawData;
|
|
4996
|
+
ViewSignPage: ViewSignPage;
|
|
4997
|
+
ViewVerifyPage: ViewVerifyPage;
|
|
4694
4998
|
};
|
|
4695
4999
|
type MessageKey = keyof MessageType;
|
|
4696
5000
|
type MessageResponse<T extends MessageKey> = {
|
|
@@ -5047,6 +5351,24 @@ type messages_KaspaAddress = KaspaAddress;
|
|
|
5047
5351
|
type messages_KaspaSignTx = KaspaSignTx;
|
|
5048
5352
|
type messages_KaspaTxInputRequest = KaspaTxInputRequest;
|
|
5049
5353
|
type messages_KaspaTxInputAck = KaspaTxInputAck;
|
|
5354
|
+
type messages_KaspaOutpoint = KaspaOutpoint;
|
|
5355
|
+
type messages_Enum_KaspaInputScriptType = Enum_KaspaInputScriptType;
|
|
5356
|
+
declare const messages_Enum_KaspaInputScriptType: typeof Enum_KaspaInputScriptType;
|
|
5357
|
+
type messages_KaspaInputScriptType = KaspaInputScriptType;
|
|
5358
|
+
type messages_Enum_KaspaOutputScriptType = Enum_KaspaOutputScriptType;
|
|
5359
|
+
declare const messages_Enum_KaspaOutputScriptType: typeof Enum_KaspaOutputScriptType;
|
|
5360
|
+
type messages_KaspaOutputScriptType = KaspaOutputScriptType;
|
|
5361
|
+
type messages_Enum_KaspaRequestType = Enum_KaspaRequestType;
|
|
5362
|
+
declare const messages_Enum_KaspaRequestType: typeof Enum_KaspaRequestType;
|
|
5363
|
+
type messages_KaspaRequestType = KaspaRequestType;
|
|
5364
|
+
type messages_KaspaTxRequestSignature = KaspaTxRequestSignature;
|
|
5365
|
+
type messages_KaspaTxRequest = KaspaTxRequest;
|
|
5366
|
+
type messages_KaspaTxAckInput = KaspaTxAckInput;
|
|
5367
|
+
type messages_KaspaTxAckOutput = KaspaTxAckOutput;
|
|
5368
|
+
type messages_KaspaTxAckPayloadChunk = KaspaTxAckPayloadChunk;
|
|
5369
|
+
type messages_KaspaTxAckPrevMeta = KaspaTxAckPrevMeta;
|
|
5370
|
+
type messages_KaspaTxAckPrevInput = KaspaTxAckPrevInput;
|
|
5371
|
+
type messages_KaspaTxAckPrevOutput = KaspaTxAckPrevOutput;
|
|
5050
5372
|
type messages_KaspaSignedTx = KaspaSignedTx;
|
|
5051
5373
|
type messages_LnurlAuth = LnurlAuth;
|
|
5052
5374
|
type messages_LnurlAuthResp = LnurlAuthResp;
|
|
@@ -5403,33 +5725,21 @@ type messages_CoinPurchaseMemo = CoinPurchaseMemo;
|
|
|
5403
5725
|
type messages_PaymentRequestMemo = PaymentRequestMemo;
|
|
5404
5726
|
type messages_TxAckPaymentRequest = TxAckPaymentRequest;
|
|
5405
5727
|
type messages_EthereumSignTypedDataQR = EthereumSignTypedDataQR;
|
|
5406
|
-
type messages_InternalMyAddressRequest = InternalMyAddressRequest;
|
|
5407
|
-
type messages_StartSession = StartSession;
|
|
5408
5728
|
type messages_SetBusy = SetBusy;
|
|
5409
5729
|
type messages_GetFirmwareHash = GetFirmwareHash;
|
|
5410
5730
|
type messages_FirmwareHash = FirmwareHash;
|
|
5411
5731
|
type messages_GetNonce = GetNonce;
|
|
5412
5732
|
type messages_Nonce = Nonce;
|
|
5413
5733
|
type messages_WriteSEPrivateKey = WriteSEPrivateKey;
|
|
5414
|
-
type messages_WallpaperTarget = WallpaperTarget;
|
|
5415
|
-
declare const messages_WallpaperTarget: typeof WallpaperTarget;
|
|
5416
|
-
type messages_SetWallpaper = SetWallpaper;
|
|
5417
|
-
type messages_GetWallpaper = GetWallpaper;
|
|
5418
|
-
type messages_Wallpaper = Wallpaper;
|
|
5419
5734
|
type messages_UnlockPath = UnlockPath;
|
|
5420
5735
|
type messages_UnlockedPathRequest = UnlockedPathRequest;
|
|
5421
5736
|
type messages_MoneroNetworkType = MoneroNetworkType;
|
|
5422
5737
|
declare const messages_MoneroNetworkType: typeof MoneroNetworkType;
|
|
5423
|
-
type
|
|
5424
|
-
|
|
5425
|
-
type
|
|
5426
|
-
declare const
|
|
5427
|
-
type
|
|
5428
|
-
type messages_ViewRawData = ViewRawData;
|
|
5429
|
-
type messages_ViewSignLayout = ViewSignLayout;
|
|
5430
|
-
declare const messages_ViewSignLayout: typeof ViewSignLayout;
|
|
5431
|
-
type messages_ViewSignPage = ViewSignPage;
|
|
5432
|
-
type messages_ViewVerifyPage = ViewVerifyPage;
|
|
5738
|
+
type messages_UiAnimationType = UiAnimationType;
|
|
5739
|
+
declare const messages_UiAnimationType: typeof UiAnimationType;
|
|
5740
|
+
type messages_UiAnimationCommand = UiAnimationCommand;
|
|
5741
|
+
declare const messages_UiAnimationCommand: typeof UiAnimationCommand;
|
|
5742
|
+
type messages_UiAnimationRequest = UiAnimationRequest;
|
|
5433
5743
|
type messages_ProtocolInfoRequest = ProtocolInfoRequest;
|
|
5434
5744
|
type messages_ProtocolInfo = ProtocolInfo;
|
|
5435
5745
|
type messages_DeviceErrorCode = DeviceErrorCode;
|
|
@@ -5448,6 +5758,15 @@ type messages_DeviceCertificateWrite = DeviceCertificateWrite;
|
|
|
5448
5758
|
type messages_DeviceCertificateRead = DeviceCertificateRead;
|
|
5449
5759
|
type messages_DeviceCertificateSignature = DeviceCertificateSignature;
|
|
5450
5760
|
type messages_DeviceCertificateSign = DeviceCertificateSign;
|
|
5761
|
+
type messages_DeviceMiscUsbMscControl = DeviceMiscUsbMscControl;
|
|
5762
|
+
type messages_DeviceFactoryAck = DeviceFactoryAck;
|
|
5763
|
+
declare const messages_DeviceFactoryAck: typeof DeviceFactoryAck;
|
|
5764
|
+
type messages_DeviceFactoryInfoManufactureTime = DeviceFactoryInfoManufactureTime;
|
|
5765
|
+
type messages_DeviceFactoryInfo = DeviceFactoryInfo;
|
|
5766
|
+
type messages_DeviceFactoryInfoSet = DeviceFactoryInfoSet;
|
|
5767
|
+
type messages_DeviceFactoryInfoGet = DeviceFactoryInfoGet;
|
|
5768
|
+
type messages_DeviceFactoryPermanentLock = DeviceFactoryPermanentLock;
|
|
5769
|
+
type messages_DeviceFactoryTest = DeviceFactoryTest;
|
|
5451
5770
|
type messages_DeviceFirmwareTargetType = DeviceFirmwareTargetType;
|
|
5452
5771
|
declare const messages_DeviceFirmwareTargetType: typeof DeviceFirmwareTargetType;
|
|
5453
5772
|
type messages_DeviceFirmwareUpdateTaskStatus = DeviceFirmwareUpdateTaskStatus;
|
|
@@ -5458,14 +5777,6 @@ type messages_DeviceFirmwareUpdateRecord = DeviceFirmwareUpdateRecord;
|
|
|
5458
5777
|
type messages_DeviceFirmwareUpdateRecordFields = DeviceFirmwareUpdateRecordFields;
|
|
5459
5778
|
type messages_DeviceFirmwareUpdateStatusGet = DeviceFirmwareUpdateStatusGet;
|
|
5460
5779
|
type messages_DeviceFirmwareUpdateStatus = DeviceFirmwareUpdateStatus;
|
|
5461
|
-
type messages_DeviceFactoryAck = DeviceFactoryAck;
|
|
5462
|
-
declare const messages_DeviceFactoryAck: typeof DeviceFactoryAck;
|
|
5463
|
-
type messages_DeviceFactoryInfoManufactureTime = DeviceFactoryInfoManufactureTime;
|
|
5464
|
-
type messages_DeviceFactoryInfo = DeviceFactoryInfo;
|
|
5465
|
-
type messages_DeviceFactoryInfoSet = DeviceFactoryInfoSet;
|
|
5466
|
-
type messages_DeviceFactoryInfoGet = DeviceFactoryInfoGet;
|
|
5467
|
-
type messages_DeviceFactoryPermanentLock = DeviceFactoryPermanentLock;
|
|
5468
|
-
type messages_DeviceFactoryTest = DeviceFactoryTest;
|
|
5469
5780
|
type messages_DeviceType = DeviceType;
|
|
5470
5781
|
declare const messages_DeviceType: typeof DeviceType;
|
|
5471
5782
|
type messages_DeviceSeType = DeviceSeType;
|
|
@@ -5481,16 +5792,20 @@ type messages_DeviceInfoTargets = DeviceInfoTargets;
|
|
|
5481
5792
|
type messages_DeviceInfoTypes = DeviceInfoTypes;
|
|
5482
5793
|
type messages_DeviceInfoGet = DeviceInfoGet;
|
|
5483
5794
|
type messages_ProtocolV2DeviceInfo = ProtocolV2DeviceInfo;
|
|
5795
|
+
type messages_DeviceSessionErrorCode = DeviceSessionErrorCode;
|
|
5796
|
+
declare const messages_DeviceSessionErrorCode: typeof DeviceSessionErrorCode;
|
|
5797
|
+
type messages_DeviceSessionSeedDomain = DeviceSessionSeedDomain;
|
|
5798
|
+
declare const messages_DeviceSessionSeedDomain: typeof DeviceSessionSeedDomain;
|
|
5484
5799
|
type messages_DeviceSessionGet = DeviceSessionGet;
|
|
5485
5800
|
type messages_DeviceSession = DeviceSession;
|
|
5801
|
+
type messages_DeviceSessionPinType = DeviceSessionPinType;
|
|
5802
|
+
declare const messages_DeviceSessionPinType: typeof DeviceSessionPinType;
|
|
5486
5803
|
type messages_DeviceSessionAskPin = DeviceSessionAskPin;
|
|
5487
|
-
type
|
|
5804
|
+
type messages_DeviceSessionAskPassphrase = DeviceSessionAskPassphrase;
|
|
5805
|
+
type messages_DeviceSessionAskPin_FailureSubCodes = DeviceSessionAskPin_FailureSubCodes;
|
|
5806
|
+
declare const messages_DeviceSessionAskPin_FailureSubCodes: typeof DeviceSessionAskPin_FailureSubCodes;
|
|
5488
5807
|
type messages_DeviceStatus = DeviceStatus;
|
|
5489
5808
|
type messages_DeviceStatusGet = DeviceStatusGet;
|
|
5490
|
-
type messages_DevOnboardingStage = DevOnboardingStage;
|
|
5491
|
-
declare const messages_DevOnboardingStage: typeof DevOnboardingStage;
|
|
5492
|
-
type messages_DevGetOnboardingStatus = DevGetOnboardingStatus;
|
|
5493
|
-
type messages_DevOnboardingStatus = DevOnboardingStatus;
|
|
5494
5809
|
type messages_FilesystemPermissionFix = FilesystemPermissionFix;
|
|
5495
5810
|
type messages_FilesystemPathInfo = FilesystemPathInfo;
|
|
5496
5811
|
type messages_FilesystemPathInfoQuery = FilesystemPathInfoQuery;
|
|
@@ -5503,7 +5818,35 @@ type messages_FilesystemDirList = FilesystemDirList;
|
|
|
5503
5818
|
type messages_FilesystemDirMake = FilesystemDirMake;
|
|
5504
5819
|
type messages_FilesystemDirRemove = FilesystemDirRemove;
|
|
5505
5820
|
type messages_FilesystemFormat = FilesystemFormat;
|
|
5821
|
+
type messages_InternalMyAddressRequest = InternalMyAddressRequest;
|
|
5822
|
+
type messages_NftUpdate = NftUpdate;
|
|
5823
|
+
type messages_OnboardingStep = OnboardingStep;
|
|
5824
|
+
declare const messages_OnboardingStep: typeof OnboardingStep;
|
|
5825
|
+
type messages_OnboardingPhase = OnboardingPhase;
|
|
5826
|
+
declare const messages_OnboardingPhase: typeof OnboardingPhase;
|
|
5827
|
+
type messages_OnboardingSetupKind = OnboardingSetupKind;
|
|
5828
|
+
declare const messages_OnboardingSetupKind: typeof OnboardingSetupKind;
|
|
5829
|
+
type messages_OnboardingSetupMethod = OnboardingSetupMethod;
|
|
5830
|
+
declare const messages_OnboardingSetupMethod: typeof OnboardingSetupMethod;
|
|
5831
|
+
type messages_OnboardingSetupStatus = OnboardingSetupStatus;
|
|
5832
|
+
type messages_OnboardingStatusGet = OnboardingStatusGet;
|
|
5833
|
+
type messages_OnboardingStatus = OnboardingStatus;
|
|
5506
5834
|
type messages_PortfolioUpdate = PortfolioUpdate;
|
|
5835
|
+
type messages_ViewAmount = ViewAmount;
|
|
5836
|
+
type messages_ViewDetail = ViewDetail;
|
|
5837
|
+
type messages_ViewTipType = ViewTipType;
|
|
5838
|
+
declare const messages_ViewTipType: typeof ViewTipType;
|
|
5839
|
+
type messages_ViewTip = ViewTip;
|
|
5840
|
+
type messages_ViewRawData = ViewRawData;
|
|
5841
|
+
type messages_ViewSignLayout = ViewSignLayout;
|
|
5842
|
+
declare const messages_ViewSignLayout: typeof ViewSignLayout;
|
|
5843
|
+
type messages_ViewSignPage = ViewSignPage;
|
|
5844
|
+
type messages_ViewVerifyPage = ViewVerifyPage;
|
|
5845
|
+
type messages_ProtocolV2FailureType = ProtocolV2FailureType;
|
|
5846
|
+
declare const messages_ProtocolV2FailureType: typeof ProtocolV2FailureType;
|
|
5847
|
+
type messages_Enum_ProtocolV2Capability = Enum_ProtocolV2Capability;
|
|
5848
|
+
declare const messages_Enum_ProtocolV2Capability: typeof Enum_ProtocolV2Capability;
|
|
5849
|
+
type messages_ProtocolV2Capability = ProtocolV2Capability;
|
|
5507
5850
|
type messages_MessageType = MessageType;
|
|
5508
5851
|
type messages_MessageKey = MessageKey;
|
|
5509
5852
|
type messages_MessageResponse<T extends MessageKey> = MessageResponse<T>;
|
|
@@ -5824,6 +6167,21 @@ declare namespace messages {
|
|
|
5824
6167
|
messages_KaspaSignTx as KaspaSignTx,
|
|
5825
6168
|
messages_KaspaTxInputRequest as KaspaTxInputRequest,
|
|
5826
6169
|
messages_KaspaTxInputAck as KaspaTxInputAck,
|
|
6170
|
+
messages_KaspaOutpoint as KaspaOutpoint,
|
|
6171
|
+
messages_Enum_KaspaInputScriptType as Enum_KaspaInputScriptType,
|
|
6172
|
+
messages_KaspaInputScriptType as KaspaInputScriptType,
|
|
6173
|
+
messages_Enum_KaspaOutputScriptType as Enum_KaspaOutputScriptType,
|
|
6174
|
+
messages_KaspaOutputScriptType as KaspaOutputScriptType,
|
|
6175
|
+
messages_Enum_KaspaRequestType as Enum_KaspaRequestType,
|
|
6176
|
+
messages_KaspaRequestType as KaspaRequestType,
|
|
6177
|
+
messages_KaspaTxRequestSignature as KaspaTxRequestSignature,
|
|
6178
|
+
messages_KaspaTxRequest as KaspaTxRequest,
|
|
6179
|
+
messages_KaspaTxAckInput as KaspaTxAckInput,
|
|
6180
|
+
messages_KaspaTxAckOutput as KaspaTxAckOutput,
|
|
6181
|
+
messages_KaspaTxAckPayloadChunk as KaspaTxAckPayloadChunk,
|
|
6182
|
+
messages_KaspaTxAckPrevMeta as KaspaTxAckPrevMeta,
|
|
6183
|
+
messages_KaspaTxAckPrevInput as KaspaTxAckPrevInput,
|
|
6184
|
+
messages_KaspaTxAckPrevOutput as KaspaTxAckPrevOutput,
|
|
5827
6185
|
messages_KaspaSignedTx as KaspaSignedTx,
|
|
5828
6186
|
messages_LnurlAuth as LnurlAuth,
|
|
5829
6187
|
messages_LnurlAuthResp as LnurlAuthResp,
|
|
@@ -6149,29 +6507,18 @@ declare namespace messages {
|
|
|
6149
6507
|
messages_PaymentRequestMemo as PaymentRequestMemo,
|
|
6150
6508
|
messages_TxAckPaymentRequest as TxAckPaymentRequest,
|
|
6151
6509
|
messages_EthereumSignTypedDataQR as EthereumSignTypedDataQR,
|
|
6152
|
-
messages_InternalMyAddressRequest as InternalMyAddressRequest,
|
|
6153
|
-
messages_StartSession as StartSession,
|
|
6154
6510
|
messages_SetBusy as SetBusy,
|
|
6155
6511
|
messages_GetFirmwareHash as GetFirmwareHash,
|
|
6156
6512
|
messages_FirmwareHash as FirmwareHash,
|
|
6157
6513
|
messages_GetNonce as GetNonce,
|
|
6158
6514
|
messages_Nonce as Nonce,
|
|
6159
6515
|
messages_WriteSEPrivateKey as WriteSEPrivateKey,
|
|
6160
|
-
messages_WallpaperTarget as WallpaperTarget,
|
|
6161
|
-
messages_SetWallpaper as SetWallpaper,
|
|
6162
|
-
messages_GetWallpaper as GetWallpaper,
|
|
6163
|
-
messages_Wallpaper as Wallpaper,
|
|
6164
6516
|
messages_UnlockPath as UnlockPath,
|
|
6165
6517
|
messages_UnlockedPathRequest as UnlockedPathRequest,
|
|
6166
6518
|
messages_MoneroNetworkType as MoneroNetworkType,
|
|
6167
|
-
|
|
6168
|
-
|
|
6169
|
-
|
|
6170
|
-
messages_ViewTip as ViewTip,
|
|
6171
|
-
messages_ViewRawData as ViewRawData,
|
|
6172
|
-
messages_ViewSignLayout as ViewSignLayout,
|
|
6173
|
-
messages_ViewSignPage as ViewSignPage,
|
|
6174
|
-
messages_ViewVerifyPage as ViewVerifyPage,
|
|
6519
|
+
messages_UiAnimationType as UiAnimationType,
|
|
6520
|
+
messages_UiAnimationCommand as UiAnimationCommand,
|
|
6521
|
+
messages_UiAnimationRequest as UiAnimationRequest,
|
|
6175
6522
|
messages_ProtocolInfoRequest as ProtocolInfoRequest,
|
|
6176
6523
|
messages_ProtocolInfo as ProtocolInfo,
|
|
6177
6524
|
messages_DeviceErrorCode as DeviceErrorCode,
|
|
@@ -6187,6 +6534,14 @@ declare namespace messages {
|
|
|
6187
6534
|
messages_DeviceCertificateRead as DeviceCertificateRead,
|
|
6188
6535
|
messages_DeviceCertificateSignature as DeviceCertificateSignature,
|
|
6189
6536
|
messages_DeviceCertificateSign as DeviceCertificateSign,
|
|
6537
|
+
messages_DeviceMiscUsbMscControl as DeviceMiscUsbMscControl,
|
|
6538
|
+
messages_DeviceFactoryAck as DeviceFactoryAck,
|
|
6539
|
+
messages_DeviceFactoryInfoManufactureTime as DeviceFactoryInfoManufactureTime,
|
|
6540
|
+
messages_DeviceFactoryInfo as DeviceFactoryInfo,
|
|
6541
|
+
messages_DeviceFactoryInfoSet as DeviceFactoryInfoSet,
|
|
6542
|
+
messages_DeviceFactoryInfoGet as DeviceFactoryInfoGet,
|
|
6543
|
+
messages_DeviceFactoryPermanentLock as DeviceFactoryPermanentLock,
|
|
6544
|
+
messages_DeviceFactoryTest as DeviceFactoryTest,
|
|
6190
6545
|
messages_DeviceFirmwareTargetType as DeviceFirmwareTargetType,
|
|
6191
6546
|
messages_DeviceFirmwareUpdateTaskStatus as DeviceFirmwareUpdateTaskStatus,
|
|
6192
6547
|
messages_DeviceFirmwareTarget as DeviceFirmwareTarget,
|
|
@@ -6195,13 +6550,6 @@ declare namespace messages {
|
|
|
6195
6550
|
messages_DeviceFirmwareUpdateRecordFields as DeviceFirmwareUpdateRecordFields,
|
|
6196
6551
|
messages_DeviceFirmwareUpdateStatusGet as DeviceFirmwareUpdateStatusGet,
|
|
6197
6552
|
messages_DeviceFirmwareUpdateStatus as DeviceFirmwareUpdateStatus,
|
|
6198
|
-
messages_DeviceFactoryAck as DeviceFactoryAck,
|
|
6199
|
-
messages_DeviceFactoryInfoManufactureTime as DeviceFactoryInfoManufactureTime,
|
|
6200
|
-
messages_DeviceFactoryInfo as DeviceFactoryInfo,
|
|
6201
|
-
messages_DeviceFactoryInfoSet as DeviceFactoryInfoSet,
|
|
6202
|
-
messages_DeviceFactoryInfoGet as DeviceFactoryInfoGet,
|
|
6203
|
-
messages_DeviceFactoryPermanentLock as DeviceFactoryPermanentLock,
|
|
6204
|
-
messages_DeviceFactoryTest as DeviceFactoryTest,
|
|
6205
6553
|
messages_DeviceType as DeviceType,
|
|
6206
6554
|
messages_DeviceSeType as DeviceSeType,
|
|
6207
6555
|
messages_DeviceSEState as DeviceSEState,
|
|
@@ -6214,15 +6562,16 @@ declare namespace messages {
|
|
|
6214
6562
|
messages_DeviceInfoTypes as DeviceInfoTypes,
|
|
6215
6563
|
messages_DeviceInfoGet as DeviceInfoGet,
|
|
6216
6564
|
messages_ProtocolV2DeviceInfo as ProtocolV2DeviceInfo,
|
|
6565
|
+
messages_DeviceSessionErrorCode as DeviceSessionErrorCode,
|
|
6566
|
+
messages_DeviceSessionSeedDomain as DeviceSessionSeedDomain,
|
|
6217
6567
|
messages_DeviceSessionGet as DeviceSessionGet,
|
|
6218
6568
|
messages_DeviceSession as DeviceSession,
|
|
6569
|
+
messages_DeviceSessionPinType as DeviceSessionPinType,
|
|
6219
6570
|
messages_DeviceSessionAskPin as DeviceSessionAskPin,
|
|
6220
|
-
|
|
6571
|
+
messages_DeviceSessionAskPassphrase as DeviceSessionAskPassphrase,
|
|
6572
|
+
messages_DeviceSessionAskPin_FailureSubCodes as DeviceSessionAskPin_FailureSubCodes,
|
|
6221
6573
|
messages_DeviceStatus as DeviceStatus,
|
|
6222
6574
|
messages_DeviceStatusGet as DeviceStatusGet,
|
|
6223
|
-
messages_DevOnboardingStage as DevOnboardingStage,
|
|
6224
|
-
messages_DevGetOnboardingStatus as DevGetOnboardingStatus,
|
|
6225
|
-
messages_DevOnboardingStatus as DevOnboardingStatus,
|
|
6226
6575
|
messages_FilesystemPermissionFix as FilesystemPermissionFix,
|
|
6227
6576
|
messages_FilesystemPathInfo as FilesystemPathInfo,
|
|
6228
6577
|
messages_FilesystemPathInfoQuery as FilesystemPathInfoQuery,
|
|
@@ -6235,7 +6584,27 @@ declare namespace messages {
|
|
|
6235
6584
|
messages_FilesystemDirMake as FilesystemDirMake,
|
|
6236
6585
|
messages_FilesystemDirRemove as FilesystemDirRemove,
|
|
6237
6586
|
messages_FilesystemFormat as FilesystemFormat,
|
|
6587
|
+
messages_InternalMyAddressRequest as InternalMyAddressRequest,
|
|
6588
|
+
messages_NftUpdate as NftUpdate,
|
|
6589
|
+
messages_OnboardingStep as OnboardingStep,
|
|
6590
|
+
messages_OnboardingPhase as OnboardingPhase,
|
|
6591
|
+
messages_OnboardingSetupKind as OnboardingSetupKind,
|
|
6592
|
+
messages_OnboardingSetupMethod as OnboardingSetupMethod,
|
|
6593
|
+
messages_OnboardingSetupStatus as OnboardingSetupStatus,
|
|
6594
|
+
messages_OnboardingStatusGet as OnboardingStatusGet,
|
|
6595
|
+
messages_OnboardingStatus as OnboardingStatus,
|
|
6238
6596
|
messages_PortfolioUpdate as PortfolioUpdate,
|
|
6597
|
+
messages_ViewAmount as ViewAmount,
|
|
6598
|
+
messages_ViewDetail as ViewDetail,
|
|
6599
|
+
messages_ViewTipType as ViewTipType,
|
|
6600
|
+
messages_ViewTip as ViewTip,
|
|
6601
|
+
messages_ViewRawData as ViewRawData,
|
|
6602
|
+
messages_ViewSignLayout as ViewSignLayout,
|
|
6603
|
+
messages_ViewSignPage as ViewSignPage,
|
|
6604
|
+
messages_ViewVerifyPage as ViewVerifyPage,
|
|
6605
|
+
messages_ProtocolV2FailureType as ProtocolV2FailureType,
|
|
6606
|
+
messages_Enum_ProtocolV2Capability as Enum_ProtocolV2Capability,
|
|
6607
|
+
messages_ProtocolV2Capability as ProtocolV2Capability,
|
|
6239
6608
|
messages_MessageType as MessageType,
|
|
6240
6609
|
messages_MessageKey as MessageKey,
|
|
6241
6610
|
messages_MessageResponse as MessageResponse,
|
|
@@ -6256,8 +6625,10 @@ type ProtocolV2Schemas = {
|
|
|
6256
6625
|
type ProtocolV2CallContext = {
|
|
6257
6626
|
messageName: string;
|
|
6258
6627
|
timeoutMs?: number;
|
|
6259
|
-
|
|
6628
|
+
highThroughput: boolean;
|
|
6629
|
+
writeWithResponse?: boolean;
|
|
6260
6630
|
generation: number;
|
|
6631
|
+
signal: AbortSignal;
|
|
6261
6632
|
};
|
|
6262
6633
|
type ProtocolLogger = {
|
|
6263
6634
|
debug?: (...args: any[]) => void;
|
|
@@ -6282,17 +6653,20 @@ type ProtocolV2CallOptions = {
|
|
|
6282
6653
|
expectedTypes?: string[];
|
|
6283
6654
|
intermediateTypes?: string[];
|
|
6284
6655
|
onIntermediateResponse?: (response: MessageFromOneKey) => void;
|
|
6656
|
+
onWriteCompleted?: (metrics: TransportWriteMetrics) => void;
|
|
6657
|
+
writeWithResponse?: boolean;
|
|
6285
6658
|
};
|
|
6286
6659
|
|
|
6287
6660
|
declare function hexToBytes(hex: string): Uint8Array;
|
|
6288
6661
|
declare function bytesToHex(bytes: Uint8Array): string;
|
|
6662
|
+
declare function isProtocolV2HighThroughputCall(name: string): boolean;
|
|
6289
6663
|
declare function getErrorMessage(error: unknown): string;
|
|
6290
|
-
declare function withProtocolTimeout<T>(promise: Promise<T>, timeoutMs: number | undefined, createTimeoutError: () => Error, onTimeout?: () => void): Promise<T>;
|
|
6291
|
-
declare const PROTOCOL_V2_WRITE_WATCHDOG_TIMEOUT_MS = 0;
|
|
6664
|
+
declare function withProtocolTimeout<T>(promise: Promise<T>, timeoutMs: number | undefined, createTimeoutError: () => Error, onTimeout?: () => void, abortSignal?: AbortSignal): Promise<T>;
|
|
6292
6665
|
declare class ProtocolV2Session {
|
|
6293
6666
|
private readonly options;
|
|
6294
6667
|
private readonly sequenceCursor;
|
|
6295
6668
|
private pendingCall;
|
|
6669
|
+
private lastResponseSequence?;
|
|
6296
6670
|
constructor(options: ProtocolV2SessionOptions);
|
|
6297
6671
|
call(name: string, data: Record<string, unknown>, callOptions?: ProtocolV2CallOptions): Promise<MessageFromOneKey>;
|
|
6298
6672
|
private executeCall;
|
|
@@ -6328,6 +6702,9 @@ declare class ProtocolV2LinkManager<Key> {
|
|
|
6328
6702
|
private readonly links;
|
|
6329
6703
|
private readonly sequences;
|
|
6330
6704
|
private readonly callQueues;
|
|
6705
|
+
private readonly generations;
|
|
6706
|
+
private readonly invalidationReasons;
|
|
6707
|
+
private readonly invalidations;
|
|
6331
6708
|
private readonly options;
|
|
6332
6709
|
constructor(options: ProtocolV2LinkManagerOptions<Key>);
|
|
6333
6710
|
call(key: Key, createAdapter: () => ProtocolV2LinkAdapter, name: string, data: Record<string, unknown>, options?: TransportCallOptions): Promise<MessageFromOneKey>;
|
|
@@ -6337,6 +6714,7 @@ declare class ProtocolV2LinkManager<Key> {
|
|
|
6337
6714
|
private getOrCreateLink;
|
|
6338
6715
|
private executeCall;
|
|
6339
6716
|
private clearSettledCallQueue;
|
|
6717
|
+
private assertCallGeneration;
|
|
6340
6718
|
}
|
|
6341
6719
|
|
|
6342
6720
|
type ProtocolV2UsbTransportBaseOptions = {
|
|
@@ -6366,6 +6744,7 @@ declare abstract class ProtocolV2UsbTransportBase<Key> {
|
|
|
6366
6744
|
private createProtocolV2UsbAdapter;
|
|
6367
6745
|
private getProtocolV2UsbAssembler;
|
|
6368
6746
|
private createProtocolV2UsbCancellation;
|
|
6747
|
+
private createProtocolV2UsbIoError;
|
|
6369
6748
|
}
|
|
6370
6749
|
|
|
6371
6750
|
declare function info(res: any): {
|
|
@@ -6394,22 +6773,59 @@ declare namespace check {
|
|
|
6394
6773
|
|
|
6395
6774
|
declare const LogBlockCommand: Set<string>;
|
|
6396
6775
|
|
|
6776
|
+
declare function getSafeTransportLogPayload(value: unknown, messageName?: string): unknown;
|
|
6777
|
+
declare function createTransportCallLog(name: string, protocol: ProtocolType, data: Record<string, unknown>): {
|
|
6778
|
+
name: string;
|
|
6779
|
+
protocol: ProtocolType;
|
|
6780
|
+
request: unknown;
|
|
6781
|
+
};
|
|
6782
|
+
declare function shouldSuppressHighVolumeCallLog(name: string): boolean;
|
|
6783
|
+
|
|
6784
|
+
/** Protocol V1 USB report marker, ASCII `?`. */
|
|
6397
6785
|
declare const PROTOCOL_V1_REPORT_ID = 63;
|
|
6786
|
+
/** Protocol V1 envelope marker, ASCII `#`. */
|
|
6398
6787
|
declare const PROTOCOL_V1_HEADER_BYTE = 35;
|
|
6788
|
+
/** Protocol V1 payload bytes per chunk after the report marker. */
|
|
6399
6789
|
declare const PROTOCOL_V1_CHUNK_PAYLOAD_SIZE = 63;
|
|
6790
|
+
/** Protocol V1 USB packet length: report marker plus chunk payload. */
|
|
6400
6791
|
declare const PROTOCOL_V1_USB_PACKET_SIZE: number;
|
|
6792
|
+
/** Protocol V1 message metadata: two-byte type plus four-byte payload length. */
|
|
6401
6793
|
declare const PROTOCOL_V1_MESSAGE_HEADER_SIZE: number;
|
|
6794
|
+
/** Protocol V1 envelope metadata: `##`, message type, and payload length. */
|
|
6402
6795
|
declare const PROTOCOL_V1_ENVELOPE_HEADER_SIZE: number;
|
|
6403
|
-
|
|
6796
|
+
/** Firmware Proto Link runtime limit for a complete V2 frame, including header and CRC. */
|
|
6797
|
+
declare const PROTOCOL_V2_FRAME_MAX_BYTES = 4200;
|
|
6798
|
+
/** FilesystemFileWrite chunk size over WebUSB. */
|
|
6404
6799
|
declare const PROTOCOL_V2_WEBUSB_FILE_CHUNK_SIZE = 4000;
|
|
6800
|
+
/** FilesystemFileWrite chunk size over BLE. */
|
|
6405
6801
|
declare const PROTOCOL_V2_BLE_FILE_CHUNK_SIZE = 1800;
|
|
6802
|
+
/**
|
|
6803
|
+
* FirmwareUpdateV4 chunk size for its fixed BLE staging paths.
|
|
6804
|
+
* The longest current path still leaves 28 bytes below the 2048-byte BLE frame limit.
|
|
6805
|
+
*/
|
|
6806
|
+
declare const PROTOCOL_V2_BLE_FIRMWARE_FILE_CHUNK_SIZE = 1960;
|
|
6807
|
+
/** BLE FilesystemFileRead chunk size, limited by the Pro2 1024-byte UART TX buffer. */
|
|
6406
6808
|
declare const PROTOCOL_V2_BLE_FILE_READ_CHUNK_SIZE = 900;
|
|
6809
|
+
/** Pro2 BLE/UART RX FIFO must hold a complete Proto Link frame. */
|
|
6407
6810
|
declare const PROTOCOL_V2_BLE_FRAME_MAX_BYTES = 2048;
|
|
6811
|
+
/** @deprecated Use the transport-specific WebUSB or BLE file chunk constant. */
|
|
6408
6812
|
declare const PROTOCOL_V2_FILE_CHUNK_SIZE = 4000;
|
|
6813
|
+
/**
|
|
6814
|
+
* Protocol V2 routing channel. USB reaches the main MCU directly, while BLE routes
|
|
6815
|
+
* through the BLE coprocessor UART bridge.
|
|
6816
|
+
*/
|
|
6409
6817
|
declare const PROTOCOL_V2_CHANNEL_USB = 0;
|
|
6410
6818
|
declare const PROTOCOL_V2_CHANNEL_BLE_UART = 1;
|
|
6411
6819
|
declare const PROTOCOL_V2_CHANNEL_SOCKET = 2;
|
|
6820
|
+
/** packet_src for protobuf commands; firmware routes zero to the protobuf dispatcher. */
|
|
6412
6821
|
declare const PROTOCOL_V2_PACKET_SRC_COMMAND = 0;
|
|
6822
|
+
/**
|
|
6823
|
+
* Shared upper bound for a Protocol V2 request without a method-specific timeout.
|
|
6824
|
+
* Interactive and signing calls may wait on the device UI, so keep this longer than
|
|
6825
|
+
* ordinary transport timeouts while still preventing a stalled link from blocking
|
|
6826
|
+
* the per-device queue forever.
|
|
6827
|
+
*/
|
|
6828
|
+
declare const PROTOCOL_V2_DEFAULT_RESPONSE_TIMEOUT_MS: number;
|
|
6413
6829
|
|
|
6414
6830
|
declare const _default: {
|
|
6415
6831
|
check: typeof check;
|
|
@@ -6428,6 +6844,20 @@ declare const _default: {
|
|
|
6428
6844
|
};
|
|
6429
6845
|
ProtocolV2: {
|
|
6430
6846
|
isAckFrame: typeof isAckFrame;
|
|
6847
|
+
inspectFrameHeader: typeof inspectFrameHeader;
|
|
6848
|
+
inspectFrame(schemas: {
|
|
6849
|
+
protocolV1: protobuf.Root;
|
|
6850
|
+
protocolV2: protobuf.Root;
|
|
6851
|
+
}, frame: Uint8Array): {
|
|
6852
|
+
messageName: string;
|
|
6853
|
+
messageTypeId: number;
|
|
6854
|
+
pbPayload: Uint8Array;
|
|
6855
|
+
seq: number;
|
|
6856
|
+
router: number;
|
|
6857
|
+
packetSrc: number;
|
|
6858
|
+
dataType: number;
|
|
6859
|
+
type: string;
|
|
6860
|
+
};
|
|
6431
6861
|
encodeFrame(schemas: {
|
|
6432
6862
|
protocolV1: protobuf.Root;
|
|
6433
6863
|
protocolV2: protobuf.Root;
|
|
@@ -6435,21 +6865,23 @@ declare const _default: {
|
|
|
6435
6865
|
packetSrc?: number | undefined;
|
|
6436
6866
|
router?: number | undefined;
|
|
6437
6867
|
seq?: number | undefined;
|
|
6438
|
-
logger?: ProtocolV2DebugLogger | undefined;
|
|
6439
|
-
logPrefix?: string | undefined;
|
|
6440
|
-
context?: string | undefined;
|
|
6441
6868
|
}): Uint8Array;
|
|
6442
6869
|
decodeFrame(schemas: {
|
|
6443
6870
|
protocolV1: protobuf.Root;
|
|
6444
6871
|
protocolV2: protobuf.Root;
|
|
6445
|
-
}, frame: Uint8Array
|
|
6446
|
-
|
|
6447
|
-
|
|
6448
|
-
|
|
6449
|
-
|
|
6450
|
-
|
|
6451
|
-
|
|
6452
|
-
|
|
6872
|
+
}, frame: Uint8Array): {
|
|
6873
|
+
message: {
|
|
6874
|
+
version: any;
|
|
6875
|
+
build_fingerprint: string;
|
|
6876
|
+
supported_messages: any;
|
|
6877
|
+
protobuf_definition: null;
|
|
6878
|
+
};
|
|
6879
|
+
messageName: string;
|
|
6880
|
+
messageTypeId: number;
|
|
6881
|
+
pbPayload: Uint8Array;
|
|
6882
|
+
seq: number;
|
|
6883
|
+
type: string;
|
|
6884
|
+
} | {
|
|
6453
6885
|
message: {
|
|
6454
6886
|
[key: string]: any;
|
|
6455
6887
|
};
|
|
@@ -6486,4 +6918,4 @@ declare const _default: {
|
|
|
6486
6918
|
withProtocolTimeout: typeof withProtocolTimeout;
|
|
6487
6919
|
};
|
|
6488
6920
|
|
|
6489
|
-
export { AcquireInput, Address, AlephiumAddress, AlephiumBytecodeAck, AlephiumBytecodeRequest, AlephiumGetAddress, AlephiumMessageSignature, AlephiumSignMessage, AlephiumSignTx, AlephiumSignedTx, AlephiumTxAck, AlephiumTxRequest, AlgorandAddress, AlgorandGetAddress, AlgorandSignTx, AlgorandSignedTx, AmountUnit, ApplyFlags, ApplySettings, AptosAddress, AptosGetAddress, AptosMessagePayload, AptosMessageSignature, AptosSignMessage, AptosSignSIWAMessage, AptosSignTx, AptosSignedTx, AptosTransactionType, AuthorizeCoinJoin, BIP32Address, BackupDevice, BackupType, BatchGetPublickeys, BenfenAddress, BenfenGetAddress, BenfenMessageSignature, BenfenSignMessage, BenfenSignTx, BenfenSignedTx, BenfenTxAck, BenfenTxRequest, BinanceAddress, BinanceCancelMsg, BinanceCoin, BinanceGetAddress, BinanceGetPublicKey, BinanceInputOutput, BinanceOrderMsg, BinanceOrderSide, BinanceOrderType, BinancePublicKey, BinanceSignTx, BinanceSignedTx, BinanceTimeInForce, BinanceTransferMsg, BinanceTxRequest, BixinBackupAck, BixinBackupDevice, BixinBackupDeviceAck, BixinBackupRequest, BixinLoadDevice, BixinMessageSE, BixinOutMessageSE, BixinPinInputOnDevice, BixinRestoreAck, BixinRestoreRequest, BixinSeedOperate, BixinVerifyDeviceAck, BixinVerifyDeviceRequest, BixinWhiteListAck, BixinWhiteListRequest, BlurRequest, ButtonAck, ButtonRequest, ButtonRequestType, Cancel, CancelAuthorization, Capability, CardanoAddress, CardanoAddressParametersType, CardanoAddressType, CardanoAssetGroup, CardanoBlockchainPointerType, CardanoCVoteRegistrationDelegation, CardanoCVoteRegistrationFormat, CardanoCVoteRegistrationParametersType, CardanoCertificateType, CardanoDRep, CardanoDRepType, CardanoDerivationType, CardanoGetAddress, CardanoGetNativeScriptHash, CardanoGetPublicKey, CardanoMessageSignature, CardanoNativeScript, CardanoNativeScriptHash, CardanoNativeScriptHashDisplayFormat, CardanoNativeScriptType, CardanoPoolMetadataType, CardanoPoolOwner, CardanoPoolParametersType, CardanoPoolRelayParameters, CardanoPoolRelayType, CardanoPublicKey, CardanoSignMessage, CardanoSignTxFinished, CardanoSignTxInit, CardanoToken, CardanoTxAuxiliaryData, CardanoTxAuxiliaryDataSupplement, CardanoTxAuxiliaryDataSupplementType, CardanoTxBodyHash, CardanoTxCertificate, CardanoTxCollateralInput, CardanoTxHostAck, CardanoTxInlineDatumChunk, CardanoTxInput, CardanoTxItemAck, CardanoTxMint, CardanoTxOutput, CardanoTxOutputSerializationFormat, CardanoTxReferenceInput, CardanoTxReferenceScriptChunk, CardanoTxRequiredSigner, CardanoTxSigningMode, CardanoTxWithdrawal, CardanoTxWitnessRequest, CardanoTxWitnessResponse, CardanoTxWitnessType, ChangeOutputScriptType, ChangePin, ChangeWipeCode, CipherKeyValue, CipheredKeyValue, CoinJoinRequest, CoinPurchaseMemo, CommandFlags, ConfluxAddress, ConfluxGetAddress, ConfluxMessageSignature, ConfluxSignMessage, ConfluxSignMessageCIP23, ConfluxSignTx, ConfluxTxAck, ConfluxTxRequest, CosmosAddress, CosmosGetAddress, CosmosSignTx, CosmosSignedTx, DecredStakingSpendType, Deprecated_PassphraseStateAck, Deprecated_PassphraseStateRequest, DevGetOnboardingStatus, DevOnboardingStage, DevOnboardingStatus, DeviceBackToBoot, DeviceCertificate, DeviceCertificateRead, DeviceCertificateSign, DeviceCertificateSignature, DeviceCertificateWrite, DeviceCoprocessorInfo, DeviceEraseSector, DeviceErrorCode, DeviceFactoryAck, DeviceFactoryInfo, DeviceFactoryInfoGet, DeviceFactoryInfoManufactureTime, DeviceFactoryInfoSet, DeviceFactoryPermanentLock, DeviceFactoryTest, DeviceFirmwareImageInfo, DeviceFirmwareTarget, DeviceFirmwareTargetType, DeviceFirmwareUpdateRecord, DeviceFirmwareUpdateRecordFields, DeviceFirmwareUpdateRequest, DeviceFirmwareUpdateStatus, DeviceFirmwareUpdateStatusGet, DeviceFirmwareUpdateTaskStatus, DeviceHardwareInfo, DeviceInfo, DeviceInfoGet, DeviceInfoSettings, DeviceInfoTargets, DeviceInfoTypes, DeviceMainMcuInfo, DeviceReboot, DeviceRebootType, DeviceSEInfo, DeviceSEState, DeviceSeType, DeviceSession, DeviceSessionAskPin, DeviceSessionGet, DeviceSessionPinResult, DeviceSettings, DeviceSettingsGet, DeviceSettingsPage, DeviceSettingsPageShow, DeviceSettingsSet, DeviceStatus, DeviceStatusGet, DeviceType, DnxAddress, DnxComputedKeyImage, DnxGetAddress, DnxInputAck, DnxInputRequest, DnxRTSigsRequest, DnxSignTx, DnxSignedTx, DnxTxKey, DoPreauthorized, ECDHSessionKey, EcdsaPublicKeys, EmmcDir, EmmcDirList, EmmcDirMake, EmmcDirRemove, EmmcFile, EmmcFileDelete, EmmcFileRead, EmmcFileWrite, EmmcFixPermission, EmmcPath, EmmcPathInfo, EndSession, Entropy, EntropyAck, EntropyRequest, Enum_BackupType, Enum_ButtonRequestType, Enum_Capability, Enum_InputScriptType, Enum_OutputScriptType, Enum_PinMatrixRequestType, Enum_RequestType, Enum_SafetyCheckLevel, Enum_WordRequestType, EosActionBuyRam, EosActionBuyRamBytes, EosActionCommon, EosActionDelegate, EosActionDeleteAuth, EosActionLinkAuth, EosActionNewAccount, EosActionRefund, EosActionSellRam, EosActionTransfer, EosActionUndelegate, EosActionUnknown, EosActionUnlinkAuth, EosActionUpdateAuth, EosActionVoteProducer, EosAsset, EosAuthorization, EosAuthorizationAccount, EosAuthorizationKey, EosAuthorizationWait, EosGetPublicKey, EosPermissionLevel, EosPublicKey, EosSignTx, EosSignedTx, EosTxActionAck, EosTxActionRequest, EosTxHeader, EthereumAccessList, EthereumAccessListOneKey, EthereumAddress, EthereumAddressOneKey, EthereumAuthorizationOneKey, EthereumAuthorizationSignature, EthereumDataType, EthereumDataTypeOneKey, EthereumDefinitionType, EthereumDefinitions, EthereumFieldType, EthereumFieldTypeOneKey, EthereumGetAddress, EthereumGetAddressOneKey, EthereumGetPublicKey, EthereumGetPublicKeyOneKey, EthereumGnosisSafeTxAck, EthereumGnosisSafeTxOperation, EthereumGnosisSafeTxRequest, EthereumMessageSignature, EthereumMessageSignatureOneKey, EthereumNetworkInfo, EthereumPublicKey, EthereumPublicKeyOneKey, EthereumSignMessage, EthereumSignMessageEIP712, EthereumSignMessageOneKey, EthereumSignTx, EthereumSignTxEIP1559, EthereumSignTxEIP1559OneKey, EthereumSignTxEIP7702OneKey, EthereumSignTxOneKey, EthereumSignTypedData, EthereumSignTypedDataOneKey, EthereumSignTypedDataQR, EthereumSignTypedHash, EthereumSignTypedHashOneKey, EthereumStructMember, EthereumStructMemberOneKey, EthereumTokenInfo, EthereumTxAck, EthereumTxAckOneKey, EthereumTxRequest, EthereumTxRequestOneKey, EthereumTypedDataSignature, EthereumTypedDataSignatureOneKey, EthereumTypedDataStructAck, EthereumTypedDataStructAckOneKey, EthereumTypedDataStructRequest, EthereumTypedDataStructRequestOneKey, EthereumTypedDataValueAck, EthereumTypedDataValueAckOneKey, EthereumTypedDataValueRequest, EthereumTypedDataValueRequestOneKey, EthereumVerifyMessage, EthereumVerifyMessageOneKey, ExportType, Failure, FailureType, Features, FileInfo, FileInfoList, FilecoinAddress, FilecoinGetAddress, FilecoinSignTx, FilecoinSignedTx, FilesystemDir, FilesystemDirList, FilesystemDirMake, FilesystemDirRemove, FilesystemFile, FilesystemFileDelete, FilesystemFileRead, FilesystemFileWrite, FilesystemFormat, FilesystemPathInfo, FilesystemPathInfoQuery, FilesystemPermissionFix, FirmwareErase, FirmwareErase_ex, FirmwareHash, FirmwareRequest, FirmwareUpdateEmmc, FirmwareUpload, GetAddress, GetDeviceInfo, GetECDHSessionKey, GetEntropy, GetFeatures, GetFirmwareHash, GetNextU2FCounter, GetNonce, GetOwnershipId, GetOwnershipProof, GetPassphraseState, GetPublicKey, GetPublicKeyMultiple, GetWallpaper, HDNodePathType, HDNodeType, IdentityType, Initialize, InputScriptType, InternalInputScriptType, InternalMyAddressRequest, KaspaAddress, KaspaGetAddress, KaspaSignTx, KaspaSignedTx, KaspaTxInputAck, KaspaTxInputRequest, ListResDir, LnurlAuth, LnurlAuthResp, LockDevice, LogBlockCommand, LowLevelDevice, LowlevelTransportSharedPlugin, MessageFromOneKey, MessageKey, MessageResponse, MessageResponseMap, MessageSignature, MessageType, messages as Messages, MoneroAccountPublicAddress, MoneroAddress, MoneroExportedKeyImage, MoneroGetAddress, MoneroGetTxKeyAck, MoneroGetTxKeyRequest, MoneroGetWatchKey, MoneroKeyImageExportInitAck, MoneroKeyImageExportInitRequest, MoneroKeyImageSyncFinalAck, MoneroKeyImageSyncFinalRequest, MoneroKeyImageSyncStepAck, MoneroKeyImageSyncStepRequest, MoneroLiveRefreshFinalAck, MoneroLiveRefreshFinalRequest, MoneroLiveRefreshStartAck, MoneroLiveRefreshStartRequest, MoneroLiveRefreshStepAck, MoneroLiveRefreshStepRequest, MoneroMultisigKLRki, MoneroNetworkType, MoneroOutputEntry, MoneroRctKeyPublic, MoneroRingCtSig, MoneroSubAddressIndicesList, MoneroTransactionAllInputsSetAck, MoneroTransactionAllInputsSetRequest, MoneroTransactionAllOutSetAck, MoneroTransactionAllOutSetRequest, MoneroTransactionData, MoneroTransactionDestinationEntry, MoneroTransactionFinalAck, MoneroTransactionFinalRequest, MoneroTransactionInitAck, MoneroTransactionInitRequest, MoneroTransactionInputViniAck, MoneroTransactionInputViniRequest, MoneroTransactionInputsPermutationAck, MoneroTransactionInputsPermutationRequest, MoneroTransactionRsigData, MoneroTransactionSetInputAck, MoneroTransactionSetInputRequest, MoneroTransactionSetOutputAck, MoneroTransactionSetOutputRequest, MoneroTransactionSignInputAck, MoneroTransactionSignInputRequest, MoneroTransactionSourceEntry, MoneroTransferDetails, MoneroWatchKey, MultisigRedeemScriptType, NEMAddress, NEMAggregateModification, NEMCosignatoryModification, NEMDecryptMessage, NEMDecryptedMessage, NEMGetAddress, NEMImportanceTransfer, NEMImportanceTransferMode, NEMModificationType, NEMMosaic, NEMMosaicCreation, NEMMosaicDefinition, NEMMosaicLevy, NEMMosaicSupplyChange, NEMProvisionNamespace, NEMSignTx, NEMSignedTx, NEMSupplyChangeType, NEMTransactionCommon, NEMTransfer, NFTWriteData, NFTWriteInfo, NearAddress, NearGetAddress, NearSignTx, NearSignedTx, NeoAddress, NeoGetAddress, NeoSignTx, NeoSignedTx, NervosAddress, NervosGetAddress, NervosSignTx, NervosSignedTx, NervosTxAck, NervosTxRequest, NexaAddress, NexaGetAddress, NexaSignTx, NexaSignedTx, NexaTxInputAck, NexaTxInputRequest, NextU2FCounter, Nonce, NostrDecryptMessage, NostrDecryptedMessage, NostrEncryptMessage, NostrEncryptedMessage, NostrGetPublicKey, NostrPublicKey, NostrSignEvent, NostrSignSchnorr, NostrSignedEvent, NostrSignedSchnorr, OneKeyDeviceCommType, OneKeyDeviceInfo, OneKeyDeviceInfoBase, OneKeyDeviceInfoWithSession, OneKeyDeviceType, OneKeyMobileDeviceInfo, OneKeySEState, OneKeySeType, OnekeyFeatures, OnekeyGetFeatures, OutputScriptType, OwnershipId, OwnershipProof, PROTOCOL_V1_CHUNK_PAYLOAD_SIZE, PROTOCOL_V1_ENVELOPE_HEADER_SIZE, PROTOCOL_V1_HEADER_BYTE, PROTOCOL_V1_MESSAGE_HEADER_SIZE, PROTOCOL_V1_REPORT_ID, PROTOCOL_V1_USB_PACKET_SIZE, PROTOCOL_V2_BLE_FILE_CHUNK_SIZE, PROTOCOL_V2_BLE_FILE_READ_CHUNK_SIZE, PROTOCOL_V2_BLE_FRAME_MAX_BYTES, PROTOCOL_V2_CHANNEL_BLE_UART, PROTOCOL_V2_CHANNEL_SOCKET, PROTOCOL_V2_CHANNEL_USB, PROTOCOL_V2_FILE_CHUNK_SIZE, PROTOCOL_V2_FRAME_MAX_BYTES, PROTOCOL_V2_PACKET_SRC_COMMAND, PROTOCOL_V2_SYS_MESSAGE_THRESHOLD, PROTOCOL_V2_WEBUSB_FILE_CHUNK_SIZE, PROTOCOL_V2_WRITE_WATCHDOG_TIMEOUT_MS, PassphraseAck, PassphraseRequest, PassphraseState, Path, PaymentRequestMemo, PinMatrixAck, PinMatrixRequest, PinMatrixRequestType, Ping, PolkadotAddress, PolkadotGetAddress, PolkadotSignTx, PolkadotSignedTx, PortfolioUpdate, PreauthorizedRequest, PrevInput, PrevOutput, PrevTx, ProtocolInfo, ProtocolInfoRequest, ProtocolType, ProtocolV1, ProtocolV2, ProtocolV2CallContext, ProtocolV2CallOptions, ProtocolV2DeviceInfo, ProtocolV2FrameAssembler, ProtocolV2LinkAdapter, ProtocolV2LinkErrorClassification, ProtocolV2LinkManager, ProtocolV2LinkManagerOptions, ProtocolV2Schemas, ProtocolV2SequenceCursor, ProtocolV2Session, ProtocolV2SessionOptions, ProtocolV2UsbTransportBase, ProtocolV2UsbTransportBaseOptions, PublicKey, PublicKeyMultiple, ReadSEPublicCert, ReadSEPublicKey, Reboot, RebootToBoardloader, RebootToBootloader, RebootType, RecoveryDevice, RecoveryDeviceType, RefundMemo, RequestType, ResetDevice, ResourceAck, ResourceRequest, ResourceType, ResourceUpdate, ResourceUpload, RippleAddress, RippleGetAddress, RipplePayment, RippleSignTx, RippleSignedTx, SEMessageSignature, SEPublicCert, SEPublicKey, SESignMessage, SafetyCheckLevel, ScdoAddress, ScdoGetAddress, ScdoSignMessage, ScdoSignTx, ScdoSignedMessage, ScdoSignedTx, ScdoTxAck, SdProtect, SdProtectOperationType, SeedRequestType, SelfTest, SetBusy, SetU2FCounter, SetWallpaper, SignIdentity, SignMessage, SignPsbt, SignTx, SignedIdentity, SignedPsbt, SolanaAddress, SolanaGetAddress, SolanaMessageSignature, SolanaOffChainMessageFormat, SolanaOffChainMessageVersion, SolanaSignOffChainMessage, SolanaSignTx, SolanaSignUnsafeMessage, SolanaSignedTx, SolanaTxATADetails, SolanaTxExtraInfo, SpiFlashData, SpiFlashRead, SpiFlashWrite, StarcoinAddress, StarcoinGetAddress, StarcoinGetPublicKey, StarcoinMessageSignature, StarcoinPublicKey, StarcoinSignMessage, StarcoinSignTx, StarcoinSignedTx, StarcoinVerifyMessage, StartSession, StellarAccountMergeOp, StellarAddress, StellarAllowTrustOp, StellarAsset, StellarAssetType, StellarBumpSequenceOp, StellarChangeTrustOp, StellarCreateAccountOp, StellarCreatePassiveSellOfferOp, StellarGetAddress, StellarInvokeHostFunctionOp, StellarManageBuyOfferOp, StellarManageDataOp, StellarManageSellOfferOp, StellarMemoType, StellarPathPaymentStrictReceiveOp, StellarPathPaymentStrictSendOp, StellarPaymentOp, StellarRequestType, StellarSetOptionsOp, StellarSignTx, StellarSignedTx, StellarSignerType, StellarSorobanDataAck, StellarSorobanDataRequest, StellarTxOpRequest, Success, SuiAddress, SuiGetAddress, SuiMessageSignature, SuiSignMessage, SuiSignTx, SuiSignedTx, SuiTxAck, SuiTxRequest, TextMemo, TezosAddress, TezosBallotOp, TezosBallotType, TezosContractID, TezosContractType, TezosDelegationOp, TezosGetAddress, TezosGetPublicKey, TezosManagerTransfer, TezosOriginationOp, TezosParametersManager, TezosProposalOp, TezosPublicKey, TezosRevealOp, TezosSignTx, TezosSignedTx, TezosTransactionOp, TonAddress, TonGetAddress, TonSignData, TonSignDataType, TonSignMessage, TonSignProof, TonSignedData, TonSignedMessage, TonSignedProof, TonTxAck, TonWalletVersion, TonWorkChain, Transport, TransportCallOptions, TronAddress, TronCancelAllUnfreezeV2Contract, TronContract, TronDelegateResourceContract, TronFreezeBalanceContract, TronFreezeBalanceV2Contract, TronGetAddress, TronMessageSignature, TronMessageType, TronResourceCode, TronSignMessage, TronSignTx, TronSignedTx, TronTransferContract, TronTriggerSmartContract, TronUnDelegateResourceContract, TronUnfreezeBalanceContract, TronUnfreezeBalanceV2Contract, TronVoteWitnessContract, TronWithdrawBalanceContract, TronWithdrawExpireUnfreezeContract, TxAck, TxAckInput, TxAckInputWrapper, TxAckOutput, TxAckOutputWrapper, TxAckPaymentRequest, TxAckPrevExtraData, TxAckPrevExtraDataWrapper, TxAckPrevInput, TxAckPrevInputWrapper, TxAckPrevMeta, TxAckPrevOutput, TxAckPrevOutputWrapper, TxAckResponse, TxInput, TxInputType, TxOutput, TxOutputBinType, TxOutputType, TxRequest, TxRequestDetailsType, TxRequestSerializedType, TypedCall, UintType, UnLockDevice, UnLockDeviceResponse, UnlockPath, UnlockedPathRequest, UpgradeFileHeader, VerifyMessage, ViewAmount, ViewDetail, ViewRawData, ViewSignLayout, ViewSignPage, ViewTip, ViewTipType, ViewVerifyPage, Vote, WL_OperationType, Wallpaper, WallpaperTarget, WipeDevice, WordAck, WordRequest, WordRequestType, WriteSEPrivateKey, WriteSEPublicCert, ZoomRequest, bytesToHex, concatUint8Arrays, _default as default, experimental_field, experimental_message, facotry, getErrorMessage, hexToBytes, probeProtocolV2, index as protocolV1, protocolV2Codec as protocolV2, withProtocolTimeout };
|
|
6921
|
+
export { AcquireInput, Address, AlephiumAddress, AlephiumBytecodeAck, AlephiumBytecodeRequest, AlephiumGetAddress, AlephiumMessageSignature, AlephiumSignMessage, AlephiumSignTx, AlephiumSignedTx, AlephiumTxAck, AlephiumTxRequest, AlgorandAddress, AlgorandGetAddress, AlgorandSignTx, AlgorandSignedTx, AmountUnit, ApplyFlags, ApplySettings, AptosAddress, AptosGetAddress, AptosMessagePayload, AptosMessageSignature, AptosSignMessage, AptosSignSIWAMessage, AptosSignTx, AptosSignedTx, AptosTransactionType, AuthorizeCoinJoin, BIP32Address, BackupDevice, BackupType, BatchGetPublickeys, BenfenAddress, BenfenGetAddress, BenfenMessageSignature, BenfenSignMessage, BenfenSignTx, BenfenSignedTx, BenfenTxAck, BenfenTxRequest, BinanceAddress, BinanceCancelMsg, BinanceCoin, BinanceGetAddress, BinanceGetPublicKey, BinanceInputOutput, BinanceOrderMsg, BinanceOrderSide, BinanceOrderType, BinancePublicKey, BinanceSignTx, BinanceSignedTx, BinanceTimeInForce, BinanceTransferMsg, BinanceTxRequest, BixinBackupAck, BixinBackupDevice, BixinBackupDeviceAck, BixinBackupRequest, BixinLoadDevice, BixinMessageSE, BixinOutMessageSE, BixinPinInputOnDevice, BixinRestoreAck, BixinRestoreRequest, BixinSeedOperate, BixinVerifyDeviceAck, BixinVerifyDeviceRequest, BixinWhiteListAck, BixinWhiteListRequest, BlurRequest, ButtonAck, ButtonRequest, ButtonRequestType, Cancel, CancelAuthorization, Capability, CardanoAddress, CardanoAddressParametersType, CardanoAddressType, CardanoAssetGroup, CardanoBlockchainPointerType, CardanoCVoteRegistrationDelegation, CardanoCVoteRegistrationFormat, CardanoCVoteRegistrationParametersType, CardanoCertificateType, CardanoDRep, CardanoDRepType, CardanoDerivationType, CardanoGetAddress, CardanoGetNativeScriptHash, CardanoGetPublicKey, CardanoMessageSignature, CardanoNativeScript, CardanoNativeScriptHash, CardanoNativeScriptHashDisplayFormat, CardanoNativeScriptType, CardanoPoolMetadataType, CardanoPoolOwner, CardanoPoolParametersType, CardanoPoolRelayParameters, CardanoPoolRelayType, CardanoPublicKey, CardanoSignMessage, CardanoSignTxFinished, CardanoSignTxInit, CardanoToken, CardanoTxAuxiliaryData, CardanoTxAuxiliaryDataSupplement, CardanoTxAuxiliaryDataSupplementType, CardanoTxBodyHash, CardanoTxCertificate, CardanoTxCollateralInput, CardanoTxHostAck, CardanoTxInlineDatumChunk, CardanoTxInput, CardanoTxItemAck, CardanoTxMint, CardanoTxOutput, CardanoTxOutputSerializationFormat, CardanoTxReferenceInput, CardanoTxReferenceScriptChunk, CardanoTxRequiredSigner, CardanoTxSigningMode, CardanoTxWithdrawal, CardanoTxWitnessRequest, CardanoTxWitnessResponse, CardanoTxWitnessType, ChangeOutputScriptType, ChangePin, ChangeWipeCode, CipherKeyValue, CipheredKeyValue, CoinJoinRequest, CoinPurchaseMemo, CommandFlags, ConfluxAddress, ConfluxGetAddress, ConfluxMessageSignature, ConfluxSignMessage, ConfluxSignMessageCIP23, ConfluxSignTx, ConfluxTxAck, ConfluxTxRequest, CosmosAddress, CosmosGetAddress, CosmosSignTx, CosmosSignedTx, DecredStakingSpendType, Deprecated_PassphraseStateAck, Deprecated_PassphraseStateRequest, DeviceBackToBoot, DeviceCertificate, DeviceCertificateRead, DeviceCertificateSign, DeviceCertificateSignature, DeviceCertificateWrite, DeviceCoprocessorInfo, DeviceEraseSector, DeviceErrorCode, DeviceFactoryAck, DeviceFactoryInfo, DeviceFactoryInfoGet, DeviceFactoryInfoManufactureTime, DeviceFactoryInfoSet, DeviceFactoryPermanentLock, DeviceFactoryTest, DeviceFirmwareImageInfo, DeviceFirmwareTarget, DeviceFirmwareTargetType, DeviceFirmwareUpdateRecord, DeviceFirmwareUpdateRecordFields, DeviceFirmwareUpdateRequest, DeviceFirmwareUpdateStatus, DeviceFirmwareUpdateStatusGet, DeviceFirmwareUpdateTaskStatus, DeviceHardwareInfo, DeviceInfo, DeviceInfoGet, DeviceInfoSettings, DeviceInfoTargets, DeviceInfoTypes, DeviceMainMcuInfo, DeviceMiscUsbMscControl, DeviceReboot, DeviceRebootType, DeviceSEInfo, DeviceSEState, DeviceSeType, DeviceSession, DeviceSessionAskPassphrase, DeviceSessionAskPin, DeviceSessionAskPin_FailureSubCodes, DeviceSessionErrorCode, DeviceSessionGet, DeviceSessionPinType, DeviceSessionSeedDomain, DeviceSettings, DeviceSettingsGet, DeviceSettingsPage, DeviceSettingsPageShow, DeviceSettingsSet, DeviceStatus, DeviceStatusGet, DeviceType, DnxAddress, DnxComputedKeyImage, DnxGetAddress, DnxInputAck, DnxInputRequest, DnxRTSigsRequest, DnxSignTx, DnxSignedTx, DnxTxKey, DoPreauthorized, ECDHSessionKey, EcdsaPublicKeys, EmmcDir, EmmcDirList, EmmcDirMake, EmmcDirRemove, EmmcFile, EmmcFileDelete, EmmcFileRead, EmmcFileWrite, EmmcFixPermission, EmmcPath, EmmcPathInfo, EndSession, Entropy, EntropyAck, EntropyRequest, Enum_BackupType, Enum_ButtonRequestType, Enum_Capability, Enum_InputScriptType, Enum_KaspaInputScriptType, Enum_KaspaOutputScriptType, Enum_KaspaRequestType, Enum_OutputScriptType, Enum_PinMatrixRequestType, Enum_ProtocolV2Capability, Enum_RequestType, Enum_SafetyCheckLevel, Enum_WordRequestType, EosActionBuyRam, EosActionBuyRamBytes, EosActionCommon, EosActionDelegate, EosActionDeleteAuth, EosActionLinkAuth, EosActionNewAccount, EosActionRefund, EosActionSellRam, EosActionTransfer, EosActionUndelegate, EosActionUnknown, EosActionUnlinkAuth, EosActionUpdateAuth, EosActionVoteProducer, EosAsset, EosAuthorization, EosAuthorizationAccount, EosAuthorizationKey, EosAuthorizationWait, EosGetPublicKey, EosPermissionLevel, EosPublicKey, EosSignTx, EosSignedTx, EosTxActionAck, EosTxActionRequest, EosTxHeader, EthereumAccessList, EthereumAccessListOneKey, EthereumAddress, EthereumAddressOneKey, EthereumAuthorizationOneKey, EthereumAuthorizationSignature, EthereumDataType, EthereumDataTypeOneKey, EthereumDefinitionType, EthereumDefinitions, EthereumFieldType, EthereumFieldTypeOneKey, EthereumGetAddress, EthereumGetAddressOneKey, EthereumGetPublicKey, EthereumGetPublicKeyOneKey, EthereumGnosisSafeTxAck, EthereumGnosisSafeTxOperation, EthereumGnosisSafeTxRequest, EthereumMessageSignature, EthereumMessageSignatureOneKey, EthereumNetworkInfo, EthereumPublicKey, EthereumPublicKeyOneKey, EthereumSignMessage, EthereumSignMessageEIP712, EthereumSignMessageOneKey, EthereumSignTx, EthereumSignTxEIP1559, EthereumSignTxEIP1559OneKey, EthereumSignTxEIP7702OneKey, EthereumSignTxOneKey, EthereumSignTypedData, EthereumSignTypedDataOneKey, EthereumSignTypedDataQR, EthereumSignTypedHash, EthereumSignTypedHashOneKey, EthereumStructMember, EthereumStructMemberOneKey, EthereumTokenInfo, EthereumTxAck, EthereumTxAckOneKey, EthereumTxRequest, EthereumTxRequestOneKey, EthereumTypedDataSignature, EthereumTypedDataSignatureOneKey, EthereumTypedDataStructAck, EthereumTypedDataStructAckOneKey, EthereumTypedDataStructRequest, EthereumTypedDataStructRequestOneKey, EthereumTypedDataValueAck, EthereumTypedDataValueAckOneKey, EthereumTypedDataValueRequest, EthereumTypedDataValueRequestOneKey, EthereumVerifyMessage, EthereumVerifyMessageOneKey, ExportType, Failure, FailureType, Features, FileInfo, FileInfoList, FilecoinAddress, FilecoinGetAddress, FilecoinSignTx, FilecoinSignedTx, FilesystemDir, FilesystemDirList, FilesystemDirMake, FilesystemDirRemove, FilesystemFile, FilesystemFileDelete, FilesystemFileRead, FilesystemFileWrite, FilesystemFormat, FilesystemPathInfo, FilesystemPathInfoQuery, FilesystemPermissionFix, FirmwareErase, FirmwareErase_ex, FirmwareHash, FirmwareRequest, FirmwareUpdateEmmc, FirmwareUpload, GetAddress, GetDeviceInfo, GetECDHSessionKey, GetEntropy, GetFeatures, GetFirmwareHash, GetNextU2FCounter, GetNonce, GetOwnershipId, GetOwnershipProof, GetPassphraseState, GetPublicKey, GetPublicKeyMultiple, HDNodePathType, HDNodeType, IdentityType, Initialize, InputScriptType, InternalInputScriptType, InternalMyAddressRequest, KaspaAddress, KaspaGetAddress, KaspaInputScriptType, KaspaOutpoint, KaspaOutputScriptType, KaspaRequestType, KaspaSignTx, KaspaSignedTx, KaspaTxAckInput, KaspaTxAckOutput, KaspaTxAckPayloadChunk, KaspaTxAckPrevInput, KaspaTxAckPrevMeta, KaspaTxAckPrevOutput, KaspaTxInputAck, KaspaTxInputRequest, KaspaTxRequest, KaspaTxRequestSignature, ListResDir, LnurlAuth, LnurlAuthResp, LockDevice, LogBlockCommand, LowLevelDevice, LowlevelTransportSharedPlugin, MessageFromOneKey, MessageKey, MessageResponse, MessageResponseMap, MessageSignature, MessageType, messages as Messages, MoneroAccountPublicAddress, MoneroAddress, MoneroExportedKeyImage, MoneroGetAddress, MoneroGetTxKeyAck, MoneroGetTxKeyRequest, MoneroGetWatchKey, MoneroKeyImageExportInitAck, MoneroKeyImageExportInitRequest, MoneroKeyImageSyncFinalAck, MoneroKeyImageSyncFinalRequest, MoneroKeyImageSyncStepAck, MoneroKeyImageSyncStepRequest, MoneroLiveRefreshFinalAck, MoneroLiveRefreshFinalRequest, MoneroLiveRefreshStartAck, MoneroLiveRefreshStartRequest, MoneroLiveRefreshStepAck, MoneroLiveRefreshStepRequest, MoneroMultisigKLRki, MoneroNetworkType, MoneroOutputEntry, MoneroRctKeyPublic, MoneroRingCtSig, MoneroSubAddressIndicesList, MoneroTransactionAllInputsSetAck, MoneroTransactionAllInputsSetRequest, MoneroTransactionAllOutSetAck, MoneroTransactionAllOutSetRequest, MoneroTransactionData, MoneroTransactionDestinationEntry, MoneroTransactionFinalAck, MoneroTransactionFinalRequest, MoneroTransactionInitAck, MoneroTransactionInitRequest, MoneroTransactionInputViniAck, MoneroTransactionInputViniRequest, MoneroTransactionInputsPermutationAck, MoneroTransactionInputsPermutationRequest, MoneroTransactionRsigData, MoneroTransactionSetInputAck, MoneroTransactionSetInputRequest, MoneroTransactionSetOutputAck, MoneroTransactionSetOutputRequest, MoneroTransactionSignInputAck, MoneroTransactionSignInputRequest, MoneroTransactionSourceEntry, MoneroTransferDetails, MoneroWatchKey, MultisigRedeemScriptType, NEMAddress, NEMAggregateModification, NEMCosignatoryModification, NEMDecryptMessage, NEMDecryptedMessage, NEMGetAddress, NEMImportanceTransfer, NEMImportanceTransferMode, NEMModificationType, NEMMosaic, NEMMosaicCreation, NEMMosaicDefinition, NEMMosaicLevy, NEMMosaicSupplyChange, NEMProvisionNamespace, NEMSignTx, NEMSignedTx, NEMSupplyChangeType, NEMTransactionCommon, NEMTransfer, NFTWriteData, NFTWriteInfo, NearAddress, NearGetAddress, NearSignTx, NearSignedTx, NeoAddress, NeoGetAddress, NeoSignTx, NeoSignedTx, NervosAddress, NervosGetAddress, NervosSignTx, NervosSignedTx, NervosTxAck, NervosTxRequest, NexaAddress, NexaGetAddress, NexaSignTx, NexaSignedTx, NexaTxInputAck, NexaTxInputRequest, NextU2FCounter, NftUpdate, Nonce, NostrDecryptMessage, NostrDecryptedMessage, NostrEncryptMessage, NostrEncryptedMessage, NostrGetPublicKey, NostrPublicKey, NostrSignEvent, NostrSignSchnorr, NostrSignedEvent, NostrSignedSchnorr, OnboardingPhase, OnboardingSetupKind, OnboardingSetupMethod, OnboardingSetupStatus, OnboardingStatus, OnboardingStatusGet, OnboardingStep, OneKeyDeviceCommType, OneKeyDeviceInfo, OneKeyDeviceInfoBase, OneKeyDeviceInfoWithSession, OneKeyDeviceType, OneKeyMobileDeviceInfo, OneKeySEState, OneKeySeType, OnekeyFeatures, OnekeyGetFeatures, OutputScriptType, OwnershipId, OwnershipProof, PROTOCOL_V1_CHUNK_PAYLOAD_SIZE, PROTOCOL_V1_ENVELOPE_HEADER_SIZE, PROTOCOL_V1_HEADER_BYTE, PROTOCOL_V1_MESSAGE_HEADER_SIZE, PROTOCOL_V1_REPORT_ID, PROTOCOL_V1_USB_PACKET_SIZE, PROTOCOL_V2_BLE_FILE_CHUNK_SIZE, PROTOCOL_V2_BLE_FILE_READ_CHUNK_SIZE, PROTOCOL_V2_BLE_FIRMWARE_FILE_CHUNK_SIZE, PROTOCOL_V2_BLE_FRAME_MAX_BYTES, PROTOCOL_V2_CHANNEL_BLE_UART, PROTOCOL_V2_CHANNEL_SOCKET, PROTOCOL_V2_CHANNEL_USB, PROTOCOL_V2_DEFAULT_RESPONSE_TIMEOUT_MS, PROTOCOL_V2_FILE_CHUNK_SIZE, PROTOCOL_V2_FRAME_MAX_BYTES, PROTOCOL_V2_PACKET_SRC_COMMAND, PROTOCOL_V2_SYS_MESSAGE_THRESHOLD, PROTOCOL_V2_WEBUSB_FILE_CHUNK_SIZE, PassphraseAck, PassphraseRequest, PassphraseState, Path, PaymentRequestMemo, PinMatrixAck, PinMatrixRequest, PinMatrixRequestType, Ping, PolkadotAddress, PolkadotGetAddress, PolkadotSignTx, PolkadotSignedTx, PortfolioUpdate, PreauthorizedRequest, PrevInput, PrevOutput, PrevTx, ProtocolInfo, ProtocolInfoRequest, ProtocolType, ProtocolV1, ProtocolV2, ProtocolV2BleFrameWriterOptions, ProtocolV2CallContext, ProtocolV2CallOptions, ProtocolV2Capability, ProtocolV2DeviceInfo, ProtocolV2FailureType, ProtocolV2FrameAssembler, ProtocolV2LinkAdapter, ProtocolV2LinkError, ProtocolV2LinkErrorClassification, ProtocolV2LinkErrorCode, ProtocolV2LinkManager, ProtocolV2LinkManagerOptions, ProtocolV2Schemas, ProtocolV2SequenceCursor, ProtocolV2Session, ProtocolV2SessionOptions, ProtocolV2UsbTransportBase, ProtocolV2UsbTransportBaseOptions, PublicKey, PublicKeyMultiple, ReadSEPublicCert, ReadSEPublicKey, Reboot, RebootToBoardloader, RebootToBootloader, RebootType, RecoveryDevice, RecoveryDeviceType, RefundMemo, RequestType, ResetDevice, ResourceAck, ResourceRequest, ResourceType, ResourceUpdate, ResourceUpload, RippleAddress, RippleGetAddress, RipplePayment, RippleSignTx, RippleSignedTx, SEMessageSignature, SEPublicCert, SEPublicKey, SESignMessage, SafetyCheckLevel, ScdoAddress, ScdoGetAddress, ScdoSignMessage, ScdoSignTx, ScdoSignedMessage, ScdoSignedTx, ScdoTxAck, SdProtect, SdProtectOperationType, SeedRequestType, SelfTest, SetBusy, SetU2FCounter, SignIdentity, SignMessage, SignPsbt, SignTx, SignedIdentity, SignedPsbt, SolanaAddress, SolanaGetAddress, SolanaMessageSignature, SolanaOffChainMessageFormat, SolanaOffChainMessageVersion, SolanaSignOffChainMessage, SolanaSignTx, SolanaSignUnsafeMessage, SolanaSignedTx, SolanaTxATADetails, SolanaTxExtraInfo, SpiFlashData, SpiFlashRead, SpiFlashWrite, StarcoinAddress, StarcoinGetAddress, StarcoinGetPublicKey, StarcoinMessageSignature, StarcoinPublicKey, StarcoinSignMessage, StarcoinSignTx, StarcoinSignedTx, StarcoinVerifyMessage, StellarAccountMergeOp, StellarAddress, StellarAllowTrustOp, StellarAsset, StellarAssetType, StellarBumpSequenceOp, StellarChangeTrustOp, StellarCreateAccountOp, StellarCreatePassiveSellOfferOp, StellarGetAddress, StellarInvokeHostFunctionOp, StellarManageBuyOfferOp, StellarManageDataOp, StellarManageSellOfferOp, StellarMemoType, StellarPathPaymentStrictReceiveOp, StellarPathPaymentStrictSendOp, StellarPaymentOp, StellarRequestType, StellarSetOptionsOp, StellarSignTx, StellarSignedTx, StellarSignerType, StellarSorobanDataAck, StellarSorobanDataRequest, StellarTxOpRequest, Success, SuiAddress, SuiGetAddress, SuiMessageSignature, SuiSignMessage, SuiSignTx, SuiSignedTx, SuiTxAck, SuiTxRequest, TRANSPORT_EVENT, TextMemo, TezosAddress, TezosBallotOp, TezosBallotType, TezosContractID, TezosContractType, TezosDelegationOp, TezosGetAddress, TezosGetPublicKey, TezosManagerTransfer, TezosOriginationOp, TezosParametersManager, TezosProposalOp, TezosPublicKey, TezosRevealOp, TezosSignTx, TezosSignedTx, TezosTransactionOp, TonAddress, TonGetAddress, TonSignData, TonSignDataType, TonSignMessage, TonSignProof, TonSignedData, TonSignedMessage, TonSignedProof, TonTxAck, TonWalletVersion, TonWorkChain, Transport, TransportCallOptions, TransportDeviceDisconnectEvent, TransportWriteMetrics, TronAddress, TronCancelAllUnfreezeV2Contract, TronContract, TronDelegateResourceContract, TronFreezeBalanceContract, TronFreezeBalanceV2Contract, TronGetAddress, TronMessageSignature, TronMessageType, TronResourceCode, TronSignMessage, TronSignTx, TronSignedTx, TronTransferContract, TronTriggerSmartContract, TronUnDelegateResourceContract, TronUnfreezeBalanceContract, TronUnfreezeBalanceV2Contract, TronVoteWitnessContract, TronWithdrawBalanceContract, TronWithdrawExpireUnfreezeContract, TxAck, TxAckInput, TxAckInputWrapper, TxAckOutput, TxAckOutputWrapper, TxAckPaymentRequest, TxAckPrevExtraData, TxAckPrevExtraDataWrapper, TxAckPrevInput, TxAckPrevInputWrapper, TxAckPrevMeta, TxAckPrevOutput, TxAckPrevOutputWrapper, TxAckResponse, TxInput, TxInputType, TxOutput, TxOutputBinType, TxOutputType, TxRequest, TxRequestDetailsType, TxRequestSerializedType, TypedCall, UiAnimationCommand, UiAnimationRequest, UiAnimationType, UintType, UnLockDevice, UnLockDeviceResponse, UnlockPath, UnlockedPathRequest, UpgradeFileHeader, VerifyMessage, ViewAmount, ViewDetail, ViewRawData, ViewSignLayout, ViewSignPage, ViewTip, ViewTipType, ViewVerifyPage, Vote, WL_OperationType, WipeDevice, WordAck, WordRequest, WordRequestType, WriteSEPrivateKey, WriteSEPublicCert, ZoomRequest, bytesToHex, concatUint8Arrays, createTransportCallLog, _default as default, experimental_field, experimental_message, facotry, getErrorMessage, getSafeTransportLogPayload, hexToBytes, isProtocolV2HighThroughputCall, isProtocolV2LinkError, probeProtocolV2, index as protocolV1, protocolV2Codec as protocolV2, shouldSuppressHighVolumeCallLog, withProtocolTimeout, writeProtocolV2BleFrame };
|