@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.
package/dist/weather.js CHANGED
@@ -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/weather.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -58,81 +58,91 @@ exports.WeatherCurrentData = {
58
58
  },
59
59
  decode(input, length) {
60
60
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
61
- const end = length === undefined ? reader.len : reader.pos + length;
62
- const message = createBaseWeatherCurrentData();
63
- while (reader.pos < end) {
64
- const tag = reader.uint32();
65
- switch (tag >>> 3) {
66
- case 1: {
67
- if (tag !== 13) {
68
- break;
61
+ const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
62
+ if (previousRecursionDepth >= 100) {
63
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
64
+ }
65
+ reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
66
+ try {
67
+ const end = length === undefined ? reader.len : reader.pos + length;
68
+ const message = createBaseWeatherCurrentData();
69
+ while (reader.pos < end) {
70
+ const tag = reader.uint32();
71
+ switch (tag >>> 3) {
72
+ case 1: {
73
+ if (tag !== 13) {
74
+ break;
75
+ }
76
+ message.temperature = reader.float();
77
+ continue;
69
78
  }
70
- message.temperature = reader.float();
71
- continue;
72
- }
73
- case 2: {
74
- if (tag !== 21) {
75
- break;
79
+ case 2: {
80
+ if (tag !== 21) {
81
+ break;
82
+ }
83
+ message.humidity = reader.float();
84
+ continue;
76
85
  }
77
- message.humidity = reader.float();
78
- continue;
79
- }
80
- case 3: {
81
- if (tag !== 26) {
82
- break;
86
+ case 3: {
87
+ if (tag !== 26) {
88
+ break;
89
+ }
90
+ message.conditionSummary = reader.string();
91
+ continue;
83
92
  }
84
- message.conditionSummary = reader.string();
85
- continue;
86
- }
87
- case 4: {
88
- if (tag !== 34) {
89
- break;
93
+ case 4: {
94
+ if (tag !== 34) {
95
+ break;
96
+ }
97
+ message.conditionDetail = reader.string();
98
+ continue;
90
99
  }
91
- message.conditionDetail = reader.string();
92
- continue;
93
- }
94
- case 5: {
95
- if (tag !== 45) {
96
- break;
100
+ case 5: {
101
+ if (tag !== 45) {
102
+ break;
103
+ }
104
+ message.precipitationMm = reader.float();
105
+ continue;
97
106
  }
98
- message.precipitationMm = reader.float();
99
- continue;
100
- }
101
- case 6: {
102
- if (tag !== 53) {
103
- break;
107
+ case 6: {
108
+ if (tag !== 53) {
109
+ break;
110
+ }
111
+ message.windSpeedMs = reader.float();
112
+ continue;
104
113
  }
105
- message.windSpeedMs = reader.float();
106
- continue;
107
- }
108
- case 7: {
109
- if (tag !== 56) {
110
- break;
114
+ case 7: {
115
+ if (tag !== 56) {
116
+ break;
117
+ }
118
+ message.windDirectionDeg = reader.int32();
119
+ continue;
111
120
  }
112
- message.windDirectionDeg = reader.int32();
113
- continue;
114
- }
115
- case 8: {
116
- if (tag !== 66) {
117
- break;
121
+ case 8: {
122
+ if (tag !== 66) {
123
+ break;
124
+ }
125
+ message.windDirectionText = reader.string();
126
+ continue;
118
127
  }
119
- message.windDirectionText = reader.string();
120
- continue;
121
- }
122
- case 9: {
123
- if (tag !== 72) {
124
- break;
128
+ case 9: {
129
+ if (tag !== 72) {
130
+ break;
131
+ }
132
+ message.observedAt = reader.int64();
133
+ continue;
125
134
  }
126
- message.observedAt = reader.int64();
127
- continue;
128
135
  }
136
+ if ((tag & 7) === 4 || tag === 0) {
137
+ break;
138
+ }
139
+ reader.skip(tag & 7);
129
140
  }
130
- if ((tag & 7) === 4 || tag === 0) {
131
- break;
132
- }
133
- reader.skip(tag & 7);
141
+ return message;
142
+ }
143
+ finally {
144
+ reader.__tsProtoDecodeDepth = previousRecursionDepth;
134
145
  }
135
- return message;
136
146
  },
137
147
  create(base) {
138
148
  return exports.WeatherCurrentData.fromPartial(base ?? {});
@@ -195,74 +205,84 @@ exports.WeatherForecastDay = {
195
205
  },
196
206
  decode(input, length) {
197
207
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
198
- const end = length === undefined ? reader.len : reader.pos + length;
199
- const message = createBaseWeatherForecastDay();
200
- while (reader.pos < end) {
201
- const tag = reader.uint32();
202
- switch (tag >>> 3) {
203
- case 1: {
204
- if (tag !== 8) {
205
- break;
208
+ const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
209
+ if (previousRecursionDepth >= 100) {
210
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
211
+ }
212
+ reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
213
+ try {
214
+ const end = length === undefined ? reader.len : reader.pos + length;
215
+ const message = createBaseWeatherForecastDay();
216
+ while (reader.pos < end) {
217
+ const tag = reader.uint32();
218
+ switch (tag >>> 3) {
219
+ case 1: {
220
+ if (tag !== 8) {
221
+ break;
222
+ }
223
+ message.dayOffset = reader.int32();
224
+ continue;
206
225
  }
207
- message.dayOffset = reader.int32();
208
- continue;
209
- }
210
- case 2: {
211
- if (tag !== 21) {
212
- break;
226
+ case 2: {
227
+ if (tag !== 21) {
228
+ break;
229
+ }
230
+ message.temperatureMin = reader.float();
231
+ continue;
213
232
  }
214
- message.temperatureMin = reader.float();
215
- continue;
216
- }
217
- case 3: {
218
- if (tag !== 29) {
219
- break;
233
+ case 3: {
234
+ if (tag !== 29) {
235
+ break;
236
+ }
237
+ message.temperatureMax = reader.float();
238
+ continue;
220
239
  }
221
- message.temperatureMax = reader.float();
222
- continue;
223
- }
224
- case 4: {
225
- if (tag !== 34) {
226
- break;
240
+ case 4: {
241
+ if (tag !== 34) {
242
+ break;
243
+ }
244
+ message.conditionSummary = reader.string();
245
+ continue;
227
246
  }
228
- message.conditionSummary = reader.string();
229
- continue;
230
- }
231
- case 5: {
232
- if (tag !== 42) {
233
- break;
247
+ case 5: {
248
+ if (tag !== 42) {
249
+ break;
250
+ }
251
+ message.conditionDetail = reader.string();
252
+ continue;
234
253
  }
235
- message.conditionDetail = reader.string();
236
- continue;
237
- }
238
- case 6: {
239
- if (tag !== 53) {
240
- break;
254
+ case 6: {
255
+ if (tag !== 53) {
256
+ break;
257
+ }
258
+ message.precipitationMm = reader.float();
259
+ continue;
241
260
  }
242
- message.precipitationMm = reader.float();
243
- continue;
244
- }
245
- case 7: {
246
- if (tag !== 61) {
247
- break;
261
+ case 7: {
262
+ if (tag !== 61) {
263
+ break;
264
+ }
265
+ message.windSpeedMs = reader.float();
266
+ continue;
248
267
  }
249
- message.windSpeedMs = reader.float();
250
- continue;
251
- }
252
- case 8: {
253
- if (tag !== 66) {
254
- break;
268
+ case 8: {
269
+ if (tag !== 66) {
270
+ break;
271
+ }
272
+ message.windDirectionText = reader.string();
273
+ continue;
255
274
  }
256
- message.windDirectionText = reader.string();
257
- continue;
258
275
  }
276
+ if ((tag & 7) === 4 || tag === 0) {
277
+ break;
278
+ }
279
+ reader.skip(tag & 7);
259
280
  }
260
- if ((tag & 7) === 4 || tag === 0) {
261
- break;
262
- }
263
- reader.skip(tag & 7);
281
+ return message;
282
+ }
283
+ finally {
284
+ reader.__tsProtoDecodeDepth = previousRecursionDepth;
264
285
  }
265
- return message;
266
286
  },
267
287
  create(base) {
268
288
  return exports.WeatherForecastDay.fromPartial(base ?? {});
@@ -295,32 +315,42 @@ exports.AgentWeatherUpdate = {
295
315
  },
296
316
  decode(input, length) {
297
317
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
298
- const end = length === undefined ? reader.len : reader.pos + length;
299
- const message = createBaseAgentWeatherUpdate();
300
- while (reader.pos < end) {
301
- const tag = reader.uint32();
302
- switch (tag >>> 3) {
303
- case 1: {
304
- if (tag !== 10) {
305
- break;
318
+ const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
319
+ if (previousRecursionDepth >= 100) {
320
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
321
+ }
322
+ reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
323
+ try {
324
+ const end = length === undefined ? reader.len : reader.pos + length;
325
+ const message = createBaseAgentWeatherUpdate();
326
+ while (reader.pos < end) {
327
+ const tag = reader.uint32();
328
+ switch (tag >>> 3) {
329
+ case 1: {
330
+ if (tag !== 10) {
331
+ break;
332
+ }
333
+ message.current = exports.WeatherCurrentData.decode(reader, reader.uint32());
334
+ continue;
306
335
  }
307
- message.current = exports.WeatherCurrentData.decode(reader, reader.uint32());
308
- continue;
309
- }
310
- case 2: {
311
- if (tag !== 18) {
312
- break;
336
+ case 2: {
337
+ if (tag !== 18) {
338
+ break;
339
+ }
340
+ message.forecast.push(exports.WeatherForecastDay.decode(reader, reader.uint32()));
341
+ continue;
313
342
  }
314
- message.forecast.push(exports.WeatherForecastDay.decode(reader, reader.uint32()));
315
- continue;
316
343
  }
344
+ if ((tag & 7) === 4 || tag === 0) {
345
+ break;
346
+ }
347
+ reader.skip(tag & 7);
317
348
  }
318
- if ((tag & 7) === 4 || tag === 0) {
319
- break;
320
- }
321
- reader.skip(tag & 7);
349
+ return message;
350
+ }
351
+ finally {
352
+ reader.__tsProtoDecodeDepth = previousRecursionDepth;
322
353
  }
323
- return message;
324
354
  },
325
355
  create(base) {
326
356
  return exports.AgentWeatherUpdate.fromPartial(base ?? {});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m1kad0/hannah-proto",
3
- "version": "3.7.1",
3
+ "version": "3.7.2",
4
4
  "description": "Generated TypeScript gRPC-js client stubs for the Hannah voice assistant proto schema",
5
5
  "license": "UNLICENSED",
6
6
  "main": "dist/index.js",
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "devDependencies": {
25
25
  "@grpc/grpc-js": "1.14.4",
26
- "ts-proto": "2.12.0",
26
+ "ts-proto": "2.12.1",
27
27
  "typescript": "7.0.2"
28
28
  },
29
29
  "allowScripts": {