@m1kad0/hannah-proto 3.7.0 → 3.7.2
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/activity_log.js +216 -166
- package/dist/agent.js +1330 -1050
- package/dist/automation.js +142 -92
- package/dist/car_state.js +245 -195
- package/dist/compat_versions.js +1 -1
- package/dist/control.js +1675 -1255
- package/dist/descriptor.binpb +0 -0
- package/dist/device_control_menu.js +302 -222
- package/dist/event_stream.js +236 -166
- package/dist/google/protobuf/descriptor.js +1721 -1381
- package/dist/hannah.js +1 -1
- package/dist/messages.d.ts +8 -0
- package/dist/messages.js +220 -126
- package/dist/options.js +1 -1
- package/dist/satellite.js +314 -244
- package/dist/satellite_provisioning.js +38 -28
- package/dist/satellite_proxy.d.ts +5 -2
- package/dist/satellite_proxy.js +278 -208
- package/dist/shared.js +111 -71
- package/dist/speaker_enrollment.js +38 -28
- package/dist/timer_admin.js +131 -91
- package/dist/timer_service.js +467 -327
- package/dist/user_registry.js +724 -534
- package/dist/wakeword_capture.js +295 -195
- package/dist/weather.js +172 -142
- package/package.json +2 -2
package/dist/descriptor.binpb
CHANGED
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.12.
|
|
4
|
+
// protoc-gen-ts_proto v2.12.1
|
|
5
5
|
// protoc unknown
|
|
6
6
|
// source: hannah/device_control_menu.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -52,86 +52,96 @@ exports.DeviceInfo = {
|
|
|
52
52
|
},
|
|
53
53
|
decode(input, length) {
|
|
54
54
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
55
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
56
|
+
if (previousRecursionDepth >= 100) {
|
|
57
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
58
|
+
}
|
|
59
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
60
|
+
try {
|
|
61
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
62
|
+
const message = createBaseDeviceInfo();
|
|
63
|
+
while (reader.pos < end) {
|
|
64
|
+
const tag = reader.uint32();
|
|
65
|
+
switch (tag >>> 3) {
|
|
66
|
+
case 1: {
|
|
67
|
+
if (tag !== 10) {
|
|
68
|
+
break;
|
|
69
|
+
}
|
|
70
|
+
message.id = reader.string();
|
|
71
|
+
continue;
|
|
63
72
|
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
73
|
+
case 2: {
|
|
74
|
+
if (tag !== 18) {
|
|
75
|
+
break;
|
|
76
|
+
}
|
|
77
|
+
message.name = reader.string();
|
|
78
|
+
continue;
|
|
70
79
|
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
80
|
+
case 3: {
|
|
81
|
+
if (tag !== 26) {
|
|
82
|
+
break;
|
|
83
|
+
}
|
|
84
|
+
message.category = reader.string();
|
|
85
|
+
continue;
|
|
77
86
|
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
87
|
+
case 4: {
|
|
88
|
+
if (tag !== 34) {
|
|
89
|
+
break;
|
|
90
|
+
}
|
|
91
|
+
message.states.push(reader.string());
|
|
92
|
+
continue;
|
|
84
93
|
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
94
|
+
case 5: {
|
|
95
|
+
if (tag !== 42) {
|
|
96
|
+
break;
|
|
97
|
+
}
|
|
98
|
+
const entry5 = exports.DeviceInfo_CurrentEntry.decode(reader, reader.uint32());
|
|
99
|
+
if (entry5.value !== undefined) {
|
|
100
|
+
message.current[entry5.key] = entry5.value;
|
|
101
|
+
}
|
|
102
|
+
continue;
|
|
91
103
|
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
104
|
+
case 6: {
|
|
105
|
+
if (tag !== 50) {
|
|
106
|
+
break;
|
|
107
|
+
}
|
|
108
|
+
const entry6 = exports.DeviceInfo_StateTypesEntry.decode(reader, reader.uint32());
|
|
109
|
+
if (entry6.value !== undefined) {
|
|
110
|
+
message.stateTypes[entry6.key] = entry6.value;
|
|
111
|
+
}
|
|
112
|
+
continue;
|
|
95
113
|
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
114
|
+
case 7: {
|
|
115
|
+
if (tag !== 58) {
|
|
116
|
+
break;
|
|
117
|
+
}
|
|
118
|
+
const entry7 = exports.DeviceInfo_StateEnumValuesEntry.decode(reader, reader.uint32());
|
|
119
|
+
if (entry7.value !== undefined) {
|
|
120
|
+
message.stateEnumValues[entry7.key] = entry7.value;
|
|
121
|
+
}
|
|
122
|
+
continue;
|
|
101
123
|
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
124
|
+
case 8: {
|
|
125
|
+
if (tag !== 66) {
|
|
126
|
+
break;
|
|
127
|
+
}
|
|
128
|
+
const entry8 = exports.DeviceInfo_StateWritableEntry.decode(reader, reader.uint32());
|
|
129
|
+
if (entry8.value !== undefined) {
|
|
130
|
+
message.stateWritable[entry8.key] = entry8.value;
|
|
131
|
+
}
|
|
132
|
+
continue;
|
|
105
133
|
}
|
|
106
|
-
continue;
|
|
107
134
|
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
break;
|
|
111
|
-
}
|
|
112
|
-
const entry7 = exports.DeviceInfo_StateEnumValuesEntry.decode(reader, reader.uint32());
|
|
113
|
-
if (entry7.value !== undefined) {
|
|
114
|
-
message.stateEnumValues[entry7.key] = entry7.value;
|
|
115
|
-
}
|
|
116
|
-
continue;
|
|
135
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
136
|
+
break;
|
|
117
137
|
}
|
|
118
|
-
|
|
119
|
-
if (tag !== 66) {
|
|
120
|
-
break;
|
|
121
|
-
}
|
|
122
|
-
const entry8 = exports.DeviceInfo_StateWritableEntry.decode(reader, reader.uint32());
|
|
123
|
-
if (entry8.value !== undefined) {
|
|
124
|
-
message.stateWritable[entry8.key] = entry8.value;
|
|
125
|
-
}
|
|
126
|
-
continue;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
130
|
-
break;
|
|
138
|
+
reader.skip(tag & 7);
|
|
131
139
|
}
|
|
132
|
-
|
|
140
|
+
return message;
|
|
141
|
+
}
|
|
142
|
+
finally {
|
|
143
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
133
144
|
}
|
|
134
|
-
return message;
|
|
135
145
|
},
|
|
136
146
|
create(base) {
|
|
137
147
|
return exports.DeviceInfo.fromPartial(base ?? {});
|
|
@@ -185,32 +195,42 @@ exports.DeviceInfo_CurrentEntry = {
|
|
|
185
195
|
},
|
|
186
196
|
decode(input, length) {
|
|
187
197
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
188
|
-
const
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
198
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
199
|
+
if (previousRecursionDepth >= 100) {
|
|
200
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
201
|
+
}
|
|
202
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
203
|
+
try {
|
|
204
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
205
|
+
const message = createBaseDeviceInfo_CurrentEntry();
|
|
206
|
+
while (reader.pos < end) {
|
|
207
|
+
const tag = reader.uint32();
|
|
208
|
+
switch (tag >>> 3) {
|
|
209
|
+
case 1: {
|
|
210
|
+
if (tag !== 10) {
|
|
211
|
+
break;
|
|
212
|
+
}
|
|
213
|
+
message.key = reader.string();
|
|
214
|
+
continue;
|
|
196
215
|
}
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
216
|
+
case 2: {
|
|
217
|
+
if (tag !== 18) {
|
|
218
|
+
break;
|
|
219
|
+
}
|
|
220
|
+
message.value = reader.string();
|
|
221
|
+
continue;
|
|
203
222
|
}
|
|
204
|
-
message.value = reader.string();
|
|
205
|
-
continue;
|
|
206
223
|
}
|
|
224
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
225
|
+
break;
|
|
226
|
+
}
|
|
227
|
+
reader.skip(tag & 7);
|
|
207
228
|
}
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
reader.
|
|
229
|
+
return message;
|
|
230
|
+
}
|
|
231
|
+
finally {
|
|
232
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
212
233
|
}
|
|
213
|
-
return message;
|
|
214
234
|
},
|
|
215
235
|
create(base) {
|
|
216
236
|
return exports.DeviceInfo_CurrentEntry.fromPartial(base ?? {});
|
|
@@ -237,32 +257,42 @@ exports.DeviceInfo_StateTypesEntry = {
|
|
|
237
257
|
},
|
|
238
258
|
decode(input, length) {
|
|
239
259
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
240
|
-
const
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
260
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
261
|
+
if (previousRecursionDepth >= 100) {
|
|
262
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
263
|
+
}
|
|
264
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
265
|
+
try {
|
|
266
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
267
|
+
const message = createBaseDeviceInfo_StateTypesEntry();
|
|
268
|
+
while (reader.pos < end) {
|
|
269
|
+
const tag = reader.uint32();
|
|
270
|
+
switch (tag >>> 3) {
|
|
271
|
+
case 1: {
|
|
272
|
+
if (tag !== 10) {
|
|
273
|
+
break;
|
|
274
|
+
}
|
|
275
|
+
message.key = reader.string();
|
|
276
|
+
continue;
|
|
248
277
|
}
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
278
|
+
case 2: {
|
|
279
|
+
if (tag !== 16) {
|
|
280
|
+
break;
|
|
281
|
+
}
|
|
282
|
+
message.value = reader.int32();
|
|
283
|
+
continue;
|
|
255
284
|
}
|
|
256
|
-
message.value = reader.int32();
|
|
257
|
-
continue;
|
|
258
285
|
}
|
|
286
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
287
|
+
break;
|
|
288
|
+
}
|
|
289
|
+
reader.skip(tag & 7);
|
|
259
290
|
}
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
reader.
|
|
291
|
+
return message;
|
|
292
|
+
}
|
|
293
|
+
finally {
|
|
294
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
264
295
|
}
|
|
265
|
-
return message;
|
|
266
296
|
},
|
|
267
297
|
create(base) {
|
|
268
298
|
return exports.DeviceInfo_StateTypesEntry.fromPartial(base ?? {});
|
|
@@ -289,32 +319,42 @@ exports.DeviceInfo_StateEnumValuesEntry = {
|
|
|
289
319
|
},
|
|
290
320
|
decode(input, length) {
|
|
291
321
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
292
|
-
const
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
322
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
323
|
+
if (previousRecursionDepth >= 100) {
|
|
324
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
325
|
+
}
|
|
326
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
327
|
+
try {
|
|
328
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
329
|
+
const message = createBaseDeviceInfo_StateEnumValuesEntry();
|
|
330
|
+
while (reader.pos < end) {
|
|
331
|
+
const tag = reader.uint32();
|
|
332
|
+
switch (tag >>> 3) {
|
|
333
|
+
case 1: {
|
|
334
|
+
if (tag !== 10) {
|
|
335
|
+
break;
|
|
336
|
+
}
|
|
337
|
+
message.key = reader.string();
|
|
338
|
+
continue;
|
|
300
339
|
}
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
340
|
+
case 2: {
|
|
341
|
+
if (tag !== 18) {
|
|
342
|
+
break;
|
|
343
|
+
}
|
|
344
|
+
message.value = shared_1.EnumValues.decode(reader, reader.uint32());
|
|
345
|
+
continue;
|
|
307
346
|
}
|
|
308
|
-
message.value = shared_1.EnumValues.decode(reader, reader.uint32());
|
|
309
|
-
continue;
|
|
310
347
|
}
|
|
348
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
349
|
+
break;
|
|
350
|
+
}
|
|
351
|
+
reader.skip(tag & 7);
|
|
311
352
|
}
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
reader.
|
|
353
|
+
return message;
|
|
354
|
+
}
|
|
355
|
+
finally {
|
|
356
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
316
357
|
}
|
|
317
|
-
return message;
|
|
318
358
|
},
|
|
319
359
|
create(base) {
|
|
320
360
|
return exports.DeviceInfo_StateEnumValuesEntry.fromPartial(base ?? {});
|
|
@@ -343,32 +383,42 @@ exports.DeviceInfo_StateWritableEntry = {
|
|
|
343
383
|
},
|
|
344
384
|
decode(input, length) {
|
|
345
385
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
346
|
-
const
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
386
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
387
|
+
if (previousRecursionDepth >= 100) {
|
|
388
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
389
|
+
}
|
|
390
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
391
|
+
try {
|
|
392
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
393
|
+
const message = createBaseDeviceInfo_StateWritableEntry();
|
|
394
|
+
while (reader.pos < end) {
|
|
395
|
+
const tag = reader.uint32();
|
|
396
|
+
switch (tag >>> 3) {
|
|
397
|
+
case 1: {
|
|
398
|
+
if (tag !== 10) {
|
|
399
|
+
break;
|
|
400
|
+
}
|
|
401
|
+
message.key = reader.string();
|
|
402
|
+
continue;
|
|
354
403
|
}
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
404
|
+
case 2: {
|
|
405
|
+
if (tag !== 16) {
|
|
406
|
+
break;
|
|
407
|
+
}
|
|
408
|
+
message.value = reader.bool();
|
|
409
|
+
continue;
|
|
361
410
|
}
|
|
362
|
-
message.value = reader.bool();
|
|
363
|
-
continue;
|
|
364
411
|
}
|
|
412
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
413
|
+
break;
|
|
414
|
+
}
|
|
415
|
+
reader.skip(tag & 7);
|
|
365
416
|
}
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
reader.
|
|
417
|
+
return message;
|
|
418
|
+
}
|
|
419
|
+
finally {
|
|
420
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
370
421
|
}
|
|
371
|
-
return message;
|
|
372
422
|
},
|
|
373
423
|
create(base) {
|
|
374
424
|
return exports.DeviceInfo_StateWritableEntry.fromPartial(base ?? {});
|
|
@@ -398,39 +448,49 @@ exports.RoomInfo = {
|
|
|
398
448
|
},
|
|
399
449
|
decode(input, length) {
|
|
400
450
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
401
|
-
const
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
451
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
452
|
+
if (previousRecursionDepth >= 100) {
|
|
453
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
454
|
+
}
|
|
455
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
456
|
+
try {
|
|
457
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
458
|
+
const message = createBaseRoomInfo();
|
|
459
|
+
while (reader.pos < end) {
|
|
460
|
+
const tag = reader.uint32();
|
|
461
|
+
switch (tag >>> 3) {
|
|
462
|
+
case 1: {
|
|
463
|
+
if (tag !== 10) {
|
|
464
|
+
break;
|
|
465
|
+
}
|
|
466
|
+
message.key = reader.string();
|
|
467
|
+
continue;
|
|
409
468
|
}
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
469
|
+
case 2: {
|
|
470
|
+
if (tag !== 18) {
|
|
471
|
+
break;
|
|
472
|
+
}
|
|
473
|
+
message.name = reader.string();
|
|
474
|
+
continue;
|
|
416
475
|
}
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
476
|
+
case 3: {
|
|
477
|
+
if (tag !== 26) {
|
|
478
|
+
break;
|
|
479
|
+
}
|
|
480
|
+
message.devices.push(exports.DeviceInfo.decode(reader, reader.uint32()));
|
|
481
|
+
continue;
|
|
423
482
|
}
|
|
424
|
-
message.devices.push(exports.DeviceInfo.decode(reader, reader.uint32()));
|
|
425
|
-
continue;
|
|
426
483
|
}
|
|
484
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
485
|
+
break;
|
|
486
|
+
}
|
|
487
|
+
reader.skip(tag & 7);
|
|
427
488
|
}
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
reader.
|
|
489
|
+
return message;
|
|
490
|
+
}
|
|
491
|
+
finally {
|
|
492
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
432
493
|
}
|
|
433
|
-
return message;
|
|
434
494
|
},
|
|
435
495
|
create(base) {
|
|
436
496
|
return exports.RoomInfo.fromPartial(base ?? {});
|
|
@@ -455,25 +515,35 @@ exports.GetDevicesResponse = {
|
|
|
455
515
|
},
|
|
456
516
|
decode(input, length) {
|
|
457
517
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
458
|
-
const
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
518
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
519
|
+
if (previousRecursionDepth >= 100) {
|
|
520
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
521
|
+
}
|
|
522
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
523
|
+
try {
|
|
524
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
525
|
+
const message = createBaseGetDevicesResponse();
|
|
526
|
+
while (reader.pos < end) {
|
|
527
|
+
const tag = reader.uint32();
|
|
528
|
+
switch (tag >>> 3) {
|
|
529
|
+
case 1: {
|
|
530
|
+
if (tag !== 10) {
|
|
531
|
+
break;
|
|
532
|
+
}
|
|
533
|
+
message.rooms.push(exports.RoomInfo.decode(reader, reader.uint32()));
|
|
534
|
+
continue;
|
|
466
535
|
}
|
|
467
|
-
message.rooms.push(exports.RoomInfo.decode(reader, reader.uint32()));
|
|
468
|
-
continue;
|
|
469
536
|
}
|
|
537
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
538
|
+
break;
|
|
539
|
+
}
|
|
540
|
+
reader.skip(tag & 7);
|
|
470
541
|
}
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
reader.
|
|
542
|
+
return message;
|
|
543
|
+
}
|
|
544
|
+
finally {
|
|
545
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
475
546
|
}
|
|
476
|
-
return message;
|
|
477
547
|
},
|
|
478
548
|
create(base) {
|
|
479
549
|
return exports.GetDevicesResponse.fromPartial(base ?? {});
|
|
@@ -502,39 +572,49 @@ exports.ControlDeviceRequest = {
|
|
|
502
572
|
},
|
|
503
573
|
decode(input, length) {
|
|
504
574
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
505
|
-
const
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
575
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
576
|
+
if (previousRecursionDepth >= 100) {
|
|
577
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
578
|
+
}
|
|
579
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
580
|
+
try {
|
|
581
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
582
|
+
const message = createBaseControlDeviceRequest();
|
|
583
|
+
while (reader.pos < end) {
|
|
584
|
+
const tag = reader.uint32();
|
|
585
|
+
switch (tag >>> 3) {
|
|
586
|
+
case 1: {
|
|
587
|
+
if (tag !== 10) {
|
|
588
|
+
break;
|
|
589
|
+
}
|
|
590
|
+
message.deviceId = reader.string();
|
|
591
|
+
continue;
|
|
513
592
|
}
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
593
|
+
case 2: {
|
|
594
|
+
if (tag !== 18) {
|
|
595
|
+
break;
|
|
596
|
+
}
|
|
597
|
+
message.state = reader.string();
|
|
598
|
+
continue;
|
|
520
599
|
}
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
600
|
+
case 3: {
|
|
601
|
+
if (tag !== 26) {
|
|
602
|
+
break;
|
|
603
|
+
}
|
|
604
|
+
message.value = reader.string();
|
|
605
|
+
continue;
|
|
527
606
|
}
|
|
528
|
-
message.value = reader.string();
|
|
529
|
-
continue;
|
|
530
607
|
}
|
|
608
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
609
|
+
break;
|
|
610
|
+
}
|
|
611
|
+
reader.skip(tag & 7);
|
|
531
612
|
}
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
reader.
|
|
613
|
+
return message;
|
|
614
|
+
}
|
|
615
|
+
finally {
|
|
616
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
536
617
|
}
|
|
537
|
-
return message;
|
|
538
618
|
},
|
|
539
619
|
create(base) {
|
|
540
620
|
return exports.ControlDeviceRequest.fromPartial(base ?? {});
|