@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/hannah.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.
|
|
4
|
+
// protoc-gen-ts_proto v2.12.1
|
|
5
5
|
// protoc unknown
|
|
6
6
|
// source: hannah/hannah.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/messages.d.ts
CHANGED
|
@@ -6,11 +6,19 @@ export interface Message {
|
|
|
6
6
|
content: string;
|
|
7
7
|
source: string;
|
|
8
8
|
createdAt: string;
|
|
9
|
+
/** 0 = system message (not reply-capable), see hannah#237 */
|
|
10
|
+
senderUserId: number;
|
|
11
|
+
/** 0 = not a reply; otherwise id of the Message being answered */
|
|
12
|
+
replyToId: number;
|
|
9
13
|
}
|
|
10
14
|
export interface CreateMessageRequest {
|
|
11
15
|
userId: number;
|
|
12
16
|
content: string;
|
|
13
17
|
source: string;
|
|
18
|
+
/** 0 = system message, same convention as Message.sender_user_id */
|
|
19
|
+
senderUserId: number;
|
|
20
|
+
/** 0 = not a reply */
|
|
21
|
+
replyToId: number;
|
|
14
22
|
}
|
|
15
23
|
export interface ListMessagesRequest {
|
|
16
24
|
requestorId: number;
|
package/dist/messages.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.
|
|
4
|
+
// protoc-gen-ts_proto v2.12.1
|
|
5
5
|
// protoc unknown
|
|
6
6
|
// source: hannah/messages.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -10,7 +10,7 @@ exports.DeleteMessageRequest = exports.ListMessagesResponse = exports.ListMessag
|
|
|
10
10
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
11
|
exports.protobufPackage = "hannah";
|
|
12
12
|
function createBaseMessage() {
|
|
13
|
-
return { id: 0, userId: 0, content: "", source: "", createdAt: "" };
|
|
13
|
+
return { id: 0, userId: 0, content: "", source: "", createdAt: "", senderUserId: 0, replyToId: 0 };
|
|
14
14
|
}
|
|
15
15
|
exports.Message = {
|
|
16
16
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
@@ -29,57 +29,87 @@ exports.Message = {
|
|
|
29
29
|
if (message.createdAt !== "") {
|
|
30
30
|
writer.uint32(42).string(message.createdAt);
|
|
31
31
|
}
|
|
32
|
+
if (message.senderUserId !== 0) {
|
|
33
|
+
writer.uint32(48).int32(message.senderUserId);
|
|
34
|
+
}
|
|
35
|
+
if (message.replyToId !== 0) {
|
|
36
|
+
writer.uint32(56).int32(message.replyToId);
|
|
37
|
+
}
|
|
32
38
|
return writer;
|
|
33
39
|
},
|
|
34
40
|
decode(input, length) {
|
|
35
41
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
36
|
-
const
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
43
|
+
if (previousRecursionDepth >= 100) {
|
|
44
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
45
|
+
}
|
|
46
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
47
|
+
try {
|
|
48
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
49
|
+
const message = createBaseMessage();
|
|
50
|
+
while (reader.pos < end) {
|
|
51
|
+
const tag = reader.uint32();
|
|
52
|
+
switch (tag >>> 3) {
|
|
53
|
+
case 1: {
|
|
54
|
+
if (tag !== 8) {
|
|
55
|
+
break;
|
|
56
|
+
}
|
|
57
|
+
message.id = reader.int32();
|
|
58
|
+
continue;
|
|
44
59
|
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
60
|
+
case 2: {
|
|
61
|
+
if (tag !== 16) {
|
|
62
|
+
break;
|
|
63
|
+
}
|
|
64
|
+
message.userId = reader.int32();
|
|
65
|
+
continue;
|
|
51
66
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
67
|
+
case 3: {
|
|
68
|
+
if (tag !== 26) {
|
|
69
|
+
break;
|
|
70
|
+
}
|
|
71
|
+
message.content = reader.string();
|
|
72
|
+
continue;
|
|
58
73
|
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
74
|
+
case 4: {
|
|
75
|
+
if (tag !== 34) {
|
|
76
|
+
break;
|
|
77
|
+
}
|
|
78
|
+
message.source = reader.string();
|
|
79
|
+
continue;
|
|
65
80
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
81
|
+
case 5: {
|
|
82
|
+
if (tag !== 42) {
|
|
83
|
+
break;
|
|
84
|
+
}
|
|
85
|
+
message.createdAt = reader.string();
|
|
86
|
+
continue;
|
|
87
|
+
}
|
|
88
|
+
case 6: {
|
|
89
|
+
if (tag !== 48) {
|
|
90
|
+
break;
|
|
91
|
+
}
|
|
92
|
+
message.senderUserId = reader.int32();
|
|
93
|
+
continue;
|
|
94
|
+
}
|
|
95
|
+
case 7: {
|
|
96
|
+
if (tag !== 56) {
|
|
97
|
+
break;
|
|
98
|
+
}
|
|
99
|
+
message.replyToId = reader.int32();
|
|
100
|
+
continue;
|
|
72
101
|
}
|
|
73
|
-
message.createdAt = reader.string();
|
|
74
|
-
continue;
|
|
75
102
|
}
|
|
103
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
104
|
+
break;
|
|
105
|
+
}
|
|
106
|
+
reader.skip(tag & 7);
|
|
76
107
|
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
reader.
|
|
108
|
+
return message;
|
|
109
|
+
}
|
|
110
|
+
finally {
|
|
111
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
81
112
|
}
|
|
82
|
-
return message;
|
|
83
113
|
},
|
|
84
114
|
create(base) {
|
|
85
115
|
return exports.Message.fromPartial(base ?? {});
|
|
@@ -91,11 +121,13 @@ exports.Message = {
|
|
|
91
121
|
message.content = object.content ?? "";
|
|
92
122
|
message.source = object.source ?? "";
|
|
93
123
|
message.createdAt = object.createdAt ?? "";
|
|
124
|
+
message.senderUserId = object.senderUserId ?? 0;
|
|
125
|
+
message.replyToId = object.replyToId ?? 0;
|
|
94
126
|
return message;
|
|
95
127
|
},
|
|
96
128
|
};
|
|
97
129
|
function createBaseCreateMessageRequest() {
|
|
98
|
-
return { userId: 0, content: "", source: "" };
|
|
130
|
+
return { userId: 0, content: "", source: "", senderUserId: 0, replyToId: 0 };
|
|
99
131
|
}
|
|
100
132
|
exports.CreateMessageRequest = {
|
|
101
133
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
@@ -108,43 +140,73 @@ exports.CreateMessageRequest = {
|
|
|
108
140
|
if (message.source !== "") {
|
|
109
141
|
writer.uint32(26).string(message.source);
|
|
110
142
|
}
|
|
143
|
+
if (message.senderUserId !== 0) {
|
|
144
|
+
writer.uint32(32).int32(message.senderUserId);
|
|
145
|
+
}
|
|
146
|
+
if (message.replyToId !== 0) {
|
|
147
|
+
writer.uint32(40).int32(message.replyToId);
|
|
148
|
+
}
|
|
111
149
|
return writer;
|
|
112
150
|
},
|
|
113
151
|
decode(input, length) {
|
|
114
152
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
115
|
-
const
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
153
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
154
|
+
if (previousRecursionDepth >= 100) {
|
|
155
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
156
|
+
}
|
|
157
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
158
|
+
try {
|
|
159
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
160
|
+
const message = createBaseCreateMessageRequest();
|
|
161
|
+
while (reader.pos < end) {
|
|
162
|
+
const tag = reader.uint32();
|
|
163
|
+
switch (tag >>> 3) {
|
|
164
|
+
case 1: {
|
|
165
|
+
if (tag !== 8) {
|
|
166
|
+
break;
|
|
167
|
+
}
|
|
168
|
+
message.userId = reader.int32();
|
|
169
|
+
continue;
|
|
123
170
|
}
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
171
|
+
case 2: {
|
|
172
|
+
if (tag !== 18) {
|
|
173
|
+
break;
|
|
174
|
+
}
|
|
175
|
+
message.content = reader.string();
|
|
176
|
+
continue;
|
|
130
177
|
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
178
|
+
case 3: {
|
|
179
|
+
if (tag !== 26) {
|
|
180
|
+
break;
|
|
181
|
+
}
|
|
182
|
+
message.source = reader.string();
|
|
183
|
+
continue;
|
|
184
|
+
}
|
|
185
|
+
case 4: {
|
|
186
|
+
if (tag !== 32) {
|
|
187
|
+
break;
|
|
188
|
+
}
|
|
189
|
+
message.senderUserId = reader.int32();
|
|
190
|
+
continue;
|
|
191
|
+
}
|
|
192
|
+
case 5: {
|
|
193
|
+
if (tag !== 40) {
|
|
194
|
+
break;
|
|
195
|
+
}
|
|
196
|
+
message.replyToId = reader.int32();
|
|
197
|
+
continue;
|
|
137
198
|
}
|
|
138
|
-
message.source = reader.string();
|
|
139
|
-
continue;
|
|
140
199
|
}
|
|
200
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
201
|
+
break;
|
|
202
|
+
}
|
|
203
|
+
reader.skip(tag & 7);
|
|
141
204
|
}
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
reader.
|
|
205
|
+
return message;
|
|
206
|
+
}
|
|
207
|
+
finally {
|
|
208
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
146
209
|
}
|
|
147
|
-
return message;
|
|
148
210
|
},
|
|
149
211
|
create(base) {
|
|
150
212
|
return exports.CreateMessageRequest.fromPartial(base ?? {});
|
|
@@ -154,6 +216,8 @@ exports.CreateMessageRequest = {
|
|
|
154
216
|
message.userId = object.userId ?? 0;
|
|
155
217
|
message.content = object.content ?? "";
|
|
156
218
|
message.source = object.source ?? "";
|
|
219
|
+
message.senderUserId = object.senderUserId ?? 0;
|
|
220
|
+
message.replyToId = object.replyToId ?? 0;
|
|
157
221
|
return message;
|
|
158
222
|
},
|
|
159
223
|
};
|
|
@@ -172,32 +236,42 @@ exports.ListMessagesRequest = {
|
|
|
172
236
|
},
|
|
173
237
|
decode(input, length) {
|
|
174
238
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
175
|
-
const
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
239
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
240
|
+
if (previousRecursionDepth >= 100) {
|
|
241
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
242
|
+
}
|
|
243
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
244
|
+
try {
|
|
245
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
246
|
+
const message = createBaseListMessagesRequest();
|
|
247
|
+
while (reader.pos < end) {
|
|
248
|
+
const tag = reader.uint32();
|
|
249
|
+
switch (tag >>> 3) {
|
|
250
|
+
case 1: {
|
|
251
|
+
if (tag !== 8) {
|
|
252
|
+
break;
|
|
253
|
+
}
|
|
254
|
+
message.requestorId = reader.int32();
|
|
255
|
+
continue;
|
|
183
256
|
}
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
257
|
+
case 2: {
|
|
258
|
+
if (tag !== 16) {
|
|
259
|
+
break;
|
|
260
|
+
}
|
|
261
|
+
message.filterUserId = reader.int32();
|
|
262
|
+
continue;
|
|
190
263
|
}
|
|
191
|
-
message.filterUserId = reader.int32();
|
|
192
|
-
continue;
|
|
193
264
|
}
|
|
265
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
266
|
+
break;
|
|
267
|
+
}
|
|
268
|
+
reader.skip(tag & 7);
|
|
194
269
|
}
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
reader.
|
|
270
|
+
return message;
|
|
271
|
+
}
|
|
272
|
+
finally {
|
|
273
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
199
274
|
}
|
|
200
|
-
return message;
|
|
201
275
|
},
|
|
202
276
|
create(base) {
|
|
203
277
|
return exports.ListMessagesRequest.fromPartial(base ?? {});
|
|
@@ -221,25 +295,35 @@ exports.ListMessagesResponse = {
|
|
|
221
295
|
},
|
|
222
296
|
decode(input, length) {
|
|
223
297
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
224
|
-
const
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
298
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
299
|
+
if (previousRecursionDepth >= 100) {
|
|
300
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
301
|
+
}
|
|
302
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
303
|
+
try {
|
|
304
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
305
|
+
const message = createBaseListMessagesResponse();
|
|
306
|
+
while (reader.pos < end) {
|
|
307
|
+
const tag = reader.uint32();
|
|
308
|
+
switch (tag >>> 3) {
|
|
309
|
+
case 1: {
|
|
310
|
+
if (tag !== 10) {
|
|
311
|
+
break;
|
|
312
|
+
}
|
|
313
|
+
message.messages.push(exports.Message.decode(reader, reader.uint32()));
|
|
314
|
+
continue;
|
|
232
315
|
}
|
|
233
|
-
message.messages.push(exports.Message.decode(reader, reader.uint32()));
|
|
234
|
-
continue;
|
|
235
316
|
}
|
|
317
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
318
|
+
break;
|
|
319
|
+
}
|
|
320
|
+
reader.skip(tag & 7);
|
|
236
321
|
}
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
reader.
|
|
322
|
+
return message;
|
|
323
|
+
}
|
|
324
|
+
finally {
|
|
325
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
241
326
|
}
|
|
242
|
-
return message;
|
|
243
327
|
},
|
|
244
328
|
create(base) {
|
|
245
329
|
return exports.ListMessagesResponse.fromPartial(base ?? {});
|
|
@@ -265,32 +349,42 @@ exports.DeleteMessageRequest = {
|
|
|
265
349
|
},
|
|
266
350
|
decode(input, length) {
|
|
267
351
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
268
|
-
const
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
352
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
353
|
+
if (previousRecursionDepth >= 100) {
|
|
354
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
355
|
+
}
|
|
356
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
357
|
+
try {
|
|
358
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
359
|
+
const message = createBaseDeleteMessageRequest();
|
|
360
|
+
while (reader.pos < end) {
|
|
361
|
+
const tag = reader.uint32();
|
|
362
|
+
switch (tag >>> 3) {
|
|
363
|
+
case 1: {
|
|
364
|
+
if (tag !== 8) {
|
|
365
|
+
break;
|
|
366
|
+
}
|
|
367
|
+
message.requestorId = reader.int32();
|
|
368
|
+
continue;
|
|
276
369
|
}
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
370
|
+
case 2: {
|
|
371
|
+
if (tag !== 16) {
|
|
372
|
+
break;
|
|
373
|
+
}
|
|
374
|
+
message.id = reader.int32();
|
|
375
|
+
continue;
|
|
283
376
|
}
|
|
284
|
-
message.id = reader.int32();
|
|
285
|
-
continue;
|
|
286
377
|
}
|
|
378
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
379
|
+
break;
|
|
380
|
+
}
|
|
381
|
+
reader.skip(tag & 7);
|
|
287
382
|
}
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
reader.
|
|
383
|
+
return message;
|
|
384
|
+
}
|
|
385
|
+
finally {
|
|
386
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
292
387
|
}
|
|
293
|
-
return message;
|
|
294
388
|
},
|
|
295
389
|
create(base) {
|
|
296
390
|
return exports.DeleteMessageRequest.fromPartial(base ?? {});
|
package/dist/options.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.
|
|
4
|
+
// protoc-gen-ts_proto v2.12.1
|
|
5
5
|
// protoc unknown
|
|
6
6
|
// source: hannah/options.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|