@teslemetry/tesla-protocol 0.4.0 → 0.6.0
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/dist/charging/charging.cjs +550 -0
- package/dist/charging/charging.d.cts +75 -0
- package/dist/charging/charging.d.mts +75 -0
- package/dist/charging/charging.mjs +543 -0
- package/dist/command/car_server.cjs +65 -0
- package/dist/command/car_server.d.cts +13 -1
- package/dist/command/car_server.d.mts +13 -1
- package/dist/command/car_server.mjs +65 -1
- package/dist/command/universal_message.cjs +5 -0
- package/dist/command/universal_message.d.cts +2 -0
- package/dist/command/universal_message.d.mts +2 -0
- package/dist/command/universal_message.mjs +5 -0
- package/dist/command/vcsec.cjs +87 -2
- package/dist/command/vcsec.d.cts +11 -1
- package/dist/command/vcsec.d.mts +11 -1
- package/dist/command/vcsec.mjs +86 -3
- package/dist/command/vehicle.cjs +27 -0
- package/dist/command/vehicle.d.cts +4 -0
- package/dist/command/vehicle.d.mts +4 -0
- package/dist/command/vehicle.mjs +27 -0
- package/dist/dashcam/dashcam_sei.cjs +263 -0
- package/dist/dashcam/dashcam_sei.d.cts +60 -0
- package/dist/dashcam/dashcam_sei.d.mts +60 -0
- package/dist/dashcam/dashcam_sei.mjs +255 -0
- package/dist/energy_device/common_api.cjs +604 -11
- package/dist/energy_device/common_api.d.cts +60 -3
- package/dist/energy_device/common_api.d.mts +60 -3
- package/dist/energy_device/common_api.mjs +596 -12
- package/dist/energy_device/device.cjs +129 -0
- package/dist/energy_device/device.d.cts +13 -1
- package/dist/energy_device/device.d.mts +13 -1
- package/dist/energy_device/device.mjs +127 -1
- package/dist/energy_device/energy_site_net.cjs +747 -0
- package/dist/energy_device/energy_site_net.d.cts +84 -1
- package/dist/energy_device/energy_site_net.d.mts +84 -1
- package/dist/energy_device/energy_site_net.mjs +736 -1
- package/dist/energy_device/filestore_api.cjs +575 -0
- package/dist/energy_device/filestore_api.d.cts +81 -0
- package/dist/energy_device/filestore_api.d.mts +81 -0
- package/dist/energy_device/filestore_api.mjs +563 -0
- package/dist/energy_device/google/protobuf/duration.cjs +71 -0
- package/dist/energy_device/google/protobuf/duration.d.cts +95 -0
- package/dist/energy_device/google/protobuf/duration.d.mts +95 -0
- package/dist/energy_device/google/protobuf/duration.mjs +69 -0
- package/dist/energy_device/graphql_api.cjs +449 -0
- package/dist/energy_device/graphql_api.d.cts +78 -0
- package/dist/energy_device/graphql_api.d.mts +78 -0
- package/dist/energy_device/graphql_api.mjs +434 -0
- package/dist/energy_device/intra_site_api.cjs +1698 -0
- package/dist/energy_device/intra_site_api.d.cts +227 -0
- package/dist/energy_device/intra_site_api.d.mts +227 -0
- package/dist/energy_device/intra_site_api.mjs +1644 -0
- package/dist/energy_device/local_auth_api.cjs +505 -0
- package/dist/energy_device/local_auth_api.d.cts +73 -0
- package/dist/energy_device/local_auth_api.d.mts +73 -0
- package/dist/energy_device/local_auth_api.mjs +492 -0
- package/dist/energy_device/networking.cjs +20 -2
- package/dist/energy_device/networking.d.cts +2 -0
- package/dist/energy_device/networking.d.mts +2 -0
- package/dist/energy_device/networking.mjs +20 -2
- package/dist/energy_device/neurio_meter_api.cjs +1442 -0
- package/dist/energy_device/neurio_meter_api.d.cts +202 -0
- package/dist/energy_device/neurio_meter_api.d.mts +202 -0
- package/dist/energy_device/neurio_meter_api.mjs +1401 -0
- package/dist/energy_device/pvi_api.cjs +2954 -0
- package/dist/energy_device/pvi_api.d.cts +319 -0
- package/dist/energy_device/pvi_api.d.mts +319 -0
- package/dist/energy_device/pvi_api.mjs +2892 -0
- package/dist/energy_device/teg_api.cjs +5184 -147
- package/dist/energy_device/teg_api.d.cts +492 -77
- package/dist/energy_device/teg_api.d.mts +492 -77
- package/dist/energy_device/teg_api.mjs +5064 -148
- package/dist/energy_device/transport.cjs +82 -2
- package/dist/energy_device/transport.d.cts +16 -5
- package/dist/energy_device/transport.d.mts +16 -5
- package/dist/energy_device/transport.mjs +82 -2
- package/dist/energy_device/update.cjs +33 -6
- package/dist/energy_device/update.d.cts +3 -0
- package/dist/energy_device/update.d.mts +3 -0
- package/dist/energy_device/update.mjs +33 -6
- package/dist/energy_device/wall_connector.cjs +6729 -5
- package/dist/energy_device/wall_connector.d.cts +696 -2
- package/dist/energy_device/wall_connector.d.mts +696 -2
- package/dist/energy_device/wall_connector.mjs +6591 -6
- package/package.json +1 -1
|
@@ -0,0 +1,492 @@
|
|
|
1
|
+
import { WifiPassword } from "./networking.mjs";
|
|
2
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
3
|
+
//#region src/energy_device/local_auth_api.ts
|
|
4
|
+
const protobufPackage = "tesla.proto.energy_device.v1";
|
|
5
|
+
/**
|
|
6
|
+
* TESLEMETRY SOURCE-OF-RECORD - no upstream.
|
|
7
|
+
* Provenance: Tesla Energy gateway (TEG) local API, from our own
|
|
8
|
+
* observations and contributions from the community
|
|
9
|
+
*/
|
|
10
|
+
let LocalAuthResult = /* @__PURE__ */ function(LocalAuthResult) {
|
|
11
|
+
LocalAuthResult[LocalAuthResult["LOCAL_AUTH_RESULT_INVALID"] = 0] = "LOCAL_AUTH_RESULT_INVALID";
|
|
12
|
+
LocalAuthResult[LocalAuthResult["LOCAL_AUTH_RESULT_SUCCESS"] = 1] = "LOCAL_AUTH_RESULT_SUCCESS";
|
|
13
|
+
LocalAuthResult[LocalAuthResult["LOCAL_AUTH_RESULT_INVALID_PARAMETERS"] = 2] = "LOCAL_AUTH_RESULT_INVALID_PARAMETERS";
|
|
14
|
+
LocalAuthResult[LocalAuthResult["LOCAL_AUTH_RESULT_INVALID_PASSWORD"] = 3] = "LOCAL_AUTH_RESULT_INVALID_PASSWORD";
|
|
15
|
+
LocalAuthResult[LocalAuthResult["LOCAL_AUTH_RESULT_PRESENCE_PROOF_REQUIRED"] = 4] = "LOCAL_AUTH_RESULT_PRESENCE_PROOF_REQUIRED";
|
|
16
|
+
LocalAuthResult[LocalAuthResult["LOCAL_AUTH_RESULT_PRESENCE_PROOF_TIMED_OUT"] = 5] = "LOCAL_AUTH_RESULT_PRESENCE_PROOF_TIMED_OUT";
|
|
17
|
+
LocalAuthResult[LocalAuthResult["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
18
|
+
return LocalAuthResult;
|
|
19
|
+
}({});
|
|
20
|
+
function localAuthResultFromJSON(object) {
|
|
21
|
+
switch (object) {
|
|
22
|
+
case 0:
|
|
23
|
+
case "LOCAL_AUTH_RESULT_INVALID": return 0;
|
|
24
|
+
case 1:
|
|
25
|
+
case "LOCAL_AUTH_RESULT_SUCCESS": return 1;
|
|
26
|
+
case 2:
|
|
27
|
+
case "LOCAL_AUTH_RESULT_INVALID_PARAMETERS": return 2;
|
|
28
|
+
case 3:
|
|
29
|
+
case "LOCAL_AUTH_RESULT_INVALID_PASSWORD": return 3;
|
|
30
|
+
case 4:
|
|
31
|
+
case "LOCAL_AUTH_RESULT_PRESENCE_PROOF_REQUIRED": return 4;
|
|
32
|
+
case 5:
|
|
33
|
+
case "LOCAL_AUTH_RESULT_PRESENCE_PROOF_TIMED_OUT": return 5;
|
|
34
|
+
default: return -1;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
function localAuthResultToJSON(object) {
|
|
38
|
+
switch (object) {
|
|
39
|
+
case 0: return "LOCAL_AUTH_RESULT_INVALID";
|
|
40
|
+
case 1: return "LOCAL_AUTH_RESULT_SUCCESS";
|
|
41
|
+
case 2: return "LOCAL_AUTH_RESULT_INVALID_PARAMETERS";
|
|
42
|
+
case 3: return "LOCAL_AUTH_RESULT_INVALID_PASSWORD";
|
|
43
|
+
case 4: return "LOCAL_AUTH_RESULT_PRESENCE_PROOF_REQUIRED";
|
|
44
|
+
case 5: return "LOCAL_AUTH_RESULT_PRESENCE_PROOF_TIMED_OUT";
|
|
45
|
+
default: return "UNRECOGNIZED";
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
function createBaseLocalAuthAPIRequiredFactorsRequest() {
|
|
49
|
+
return {};
|
|
50
|
+
}
|
|
51
|
+
const LocalAuthAPIRequiredFactorsRequest = {
|
|
52
|
+
encode(_, writer = new BinaryWriter()) {
|
|
53
|
+
return writer;
|
|
54
|
+
},
|
|
55
|
+
decode(input, length) {
|
|
56
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
57
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
58
|
+
const message = createBaseLocalAuthAPIRequiredFactorsRequest();
|
|
59
|
+
while (reader.pos < end) {
|
|
60
|
+
const tag = reader.uint32();
|
|
61
|
+
switch (tag >>> 3) {}
|
|
62
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
63
|
+
reader.skip(tag & 7);
|
|
64
|
+
}
|
|
65
|
+
return message;
|
|
66
|
+
},
|
|
67
|
+
fromJSON(_) {
|
|
68
|
+
return {};
|
|
69
|
+
},
|
|
70
|
+
toJSON(_) {
|
|
71
|
+
return {};
|
|
72
|
+
},
|
|
73
|
+
create(base) {
|
|
74
|
+
return LocalAuthAPIRequiredFactorsRequest.fromPartial(base ?? {});
|
|
75
|
+
},
|
|
76
|
+
fromPartial(_) {
|
|
77
|
+
return createBaseLocalAuthAPIRequiredFactorsRequest();
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
function createBaseLocalAuthAPIRequiredFactorsResponse() {
|
|
81
|
+
return {
|
|
82
|
+
password: false,
|
|
83
|
+
presence: false
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
const LocalAuthAPIRequiredFactorsResponse = {
|
|
87
|
+
encode(message, writer = new BinaryWriter()) {
|
|
88
|
+
if (message.password !== false) writer.uint32(8).bool(message.password);
|
|
89
|
+
if (message.presence !== false) writer.uint32(16).bool(message.presence);
|
|
90
|
+
return writer;
|
|
91
|
+
},
|
|
92
|
+
decode(input, length) {
|
|
93
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
94
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
95
|
+
const message = createBaseLocalAuthAPIRequiredFactorsResponse();
|
|
96
|
+
while (reader.pos < end) {
|
|
97
|
+
const tag = reader.uint32();
|
|
98
|
+
switch (tag >>> 3) {
|
|
99
|
+
case 1:
|
|
100
|
+
if (tag !== 8) break;
|
|
101
|
+
message.password = reader.bool();
|
|
102
|
+
continue;
|
|
103
|
+
case 2:
|
|
104
|
+
if (tag !== 16) break;
|
|
105
|
+
message.presence = reader.bool();
|
|
106
|
+
continue;
|
|
107
|
+
}
|
|
108
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
109
|
+
reader.skip(tag & 7);
|
|
110
|
+
}
|
|
111
|
+
return message;
|
|
112
|
+
},
|
|
113
|
+
fromJSON(object) {
|
|
114
|
+
return {
|
|
115
|
+
password: isSet(object.password) ? globalThis.Boolean(object.password) : false,
|
|
116
|
+
presence: isSet(object.presence) ? globalThis.Boolean(object.presence) : false
|
|
117
|
+
};
|
|
118
|
+
},
|
|
119
|
+
toJSON(message) {
|
|
120
|
+
const obj = {};
|
|
121
|
+
if (message.password !== void 0) obj.password = message.password;
|
|
122
|
+
if (message.presence !== void 0) obj.presence = message.presence;
|
|
123
|
+
return obj;
|
|
124
|
+
},
|
|
125
|
+
create(base) {
|
|
126
|
+
return LocalAuthAPIRequiredFactorsResponse.fromPartial(base ?? {});
|
|
127
|
+
},
|
|
128
|
+
fromPartial(object) {
|
|
129
|
+
const message = createBaseLocalAuthAPIRequiredFactorsResponse();
|
|
130
|
+
message.password = object.password ?? false;
|
|
131
|
+
message.presence = object.presence ?? false;
|
|
132
|
+
return message;
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
function createBaseLocalAuthAPILoginRequest() {
|
|
136
|
+
return {
|
|
137
|
+
participant: 0,
|
|
138
|
+
email: "",
|
|
139
|
+
password: void 0
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
const LocalAuthAPILoginRequest = {
|
|
143
|
+
encode(message, writer = new BinaryWriter()) {
|
|
144
|
+
if (message.participant !== 0) writer.uint32(8).int32(message.participant);
|
|
145
|
+
if (message.email !== "") writer.uint32(18).string(message.email);
|
|
146
|
+
if (message.password !== void 0) WifiPassword.encode(message.password, writer.uint32(26).fork()).join();
|
|
147
|
+
return writer;
|
|
148
|
+
},
|
|
149
|
+
decode(input, length) {
|
|
150
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
151
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
152
|
+
const message = createBaseLocalAuthAPILoginRequest();
|
|
153
|
+
while (reader.pos < end) {
|
|
154
|
+
const tag = reader.uint32();
|
|
155
|
+
switch (tag >>> 3) {
|
|
156
|
+
case 1:
|
|
157
|
+
if (tag !== 8) break;
|
|
158
|
+
message.participant = reader.int32();
|
|
159
|
+
continue;
|
|
160
|
+
case 2:
|
|
161
|
+
if (tag !== 18) break;
|
|
162
|
+
message.email = reader.string();
|
|
163
|
+
continue;
|
|
164
|
+
case 3:
|
|
165
|
+
if (tag !== 26) break;
|
|
166
|
+
message.password = WifiPassword.decode(reader, reader.uint32());
|
|
167
|
+
continue;
|
|
168
|
+
}
|
|
169
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
170
|
+
reader.skip(tag & 7);
|
|
171
|
+
}
|
|
172
|
+
return message;
|
|
173
|
+
},
|
|
174
|
+
fromJSON(object) {
|
|
175
|
+
return {
|
|
176
|
+
participant: isSet(object.participant) ? globalThis.Number(object.participant) : 0,
|
|
177
|
+
email: isSet(object.email) ? globalThis.String(object.email) : "",
|
|
178
|
+
password: isSet(object.password) ? WifiPassword.fromJSON(object.password) : void 0
|
|
179
|
+
};
|
|
180
|
+
},
|
|
181
|
+
toJSON(message) {
|
|
182
|
+
const obj = {};
|
|
183
|
+
if (message.participant !== void 0) obj.participant = Math.round(message.participant);
|
|
184
|
+
if (message.email !== void 0) obj.email = message.email;
|
|
185
|
+
if (message.password !== void 0) obj.password = WifiPassword.toJSON(message.password);
|
|
186
|
+
return obj;
|
|
187
|
+
},
|
|
188
|
+
create(base) {
|
|
189
|
+
return LocalAuthAPILoginRequest.fromPartial(base ?? {});
|
|
190
|
+
},
|
|
191
|
+
fromPartial(object) {
|
|
192
|
+
const message = createBaseLocalAuthAPILoginRequest();
|
|
193
|
+
message.participant = object.participant ?? 0;
|
|
194
|
+
message.email = object.email ?? "";
|
|
195
|
+
message.password = object.password !== void 0 && object.password !== null ? WifiPassword.fromPartial(object.password) : void 0;
|
|
196
|
+
return message;
|
|
197
|
+
}
|
|
198
|
+
};
|
|
199
|
+
function createBaseLocalAuthAPILoginResponse() {
|
|
200
|
+
return { result: 0 };
|
|
201
|
+
}
|
|
202
|
+
const LocalAuthAPILoginResponse = {
|
|
203
|
+
encode(message, writer = new BinaryWriter()) {
|
|
204
|
+
if (message.result !== 0) writer.uint32(8).int32(message.result);
|
|
205
|
+
return writer;
|
|
206
|
+
},
|
|
207
|
+
decode(input, length) {
|
|
208
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
209
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
210
|
+
const message = createBaseLocalAuthAPILoginResponse();
|
|
211
|
+
while (reader.pos < end) {
|
|
212
|
+
const tag = reader.uint32();
|
|
213
|
+
switch (tag >>> 3) {
|
|
214
|
+
case 1:
|
|
215
|
+
if (tag !== 8) break;
|
|
216
|
+
message.result = reader.int32();
|
|
217
|
+
continue;
|
|
218
|
+
}
|
|
219
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
220
|
+
reader.skip(tag & 7);
|
|
221
|
+
}
|
|
222
|
+
return message;
|
|
223
|
+
},
|
|
224
|
+
fromJSON(object) {
|
|
225
|
+
return { result: isSet(object.result) ? localAuthResultFromJSON(object.result) : 0 };
|
|
226
|
+
},
|
|
227
|
+
toJSON(message) {
|
|
228
|
+
const obj = {};
|
|
229
|
+
if (message.result !== void 0) obj.result = localAuthResultToJSON(message.result);
|
|
230
|
+
return obj;
|
|
231
|
+
},
|
|
232
|
+
create(base) {
|
|
233
|
+
return LocalAuthAPILoginResponse.fromPartial(base ?? {});
|
|
234
|
+
},
|
|
235
|
+
fromPartial(object) {
|
|
236
|
+
const message = createBaseLocalAuthAPILoginResponse();
|
|
237
|
+
message.result = object.result ?? 0;
|
|
238
|
+
return message;
|
|
239
|
+
}
|
|
240
|
+
};
|
|
241
|
+
function createBaseLocalAuthAPILogoutRequest() {
|
|
242
|
+
return {};
|
|
243
|
+
}
|
|
244
|
+
const LocalAuthAPILogoutRequest = {
|
|
245
|
+
encode(_, writer = new BinaryWriter()) {
|
|
246
|
+
return writer;
|
|
247
|
+
},
|
|
248
|
+
decode(input, length) {
|
|
249
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
250
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
251
|
+
const message = createBaseLocalAuthAPILogoutRequest();
|
|
252
|
+
while (reader.pos < end) {
|
|
253
|
+
const tag = reader.uint32();
|
|
254
|
+
switch (tag >>> 3) {}
|
|
255
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
256
|
+
reader.skip(tag & 7);
|
|
257
|
+
}
|
|
258
|
+
return message;
|
|
259
|
+
},
|
|
260
|
+
fromJSON(_) {
|
|
261
|
+
return {};
|
|
262
|
+
},
|
|
263
|
+
toJSON(_) {
|
|
264
|
+
return {};
|
|
265
|
+
},
|
|
266
|
+
create(base) {
|
|
267
|
+
return LocalAuthAPILogoutRequest.fromPartial(base ?? {});
|
|
268
|
+
},
|
|
269
|
+
fromPartial(_) {
|
|
270
|
+
return createBaseLocalAuthAPILogoutRequest();
|
|
271
|
+
}
|
|
272
|
+
};
|
|
273
|
+
function createBaseLocalAuthAPILogoutResponse() {
|
|
274
|
+
return {};
|
|
275
|
+
}
|
|
276
|
+
const LocalAuthAPILogoutResponse = {
|
|
277
|
+
encode(_, writer = new BinaryWriter()) {
|
|
278
|
+
return writer;
|
|
279
|
+
},
|
|
280
|
+
decode(input, length) {
|
|
281
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
282
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
283
|
+
const message = createBaseLocalAuthAPILogoutResponse();
|
|
284
|
+
while (reader.pos < end) {
|
|
285
|
+
const tag = reader.uint32();
|
|
286
|
+
switch (tag >>> 3) {}
|
|
287
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
288
|
+
reader.skip(tag & 7);
|
|
289
|
+
}
|
|
290
|
+
return message;
|
|
291
|
+
},
|
|
292
|
+
fromJSON(_) {
|
|
293
|
+
return {};
|
|
294
|
+
},
|
|
295
|
+
toJSON(_) {
|
|
296
|
+
return {};
|
|
297
|
+
},
|
|
298
|
+
create(base) {
|
|
299
|
+
return LocalAuthAPILogoutResponse.fromPartial(base ?? {});
|
|
300
|
+
},
|
|
301
|
+
fromPartial(_) {
|
|
302
|
+
return createBaseLocalAuthAPILogoutResponse();
|
|
303
|
+
}
|
|
304
|
+
};
|
|
305
|
+
function createBaseLocalAuthAPICheckAuthStatusRequest() {
|
|
306
|
+
return {};
|
|
307
|
+
}
|
|
308
|
+
const LocalAuthAPICheckAuthStatusRequest = {
|
|
309
|
+
encode(_, writer = new BinaryWriter()) {
|
|
310
|
+
return writer;
|
|
311
|
+
},
|
|
312
|
+
decode(input, length) {
|
|
313
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
314
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
315
|
+
const message = createBaseLocalAuthAPICheckAuthStatusRequest();
|
|
316
|
+
while (reader.pos < end) {
|
|
317
|
+
const tag = reader.uint32();
|
|
318
|
+
switch (tag >>> 3) {}
|
|
319
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
320
|
+
reader.skip(tag & 7);
|
|
321
|
+
}
|
|
322
|
+
return message;
|
|
323
|
+
},
|
|
324
|
+
fromJSON(_) {
|
|
325
|
+
return {};
|
|
326
|
+
},
|
|
327
|
+
toJSON(_) {
|
|
328
|
+
return {};
|
|
329
|
+
},
|
|
330
|
+
create(base) {
|
|
331
|
+
return LocalAuthAPICheckAuthStatusRequest.fromPartial(base ?? {});
|
|
332
|
+
},
|
|
333
|
+
fromPartial(_) {
|
|
334
|
+
return createBaseLocalAuthAPICheckAuthStatusRequest();
|
|
335
|
+
}
|
|
336
|
+
};
|
|
337
|
+
function createBaseLocalAuthAPICheckAuthStatusResponse() {
|
|
338
|
+
return { result: 0 };
|
|
339
|
+
}
|
|
340
|
+
const LocalAuthAPICheckAuthStatusResponse = {
|
|
341
|
+
encode(message, writer = new BinaryWriter()) {
|
|
342
|
+
if (message.result !== 0) writer.uint32(8).int32(message.result);
|
|
343
|
+
return writer;
|
|
344
|
+
},
|
|
345
|
+
decode(input, length) {
|
|
346
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
347
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
348
|
+
const message = createBaseLocalAuthAPICheckAuthStatusResponse();
|
|
349
|
+
while (reader.pos < end) {
|
|
350
|
+
const tag = reader.uint32();
|
|
351
|
+
switch (tag >>> 3) {
|
|
352
|
+
case 1:
|
|
353
|
+
if (tag !== 8) break;
|
|
354
|
+
message.result = reader.int32();
|
|
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 { result: isSet(object.result) ? localAuthResultFromJSON(object.result) : 0 };
|
|
364
|
+
},
|
|
365
|
+
toJSON(message) {
|
|
366
|
+
const obj = {};
|
|
367
|
+
if (message.result !== void 0) obj.result = localAuthResultToJSON(message.result);
|
|
368
|
+
return obj;
|
|
369
|
+
},
|
|
370
|
+
create(base) {
|
|
371
|
+
return LocalAuthAPICheckAuthStatusResponse.fromPartial(base ?? {});
|
|
372
|
+
},
|
|
373
|
+
fromPartial(object) {
|
|
374
|
+
const message = createBaseLocalAuthAPICheckAuthStatusResponse();
|
|
375
|
+
message.result = object.result ?? 0;
|
|
376
|
+
return message;
|
|
377
|
+
}
|
|
378
|
+
};
|
|
379
|
+
function createBaseLocalAuthMessages() {
|
|
380
|
+
return {
|
|
381
|
+
requiredFactorsRequest: void 0,
|
|
382
|
+
requiredFactorsResponse: void 0,
|
|
383
|
+
loginRequest: void 0,
|
|
384
|
+
loginResponse: void 0,
|
|
385
|
+
logoutRequest: void 0,
|
|
386
|
+
logoutResponse: void 0,
|
|
387
|
+
checkAuthStatusRequest: void 0,
|
|
388
|
+
checkAuthStatusResponse: void 0
|
|
389
|
+
};
|
|
390
|
+
}
|
|
391
|
+
const LocalAuthMessages = {
|
|
392
|
+
encode(message, writer = new BinaryWriter()) {
|
|
393
|
+
if (message.requiredFactorsRequest !== void 0) LocalAuthAPIRequiredFactorsRequest.encode(message.requiredFactorsRequest, writer.uint32(10).fork()).join();
|
|
394
|
+
if (message.requiredFactorsResponse !== void 0) LocalAuthAPIRequiredFactorsResponse.encode(message.requiredFactorsResponse, writer.uint32(18).fork()).join();
|
|
395
|
+
if (message.loginRequest !== void 0) LocalAuthAPILoginRequest.encode(message.loginRequest, writer.uint32(26).fork()).join();
|
|
396
|
+
if (message.loginResponse !== void 0) LocalAuthAPILoginResponse.encode(message.loginResponse, writer.uint32(34).fork()).join();
|
|
397
|
+
if (message.logoutRequest !== void 0) LocalAuthAPILogoutRequest.encode(message.logoutRequest, writer.uint32(42).fork()).join();
|
|
398
|
+
if (message.logoutResponse !== void 0) LocalAuthAPILogoutResponse.encode(message.logoutResponse, writer.uint32(50).fork()).join();
|
|
399
|
+
if (message.checkAuthStatusRequest !== void 0) LocalAuthAPICheckAuthStatusRequest.encode(message.checkAuthStatusRequest, writer.uint32(58).fork()).join();
|
|
400
|
+
if (message.checkAuthStatusResponse !== void 0) LocalAuthAPICheckAuthStatusResponse.encode(message.checkAuthStatusResponse, writer.uint32(66).fork()).join();
|
|
401
|
+
return writer;
|
|
402
|
+
},
|
|
403
|
+
decode(input, length) {
|
|
404
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
405
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
406
|
+
const message = createBaseLocalAuthMessages();
|
|
407
|
+
while (reader.pos < end) {
|
|
408
|
+
const tag = reader.uint32();
|
|
409
|
+
switch (tag >>> 3) {
|
|
410
|
+
case 1:
|
|
411
|
+
if (tag !== 10) break;
|
|
412
|
+
message.requiredFactorsRequest = LocalAuthAPIRequiredFactorsRequest.decode(reader, reader.uint32());
|
|
413
|
+
continue;
|
|
414
|
+
case 2:
|
|
415
|
+
if (tag !== 18) break;
|
|
416
|
+
message.requiredFactorsResponse = LocalAuthAPIRequiredFactorsResponse.decode(reader, reader.uint32());
|
|
417
|
+
continue;
|
|
418
|
+
case 3:
|
|
419
|
+
if (tag !== 26) break;
|
|
420
|
+
message.loginRequest = LocalAuthAPILoginRequest.decode(reader, reader.uint32());
|
|
421
|
+
continue;
|
|
422
|
+
case 4:
|
|
423
|
+
if (tag !== 34) break;
|
|
424
|
+
message.loginResponse = LocalAuthAPILoginResponse.decode(reader, reader.uint32());
|
|
425
|
+
continue;
|
|
426
|
+
case 5:
|
|
427
|
+
if (tag !== 42) break;
|
|
428
|
+
message.logoutRequest = LocalAuthAPILogoutRequest.decode(reader, reader.uint32());
|
|
429
|
+
continue;
|
|
430
|
+
case 6:
|
|
431
|
+
if (tag !== 50) break;
|
|
432
|
+
message.logoutResponse = LocalAuthAPILogoutResponse.decode(reader, reader.uint32());
|
|
433
|
+
continue;
|
|
434
|
+
case 7:
|
|
435
|
+
if (tag !== 58) break;
|
|
436
|
+
message.checkAuthStatusRequest = LocalAuthAPICheckAuthStatusRequest.decode(reader, reader.uint32());
|
|
437
|
+
continue;
|
|
438
|
+
case 8:
|
|
439
|
+
if (tag !== 66) break;
|
|
440
|
+
message.checkAuthStatusResponse = LocalAuthAPICheckAuthStatusResponse.decode(reader, reader.uint32());
|
|
441
|
+
continue;
|
|
442
|
+
}
|
|
443
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
444
|
+
reader.skip(tag & 7);
|
|
445
|
+
}
|
|
446
|
+
return message;
|
|
447
|
+
},
|
|
448
|
+
fromJSON(object) {
|
|
449
|
+
return {
|
|
450
|
+
requiredFactorsRequest: isSet(object.requiredFactorsRequest) ? LocalAuthAPIRequiredFactorsRequest.fromJSON(object.requiredFactorsRequest) : void 0,
|
|
451
|
+
requiredFactorsResponse: isSet(object.requiredFactorsResponse) ? LocalAuthAPIRequiredFactorsResponse.fromJSON(object.requiredFactorsResponse) : void 0,
|
|
452
|
+
loginRequest: isSet(object.loginRequest) ? LocalAuthAPILoginRequest.fromJSON(object.loginRequest) : void 0,
|
|
453
|
+
loginResponse: isSet(object.loginResponse) ? LocalAuthAPILoginResponse.fromJSON(object.loginResponse) : void 0,
|
|
454
|
+
logoutRequest: isSet(object.logoutRequest) ? LocalAuthAPILogoutRequest.fromJSON(object.logoutRequest) : void 0,
|
|
455
|
+
logoutResponse: isSet(object.logoutResponse) ? LocalAuthAPILogoutResponse.fromJSON(object.logoutResponse) : void 0,
|
|
456
|
+
checkAuthStatusRequest: isSet(object.checkAuthStatusRequest) ? LocalAuthAPICheckAuthStatusRequest.fromJSON(object.checkAuthStatusRequest) : void 0,
|
|
457
|
+
checkAuthStatusResponse: isSet(object.checkAuthStatusResponse) ? LocalAuthAPICheckAuthStatusResponse.fromJSON(object.checkAuthStatusResponse) : void 0
|
|
458
|
+
};
|
|
459
|
+
},
|
|
460
|
+
toJSON(message) {
|
|
461
|
+
const obj = {};
|
|
462
|
+
if (message.requiredFactorsRequest !== void 0) obj.requiredFactorsRequest = LocalAuthAPIRequiredFactorsRequest.toJSON(message.requiredFactorsRequest);
|
|
463
|
+
if (message.requiredFactorsResponse !== void 0) obj.requiredFactorsResponse = LocalAuthAPIRequiredFactorsResponse.toJSON(message.requiredFactorsResponse);
|
|
464
|
+
if (message.loginRequest !== void 0) obj.loginRequest = LocalAuthAPILoginRequest.toJSON(message.loginRequest);
|
|
465
|
+
if (message.loginResponse !== void 0) obj.loginResponse = LocalAuthAPILoginResponse.toJSON(message.loginResponse);
|
|
466
|
+
if (message.logoutRequest !== void 0) obj.logoutRequest = LocalAuthAPILogoutRequest.toJSON(message.logoutRequest);
|
|
467
|
+
if (message.logoutResponse !== void 0) obj.logoutResponse = LocalAuthAPILogoutResponse.toJSON(message.logoutResponse);
|
|
468
|
+
if (message.checkAuthStatusRequest !== void 0) obj.checkAuthStatusRequest = LocalAuthAPICheckAuthStatusRequest.toJSON(message.checkAuthStatusRequest);
|
|
469
|
+
if (message.checkAuthStatusResponse !== void 0) obj.checkAuthStatusResponse = LocalAuthAPICheckAuthStatusResponse.toJSON(message.checkAuthStatusResponse);
|
|
470
|
+
return obj;
|
|
471
|
+
},
|
|
472
|
+
create(base) {
|
|
473
|
+
return LocalAuthMessages.fromPartial(base ?? {});
|
|
474
|
+
},
|
|
475
|
+
fromPartial(object) {
|
|
476
|
+
const message = createBaseLocalAuthMessages();
|
|
477
|
+
message.requiredFactorsRequest = object.requiredFactorsRequest !== void 0 && object.requiredFactorsRequest !== null ? LocalAuthAPIRequiredFactorsRequest.fromPartial(object.requiredFactorsRequest) : void 0;
|
|
478
|
+
message.requiredFactorsResponse = object.requiredFactorsResponse !== void 0 && object.requiredFactorsResponse !== null ? LocalAuthAPIRequiredFactorsResponse.fromPartial(object.requiredFactorsResponse) : void 0;
|
|
479
|
+
message.loginRequest = object.loginRequest !== void 0 && object.loginRequest !== null ? LocalAuthAPILoginRequest.fromPartial(object.loginRequest) : void 0;
|
|
480
|
+
message.loginResponse = object.loginResponse !== void 0 && object.loginResponse !== null ? LocalAuthAPILoginResponse.fromPartial(object.loginResponse) : void 0;
|
|
481
|
+
message.logoutRequest = object.logoutRequest !== void 0 && object.logoutRequest !== null ? LocalAuthAPILogoutRequest.fromPartial(object.logoutRequest) : void 0;
|
|
482
|
+
message.logoutResponse = object.logoutResponse !== void 0 && object.logoutResponse !== null ? LocalAuthAPILogoutResponse.fromPartial(object.logoutResponse) : void 0;
|
|
483
|
+
message.checkAuthStatusRequest = object.checkAuthStatusRequest !== void 0 && object.checkAuthStatusRequest !== null ? LocalAuthAPICheckAuthStatusRequest.fromPartial(object.checkAuthStatusRequest) : void 0;
|
|
484
|
+
message.checkAuthStatusResponse = object.checkAuthStatusResponse !== void 0 && object.checkAuthStatusResponse !== null ? LocalAuthAPICheckAuthStatusResponse.fromPartial(object.checkAuthStatusResponse) : void 0;
|
|
485
|
+
return message;
|
|
486
|
+
}
|
|
487
|
+
};
|
|
488
|
+
function isSet(value) {
|
|
489
|
+
return value !== null && value !== void 0;
|
|
490
|
+
}
|
|
491
|
+
//#endregion
|
|
492
|
+
export { LocalAuthAPICheckAuthStatusRequest, LocalAuthAPICheckAuthStatusResponse, LocalAuthAPILoginRequest, LocalAuthAPILoginResponse, LocalAuthAPILogoutRequest, LocalAuthAPILogoutResponse, LocalAuthAPIRequiredFactorsRequest, LocalAuthAPIRequiredFactorsResponse, LocalAuthMessages, LocalAuthResult, localAuthResultFromJSON, localAuthResultToJSON, protobufPackage };
|
|
@@ -667,7 +667,9 @@ function createBaseNetworkInterface() {
|
|
|
667
667
|
enabled: false,
|
|
668
668
|
activeRoute: false,
|
|
669
669
|
ipv4Config: void 0,
|
|
670
|
-
connectivityStatus: void 0
|
|
670
|
+
connectivityStatus: void 0,
|
|
671
|
+
deviceState: 0,
|
|
672
|
+
deviceStateReason: 0
|
|
671
673
|
};
|
|
672
674
|
}
|
|
673
675
|
const NetworkInterface = {
|
|
@@ -677,6 +679,8 @@ const NetworkInterface = {
|
|
|
677
679
|
if (message.activeRoute !== false) writer.uint32(24).bool(message.activeRoute);
|
|
678
680
|
if (message.ipv4Config !== void 0) NetworkInterfaceIPv4Config.encode(message.ipv4Config, writer.uint32(34).fork()).join();
|
|
679
681
|
if (message.connectivityStatus !== void 0) NetworkConnectivityStatus.encode(message.connectivityStatus, writer.uint32(42).fork()).join();
|
|
682
|
+
if (message.deviceState !== 0) writer.uint32(48).int32(message.deviceState);
|
|
683
|
+
if (message.deviceStateReason !== 0) writer.uint32(56).int32(message.deviceStateReason);
|
|
680
684
|
return writer;
|
|
681
685
|
},
|
|
682
686
|
decode(input, length) {
|
|
@@ -706,6 +710,14 @@ const NetworkInterface = {
|
|
|
706
710
|
if (tag !== 42) break;
|
|
707
711
|
message.connectivityStatus = NetworkConnectivityStatus.decode(reader, reader.uint32());
|
|
708
712
|
continue;
|
|
713
|
+
case 6:
|
|
714
|
+
if (tag !== 48) break;
|
|
715
|
+
message.deviceState = reader.int32();
|
|
716
|
+
continue;
|
|
717
|
+
case 7:
|
|
718
|
+
if (tag !== 56) break;
|
|
719
|
+
message.deviceStateReason = reader.int32();
|
|
720
|
+
continue;
|
|
709
721
|
}
|
|
710
722
|
if ((tag & 7) === 4 || tag === 0) break;
|
|
711
723
|
reader.skip(tag & 7);
|
|
@@ -718,7 +730,9 @@ const NetworkInterface = {
|
|
|
718
730
|
enabled: isSet(object.enabled) ? globalThis.Boolean(object.enabled) : false,
|
|
719
731
|
activeRoute: isSet(object.activeRoute) ? globalThis.Boolean(object.activeRoute) : false,
|
|
720
732
|
ipv4Config: isSet(object.ipv4Config) ? NetworkInterfaceIPv4Config.fromJSON(object.ipv4Config) : void 0,
|
|
721
|
-
connectivityStatus: isSet(object.connectivityStatus) ? NetworkConnectivityStatus.fromJSON(object.connectivityStatus) : void 0
|
|
733
|
+
connectivityStatus: isSet(object.connectivityStatus) ? NetworkConnectivityStatus.fromJSON(object.connectivityStatus) : void 0,
|
|
734
|
+
deviceState: isSet(object.deviceState) ? networkDeviceStateFromJSON(object.deviceState) : 0,
|
|
735
|
+
deviceStateReason: isSet(object.deviceStateReason) ? networkDeviceStateReasonFromJSON(object.deviceStateReason) : 0
|
|
722
736
|
};
|
|
723
737
|
},
|
|
724
738
|
toJSON(message) {
|
|
@@ -728,6 +742,8 @@ const NetworkInterface = {
|
|
|
728
742
|
if (message.activeRoute !== void 0) obj.activeRoute = message.activeRoute;
|
|
729
743
|
if (message.ipv4Config !== void 0) obj.ipv4Config = NetworkInterfaceIPv4Config.toJSON(message.ipv4Config);
|
|
730
744
|
if (message.connectivityStatus !== void 0) obj.connectivityStatus = NetworkConnectivityStatus.toJSON(message.connectivityStatus);
|
|
745
|
+
if (message.deviceState !== void 0) obj.deviceState = networkDeviceStateToJSON(message.deviceState);
|
|
746
|
+
if (message.deviceStateReason !== void 0) obj.deviceStateReason = networkDeviceStateReasonToJSON(message.deviceStateReason);
|
|
731
747
|
return obj;
|
|
732
748
|
},
|
|
733
749
|
create(base) {
|
|
@@ -740,6 +756,8 @@ const NetworkInterface = {
|
|
|
740
756
|
message.activeRoute = object.activeRoute ?? false;
|
|
741
757
|
message.ipv4Config = object.ipv4Config !== void 0 && object.ipv4Config !== null ? NetworkInterfaceIPv4Config.fromPartial(object.ipv4Config) : void 0;
|
|
742
758
|
message.connectivityStatus = object.connectivityStatus !== void 0 && object.connectivityStatus !== null ? NetworkConnectivityStatus.fromPartial(object.connectivityStatus) : void 0;
|
|
759
|
+
message.deviceState = object.deviceState ?? 0;
|
|
760
|
+
message.deviceStateReason = object.deviceStateReason ?? 0;
|
|
743
761
|
return message;
|
|
744
762
|
}
|
|
745
763
|
};
|
|
@@ -113,6 +113,8 @@ interface NetworkInterface {
|
|
|
113
113
|
activeRoute: boolean;
|
|
114
114
|
ipv4Config: NetworkInterfaceIPv4Config | undefined;
|
|
115
115
|
connectivityStatus: NetworkConnectivityStatus | undefined;
|
|
116
|
+
deviceState: NetworkDeviceState;
|
|
117
|
+
deviceStateReason: NetworkDeviceStateReason;
|
|
116
118
|
}
|
|
117
119
|
interface CellularEID {
|
|
118
120
|
value: string;
|
|
@@ -113,6 +113,8 @@ interface NetworkInterface {
|
|
|
113
113
|
activeRoute: boolean;
|
|
114
114
|
ipv4Config: NetworkInterfaceIPv4Config | undefined;
|
|
115
115
|
connectivityStatus: NetworkConnectivityStatus | undefined;
|
|
116
|
+
deviceState: NetworkDeviceState;
|
|
117
|
+
deviceStateReason: NetworkDeviceStateReason;
|
|
116
118
|
}
|
|
117
119
|
interface CellularEID {
|
|
118
120
|
value: string;
|
|
@@ -666,7 +666,9 @@ function createBaseNetworkInterface() {
|
|
|
666
666
|
enabled: false,
|
|
667
667
|
activeRoute: false,
|
|
668
668
|
ipv4Config: void 0,
|
|
669
|
-
connectivityStatus: void 0
|
|
669
|
+
connectivityStatus: void 0,
|
|
670
|
+
deviceState: 0,
|
|
671
|
+
deviceStateReason: 0
|
|
670
672
|
};
|
|
671
673
|
}
|
|
672
674
|
const NetworkInterface = {
|
|
@@ -676,6 +678,8 @@ const NetworkInterface = {
|
|
|
676
678
|
if (message.activeRoute !== false) writer.uint32(24).bool(message.activeRoute);
|
|
677
679
|
if (message.ipv4Config !== void 0) NetworkInterfaceIPv4Config.encode(message.ipv4Config, writer.uint32(34).fork()).join();
|
|
678
680
|
if (message.connectivityStatus !== void 0) NetworkConnectivityStatus.encode(message.connectivityStatus, writer.uint32(42).fork()).join();
|
|
681
|
+
if (message.deviceState !== 0) writer.uint32(48).int32(message.deviceState);
|
|
682
|
+
if (message.deviceStateReason !== 0) writer.uint32(56).int32(message.deviceStateReason);
|
|
679
683
|
return writer;
|
|
680
684
|
},
|
|
681
685
|
decode(input, length) {
|
|
@@ -705,6 +709,14 @@ const NetworkInterface = {
|
|
|
705
709
|
if (tag !== 42) break;
|
|
706
710
|
message.connectivityStatus = NetworkConnectivityStatus.decode(reader, reader.uint32());
|
|
707
711
|
continue;
|
|
712
|
+
case 6:
|
|
713
|
+
if (tag !== 48) break;
|
|
714
|
+
message.deviceState = reader.int32();
|
|
715
|
+
continue;
|
|
716
|
+
case 7:
|
|
717
|
+
if (tag !== 56) break;
|
|
718
|
+
message.deviceStateReason = reader.int32();
|
|
719
|
+
continue;
|
|
708
720
|
}
|
|
709
721
|
if ((tag & 7) === 4 || tag === 0) break;
|
|
710
722
|
reader.skip(tag & 7);
|
|
@@ -717,7 +729,9 @@ const NetworkInterface = {
|
|
|
717
729
|
enabled: isSet(object.enabled) ? globalThis.Boolean(object.enabled) : false,
|
|
718
730
|
activeRoute: isSet(object.activeRoute) ? globalThis.Boolean(object.activeRoute) : false,
|
|
719
731
|
ipv4Config: isSet(object.ipv4Config) ? NetworkInterfaceIPv4Config.fromJSON(object.ipv4Config) : void 0,
|
|
720
|
-
connectivityStatus: isSet(object.connectivityStatus) ? NetworkConnectivityStatus.fromJSON(object.connectivityStatus) : void 0
|
|
732
|
+
connectivityStatus: isSet(object.connectivityStatus) ? NetworkConnectivityStatus.fromJSON(object.connectivityStatus) : void 0,
|
|
733
|
+
deviceState: isSet(object.deviceState) ? networkDeviceStateFromJSON(object.deviceState) : 0,
|
|
734
|
+
deviceStateReason: isSet(object.deviceStateReason) ? networkDeviceStateReasonFromJSON(object.deviceStateReason) : 0
|
|
721
735
|
};
|
|
722
736
|
},
|
|
723
737
|
toJSON(message) {
|
|
@@ -727,6 +741,8 @@ const NetworkInterface = {
|
|
|
727
741
|
if (message.activeRoute !== void 0) obj.activeRoute = message.activeRoute;
|
|
728
742
|
if (message.ipv4Config !== void 0) obj.ipv4Config = NetworkInterfaceIPv4Config.toJSON(message.ipv4Config);
|
|
729
743
|
if (message.connectivityStatus !== void 0) obj.connectivityStatus = NetworkConnectivityStatus.toJSON(message.connectivityStatus);
|
|
744
|
+
if (message.deviceState !== void 0) obj.deviceState = networkDeviceStateToJSON(message.deviceState);
|
|
745
|
+
if (message.deviceStateReason !== void 0) obj.deviceStateReason = networkDeviceStateReasonToJSON(message.deviceStateReason);
|
|
730
746
|
return obj;
|
|
731
747
|
},
|
|
732
748
|
create(base) {
|
|
@@ -739,6 +755,8 @@ const NetworkInterface = {
|
|
|
739
755
|
message.activeRoute = object.activeRoute ?? false;
|
|
740
756
|
message.ipv4Config = object.ipv4Config !== void 0 && object.ipv4Config !== null ? NetworkInterfaceIPv4Config.fromPartial(object.ipv4Config) : void 0;
|
|
741
757
|
message.connectivityStatus = object.connectivityStatus !== void 0 && object.connectivityStatus !== null ? NetworkConnectivityStatus.fromPartial(object.connectivityStatus) : void 0;
|
|
758
|
+
message.deviceState = object.deviceState ?? 0;
|
|
759
|
+
message.deviceStateReason = object.deviceStateReason ?? 0;
|
|
742
760
|
return message;
|
|
743
761
|
}
|
|
744
762
|
};
|