@onekeyfe/hd-core 1.1.27-alpha.30 → 1.1.27-alpha.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/__tests__/evmSignTransaction.test.ts +1 -1
- package/__tests__/evmSignTypedData.test.ts +1 -1
- package/__tests__/protocol-v2.test.ts +189 -33
- package/dist/api/GetPassphraseState.d.ts +6 -1
- package/dist/api/GetPassphraseState.d.ts.map +1 -1
- package/dist/api/conflux/ConfluxSignTransaction.d.ts.map +1 -1
- package/dist/api/dynex/DnxGetAddress.d.ts.map +1 -1
- package/dist/api/dynex/DnxSignTransaction.d.ts.map +1 -1
- package/dist/api/helpers/batchGetPublickeys.d.ts.map +1 -1
- package/dist/api/index.d.ts +5 -5
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/protocol-v2/DeviceFirmwareUpdate.d.ts +7 -0
- package/dist/api/protocol-v2/DeviceFirmwareUpdate.d.ts.map +1 -0
- package/dist/api/protocol-v2/DeviceGetDeviceInfo.d.ts +7 -0
- package/dist/api/protocol-v2/DeviceGetDeviceInfo.d.ts.map +1 -0
- package/dist/api/protocol-v2/DeviceGetFirmwareUpdateStatus.d.ts +6 -0
- package/dist/api/protocol-v2/DeviceGetFirmwareUpdateStatus.d.ts.map +1 -0
- package/dist/api/protocol-v2/DeviceGetOnboardingStatus.d.ts +6 -0
- package/dist/api/protocol-v2/DeviceGetOnboardingStatus.d.ts.map +1 -0
- package/dist/api/protocol-v2/DeviceReboot.d.ts +7 -0
- package/dist/api/protocol-v2/DeviceReboot.d.ts.map +1 -0
- package/dist/api/protocol-v2/helpers.d.ts +19 -19
- package/dist/api/protocol-v2/helpers.d.ts.map +1 -1
- package/dist/core/index.d.ts.map +1 -1
- package/dist/data-manager/DataManager.d.ts +4 -3
- package/dist/data-manager/DataManager.d.ts.map +1 -1
- package/dist/data-manager/MessagesConfig.d.ts +2 -2
- package/dist/data-manager/MessagesConfig.d.ts.map +1 -1
- package/dist/data-manager/TransportManager.d.ts +3 -3
- package/dist/data-manager/TransportManager.d.ts.map +1 -1
- package/dist/device/Device.d.ts.map +1 -1
- package/dist/index.d.ts +34 -27
- package/dist/index.js +231 -184
- package/dist/protocols/protocol-v2/features.d.ts +1 -0
- package/dist/protocols/protocol-v2/features.d.ts.map +1 -1
- package/dist/protocols/protocol-v2/firmware.d.ts +7 -7
- package/dist/types/api/getPassphraseState.d.ts +7 -1
- package/dist/types/api/getPassphraseState.d.ts.map +1 -1
- package/dist/types/api/index.d.ts +7 -6
- package/dist/types/api/index.d.ts.map +1 -1
- package/dist/types/api/protocolV2.d.ts +16 -16
- package/dist/types/api/protocolV2.d.ts.map +1 -1
- package/dist/utils/deviceFeaturesUtils.d.ts +3 -3
- package/dist/utils/deviceFeaturesUtils.d.ts.map +1 -1
- package/dist/utils/patch.d.ts +1 -1
- package/dist/utils/patch.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/api/FirmwareUpdateV4.ts +13 -13
- package/src/api/GetPassphraseState.ts +14 -2
- package/src/api/allnetwork/AllNetworkGetAddressBase.ts +15 -0
- package/src/api/conflux/ConfluxSignTransaction.ts +5 -2
- package/src/api/device/DeviceRebootToBoardloader.ts +4 -4
- package/src/api/device/DeviceRebootToBootloader.ts +4 -4
- package/src/api/dynex/DnxGetAddress.ts +7 -0
- package/src/api/dynex/DnxSignTransaction.ts +7 -0
- package/src/api/evm/EVMGetAddress.ts +1 -1
- package/src/api/evm/EVMGetPublicKey.ts +1 -1
- package/src/api/evm/EVMSignMessage.ts +1 -1
- package/src/api/evm/EVMSignTransaction.ts +1 -1
- package/src/api/evm/EVMSignTypedData.ts +6 -6
- package/src/api/evm/EVMVerifyMessage.ts +1 -1
- package/src/api/helpers/batchGetPublickeys.ts +4 -2
- package/src/api/index.ts +5 -5
- package/src/api/protocol-v2/{DevFirmwareUpdate.ts → DeviceFirmwareUpdate.ts} +3 -3
- package/src/api/protocol-v2/{DevGetDeviceInfo.ts → DeviceGetDeviceInfo.ts} +3 -3
- package/src/api/protocol-v2/{DevGetFirmwareUpdateStatus.ts → DeviceGetFirmwareUpdateStatus.ts} +3 -3
- package/src/api/protocol-v2/{DevGetOnboardingStatus.ts → DeviceGetOnboardingStatus.ts} +3 -3
- package/src/api/protocol-v2/{DevReboot.ts → DeviceReboot.ts} +3 -3
- package/src/api/protocol-v2/helpers.ts +38 -38
- package/src/api/tron/TronSignMessage.ts +1 -1
- package/src/api/xrp/XrpSignTransaction.ts +1 -1
- package/src/core/index.ts +5 -1
- package/src/data/messages/messages-pro2.json +67 -63
- package/src/data-manager/DataManager.ts +7 -6
- package/src/data-manager/MessagesConfig.ts +14 -14
- package/src/data-manager/TransportManager.ts +12 -12
- package/src/device/Device.ts +7 -3
- package/src/inject.ts +9 -9
- package/src/protocols/protocol-v2/features.ts +7 -6
- package/src/protocols/protocol-v2/firmware.ts +16 -16
- package/src/types/api/getPassphraseState.ts +10 -1
- package/src/types/api/index.ts +11 -10
- package/src/types/api/protocolV2.ts +27 -27
- package/src/utils/deviceFeaturesUtils.ts +33 -15
- package/dist/api/protocol-v2/DevFirmwareUpdate.d.ts +0 -7
- package/dist/api/protocol-v2/DevFirmwareUpdate.d.ts.map +0 -1
- package/dist/api/protocol-v2/DevGetDeviceInfo.d.ts +0 -7
- package/dist/api/protocol-v2/DevGetDeviceInfo.d.ts.map +0 -1
- package/dist/api/protocol-v2/DevGetFirmwareUpdateStatus.d.ts +0 -6
- package/dist/api/protocol-v2/DevGetFirmwareUpdateStatus.d.ts.map +0 -1
- package/dist/api/protocol-v2/DevGetOnboardingStatus.d.ts +0 -6
- package/dist/api/protocol-v2/DevGetOnboardingStatus.d.ts.map +0 -1
- package/dist/api/protocol-v2/DevReboot.d.ts +0 -7
- package/dist/api/protocol-v2/DevReboot.d.ts.map +0 -1
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import type { CommonParams, Response } from '../params';
|
|
2
2
|
|
|
3
|
+
export type GetPassphraseStatePayload =
|
|
4
|
+
| string
|
|
5
|
+
| {
|
|
6
|
+
passphrase_state?: string;
|
|
7
|
+
session_id?: string;
|
|
8
|
+
unlocked_attach_pin?: boolean;
|
|
9
|
+
passphrase_protection?: boolean | null;
|
|
10
|
+
};
|
|
11
|
+
|
|
3
12
|
export declare function getPassphraseState(
|
|
4
13
|
connectId?: string,
|
|
5
14
|
params?: CommonParams
|
|
6
|
-
): Response<
|
|
15
|
+
): Response<GetPassphraseStatePayload>;
|
package/src/types/api/index.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
deviceFirmwareUpdate,
|
|
3
|
+
deviceGetDeviceInfo,
|
|
4
|
+
deviceGetFirmwareUpdateStatus,
|
|
5
|
+
deviceGetOnboardingStatus,
|
|
6
|
+
deviceReboot,
|
|
7
7
|
dirList,
|
|
8
8
|
dirMake,
|
|
9
9
|
dirRemove,
|
|
@@ -162,6 +162,7 @@ import type { neoSignTransaction } from './neoSignTransaction';
|
|
|
162
162
|
import type { ConnectSettings } from '../settings';
|
|
163
163
|
|
|
164
164
|
export * from './export';
|
|
165
|
+
export type { GetPassphraseStatePayload } from './getPassphraseState';
|
|
165
166
|
|
|
166
167
|
export type CoreApi = {
|
|
167
168
|
/**
|
|
@@ -235,11 +236,11 @@ export type CoreApi = {
|
|
|
235
236
|
*/
|
|
236
237
|
getProtoVersion: typeof getProtoVersion;
|
|
237
238
|
ping: typeof ping;
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
239
|
+
deviceReboot: typeof deviceReboot;
|
|
240
|
+
deviceGetDeviceInfo: typeof deviceGetDeviceInfo;
|
|
241
|
+
deviceGetOnboardingStatus: typeof deviceGetOnboardingStatus;
|
|
242
|
+
deviceFirmwareUpdate: typeof deviceFirmwareUpdate;
|
|
243
|
+
deviceGetFirmwareUpdateStatus: typeof deviceGetFirmwareUpdateStatus;
|
|
243
244
|
factoryDeviceInfoSettings: typeof factoryDeviceInfoSettings;
|
|
244
245
|
factoryGetDeviceInfo: typeof factoryGetDeviceInfo;
|
|
245
246
|
filesystemFixPermission: typeof filesystemFixPermission;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { CommonParams, Response } from '../params';
|
|
2
2
|
import type {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
DeviceFirmwareTarget,
|
|
4
|
+
DeviceFirmwareUpdateStatus,
|
|
5
|
+
DeviceOnboardingStatus,
|
|
6
|
+
DeviceInfoTargets,
|
|
7
|
+
DeviceInfoTypes,
|
|
8
|
+
DeviceRebootType,
|
|
9
9
|
FactoryDeviceInfo,
|
|
10
10
|
ProtoVersion,
|
|
11
11
|
ProtocolV2DeviceInfo,
|
|
@@ -48,14 +48,14 @@ export type PathInfoResult = {
|
|
|
48
48
|
directory?: boolean;
|
|
49
49
|
};
|
|
50
50
|
|
|
51
|
-
export type
|
|
52
|
-
rebootType?:
|
|
53
|
-
reboot_type?:
|
|
51
|
+
export type DeviceRebootParams = {
|
|
52
|
+
rebootType?: DeviceRebootType | string | number;
|
|
53
|
+
reboot_type?: DeviceRebootType | string | number;
|
|
54
54
|
};
|
|
55
55
|
|
|
56
|
-
export type
|
|
57
|
-
targets?:
|
|
58
|
-
types?:
|
|
56
|
+
export type DeviceGetDeviceInfoParams = {
|
|
57
|
+
targets?: DeviceInfoTargets;
|
|
58
|
+
types?: DeviceInfoTypes;
|
|
59
59
|
targetHw?: boolean;
|
|
60
60
|
targetFw?: boolean;
|
|
61
61
|
targetBt?: boolean;
|
|
@@ -70,10 +70,10 @@ export type DevGetDeviceInfoParams = {
|
|
|
70
70
|
includeSpecific?: boolean;
|
|
71
71
|
};
|
|
72
72
|
|
|
73
|
-
export type
|
|
74
|
-
targets?:
|
|
75
|
-
targetId?:
|
|
76
|
-
target_id?:
|
|
73
|
+
export type DeviceFirmwareUpdateParams = {
|
|
74
|
+
targets?: DeviceFirmwareTarget[];
|
|
75
|
+
targetId?: DeviceFirmwareTarget['target_id'] | string | number;
|
|
76
|
+
target_id?: DeviceFirmwareTarget['target_id'] | string | number;
|
|
77
77
|
path?: string;
|
|
78
78
|
};
|
|
79
79
|
|
|
@@ -149,30 +149,30 @@ export declare function ping(
|
|
|
149
149
|
params?: CommonParams & { message?: string }
|
|
150
150
|
): Response<Success>;
|
|
151
151
|
|
|
152
|
-
export declare function
|
|
152
|
+
export declare function deviceReboot(
|
|
153
153
|
connectId: string,
|
|
154
|
-
params: CommonParams &
|
|
154
|
+
params: CommonParams & DeviceRebootParams
|
|
155
155
|
): Response<Success>;
|
|
156
156
|
|
|
157
|
-
export declare function
|
|
157
|
+
export declare function deviceGetDeviceInfo(
|
|
158
158
|
connectId: string,
|
|
159
|
-
params?: CommonParams &
|
|
159
|
+
params?: CommonParams & DeviceGetDeviceInfoParams
|
|
160
160
|
): Response<ProtocolV2DeviceInfo>;
|
|
161
161
|
|
|
162
|
-
export declare function
|
|
162
|
+
export declare function deviceGetOnboardingStatus(
|
|
163
163
|
connectId: string,
|
|
164
164
|
params?: CommonParams
|
|
165
|
-
): Response<
|
|
165
|
+
): Response<DeviceOnboardingStatus>;
|
|
166
166
|
|
|
167
|
-
export declare function
|
|
167
|
+
export declare function deviceFirmwareUpdate(
|
|
168
168
|
connectId: string,
|
|
169
|
-
params: CommonParams &
|
|
170
|
-
): Response<Success |
|
|
169
|
+
params: CommonParams & DeviceFirmwareUpdateParams
|
|
170
|
+
): Response<Success | DeviceFirmwareUpdateStatus>;
|
|
171
171
|
|
|
172
|
-
export declare function
|
|
172
|
+
export declare function deviceGetFirmwareUpdateStatus(
|
|
173
173
|
connectId: string,
|
|
174
174
|
params?: CommonParams
|
|
175
|
-
): Response<
|
|
175
|
+
): Response<DeviceFirmwareUpdateStatus>;
|
|
176
176
|
|
|
177
177
|
export declare function factoryDeviceInfoSettings(
|
|
178
178
|
connectId: string,
|
|
@@ -5,7 +5,10 @@ import { Enum_Capability } from '@onekeyfe/hd-transport';
|
|
|
5
5
|
|
|
6
6
|
import { toHardened } from '../api/helpers/pathUtils';
|
|
7
7
|
import { DeviceModelToTypes, DeviceTypeToModels } from '../types';
|
|
8
|
-
import DataManager, {
|
|
8
|
+
import DataManager, {
|
|
9
|
+
type IFirmwareField,
|
|
10
|
+
type ProtocolV1MessageSchema,
|
|
11
|
+
} from '../data-manager/DataManager';
|
|
9
12
|
import { PROTOBUF_MESSAGE_CONFIG } from '../data-manager/MessagesConfig';
|
|
10
13
|
import { getDeviceType } from './deviceInfoUtils';
|
|
11
14
|
import { getDeviceFirmwareVersion } from './deviceVersionUtils';
|
|
@@ -15,13 +18,13 @@ import type { Device } from '../device/Device';
|
|
|
15
18
|
import type { DeviceCommands } from '../device/DeviceCommands';
|
|
16
19
|
import type { Features, SupportFeatureType } from '../types';
|
|
17
20
|
|
|
18
|
-
export const
|
|
21
|
+
export const getSupportProtocolV1MessageSchema = (
|
|
19
22
|
features: Features | undefined
|
|
20
|
-
): { messages: JSON;
|
|
23
|
+
): { messages: JSON; protocolV1MessageSchema: ProtocolV1MessageSchema } => {
|
|
21
24
|
if (!features)
|
|
22
25
|
return {
|
|
23
|
-
messages: DataManager.messages.
|
|
24
|
-
|
|
26
|
+
messages: DataManager.messages.protocolV1Current,
|
|
27
|
+
protocolV1MessageSchema: 'protocolV1Current',
|
|
25
28
|
};
|
|
26
29
|
|
|
27
30
|
const currentDeviceVersion = getDeviceFirmwareVersion(features).join('.');
|
|
@@ -37,18 +40,18 @@ export const getSupportMessageVersion = (
|
|
|
37
40
|
const sortedDeviceVersionConfigs =
|
|
38
41
|
deviceVersionConfigs?.sort((a, b) => semver.compare(b.minVersion, a.minVersion)) ?? [];
|
|
39
42
|
|
|
40
|
-
for (const { minVersion,
|
|
43
|
+
for (const { minVersion, protocolV1MessageSchema } of sortedDeviceVersionConfigs) {
|
|
41
44
|
if (semver.gte(currentDeviceVersion, minVersion)) {
|
|
42
45
|
return {
|
|
43
|
-
messages: DataManager.messages[
|
|
44
|
-
|
|
46
|
+
messages: DataManager.messages[protocolV1MessageSchema],
|
|
47
|
+
protocolV1MessageSchema,
|
|
45
48
|
};
|
|
46
49
|
}
|
|
47
50
|
}
|
|
48
51
|
|
|
49
52
|
return {
|
|
50
|
-
messages: DataManager.messages.
|
|
51
|
-
|
|
53
|
+
messages: DataManager.messages.protocolV1Current,
|
|
54
|
+
protocolV1MessageSchema: 'protocolV1Current',
|
|
52
55
|
};
|
|
53
56
|
};
|
|
54
57
|
|
|
@@ -68,7 +71,11 @@ export const supportNewPassphrase = (features?: Features): SupportFeatureType =>
|
|
|
68
71
|
if (!features) return { support: false };
|
|
69
72
|
|
|
70
73
|
const deviceType = getDeviceType(features);
|
|
71
|
-
if (
|
|
74
|
+
if (
|
|
75
|
+
deviceType === EDeviceType.Touch ||
|
|
76
|
+
deviceType === EDeviceType.Pro ||
|
|
77
|
+
deviceType === EDeviceType.Pro2
|
|
78
|
+
) {
|
|
72
79
|
return { support: true };
|
|
73
80
|
}
|
|
74
81
|
|
|
@@ -86,6 +93,8 @@ export const getPassphraseStateWithRefreshDeviceInfo = async (
|
|
|
86
93
|
) => {
|
|
87
94
|
const { features, commands } = device;
|
|
88
95
|
const locked = features?.unlocked === false;
|
|
96
|
+
const deviceType = getDeviceType(features);
|
|
97
|
+
const isPro2 = deviceType === EDeviceType.Pro2;
|
|
89
98
|
|
|
90
99
|
const { passphraseState, newSession, unlockedAttachPin } = await getPassphraseState(
|
|
91
100
|
features,
|
|
@@ -95,12 +104,12 @@ export const getPassphraseStateWithRefreshDeviceInfo = async (
|
|
|
95
104
|
}
|
|
96
105
|
);
|
|
97
106
|
|
|
98
|
-
const isModeT =
|
|
99
|
-
getDeviceType(features) === EDeviceType.Touch || getDeviceType(features) === EDeviceType.Pro;
|
|
107
|
+
const isModeT = deviceType === EDeviceType.Touch || deviceType === EDeviceType.Pro;
|
|
100
108
|
|
|
101
109
|
// 如果可以获取到 passphraseState,但是设备 features 显示设备未开启 passphrase,需要刷新设备状态
|
|
102
110
|
// if passphraseState can be obtained, but the device features show that the device has not enabled passphrase, the device status needs to be refreshed
|
|
103
|
-
const needRefreshWithPassphrase =
|
|
111
|
+
const needRefreshWithPassphrase =
|
|
112
|
+
!isPro2 && passphraseState && features?.passphrase_protection !== true;
|
|
104
113
|
// 如果 Touch/Pro 在之前是锁定状态,刷新设备状态
|
|
105
114
|
// if Touch/Pro was locked before, refresh the device state
|
|
106
115
|
const needRefreshWithLocked = isModeT && locked;
|
|
@@ -110,10 +119,17 @@ export const getPassphraseStateWithRefreshDeviceInfo = async (
|
|
|
110
119
|
await device.getFeatures();
|
|
111
120
|
}
|
|
112
121
|
|
|
122
|
+
if (isPro2 && device.features && (passphraseState || newSession)) {
|
|
123
|
+
device.features.passphrase_protection = true;
|
|
124
|
+
if (newSession) {
|
|
125
|
+
device.features.session_id = newSession;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
113
129
|
// Attach to pin try to fix internal state
|
|
114
130
|
if (features?.device_id) {
|
|
115
131
|
device.updateInternalState(
|
|
116
|
-
device.features?.passphrase_protection ?? false,
|
|
132
|
+
(device.features?.passphrase_protection ?? false) || isPro2,
|
|
117
133
|
passphraseState,
|
|
118
134
|
device.features?.device_id ?? '',
|
|
119
135
|
newSession,
|
|
@@ -148,6 +164,8 @@ export const getPassphraseState = async (
|
|
|
148
164
|
);
|
|
149
165
|
const supportGetPassphraseState =
|
|
150
166
|
supportAttachPinCapability ||
|
|
167
|
+
// Pro2 V2 暂未从 features 暴露 capabilities,先直连该方法用于固件联调。
|
|
168
|
+
deviceType === EDeviceType.Pro2 ||
|
|
151
169
|
(deviceType === EDeviceType.Pro && semver.gte(firmwareVersion.join('.'), '4.15.0'));
|
|
152
170
|
|
|
153
171
|
if (supportGetPassphraseState) {
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { BaseMethod } from '../BaseMethod';
|
|
2
|
-
import type { DevFirmwareUpdateParams } from './helpers';
|
|
3
|
-
export default class DevFirmwareUpdate extends BaseMethod<DevFirmwareUpdateParams> {
|
|
4
|
-
init(): void;
|
|
5
|
-
run(): Promise<import("packages/hd-transport/dist").Success | import("packages/hd-transport/dist").DevFirmwareUpdateStatus>;
|
|
6
|
-
}
|
|
7
|
-
//# sourceMappingURL=DevFirmwareUpdate.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DevFirmwareUpdate.d.ts","sourceRoot":"","sources":["../../../src/api/protocol-v2/DevFirmwareUpdate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAO3C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAC;AAEzD,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,UAAU,CAAC,uBAAuB,CAAC;IAChF,IAAI;IAWE,GAAG;CAWV"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { BaseMethod } from '../BaseMethod';
|
|
2
|
-
import type { DevGetDeviceInfoParams } from './helpers';
|
|
3
|
-
export default class DevGetDeviceInfo extends BaseMethod<DevGetDeviceInfoParams> {
|
|
4
|
-
init(): void;
|
|
5
|
-
run(): Promise<import("packages/hd-transport/dist").ProtocolV2DeviceInfo | import("packages/hd-transport/dist").DeviceInfo>;
|
|
6
|
-
}
|
|
7
|
-
//# sourceMappingURL=DevGetDeviceInfo.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DevGetDeviceInfo.d.ts","sourceRoot":"","sources":["../../../src/api/protocol-v2/DevGetDeviceInfo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AAExD,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,UAAU,CAAC,sBAAsB,CAAC;IAC9E,IAAI;IAqBE,GAAG;CAOV"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { BaseMethod } from '../BaseMethod';
|
|
2
|
-
export default class DevGetFirmwareUpdateStatus extends BaseMethod {
|
|
3
|
-
init(): void;
|
|
4
|
-
run(): Promise<import("packages/hd-transport/dist").DevFirmwareUpdateStatus>;
|
|
5
|
-
}
|
|
6
|
-
//# sourceMappingURL=DevGetFirmwareUpdateStatus.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DevGetFirmwareUpdateStatus.d.ts","sourceRoot":"","sources":["../../../src/api/protocol-v2/DevGetFirmwareUpdateStatus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,MAAM,CAAC,OAAO,OAAO,0BAA2B,SAAQ,UAAU;IAChE,IAAI;IAME,GAAG;CAQV"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DevGetOnboardingStatus.d.ts","sourceRoot":"","sources":["../../../src/api/protocol-v2/DevGetOnboardingStatus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,UAAU;IAC5D,IAAI;IAME,GAAG;CAQV"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { BaseMethod } from '../BaseMethod';
|
|
2
|
-
import type { DevRebootParams } from './helpers';
|
|
3
|
-
export default class DevReboot extends BaseMethod<DevRebootParams> {
|
|
4
|
-
init(): void;
|
|
5
|
-
run(): Promise<import("packages/hd-transport/dist").Success>;
|
|
6
|
-
}
|
|
7
|
-
//# sourceMappingURL=DevReboot.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DevReboot.d.ts","sourceRoot":"","sources":["../../../src/api/protocol-v2/DevReboot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAEjD,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,UAAU,CAAC,eAAe,CAAC;IAChE,IAAI;IASE,GAAG;CAMV"}
|