@m1kad0/hannah-proto 4.4.0 → 4.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/README.md +21 -0
- package/dist/compat_interceptor.js +6 -6
- package/dist/compat_versions.js +176 -85
- package/dist/descriptor.binpb +0 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3 -1
- package/dist/logging.d.ts +189 -0
- package/dist/logging.js +775 -0
- package/dist/v1/activity_log.d.ts +60 -0
- package/dist/v1/activity_log.js +453 -0
- package/dist/v1/agent.d.ts +433 -0
- package/dist/v1/agent.js +2527 -0
- package/dist/v1/automation.d.ts +54 -0
- package/dist/v1/automation.js +303 -0
- package/dist/v1/car_state.d.ts +72 -0
- package/dist/v1/car_state.js +516 -0
- package/dist/v1/channel.d.ts +102 -0
- package/dist/v1/channel.js +587 -0
- package/dist/v1/control.d.ts +383 -0
- package/dist/v1/control.js +3879 -0
- package/dist/v1/device_control_menu.d.ts +88 -0
- package/dist/v1/device_control_menu.js +629 -0
- package/dist/v1/event_stream.d.ts +63 -0
- package/dist/v1/event_stream.js +494 -0
- package/dist/v1/hannah.d.ts +1644 -0
- package/dist/v1/hannah.js +968 -0
- package/dist/v1/index.d.ts +22 -0
- package/dist/v1/index.js +58 -0
- package/dist/v1/infrastructure.d.ts +98 -0
- package/dist/v1/infrastructure.js +652 -0
- package/dist/v1/logging.d.ts +189 -0
- package/dist/v1/logging.js +775 -0
- package/dist/v1/messages.d.ts +56 -0
- package/dist/v1/messages.js +398 -0
- package/dist/v1/satellite.d.ts +90 -0
- package/dist/v1/satellite.js +637 -0
- package/dist/v1/satellite_provisioning.d.ts +33 -0
- package/dist/v1/satellite_provisioning.js +84 -0
- package/dist/v1/satellite_proxy.d.ts +100 -0
- package/dist/v1/satellite_proxy.js +546 -0
- package/dist/v1/shared.d.ts +54 -0
- package/dist/v1/shared.js +249 -0
- package/dist/v1/speaker_enrollment.d.ts +44 -0
- package/dist/v1/speaker_enrollment.js +157 -0
- package/dist/v1/timer_admin.d.ts +42 -0
- package/dist/v1/timer_admin.js +273 -0
- package/dist/v1/timer_service.d.ts +133 -0
- package/dist/v1/timer_service.js +945 -0
- package/dist/v1/user_registry.d.ts +187 -0
- package/dist/v1/user_registry.js +1612 -0
- package/dist/v1/wakeword_capture.d.ts +101 -0
- package/dist/v1/wakeword_capture.js +611 -0
- package/dist/v1/weather.d.ts +81 -0
- package/dist/v1/weather.js +366 -0
- package/package.json +1 -1
|
@@ -0,0 +1,366 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v2.12.1
|
|
5
|
+
// protoc unknown
|
|
6
|
+
// source: hannah/v1/weather.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.AgentWeatherUpdate = exports.WeatherForecastDay = exports.WeatherCurrentData = exports.protobufPackage = void 0;
|
|
9
|
+
/* eslint-disable */
|
|
10
|
+
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
|
+
exports.protobufPackage = "hannah.v1";
|
|
12
|
+
function createBaseWeatherCurrentData() {
|
|
13
|
+
return {
|
|
14
|
+
temperature: 0,
|
|
15
|
+
humidity: undefined,
|
|
16
|
+
conditionSummary: "",
|
|
17
|
+
conditionDetail: "",
|
|
18
|
+
precipitationMm: undefined,
|
|
19
|
+
windSpeedMs: undefined,
|
|
20
|
+
windDirectionDeg: undefined,
|
|
21
|
+
windDirectionText: undefined,
|
|
22
|
+
observedAt: 0n,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
exports.WeatherCurrentData = {
|
|
26
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
27
|
+
if (message.temperature !== 0) {
|
|
28
|
+
writer.uint32(13).float(message.temperature);
|
|
29
|
+
}
|
|
30
|
+
if (message.humidity !== undefined) {
|
|
31
|
+
writer.uint32(21).float(message.humidity);
|
|
32
|
+
}
|
|
33
|
+
if (message.conditionSummary !== "") {
|
|
34
|
+
writer.uint32(26).string(message.conditionSummary);
|
|
35
|
+
}
|
|
36
|
+
if (message.conditionDetail !== "") {
|
|
37
|
+
writer.uint32(34).string(message.conditionDetail);
|
|
38
|
+
}
|
|
39
|
+
if (message.precipitationMm !== undefined) {
|
|
40
|
+
writer.uint32(45).float(message.precipitationMm);
|
|
41
|
+
}
|
|
42
|
+
if (message.windSpeedMs !== undefined) {
|
|
43
|
+
writer.uint32(53).float(message.windSpeedMs);
|
|
44
|
+
}
|
|
45
|
+
if (message.windDirectionDeg !== undefined) {
|
|
46
|
+
writer.uint32(56).int32(message.windDirectionDeg);
|
|
47
|
+
}
|
|
48
|
+
if (message.windDirectionText !== undefined) {
|
|
49
|
+
writer.uint32(66).string(message.windDirectionText);
|
|
50
|
+
}
|
|
51
|
+
if (message.observedAt !== 0n) {
|
|
52
|
+
if (BigInt.asIntN(64, message.observedAt) !== message.observedAt) {
|
|
53
|
+
throw new globalThis.Error("value provided for field message.observedAt of type int64 too large");
|
|
54
|
+
}
|
|
55
|
+
writer.uint32(72).int64(message.observedAt);
|
|
56
|
+
}
|
|
57
|
+
return writer;
|
|
58
|
+
},
|
|
59
|
+
decode(input, length) {
|
|
60
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
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;
|
|
78
|
+
}
|
|
79
|
+
case 2: {
|
|
80
|
+
if (tag !== 21) {
|
|
81
|
+
break;
|
|
82
|
+
}
|
|
83
|
+
message.humidity = reader.float();
|
|
84
|
+
continue;
|
|
85
|
+
}
|
|
86
|
+
case 3: {
|
|
87
|
+
if (tag !== 26) {
|
|
88
|
+
break;
|
|
89
|
+
}
|
|
90
|
+
message.conditionSummary = reader.string();
|
|
91
|
+
continue;
|
|
92
|
+
}
|
|
93
|
+
case 4: {
|
|
94
|
+
if (tag !== 34) {
|
|
95
|
+
break;
|
|
96
|
+
}
|
|
97
|
+
message.conditionDetail = reader.string();
|
|
98
|
+
continue;
|
|
99
|
+
}
|
|
100
|
+
case 5: {
|
|
101
|
+
if (tag !== 45) {
|
|
102
|
+
break;
|
|
103
|
+
}
|
|
104
|
+
message.precipitationMm = reader.float();
|
|
105
|
+
continue;
|
|
106
|
+
}
|
|
107
|
+
case 6: {
|
|
108
|
+
if (tag !== 53) {
|
|
109
|
+
break;
|
|
110
|
+
}
|
|
111
|
+
message.windSpeedMs = reader.float();
|
|
112
|
+
continue;
|
|
113
|
+
}
|
|
114
|
+
case 7: {
|
|
115
|
+
if (tag !== 56) {
|
|
116
|
+
break;
|
|
117
|
+
}
|
|
118
|
+
message.windDirectionDeg = reader.int32();
|
|
119
|
+
continue;
|
|
120
|
+
}
|
|
121
|
+
case 8: {
|
|
122
|
+
if (tag !== 66) {
|
|
123
|
+
break;
|
|
124
|
+
}
|
|
125
|
+
message.windDirectionText = reader.string();
|
|
126
|
+
continue;
|
|
127
|
+
}
|
|
128
|
+
case 9: {
|
|
129
|
+
if (tag !== 72) {
|
|
130
|
+
break;
|
|
131
|
+
}
|
|
132
|
+
message.observedAt = reader.int64();
|
|
133
|
+
continue;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
137
|
+
break;
|
|
138
|
+
}
|
|
139
|
+
reader.skip(tag & 7);
|
|
140
|
+
}
|
|
141
|
+
return message;
|
|
142
|
+
}
|
|
143
|
+
finally {
|
|
144
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
create(base) {
|
|
148
|
+
return exports.WeatherCurrentData.fromPartial(base ?? {});
|
|
149
|
+
},
|
|
150
|
+
fromPartial(object) {
|
|
151
|
+
const message = createBaseWeatherCurrentData();
|
|
152
|
+
message.temperature = object.temperature ?? 0;
|
|
153
|
+
message.humidity = object.humidity ?? undefined;
|
|
154
|
+
message.conditionSummary = object.conditionSummary ?? "";
|
|
155
|
+
message.conditionDetail = object.conditionDetail ?? "";
|
|
156
|
+
message.precipitationMm = object.precipitationMm ?? undefined;
|
|
157
|
+
message.windSpeedMs = object.windSpeedMs ?? undefined;
|
|
158
|
+
message.windDirectionDeg = object.windDirectionDeg ?? undefined;
|
|
159
|
+
message.windDirectionText = object.windDirectionText ?? undefined;
|
|
160
|
+
message.observedAt = (object.observedAt !== undefined && object.observedAt !== null)
|
|
161
|
+
? BigInt(object.observedAt)
|
|
162
|
+
: 0n;
|
|
163
|
+
return message;
|
|
164
|
+
},
|
|
165
|
+
};
|
|
166
|
+
function createBaseWeatherForecastDay() {
|
|
167
|
+
return {
|
|
168
|
+
dayOffset: 0,
|
|
169
|
+
temperatureMin: undefined,
|
|
170
|
+
temperatureMax: undefined,
|
|
171
|
+
conditionSummary: "",
|
|
172
|
+
conditionDetail: "",
|
|
173
|
+
precipitationMm: undefined,
|
|
174
|
+
windSpeedMs: undefined,
|
|
175
|
+
windDirectionText: undefined,
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
exports.WeatherForecastDay = {
|
|
179
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
180
|
+
if (message.dayOffset !== 0) {
|
|
181
|
+
writer.uint32(8).int32(message.dayOffset);
|
|
182
|
+
}
|
|
183
|
+
if (message.temperatureMin !== undefined) {
|
|
184
|
+
writer.uint32(21).float(message.temperatureMin);
|
|
185
|
+
}
|
|
186
|
+
if (message.temperatureMax !== undefined) {
|
|
187
|
+
writer.uint32(29).float(message.temperatureMax);
|
|
188
|
+
}
|
|
189
|
+
if (message.conditionSummary !== "") {
|
|
190
|
+
writer.uint32(34).string(message.conditionSummary);
|
|
191
|
+
}
|
|
192
|
+
if (message.conditionDetail !== "") {
|
|
193
|
+
writer.uint32(42).string(message.conditionDetail);
|
|
194
|
+
}
|
|
195
|
+
if (message.precipitationMm !== undefined) {
|
|
196
|
+
writer.uint32(53).float(message.precipitationMm);
|
|
197
|
+
}
|
|
198
|
+
if (message.windSpeedMs !== undefined) {
|
|
199
|
+
writer.uint32(61).float(message.windSpeedMs);
|
|
200
|
+
}
|
|
201
|
+
if (message.windDirectionText !== undefined) {
|
|
202
|
+
writer.uint32(66).string(message.windDirectionText);
|
|
203
|
+
}
|
|
204
|
+
return writer;
|
|
205
|
+
},
|
|
206
|
+
decode(input, length) {
|
|
207
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
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;
|
|
225
|
+
}
|
|
226
|
+
case 2: {
|
|
227
|
+
if (tag !== 21) {
|
|
228
|
+
break;
|
|
229
|
+
}
|
|
230
|
+
message.temperatureMin = reader.float();
|
|
231
|
+
continue;
|
|
232
|
+
}
|
|
233
|
+
case 3: {
|
|
234
|
+
if (tag !== 29) {
|
|
235
|
+
break;
|
|
236
|
+
}
|
|
237
|
+
message.temperatureMax = reader.float();
|
|
238
|
+
continue;
|
|
239
|
+
}
|
|
240
|
+
case 4: {
|
|
241
|
+
if (tag !== 34) {
|
|
242
|
+
break;
|
|
243
|
+
}
|
|
244
|
+
message.conditionSummary = reader.string();
|
|
245
|
+
continue;
|
|
246
|
+
}
|
|
247
|
+
case 5: {
|
|
248
|
+
if (tag !== 42) {
|
|
249
|
+
break;
|
|
250
|
+
}
|
|
251
|
+
message.conditionDetail = reader.string();
|
|
252
|
+
continue;
|
|
253
|
+
}
|
|
254
|
+
case 6: {
|
|
255
|
+
if (tag !== 53) {
|
|
256
|
+
break;
|
|
257
|
+
}
|
|
258
|
+
message.precipitationMm = reader.float();
|
|
259
|
+
continue;
|
|
260
|
+
}
|
|
261
|
+
case 7: {
|
|
262
|
+
if (tag !== 61) {
|
|
263
|
+
break;
|
|
264
|
+
}
|
|
265
|
+
message.windSpeedMs = reader.float();
|
|
266
|
+
continue;
|
|
267
|
+
}
|
|
268
|
+
case 8: {
|
|
269
|
+
if (tag !== 66) {
|
|
270
|
+
break;
|
|
271
|
+
}
|
|
272
|
+
message.windDirectionText = reader.string();
|
|
273
|
+
continue;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
277
|
+
break;
|
|
278
|
+
}
|
|
279
|
+
reader.skip(tag & 7);
|
|
280
|
+
}
|
|
281
|
+
return message;
|
|
282
|
+
}
|
|
283
|
+
finally {
|
|
284
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
create(base) {
|
|
288
|
+
return exports.WeatherForecastDay.fromPartial(base ?? {});
|
|
289
|
+
},
|
|
290
|
+
fromPartial(object) {
|
|
291
|
+
const message = createBaseWeatherForecastDay();
|
|
292
|
+
message.dayOffset = object.dayOffset ?? 0;
|
|
293
|
+
message.temperatureMin = object.temperatureMin ?? undefined;
|
|
294
|
+
message.temperatureMax = object.temperatureMax ?? undefined;
|
|
295
|
+
message.conditionSummary = object.conditionSummary ?? "";
|
|
296
|
+
message.conditionDetail = object.conditionDetail ?? "";
|
|
297
|
+
message.precipitationMm = object.precipitationMm ?? undefined;
|
|
298
|
+
message.windSpeedMs = object.windSpeedMs ?? undefined;
|
|
299
|
+
message.windDirectionText = object.windDirectionText ?? undefined;
|
|
300
|
+
return message;
|
|
301
|
+
},
|
|
302
|
+
};
|
|
303
|
+
function createBaseAgentWeatherUpdate() {
|
|
304
|
+
return { current: undefined, forecast: [] };
|
|
305
|
+
}
|
|
306
|
+
exports.AgentWeatherUpdate = {
|
|
307
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
308
|
+
if (message.current !== undefined) {
|
|
309
|
+
exports.WeatherCurrentData.encode(message.current, writer.uint32(10).fork()).join();
|
|
310
|
+
}
|
|
311
|
+
for (const v of message.forecast) {
|
|
312
|
+
exports.WeatherForecastDay.encode(v, writer.uint32(18).fork()).join();
|
|
313
|
+
}
|
|
314
|
+
return writer;
|
|
315
|
+
},
|
|
316
|
+
decode(input, length) {
|
|
317
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
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;
|
|
335
|
+
}
|
|
336
|
+
case 2: {
|
|
337
|
+
if (tag !== 18) {
|
|
338
|
+
break;
|
|
339
|
+
}
|
|
340
|
+
message.forecast.push(exports.WeatherForecastDay.decode(reader, reader.uint32()));
|
|
341
|
+
continue;
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
345
|
+
break;
|
|
346
|
+
}
|
|
347
|
+
reader.skip(tag & 7);
|
|
348
|
+
}
|
|
349
|
+
return message;
|
|
350
|
+
}
|
|
351
|
+
finally {
|
|
352
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
353
|
+
}
|
|
354
|
+
},
|
|
355
|
+
create(base) {
|
|
356
|
+
return exports.AgentWeatherUpdate.fromPartial(base ?? {});
|
|
357
|
+
},
|
|
358
|
+
fromPartial(object) {
|
|
359
|
+
const message = createBaseAgentWeatherUpdate();
|
|
360
|
+
message.current = (object.current !== undefined && object.current !== null)
|
|
361
|
+
? exports.WeatherCurrentData.fromPartial(object.current)
|
|
362
|
+
: undefined;
|
|
363
|
+
message.forecast = object.forecast?.map((e) => exports.WeatherForecastDay.fromPartial(e)) || [];
|
|
364
|
+
return message;
|
|
365
|
+
},
|
|
366
|
+
};
|
package/package.json
CHANGED