@teslemetry/tesla-protocol 0.1.1
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 +20 -0
- package/dist/command/car_server.cjs +11126 -0
- package/dist/command/car_server.d.cts +1281 -0
- package/dist/command/car_server.d.mts +1281 -0
- package/dist/command/car_server.mjs +10880 -0
- package/dist/command/common.cjs +1536 -0
- package/dist/command/common.d.cts +327 -0
- package/dist/command/common.d.mts +327 -0
- package/dist/command/common.mjs +1488 -0
- package/dist/command/errors.cjs +107 -0
- package/dist/command/errors.d.cts +40 -0
- package/dist/command/errors.d.mts +40 -0
- package/dist/command/errors.mjs +102 -0
- package/dist/command/google/protobuf/timestamp.cjs +71 -0
- package/dist/command/google/protobuf/timestamp.d.cts +124 -0
- package/dist/command/google/protobuf/timestamp.d.mts +124 -0
- package/dist/command/google/protobuf/timestamp.mjs +69 -0
- package/dist/command/google/protobuf/wrappers.cjs +421 -0
- package/dist/command/google/protobuf/wrappers.d.cts +134 -0
- package/dist/command/google/protobuf/wrappers.d.mts +134 -0
- package/dist/command/google/protobuf/wrappers.mjs +411 -0
- package/dist/command/keys.cjs +60 -0
- package/dist/command/keys.d.cts +23 -0
- package/dist/command/keys.d.mts +23 -0
- package/dist/command/keys.mjs +56 -0
- package/dist/command/managed_charging.cjs +435 -0
- package/dist/command/managed_charging.d.cts +86 -0
- package/dist/command/managed_charging.d.mts +86 -0
- package/dist/command/managed_charging.mjs +421 -0
- package/dist/command/session.cjs +119 -0
- package/dist/command/session.d.cts +28 -0
- package/dist/command/session.d.mts +28 -0
- package/dist/command/session.mjs +117 -0
- package/dist/command/signatures.cjs +696 -0
- package/dist/command/signatures.d.cts +107 -0
- package/dist/command/signatures.d.mts +107 -0
- package/dist/command/signatures.mjs +678 -0
- package/dist/command/universal_message.cjs +588 -0
- package/dist/command/universal_message.d.cts +141 -0
- package/dist/command/universal_message.d.mts +141 -0
- package/dist/command/universal_message.mjs +571 -0
- package/dist/command/vcsec.cjs +2281 -0
- package/dist/command/vcsec.d.cts +404 -0
- package/dist/command/vcsec.d.mts +404 -0
- package/dist/command/vcsec.mjs +2218 -0
- package/dist/command/vehicle.cjs +10332 -0
- package/dist/command/vehicle.d.cts +1429 -0
- package/dist/command/vehicle.d.mts +1429 -0
- package/dist/command/vehicle.mjs +10168 -0
- package/dist/energy_command/identifier_type.cjs +47 -0
- package/dist/energy_command/identifier_type.d.cts +19 -0
- package/dist/energy_command/identifier_type.d.mts +19 -0
- package/dist/energy_command/identifier_type.mjs +43 -0
- package/dist/energy_device/authorization_api.cjs +815 -0
- package/dist/energy_device/authorization_api.d.cts +92 -0
- package/dist/energy_device/authorization_api.d.mts +92 -0
- package/dist/energy_device/authorization_api.mjs +801 -0
- package/dist/energy_device/authorization_types.cjs +348 -0
- package/dist/energy_device/authorization_types.d.cts +79 -0
- package/dist/energy_device/authorization_types.d.mts +79 -0
- package/dist/energy_device/authorization_types.mjs +331 -0
- package/dist/energy_device/common_api.cjs +2104 -0
- package/dist/energy_device/common_api.d.cts +211 -0
- package/dist/energy_device/common_api.d.mts +211 -0
- package/dist/energy_device/common_api.mjs +2064 -0
- package/dist/energy_device/device.cjs +485 -0
- package/dist/energy_device/device.d.cts +102 -0
- package/dist/energy_device/device.d.mts +102 -0
- package/dist/energy_device/device.mjs +462 -0
- package/dist/energy_device/energy.cjs +442 -0
- package/dist/energy_device/energy.d.cts +82 -0
- package/dist/energy_device/energy.d.mts +82 -0
- package/dist/energy_device/energy.mjs +429 -0
- package/dist/energy_device/energy_site_net.cjs +235 -0
- package/dist/energy_device/energy_site_net.d.cts +69 -0
- package/dist/energy_device/energy_site_net.d.mts +69 -0
- package/dist/energy_device/energy_site_net.mjs +219 -0
- package/dist/energy_device/error.cjs +53 -0
- package/dist/energy_device/error.d.cts +27 -0
- package/dist/energy_device/error.d.mts +27 -0
- package/dist/energy_device/error.mjs +51 -0
- package/dist/energy_device/google/protobuf/timestamp.cjs +71 -0
- package/dist/energy_device/google/protobuf/timestamp.d.cts +124 -0
- package/dist/energy_device/google/protobuf/timestamp.d.mts +124 -0
- package/dist/energy_device/google/protobuf/timestamp.mjs +69 -0
- package/dist/energy_device/google/protobuf/wrappers.cjs +421 -0
- package/dist/energy_device/google/protobuf/wrappers.d.cts +134 -0
- package/dist/energy_device/google/protobuf/wrappers.d.mts +134 -0
- package/dist/energy_device/google/protobuf/wrappers.mjs +411 -0
- package/dist/energy_device/google/rpc/status.cjs +65 -0
- package/dist/energy_device/google/rpc/status.d.cts +26 -0
- package/dist/energy_device/google/rpc/status.d.mts +26 -0
- package/dist/energy_device/google/rpc/status.mjs +63 -0
- package/dist/energy_device/networking.cjs +834 -0
- package/dist/energy_device/networking.d.cts +141 -0
- package/dist/energy_device/networking.d.mts +141 -0
- package/dist/energy_device/networking.mjs +810 -0
- package/dist/energy_device/teg_api.cjs +594 -0
- package/dist/energy_device/teg_api.d.cts +140 -0
- package/dist/energy_device/teg_api.d.mts +140 -0
- package/dist/energy_device/teg_api.mjs +581 -0
- package/dist/energy_device/transport.cjs +478 -0
- package/dist/energy_device/transport.d.cts +95 -0
- package/dist/energy_device/transport.d.mts +95 -0
- package/dist/energy_device/transport.mjs +460 -0
- package/dist/energy_device/update.cjs +521 -0
- package/dist/energy_device/update.d.cts +86 -0
- package/dist/energy_device/update.d.mts +86 -0
- package/dist/energy_device/update.mjs +506 -0
- package/dist/energy_device/wall_connector.cjs +634 -0
- package/dist/energy_device/wall_connector.d.cts +182 -0
- package/dist/energy_device/wall_connector.d.mts +182 -0
- package/dist/energy_device/wall_connector.mjs +590 -0
- package/dist/telemetry/google/protobuf/timestamp.cjs +71 -0
- package/dist/telemetry/google/protobuf/timestamp.d.cts +124 -0
- package/dist/telemetry/google/protobuf/timestamp.d.mts +124 -0
- package/dist/telemetry/google/protobuf/timestamp.mjs +69 -0
- package/dist/telemetry/vehicle_alert.cjs +214 -0
- package/dist/telemetry/vehicle_alert.d.cts +48 -0
- package/dist/telemetry/vehicle_alert.d.mts +48 -0
- package/dist/telemetry/vehicle_alert.mjs +208 -0
- package/dist/telemetry/vehicle_connectivity.cjs +145 -0
- package/dist/telemetry/vehicle_connectivity.d.cts +41 -0
- package/dist/telemetry/vehicle_connectivity.d.mts +41 -0
- package/dist/telemetry/vehicle_connectivity.mjs +140 -0
- package/dist/telemetry/vehicle_data.cjs +3792 -0
- package/dist/telemetry/vehicle_data.d.cts +872 -0
- package/dist/telemetry/vehicle_data.d.mts +872 -0
- package/dist/telemetry/vehicle_data.mjs +3655 -0
- package/dist/telemetry/vehicle_error.cjs +245 -0
- package/dist/telemetry/vehicle_error.d.cts +45 -0
- package/dist/telemetry/vehicle_error.d.mts +45 -0
- package/dist/telemetry/vehicle_error.mjs +241 -0
- package/dist/telemetry/vehicle_metric.cjs +236 -0
- package/dist/telemetry/vehicle_metric.d.cts +44 -0
- package/dist/telemetry/vehicle_metric.d.mts +44 -0
- package/dist/telemetry/vehicle_metric.mjs +232 -0
- package/dist/teslapower/google/protobuf/any.cjs +84 -0
- package/dist/teslapower/google/protobuf/any.d.cts +140 -0
- package/dist/teslapower/google/protobuf/any.d.mts +140 -0
- package/dist/teslapower/google/protobuf/any.mjs +82 -0
- package/dist/teslapower/google/protobuf/timestamp.cjs +71 -0
- package/dist/teslapower/google/protobuf/timestamp.d.cts +124 -0
- package/dist/teslapower/google/protobuf/timestamp.d.mts +124 -0
- package/dist/teslapower/google/protobuf/timestamp.mjs +69 -0
- package/dist/teslapower/teslapower.cjs +5486 -0
- package/dist/teslapower/teslapower.d.cts +518 -0
- package/dist/teslapower/teslapower.d.mts +518 -0
- package/dist/teslapower/teslapower.mjs +5381 -0
- package/package.json +53 -0
|
@@ -0,0 +1,2064 @@
|
|
|
1
|
+
import { DeviceSignedPayload, Din, EcuId, EncryptedMessage, deviceCertFormatFromJSON, deviceCertFormatToJSON, deviceTypeFromJSON, deviceTypeToJSON } from "./device.mjs";
|
|
2
|
+
import { ErrorResponse } from "./error.mjs";
|
|
3
|
+
import { CellularEID, NetworkInterface, NetworkInterfaceIPv4Config, WifiConfig, WifiNetwork, wifiNetworkSecurityTypeFromJSON, wifiNetworkSecurityTypeToJSON } from "./networking.mjs";
|
|
4
|
+
import { AcceptedPackage, FirmwareVersion, LocallyAvailablePackage, SystemUpdate } from "./update.mjs";
|
|
5
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
6
|
+
//#region src/energy_device/common_api.ts
|
|
7
|
+
const protobufPackage = "tesla.proto.energy_device.v1";
|
|
8
|
+
function createBaseCommonAPIGetSystemInfoRequest() {
|
|
9
|
+
return {};
|
|
10
|
+
}
|
|
11
|
+
const CommonAPIGetSystemInfoRequest = {
|
|
12
|
+
encode(_, writer = new BinaryWriter()) {
|
|
13
|
+
return writer;
|
|
14
|
+
},
|
|
15
|
+
decode(input, length) {
|
|
16
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
17
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
18
|
+
const message = createBaseCommonAPIGetSystemInfoRequest();
|
|
19
|
+
while (reader.pos < end) {
|
|
20
|
+
const tag = reader.uint32();
|
|
21
|
+
switch (tag >>> 3) {}
|
|
22
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
23
|
+
reader.skip(tag & 7);
|
|
24
|
+
}
|
|
25
|
+
return message;
|
|
26
|
+
},
|
|
27
|
+
fromJSON(_) {
|
|
28
|
+
return {};
|
|
29
|
+
},
|
|
30
|
+
toJSON(_) {
|
|
31
|
+
return {};
|
|
32
|
+
},
|
|
33
|
+
create(base) {
|
|
34
|
+
return CommonAPIGetSystemInfoRequest.fromPartial(base ?? {});
|
|
35
|
+
},
|
|
36
|
+
fromPartial(_) {
|
|
37
|
+
return createBaseCommonAPIGetSystemInfoRequest();
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
function createBaseCommonAPIGetSystemInfoResponse() {
|
|
41
|
+
return {
|
|
42
|
+
deviceId: void 0,
|
|
43
|
+
din: void 0,
|
|
44
|
+
firmareVersion: void 0,
|
|
45
|
+
systemUpdate: void 0,
|
|
46
|
+
deviceType: 0
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
const CommonAPIGetSystemInfoResponse = {
|
|
50
|
+
encode(message, writer = new BinaryWriter()) {
|
|
51
|
+
if (message.deviceId !== void 0) EcuId.encode(message.deviceId, writer.uint32(10).fork()).join();
|
|
52
|
+
if (message.din !== void 0) Din.encode(message.din, writer.uint32(18).fork()).join();
|
|
53
|
+
if (message.firmareVersion !== void 0) FirmwareVersion.encode(message.firmareVersion, writer.uint32(26).fork()).join();
|
|
54
|
+
if (message.systemUpdate !== void 0) SystemUpdate.encode(message.systemUpdate, writer.uint32(34).fork()).join();
|
|
55
|
+
if (message.deviceType !== 0) writer.uint32(40).int32(message.deviceType);
|
|
56
|
+
return writer;
|
|
57
|
+
},
|
|
58
|
+
decode(input, length) {
|
|
59
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
60
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
61
|
+
const message = createBaseCommonAPIGetSystemInfoResponse();
|
|
62
|
+
while (reader.pos < end) {
|
|
63
|
+
const tag = reader.uint32();
|
|
64
|
+
switch (tag >>> 3) {
|
|
65
|
+
case 1:
|
|
66
|
+
if (tag !== 10) break;
|
|
67
|
+
message.deviceId = EcuId.decode(reader, reader.uint32());
|
|
68
|
+
continue;
|
|
69
|
+
case 2:
|
|
70
|
+
if (tag !== 18) break;
|
|
71
|
+
message.din = Din.decode(reader, reader.uint32());
|
|
72
|
+
continue;
|
|
73
|
+
case 3:
|
|
74
|
+
if (tag !== 26) break;
|
|
75
|
+
message.firmareVersion = FirmwareVersion.decode(reader, reader.uint32());
|
|
76
|
+
continue;
|
|
77
|
+
case 4:
|
|
78
|
+
if (tag !== 34) break;
|
|
79
|
+
message.systemUpdate = SystemUpdate.decode(reader, reader.uint32());
|
|
80
|
+
continue;
|
|
81
|
+
case 5:
|
|
82
|
+
if (tag !== 40) break;
|
|
83
|
+
message.deviceType = reader.int32();
|
|
84
|
+
continue;
|
|
85
|
+
}
|
|
86
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
87
|
+
reader.skip(tag & 7);
|
|
88
|
+
}
|
|
89
|
+
return message;
|
|
90
|
+
},
|
|
91
|
+
fromJSON(object) {
|
|
92
|
+
return {
|
|
93
|
+
deviceId: isSet(object.deviceId) ? EcuId.fromJSON(object.deviceId) : void 0,
|
|
94
|
+
din: isSet(object.din) ? Din.fromJSON(object.din) : void 0,
|
|
95
|
+
firmareVersion: isSet(object.firmareVersion) ? FirmwareVersion.fromJSON(object.firmareVersion) : void 0,
|
|
96
|
+
systemUpdate: isSet(object.systemUpdate) ? SystemUpdate.fromJSON(object.systemUpdate) : void 0,
|
|
97
|
+
deviceType: isSet(object.deviceType) ? deviceTypeFromJSON(object.deviceType) : 0
|
|
98
|
+
};
|
|
99
|
+
},
|
|
100
|
+
toJSON(message) {
|
|
101
|
+
const obj = {};
|
|
102
|
+
if (message.deviceId !== void 0) obj.deviceId = EcuId.toJSON(message.deviceId);
|
|
103
|
+
if (message.din !== void 0) obj.din = Din.toJSON(message.din);
|
|
104
|
+
if (message.firmareVersion !== void 0) obj.firmareVersion = FirmwareVersion.toJSON(message.firmareVersion);
|
|
105
|
+
if (message.systemUpdate !== void 0) obj.systemUpdate = SystemUpdate.toJSON(message.systemUpdate);
|
|
106
|
+
if (message.deviceType !== void 0) obj.deviceType = deviceTypeToJSON(message.deviceType);
|
|
107
|
+
return obj;
|
|
108
|
+
},
|
|
109
|
+
create(base) {
|
|
110
|
+
return CommonAPIGetSystemInfoResponse.fromPartial(base ?? {});
|
|
111
|
+
},
|
|
112
|
+
fromPartial(object) {
|
|
113
|
+
const message = createBaseCommonAPIGetSystemInfoResponse();
|
|
114
|
+
message.deviceId = object.deviceId !== void 0 && object.deviceId !== null ? EcuId.fromPartial(object.deviceId) : void 0;
|
|
115
|
+
message.din = object.din !== void 0 && object.din !== null ? Din.fromPartial(object.din) : void 0;
|
|
116
|
+
message.firmareVersion = object.firmareVersion !== void 0 && object.firmareVersion !== null ? FirmwareVersion.fromPartial(object.firmareVersion) : void 0;
|
|
117
|
+
message.systemUpdate = object.systemUpdate !== void 0 && object.systemUpdate !== null ? SystemUpdate.fromPartial(object.systemUpdate) : void 0;
|
|
118
|
+
message.deviceType = object.deviceType ?? 0;
|
|
119
|
+
return message;
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
function createBaseCommonAPISetLocalSiteConfigRequest() {
|
|
123
|
+
return {};
|
|
124
|
+
}
|
|
125
|
+
const CommonAPISetLocalSiteConfigRequest = {
|
|
126
|
+
encode(_, writer = new BinaryWriter()) {
|
|
127
|
+
return writer;
|
|
128
|
+
},
|
|
129
|
+
decode(input, length) {
|
|
130
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
131
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
132
|
+
const message = createBaseCommonAPISetLocalSiteConfigRequest();
|
|
133
|
+
while (reader.pos < end) {
|
|
134
|
+
const tag = reader.uint32();
|
|
135
|
+
switch (tag >>> 3) {}
|
|
136
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
137
|
+
reader.skip(tag & 7);
|
|
138
|
+
}
|
|
139
|
+
return message;
|
|
140
|
+
},
|
|
141
|
+
fromJSON(_) {
|
|
142
|
+
return {};
|
|
143
|
+
},
|
|
144
|
+
toJSON(_) {
|
|
145
|
+
return {};
|
|
146
|
+
},
|
|
147
|
+
create(base) {
|
|
148
|
+
return CommonAPISetLocalSiteConfigRequest.fromPartial(base ?? {});
|
|
149
|
+
},
|
|
150
|
+
fromPartial(_) {
|
|
151
|
+
return createBaseCommonAPISetLocalSiteConfigRequest();
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
function createBaseCommonAPISetLocalSiteConfigResponse() {
|
|
155
|
+
return {};
|
|
156
|
+
}
|
|
157
|
+
const CommonAPISetLocalSiteConfigResponse = {
|
|
158
|
+
encode(_, writer = new BinaryWriter()) {
|
|
159
|
+
return writer;
|
|
160
|
+
},
|
|
161
|
+
decode(input, length) {
|
|
162
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
163
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
164
|
+
const message = createBaseCommonAPISetLocalSiteConfigResponse();
|
|
165
|
+
while (reader.pos < end) {
|
|
166
|
+
const tag = reader.uint32();
|
|
167
|
+
switch (tag >>> 3) {}
|
|
168
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
169
|
+
reader.skip(tag & 7);
|
|
170
|
+
}
|
|
171
|
+
return message;
|
|
172
|
+
},
|
|
173
|
+
fromJSON(_) {
|
|
174
|
+
return {};
|
|
175
|
+
},
|
|
176
|
+
toJSON(_) {
|
|
177
|
+
return {};
|
|
178
|
+
},
|
|
179
|
+
create(base) {
|
|
180
|
+
return CommonAPISetLocalSiteConfigResponse.fromPartial(base ?? {});
|
|
181
|
+
},
|
|
182
|
+
fromPartial(_) {
|
|
183
|
+
return createBaseCommonAPISetLocalSiteConfigResponse();
|
|
184
|
+
}
|
|
185
|
+
};
|
|
186
|
+
function createBaseCommonAPIPerformUpdateRequest() {
|
|
187
|
+
return {};
|
|
188
|
+
}
|
|
189
|
+
const CommonAPIPerformUpdateRequest = {
|
|
190
|
+
encode(_, writer = new BinaryWriter()) {
|
|
191
|
+
return writer;
|
|
192
|
+
},
|
|
193
|
+
decode(input, length) {
|
|
194
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
195
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
196
|
+
const message = createBaseCommonAPIPerformUpdateRequest();
|
|
197
|
+
while (reader.pos < end) {
|
|
198
|
+
const tag = reader.uint32();
|
|
199
|
+
switch (tag >>> 3) {}
|
|
200
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
201
|
+
reader.skip(tag & 7);
|
|
202
|
+
}
|
|
203
|
+
return message;
|
|
204
|
+
},
|
|
205
|
+
fromJSON(_) {
|
|
206
|
+
return {};
|
|
207
|
+
},
|
|
208
|
+
toJSON(_) {
|
|
209
|
+
return {};
|
|
210
|
+
},
|
|
211
|
+
create(base) {
|
|
212
|
+
return CommonAPIPerformUpdateRequest.fromPartial(base ?? {});
|
|
213
|
+
},
|
|
214
|
+
fromPartial(_) {
|
|
215
|
+
return createBaseCommonAPIPerformUpdateRequest();
|
|
216
|
+
}
|
|
217
|
+
};
|
|
218
|
+
function createBaseCommonAPIPerformUpdateResponse() {
|
|
219
|
+
return {};
|
|
220
|
+
}
|
|
221
|
+
const CommonAPIPerformUpdateResponse = {
|
|
222
|
+
encode(_, writer = new BinaryWriter()) {
|
|
223
|
+
return writer;
|
|
224
|
+
},
|
|
225
|
+
decode(input, length) {
|
|
226
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
227
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
228
|
+
const message = createBaseCommonAPIPerformUpdateResponse();
|
|
229
|
+
while (reader.pos < end) {
|
|
230
|
+
const tag = reader.uint32();
|
|
231
|
+
switch (tag >>> 3) {}
|
|
232
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
233
|
+
reader.skip(tag & 7);
|
|
234
|
+
}
|
|
235
|
+
return message;
|
|
236
|
+
},
|
|
237
|
+
fromJSON(_) {
|
|
238
|
+
return {};
|
|
239
|
+
},
|
|
240
|
+
toJSON(_) {
|
|
241
|
+
return {};
|
|
242
|
+
},
|
|
243
|
+
create(base) {
|
|
244
|
+
return CommonAPIPerformUpdateResponse.fromPartial(base ?? {});
|
|
245
|
+
},
|
|
246
|
+
fromPartial(_) {
|
|
247
|
+
return createBaseCommonAPIPerformUpdateResponse();
|
|
248
|
+
}
|
|
249
|
+
};
|
|
250
|
+
function createBaseCommonAPIFactoryResetRequest() {
|
|
251
|
+
return {};
|
|
252
|
+
}
|
|
253
|
+
const CommonAPIFactoryResetRequest = {
|
|
254
|
+
encode(_, writer = new BinaryWriter()) {
|
|
255
|
+
return writer;
|
|
256
|
+
},
|
|
257
|
+
decode(input, length) {
|
|
258
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
259
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
260
|
+
const message = createBaseCommonAPIFactoryResetRequest();
|
|
261
|
+
while (reader.pos < end) {
|
|
262
|
+
const tag = reader.uint32();
|
|
263
|
+
switch (tag >>> 3) {}
|
|
264
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
265
|
+
reader.skip(tag & 7);
|
|
266
|
+
}
|
|
267
|
+
return message;
|
|
268
|
+
},
|
|
269
|
+
fromJSON(_) {
|
|
270
|
+
return {};
|
|
271
|
+
},
|
|
272
|
+
toJSON(_) {
|
|
273
|
+
return {};
|
|
274
|
+
},
|
|
275
|
+
create(base) {
|
|
276
|
+
return CommonAPIFactoryResetRequest.fromPartial(base ?? {});
|
|
277
|
+
},
|
|
278
|
+
fromPartial(_) {
|
|
279
|
+
return createBaseCommonAPIFactoryResetRequest();
|
|
280
|
+
}
|
|
281
|
+
};
|
|
282
|
+
function createBaseCommonAPIFactoryResetResponse() {
|
|
283
|
+
return {};
|
|
284
|
+
}
|
|
285
|
+
const CommonAPIFactoryResetResponse = {
|
|
286
|
+
encode(_, writer = new BinaryWriter()) {
|
|
287
|
+
return writer;
|
|
288
|
+
},
|
|
289
|
+
decode(input, length) {
|
|
290
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
291
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
292
|
+
const message = createBaseCommonAPIFactoryResetResponse();
|
|
293
|
+
while (reader.pos < end) {
|
|
294
|
+
const tag = reader.uint32();
|
|
295
|
+
switch (tag >>> 3) {}
|
|
296
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
297
|
+
reader.skip(tag & 7);
|
|
298
|
+
}
|
|
299
|
+
return message;
|
|
300
|
+
},
|
|
301
|
+
fromJSON(_) {
|
|
302
|
+
return {};
|
|
303
|
+
},
|
|
304
|
+
toJSON(_) {
|
|
305
|
+
return {};
|
|
306
|
+
},
|
|
307
|
+
create(base) {
|
|
308
|
+
return CommonAPIFactoryResetResponse.fromPartial(base ?? {});
|
|
309
|
+
},
|
|
310
|
+
fromPartial(_) {
|
|
311
|
+
return createBaseCommonAPIFactoryResetResponse();
|
|
312
|
+
}
|
|
313
|
+
};
|
|
314
|
+
function createBaseCommonAPIWifiScanRequest() {
|
|
315
|
+
return {
|
|
316
|
+
maxScanDurationS: 0,
|
|
317
|
+
desiredSecurityTypes: [],
|
|
318
|
+
maximumTotalAps: 0
|
|
319
|
+
};
|
|
320
|
+
}
|
|
321
|
+
const CommonAPIWifiScanRequest = {
|
|
322
|
+
encode(message, writer = new BinaryWriter()) {
|
|
323
|
+
if (message.maxScanDurationS !== 0) writer.uint32(8).uint32(message.maxScanDurationS);
|
|
324
|
+
writer.uint32(18).fork();
|
|
325
|
+
for (const v of message.desiredSecurityTypes) writer.int32(v);
|
|
326
|
+
writer.join();
|
|
327
|
+
if (message.maximumTotalAps !== 0) writer.uint32(24).uint32(message.maximumTotalAps);
|
|
328
|
+
return writer;
|
|
329
|
+
},
|
|
330
|
+
decode(input, length) {
|
|
331
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
332
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
333
|
+
const message = createBaseCommonAPIWifiScanRequest();
|
|
334
|
+
while (reader.pos < end) {
|
|
335
|
+
const tag = reader.uint32();
|
|
336
|
+
switch (tag >>> 3) {
|
|
337
|
+
case 1:
|
|
338
|
+
if (tag !== 8) break;
|
|
339
|
+
message.maxScanDurationS = reader.uint32();
|
|
340
|
+
continue;
|
|
341
|
+
case 2:
|
|
342
|
+
if (tag === 16) {
|
|
343
|
+
message.desiredSecurityTypes.push(reader.int32());
|
|
344
|
+
continue;
|
|
345
|
+
}
|
|
346
|
+
if (tag === 18) {
|
|
347
|
+
const end2 = reader.uint32() + reader.pos;
|
|
348
|
+
while (reader.pos < end2) message.desiredSecurityTypes.push(reader.int32());
|
|
349
|
+
continue;
|
|
350
|
+
}
|
|
351
|
+
break;
|
|
352
|
+
case 3:
|
|
353
|
+
if (tag !== 24) break;
|
|
354
|
+
message.maximumTotalAps = reader.uint32();
|
|
355
|
+
continue;
|
|
356
|
+
}
|
|
357
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
358
|
+
reader.skip(tag & 7);
|
|
359
|
+
}
|
|
360
|
+
return message;
|
|
361
|
+
},
|
|
362
|
+
fromJSON(object) {
|
|
363
|
+
return {
|
|
364
|
+
maxScanDurationS: isSet(object.maxScanDurationS) ? globalThis.Number(object.maxScanDurationS) : 0,
|
|
365
|
+
desiredSecurityTypes: globalThis.Array.isArray(object?.desiredSecurityTypes) ? object.desiredSecurityTypes.map((e) => wifiNetworkSecurityTypeFromJSON(e)) : [],
|
|
366
|
+
maximumTotalAps: isSet(object.maximumTotalAps) ? globalThis.Number(object.maximumTotalAps) : 0
|
|
367
|
+
};
|
|
368
|
+
},
|
|
369
|
+
toJSON(message) {
|
|
370
|
+
const obj = {};
|
|
371
|
+
if (message.maxScanDurationS !== void 0) obj.maxScanDurationS = Math.round(message.maxScanDurationS);
|
|
372
|
+
if (message.desiredSecurityTypes?.length) obj.desiredSecurityTypes = message.desiredSecurityTypes.map((e) => wifiNetworkSecurityTypeToJSON(e));
|
|
373
|
+
if (message.maximumTotalAps !== void 0) obj.maximumTotalAps = Math.round(message.maximumTotalAps);
|
|
374
|
+
return obj;
|
|
375
|
+
},
|
|
376
|
+
create(base) {
|
|
377
|
+
return CommonAPIWifiScanRequest.fromPartial(base ?? {});
|
|
378
|
+
},
|
|
379
|
+
fromPartial(object) {
|
|
380
|
+
const message = createBaseCommonAPIWifiScanRequest();
|
|
381
|
+
message.maxScanDurationS = object.maxScanDurationS ?? 0;
|
|
382
|
+
message.desiredSecurityTypes = object.desiredSecurityTypes?.map((e) => e) || [];
|
|
383
|
+
message.maximumTotalAps = object.maximumTotalAps ?? 0;
|
|
384
|
+
return message;
|
|
385
|
+
}
|
|
386
|
+
};
|
|
387
|
+
function createBaseCommonAPIWifiScanResponse() {
|
|
388
|
+
return { wifiNetworks: [] };
|
|
389
|
+
}
|
|
390
|
+
const CommonAPIWifiScanResponse = {
|
|
391
|
+
encode(message, writer = new BinaryWriter()) {
|
|
392
|
+
for (const v of message.wifiNetworks) WifiNetwork.encode(v, writer.uint32(10).fork()).join();
|
|
393
|
+
return writer;
|
|
394
|
+
},
|
|
395
|
+
decode(input, length) {
|
|
396
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
397
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
398
|
+
const message = createBaseCommonAPIWifiScanResponse();
|
|
399
|
+
while (reader.pos < end) {
|
|
400
|
+
const tag = reader.uint32();
|
|
401
|
+
switch (tag >>> 3) {
|
|
402
|
+
case 1:
|
|
403
|
+
if (tag !== 10) break;
|
|
404
|
+
message.wifiNetworks.push(WifiNetwork.decode(reader, reader.uint32()));
|
|
405
|
+
continue;
|
|
406
|
+
}
|
|
407
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
408
|
+
reader.skip(tag & 7);
|
|
409
|
+
}
|
|
410
|
+
return message;
|
|
411
|
+
},
|
|
412
|
+
fromJSON(object) {
|
|
413
|
+
return { wifiNetworks: globalThis.Array.isArray(object?.wifiNetworks) ? object.wifiNetworks.map((e) => WifiNetwork.fromJSON(e)) : [] };
|
|
414
|
+
},
|
|
415
|
+
toJSON(message) {
|
|
416
|
+
const obj = {};
|
|
417
|
+
if (message.wifiNetworks?.length) obj.wifiNetworks = message.wifiNetworks.map((e) => WifiNetwork.toJSON(e));
|
|
418
|
+
return obj;
|
|
419
|
+
},
|
|
420
|
+
create(base) {
|
|
421
|
+
return CommonAPIWifiScanResponse.fromPartial(base ?? {});
|
|
422
|
+
},
|
|
423
|
+
fromPartial(object) {
|
|
424
|
+
const message = createBaseCommonAPIWifiScanResponse();
|
|
425
|
+
message.wifiNetworks = object.wifiNetworks?.map((e) => WifiNetwork.fromPartial(e)) || [];
|
|
426
|
+
return message;
|
|
427
|
+
}
|
|
428
|
+
};
|
|
429
|
+
function createBaseCommonAPIConfigureWifiRequest() {
|
|
430
|
+
return {
|
|
431
|
+
enabled: false,
|
|
432
|
+
wifiConfig: void 0
|
|
433
|
+
};
|
|
434
|
+
}
|
|
435
|
+
const CommonAPIConfigureWifiRequest = {
|
|
436
|
+
encode(message, writer = new BinaryWriter()) {
|
|
437
|
+
if (message.enabled !== false) writer.uint32(8).bool(message.enabled);
|
|
438
|
+
if (message.wifiConfig !== void 0) WifiConfig.encode(message.wifiConfig, writer.uint32(18).fork()).join();
|
|
439
|
+
return writer;
|
|
440
|
+
},
|
|
441
|
+
decode(input, length) {
|
|
442
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
443
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
444
|
+
const message = createBaseCommonAPIConfigureWifiRequest();
|
|
445
|
+
while (reader.pos < end) {
|
|
446
|
+
const tag = reader.uint32();
|
|
447
|
+
switch (tag >>> 3) {
|
|
448
|
+
case 1:
|
|
449
|
+
if (tag !== 8) break;
|
|
450
|
+
message.enabled = reader.bool();
|
|
451
|
+
continue;
|
|
452
|
+
case 2:
|
|
453
|
+
if (tag !== 18) break;
|
|
454
|
+
message.wifiConfig = WifiConfig.decode(reader, reader.uint32());
|
|
455
|
+
continue;
|
|
456
|
+
}
|
|
457
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
458
|
+
reader.skip(tag & 7);
|
|
459
|
+
}
|
|
460
|
+
return message;
|
|
461
|
+
},
|
|
462
|
+
fromJSON(object) {
|
|
463
|
+
return {
|
|
464
|
+
enabled: isSet(object.enabled) ? globalThis.Boolean(object.enabled) : false,
|
|
465
|
+
wifiConfig: isSet(object.wifiConfig) ? WifiConfig.fromJSON(object.wifiConfig) : void 0
|
|
466
|
+
};
|
|
467
|
+
},
|
|
468
|
+
toJSON(message) {
|
|
469
|
+
const obj = {};
|
|
470
|
+
if (message.enabled !== void 0) obj.enabled = message.enabled;
|
|
471
|
+
if (message.wifiConfig !== void 0) obj.wifiConfig = WifiConfig.toJSON(message.wifiConfig);
|
|
472
|
+
return obj;
|
|
473
|
+
},
|
|
474
|
+
create(base) {
|
|
475
|
+
return CommonAPIConfigureWifiRequest.fromPartial(base ?? {});
|
|
476
|
+
},
|
|
477
|
+
fromPartial(object) {
|
|
478
|
+
const message = createBaseCommonAPIConfigureWifiRequest();
|
|
479
|
+
message.enabled = object.enabled ?? false;
|
|
480
|
+
message.wifiConfig = object.wifiConfig !== void 0 && object.wifiConfig !== null ? WifiConfig.fromPartial(object.wifiConfig) : void 0;
|
|
481
|
+
return message;
|
|
482
|
+
}
|
|
483
|
+
};
|
|
484
|
+
function createBaseCommonAPIConfigureWifiResponse() {
|
|
485
|
+
return {
|
|
486
|
+
wifiConfig: void 0,
|
|
487
|
+
wifi: void 0
|
|
488
|
+
};
|
|
489
|
+
}
|
|
490
|
+
const CommonAPIConfigureWifiResponse = {
|
|
491
|
+
encode(message, writer = new BinaryWriter()) {
|
|
492
|
+
if (message.wifiConfig !== void 0) WifiConfig.encode(message.wifiConfig, writer.uint32(10).fork()).join();
|
|
493
|
+
if (message.wifi !== void 0) NetworkInterface.encode(message.wifi, writer.uint32(18).fork()).join();
|
|
494
|
+
return writer;
|
|
495
|
+
},
|
|
496
|
+
decode(input, length) {
|
|
497
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
498
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
499
|
+
const message = createBaseCommonAPIConfigureWifiResponse();
|
|
500
|
+
while (reader.pos < end) {
|
|
501
|
+
const tag = reader.uint32();
|
|
502
|
+
switch (tag >>> 3) {
|
|
503
|
+
case 1:
|
|
504
|
+
if (tag !== 10) break;
|
|
505
|
+
message.wifiConfig = WifiConfig.decode(reader, reader.uint32());
|
|
506
|
+
continue;
|
|
507
|
+
case 2:
|
|
508
|
+
if (tag !== 18) break;
|
|
509
|
+
message.wifi = NetworkInterface.decode(reader, reader.uint32());
|
|
510
|
+
continue;
|
|
511
|
+
}
|
|
512
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
513
|
+
reader.skip(tag & 7);
|
|
514
|
+
}
|
|
515
|
+
return message;
|
|
516
|
+
},
|
|
517
|
+
fromJSON(object) {
|
|
518
|
+
return {
|
|
519
|
+
wifiConfig: isSet(object.wifiConfig) ? WifiConfig.fromJSON(object.wifiConfig) : void 0,
|
|
520
|
+
wifi: isSet(object.wifi) ? NetworkInterface.fromJSON(object.wifi) : void 0
|
|
521
|
+
};
|
|
522
|
+
},
|
|
523
|
+
toJSON(message) {
|
|
524
|
+
const obj = {};
|
|
525
|
+
if (message.wifiConfig !== void 0) obj.wifiConfig = WifiConfig.toJSON(message.wifiConfig);
|
|
526
|
+
if (message.wifi !== void 0) obj.wifi = NetworkInterface.toJSON(message.wifi);
|
|
527
|
+
return obj;
|
|
528
|
+
},
|
|
529
|
+
create(base) {
|
|
530
|
+
return CommonAPIConfigureWifiResponse.fromPartial(base ?? {});
|
|
531
|
+
},
|
|
532
|
+
fromPartial(object) {
|
|
533
|
+
const message = createBaseCommonAPIConfigureWifiResponse();
|
|
534
|
+
message.wifiConfig = object.wifiConfig !== void 0 && object.wifiConfig !== null ? WifiConfig.fromPartial(object.wifiConfig) : void 0;
|
|
535
|
+
message.wifi = object.wifi !== void 0 && object.wifi !== null ? NetworkInterface.fromPartial(object.wifi) : void 0;
|
|
536
|
+
return message;
|
|
537
|
+
}
|
|
538
|
+
};
|
|
539
|
+
function createBaseCommonAPIConfigureWifiWithEncryptedPasswordRequest() {
|
|
540
|
+
return {
|
|
541
|
+
enabled: false,
|
|
542
|
+
wifiConfig: void 0,
|
|
543
|
+
encryptedPassword: void 0
|
|
544
|
+
};
|
|
545
|
+
}
|
|
546
|
+
const CommonAPIConfigureWifiWithEncryptedPasswordRequest = {
|
|
547
|
+
encode(message, writer = new BinaryWriter()) {
|
|
548
|
+
if (message.enabled !== false) writer.uint32(8).bool(message.enabled);
|
|
549
|
+
if (message.wifiConfig !== void 0) WifiConfig.encode(message.wifiConfig, writer.uint32(18).fork()).join();
|
|
550
|
+
if (message.encryptedPassword !== void 0) EncryptedMessage.encode(message.encryptedPassword, writer.uint32(26).fork()).join();
|
|
551
|
+
return writer;
|
|
552
|
+
},
|
|
553
|
+
decode(input, length) {
|
|
554
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
555
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
556
|
+
const message = createBaseCommonAPIConfigureWifiWithEncryptedPasswordRequest();
|
|
557
|
+
while (reader.pos < end) {
|
|
558
|
+
const tag = reader.uint32();
|
|
559
|
+
switch (tag >>> 3) {
|
|
560
|
+
case 1:
|
|
561
|
+
if (tag !== 8) break;
|
|
562
|
+
message.enabled = reader.bool();
|
|
563
|
+
continue;
|
|
564
|
+
case 2:
|
|
565
|
+
if (tag !== 18) break;
|
|
566
|
+
message.wifiConfig = WifiConfig.decode(reader, reader.uint32());
|
|
567
|
+
continue;
|
|
568
|
+
case 3:
|
|
569
|
+
if (tag !== 26) break;
|
|
570
|
+
message.encryptedPassword = EncryptedMessage.decode(reader, reader.uint32());
|
|
571
|
+
continue;
|
|
572
|
+
}
|
|
573
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
574
|
+
reader.skip(tag & 7);
|
|
575
|
+
}
|
|
576
|
+
return message;
|
|
577
|
+
},
|
|
578
|
+
fromJSON(object) {
|
|
579
|
+
return {
|
|
580
|
+
enabled: isSet(object.enabled) ? globalThis.Boolean(object.enabled) : false,
|
|
581
|
+
wifiConfig: isSet(object.wifiConfig) ? WifiConfig.fromJSON(object.wifiConfig) : void 0,
|
|
582
|
+
encryptedPassword: isSet(object.encryptedPassword) ? EncryptedMessage.fromJSON(object.encryptedPassword) : void 0
|
|
583
|
+
};
|
|
584
|
+
},
|
|
585
|
+
toJSON(message) {
|
|
586
|
+
const obj = {};
|
|
587
|
+
if (message.enabled !== void 0) obj.enabled = message.enabled;
|
|
588
|
+
if (message.wifiConfig !== void 0) obj.wifiConfig = WifiConfig.toJSON(message.wifiConfig);
|
|
589
|
+
if (message.encryptedPassword !== void 0) obj.encryptedPassword = EncryptedMessage.toJSON(message.encryptedPassword);
|
|
590
|
+
return obj;
|
|
591
|
+
},
|
|
592
|
+
create(base) {
|
|
593
|
+
return CommonAPIConfigureWifiWithEncryptedPasswordRequest.fromPartial(base ?? {});
|
|
594
|
+
},
|
|
595
|
+
fromPartial(object) {
|
|
596
|
+
const message = createBaseCommonAPIConfigureWifiWithEncryptedPasswordRequest();
|
|
597
|
+
message.enabled = object.enabled ?? false;
|
|
598
|
+
message.wifiConfig = object.wifiConfig !== void 0 && object.wifiConfig !== null ? WifiConfig.fromPartial(object.wifiConfig) : void 0;
|
|
599
|
+
message.encryptedPassword = object.encryptedPassword !== void 0 && object.encryptedPassword !== null ? EncryptedMessage.fromPartial(object.encryptedPassword) : void 0;
|
|
600
|
+
return message;
|
|
601
|
+
}
|
|
602
|
+
};
|
|
603
|
+
function createBaseCommonAPIConfigureWifiWithEncryptedPasswordResponse() {
|
|
604
|
+
return {
|
|
605
|
+
wifiConfig: void 0,
|
|
606
|
+
wifi: void 0,
|
|
607
|
+
result: 0
|
|
608
|
+
};
|
|
609
|
+
}
|
|
610
|
+
const CommonAPIConfigureWifiWithEncryptedPasswordResponse = {
|
|
611
|
+
encode(message, writer = new BinaryWriter()) {
|
|
612
|
+
if (message.wifiConfig !== void 0) WifiConfig.encode(message.wifiConfig, writer.uint32(10).fork()).join();
|
|
613
|
+
if (message.wifi !== void 0) NetworkInterface.encode(message.wifi, writer.uint32(18).fork()).join();
|
|
614
|
+
if (message.result !== 0) writer.uint32(24).int32(message.result);
|
|
615
|
+
return writer;
|
|
616
|
+
},
|
|
617
|
+
decode(input, length) {
|
|
618
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
619
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
620
|
+
const message = createBaseCommonAPIConfigureWifiWithEncryptedPasswordResponse();
|
|
621
|
+
while (reader.pos < end) {
|
|
622
|
+
const tag = reader.uint32();
|
|
623
|
+
switch (tag >>> 3) {
|
|
624
|
+
case 1:
|
|
625
|
+
if (tag !== 10) break;
|
|
626
|
+
message.wifiConfig = WifiConfig.decode(reader, reader.uint32());
|
|
627
|
+
continue;
|
|
628
|
+
case 2:
|
|
629
|
+
if (tag !== 18) break;
|
|
630
|
+
message.wifi = NetworkInterface.decode(reader, reader.uint32());
|
|
631
|
+
continue;
|
|
632
|
+
case 3:
|
|
633
|
+
if (tag !== 24) break;
|
|
634
|
+
message.result = reader.int32();
|
|
635
|
+
continue;
|
|
636
|
+
}
|
|
637
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
638
|
+
reader.skip(tag & 7);
|
|
639
|
+
}
|
|
640
|
+
return message;
|
|
641
|
+
},
|
|
642
|
+
fromJSON(object) {
|
|
643
|
+
return {
|
|
644
|
+
wifiConfig: isSet(object.wifiConfig) ? WifiConfig.fromJSON(object.wifiConfig) : void 0,
|
|
645
|
+
wifi: isSet(object.wifi) ? NetworkInterface.fromJSON(object.wifi) : void 0,
|
|
646
|
+
result: isSet(object.result) ? globalThis.Number(object.result) : 0
|
|
647
|
+
};
|
|
648
|
+
},
|
|
649
|
+
toJSON(message) {
|
|
650
|
+
const obj = {};
|
|
651
|
+
if (message.wifiConfig !== void 0) obj.wifiConfig = WifiConfig.toJSON(message.wifiConfig);
|
|
652
|
+
if (message.wifi !== void 0) obj.wifi = NetworkInterface.toJSON(message.wifi);
|
|
653
|
+
if (message.result !== void 0) obj.result = Math.round(message.result);
|
|
654
|
+
return obj;
|
|
655
|
+
},
|
|
656
|
+
create(base) {
|
|
657
|
+
return CommonAPIConfigureWifiWithEncryptedPasswordResponse.fromPartial(base ?? {});
|
|
658
|
+
},
|
|
659
|
+
fromPartial(object) {
|
|
660
|
+
const message = createBaseCommonAPIConfigureWifiWithEncryptedPasswordResponse();
|
|
661
|
+
message.wifiConfig = object.wifiConfig !== void 0 && object.wifiConfig !== null ? WifiConfig.fromPartial(object.wifiConfig) : void 0;
|
|
662
|
+
message.wifi = object.wifi !== void 0 && object.wifi !== null ? NetworkInterface.fromPartial(object.wifi) : void 0;
|
|
663
|
+
message.result = object.result ?? 0;
|
|
664
|
+
return message;
|
|
665
|
+
}
|
|
666
|
+
};
|
|
667
|
+
function createBaseCommonAPICheckForUpdateRequest() {
|
|
668
|
+
return {};
|
|
669
|
+
}
|
|
670
|
+
const CommonAPICheckForUpdateRequest = {
|
|
671
|
+
encode(_, writer = new BinaryWriter()) {
|
|
672
|
+
return writer;
|
|
673
|
+
},
|
|
674
|
+
decode(input, length) {
|
|
675
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
676
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
677
|
+
const message = createBaseCommonAPICheckForUpdateRequest();
|
|
678
|
+
while (reader.pos < end) {
|
|
679
|
+
const tag = reader.uint32();
|
|
680
|
+
switch (tag >>> 3) {}
|
|
681
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
682
|
+
reader.skip(tag & 7);
|
|
683
|
+
}
|
|
684
|
+
return message;
|
|
685
|
+
},
|
|
686
|
+
fromJSON(_) {
|
|
687
|
+
return {};
|
|
688
|
+
},
|
|
689
|
+
toJSON(_) {
|
|
690
|
+
return {};
|
|
691
|
+
},
|
|
692
|
+
create(base) {
|
|
693
|
+
return CommonAPICheckForUpdateRequest.fromPartial(base ?? {});
|
|
694
|
+
},
|
|
695
|
+
fromPartial(_) {
|
|
696
|
+
return createBaseCommonAPICheckForUpdateRequest();
|
|
697
|
+
}
|
|
698
|
+
};
|
|
699
|
+
function createBaseCommonAPICheckForUpdateResponse() {
|
|
700
|
+
return {};
|
|
701
|
+
}
|
|
702
|
+
const CommonAPICheckForUpdateResponse = {
|
|
703
|
+
encode(_, writer = new BinaryWriter()) {
|
|
704
|
+
return writer;
|
|
705
|
+
},
|
|
706
|
+
decode(input, length) {
|
|
707
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
708
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
709
|
+
const message = createBaseCommonAPICheckForUpdateResponse();
|
|
710
|
+
while (reader.pos < end) {
|
|
711
|
+
const tag = reader.uint32();
|
|
712
|
+
switch (tag >>> 3) {}
|
|
713
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
714
|
+
reader.skip(tag & 7);
|
|
715
|
+
}
|
|
716
|
+
return message;
|
|
717
|
+
},
|
|
718
|
+
fromJSON(_) {
|
|
719
|
+
return {};
|
|
720
|
+
},
|
|
721
|
+
toJSON(_) {
|
|
722
|
+
return {};
|
|
723
|
+
},
|
|
724
|
+
create(base) {
|
|
725
|
+
return CommonAPICheckForUpdateResponse.fromPartial(base ?? {});
|
|
726
|
+
},
|
|
727
|
+
fromPartial(_) {
|
|
728
|
+
return createBaseCommonAPICheckForUpdateResponse();
|
|
729
|
+
}
|
|
730
|
+
};
|
|
731
|
+
function createBaseCommonAPICheckForUpdateUrgencyRequest() {
|
|
732
|
+
return {};
|
|
733
|
+
}
|
|
734
|
+
const CommonAPICheckForUpdateUrgencyRequest = {
|
|
735
|
+
encode(_, writer = new BinaryWriter()) {
|
|
736
|
+
return writer;
|
|
737
|
+
},
|
|
738
|
+
decode(input, length) {
|
|
739
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
740
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
741
|
+
const message = createBaseCommonAPICheckForUpdateUrgencyRequest();
|
|
742
|
+
while (reader.pos < end) {
|
|
743
|
+
const tag = reader.uint32();
|
|
744
|
+
switch (tag >>> 3) {}
|
|
745
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
746
|
+
reader.skip(tag & 7);
|
|
747
|
+
}
|
|
748
|
+
return message;
|
|
749
|
+
},
|
|
750
|
+
fromJSON(_) {
|
|
751
|
+
return {};
|
|
752
|
+
},
|
|
753
|
+
toJSON(_) {
|
|
754
|
+
return {};
|
|
755
|
+
},
|
|
756
|
+
create(base) {
|
|
757
|
+
return CommonAPICheckForUpdateUrgencyRequest.fromPartial(base ?? {});
|
|
758
|
+
},
|
|
759
|
+
fromPartial(_) {
|
|
760
|
+
return createBaseCommonAPICheckForUpdateUrgencyRequest();
|
|
761
|
+
}
|
|
762
|
+
};
|
|
763
|
+
function createBaseCommonAPICheckForUpdateUrgencyResponse() {
|
|
764
|
+
return {};
|
|
765
|
+
}
|
|
766
|
+
const CommonAPICheckForUpdateUrgencyResponse = {
|
|
767
|
+
encode(_, writer = new BinaryWriter()) {
|
|
768
|
+
return writer;
|
|
769
|
+
},
|
|
770
|
+
decode(input, length) {
|
|
771
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
772
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
773
|
+
const message = createBaseCommonAPICheckForUpdateUrgencyResponse();
|
|
774
|
+
while (reader.pos < end) {
|
|
775
|
+
const tag = reader.uint32();
|
|
776
|
+
switch (tag >>> 3) {}
|
|
777
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
778
|
+
reader.skip(tag & 7);
|
|
779
|
+
}
|
|
780
|
+
return message;
|
|
781
|
+
},
|
|
782
|
+
fromJSON(_) {
|
|
783
|
+
return {};
|
|
784
|
+
},
|
|
785
|
+
toJSON(_) {
|
|
786
|
+
return {};
|
|
787
|
+
},
|
|
788
|
+
create(base) {
|
|
789
|
+
return CommonAPICheckForUpdateUrgencyResponse.fromPartial(base ?? {});
|
|
790
|
+
},
|
|
791
|
+
fromPartial(_) {
|
|
792
|
+
return createBaseCommonAPICheckForUpdateUrgencyResponse();
|
|
793
|
+
}
|
|
794
|
+
};
|
|
795
|
+
function createBaseCommonAPIClearUpdateRequest() {
|
|
796
|
+
return {};
|
|
797
|
+
}
|
|
798
|
+
const CommonAPIClearUpdateRequest = {
|
|
799
|
+
encode(_, writer = new BinaryWriter()) {
|
|
800
|
+
return writer;
|
|
801
|
+
},
|
|
802
|
+
decode(input, length) {
|
|
803
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
804
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
805
|
+
const message = createBaseCommonAPIClearUpdateRequest();
|
|
806
|
+
while (reader.pos < end) {
|
|
807
|
+
const tag = reader.uint32();
|
|
808
|
+
switch (tag >>> 3) {}
|
|
809
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
810
|
+
reader.skip(tag & 7);
|
|
811
|
+
}
|
|
812
|
+
return message;
|
|
813
|
+
},
|
|
814
|
+
fromJSON(_) {
|
|
815
|
+
return {};
|
|
816
|
+
},
|
|
817
|
+
toJSON(_) {
|
|
818
|
+
return {};
|
|
819
|
+
},
|
|
820
|
+
create(base) {
|
|
821
|
+
return CommonAPIClearUpdateRequest.fromPartial(base ?? {});
|
|
822
|
+
},
|
|
823
|
+
fromPartial(_) {
|
|
824
|
+
return createBaseCommonAPIClearUpdateRequest();
|
|
825
|
+
}
|
|
826
|
+
};
|
|
827
|
+
function createBaseCommonAPIClearUpdateResponse() {
|
|
828
|
+
return {};
|
|
829
|
+
}
|
|
830
|
+
const CommonAPIClearUpdateResponse = {
|
|
831
|
+
encode(_, writer = new BinaryWriter()) {
|
|
832
|
+
return writer;
|
|
833
|
+
},
|
|
834
|
+
decode(input, length) {
|
|
835
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
836
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
837
|
+
const message = createBaseCommonAPIClearUpdateResponse();
|
|
838
|
+
while (reader.pos < end) {
|
|
839
|
+
const tag = reader.uint32();
|
|
840
|
+
switch (tag >>> 3) {}
|
|
841
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
842
|
+
reader.skip(tag & 7);
|
|
843
|
+
}
|
|
844
|
+
return message;
|
|
845
|
+
},
|
|
846
|
+
fromJSON(_) {
|
|
847
|
+
return {};
|
|
848
|
+
},
|
|
849
|
+
toJSON(_) {
|
|
850
|
+
return {};
|
|
851
|
+
},
|
|
852
|
+
create(base) {
|
|
853
|
+
return CommonAPIClearUpdateResponse.fromPartial(base ?? {});
|
|
854
|
+
},
|
|
855
|
+
fromPartial(_) {
|
|
856
|
+
return createBaseCommonAPIClearUpdateResponse();
|
|
857
|
+
}
|
|
858
|
+
};
|
|
859
|
+
function createBaseCommonAPIDeviceCertRequest() {
|
|
860
|
+
return {};
|
|
861
|
+
}
|
|
862
|
+
const CommonAPIDeviceCertRequest = {
|
|
863
|
+
encode(_, writer = new BinaryWriter()) {
|
|
864
|
+
return writer;
|
|
865
|
+
},
|
|
866
|
+
decode(input, length) {
|
|
867
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
868
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
869
|
+
const message = createBaseCommonAPIDeviceCertRequest();
|
|
870
|
+
while (reader.pos < end) {
|
|
871
|
+
const tag = reader.uint32();
|
|
872
|
+
switch (tag >>> 3) {}
|
|
873
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
874
|
+
reader.skip(tag & 7);
|
|
875
|
+
}
|
|
876
|
+
return message;
|
|
877
|
+
},
|
|
878
|
+
fromJSON(_) {
|
|
879
|
+
return {};
|
|
880
|
+
},
|
|
881
|
+
toJSON(_) {
|
|
882
|
+
return {};
|
|
883
|
+
},
|
|
884
|
+
create(base) {
|
|
885
|
+
return CommonAPIDeviceCertRequest.fromPartial(base ?? {});
|
|
886
|
+
},
|
|
887
|
+
fromPartial(_) {
|
|
888
|
+
return createBaseCommonAPIDeviceCertRequest();
|
|
889
|
+
}
|
|
890
|
+
};
|
|
891
|
+
function createBaseCommonAPIDeviceCertResponse() {
|
|
892
|
+
return {
|
|
893
|
+
format: 0,
|
|
894
|
+
deviceCert: /* @__PURE__ */ new Uint8Array(0)
|
|
895
|
+
};
|
|
896
|
+
}
|
|
897
|
+
const CommonAPIDeviceCertResponse = {
|
|
898
|
+
encode(message, writer = new BinaryWriter()) {
|
|
899
|
+
if (message.format !== 0) writer.uint32(8).int32(message.format);
|
|
900
|
+
if (message.deviceCert.length !== 0) writer.uint32(18).bytes(message.deviceCert);
|
|
901
|
+
return writer;
|
|
902
|
+
},
|
|
903
|
+
decode(input, length) {
|
|
904
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
905
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
906
|
+
const message = createBaseCommonAPIDeviceCertResponse();
|
|
907
|
+
while (reader.pos < end) {
|
|
908
|
+
const tag = reader.uint32();
|
|
909
|
+
switch (tag >>> 3) {
|
|
910
|
+
case 1:
|
|
911
|
+
if (tag !== 8) break;
|
|
912
|
+
message.format = reader.int32();
|
|
913
|
+
continue;
|
|
914
|
+
case 2:
|
|
915
|
+
if (tag !== 18) break;
|
|
916
|
+
message.deviceCert = reader.bytes();
|
|
917
|
+
continue;
|
|
918
|
+
}
|
|
919
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
920
|
+
reader.skip(tag & 7);
|
|
921
|
+
}
|
|
922
|
+
return message;
|
|
923
|
+
},
|
|
924
|
+
fromJSON(object) {
|
|
925
|
+
return {
|
|
926
|
+
format: isSet(object.format) ? deviceCertFormatFromJSON(object.format) : 0,
|
|
927
|
+
deviceCert: isSet(object.deviceCert) ? bytesFromBase64(object.deviceCert) : /* @__PURE__ */ new Uint8Array(0)
|
|
928
|
+
};
|
|
929
|
+
},
|
|
930
|
+
toJSON(message) {
|
|
931
|
+
const obj = {};
|
|
932
|
+
if (message.format !== void 0) obj.format = deviceCertFormatToJSON(message.format);
|
|
933
|
+
if (message.deviceCert !== void 0) obj.deviceCert = base64FromBytes(message.deviceCert);
|
|
934
|
+
return obj;
|
|
935
|
+
},
|
|
936
|
+
create(base) {
|
|
937
|
+
return CommonAPIDeviceCertResponse.fromPartial(base ?? {});
|
|
938
|
+
},
|
|
939
|
+
fromPartial(object) {
|
|
940
|
+
const message = createBaseCommonAPIDeviceCertResponse();
|
|
941
|
+
message.format = object.format ?? 0;
|
|
942
|
+
message.deviceCert = object.deviceCert ?? /* @__PURE__ */ new Uint8Array(0);
|
|
943
|
+
return message;
|
|
944
|
+
}
|
|
945
|
+
};
|
|
946
|
+
function createBaseCommonAPIGetNetworkingStatusRequest() {
|
|
947
|
+
return {};
|
|
948
|
+
}
|
|
949
|
+
const CommonAPIGetNetworkingStatusRequest = {
|
|
950
|
+
encode(_, writer = new BinaryWriter()) {
|
|
951
|
+
return writer;
|
|
952
|
+
},
|
|
953
|
+
decode(input, length) {
|
|
954
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
955
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
956
|
+
const message = createBaseCommonAPIGetNetworkingStatusRequest();
|
|
957
|
+
while (reader.pos < end) {
|
|
958
|
+
const tag = reader.uint32();
|
|
959
|
+
switch (tag >>> 3) {}
|
|
960
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
961
|
+
reader.skip(tag & 7);
|
|
962
|
+
}
|
|
963
|
+
return message;
|
|
964
|
+
},
|
|
965
|
+
fromJSON(_) {
|
|
966
|
+
return {};
|
|
967
|
+
},
|
|
968
|
+
toJSON(_) {
|
|
969
|
+
return {};
|
|
970
|
+
},
|
|
971
|
+
create(base) {
|
|
972
|
+
return CommonAPIGetNetworkingStatusRequest.fromPartial(base ?? {});
|
|
973
|
+
},
|
|
974
|
+
fromPartial(_) {
|
|
975
|
+
return createBaseCommonAPIGetNetworkingStatusRequest();
|
|
976
|
+
}
|
|
977
|
+
};
|
|
978
|
+
function createBaseCommonAPIGetNetworkingStatusResponse() {
|
|
979
|
+
return {
|
|
980
|
+
wifiConfig: void 0,
|
|
981
|
+
wifi: void 0,
|
|
982
|
+
eth: void 0,
|
|
983
|
+
gsm: void 0
|
|
984
|
+
};
|
|
985
|
+
}
|
|
986
|
+
const CommonAPIGetNetworkingStatusResponse = {
|
|
987
|
+
encode(message, writer = new BinaryWriter()) {
|
|
988
|
+
if (message.wifiConfig !== void 0) WifiConfig.encode(message.wifiConfig, writer.uint32(10).fork()).join();
|
|
989
|
+
if (message.wifi !== void 0) NetworkInterface.encode(message.wifi, writer.uint32(18).fork()).join();
|
|
990
|
+
if (message.eth !== void 0) NetworkInterface.encode(message.eth, writer.uint32(26).fork()).join();
|
|
991
|
+
if (message.gsm !== void 0) NetworkInterface.encode(message.gsm, writer.uint32(34).fork()).join();
|
|
992
|
+
return writer;
|
|
993
|
+
},
|
|
994
|
+
decode(input, length) {
|
|
995
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
996
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
997
|
+
const message = createBaseCommonAPIGetNetworkingStatusResponse();
|
|
998
|
+
while (reader.pos < end) {
|
|
999
|
+
const tag = reader.uint32();
|
|
1000
|
+
switch (tag >>> 3) {
|
|
1001
|
+
case 1:
|
|
1002
|
+
if (tag !== 10) break;
|
|
1003
|
+
message.wifiConfig = WifiConfig.decode(reader, reader.uint32());
|
|
1004
|
+
continue;
|
|
1005
|
+
case 2:
|
|
1006
|
+
if (tag !== 18) break;
|
|
1007
|
+
message.wifi = NetworkInterface.decode(reader, reader.uint32());
|
|
1008
|
+
continue;
|
|
1009
|
+
case 3:
|
|
1010
|
+
if (tag !== 26) break;
|
|
1011
|
+
message.eth = NetworkInterface.decode(reader, reader.uint32());
|
|
1012
|
+
continue;
|
|
1013
|
+
case 4:
|
|
1014
|
+
if (tag !== 34) break;
|
|
1015
|
+
message.gsm = NetworkInterface.decode(reader, reader.uint32());
|
|
1016
|
+
continue;
|
|
1017
|
+
}
|
|
1018
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
1019
|
+
reader.skip(tag & 7);
|
|
1020
|
+
}
|
|
1021
|
+
return message;
|
|
1022
|
+
},
|
|
1023
|
+
fromJSON(object) {
|
|
1024
|
+
return {
|
|
1025
|
+
wifiConfig: isSet(object.wifiConfig) ? WifiConfig.fromJSON(object.wifiConfig) : void 0,
|
|
1026
|
+
wifi: isSet(object.wifi) ? NetworkInterface.fromJSON(object.wifi) : void 0,
|
|
1027
|
+
eth: isSet(object.eth) ? NetworkInterface.fromJSON(object.eth) : void 0,
|
|
1028
|
+
gsm: isSet(object.gsm) ? NetworkInterface.fromJSON(object.gsm) : void 0
|
|
1029
|
+
};
|
|
1030
|
+
},
|
|
1031
|
+
toJSON(message) {
|
|
1032
|
+
const obj = {};
|
|
1033
|
+
if (message.wifiConfig !== void 0) obj.wifiConfig = WifiConfig.toJSON(message.wifiConfig);
|
|
1034
|
+
if (message.wifi !== void 0) obj.wifi = NetworkInterface.toJSON(message.wifi);
|
|
1035
|
+
if (message.eth !== void 0) obj.eth = NetworkInterface.toJSON(message.eth);
|
|
1036
|
+
if (message.gsm !== void 0) obj.gsm = NetworkInterface.toJSON(message.gsm);
|
|
1037
|
+
return obj;
|
|
1038
|
+
},
|
|
1039
|
+
create(base) {
|
|
1040
|
+
return CommonAPIGetNetworkingStatusResponse.fromPartial(base ?? {});
|
|
1041
|
+
},
|
|
1042
|
+
fromPartial(object) {
|
|
1043
|
+
const message = createBaseCommonAPIGetNetworkingStatusResponse();
|
|
1044
|
+
message.wifiConfig = object.wifiConfig !== void 0 && object.wifiConfig !== null ? WifiConfig.fromPartial(object.wifiConfig) : void 0;
|
|
1045
|
+
message.wifi = object.wifi !== void 0 && object.wifi !== null ? NetworkInterface.fromPartial(object.wifi) : void 0;
|
|
1046
|
+
message.eth = object.eth !== void 0 && object.eth !== null ? NetworkInterface.fromPartial(object.eth) : void 0;
|
|
1047
|
+
message.gsm = object.gsm !== void 0 && object.gsm !== null ? NetworkInterface.fromPartial(object.gsm) : void 0;
|
|
1048
|
+
return message;
|
|
1049
|
+
}
|
|
1050
|
+
};
|
|
1051
|
+
function createBaseCommonAPIGetCellularInfoRequest() {
|
|
1052
|
+
return {};
|
|
1053
|
+
}
|
|
1054
|
+
const CommonAPIGetCellularInfoRequest = {
|
|
1055
|
+
encode(_, writer = new BinaryWriter()) {
|
|
1056
|
+
return writer;
|
|
1057
|
+
},
|
|
1058
|
+
decode(input, length) {
|
|
1059
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1060
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1061
|
+
const message = createBaseCommonAPIGetCellularInfoRequest();
|
|
1062
|
+
while (reader.pos < end) {
|
|
1063
|
+
const tag = reader.uint32();
|
|
1064
|
+
switch (tag >>> 3) {}
|
|
1065
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
1066
|
+
reader.skip(tag & 7);
|
|
1067
|
+
}
|
|
1068
|
+
return message;
|
|
1069
|
+
},
|
|
1070
|
+
fromJSON(_) {
|
|
1071
|
+
return {};
|
|
1072
|
+
},
|
|
1073
|
+
toJSON(_) {
|
|
1074
|
+
return {};
|
|
1075
|
+
},
|
|
1076
|
+
create(base) {
|
|
1077
|
+
return CommonAPIGetCellularInfoRequest.fromPartial(base ?? {});
|
|
1078
|
+
},
|
|
1079
|
+
fromPartial(_) {
|
|
1080
|
+
return createBaseCommonAPIGetCellularInfoRequest();
|
|
1081
|
+
}
|
|
1082
|
+
};
|
|
1083
|
+
function createBaseCommonAPIGetCellularInfoResponse() {
|
|
1084
|
+
return {
|
|
1085
|
+
eid: void 0,
|
|
1086
|
+
supportedProfiles: []
|
|
1087
|
+
};
|
|
1088
|
+
}
|
|
1089
|
+
const CommonAPIGetCellularInfoResponse = {
|
|
1090
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1091
|
+
if (message.eid !== void 0) CellularEID.encode(message.eid, writer.uint32(10).fork()).join();
|
|
1092
|
+
writer.uint32(18).fork();
|
|
1093
|
+
for (const v of message.supportedProfiles) writer.int32(v);
|
|
1094
|
+
writer.join();
|
|
1095
|
+
return writer;
|
|
1096
|
+
},
|
|
1097
|
+
decode(input, length) {
|
|
1098
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1099
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1100
|
+
const message = createBaseCommonAPIGetCellularInfoResponse();
|
|
1101
|
+
while (reader.pos < end) {
|
|
1102
|
+
const tag = reader.uint32();
|
|
1103
|
+
switch (tag >>> 3) {
|
|
1104
|
+
case 1:
|
|
1105
|
+
if (tag !== 10) break;
|
|
1106
|
+
message.eid = CellularEID.decode(reader, reader.uint32());
|
|
1107
|
+
continue;
|
|
1108
|
+
case 2:
|
|
1109
|
+
if (tag === 16) {
|
|
1110
|
+
message.supportedProfiles.push(reader.int32());
|
|
1111
|
+
continue;
|
|
1112
|
+
}
|
|
1113
|
+
if (tag === 18) {
|
|
1114
|
+
const end2 = reader.uint32() + reader.pos;
|
|
1115
|
+
while (reader.pos < end2) message.supportedProfiles.push(reader.int32());
|
|
1116
|
+
continue;
|
|
1117
|
+
}
|
|
1118
|
+
break;
|
|
1119
|
+
}
|
|
1120
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
1121
|
+
reader.skip(tag & 7);
|
|
1122
|
+
}
|
|
1123
|
+
return message;
|
|
1124
|
+
},
|
|
1125
|
+
fromJSON(object) {
|
|
1126
|
+
return {
|
|
1127
|
+
eid: isSet(object.eid) ? CellularEID.fromJSON(object.eid) : void 0,
|
|
1128
|
+
supportedProfiles: globalThis.Array.isArray(object?.supportedProfiles) ? object.supportedProfiles.map((e) => globalThis.Number(e)) : []
|
|
1129
|
+
};
|
|
1130
|
+
},
|
|
1131
|
+
toJSON(message) {
|
|
1132
|
+
const obj = {};
|
|
1133
|
+
if (message.eid !== void 0) obj.eid = CellularEID.toJSON(message.eid);
|
|
1134
|
+
if (message.supportedProfiles?.length) obj.supportedProfiles = message.supportedProfiles.map((e) => Math.round(e));
|
|
1135
|
+
return obj;
|
|
1136
|
+
},
|
|
1137
|
+
create(base) {
|
|
1138
|
+
return CommonAPIGetCellularInfoResponse.fromPartial(base ?? {});
|
|
1139
|
+
},
|
|
1140
|
+
fromPartial(object) {
|
|
1141
|
+
const message = createBaseCommonAPIGetCellularInfoResponse();
|
|
1142
|
+
message.eid = object.eid !== void 0 && object.eid !== null ? CellularEID.fromPartial(object.eid) : void 0;
|
|
1143
|
+
message.supportedProfiles = object.supportedProfiles?.map((e) => e) || [];
|
|
1144
|
+
return message;
|
|
1145
|
+
}
|
|
1146
|
+
};
|
|
1147
|
+
function createBaseCommonAPIConfigureEthernetRequest() {
|
|
1148
|
+
return { ipv4Config: void 0 };
|
|
1149
|
+
}
|
|
1150
|
+
const CommonAPIConfigureEthernetRequest = {
|
|
1151
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1152
|
+
if (message.ipv4Config !== void 0) NetworkInterfaceIPv4Config.encode(message.ipv4Config, writer.uint32(10).fork()).join();
|
|
1153
|
+
return writer;
|
|
1154
|
+
},
|
|
1155
|
+
decode(input, length) {
|
|
1156
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1157
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1158
|
+
const message = createBaseCommonAPIConfigureEthernetRequest();
|
|
1159
|
+
while (reader.pos < end) {
|
|
1160
|
+
const tag = reader.uint32();
|
|
1161
|
+
switch (tag >>> 3) {
|
|
1162
|
+
case 1:
|
|
1163
|
+
if (tag !== 10) break;
|
|
1164
|
+
message.ipv4Config = NetworkInterfaceIPv4Config.decode(reader, reader.uint32());
|
|
1165
|
+
continue;
|
|
1166
|
+
}
|
|
1167
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
1168
|
+
reader.skip(tag & 7);
|
|
1169
|
+
}
|
|
1170
|
+
return message;
|
|
1171
|
+
},
|
|
1172
|
+
fromJSON(object) {
|
|
1173
|
+
return { ipv4Config: isSet(object.ipv4Config) ? NetworkInterfaceIPv4Config.fromJSON(object.ipv4Config) : void 0 };
|
|
1174
|
+
},
|
|
1175
|
+
toJSON(message) {
|
|
1176
|
+
const obj = {};
|
|
1177
|
+
if (message.ipv4Config !== void 0) obj.ipv4Config = NetworkInterfaceIPv4Config.toJSON(message.ipv4Config);
|
|
1178
|
+
return obj;
|
|
1179
|
+
},
|
|
1180
|
+
create(base) {
|
|
1181
|
+
return CommonAPIConfigureEthernetRequest.fromPartial(base ?? {});
|
|
1182
|
+
},
|
|
1183
|
+
fromPartial(object) {
|
|
1184
|
+
const message = createBaseCommonAPIConfigureEthernetRequest();
|
|
1185
|
+
message.ipv4Config = object.ipv4Config !== void 0 && object.ipv4Config !== null ? NetworkInterfaceIPv4Config.fromPartial(object.ipv4Config) : void 0;
|
|
1186
|
+
return message;
|
|
1187
|
+
}
|
|
1188
|
+
};
|
|
1189
|
+
function createBaseCommonAPIConfigureEthernetResponse() {
|
|
1190
|
+
return { eth: void 0 };
|
|
1191
|
+
}
|
|
1192
|
+
const CommonAPIConfigureEthernetResponse = {
|
|
1193
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1194
|
+
if (message.eth !== void 0) NetworkInterface.encode(message.eth, writer.uint32(10).fork()).join();
|
|
1195
|
+
return writer;
|
|
1196
|
+
},
|
|
1197
|
+
decode(input, length) {
|
|
1198
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1199
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1200
|
+
const message = createBaseCommonAPIConfigureEthernetResponse();
|
|
1201
|
+
while (reader.pos < end) {
|
|
1202
|
+
const tag = reader.uint32();
|
|
1203
|
+
switch (tag >>> 3) {
|
|
1204
|
+
case 1:
|
|
1205
|
+
if (tag !== 10) break;
|
|
1206
|
+
message.eth = NetworkInterface.decode(reader, reader.uint32());
|
|
1207
|
+
continue;
|
|
1208
|
+
}
|
|
1209
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
1210
|
+
reader.skip(tag & 7);
|
|
1211
|
+
}
|
|
1212
|
+
return message;
|
|
1213
|
+
},
|
|
1214
|
+
fromJSON(object) {
|
|
1215
|
+
return { eth: isSet(object.eth) ? NetworkInterface.fromJSON(object.eth) : void 0 };
|
|
1216
|
+
},
|
|
1217
|
+
toJSON(message) {
|
|
1218
|
+
const obj = {};
|
|
1219
|
+
if (message.eth !== void 0) obj.eth = NetworkInterface.toJSON(message.eth);
|
|
1220
|
+
return obj;
|
|
1221
|
+
},
|
|
1222
|
+
create(base) {
|
|
1223
|
+
return CommonAPIConfigureEthernetResponse.fromPartial(base ?? {});
|
|
1224
|
+
},
|
|
1225
|
+
fromPartial(object) {
|
|
1226
|
+
const message = createBaseCommonAPIConfigureEthernetResponse();
|
|
1227
|
+
message.eth = object.eth !== void 0 && object.eth !== null ? NetworkInterface.fromPartial(object.eth) : void 0;
|
|
1228
|
+
return message;
|
|
1229
|
+
}
|
|
1230
|
+
};
|
|
1231
|
+
function createBaseCommonAPIForgetWifiNetworkRequest() {
|
|
1232
|
+
return { ssid: "" };
|
|
1233
|
+
}
|
|
1234
|
+
const CommonAPIForgetWifiNetworkRequest = {
|
|
1235
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1236
|
+
if (message.ssid !== "") writer.uint32(10).string(message.ssid);
|
|
1237
|
+
return writer;
|
|
1238
|
+
},
|
|
1239
|
+
decode(input, length) {
|
|
1240
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1241
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1242
|
+
const message = createBaseCommonAPIForgetWifiNetworkRequest();
|
|
1243
|
+
while (reader.pos < end) {
|
|
1244
|
+
const tag = reader.uint32();
|
|
1245
|
+
switch (tag >>> 3) {
|
|
1246
|
+
case 1:
|
|
1247
|
+
if (tag !== 10) break;
|
|
1248
|
+
message.ssid = reader.string();
|
|
1249
|
+
continue;
|
|
1250
|
+
}
|
|
1251
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
1252
|
+
reader.skip(tag & 7);
|
|
1253
|
+
}
|
|
1254
|
+
return message;
|
|
1255
|
+
},
|
|
1256
|
+
fromJSON(object) {
|
|
1257
|
+
return { ssid: isSet(object.ssid) ? globalThis.String(object.ssid) : "" };
|
|
1258
|
+
},
|
|
1259
|
+
toJSON(message) {
|
|
1260
|
+
const obj = {};
|
|
1261
|
+
if (message.ssid !== void 0) obj.ssid = message.ssid;
|
|
1262
|
+
return obj;
|
|
1263
|
+
},
|
|
1264
|
+
create(base) {
|
|
1265
|
+
return CommonAPIForgetWifiNetworkRequest.fromPartial(base ?? {});
|
|
1266
|
+
},
|
|
1267
|
+
fromPartial(object) {
|
|
1268
|
+
const message = createBaseCommonAPIForgetWifiNetworkRequest();
|
|
1269
|
+
message.ssid = object.ssid ?? "";
|
|
1270
|
+
return message;
|
|
1271
|
+
}
|
|
1272
|
+
};
|
|
1273
|
+
function createBaseCommonAPIForgetWifiNetworkResponse() {
|
|
1274
|
+
return {};
|
|
1275
|
+
}
|
|
1276
|
+
const CommonAPIForgetWifiNetworkResponse = {
|
|
1277
|
+
encode(_, writer = new BinaryWriter()) {
|
|
1278
|
+
return writer;
|
|
1279
|
+
},
|
|
1280
|
+
decode(input, length) {
|
|
1281
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1282
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1283
|
+
const message = createBaseCommonAPIForgetWifiNetworkResponse();
|
|
1284
|
+
while (reader.pos < end) {
|
|
1285
|
+
const tag = reader.uint32();
|
|
1286
|
+
switch (tag >>> 3) {}
|
|
1287
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
1288
|
+
reader.skip(tag & 7);
|
|
1289
|
+
}
|
|
1290
|
+
return message;
|
|
1291
|
+
},
|
|
1292
|
+
fromJSON(_) {
|
|
1293
|
+
return {};
|
|
1294
|
+
},
|
|
1295
|
+
toJSON(_) {
|
|
1296
|
+
return {};
|
|
1297
|
+
},
|
|
1298
|
+
create(base) {
|
|
1299
|
+
return CommonAPIForgetWifiNetworkResponse.fromPartial(base ?? {});
|
|
1300
|
+
},
|
|
1301
|
+
fromPartial(_) {
|
|
1302
|
+
return createBaseCommonAPIForgetWifiNetworkResponse();
|
|
1303
|
+
}
|
|
1304
|
+
};
|
|
1305
|
+
function createBaseCommonAPICheckInternetRequest() {
|
|
1306
|
+
return {};
|
|
1307
|
+
}
|
|
1308
|
+
const CommonAPICheckInternetRequest = {
|
|
1309
|
+
encode(_, writer = new BinaryWriter()) {
|
|
1310
|
+
return writer;
|
|
1311
|
+
},
|
|
1312
|
+
decode(input, length) {
|
|
1313
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1314
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1315
|
+
const message = createBaseCommonAPICheckInternetRequest();
|
|
1316
|
+
while (reader.pos < end) {
|
|
1317
|
+
const tag = reader.uint32();
|
|
1318
|
+
switch (tag >>> 3) {}
|
|
1319
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
1320
|
+
reader.skip(tag & 7);
|
|
1321
|
+
}
|
|
1322
|
+
return message;
|
|
1323
|
+
},
|
|
1324
|
+
fromJSON(_) {
|
|
1325
|
+
return {};
|
|
1326
|
+
},
|
|
1327
|
+
toJSON(_) {
|
|
1328
|
+
return {};
|
|
1329
|
+
},
|
|
1330
|
+
create(base) {
|
|
1331
|
+
return CommonAPICheckInternetRequest.fromPartial(base ?? {});
|
|
1332
|
+
},
|
|
1333
|
+
fromPartial(_) {
|
|
1334
|
+
return createBaseCommonAPICheckInternetRequest();
|
|
1335
|
+
}
|
|
1336
|
+
};
|
|
1337
|
+
function createBaseCommonAPICheckInternetResponse() {
|
|
1338
|
+
return {
|
|
1339
|
+
wifi: void 0,
|
|
1340
|
+
eth: void 0,
|
|
1341
|
+
gsm: void 0
|
|
1342
|
+
};
|
|
1343
|
+
}
|
|
1344
|
+
const CommonAPICheckInternetResponse = {
|
|
1345
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1346
|
+
if (message.wifi !== void 0) NetworkInterface.encode(message.wifi, writer.uint32(10).fork()).join();
|
|
1347
|
+
if (message.eth !== void 0) NetworkInterface.encode(message.eth, writer.uint32(18).fork()).join();
|
|
1348
|
+
if (message.gsm !== void 0) NetworkInterface.encode(message.gsm, writer.uint32(26).fork()).join();
|
|
1349
|
+
return writer;
|
|
1350
|
+
},
|
|
1351
|
+
decode(input, length) {
|
|
1352
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1353
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1354
|
+
const message = createBaseCommonAPICheckInternetResponse();
|
|
1355
|
+
while (reader.pos < end) {
|
|
1356
|
+
const tag = reader.uint32();
|
|
1357
|
+
switch (tag >>> 3) {
|
|
1358
|
+
case 1:
|
|
1359
|
+
if (tag !== 10) break;
|
|
1360
|
+
message.wifi = NetworkInterface.decode(reader, reader.uint32());
|
|
1361
|
+
continue;
|
|
1362
|
+
case 2:
|
|
1363
|
+
if (tag !== 18) break;
|
|
1364
|
+
message.eth = NetworkInterface.decode(reader, reader.uint32());
|
|
1365
|
+
continue;
|
|
1366
|
+
case 3:
|
|
1367
|
+
if (tag !== 26) break;
|
|
1368
|
+
message.gsm = NetworkInterface.decode(reader, reader.uint32());
|
|
1369
|
+
continue;
|
|
1370
|
+
}
|
|
1371
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
1372
|
+
reader.skip(tag & 7);
|
|
1373
|
+
}
|
|
1374
|
+
return message;
|
|
1375
|
+
},
|
|
1376
|
+
fromJSON(object) {
|
|
1377
|
+
return {
|
|
1378
|
+
wifi: isSet(object.wifi) ? NetworkInterface.fromJSON(object.wifi) : void 0,
|
|
1379
|
+
eth: isSet(object.eth) ? NetworkInterface.fromJSON(object.eth) : void 0,
|
|
1380
|
+
gsm: isSet(object.gsm) ? NetworkInterface.fromJSON(object.gsm) : void 0
|
|
1381
|
+
};
|
|
1382
|
+
},
|
|
1383
|
+
toJSON(message) {
|
|
1384
|
+
const obj = {};
|
|
1385
|
+
if (message.wifi !== void 0) obj.wifi = NetworkInterface.toJSON(message.wifi);
|
|
1386
|
+
if (message.eth !== void 0) obj.eth = NetworkInterface.toJSON(message.eth);
|
|
1387
|
+
if (message.gsm !== void 0) obj.gsm = NetworkInterface.toJSON(message.gsm);
|
|
1388
|
+
return obj;
|
|
1389
|
+
},
|
|
1390
|
+
create(base) {
|
|
1391
|
+
return CommonAPICheckInternetResponse.fromPartial(base ?? {});
|
|
1392
|
+
},
|
|
1393
|
+
fromPartial(object) {
|
|
1394
|
+
const message = createBaseCommonAPICheckInternetResponse();
|
|
1395
|
+
message.wifi = object.wifi !== void 0 && object.wifi !== null ? NetworkInterface.fromPartial(object.wifi) : void 0;
|
|
1396
|
+
message.eth = object.eth !== void 0 && object.eth !== null ? NetworkInterface.fromPartial(object.eth) : void 0;
|
|
1397
|
+
message.gsm = object.gsm !== void 0 && object.gsm !== null ? NetworkInterface.fromPartial(object.gsm) : void 0;
|
|
1398
|
+
return message;
|
|
1399
|
+
}
|
|
1400
|
+
};
|
|
1401
|
+
function createBaseCommonAPINegotiateUpdateWithLocallyAvailablePackagesRequest() {
|
|
1402
|
+
return { locallyAvailablePackages: [] };
|
|
1403
|
+
}
|
|
1404
|
+
const CommonAPINegotiateUpdateWithLocallyAvailablePackagesRequest = {
|
|
1405
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1406
|
+
for (const v of message.locallyAvailablePackages) LocallyAvailablePackage.encode(v, writer.uint32(10).fork()).join();
|
|
1407
|
+
return writer;
|
|
1408
|
+
},
|
|
1409
|
+
decode(input, length) {
|
|
1410
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1411
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1412
|
+
const message = createBaseCommonAPINegotiateUpdateWithLocallyAvailablePackagesRequest();
|
|
1413
|
+
while (reader.pos < end) {
|
|
1414
|
+
const tag = reader.uint32();
|
|
1415
|
+
switch (tag >>> 3) {
|
|
1416
|
+
case 1:
|
|
1417
|
+
if (tag !== 10) break;
|
|
1418
|
+
message.locallyAvailablePackages.push(LocallyAvailablePackage.decode(reader, reader.uint32()));
|
|
1419
|
+
continue;
|
|
1420
|
+
}
|
|
1421
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
1422
|
+
reader.skip(tag & 7);
|
|
1423
|
+
}
|
|
1424
|
+
return message;
|
|
1425
|
+
},
|
|
1426
|
+
fromJSON(object) {
|
|
1427
|
+
return { locallyAvailablePackages: globalThis.Array.isArray(object?.locallyAvailablePackages) ? object.locallyAvailablePackages.map((e) => LocallyAvailablePackage.fromJSON(e)) : [] };
|
|
1428
|
+
},
|
|
1429
|
+
toJSON(message) {
|
|
1430
|
+
const obj = {};
|
|
1431
|
+
if (message.locallyAvailablePackages?.length) obj.locallyAvailablePackages = message.locallyAvailablePackages.map((e) => LocallyAvailablePackage.toJSON(e));
|
|
1432
|
+
return obj;
|
|
1433
|
+
},
|
|
1434
|
+
create(base) {
|
|
1435
|
+
return CommonAPINegotiateUpdateWithLocallyAvailablePackagesRequest.fromPartial(base ?? {});
|
|
1436
|
+
},
|
|
1437
|
+
fromPartial(object) {
|
|
1438
|
+
const message = createBaseCommonAPINegotiateUpdateWithLocallyAvailablePackagesRequest();
|
|
1439
|
+
message.locallyAvailablePackages = object.locallyAvailablePackages?.map((e) => LocallyAvailablePackage.fromPartial(e)) || [];
|
|
1440
|
+
return message;
|
|
1441
|
+
}
|
|
1442
|
+
};
|
|
1443
|
+
function createBaseCommonAPINegotiateUpdateWithLocallyAvailablePackagesResponse() {
|
|
1444
|
+
return { acceptedPackages: [] };
|
|
1445
|
+
}
|
|
1446
|
+
const CommonAPINegotiateUpdateWithLocallyAvailablePackagesResponse = {
|
|
1447
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1448
|
+
for (const v of message.acceptedPackages) AcceptedPackage.encode(v, writer.uint32(10).fork()).join();
|
|
1449
|
+
return writer;
|
|
1450
|
+
},
|
|
1451
|
+
decode(input, length) {
|
|
1452
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1453
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1454
|
+
const message = createBaseCommonAPINegotiateUpdateWithLocallyAvailablePackagesResponse();
|
|
1455
|
+
while (reader.pos < end) {
|
|
1456
|
+
const tag = reader.uint32();
|
|
1457
|
+
switch (tag >>> 3) {
|
|
1458
|
+
case 1:
|
|
1459
|
+
if (tag !== 10) break;
|
|
1460
|
+
message.acceptedPackages.push(AcceptedPackage.decode(reader, reader.uint32()));
|
|
1461
|
+
continue;
|
|
1462
|
+
}
|
|
1463
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
1464
|
+
reader.skip(tag & 7);
|
|
1465
|
+
}
|
|
1466
|
+
return message;
|
|
1467
|
+
},
|
|
1468
|
+
fromJSON(object) {
|
|
1469
|
+
return { acceptedPackages: globalThis.Array.isArray(object?.acceptedPackages) ? object.acceptedPackages.map((e) => AcceptedPackage.fromJSON(e)) : [] };
|
|
1470
|
+
},
|
|
1471
|
+
toJSON(message) {
|
|
1472
|
+
const obj = {};
|
|
1473
|
+
if (message.acceptedPackages?.length) obj.acceptedPackages = message.acceptedPackages.map((e) => AcceptedPackage.toJSON(e));
|
|
1474
|
+
return obj;
|
|
1475
|
+
},
|
|
1476
|
+
create(base) {
|
|
1477
|
+
return CommonAPINegotiateUpdateWithLocallyAvailablePackagesResponse.fromPartial(base ?? {});
|
|
1478
|
+
},
|
|
1479
|
+
fromPartial(object) {
|
|
1480
|
+
const message = createBaseCommonAPINegotiateUpdateWithLocallyAvailablePackagesResponse();
|
|
1481
|
+
message.acceptedPackages = object.acceptedPackages?.map((e) => AcceptedPackage.fromPartial(e)) || [];
|
|
1482
|
+
return message;
|
|
1483
|
+
}
|
|
1484
|
+
};
|
|
1485
|
+
function createBaseCommonAPIPerformUpdateFromLocallyAvailablePackagesRequest() {
|
|
1486
|
+
return { locallyAvailablePackages: [] };
|
|
1487
|
+
}
|
|
1488
|
+
const CommonAPIPerformUpdateFromLocallyAvailablePackagesRequest = {
|
|
1489
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1490
|
+
for (const v of message.locallyAvailablePackages) LocallyAvailablePackage.encode(v, writer.uint32(10).fork()).join();
|
|
1491
|
+
return writer;
|
|
1492
|
+
},
|
|
1493
|
+
decode(input, length) {
|
|
1494
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1495
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1496
|
+
const message = createBaseCommonAPIPerformUpdateFromLocallyAvailablePackagesRequest();
|
|
1497
|
+
while (reader.pos < end) {
|
|
1498
|
+
const tag = reader.uint32();
|
|
1499
|
+
switch (tag >>> 3) {
|
|
1500
|
+
case 1:
|
|
1501
|
+
if (tag !== 10) break;
|
|
1502
|
+
message.locallyAvailablePackages.push(LocallyAvailablePackage.decode(reader, reader.uint32()));
|
|
1503
|
+
continue;
|
|
1504
|
+
}
|
|
1505
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
1506
|
+
reader.skip(tag & 7);
|
|
1507
|
+
}
|
|
1508
|
+
return message;
|
|
1509
|
+
},
|
|
1510
|
+
fromJSON(object) {
|
|
1511
|
+
return { locallyAvailablePackages: globalThis.Array.isArray(object?.locallyAvailablePackages) ? object.locallyAvailablePackages.map((e) => LocallyAvailablePackage.fromJSON(e)) : [] };
|
|
1512
|
+
},
|
|
1513
|
+
toJSON(message) {
|
|
1514
|
+
const obj = {};
|
|
1515
|
+
if (message.locallyAvailablePackages?.length) obj.locallyAvailablePackages = message.locallyAvailablePackages.map((e) => LocallyAvailablePackage.toJSON(e));
|
|
1516
|
+
return obj;
|
|
1517
|
+
},
|
|
1518
|
+
create(base) {
|
|
1519
|
+
return CommonAPIPerformUpdateFromLocallyAvailablePackagesRequest.fromPartial(base ?? {});
|
|
1520
|
+
},
|
|
1521
|
+
fromPartial(object) {
|
|
1522
|
+
const message = createBaseCommonAPIPerformUpdateFromLocallyAvailablePackagesRequest();
|
|
1523
|
+
message.locallyAvailablePackages = object.locallyAvailablePackages?.map((e) => LocallyAvailablePackage.fromPartial(e)) || [];
|
|
1524
|
+
return message;
|
|
1525
|
+
}
|
|
1526
|
+
};
|
|
1527
|
+
function createBaseCommonAPIPerformUpdateFromLocallyAvailablePackagesResponse() {
|
|
1528
|
+
return { acceptedPackages: [] };
|
|
1529
|
+
}
|
|
1530
|
+
const CommonAPIPerformUpdateFromLocallyAvailablePackagesResponse = {
|
|
1531
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1532
|
+
for (const v of message.acceptedPackages) AcceptedPackage.encode(v, writer.uint32(10).fork()).join();
|
|
1533
|
+
return writer;
|
|
1534
|
+
},
|
|
1535
|
+
decode(input, length) {
|
|
1536
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1537
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1538
|
+
const message = createBaseCommonAPIPerformUpdateFromLocallyAvailablePackagesResponse();
|
|
1539
|
+
while (reader.pos < end) {
|
|
1540
|
+
const tag = reader.uint32();
|
|
1541
|
+
switch (tag >>> 3) {
|
|
1542
|
+
case 1:
|
|
1543
|
+
if (tag !== 10) break;
|
|
1544
|
+
message.acceptedPackages.push(AcceptedPackage.decode(reader, reader.uint32()));
|
|
1545
|
+
continue;
|
|
1546
|
+
}
|
|
1547
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
1548
|
+
reader.skip(tag & 7);
|
|
1549
|
+
}
|
|
1550
|
+
return message;
|
|
1551
|
+
},
|
|
1552
|
+
fromJSON(object) {
|
|
1553
|
+
return { acceptedPackages: globalThis.Array.isArray(object?.acceptedPackages) ? object.acceptedPackages.map((e) => AcceptedPackage.fromJSON(e)) : [] };
|
|
1554
|
+
},
|
|
1555
|
+
toJSON(message) {
|
|
1556
|
+
const obj = {};
|
|
1557
|
+
if (message.acceptedPackages?.length) obj.acceptedPackages = message.acceptedPackages.map((e) => AcceptedPackage.toJSON(e));
|
|
1558
|
+
return obj;
|
|
1559
|
+
},
|
|
1560
|
+
create(base) {
|
|
1561
|
+
return CommonAPIPerformUpdateFromLocallyAvailablePackagesResponse.fromPartial(base ?? {});
|
|
1562
|
+
},
|
|
1563
|
+
fromPartial(object) {
|
|
1564
|
+
const message = createBaseCommonAPIPerformUpdateFromLocallyAvailablePackagesResponse();
|
|
1565
|
+
message.acceptedPackages = object.acceptedPackages?.map((e) => AcceptedPackage.fromPartial(e)) || [];
|
|
1566
|
+
return message;
|
|
1567
|
+
}
|
|
1568
|
+
};
|
|
1569
|
+
function createBaseCommonAPIPrepareRegistrationPayloadRequest() {
|
|
1570
|
+
return { customerRegistrationInfo: /* @__PURE__ */ new Uint8Array(0) };
|
|
1571
|
+
}
|
|
1572
|
+
const CommonAPIPrepareRegistrationPayloadRequest = {
|
|
1573
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1574
|
+
if (message.customerRegistrationInfo.length !== 0) writer.uint32(10).bytes(message.customerRegistrationInfo);
|
|
1575
|
+
return writer;
|
|
1576
|
+
},
|
|
1577
|
+
decode(input, length) {
|
|
1578
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1579
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1580
|
+
const message = createBaseCommonAPIPrepareRegistrationPayloadRequest();
|
|
1581
|
+
while (reader.pos < end) {
|
|
1582
|
+
const tag = reader.uint32();
|
|
1583
|
+
switch (tag >>> 3) {
|
|
1584
|
+
case 1:
|
|
1585
|
+
if (tag !== 10) break;
|
|
1586
|
+
message.customerRegistrationInfo = reader.bytes();
|
|
1587
|
+
continue;
|
|
1588
|
+
}
|
|
1589
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
1590
|
+
reader.skip(tag & 7);
|
|
1591
|
+
}
|
|
1592
|
+
return message;
|
|
1593
|
+
},
|
|
1594
|
+
fromJSON(object) {
|
|
1595
|
+
return { customerRegistrationInfo: isSet(object.customerRegistrationInfo) ? bytesFromBase64(object.customerRegistrationInfo) : /* @__PURE__ */ new Uint8Array(0) };
|
|
1596
|
+
},
|
|
1597
|
+
toJSON(message) {
|
|
1598
|
+
const obj = {};
|
|
1599
|
+
if (message.customerRegistrationInfo !== void 0) obj.customerRegistrationInfo = base64FromBytes(message.customerRegistrationInfo);
|
|
1600
|
+
return obj;
|
|
1601
|
+
},
|
|
1602
|
+
create(base) {
|
|
1603
|
+
return CommonAPIPrepareRegistrationPayloadRequest.fromPartial(base ?? {});
|
|
1604
|
+
},
|
|
1605
|
+
fromPartial(object) {
|
|
1606
|
+
const message = createBaseCommonAPIPrepareRegistrationPayloadRequest();
|
|
1607
|
+
message.customerRegistrationInfo = object.customerRegistrationInfo ?? /* @__PURE__ */ new Uint8Array(0);
|
|
1608
|
+
return message;
|
|
1609
|
+
}
|
|
1610
|
+
};
|
|
1611
|
+
function createBaseCommonAPIPrepareRegistrationPayloadResponse() {
|
|
1612
|
+
return { signedRegistrationPayload: void 0 };
|
|
1613
|
+
}
|
|
1614
|
+
const CommonAPIPrepareRegistrationPayloadResponse = {
|
|
1615
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1616
|
+
if (message.signedRegistrationPayload !== void 0) DeviceSignedPayload.encode(message.signedRegistrationPayload, writer.uint32(10).fork()).join();
|
|
1617
|
+
return writer;
|
|
1618
|
+
},
|
|
1619
|
+
decode(input, length) {
|
|
1620
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1621
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1622
|
+
const message = createBaseCommonAPIPrepareRegistrationPayloadResponse();
|
|
1623
|
+
while (reader.pos < end) {
|
|
1624
|
+
const tag = reader.uint32();
|
|
1625
|
+
switch (tag >>> 3) {
|
|
1626
|
+
case 1:
|
|
1627
|
+
if (tag !== 10) break;
|
|
1628
|
+
message.signedRegistrationPayload = DeviceSignedPayload.decode(reader, reader.uint32());
|
|
1629
|
+
continue;
|
|
1630
|
+
}
|
|
1631
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
1632
|
+
reader.skip(tag & 7);
|
|
1633
|
+
}
|
|
1634
|
+
return message;
|
|
1635
|
+
},
|
|
1636
|
+
fromJSON(object) {
|
|
1637
|
+
return { signedRegistrationPayload: isSet(object.signedRegistrationPayload) ? DeviceSignedPayload.fromJSON(object.signedRegistrationPayload) : void 0 };
|
|
1638
|
+
},
|
|
1639
|
+
toJSON(message) {
|
|
1640
|
+
const obj = {};
|
|
1641
|
+
if (message.signedRegistrationPayload !== void 0) obj.signedRegistrationPayload = DeviceSignedPayload.toJSON(message.signedRegistrationPayload);
|
|
1642
|
+
return obj;
|
|
1643
|
+
},
|
|
1644
|
+
create(base) {
|
|
1645
|
+
return CommonAPIPrepareRegistrationPayloadResponse.fromPartial(base ?? {});
|
|
1646
|
+
},
|
|
1647
|
+
fromPartial(object) {
|
|
1648
|
+
const message = createBaseCommonAPIPrepareRegistrationPayloadResponse();
|
|
1649
|
+
message.signedRegistrationPayload = object.signedRegistrationPayload !== void 0 && object.signedRegistrationPayload !== null ? DeviceSignedPayload.fromPartial(object.signedRegistrationPayload) : void 0;
|
|
1650
|
+
return message;
|
|
1651
|
+
}
|
|
1652
|
+
};
|
|
1653
|
+
function createBaseCommonMessages() {
|
|
1654
|
+
return {
|
|
1655
|
+
errorResponse: void 0,
|
|
1656
|
+
getSystemInfoRequest: void 0,
|
|
1657
|
+
getSystemInfoResponse: void 0,
|
|
1658
|
+
setLocalSiteConfigRequest: void 0,
|
|
1659
|
+
setLocalSiteConfigResponse: void 0,
|
|
1660
|
+
performUpdateRequest: void 0,
|
|
1661
|
+
performUpdateResponse: void 0,
|
|
1662
|
+
factoryResetRequest: void 0,
|
|
1663
|
+
factoryResetResponse: void 0,
|
|
1664
|
+
wifiScanRequest: void 0,
|
|
1665
|
+
wifiScanResponse: void 0,
|
|
1666
|
+
configureWifiRequest: void 0,
|
|
1667
|
+
configureWifiResponse: void 0,
|
|
1668
|
+
checkForUpdateRequest: void 0,
|
|
1669
|
+
checkForUpdateResponse: void 0,
|
|
1670
|
+
clearUpdateRequest: void 0,
|
|
1671
|
+
clearUpdateResponse: void 0,
|
|
1672
|
+
deviceCertRequest: void 0,
|
|
1673
|
+
deviceCertResponse: void 0,
|
|
1674
|
+
configureWifiWithEncryptedPasswordRequest: void 0,
|
|
1675
|
+
configureWifiWithEncryptedPasswordResponse: void 0,
|
|
1676
|
+
getNetworkingStatusRequest: void 0,
|
|
1677
|
+
getNetworkingStatusResponse: void 0,
|
|
1678
|
+
getCellularInfoRequest: void 0,
|
|
1679
|
+
getCellularInfoResponse: void 0,
|
|
1680
|
+
configureEthernetRequest: void 0,
|
|
1681
|
+
configureEthernetResponse: void 0,
|
|
1682
|
+
forgetWifiNetworkRequest: void 0,
|
|
1683
|
+
forgetWifiNetworkResponse: void 0,
|
|
1684
|
+
checkInternetRequest: void 0,
|
|
1685
|
+
checkInternetResponse: void 0,
|
|
1686
|
+
checkForUpdateUrgencyRequest: void 0,
|
|
1687
|
+
checkForUpdateUrgencyResponse: void 0,
|
|
1688
|
+
negotiateUpdateWithLocallyAvailablePackagesRequest: void 0,
|
|
1689
|
+
negotiateUpdateWithLocallyAvailablePackagesResponse: void 0,
|
|
1690
|
+
prepareRegistrationPayloadRequest: void 0,
|
|
1691
|
+
prepareRegistrationPayloadResponse: void 0,
|
|
1692
|
+
performUpdateFromLocallyAvailablePackagesRequest: void 0,
|
|
1693
|
+
performUpdateFromLocallyAvailablePackagesResponse: void 0
|
|
1694
|
+
};
|
|
1695
|
+
}
|
|
1696
|
+
const CommonMessages = {
|
|
1697
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1698
|
+
if (message.errorResponse !== void 0) ErrorResponse.encode(message.errorResponse, writer.uint32(10).fork()).join();
|
|
1699
|
+
if (message.getSystemInfoRequest !== void 0) CommonAPIGetSystemInfoRequest.encode(message.getSystemInfoRequest, writer.uint32(18).fork()).join();
|
|
1700
|
+
if (message.getSystemInfoResponse !== void 0) CommonAPIGetSystemInfoResponse.encode(message.getSystemInfoResponse, writer.uint32(26).fork()).join();
|
|
1701
|
+
if (message.setLocalSiteConfigRequest !== void 0) CommonAPISetLocalSiteConfigRequest.encode(message.setLocalSiteConfigRequest, writer.uint32(34).fork()).join();
|
|
1702
|
+
if (message.setLocalSiteConfigResponse !== void 0) CommonAPISetLocalSiteConfigResponse.encode(message.setLocalSiteConfigResponse, writer.uint32(42).fork()).join();
|
|
1703
|
+
if (message.performUpdateRequest !== void 0) CommonAPIPerformUpdateRequest.encode(message.performUpdateRequest, writer.uint32(50).fork()).join();
|
|
1704
|
+
if (message.performUpdateResponse !== void 0) CommonAPIPerformUpdateResponse.encode(message.performUpdateResponse, writer.uint32(58).fork()).join();
|
|
1705
|
+
if (message.factoryResetRequest !== void 0) CommonAPIFactoryResetRequest.encode(message.factoryResetRequest, writer.uint32(66).fork()).join();
|
|
1706
|
+
if (message.factoryResetResponse !== void 0) CommonAPIFactoryResetResponse.encode(message.factoryResetResponse, writer.uint32(74).fork()).join();
|
|
1707
|
+
if (message.wifiScanRequest !== void 0) CommonAPIWifiScanRequest.encode(message.wifiScanRequest, writer.uint32(82).fork()).join();
|
|
1708
|
+
if (message.wifiScanResponse !== void 0) CommonAPIWifiScanResponse.encode(message.wifiScanResponse, writer.uint32(90).fork()).join();
|
|
1709
|
+
if (message.configureWifiRequest !== void 0) CommonAPIConfigureWifiRequest.encode(message.configureWifiRequest, writer.uint32(98).fork()).join();
|
|
1710
|
+
if (message.configureWifiResponse !== void 0) CommonAPIConfigureWifiResponse.encode(message.configureWifiResponse, writer.uint32(106).fork()).join();
|
|
1711
|
+
if (message.checkForUpdateRequest !== void 0) CommonAPICheckForUpdateRequest.encode(message.checkForUpdateRequest, writer.uint32(114).fork()).join();
|
|
1712
|
+
if (message.checkForUpdateResponse !== void 0) CommonAPICheckForUpdateResponse.encode(message.checkForUpdateResponse, writer.uint32(122).fork()).join();
|
|
1713
|
+
if (message.clearUpdateRequest !== void 0) CommonAPIClearUpdateRequest.encode(message.clearUpdateRequest, writer.uint32(130).fork()).join();
|
|
1714
|
+
if (message.clearUpdateResponse !== void 0) CommonAPIClearUpdateResponse.encode(message.clearUpdateResponse, writer.uint32(138).fork()).join();
|
|
1715
|
+
if (message.deviceCertRequest !== void 0) CommonAPIDeviceCertRequest.encode(message.deviceCertRequest, writer.uint32(146).fork()).join();
|
|
1716
|
+
if (message.deviceCertResponse !== void 0) CommonAPIDeviceCertResponse.encode(message.deviceCertResponse, writer.uint32(154).fork()).join();
|
|
1717
|
+
if (message.configureWifiWithEncryptedPasswordRequest !== void 0) CommonAPIConfigureWifiWithEncryptedPasswordRequest.encode(message.configureWifiWithEncryptedPasswordRequest, writer.uint32(162).fork()).join();
|
|
1718
|
+
if (message.configureWifiWithEncryptedPasswordResponse !== void 0) CommonAPIConfigureWifiWithEncryptedPasswordResponse.encode(message.configureWifiWithEncryptedPasswordResponse, writer.uint32(170).fork()).join();
|
|
1719
|
+
if (message.getNetworkingStatusRequest !== void 0) CommonAPIGetNetworkingStatusRequest.encode(message.getNetworkingStatusRequest, writer.uint32(178).fork()).join();
|
|
1720
|
+
if (message.getNetworkingStatusResponse !== void 0) CommonAPIGetNetworkingStatusResponse.encode(message.getNetworkingStatusResponse, writer.uint32(186).fork()).join();
|
|
1721
|
+
if (message.getCellularInfoRequest !== void 0) CommonAPIGetCellularInfoRequest.encode(message.getCellularInfoRequest, writer.uint32(194).fork()).join();
|
|
1722
|
+
if (message.getCellularInfoResponse !== void 0) CommonAPIGetCellularInfoResponse.encode(message.getCellularInfoResponse, writer.uint32(202).fork()).join();
|
|
1723
|
+
if (message.configureEthernetRequest !== void 0) CommonAPIConfigureEthernetRequest.encode(message.configureEthernetRequest, writer.uint32(210).fork()).join();
|
|
1724
|
+
if (message.configureEthernetResponse !== void 0) CommonAPIConfigureEthernetResponse.encode(message.configureEthernetResponse, writer.uint32(218).fork()).join();
|
|
1725
|
+
if (message.forgetWifiNetworkRequest !== void 0) CommonAPIForgetWifiNetworkRequest.encode(message.forgetWifiNetworkRequest, writer.uint32(226).fork()).join();
|
|
1726
|
+
if (message.forgetWifiNetworkResponse !== void 0) CommonAPIForgetWifiNetworkResponse.encode(message.forgetWifiNetworkResponse, writer.uint32(234).fork()).join();
|
|
1727
|
+
if (message.checkInternetRequest !== void 0) CommonAPICheckInternetRequest.encode(message.checkInternetRequest, writer.uint32(242).fork()).join();
|
|
1728
|
+
if (message.checkInternetResponse !== void 0) CommonAPICheckInternetResponse.encode(message.checkInternetResponse, writer.uint32(250).fork()).join();
|
|
1729
|
+
if (message.checkForUpdateUrgencyRequest !== void 0) CommonAPICheckForUpdateUrgencyRequest.encode(message.checkForUpdateUrgencyRequest, writer.uint32(258).fork()).join();
|
|
1730
|
+
if (message.checkForUpdateUrgencyResponse !== void 0) CommonAPICheckForUpdateUrgencyResponse.encode(message.checkForUpdateUrgencyResponse, writer.uint32(266).fork()).join();
|
|
1731
|
+
if (message.negotiateUpdateWithLocallyAvailablePackagesRequest !== void 0) CommonAPINegotiateUpdateWithLocallyAvailablePackagesRequest.encode(message.negotiateUpdateWithLocallyAvailablePackagesRequest, writer.uint32(274).fork()).join();
|
|
1732
|
+
if (message.negotiateUpdateWithLocallyAvailablePackagesResponse !== void 0) CommonAPINegotiateUpdateWithLocallyAvailablePackagesResponse.encode(message.negotiateUpdateWithLocallyAvailablePackagesResponse, writer.uint32(282).fork()).join();
|
|
1733
|
+
if (message.prepareRegistrationPayloadRequest !== void 0) CommonAPIPrepareRegistrationPayloadRequest.encode(message.prepareRegistrationPayloadRequest, writer.uint32(290).fork()).join();
|
|
1734
|
+
if (message.prepareRegistrationPayloadResponse !== void 0) CommonAPIPrepareRegistrationPayloadResponse.encode(message.prepareRegistrationPayloadResponse, writer.uint32(298).fork()).join();
|
|
1735
|
+
if (message.performUpdateFromLocallyAvailablePackagesRequest !== void 0) CommonAPIPerformUpdateFromLocallyAvailablePackagesRequest.encode(message.performUpdateFromLocallyAvailablePackagesRequest, writer.uint32(306).fork()).join();
|
|
1736
|
+
if (message.performUpdateFromLocallyAvailablePackagesResponse !== void 0) CommonAPIPerformUpdateFromLocallyAvailablePackagesResponse.encode(message.performUpdateFromLocallyAvailablePackagesResponse, writer.uint32(314).fork()).join();
|
|
1737
|
+
return writer;
|
|
1738
|
+
},
|
|
1739
|
+
decode(input, length) {
|
|
1740
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1741
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1742
|
+
const message = createBaseCommonMessages();
|
|
1743
|
+
while (reader.pos < end) {
|
|
1744
|
+
const tag = reader.uint32();
|
|
1745
|
+
switch (tag >>> 3) {
|
|
1746
|
+
case 1:
|
|
1747
|
+
if (tag !== 10) break;
|
|
1748
|
+
message.errorResponse = ErrorResponse.decode(reader, reader.uint32());
|
|
1749
|
+
continue;
|
|
1750
|
+
case 2:
|
|
1751
|
+
if (tag !== 18) break;
|
|
1752
|
+
message.getSystemInfoRequest = CommonAPIGetSystemInfoRequest.decode(reader, reader.uint32());
|
|
1753
|
+
continue;
|
|
1754
|
+
case 3:
|
|
1755
|
+
if (tag !== 26) break;
|
|
1756
|
+
message.getSystemInfoResponse = CommonAPIGetSystemInfoResponse.decode(reader, reader.uint32());
|
|
1757
|
+
continue;
|
|
1758
|
+
case 4:
|
|
1759
|
+
if (tag !== 34) break;
|
|
1760
|
+
message.setLocalSiteConfigRequest = CommonAPISetLocalSiteConfigRequest.decode(reader, reader.uint32());
|
|
1761
|
+
continue;
|
|
1762
|
+
case 5:
|
|
1763
|
+
if (tag !== 42) break;
|
|
1764
|
+
message.setLocalSiteConfigResponse = CommonAPISetLocalSiteConfigResponse.decode(reader, reader.uint32());
|
|
1765
|
+
continue;
|
|
1766
|
+
case 6:
|
|
1767
|
+
if (tag !== 50) break;
|
|
1768
|
+
message.performUpdateRequest = CommonAPIPerformUpdateRequest.decode(reader, reader.uint32());
|
|
1769
|
+
continue;
|
|
1770
|
+
case 7:
|
|
1771
|
+
if (tag !== 58) break;
|
|
1772
|
+
message.performUpdateResponse = CommonAPIPerformUpdateResponse.decode(reader, reader.uint32());
|
|
1773
|
+
continue;
|
|
1774
|
+
case 8:
|
|
1775
|
+
if (tag !== 66) break;
|
|
1776
|
+
message.factoryResetRequest = CommonAPIFactoryResetRequest.decode(reader, reader.uint32());
|
|
1777
|
+
continue;
|
|
1778
|
+
case 9:
|
|
1779
|
+
if (tag !== 74) break;
|
|
1780
|
+
message.factoryResetResponse = CommonAPIFactoryResetResponse.decode(reader, reader.uint32());
|
|
1781
|
+
continue;
|
|
1782
|
+
case 10:
|
|
1783
|
+
if (tag !== 82) break;
|
|
1784
|
+
message.wifiScanRequest = CommonAPIWifiScanRequest.decode(reader, reader.uint32());
|
|
1785
|
+
continue;
|
|
1786
|
+
case 11:
|
|
1787
|
+
if (tag !== 90) break;
|
|
1788
|
+
message.wifiScanResponse = CommonAPIWifiScanResponse.decode(reader, reader.uint32());
|
|
1789
|
+
continue;
|
|
1790
|
+
case 12:
|
|
1791
|
+
if (tag !== 98) break;
|
|
1792
|
+
message.configureWifiRequest = CommonAPIConfigureWifiRequest.decode(reader, reader.uint32());
|
|
1793
|
+
continue;
|
|
1794
|
+
case 13:
|
|
1795
|
+
if (tag !== 106) break;
|
|
1796
|
+
message.configureWifiResponse = CommonAPIConfigureWifiResponse.decode(reader, reader.uint32());
|
|
1797
|
+
continue;
|
|
1798
|
+
case 14:
|
|
1799
|
+
if (tag !== 114) break;
|
|
1800
|
+
message.checkForUpdateRequest = CommonAPICheckForUpdateRequest.decode(reader, reader.uint32());
|
|
1801
|
+
continue;
|
|
1802
|
+
case 15:
|
|
1803
|
+
if (tag !== 122) break;
|
|
1804
|
+
message.checkForUpdateResponse = CommonAPICheckForUpdateResponse.decode(reader, reader.uint32());
|
|
1805
|
+
continue;
|
|
1806
|
+
case 16:
|
|
1807
|
+
if (tag !== 130) break;
|
|
1808
|
+
message.clearUpdateRequest = CommonAPIClearUpdateRequest.decode(reader, reader.uint32());
|
|
1809
|
+
continue;
|
|
1810
|
+
case 17:
|
|
1811
|
+
if (tag !== 138) break;
|
|
1812
|
+
message.clearUpdateResponse = CommonAPIClearUpdateResponse.decode(reader, reader.uint32());
|
|
1813
|
+
continue;
|
|
1814
|
+
case 18:
|
|
1815
|
+
if (tag !== 146) break;
|
|
1816
|
+
message.deviceCertRequest = CommonAPIDeviceCertRequest.decode(reader, reader.uint32());
|
|
1817
|
+
continue;
|
|
1818
|
+
case 19:
|
|
1819
|
+
if (tag !== 154) break;
|
|
1820
|
+
message.deviceCertResponse = CommonAPIDeviceCertResponse.decode(reader, reader.uint32());
|
|
1821
|
+
continue;
|
|
1822
|
+
case 20:
|
|
1823
|
+
if (tag !== 162) break;
|
|
1824
|
+
message.configureWifiWithEncryptedPasswordRequest = CommonAPIConfigureWifiWithEncryptedPasswordRequest.decode(reader, reader.uint32());
|
|
1825
|
+
continue;
|
|
1826
|
+
case 21:
|
|
1827
|
+
if (tag !== 170) break;
|
|
1828
|
+
message.configureWifiWithEncryptedPasswordResponse = CommonAPIConfigureWifiWithEncryptedPasswordResponse.decode(reader, reader.uint32());
|
|
1829
|
+
continue;
|
|
1830
|
+
case 22:
|
|
1831
|
+
if (tag !== 178) break;
|
|
1832
|
+
message.getNetworkingStatusRequest = CommonAPIGetNetworkingStatusRequest.decode(reader, reader.uint32());
|
|
1833
|
+
continue;
|
|
1834
|
+
case 23:
|
|
1835
|
+
if (tag !== 186) break;
|
|
1836
|
+
message.getNetworkingStatusResponse = CommonAPIGetNetworkingStatusResponse.decode(reader, reader.uint32());
|
|
1837
|
+
continue;
|
|
1838
|
+
case 24:
|
|
1839
|
+
if (tag !== 194) break;
|
|
1840
|
+
message.getCellularInfoRequest = CommonAPIGetCellularInfoRequest.decode(reader, reader.uint32());
|
|
1841
|
+
continue;
|
|
1842
|
+
case 25:
|
|
1843
|
+
if (tag !== 202) break;
|
|
1844
|
+
message.getCellularInfoResponse = CommonAPIGetCellularInfoResponse.decode(reader, reader.uint32());
|
|
1845
|
+
continue;
|
|
1846
|
+
case 26:
|
|
1847
|
+
if (tag !== 210) break;
|
|
1848
|
+
message.configureEthernetRequest = CommonAPIConfigureEthernetRequest.decode(reader, reader.uint32());
|
|
1849
|
+
continue;
|
|
1850
|
+
case 27:
|
|
1851
|
+
if (tag !== 218) break;
|
|
1852
|
+
message.configureEthernetResponse = CommonAPIConfigureEthernetResponse.decode(reader, reader.uint32());
|
|
1853
|
+
continue;
|
|
1854
|
+
case 28:
|
|
1855
|
+
if (tag !== 226) break;
|
|
1856
|
+
message.forgetWifiNetworkRequest = CommonAPIForgetWifiNetworkRequest.decode(reader, reader.uint32());
|
|
1857
|
+
continue;
|
|
1858
|
+
case 29:
|
|
1859
|
+
if (tag !== 234) break;
|
|
1860
|
+
message.forgetWifiNetworkResponse = CommonAPIForgetWifiNetworkResponse.decode(reader, reader.uint32());
|
|
1861
|
+
continue;
|
|
1862
|
+
case 30:
|
|
1863
|
+
if (tag !== 242) break;
|
|
1864
|
+
message.checkInternetRequest = CommonAPICheckInternetRequest.decode(reader, reader.uint32());
|
|
1865
|
+
continue;
|
|
1866
|
+
case 31:
|
|
1867
|
+
if (tag !== 250) break;
|
|
1868
|
+
message.checkInternetResponse = CommonAPICheckInternetResponse.decode(reader, reader.uint32());
|
|
1869
|
+
continue;
|
|
1870
|
+
case 32:
|
|
1871
|
+
if (tag !== 258) break;
|
|
1872
|
+
message.checkForUpdateUrgencyRequest = CommonAPICheckForUpdateUrgencyRequest.decode(reader, reader.uint32());
|
|
1873
|
+
continue;
|
|
1874
|
+
case 33:
|
|
1875
|
+
if (tag !== 266) break;
|
|
1876
|
+
message.checkForUpdateUrgencyResponse = CommonAPICheckForUpdateUrgencyResponse.decode(reader, reader.uint32());
|
|
1877
|
+
continue;
|
|
1878
|
+
case 34:
|
|
1879
|
+
if (tag !== 274) break;
|
|
1880
|
+
message.negotiateUpdateWithLocallyAvailablePackagesRequest = CommonAPINegotiateUpdateWithLocallyAvailablePackagesRequest.decode(reader, reader.uint32());
|
|
1881
|
+
continue;
|
|
1882
|
+
case 35:
|
|
1883
|
+
if (tag !== 282) break;
|
|
1884
|
+
message.negotiateUpdateWithLocallyAvailablePackagesResponse = CommonAPINegotiateUpdateWithLocallyAvailablePackagesResponse.decode(reader, reader.uint32());
|
|
1885
|
+
continue;
|
|
1886
|
+
case 36:
|
|
1887
|
+
if (tag !== 290) break;
|
|
1888
|
+
message.prepareRegistrationPayloadRequest = CommonAPIPrepareRegistrationPayloadRequest.decode(reader, reader.uint32());
|
|
1889
|
+
continue;
|
|
1890
|
+
case 37:
|
|
1891
|
+
if (tag !== 298) break;
|
|
1892
|
+
message.prepareRegistrationPayloadResponse = CommonAPIPrepareRegistrationPayloadResponse.decode(reader, reader.uint32());
|
|
1893
|
+
continue;
|
|
1894
|
+
case 38:
|
|
1895
|
+
if (tag !== 306) break;
|
|
1896
|
+
message.performUpdateFromLocallyAvailablePackagesRequest = CommonAPIPerformUpdateFromLocallyAvailablePackagesRequest.decode(reader, reader.uint32());
|
|
1897
|
+
continue;
|
|
1898
|
+
case 39:
|
|
1899
|
+
if (tag !== 314) break;
|
|
1900
|
+
message.performUpdateFromLocallyAvailablePackagesResponse = CommonAPIPerformUpdateFromLocallyAvailablePackagesResponse.decode(reader, reader.uint32());
|
|
1901
|
+
continue;
|
|
1902
|
+
}
|
|
1903
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
1904
|
+
reader.skip(tag & 7);
|
|
1905
|
+
}
|
|
1906
|
+
return message;
|
|
1907
|
+
},
|
|
1908
|
+
fromJSON(object) {
|
|
1909
|
+
return {
|
|
1910
|
+
errorResponse: isSet(object.errorResponse) ? ErrorResponse.fromJSON(object.errorResponse) : void 0,
|
|
1911
|
+
getSystemInfoRequest: isSet(object.getSystemInfoRequest) ? CommonAPIGetSystemInfoRequest.fromJSON(object.getSystemInfoRequest) : void 0,
|
|
1912
|
+
getSystemInfoResponse: isSet(object.getSystemInfoResponse) ? CommonAPIGetSystemInfoResponse.fromJSON(object.getSystemInfoResponse) : void 0,
|
|
1913
|
+
setLocalSiteConfigRequest: isSet(object.setLocalSiteConfigRequest) ? CommonAPISetLocalSiteConfigRequest.fromJSON(object.setLocalSiteConfigRequest) : void 0,
|
|
1914
|
+
setLocalSiteConfigResponse: isSet(object.setLocalSiteConfigResponse) ? CommonAPISetLocalSiteConfigResponse.fromJSON(object.setLocalSiteConfigResponse) : void 0,
|
|
1915
|
+
performUpdateRequest: isSet(object.performUpdateRequest) ? CommonAPIPerformUpdateRequest.fromJSON(object.performUpdateRequest) : void 0,
|
|
1916
|
+
performUpdateResponse: isSet(object.performUpdateResponse) ? CommonAPIPerformUpdateResponse.fromJSON(object.performUpdateResponse) : void 0,
|
|
1917
|
+
factoryResetRequest: isSet(object.factoryResetRequest) ? CommonAPIFactoryResetRequest.fromJSON(object.factoryResetRequest) : void 0,
|
|
1918
|
+
factoryResetResponse: isSet(object.factoryResetResponse) ? CommonAPIFactoryResetResponse.fromJSON(object.factoryResetResponse) : void 0,
|
|
1919
|
+
wifiScanRequest: isSet(object.wifiScanRequest) ? CommonAPIWifiScanRequest.fromJSON(object.wifiScanRequest) : void 0,
|
|
1920
|
+
wifiScanResponse: isSet(object.wifiScanResponse) ? CommonAPIWifiScanResponse.fromJSON(object.wifiScanResponse) : void 0,
|
|
1921
|
+
configureWifiRequest: isSet(object.configureWifiRequest) ? CommonAPIConfigureWifiRequest.fromJSON(object.configureWifiRequest) : void 0,
|
|
1922
|
+
configureWifiResponse: isSet(object.configureWifiResponse) ? CommonAPIConfigureWifiResponse.fromJSON(object.configureWifiResponse) : void 0,
|
|
1923
|
+
checkForUpdateRequest: isSet(object.checkForUpdateRequest) ? CommonAPICheckForUpdateRequest.fromJSON(object.checkForUpdateRequest) : void 0,
|
|
1924
|
+
checkForUpdateResponse: isSet(object.checkForUpdateResponse) ? CommonAPICheckForUpdateResponse.fromJSON(object.checkForUpdateResponse) : void 0,
|
|
1925
|
+
clearUpdateRequest: isSet(object.clearUpdateRequest) ? CommonAPIClearUpdateRequest.fromJSON(object.clearUpdateRequest) : void 0,
|
|
1926
|
+
clearUpdateResponse: isSet(object.clearUpdateResponse) ? CommonAPIClearUpdateResponse.fromJSON(object.clearUpdateResponse) : void 0,
|
|
1927
|
+
deviceCertRequest: isSet(object.deviceCertRequest) ? CommonAPIDeviceCertRequest.fromJSON(object.deviceCertRequest) : void 0,
|
|
1928
|
+
deviceCertResponse: isSet(object.deviceCertResponse) ? CommonAPIDeviceCertResponse.fromJSON(object.deviceCertResponse) : void 0,
|
|
1929
|
+
configureWifiWithEncryptedPasswordRequest: isSet(object.configureWifiWithEncryptedPasswordRequest) ? CommonAPIConfigureWifiWithEncryptedPasswordRequest.fromJSON(object.configureWifiWithEncryptedPasswordRequest) : void 0,
|
|
1930
|
+
configureWifiWithEncryptedPasswordResponse: isSet(object.configureWifiWithEncryptedPasswordResponse) ? CommonAPIConfigureWifiWithEncryptedPasswordResponse.fromJSON(object.configureWifiWithEncryptedPasswordResponse) : void 0,
|
|
1931
|
+
getNetworkingStatusRequest: isSet(object.getNetworkingStatusRequest) ? CommonAPIGetNetworkingStatusRequest.fromJSON(object.getNetworkingStatusRequest) : void 0,
|
|
1932
|
+
getNetworkingStatusResponse: isSet(object.getNetworkingStatusResponse) ? CommonAPIGetNetworkingStatusResponse.fromJSON(object.getNetworkingStatusResponse) : void 0,
|
|
1933
|
+
getCellularInfoRequest: isSet(object.getCellularInfoRequest) ? CommonAPIGetCellularInfoRequest.fromJSON(object.getCellularInfoRequest) : void 0,
|
|
1934
|
+
getCellularInfoResponse: isSet(object.getCellularInfoResponse) ? CommonAPIGetCellularInfoResponse.fromJSON(object.getCellularInfoResponse) : void 0,
|
|
1935
|
+
configureEthernetRequest: isSet(object.configureEthernetRequest) ? CommonAPIConfigureEthernetRequest.fromJSON(object.configureEthernetRequest) : void 0,
|
|
1936
|
+
configureEthernetResponse: isSet(object.configureEthernetResponse) ? CommonAPIConfigureEthernetResponse.fromJSON(object.configureEthernetResponse) : void 0,
|
|
1937
|
+
forgetWifiNetworkRequest: isSet(object.forgetWifiNetworkRequest) ? CommonAPIForgetWifiNetworkRequest.fromJSON(object.forgetWifiNetworkRequest) : void 0,
|
|
1938
|
+
forgetWifiNetworkResponse: isSet(object.forgetWifiNetworkResponse) ? CommonAPIForgetWifiNetworkResponse.fromJSON(object.forgetWifiNetworkResponse) : void 0,
|
|
1939
|
+
checkInternetRequest: isSet(object.checkInternetRequest) ? CommonAPICheckInternetRequest.fromJSON(object.checkInternetRequest) : void 0,
|
|
1940
|
+
checkInternetResponse: isSet(object.checkInternetResponse) ? CommonAPICheckInternetResponse.fromJSON(object.checkInternetResponse) : void 0,
|
|
1941
|
+
checkForUpdateUrgencyRequest: isSet(object.checkForUpdateUrgencyRequest) ? CommonAPICheckForUpdateUrgencyRequest.fromJSON(object.checkForUpdateUrgencyRequest) : void 0,
|
|
1942
|
+
checkForUpdateUrgencyResponse: isSet(object.checkForUpdateUrgencyResponse) ? CommonAPICheckForUpdateUrgencyResponse.fromJSON(object.checkForUpdateUrgencyResponse) : void 0,
|
|
1943
|
+
negotiateUpdateWithLocallyAvailablePackagesRequest: isSet(object.negotiateUpdateWithLocallyAvailablePackagesRequest) ? CommonAPINegotiateUpdateWithLocallyAvailablePackagesRequest.fromJSON(object.negotiateUpdateWithLocallyAvailablePackagesRequest) : void 0,
|
|
1944
|
+
negotiateUpdateWithLocallyAvailablePackagesResponse: isSet(object.negotiateUpdateWithLocallyAvailablePackagesResponse) ? CommonAPINegotiateUpdateWithLocallyAvailablePackagesResponse.fromJSON(object.negotiateUpdateWithLocallyAvailablePackagesResponse) : void 0,
|
|
1945
|
+
prepareRegistrationPayloadRequest: isSet(object.prepareRegistrationPayloadRequest) ? CommonAPIPrepareRegistrationPayloadRequest.fromJSON(object.prepareRegistrationPayloadRequest) : void 0,
|
|
1946
|
+
prepareRegistrationPayloadResponse: isSet(object.prepareRegistrationPayloadResponse) ? CommonAPIPrepareRegistrationPayloadResponse.fromJSON(object.prepareRegistrationPayloadResponse) : void 0,
|
|
1947
|
+
performUpdateFromLocallyAvailablePackagesRequest: isSet(object.performUpdateFromLocallyAvailablePackagesRequest) ? CommonAPIPerformUpdateFromLocallyAvailablePackagesRequest.fromJSON(object.performUpdateFromLocallyAvailablePackagesRequest) : void 0,
|
|
1948
|
+
performUpdateFromLocallyAvailablePackagesResponse: isSet(object.performUpdateFromLocallyAvailablePackagesResponse) ? CommonAPIPerformUpdateFromLocallyAvailablePackagesResponse.fromJSON(object.performUpdateFromLocallyAvailablePackagesResponse) : void 0
|
|
1949
|
+
};
|
|
1950
|
+
},
|
|
1951
|
+
toJSON(message) {
|
|
1952
|
+
const obj = {};
|
|
1953
|
+
if (message.errorResponse !== void 0) obj.errorResponse = ErrorResponse.toJSON(message.errorResponse);
|
|
1954
|
+
if (message.getSystemInfoRequest !== void 0) obj.getSystemInfoRequest = CommonAPIGetSystemInfoRequest.toJSON(message.getSystemInfoRequest);
|
|
1955
|
+
if (message.getSystemInfoResponse !== void 0) obj.getSystemInfoResponse = CommonAPIGetSystemInfoResponse.toJSON(message.getSystemInfoResponse);
|
|
1956
|
+
if (message.setLocalSiteConfigRequest !== void 0) obj.setLocalSiteConfigRequest = CommonAPISetLocalSiteConfigRequest.toJSON(message.setLocalSiteConfigRequest);
|
|
1957
|
+
if (message.setLocalSiteConfigResponse !== void 0) obj.setLocalSiteConfigResponse = CommonAPISetLocalSiteConfigResponse.toJSON(message.setLocalSiteConfigResponse);
|
|
1958
|
+
if (message.performUpdateRequest !== void 0) obj.performUpdateRequest = CommonAPIPerformUpdateRequest.toJSON(message.performUpdateRequest);
|
|
1959
|
+
if (message.performUpdateResponse !== void 0) obj.performUpdateResponse = CommonAPIPerformUpdateResponse.toJSON(message.performUpdateResponse);
|
|
1960
|
+
if (message.factoryResetRequest !== void 0) obj.factoryResetRequest = CommonAPIFactoryResetRequest.toJSON(message.factoryResetRequest);
|
|
1961
|
+
if (message.factoryResetResponse !== void 0) obj.factoryResetResponse = CommonAPIFactoryResetResponse.toJSON(message.factoryResetResponse);
|
|
1962
|
+
if (message.wifiScanRequest !== void 0) obj.wifiScanRequest = CommonAPIWifiScanRequest.toJSON(message.wifiScanRequest);
|
|
1963
|
+
if (message.wifiScanResponse !== void 0) obj.wifiScanResponse = CommonAPIWifiScanResponse.toJSON(message.wifiScanResponse);
|
|
1964
|
+
if (message.configureWifiRequest !== void 0) obj.configureWifiRequest = CommonAPIConfigureWifiRequest.toJSON(message.configureWifiRequest);
|
|
1965
|
+
if (message.configureWifiResponse !== void 0) obj.configureWifiResponse = CommonAPIConfigureWifiResponse.toJSON(message.configureWifiResponse);
|
|
1966
|
+
if (message.checkForUpdateRequest !== void 0) obj.checkForUpdateRequest = CommonAPICheckForUpdateRequest.toJSON(message.checkForUpdateRequest);
|
|
1967
|
+
if (message.checkForUpdateResponse !== void 0) obj.checkForUpdateResponse = CommonAPICheckForUpdateResponse.toJSON(message.checkForUpdateResponse);
|
|
1968
|
+
if (message.clearUpdateRequest !== void 0) obj.clearUpdateRequest = CommonAPIClearUpdateRequest.toJSON(message.clearUpdateRequest);
|
|
1969
|
+
if (message.clearUpdateResponse !== void 0) obj.clearUpdateResponse = CommonAPIClearUpdateResponse.toJSON(message.clearUpdateResponse);
|
|
1970
|
+
if (message.deviceCertRequest !== void 0) obj.deviceCertRequest = CommonAPIDeviceCertRequest.toJSON(message.deviceCertRequest);
|
|
1971
|
+
if (message.deviceCertResponse !== void 0) obj.deviceCertResponse = CommonAPIDeviceCertResponse.toJSON(message.deviceCertResponse);
|
|
1972
|
+
if (message.configureWifiWithEncryptedPasswordRequest !== void 0) obj.configureWifiWithEncryptedPasswordRequest = CommonAPIConfigureWifiWithEncryptedPasswordRequest.toJSON(message.configureWifiWithEncryptedPasswordRequest);
|
|
1973
|
+
if (message.configureWifiWithEncryptedPasswordResponse !== void 0) obj.configureWifiWithEncryptedPasswordResponse = CommonAPIConfigureWifiWithEncryptedPasswordResponse.toJSON(message.configureWifiWithEncryptedPasswordResponse);
|
|
1974
|
+
if (message.getNetworkingStatusRequest !== void 0) obj.getNetworkingStatusRequest = CommonAPIGetNetworkingStatusRequest.toJSON(message.getNetworkingStatusRequest);
|
|
1975
|
+
if (message.getNetworkingStatusResponse !== void 0) obj.getNetworkingStatusResponse = CommonAPIGetNetworkingStatusResponse.toJSON(message.getNetworkingStatusResponse);
|
|
1976
|
+
if (message.getCellularInfoRequest !== void 0) obj.getCellularInfoRequest = CommonAPIGetCellularInfoRequest.toJSON(message.getCellularInfoRequest);
|
|
1977
|
+
if (message.getCellularInfoResponse !== void 0) obj.getCellularInfoResponse = CommonAPIGetCellularInfoResponse.toJSON(message.getCellularInfoResponse);
|
|
1978
|
+
if (message.configureEthernetRequest !== void 0) obj.configureEthernetRequest = CommonAPIConfigureEthernetRequest.toJSON(message.configureEthernetRequest);
|
|
1979
|
+
if (message.configureEthernetResponse !== void 0) obj.configureEthernetResponse = CommonAPIConfigureEthernetResponse.toJSON(message.configureEthernetResponse);
|
|
1980
|
+
if (message.forgetWifiNetworkRequest !== void 0) obj.forgetWifiNetworkRequest = CommonAPIForgetWifiNetworkRequest.toJSON(message.forgetWifiNetworkRequest);
|
|
1981
|
+
if (message.forgetWifiNetworkResponse !== void 0) obj.forgetWifiNetworkResponse = CommonAPIForgetWifiNetworkResponse.toJSON(message.forgetWifiNetworkResponse);
|
|
1982
|
+
if (message.checkInternetRequest !== void 0) obj.checkInternetRequest = CommonAPICheckInternetRequest.toJSON(message.checkInternetRequest);
|
|
1983
|
+
if (message.checkInternetResponse !== void 0) obj.checkInternetResponse = CommonAPICheckInternetResponse.toJSON(message.checkInternetResponse);
|
|
1984
|
+
if (message.checkForUpdateUrgencyRequest !== void 0) obj.checkForUpdateUrgencyRequest = CommonAPICheckForUpdateUrgencyRequest.toJSON(message.checkForUpdateUrgencyRequest);
|
|
1985
|
+
if (message.checkForUpdateUrgencyResponse !== void 0) obj.checkForUpdateUrgencyResponse = CommonAPICheckForUpdateUrgencyResponse.toJSON(message.checkForUpdateUrgencyResponse);
|
|
1986
|
+
if (message.negotiateUpdateWithLocallyAvailablePackagesRequest !== void 0) obj.negotiateUpdateWithLocallyAvailablePackagesRequest = CommonAPINegotiateUpdateWithLocallyAvailablePackagesRequest.toJSON(message.negotiateUpdateWithLocallyAvailablePackagesRequest);
|
|
1987
|
+
if (message.negotiateUpdateWithLocallyAvailablePackagesResponse !== void 0) obj.negotiateUpdateWithLocallyAvailablePackagesResponse = CommonAPINegotiateUpdateWithLocallyAvailablePackagesResponse.toJSON(message.negotiateUpdateWithLocallyAvailablePackagesResponse);
|
|
1988
|
+
if (message.prepareRegistrationPayloadRequest !== void 0) obj.prepareRegistrationPayloadRequest = CommonAPIPrepareRegistrationPayloadRequest.toJSON(message.prepareRegistrationPayloadRequest);
|
|
1989
|
+
if (message.prepareRegistrationPayloadResponse !== void 0) obj.prepareRegistrationPayloadResponse = CommonAPIPrepareRegistrationPayloadResponse.toJSON(message.prepareRegistrationPayloadResponse);
|
|
1990
|
+
if (message.performUpdateFromLocallyAvailablePackagesRequest !== void 0) obj.performUpdateFromLocallyAvailablePackagesRequest = CommonAPIPerformUpdateFromLocallyAvailablePackagesRequest.toJSON(message.performUpdateFromLocallyAvailablePackagesRequest);
|
|
1991
|
+
if (message.performUpdateFromLocallyAvailablePackagesResponse !== void 0) obj.performUpdateFromLocallyAvailablePackagesResponse = CommonAPIPerformUpdateFromLocallyAvailablePackagesResponse.toJSON(message.performUpdateFromLocallyAvailablePackagesResponse);
|
|
1992
|
+
return obj;
|
|
1993
|
+
},
|
|
1994
|
+
create(base) {
|
|
1995
|
+
return CommonMessages.fromPartial(base ?? {});
|
|
1996
|
+
},
|
|
1997
|
+
fromPartial(object) {
|
|
1998
|
+
const message = createBaseCommonMessages();
|
|
1999
|
+
message.errorResponse = object.errorResponse !== void 0 && object.errorResponse !== null ? ErrorResponse.fromPartial(object.errorResponse) : void 0;
|
|
2000
|
+
message.getSystemInfoRequest = object.getSystemInfoRequest !== void 0 && object.getSystemInfoRequest !== null ? CommonAPIGetSystemInfoRequest.fromPartial(object.getSystemInfoRequest) : void 0;
|
|
2001
|
+
message.getSystemInfoResponse = object.getSystemInfoResponse !== void 0 && object.getSystemInfoResponse !== null ? CommonAPIGetSystemInfoResponse.fromPartial(object.getSystemInfoResponse) : void 0;
|
|
2002
|
+
message.setLocalSiteConfigRequest = object.setLocalSiteConfigRequest !== void 0 && object.setLocalSiteConfigRequest !== null ? CommonAPISetLocalSiteConfigRequest.fromPartial(object.setLocalSiteConfigRequest) : void 0;
|
|
2003
|
+
message.setLocalSiteConfigResponse = object.setLocalSiteConfigResponse !== void 0 && object.setLocalSiteConfigResponse !== null ? CommonAPISetLocalSiteConfigResponse.fromPartial(object.setLocalSiteConfigResponse) : void 0;
|
|
2004
|
+
message.performUpdateRequest = object.performUpdateRequest !== void 0 && object.performUpdateRequest !== null ? CommonAPIPerformUpdateRequest.fromPartial(object.performUpdateRequest) : void 0;
|
|
2005
|
+
message.performUpdateResponse = object.performUpdateResponse !== void 0 && object.performUpdateResponse !== null ? CommonAPIPerformUpdateResponse.fromPartial(object.performUpdateResponse) : void 0;
|
|
2006
|
+
message.factoryResetRequest = object.factoryResetRequest !== void 0 && object.factoryResetRequest !== null ? CommonAPIFactoryResetRequest.fromPartial(object.factoryResetRequest) : void 0;
|
|
2007
|
+
message.factoryResetResponse = object.factoryResetResponse !== void 0 && object.factoryResetResponse !== null ? CommonAPIFactoryResetResponse.fromPartial(object.factoryResetResponse) : void 0;
|
|
2008
|
+
message.wifiScanRequest = object.wifiScanRequest !== void 0 && object.wifiScanRequest !== null ? CommonAPIWifiScanRequest.fromPartial(object.wifiScanRequest) : void 0;
|
|
2009
|
+
message.wifiScanResponse = object.wifiScanResponse !== void 0 && object.wifiScanResponse !== null ? CommonAPIWifiScanResponse.fromPartial(object.wifiScanResponse) : void 0;
|
|
2010
|
+
message.configureWifiRequest = object.configureWifiRequest !== void 0 && object.configureWifiRequest !== null ? CommonAPIConfigureWifiRequest.fromPartial(object.configureWifiRequest) : void 0;
|
|
2011
|
+
message.configureWifiResponse = object.configureWifiResponse !== void 0 && object.configureWifiResponse !== null ? CommonAPIConfigureWifiResponse.fromPartial(object.configureWifiResponse) : void 0;
|
|
2012
|
+
message.checkForUpdateRequest = object.checkForUpdateRequest !== void 0 && object.checkForUpdateRequest !== null ? CommonAPICheckForUpdateRequest.fromPartial(object.checkForUpdateRequest) : void 0;
|
|
2013
|
+
message.checkForUpdateResponse = object.checkForUpdateResponse !== void 0 && object.checkForUpdateResponse !== null ? CommonAPICheckForUpdateResponse.fromPartial(object.checkForUpdateResponse) : void 0;
|
|
2014
|
+
message.clearUpdateRequest = object.clearUpdateRequest !== void 0 && object.clearUpdateRequest !== null ? CommonAPIClearUpdateRequest.fromPartial(object.clearUpdateRequest) : void 0;
|
|
2015
|
+
message.clearUpdateResponse = object.clearUpdateResponse !== void 0 && object.clearUpdateResponse !== null ? CommonAPIClearUpdateResponse.fromPartial(object.clearUpdateResponse) : void 0;
|
|
2016
|
+
message.deviceCertRequest = object.deviceCertRequest !== void 0 && object.deviceCertRequest !== null ? CommonAPIDeviceCertRequest.fromPartial(object.deviceCertRequest) : void 0;
|
|
2017
|
+
message.deviceCertResponse = object.deviceCertResponse !== void 0 && object.deviceCertResponse !== null ? CommonAPIDeviceCertResponse.fromPartial(object.deviceCertResponse) : void 0;
|
|
2018
|
+
message.configureWifiWithEncryptedPasswordRequest = object.configureWifiWithEncryptedPasswordRequest !== void 0 && object.configureWifiWithEncryptedPasswordRequest !== null ? CommonAPIConfigureWifiWithEncryptedPasswordRequest.fromPartial(object.configureWifiWithEncryptedPasswordRequest) : void 0;
|
|
2019
|
+
message.configureWifiWithEncryptedPasswordResponse = object.configureWifiWithEncryptedPasswordResponse !== void 0 && object.configureWifiWithEncryptedPasswordResponse !== null ? CommonAPIConfigureWifiWithEncryptedPasswordResponse.fromPartial(object.configureWifiWithEncryptedPasswordResponse) : void 0;
|
|
2020
|
+
message.getNetworkingStatusRequest = object.getNetworkingStatusRequest !== void 0 && object.getNetworkingStatusRequest !== null ? CommonAPIGetNetworkingStatusRequest.fromPartial(object.getNetworkingStatusRequest) : void 0;
|
|
2021
|
+
message.getNetworkingStatusResponse = object.getNetworkingStatusResponse !== void 0 && object.getNetworkingStatusResponse !== null ? CommonAPIGetNetworkingStatusResponse.fromPartial(object.getNetworkingStatusResponse) : void 0;
|
|
2022
|
+
message.getCellularInfoRequest = object.getCellularInfoRequest !== void 0 && object.getCellularInfoRequest !== null ? CommonAPIGetCellularInfoRequest.fromPartial(object.getCellularInfoRequest) : void 0;
|
|
2023
|
+
message.getCellularInfoResponse = object.getCellularInfoResponse !== void 0 && object.getCellularInfoResponse !== null ? CommonAPIGetCellularInfoResponse.fromPartial(object.getCellularInfoResponse) : void 0;
|
|
2024
|
+
message.configureEthernetRequest = object.configureEthernetRequest !== void 0 && object.configureEthernetRequest !== null ? CommonAPIConfigureEthernetRequest.fromPartial(object.configureEthernetRequest) : void 0;
|
|
2025
|
+
message.configureEthernetResponse = object.configureEthernetResponse !== void 0 && object.configureEthernetResponse !== null ? CommonAPIConfigureEthernetResponse.fromPartial(object.configureEthernetResponse) : void 0;
|
|
2026
|
+
message.forgetWifiNetworkRequest = object.forgetWifiNetworkRequest !== void 0 && object.forgetWifiNetworkRequest !== null ? CommonAPIForgetWifiNetworkRequest.fromPartial(object.forgetWifiNetworkRequest) : void 0;
|
|
2027
|
+
message.forgetWifiNetworkResponse = object.forgetWifiNetworkResponse !== void 0 && object.forgetWifiNetworkResponse !== null ? CommonAPIForgetWifiNetworkResponse.fromPartial(object.forgetWifiNetworkResponse) : void 0;
|
|
2028
|
+
message.checkInternetRequest = object.checkInternetRequest !== void 0 && object.checkInternetRequest !== null ? CommonAPICheckInternetRequest.fromPartial(object.checkInternetRequest) : void 0;
|
|
2029
|
+
message.checkInternetResponse = object.checkInternetResponse !== void 0 && object.checkInternetResponse !== null ? CommonAPICheckInternetResponse.fromPartial(object.checkInternetResponse) : void 0;
|
|
2030
|
+
message.checkForUpdateUrgencyRequest = object.checkForUpdateUrgencyRequest !== void 0 && object.checkForUpdateUrgencyRequest !== null ? CommonAPICheckForUpdateUrgencyRequest.fromPartial(object.checkForUpdateUrgencyRequest) : void 0;
|
|
2031
|
+
message.checkForUpdateUrgencyResponse = object.checkForUpdateUrgencyResponse !== void 0 && object.checkForUpdateUrgencyResponse !== null ? CommonAPICheckForUpdateUrgencyResponse.fromPartial(object.checkForUpdateUrgencyResponse) : void 0;
|
|
2032
|
+
message.negotiateUpdateWithLocallyAvailablePackagesRequest = object.negotiateUpdateWithLocallyAvailablePackagesRequest !== void 0 && object.negotiateUpdateWithLocallyAvailablePackagesRequest !== null ? CommonAPINegotiateUpdateWithLocallyAvailablePackagesRequest.fromPartial(object.negotiateUpdateWithLocallyAvailablePackagesRequest) : void 0;
|
|
2033
|
+
message.negotiateUpdateWithLocallyAvailablePackagesResponse = object.negotiateUpdateWithLocallyAvailablePackagesResponse !== void 0 && object.negotiateUpdateWithLocallyAvailablePackagesResponse !== null ? CommonAPINegotiateUpdateWithLocallyAvailablePackagesResponse.fromPartial(object.negotiateUpdateWithLocallyAvailablePackagesResponse) : void 0;
|
|
2034
|
+
message.prepareRegistrationPayloadRequest = object.prepareRegistrationPayloadRequest !== void 0 && object.prepareRegistrationPayloadRequest !== null ? CommonAPIPrepareRegistrationPayloadRequest.fromPartial(object.prepareRegistrationPayloadRequest) : void 0;
|
|
2035
|
+
message.prepareRegistrationPayloadResponse = object.prepareRegistrationPayloadResponse !== void 0 && object.prepareRegistrationPayloadResponse !== null ? CommonAPIPrepareRegistrationPayloadResponse.fromPartial(object.prepareRegistrationPayloadResponse) : void 0;
|
|
2036
|
+
message.performUpdateFromLocallyAvailablePackagesRequest = object.performUpdateFromLocallyAvailablePackagesRequest !== void 0 && object.performUpdateFromLocallyAvailablePackagesRequest !== null ? CommonAPIPerformUpdateFromLocallyAvailablePackagesRequest.fromPartial(object.performUpdateFromLocallyAvailablePackagesRequest) : void 0;
|
|
2037
|
+
message.performUpdateFromLocallyAvailablePackagesResponse = object.performUpdateFromLocallyAvailablePackagesResponse !== void 0 && object.performUpdateFromLocallyAvailablePackagesResponse !== null ? CommonAPIPerformUpdateFromLocallyAvailablePackagesResponse.fromPartial(object.performUpdateFromLocallyAvailablePackagesResponse) : void 0;
|
|
2038
|
+
return message;
|
|
2039
|
+
}
|
|
2040
|
+
};
|
|
2041
|
+
function bytesFromBase64(b64) {
|
|
2042
|
+
if (globalThis.Buffer) return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
2043
|
+
else {
|
|
2044
|
+
const bin = globalThis.atob(b64);
|
|
2045
|
+
const arr = new Uint8Array(bin.length);
|
|
2046
|
+
for (let i = 0; i < bin.length; ++i) arr[i] = bin.charCodeAt(i);
|
|
2047
|
+
return arr;
|
|
2048
|
+
}
|
|
2049
|
+
}
|
|
2050
|
+
function base64FromBytes(arr) {
|
|
2051
|
+
if (globalThis.Buffer) return globalThis.Buffer.from(arr).toString("base64");
|
|
2052
|
+
else {
|
|
2053
|
+
const bin = [];
|
|
2054
|
+
arr.forEach((byte) => {
|
|
2055
|
+
bin.push(globalThis.String.fromCharCode(byte));
|
|
2056
|
+
});
|
|
2057
|
+
return globalThis.btoa(bin.join(""));
|
|
2058
|
+
}
|
|
2059
|
+
}
|
|
2060
|
+
function isSet(value) {
|
|
2061
|
+
return value !== null && value !== void 0;
|
|
2062
|
+
}
|
|
2063
|
+
//#endregion
|
|
2064
|
+
export { CommonAPICheckForUpdateRequest, CommonAPICheckForUpdateResponse, CommonAPICheckForUpdateUrgencyRequest, CommonAPICheckForUpdateUrgencyResponse, CommonAPICheckInternetRequest, CommonAPICheckInternetResponse, CommonAPIClearUpdateRequest, CommonAPIClearUpdateResponse, CommonAPIConfigureEthernetRequest, CommonAPIConfigureEthernetResponse, CommonAPIConfigureWifiRequest, CommonAPIConfigureWifiResponse, CommonAPIConfigureWifiWithEncryptedPasswordRequest, CommonAPIConfigureWifiWithEncryptedPasswordResponse, CommonAPIDeviceCertRequest, CommonAPIDeviceCertResponse, CommonAPIFactoryResetRequest, CommonAPIFactoryResetResponse, CommonAPIForgetWifiNetworkRequest, CommonAPIForgetWifiNetworkResponse, CommonAPIGetCellularInfoRequest, CommonAPIGetCellularInfoResponse, CommonAPIGetNetworkingStatusRequest, CommonAPIGetNetworkingStatusResponse, CommonAPIGetSystemInfoRequest, CommonAPIGetSystemInfoResponse, CommonAPINegotiateUpdateWithLocallyAvailablePackagesRequest, CommonAPINegotiateUpdateWithLocallyAvailablePackagesResponse, CommonAPIPerformUpdateFromLocallyAvailablePackagesRequest, CommonAPIPerformUpdateFromLocallyAvailablePackagesResponse, CommonAPIPerformUpdateRequest, CommonAPIPerformUpdateResponse, CommonAPIPrepareRegistrationPayloadRequest, CommonAPIPrepareRegistrationPayloadResponse, CommonAPISetLocalSiteConfigRequest, CommonAPISetLocalSiteConfigResponse, CommonAPIWifiScanRequest, CommonAPIWifiScanResponse, CommonMessages, protobufPackage };
|