@m1kad0/hannah-proto 3.9.0 → 4.0.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/dist/agent.d.ts +7 -0
- package/dist/agent.js +12 -0
- package/dist/compat_versions.js +5 -5
- package/dist/control.d.ts +7 -4
- package/dist/control.js +15 -15
- package/dist/descriptor.binpb +0 -0
- package/dist/satellite_proxy.d.ts +0 -8
- package/dist/satellite_proxy.js +1 -12
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wakeword_capture.d.ts +0 -7
- package/dist/wakeword_capture.js +0 -7
- package/package.json +1 -1
package/dist/agent.d.ts
CHANGED
|
@@ -252,6 +252,13 @@ export interface AgentDevice {
|
|
|
252
252
|
* (hannah#256, hannah#257).
|
|
253
253
|
*/
|
|
254
254
|
canonicalKey: string;
|
|
255
|
+
/**
|
|
256
|
+
* Whether this device's actuator uses the inverted convention (0%=open,
|
|
257
|
+
* 100%=closed) instead of Hannah's default (0%=closed, 100%=open), e.g.
|
|
258
|
+
* some Homematic/KNX shutter/awning actuators. Unset = unknown/no override,
|
|
259
|
+
* not `false` (hannah-proto#4).
|
|
260
|
+
*/
|
|
261
|
+
inverted?: boolean | undefined;
|
|
255
262
|
}
|
|
256
263
|
export interface AgentDevice_RoomNamesEntry {
|
|
257
264
|
key: string;
|
package/dist/agent.js
CHANGED
|
@@ -1489,6 +1489,7 @@ function createBaseAgentDevice() {
|
|
|
1489
1489
|
writable: false,
|
|
1490
1490
|
deviceId: "",
|
|
1491
1491
|
canonicalKey: "",
|
|
1492
|
+
inverted: undefined,
|
|
1492
1493
|
};
|
|
1493
1494
|
}
|
|
1494
1495
|
exports.AgentDevice = {
|
|
@@ -1532,6 +1533,9 @@ exports.AgentDevice = {
|
|
|
1532
1533
|
if (message.canonicalKey !== "") {
|
|
1533
1534
|
writer.uint32(106).string(message.canonicalKey);
|
|
1534
1535
|
}
|
|
1536
|
+
if (message.inverted !== undefined) {
|
|
1537
|
+
writer.uint32(112).bool(message.inverted);
|
|
1538
|
+
}
|
|
1535
1539
|
return writer;
|
|
1536
1540
|
},
|
|
1537
1541
|
decode(input, length) {
|
|
@@ -1641,6 +1645,13 @@ exports.AgentDevice = {
|
|
|
1641
1645
|
message.canonicalKey = reader.string();
|
|
1642
1646
|
continue;
|
|
1643
1647
|
}
|
|
1648
|
+
case 14: {
|
|
1649
|
+
if (tag !== 112) {
|
|
1650
|
+
break;
|
|
1651
|
+
}
|
|
1652
|
+
message.inverted = reader.bool();
|
|
1653
|
+
continue;
|
|
1654
|
+
}
|
|
1644
1655
|
}
|
|
1645
1656
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1646
1657
|
break;
|
|
@@ -1680,6 +1691,7 @@ exports.AgentDevice = {
|
|
|
1680
1691
|
message.writable = object.writable ?? false;
|
|
1681
1692
|
message.deviceId = object.deviceId ?? "";
|
|
1682
1693
|
message.canonicalKey = object.canonicalKey ?? "";
|
|
1694
|
+
message.inverted = object.inverted ?? undefined;
|
|
1683
1695
|
return message;
|
|
1684
1696
|
},
|
|
1685
1697
|
};
|
package/dist/compat_versions.js
CHANGED
|
@@ -35,8 +35,8 @@ exports.REQUIRED_COMPAT_VERSIONS = {
|
|
|
35
35
|
"DeleteGroup": 1,
|
|
36
36
|
"SetGroupSatellites": 1,
|
|
37
37
|
"GetTriggers": 1,
|
|
38
|
-
"CreateTrigger":
|
|
39
|
-
"UpdateTrigger":
|
|
38
|
+
"CreateTrigger": 2,
|
|
39
|
+
"UpdateTrigger": 2,
|
|
40
40
|
"DeleteTrigger": 1,
|
|
41
41
|
"GetAlarms": 1,
|
|
42
42
|
"CreateAlarm": 1,
|
|
@@ -61,10 +61,10 @@ exports.REQUIRED_COMPAT_VERSIONS = {
|
|
|
61
61
|
"ReleaseSatelliteCapture": 1,
|
|
62
62
|
"StreamSatelliteAudio": 1,
|
|
63
63
|
"TriggerPlink": 1,
|
|
64
|
-
"CollectorConnect":
|
|
65
|
-
"TriggerCollectorCapture":
|
|
64
|
+
"CollectorConnect": 2,
|
|
65
|
+
"TriggerCollectorCapture": 2,
|
|
66
66
|
"RegisterProxy": 1,
|
|
67
|
-
"SubmitSatelliteAudio":
|
|
67
|
+
"SubmitSatelliteAudio": 3,
|
|
68
68
|
"NotifySatelliteRegistered": 1,
|
|
69
69
|
"NotifySatelliteGone": 1,
|
|
70
70
|
"ProvisionSatellite": 1,
|
package/dist/control.d.ts
CHANGED
|
@@ -103,11 +103,12 @@ export interface Trigger {
|
|
|
103
103
|
say: string;
|
|
104
104
|
ask: string;
|
|
105
105
|
rephrase: boolean;
|
|
106
|
-
room
|
|
106
|
+
/** was "room" (hannah-proto#5) */
|
|
107
|
+
target: string;
|
|
107
108
|
cooldown: number;
|
|
108
109
|
/** duration string e.g. "5h"/"30m"/"90s", "" = none */
|
|
109
110
|
delay: string;
|
|
110
|
-
/** JSON list[{say,
|
|
111
|
+
/** JSON list[{say,target} | {set_state:{id,value}}], "" = none (falls back to say) */
|
|
111
112
|
actionsJson: string;
|
|
112
113
|
}
|
|
113
114
|
export interface GetTriggersResponse {
|
|
@@ -121,7 +122,8 @@ export interface CreateTriggerRequest {
|
|
|
121
122
|
say: string;
|
|
122
123
|
ask: string;
|
|
123
124
|
rephrase: boolean;
|
|
124
|
-
room
|
|
125
|
+
/** was "room" (hannah-proto#5) */
|
|
126
|
+
target: string;
|
|
125
127
|
cooldown: number;
|
|
126
128
|
delay: string;
|
|
127
129
|
actionsJson: string;
|
|
@@ -134,7 +136,8 @@ export interface UpdateTriggerRequest {
|
|
|
134
136
|
say: string;
|
|
135
137
|
ask: string;
|
|
136
138
|
rephrase: boolean;
|
|
137
|
-
room
|
|
139
|
+
/** was "room" (hannah-proto#5) */
|
|
140
|
+
target: string;
|
|
138
141
|
cooldown: number;
|
|
139
142
|
delay: string;
|
|
140
143
|
actionsJson: string;
|
package/dist/control.js
CHANGED
|
@@ -941,7 +941,7 @@ function createBaseTrigger() {
|
|
|
941
941
|
say: "",
|
|
942
942
|
ask: "",
|
|
943
943
|
rephrase: false,
|
|
944
|
-
|
|
944
|
+
target: "",
|
|
945
945
|
cooldown: 0,
|
|
946
946
|
delay: "",
|
|
947
947
|
actionsJson: "",
|
|
@@ -970,8 +970,8 @@ exports.Trigger = {
|
|
|
970
970
|
if (message.rephrase !== false) {
|
|
971
971
|
writer.uint32(56).bool(message.rephrase);
|
|
972
972
|
}
|
|
973
|
-
if (message.
|
|
974
|
-
writer.uint32(66).string(message.
|
|
973
|
+
if (message.target !== "") {
|
|
974
|
+
writer.uint32(66).string(message.target);
|
|
975
975
|
}
|
|
976
976
|
if (message.cooldown !== 0) {
|
|
977
977
|
writer.uint32(72).int32(message.cooldown);
|
|
@@ -1050,7 +1050,7 @@ exports.Trigger = {
|
|
|
1050
1050
|
if (tag !== 66) {
|
|
1051
1051
|
break;
|
|
1052
1052
|
}
|
|
1053
|
-
message.
|
|
1053
|
+
message.target = reader.string();
|
|
1054
1054
|
continue;
|
|
1055
1055
|
}
|
|
1056
1056
|
case 9: {
|
|
@@ -1098,7 +1098,7 @@ exports.Trigger = {
|
|
|
1098
1098
|
message.say = object.say ?? "";
|
|
1099
1099
|
message.ask = object.ask ?? "";
|
|
1100
1100
|
message.rephrase = object.rephrase ?? false;
|
|
1101
|
-
message.
|
|
1101
|
+
message.target = object.target ?? "";
|
|
1102
1102
|
message.cooldown = object.cooldown ?? 0;
|
|
1103
1103
|
message.delay = object.delay ?? "";
|
|
1104
1104
|
message.actionsJson = object.actionsJson ?? "";
|
|
@@ -1165,7 +1165,7 @@ function createBaseCreateTriggerRequest() {
|
|
|
1165
1165
|
say: "",
|
|
1166
1166
|
ask: "",
|
|
1167
1167
|
rephrase: false,
|
|
1168
|
-
|
|
1168
|
+
target: "",
|
|
1169
1169
|
cooldown: 0,
|
|
1170
1170
|
delay: "",
|
|
1171
1171
|
actionsJson: "",
|
|
@@ -1194,8 +1194,8 @@ exports.CreateTriggerRequest = {
|
|
|
1194
1194
|
if (message.rephrase !== false) {
|
|
1195
1195
|
writer.uint32(56).bool(message.rephrase);
|
|
1196
1196
|
}
|
|
1197
|
-
if (message.
|
|
1198
|
-
writer.uint32(66).string(message.
|
|
1197
|
+
if (message.target !== "") {
|
|
1198
|
+
writer.uint32(66).string(message.target);
|
|
1199
1199
|
}
|
|
1200
1200
|
if (message.cooldown !== 0) {
|
|
1201
1201
|
writer.uint32(72).int32(message.cooldown);
|
|
@@ -1274,7 +1274,7 @@ exports.CreateTriggerRequest = {
|
|
|
1274
1274
|
if (tag !== 66) {
|
|
1275
1275
|
break;
|
|
1276
1276
|
}
|
|
1277
|
-
message.
|
|
1277
|
+
message.target = reader.string();
|
|
1278
1278
|
continue;
|
|
1279
1279
|
}
|
|
1280
1280
|
case 9: {
|
|
@@ -1322,7 +1322,7 @@ exports.CreateTriggerRequest = {
|
|
|
1322
1322
|
message.say = object.say ?? "";
|
|
1323
1323
|
message.ask = object.ask ?? "";
|
|
1324
1324
|
message.rephrase = object.rephrase ?? false;
|
|
1325
|
-
message.
|
|
1325
|
+
message.target = object.target ?? "";
|
|
1326
1326
|
message.cooldown = object.cooldown ?? 0;
|
|
1327
1327
|
message.delay = object.delay ?? "";
|
|
1328
1328
|
message.actionsJson = object.actionsJson ?? "";
|
|
@@ -1338,7 +1338,7 @@ function createBaseUpdateTriggerRequest() {
|
|
|
1338
1338
|
say: "",
|
|
1339
1339
|
ask: "",
|
|
1340
1340
|
rephrase: false,
|
|
1341
|
-
|
|
1341
|
+
target: "",
|
|
1342
1342
|
cooldown: 0,
|
|
1343
1343
|
delay: "",
|
|
1344
1344
|
actionsJson: "",
|
|
@@ -1367,8 +1367,8 @@ exports.UpdateTriggerRequest = {
|
|
|
1367
1367
|
if (message.rephrase !== false) {
|
|
1368
1368
|
writer.uint32(56).bool(message.rephrase);
|
|
1369
1369
|
}
|
|
1370
|
-
if (message.
|
|
1371
|
-
writer.uint32(66).string(message.
|
|
1370
|
+
if (message.target !== "") {
|
|
1371
|
+
writer.uint32(66).string(message.target);
|
|
1372
1372
|
}
|
|
1373
1373
|
if (message.cooldown !== 0) {
|
|
1374
1374
|
writer.uint32(72).int32(message.cooldown);
|
|
@@ -1447,7 +1447,7 @@ exports.UpdateTriggerRequest = {
|
|
|
1447
1447
|
if (tag !== 66) {
|
|
1448
1448
|
break;
|
|
1449
1449
|
}
|
|
1450
|
-
message.
|
|
1450
|
+
message.target = reader.string();
|
|
1451
1451
|
continue;
|
|
1452
1452
|
}
|
|
1453
1453
|
case 9: {
|
|
@@ -1495,7 +1495,7 @@ exports.UpdateTriggerRequest = {
|
|
|
1495
1495
|
message.say = object.say ?? "";
|
|
1496
1496
|
message.ask = object.ask ?? "";
|
|
1497
1497
|
message.rephrase = object.rephrase ?? false;
|
|
1498
|
-
message.
|
|
1498
|
+
message.target = object.target ?? "";
|
|
1499
1499
|
message.cooldown = object.cooldown ?? 0;
|
|
1500
1500
|
message.delay = object.delay ?? "";
|
|
1501
1501
|
message.actionsJson = object.actionsJson ?? "";
|
package/dist/descriptor.binpb
CHANGED
|
Binary file
|
|
@@ -53,14 +53,6 @@ export interface SubmitSatelliteAudioRequest {
|
|
|
53
53
|
audioPcm: Uint8Array;
|
|
54
54
|
/** sample rate of the audio (typically 16000) */
|
|
55
55
|
sampleRate: number;
|
|
56
|
-
/**
|
|
57
|
-
* Deprecated: Hannah Core now resolves the speaker itself via its own
|
|
58
|
-
* VoiceID client, independent of proxy connectivity (hannah#210). The
|
|
59
|
-
* proxy no longer populates this field and Core no longer reads it.
|
|
60
|
-
*
|
|
61
|
-
* @deprecated
|
|
62
|
-
*/
|
|
63
|
-
speakerUserId: string;
|
|
64
56
|
}
|
|
65
57
|
export interface SubmitSatelliteAudioResponse {
|
|
66
58
|
/** STT result */
|
package/dist/satellite_proxy.js
CHANGED
|
@@ -293,7 +293,7 @@ exports.PlayAudioCommand = {
|
|
|
293
293
|
},
|
|
294
294
|
};
|
|
295
295
|
function createBaseSubmitSatelliteAudioRequest() {
|
|
296
|
-
return { deviceId: "", room: "", audioPcm: new Uint8Array(0), sampleRate: 0
|
|
296
|
+
return { deviceId: "", room: "", audioPcm: new Uint8Array(0), sampleRate: 0 };
|
|
297
297
|
}
|
|
298
298
|
exports.SubmitSatelliteAudioRequest = {
|
|
299
299
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
@@ -309,9 +309,6 @@ exports.SubmitSatelliteAudioRequest = {
|
|
|
309
309
|
if (message.sampleRate !== 0) {
|
|
310
310
|
writer.uint32(32).int32(message.sampleRate);
|
|
311
311
|
}
|
|
312
|
-
if (message.speakerUserId !== "") {
|
|
313
|
-
writer.uint32(42).string(message.speakerUserId);
|
|
314
|
-
}
|
|
315
312
|
return writer;
|
|
316
313
|
},
|
|
317
314
|
decode(input, length) {
|
|
@@ -355,13 +352,6 @@ exports.SubmitSatelliteAudioRequest = {
|
|
|
355
352
|
message.sampleRate = reader.int32();
|
|
356
353
|
continue;
|
|
357
354
|
}
|
|
358
|
-
case 5: {
|
|
359
|
-
if (tag !== 42) {
|
|
360
|
-
break;
|
|
361
|
-
}
|
|
362
|
-
message.speakerUserId = reader.string();
|
|
363
|
-
continue;
|
|
364
|
-
}
|
|
365
355
|
}
|
|
366
356
|
if ((tag & 7) === 4 || tag === 0) {
|
|
367
357
|
break;
|
|
@@ -383,7 +373,6 @@ exports.SubmitSatelliteAudioRequest = {
|
|
|
383
373
|
message.room = object.room ?? "";
|
|
384
374
|
message.audioPcm = object.audioPcm ?? new Uint8Array(0);
|
|
385
375
|
message.sampleRate = object.sampleRate ?? 0;
|
|
386
|
-
message.speakerUserId = object.speakerUserId ?? "";
|
|
387
376
|
return message;
|
|
388
377
|
},
|
|
389
378
|
};
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const PROTO_VERSION =
|
|
1
|
+
export declare const PROTO_VERSION = 9;
|
package/dist/version.js
CHANGED
|
@@ -2,13 +2,6 @@ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
|
2
2
|
export declare const protobufPackage = "hannah";
|
|
3
3
|
export declare enum CaptureMode {
|
|
4
4
|
CAPTURE_MODE_UNSPECIFIED = 0,
|
|
5
|
-
/**
|
|
6
|
-
* CAPTURE_MODE_MANUAL - Deprecated: identical in practice to CAPTURE_MODE_PTT (both mean "hand-triggered
|
|
7
|
-
* via the PTT button") — never produce this value, use CAPTURE_MODE_PTT instead.
|
|
8
|
-
*
|
|
9
|
-
* @deprecated
|
|
10
|
-
*/
|
|
11
|
-
CAPTURE_MODE_MANUAL = 1,
|
|
12
5
|
CAPTURE_MODE_PTT = 2,
|
|
13
6
|
CAPTURE_MODE_PLINK = 3,
|
|
14
7
|
UNRECOGNIZED = -1
|
package/dist/wakeword_capture.js
CHANGED
|
@@ -12,13 +12,6 @@ exports.protobufPackage = "hannah";
|
|
|
12
12
|
var CaptureMode;
|
|
13
13
|
(function (CaptureMode) {
|
|
14
14
|
CaptureMode[CaptureMode["CAPTURE_MODE_UNSPECIFIED"] = 0] = "CAPTURE_MODE_UNSPECIFIED";
|
|
15
|
-
/**
|
|
16
|
-
* CAPTURE_MODE_MANUAL - Deprecated: identical in practice to CAPTURE_MODE_PTT (both mean "hand-triggered
|
|
17
|
-
* via the PTT button") — never produce this value, use CAPTURE_MODE_PTT instead.
|
|
18
|
-
*
|
|
19
|
-
* @deprecated
|
|
20
|
-
*/
|
|
21
|
-
CaptureMode[CaptureMode["CAPTURE_MODE_MANUAL"] = 1] = "CAPTURE_MODE_MANUAL";
|
|
22
15
|
CaptureMode[CaptureMode["CAPTURE_MODE_PTT"] = 2] = "CAPTURE_MODE_PTT";
|
|
23
16
|
CaptureMode[CaptureMode["CAPTURE_MODE_PLINK"] = 3] = "CAPTURE_MODE_PLINK";
|
|
24
17
|
CaptureMode[CaptureMode["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
package/package.json
CHANGED