@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.
@@ -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/automation.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -21,25 +21,35 @@ exports.AutomationMessage = {
21
21
  },
22
22
  decode(input, length) {
23
23
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
24
- const end = length === undefined ? reader.len : reader.pos + length;
25
- const message = createBaseAutomationMessage();
26
- while (reader.pos < end) {
27
- const tag = reader.uint32();
28
- switch (tag >>> 3) {
29
- case 1: {
30
- if (tag !== 10) {
31
- break;
24
+ const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
25
+ if (previousRecursionDepth >= 100) {
26
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
27
+ }
28
+ reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
29
+ try {
30
+ const end = length === undefined ? reader.len : reader.pos + length;
31
+ const message = createBaseAutomationMessage();
32
+ while (reader.pos < end) {
33
+ const tag = reader.uint32();
34
+ switch (tag >>> 3) {
35
+ case 1: {
36
+ if (tag !== 10) {
37
+ break;
38
+ }
39
+ message.register = exports.AutomationRegister.decode(reader, reader.uint32());
40
+ continue;
32
41
  }
33
- message.register = exports.AutomationRegister.decode(reader, reader.uint32());
34
- continue;
35
42
  }
43
+ if ((tag & 7) === 4 || tag === 0) {
44
+ break;
45
+ }
46
+ reader.skip(tag & 7);
36
47
  }
37
- if ((tag & 7) === 4 || tag === 0) {
38
- break;
39
- }
40
- reader.skip(tag & 7);
48
+ return message;
49
+ }
50
+ finally {
51
+ reader.__tsProtoDecodeDepth = previousRecursionDepth;
41
52
  }
42
- return message;
43
53
  },
44
54
  create(base) {
45
55
  return exports.AutomationMessage.fromPartial(base ?? {});
@@ -64,25 +74,35 @@ exports.AutomationRegister = {
64
74
  },
65
75
  decode(input, length) {
66
76
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
67
- const end = length === undefined ? reader.len : reader.pos + length;
68
- const message = createBaseAutomationRegister();
69
- while (reader.pos < end) {
70
- const tag = reader.uint32();
71
- switch (tag >>> 3) {
72
- case 1: {
73
- if (tag !== 10) {
74
- break;
77
+ const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
78
+ if (previousRecursionDepth >= 100) {
79
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
80
+ }
81
+ reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
82
+ try {
83
+ const end = length === undefined ? reader.len : reader.pos + length;
84
+ const message = createBaseAutomationRegister();
85
+ while (reader.pos < end) {
86
+ const tag = reader.uint32();
87
+ switch (tag >>> 3) {
88
+ case 1: {
89
+ if (tag !== 10) {
90
+ break;
91
+ }
92
+ message.automation = reader.string();
93
+ continue;
75
94
  }
76
- message.automation = reader.string();
77
- continue;
78
95
  }
96
+ if ((tag & 7) === 4 || tag === 0) {
97
+ break;
98
+ }
99
+ reader.skip(tag & 7);
79
100
  }
80
- if ((tag & 7) === 4 || tag === 0) {
81
- break;
82
- }
83
- reader.skip(tag & 7);
101
+ return message;
102
+ }
103
+ finally {
104
+ reader.__tsProtoDecodeDepth = previousRecursionDepth;
84
105
  }
85
- return message;
86
106
  },
87
107
  create(base) {
88
108
  return exports.AutomationRegister.fromPartial(base ?? {});
@@ -108,32 +128,42 @@ exports.AutomationCommand = {
108
128
  },
109
129
  decode(input, length) {
110
130
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
111
- const end = length === undefined ? reader.len : reader.pos + length;
112
- const message = createBaseAutomationCommand();
113
- while (reader.pos < end) {
114
- const tag = reader.uint32();
115
- switch (tag >>> 3) {
116
- case 1: {
117
- if (tag !== 10) {
118
- break;
131
+ const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
132
+ if (previousRecursionDepth >= 100) {
133
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
134
+ }
135
+ reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
136
+ try {
137
+ const end = length === undefined ? reader.len : reader.pos + length;
138
+ const message = createBaseAutomationCommand();
139
+ while (reader.pos < end) {
140
+ const tag = reader.uint32();
141
+ switch (tag >>> 3) {
142
+ case 1: {
143
+ if (tag !== 10) {
144
+ break;
145
+ }
146
+ message.snapshot = exports.AutomationSnapshot.decode(reader, reader.uint32());
147
+ continue;
119
148
  }
120
- message.snapshot = exports.AutomationSnapshot.decode(reader, reader.uint32());
121
- continue;
122
- }
123
- case 2: {
124
- if (tag !== 18) {
125
- break;
149
+ case 2: {
150
+ if (tag !== 18) {
151
+ break;
152
+ }
153
+ message.stateChanged = exports.AutomationStateChanged.decode(reader, reader.uint32());
154
+ continue;
126
155
  }
127
- message.stateChanged = exports.AutomationStateChanged.decode(reader, reader.uint32());
128
- continue;
129
156
  }
157
+ if ((tag & 7) === 4 || tag === 0) {
158
+ break;
159
+ }
160
+ reader.skip(tag & 7);
130
161
  }
131
- if ((tag & 7) === 4 || tag === 0) {
132
- break;
133
- }
134
- reader.skip(tag & 7);
162
+ return message;
163
+ }
164
+ finally {
165
+ reader.__tsProtoDecodeDepth = previousRecursionDepth;
135
166
  }
136
- return message;
137
167
  },
138
168
  create(base) {
139
169
  return exports.AutomationCommand.fromPartial(base ?? {});
@@ -163,32 +193,42 @@ exports.AutomationSnapshot = {
163
193
  },
164
194
  decode(input, length) {
165
195
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
166
- const end = length === undefined ? reader.len : reader.pos + length;
167
- const message = createBaseAutomationSnapshot();
168
- while (reader.pos < end) {
169
- const tag = reader.uint32();
170
- switch (tag >>> 3) {
171
- case 1: {
172
- if (tag === 8) {
173
- message.userIds.push(reader.int32());
174
- continue;
175
- }
176
- if (tag === 10) {
177
- const end2 = reader.uint32() + reader.pos;
178
- while (reader.pos < end2) {
196
+ const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
197
+ if (previousRecursionDepth >= 100) {
198
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
199
+ }
200
+ reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
201
+ try {
202
+ const end = length === undefined ? reader.len : reader.pos + length;
203
+ const message = createBaseAutomationSnapshot();
204
+ while (reader.pos < end) {
205
+ const tag = reader.uint32();
206
+ switch (tag >>> 3) {
207
+ case 1: {
208
+ if (tag === 8) {
179
209
  message.userIds.push(reader.int32());
210
+ continue;
180
211
  }
181
- continue;
212
+ if (tag === 10) {
213
+ const end2 = reader.uint32() + reader.pos;
214
+ while (reader.pos < end2) {
215
+ message.userIds.push(reader.int32());
216
+ }
217
+ continue;
218
+ }
219
+ break;
182
220
  }
221
+ }
222
+ if ((tag & 7) === 4 || tag === 0) {
183
223
  break;
184
224
  }
225
+ reader.skip(tag & 7);
185
226
  }
186
- if ((tag & 7) === 4 || tag === 0) {
187
- break;
188
- }
189
- reader.skip(tag & 7);
227
+ return message;
228
+ }
229
+ finally {
230
+ reader.__tsProtoDecodeDepth = previousRecursionDepth;
190
231
  }
191
- return message;
192
232
  },
193
233
  create(base) {
194
234
  return exports.AutomationSnapshot.fromPartial(base ?? {});
@@ -214,32 +254,42 @@ exports.AutomationStateChanged = {
214
254
  },
215
255
  decode(input, length) {
216
256
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
217
- const end = length === undefined ? reader.len : reader.pos + length;
218
- const message = createBaseAutomationStateChanged();
219
- while (reader.pos < end) {
220
- const tag = reader.uint32();
221
- switch (tag >>> 3) {
222
- case 1: {
223
- if (tag !== 8) {
224
- break;
257
+ const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
258
+ if (previousRecursionDepth >= 100) {
259
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
260
+ }
261
+ reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
262
+ try {
263
+ const end = length === undefined ? reader.len : reader.pos + length;
264
+ const message = createBaseAutomationStateChanged();
265
+ while (reader.pos < end) {
266
+ const tag = reader.uint32();
267
+ switch (tag >>> 3) {
268
+ case 1: {
269
+ if (tag !== 8) {
270
+ break;
271
+ }
272
+ message.userId = reader.int32();
273
+ continue;
225
274
  }
226
- message.userId = reader.int32();
227
- continue;
228
- }
229
- case 2: {
230
- if (tag !== 16) {
231
- break;
275
+ case 2: {
276
+ if (tag !== 16) {
277
+ break;
278
+ }
279
+ message.enabled = reader.bool();
280
+ continue;
232
281
  }
233
- message.enabled = reader.bool();
234
- continue;
235
282
  }
283
+ if ((tag & 7) === 4 || tag === 0) {
284
+ break;
285
+ }
286
+ reader.skip(tag & 7);
236
287
  }
237
- if ((tag & 7) === 4 || tag === 0) {
238
- break;
239
- }
240
- reader.skip(tag & 7);
288
+ return message;
289
+ }
290
+ finally {
291
+ reader.__tsProtoDecodeDepth = previousRecursionDepth;
241
292
  }
242
- return message;
243
293
  },
244
294
  create(base) {
245
295
  return exports.AutomationStateChanged.fromPartial(base ?? {});