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