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