@m1kad0/hannah-proto 3.7.1 → 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.
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.0
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 end = length === undefined ? reader.len : reader.pos + length;
56
- const message = createBaseDeviceInfo();
57
- while (reader.pos < end) {
58
- const tag = reader.uint32();
59
- switch (tag >>> 3) {
60
- case 1: {
61
- if (tag !== 10) {
62
- break;
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
- message.id = reader.string();
65
- continue;
66
- }
67
- case 2: {
68
- if (tag !== 18) {
69
- break;
73
+ case 2: {
74
+ if (tag !== 18) {
75
+ break;
76
+ }
77
+ message.name = reader.string();
78
+ continue;
70
79
  }
71
- message.name = reader.string();
72
- continue;
73
- }
74
- case 3: {
75
- if (tag !== 26) {
76
- break;
80
+ case 3: {
81
+ if (tag !== 26) {
82
+ break;
83
+ }
84
+ message.category = reader.string();
85
+ continue;
77
86
  }
78
- message.category = reader.string();
79
- continue;
80
- }
81
- case 4: {
82
- if (tag !== 34) {
83
- break;
87
+ case 4: {
88
+ if (tag !== 34) {
89
+ break;
90
+ }
91
+ message.states.push(reader.string());
92
+ continue;
84
93
  }
85
- message.states.push(reader.string());
86
- continue;
87
- }
88
- case 5: {
89
- if (tag !== 42) {
90
- break;
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
- const entry5 = exports.DeviceInfo_CurrentEntry.decode(reader, reader.uint32());
93
- if (entry5.value !== undefined) {
94
- message.current[entry5.key] = entry5.value;
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
- continue;
97
- }
98
- case 6: {
99
- if (tag !== 50) {
100
- break;
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
- const entry6 = exports.DeviceInfo_StateTypesEntry.decode(reader, reader.uint32());
103
- if (entry6.value !== undefined) {
104
- message.stateTypes[entry6.key] = entry6.value;
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
- case 7: {
109
- if (tag !== 58) {
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
- case 8: {
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
- reader.skip(tag & 7);
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 end = length === undefined ? reader.len : reader.pos + length;
189
- const message = createBaseDeviceInfo_CurrentEntry();
190
- while (reader.pos < end) {
191
- const tag = reader.uint32();
192
- switch (tag >>> 3) {
193
- case 1: {
194
- if (tag !== 10) {
195
- break;
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
- message.key = reader.string();
198
- continue;
199
- }
200
- case 2: {
201
- if (tag !== 18) {
202
- break;
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
- if ((tag & 7) === 4 || tag === 0) {
209
- break;
210
- }
211
- reader.skip(tag & 7);
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 end = length === undefined ? reader.len : reader.pos + length;
241
- const message = createBaseDeviceInfo_StateTypesEntry();
242
- while (reader.pos < end) {
243
- const tag = reader.uint32();
244
- switch (tag >>> 3) {
245
- case 1: {
246
- if (tag !== 10) {
247
- break;
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
- message.key = reader.string();
250
- continue;
251
- }
252
- case 2: {
253
- if (tag !== 16) {
254
- break;
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
- if ((tag & 7) === 4 || tag === 0) {
261
- break;
262
- }
263
- reader.skip(tag & 7);
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 end = length === undefined ? reader.len : reader.pos + length;
293
- const message = createBaseDeviceInfo_StateEnumValuesEntry();
294
- while (reader.pos < end) {
295
- const tag = reader.uint32();
296
- switch (tag >>> 3) {
297
- case 1: {
298
- if (tag !== 10) {
299
- break;
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
- message.key = reader.string();
302
- continue;
303
- }
304
- case 2: {
305
- if (tag !== 18) {
306
- break;
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
- if ((tag & 7) === 4 || tag === 0) {
313
- break;
314
- }
315
- reader.skip(tag & 7);
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 end = length === undefined ? reader.len : reader.pos + length;
347
- const message = createBaseDeviceInfo_StateWritableEntry();
348
- while (reader.pos < end) {
349
- const tag = reader.uint32();
350
- switch (tag >>> 3) {
351
- case 1: {
352
- if (tag !== 10) {
353
- break;
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
- message.key = reader.string();
356
- continue;
357
- }
358
- case 2: {
359
- if (tag !== 16) {
360
- break;
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
- if ((tag & 7) === 4 || tag === 0) {
367
- break;
368
- }
369
- reader.skip(tag & 7);
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 end = length === undefined ? reader.len : reader.pos + length;
402
- const message = createBaseRoomInfo();
403
- while (reader.pos < end) {
404
- const tag = reader.uint32();
405
- switch (tag >>> 3) {
406
- case 1: {
407
- if (tag !== 10) {
408
- break;
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
- message.key = reader.string();
411
- continue;
412
- }
413
- case 2: {
414
- if (tag !== 18) {
415
- break;
469
+ case 2: {
470
+ if (tag !== 18) {
471
+ break;
472
+ }
473
+ message.name = reader.string();
474
+ continue;
416
475
  }
417
- message.name = reader.string();
418
- continue;
419
- }
420
- case 3: {
421
- if (tag !== 26) {
422
- break;
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
- if ((tag & 7) === 4 || tag === 0) {
429
- break;
430
- }
431
- reader.skip(tag & 7);
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 end = length === undefined ? reader.len : reader.pos + length;
459
- const message = createBaseGetDevicesResponse();
460
- while (reader.pos < end) {
461
- const tag = reader.uint32();
462
- switch (tag >>> 3) {
463
- case 1: {
464
- if (tag !== 10) {
465
- break;
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
- if ((tag & 7) === 4 || tag === 0) {
472
- break;
473
- }
474
- reader.skip(tag & 7);
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 end = length === undefined ? reader.len : reader.pos + length;
506
- const message = createBaseControlDeviceRequest();
507
- while (reader.pos < end) {
508
- const tag = reader.uint32();
509
- switch (tag >>> 3) {
510
- case 1: {
511
- if (tag !== 10) {
512
- break;
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
- message.deviceId = reader.string();
515
- continue;
516
- }
517
- case 2: {
518
- if (tag !== 18) {
519
- break;
593
+ case 2: {
594
+ if (tag !== 18) {
595
+ break;
596
+ }
597
+ message.state = reader.string();
598
+ continue;
520
599
  }
521
- message.state = reader.string();
522
- continue;
523
- }
524
- case 3: {
525
- if (tag !== 26) {
526
- break;
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
- if ((tag & 7) === 4 || tag === 0) {
533
- break;
534
- }
535
- reader.skip(tag & 7);
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 ?? {});