@m1kad0/hannah-proto 0.4.0 → 0.5.1
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/control.d.ts +0 -39
- package/dist/control.js +1 -391
- package/dist/hannah.d.ts +4 -56
- package/dist/hannah.js +1 -37
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
package/dist/control.d.ts
CHANGED
|
@@ -127,39 +127,6 @@ export interface SetGroupRoomsRequest {
|
|
|
127
127
|
groupId: string;
|
|
128
128
|
roomIds: string[];
|
|
129
129
|
}
|
|
130
|
-
export interface Routine {
|
|
131
|
-
id: number;
|
|
132
|
-
name: string;
|
|
133
|
-
triggers: string[];
|
|
134
|
-
/** JSON list[{topic,value} | {say,room}] */
|
|
135
|
-
actionsJson: string;
|
|
136
|
-
reply: string;
|
|
137
|
-
}
|
|
138
|
-
export interface GetRoutinesResponse {
|
|
139
|
-
routines: Routine[];
|
|
140
|
-
}
|
|
141
|
-
export interface CreateRoutineRequest {
|
|
142
|
-
name: string;
|
|
143
|
-
triggers: string[];
|
|
144
|
-
actionsJson: string;
|
|
145
|
-
reply: string;
|
|
146
|
-
}
|
|
147
|
-
export interface CreateRoutineResponse {
|
|
148
|
-
ok: boolean;
|
|
149
|
-
/** server-assigned, only valid when ok == true */
|
|
150
|
-
id: number;
|
|
151
|
-
message: string;
|
|
152
|
-
}
|
|
153
|
-
export interface UpdateRoutineRequest {
|
|
154
|
-
id: number;
|
|
155
|
-
name: string;
|
|
156
|
-
triggers: string[];
|
|
157
|
-
actionsJson: string;
|
|
158
|
-
reply: string;
|
|
159
|
-
}
|
|
160
|
-
export interface DeleteRoutineRequest {
|
|
161
|
-
id: number;
|
|
162
|
-
}
|
|
163
130
|
export interface Trigger {
|
|
164
131
|
/** client-assigned slug, e.g. "aussentuer_abend" */
|
|
165
132
|
id: string;
|
|
@@ -361,12 +328,6 @@ export declare const CreateGroupRequest: MessageFns<CreateGroupRequest>;
|
|
|
361
328
|
export declare const UpdateGroupRequest: MessageFns<UpdateGroupRequest>;
|
|
362
329
|
export declare const DeleteGroupRequest: MessageFns<DeleteGroupRequest>;
|
|
363
330
|
export declare const SetGroupRoomsRequest: MessageFns<SetGroupRoomsRequest>;
|
|
364
|
-
export declare const Routine: MessageFns<Routine>;
|
|
365
|
-
export declare const GetRoutinesResponse: MessageFns<GetRoutinesResponse>;
|
|
366
|
-
export declare const CreateRoutineRequest: MessageFns<CreateRoutineRequest>;
|
|
367
|
-
export declare const CreateRoutineResponse: MessageFns<CreateRoutineResponse>;
|
|
368
|
-
export declare const UpdateRoutineRequest: MessageFns<UpdateRoutineRequest>;
|
|
369
|
-
export declare const DeleteRoutineRequest: MessageFns<DeleteRoutineRequest>;
|
|
370
331
|
export declare const Trigger: MessageFns<Trigger>;
|
|
371
332
|
export declare const GetTriggersResponse: MessageFns<GetTriggersResponse>;
|
|
372
333
|
export declare const CreateTriggerRequest: MessageFns<CreateTriggerRequest>;
|
package/dist/control.js
CHANGED
|
@@ -5,8 +5,7 @@
|
|
|
5
5
|
// protoc unknown
|
|
6
6
|
// source: control.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.GetCarsResponse = exports.Car = exports.DeleteBleTagRequest = exports.UpdateBleTagRequest = exports.CreateBleTagResponse = exports.CreateBleTagRequest = exports.GetBleTagsResponse = exports.BleTag = exports.UpdateConfigRequest = exports.SettingUpdate = exports.GetSettingsResponse = exports.Setting = exports.Category = exports.DeleteAlarmRequest = exports.UpdateAlarmRequest = exports.CreateAlarmResponse = exports.CreateAlarmRequest = exports.GetAlarmsResponse = exports.Alarm = exports.DeleteTriggerRequest = exports.UpdateTriggerRequest = exports.CreateTriggerRequest = exports.GetTriggersResponse = exports.Trigger = exports.
|
|
9
|
-
exports.DeleteCarRequest = exports.UpdateCarRequest = exports.CreateCarResponse = exports.CreateCarRequest = void 0;
|
|
8
|
+
exports.DeleteCarRequest = exports.UpdateCarRequest = exports.CreateCarResponse = exports.CreateCarRequest = exports.GetCarsResponse = exports.Car = exports.DeleteBleTagRequest = exports.UpdateBleTagRequest = exports.CreateBleTagResponse = exports.CreateBleTagRequest = exports.GetBleTagsResponse = exports.BleTag = exports.UpdateConfigRequest = exports.SettingUpdate = exports.GetSettingsResponse = exports.Setting = exports.Category = exports.DeleteAlarmRequest = exports.UpdateAlarmRequest = exports.CreateAlarmResponse = exports.CreateAlarmRequest = exports.GetAlarmsResponse = exports.Alarm = exports.DeleteTriggerRequest = exports.UpdateTriggerRequest = exports.CreateTriggerRequest = exports.GetTriggersResponse = exports.Trigger = exports.SetGroupRoomsRequest = exports.DeleteGroupRequest = exports.UpdateGroupRequest = exports.CreateGroupRequest = exports.GetGroupsResponse = exports.Group = exports.GetRoomsResponse = exports.Room = exports.DeleteSatelliteRequest = exports.SetSatelliteOwnerRequest = exports.SetSatelliteDisplayNameRequest = exports.SetSatelliteRoomRequest = exports.GetSatellitesResponse = exports.Satellite = exports.AnnounceRequest = exports.SubmitVoiceResponse = exports.SubmitVoiceRequest = exports.SubmitTextResponse = exports.SubmitTextRequest = exports.protobufPackage = void 0;
|
|
10
9
|
/* eslint-disable */
|
|
11
10
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
12
11
|
exports.protobufPackage = "hannah";
|
|
@@ -1175,395 +1174,6 @@ exports.SetGroupRoomsRequest = {
|
|
|
1175
1174
|
return message;
|
|
1176
1175
|
},
|
|
1177
1176
|
};
|
|
1178
|
-
function createBaseRoutine() {
|
|
1179
|
-
return { id: 0, name: "", triggers: [], actionsJson: "", reply: "" };
|
|
1180
|
-
}
|
|
1181
|
-
exports.Routine = {
|
|
1182
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1183
|
-
if (message.id !== 0) {
|
|
1184
|
-
writer.uint32(8).int32(message.id);
|
|
1185
|
-
}
|
|
1186
|
-
if (message.name !== "") {
|
|
1187
|
-
writer.uint32(18).string(message.name);
|
|
1188
|
-
}
|
|
1189
|
-
for (const v of message.triggers) {
|
|
1190
|
-
writer.uint32(26).string(v);
|
|
1191
|
-
}
|
|
1192
|
-
if (message.actionsJson !== "") {
|
|
1193
|
-
writer.uint32(34).string(message.actionsJson);
|
|
1194
|
-
}
|
|
1195
|
-
if (message.reply !== "") {
|
|
1196
|
-
writer.uint32(42).string(message.reply);
|
|
1197
|
-
}
|
|
1198
|
-
return writer;
|
|
1199
|
-
},
|
|
1200
|
-
decode(input, length) {
|
|
1201
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1202
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1203
|
-
const message = createBaseRoutine();
|
|
1204
|
-
while (reader.pos < end) {
|
|
1205
|
-
const tag = reader.uint32();
|
|
1206
|
-
switch (tag >>> 3) {
|
|
1207
|
-
case 1: {
|
|
1208
|
-
if (tag !== 8) {
|
|
1209
|
-
break;
|
|
1210
|
-
}
|
|
1211
|
-
message.id = reader.int32();
|
|
1212
|
-
continue;
|
|
1213
|
-
}
|
|
1214
|
-
case 2: {
|
|
1215
|
-
if (tag !== 18) {
|
|
1216
|
-
break;
|
|
1217
|
-
}
|
|
1218
|
-
message.name = reader.string();
|
|
1219
|
-
continue;
|
|
1220
|
-
}
|
|
1221
|
-
case 3: {
|
|
1222
|
-
if (tag !== 26) {
|
|
1223
|
-
break;
|
|
1224
|
-
}
|
|
1225
|
-
message.triggers.push(reader.string());
|
|
1226
|
-
continue;
|
|
1227
|
-
}
|
|
1228
|
-
case 4: {
|
|
1229
|
-
if (tag !== 34) {
|
|
1230
|
-
break;
|
|
1231
|
-
}
|
|
1232
|
-
message.actionsJson = reader.string();
|
|
1233
|
-
continue;
|
|
1234
|
-
}
|
|
1235
|
-
case 5: {
|
|
1236
|
-
if (tag !== 42) {
|
|
1237
|
-
break;
|
|
1238
|
-
}
|
|
1239
|
-
message.reply = reader.string();
|
|
1240
|
-
continue;
|
|
1241
|
-
}
|
|
1242
|
-
}
|
|
1243
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1244
|
-
break;
|
|
1245
|
-
}
|
|
1246
|
-
reader.skip(tag & 7);
|
|
1247
|
-
}
|
|
1248
|
-
return message;
|
|
1249
|
-
},
|
|
1250
|
-
create(base) {
|
|
1251
|
-
return exports.Routine.fromPartial(base ?? {});
|
|
1252
|
-
},
|
|
1253
|
-
fromPartial(object) {
|
|
1254
|
-
const message = createBaseRoutine();
|
|
1255
|
-
message.id = object.id ?? 0;
|
|
1256
|
-
message.name = object.name ?? "";
|
|
1257
|
-
message.triggers = object.triggers?.map((e) => e) || [];
|
|
1258
|
-
message.actionsJson = object.actionsJson ?? "";
|
|
1259
|
-
message.reply = object.reply ?? "";
|
|
1260
|
-
return message;
|
|
1261
|
-
},
|
|
1262
|
-
};
|
|
1263
|
-
function createBaseGetRoutinesResponse() {
|
|
1264
|
-
return { routines: [] };
|
|
1265
|
-
}
|
|
1266
|
-
exports.GetRoutinesResponse = {
|
|
1267
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1268
|
-
for (const v of message.routines) {
|
|
1269
|
-
exports.Routine.encode(v, writer.uint32(10).fork()).join();
|
|
1270
|
-
}
|
|
1271
|
-
return writer;
|
|
1272
|
-
},
|
|
1273
|
-
decode(input, length) {
|
|
1274
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1275
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1276
|
-
const message = createBaseGetRoutinesResponse();
|
|
1277
|
-
while (reader.pos < end) {
|
|
1278
|
-
const tag = reader.uint32();
|
|
1279
|
-
switch (tag >>> 3) {
|
|
1280
|
-
case 1: {
|
|
1281
|
-
if (tag !== 10) {
|
|
1282
|
-
break;
|
|
1283
|
-
}
|
|
1284
|
-
message.routines.push(exports.Routine.decode(reader, reader.uint32()));
|
|
1285
|
-
continue;
|
|
1286
|
-
}
|
|
1287
|
-
}
|
|
1288
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1289
|
-
break;
|
|
1290
|
-
}
|
|
1291
|
-
reader.skip(tag & 7);
|
|
1292
|
-
}
|
|
1293
|
-
return message;
|
|
1294
|
-
},
|
|
1295
|
-
create(base) {
|
|
1296
|
-
return exports.GetRoutinesResponse.fromPartial(base ?? {});
|
|
1297
|
-
},
|
|
1298
|
-
fromPartial(object) {
|
|
1299
|
-
const message = createBaseGetRoutinesResponse();
|
|
1300
|
-
message.routines = object.routines?.map((e) => exports.Routine.fromPartial(e)) || [];
|
|
1301
|
-
return message;
|
|
1302
|
-
},
|
|
1303
|
-
};
|
|
1304
|
-
function createBaseCreateRoutineRequest() {
|
|
1305
|
-
return { name: "", triggers: [], actionsJson: "", reply: "" };
|
|
1306
|
-
}
|
|
1307
|
-
exports.CreateRoutineRequest = {
|
|
1308
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1309
|
-
if (message.name !== "") {
|
|
1310
|
-
writer.uint32(10).string(message.name);
|
|
1311
|
-
}
|
|
1312
|
-
for (const v of message.triggers) {
|
|
1313
|
-
writer.uint32(18).string(v);
|
|
1314
|
-
}
|
|
1315
|
-
if (message.actionsJson !== "") {
|
|
1316
|
-
writer.uint32(26).string(message.actionsJson);
|
|
1317
|
-
}
|
|
1318
|
-
if (message.reply !== "") {
|
|
1319
|
-
writer.uint32(34).string(message.reply);
|
|
1320
|
-
}
|
|
1321
|
-
return writer;
|
|
1322
|
-
},
|
|
1323
|
-
decode(input, length) {
|
|
1324
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1325
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1326
|
-
const message = createBaseCreateRoutineRequest();
|
|
1327
|
-
while (reader.pos < end) {
|
|
1328
|
-
const tag = reader.uint32();
|
|
1329
|
-
switch (tag >>> 3) {
|
|
1330
|
-
case 1: {
|
|
1331
|
-
if (tag !== 10) {
|
|
1332
|
-
break;
|
|
1333
|
-
}
|
|
1334
|
-
message.name = reader.string();
|
|
1335
|
-
continue;
|
|
1336
|
-
}
|
|
1337
|
-
case 2: {
|
|
1338
|
-
if (tag !== 18) {
|
|
1339
|
-
break;
|
|
1340
|
-
}
|
|
1341
|
-
message.triggers.push(reader.string());
|
|
1342
|
-
continue;
|
|
1343
|
-
}
|
|
1344
|
-
case 3: {
|
|
1345
|
-
if (tag !== 26) {
|
|
1346
|
-
break;
|
|
1347
|
-
}
|
|
1348
|
-
message.actionsJson = reader.string();
|
|
1349
|
-
continue;
|
|
1350
|
-
}
|
|
1351
|
-
case 4: {
|
|
1352
|
-
if (tag !== 34) {
|
|
1353
|
-
break;
|
|
1354
|
-
}
|
|
1355
|
-
message.reply = reader.string();
|
|
1356
|
-
continue;
|
|
1357
|
-
}
|
|
1358
|
-
}
|
|
1359
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1360
|
-
break;
|
|
1361
|
-
}
|
|
1362
|
-
reader.skip(tag & 7);
|
|
1363
|
-
}
|
|
1364
|
-
return message;
|
|
1365
|
-
},
|
|
1366
|
-
create(base) {
|
|
1367
|
-
return exports.CreateRoutineRequest.fromPartial(base ?? {});
|
|
1368
|
-
},
|
|
1369
|
-
fromPartial(object) {
|
|
1370
|
-
const message = createBaseCreateRoutineRequest();
|
|
1371
|
-
message.name = object.name ?? "";
|
|
1372
|
-
message.triggers = object.triggers?.map((e) => e) || [];
|
|
1373
|
-
message.actionsJson = object.actionsJson ?? "";
|
|
1374
|
-
message.reply = object.reply ?? "";
|
|
1375
|
-
return message;
|
|
1376
|
-
},
|
|
1377
|
-
};
|
|
1378
|
-
function createBaseCreateRoutineResponse() {
|
|
1379
|
-
return { ok: false, id: 0, message: "" };
|
|
1380
|
-
}
|
|
1381
|
-
exports.CreateRoutineResponse = {
|
|
1382
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1383
|
-
if (message.ok !== false) {
|
|
1384
|
-
writer.uint32(8).bool(message.ok);
|
|
1385
|
-
}
|
|
1386
|
-
if (message.id !== 0) {
|
|
1387
|
-
writer.uint32(16).int32(message.id);
|
|
1388
|
-
}
|
|
1389
|
-
if (message.message !== "") {
|
|
1390
|
-
writer.uint32(26).string(message.message);
|
|
1391
|
-
}
|
|
1392
|
-
return writer;
|
|
1393
|
-
},
|
|
1394
|
-
decode(input, length) {
|
|
1395
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1396
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1397
|
-
const message = createBaseCreateRoutineResponse();
|
|
1398
|
-
while (reader.pos < end) {
|
|
1399
|
-
const tag = reader.uint32();
|
|
1400
|
-
switch (tag >>> 3) {
|
|
1401
|
-
case 1: {
|
|
1402
|
-
if (tag !== 8) {
|
|
1403
|
-
break;
|
|
1404
|
-
}
|
|
1405
|
-
message.ok = reader.bool();
|
|
1406
|
-
continue;
|
|
1407
|
-
}
|
|
1408
|
-
case 2: {
|
|
1409
|
-
if (tag !== 16) {
|
|
1410
|
-
break;
|
|
1411
|
-
}
|
|
1412
|
-
message.id = reader.int32();
|
|
1413
|
-
continue;
|
|
1414
|
-
}
|
|
1415
|
-
case 3: {
|
|
1416
|
-
if (tag !== 26) {
|
|
1417
|
-
break;
|
|
1418
|
-
}
|
|
1419
|
-
message.message = reader.string();
|
|
1420
|
-
continue;
|
|
1421
|
-
}
|
|
1422
|
-
}
|
|
1423
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1424
|
-
break;
|
|
1425
|
-
}
|
|
1426
|
-
reader.skip(tag & 7);
|
|
1427
|
-
}
|
|
1428
|
-
return message;
|
|
1429
|
-
},
|
|
1430
|
-
create(base) {
|
|
1431
|
-
return exports.CreateRoutineResponse.fromPartial(base ?? {});
|
|
1432
|
-
},
|
|
1433
|
-
fromPartial(object) {
|
|
1434
|
-
const message = createBaseCreateRoutineResponse();
|
|
1435
|
-
message.ok = object.ok ?? false;
|
|
1436
|
-
message.id = object.id ?? 0;
|
|
1437
|
-
message.message = object.message ?? "";
|
|
1438
|
-
return message;
|
|
1439
|
-
},
|
|
1440
|
-
};
|
|
1441
|
-
function createBaseUpdateRoutineRequest() {
|
|
1442
|
-
return { id: 0, name: "", triggers: [], actionsJson: "", reply: "" };
|
|
1443
|
-
}
|
|
1444
|
-
exports.UpdateRoutineRequest = {
|
|
1445
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1446
|
-
if (message.id !== 0) {
|
|
1447
|
-
writer.uint32(8).int32(message.id);
|
|
1448
|
-
}
|
|
1449
|
-
if (message.name !== "") {
|
|
1450
|
-
writer.uint32(18).string(message.name);
|
|
1451
|
-
}
|
|
1452
|
-
for (const v of message.triggers) {
|
|
1453
|
-
writer.uint32(26).string(v);
|
|
1454
|
-
}
|
|
1455
|
-
if (message.actionsJson !== "") {
|
|
1456
|
-
writer.uint32(34).string(message.actionsJson);
|
|
1457
|
-
}
|
|
1458
|
-
if (message.reply !== "") {
|
|
1459
|
-
writer.uint32(42).string(message.reply);
|
|
1460
|
-
}
|
|
1461
|
-
return writer;
|
|
1462
|
-
},
|
|
1463
|
-
decode(input, length) {
|
|
1464
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1465
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1466
|
-
const message = createBaseUpdateRoutineRequest();
|
|
1467
|
-
while (reader.pos < end) {
|
|
1468
|
-
const tag = reader.uint32();
|
|
1469
|
-
switch (tag >>> 3) {
|
|
1470
|
-
case 1: {
|
|
1471
|
-
if (tag !== 8) {
|
|
1472
|
-
break;
|
|
1473
|
-
}
|
|
1474
|
-
message.id = reader.int32();
|
|
1475
|
-
continue;
|
|
1476
|
-
}
|
|
1477
|
-
case 2: {
|
|
1478
|
-
if (tag !== 18) {
|
|
1479
|
-
break;
|
|
1480
|
-
}
|
|
1481
|
-
message.name = reader.string();
|
|
1482
|
-
continue;
|
|
1483
|
-
}
|
|
1484
|
-
case 3: {
|
|
1485
|
-
if (tag !== 26) {
|
|
1486
|
-
break;
|
|
1487
|
-
}
|
|
1488
|
-
message.triggers.push(reader.string());
|
|
1489
|
-
continue;
|
|
1490
|
-
}
|
|
1491
|
-
case 4: {
|
|
1492
|
-
if (tag !== 34) {
|
|
1493
|
-
break;
|
|
1494
|
-
}
|
|
1495
|
-
message.actionsJson = reader.string();
|
|
1496
|
-
continue;
|
|
1497
|
-
}
|
|
1498
|
-
case 5: {
|
|
1499
|
-
if (tag !== 42) {
|
|
1500
|
-
break;
|
|
1501
|
-
}
|
|
1502
|
-
message.reply = reader.string();
|
|
1503
|
-
continue;
|
|
1504
|
-
}
|
|
1505
|
-
}
|
|
1506
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1507
|
-
break;
|
|
1508
|
-
}
|
|
1509
|
-
reader.skip(tag & 7);
|
|
1510
|
-
}
|
|
1511
|
-
return message;
|
|
1512
|
-
},
|
|
1513
|
-
create(base) {
|
|
1514
|
-
return exports.UpdateRoutineRequest.fromPartial(base ?? {});
|
|
1515
|
-
},
|
|
1516
|
-
fromPartial(object) {
|
|
1517
|
-
const message = createBaseUpdateRoutineRequest();
|
|
1518
|
-
message.id = object.id ?? 0;
|
|
1519
|
-
message.name = object.name ?? "";
|
|
1520
|
-
message.triggers = object.triggers?.map((e) => e) || [];
|
|
1521
|
-
message.actionsJson = object.actionsJson ?? "";
|
|
1522
|
-
message.reply = object.reply ?? "";
|
|
1523
|
-
return message;
|
|
1524
|
-
},
|
|
1525
|
-
};
|
|
1526
|
-
function createBaseDeleteRoutineRequest() {
|
|
1527
|
-
return { id: 0 };
|
|
1528
|
-
}
|
|
1529
|
-
exports.DeleteRoutineRequest = {
|
|
1530
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1531
|
-
if (message.id !== 0) {
|
|
1532
|
-
writer.uint32(8).int32(message.id);
|
|
1533
|
-
}
|
|
1534
|
-
return writer;
|
|
1535
|
-
},
|
|
1536
|
-
decode(input, length) {
|
|
1537
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1538
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1539
|
-
const message = createBaseDeleteRoutineRequest();
|
|
1540
|
-
while (reader.pos < end) {
|
|
1541
|
-
const tag = reader.uint32();
|
|
1542
|
-
switch (tag >>> 3) {
|
|
1543
|
-
case 1: {
|
|
1544
|
-
if (tag !== 8) {
|
|
1545
|
-
break;
|
|
1546
|
-
}
|
|
1547
|
-
message.id = reader.int32();
|
|
1548
|
-
continue;
|
|
1549
|
-
}
|
|
1550
|
-
}
|
|
1551
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1552
|
-
break;
|
|
1553
|
-
}
|
|
1554
|
-
reader.skip(tag & 7);
|
|
1555
|
-
}
|
|
1556
|
-
return message;
|
|
1557
|
-
},
|
|
1558
|
-
create(base) {
|
|
1559
|
-
return exports.DeleteRoutineRequest.fromPartial(base ?? {});
|
|
1560
|
-
},
|
|
1561
|
-
fromPartial(object) {
|
|
1562
|
-
const message = createBaseDeleteRoutineRequest();
|
|
1563
|
-
message.id = object.id ?? 0;
|
|
1564
|
-
return message;
|
|
1565
|
-
},
|
|
1566
|
-
};
|
|
1567
1177
|
function createBaseTrigger() {
|
|
1568
1178
|
return {
|
|
1569
1179
|
id: "",
|
package/dist/hannah.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { type CallOptions, type ChannelCredentials, Client, type ClientDuplexStr
|
|
|
2
2
|
import { AgentCommand, AgentMessage, AgentNotification } from "./agent";
|
|
3
3
|
import { AutomationCommand, AutomationMessage } from "./automation";
|
|
4
4
|
import { CarStateResponse, GetAllCarStatesResponse } from "./car_state";
|
|
5
|
-
import { AnnounceRequest, CreateAlarmRequest, CreateAlarmResponse, CreateBleTagRequest, CreateBleTagResponse, CreateCarRequest, CreateCarResponse, CreateGroupRequest,
|
|
5
|
+
import { AnnounceRequest, CreateAlarmRequest, CreateAlarmResponse, CreateBleTagRequest, CreateBleTagResponse, CreateCarRequest, CreateCarResponse, CreateGroupRequest, CreateTriggerRequest, DeleteAlarmRequest, DeleteBleTagRequest, DeleteCarRequest, DeleteGroupRequest, DeleteSatelliteRequest, DeleteTriggerRequest, GetAlarmsResponse, GetBleTagsResponse, GetCarsResponse, GetGroupsResponse, GetRoomsResponse, GetSatellitesResponse, GetSettingsResponse, GetTriggersResponse, SetGroupRoomsRequest, SetSatelliteDisplayNameRequest, SetSatelliteOwnerRequest, SetSatelliteRoomRequest, SubmitTextRequest, SubmitTextResponse, SubmitVoiceRequest, SubmitVoiceResponse, UpdateAlarmRequest, UpdateBleTagRequest, UpdateCarRequest, UpdateConfigRequest, UpdateGroupRequest, UpdateTriggerRequest } from "./control";
|
|
6
6
|
import { ControlDeviceRequest, GetDevicesResponse } from "./device_control_menu";
|
|
7
7
|
import { EventFilter, HannahEvent, TriggerFirmwareUpdateRequest } from "./event_stream";
|
|
8
8
|
import { ProvisionSatelliteRequest } from "./satellite_provisioning";
|
|
@@ -304,43 +304,7 @@ export declare const HannahServiceService: {
|
|
|
304
304
|
readonly responseSerialize: (value: StatusResponse) => Buffer;
|
|
305
305
|
readonly responseDeserialize: (value: Buffer) => StatusResponse;
|
|
306
306
|
};
|
|
307
|
-
/** ---
|
|
308
|
-
readonly getRoutines: {
|
|
309
|
-
readonly path: "/hannah.HannahService/GetRoutines";
|
|
310
|
-
readonly requestStream: false;
|
|
311
|
-
readonly responseStream: false;
|
|
312
|
-
readonly requestSerialize: (value: Empty) => Buffer;
|
|
313
|
-
readonly requestDeserialize: (value: Buffer) => Empty;
|
|
314
|
-
readonly responseSerialize: (value: GetRoutinesResponse) => Buffer;
|
|
315
|
-
readonly responseDeserialize: (value: Buffer) => GetRoutinesResponse;
|
|
316
|
-
};
|
|
317
|
-
readonly createRoutine: {
|
|
318
|
-
readonly path: "/hannah.HannahService/CreateRoutine";
|
|
319
|
-
readonly requestStream: false;
|
|
320
|
-
readonly responseStream: false;
|
|
321
|
-
readonly requestSerialize: (value: CreateRoutineRequest) => Buffer;
|
|
322
|
-
readonly requestDeserialize: (value: Buffer) => CreateRoutineRequest;
|
|
323
|
-
readonly responseSerialize: (value: CreateRoutineResponse) => Buffer;
|
|
324
|
-
readonly responseDeserialize: (value: Buffer) => CreateRoutineResponse;
|
|
325
|
-
};
|
|
326
|
-
readonly updateRoutine: {
|
|
327
|
-
readonly path: "/hannah.HannahService/UpdateRoutine";
|
|
328
|
-
readonly requestStream: false;
|
|
329
|
-
readonly responseStream: false;
|
|
330
|
-
readonly requestSerialize: (value: UpdateRoutineRequest) => Buffer;
|
|
331
|
-
readonly requestDeserialize: (value: Buffer) => UpdateRoutineRequest;
|
|
332
|
-
readonly responseSerialize: (value: StatusResponse) => Buffer;
|
|
333
|
-
readonly responseDeserialize: (value: Buffer) => StatusResponse;
|
|
334
|
-
};
|
|
335
|
-
readonly deleteRoutine: {
|
|
336
|
-
readonly path: "/hannah.HannahService/DeleteRoutine";
|
|
337
|
-
readonly requestStream: false;
|
|
338
|
-
readonly responseStream: false;
|
|
339
|
-
readonly requestSerialize: (value: DeleteRoutineRequest) => Buffer;
|
|
340
|
-
readonly requestDeserialize: (value: Buffer) => DeleteRoutineRequest;
|
|
341
|
-
readonly responseSerialize: (value: StatusResponse) => Buffer;
|
|
342
|
-
readonly responseDeserialize: (value: Buffer) => StatusResponse;
|
|
343
|
-
};
|
|
307
|
+
/** --- Triggers (Admin-UI, #28) --- */
|
|
344
308
|
readonly getTriggers: {
|
|
345
309
|
readonly path: "/hannah.HannahService/GetTriggers";
|
|
346
310
|
readonly requestStream: false;
|
|
@@ -815,11 +779,7 @@ export interface HannahServiceServer extends UntypedServiceImplementation {
|
|
|
815
779
|
updateGroup: handleUnaryCall<UpdateGroupRequest, StatusResponse>;
|
|
816
780
|
deleteGroup: handleUnaryCall<DeleteGroupRequest, StatusResponse>;
|
|
817
781
|
setGroupRooms: handleUnaryCall<SetGroupRoomsRequest, StatusResponse>;
|
|
818
|
-
/** ---
|
|
819
|
-
getRoutines: handleUnaryCall<Empty, GetRoutinesResponse>;
|
|
820
|
-
createRoutine: handleUnaryCall<CreateRoutineRequest, CreateRoutineResponse>;
|
|
821
|
-
updateRoutine: handleUnaryCall<UpdateRoutineRequest, StatusResponse>;
|
|
822
|
-
deleteRoutine: handleUnaryCall<DeleteRoutineRequest, StatusResponse>;
|
|
782
|
+
/** --- Triggers (Admin-UI, #28) --- */
|
|
823
783
|
getTriggers: handleUnaryCall<Empty, GetTriggersResponse>;
|
|
824
784
|
createTrigger: handleUnaryCall<CreateTriggerRequest, StatusResponse>;
|
|
825
785
|
updateTrigger: handleUnaryCall<UpdateTriggerRequest, StatusResponse>;
|
|
@@ -1056,19 +1016,7 @@ export interface HannahServiceClient extends Client {
|
|
|
1056
1016
|
setGroupRooms(request: SetGroupRoomsRequest, callback: (error: ServiceError | null, response: StatusResponse) => void): ClientUnaryCall;
|
|
1057
1017
|
setGroupRooms(request: SetGroupRoomsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: StatusResponse) => void): ClientUnaryCall;
|
|
1058
1018
|
setGroupRooms(request: SetGroupRoomsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: StatusResponse) => void): ClientUnaryCall;
|
|
1059
|
-
/** ---
|
|
1060
|
-
getRoutines(request: Empty, callback: (error: ServiceError | null, response: GetRoutinesResponse) => void): ClientUnaryCall;
|
|
1061
|
-
getRoutines(request: Empty, metadata: Metadata, callback: (error: ServiceError | null, response: GetRoutinesResponse) => void): ClientUnaryCall;
|
|
1062
|
-
getRoutines(request: Empty, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetRoutinesResponse) => void): ClientUnaryCall;
|
|
1063
|
-
createRoutine(request: CreateRoutineRequest, callback: (error: ServiceError | null, response: CreateRoutineResponse) => void): ClientUnaryCall;
|
|
1064
|
-
createRoutine(request: CreateRoutineRequest, metadata: Metadata, callback: (error: ServiceError | null, response: CreateRoutineResponse) => void): ClientUnaryCall;
|
|
1065
|
-
createRoutine(request: CreateRoutineRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: CreateRoutineResponse) => void): ClientUnaryCall;
|
|
1066
|
-
updateRoutine(request: UpdateRoutineRequest, callback: (error: ServiceError | null, response: StatusResponse) => void): ClientUnaryCall;
|
|
1067
|
-
updateRoutine(request: UpdateRoutineRequest, metadata: Metadata, callback: (error: ServiceError | null, response: StatusResponse) => void): ClientUnaryCall;
|
|
1068
|
-
updateRoutine(request: UpdateRoutineRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: StatusResponse) => void): ClientUnaryCall;
|
|
1069
|
-
deleteRoutine(request: DeleteRoutineRequest, callback: (error: ServiceError | null, response: StatusResponse) => void): ClientUnaryCall;
|
|
1070
|
-
deleteRoutine(request: DeleteRoutineRequest, metadata: Metadata, callback: (error: ServiceError | null, response: StatusResponse) => void): ClientUnaryCall;
|
|
1071
|
-
deleteRoutine(request: DeleteRoutineRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: StatusResponse) => void): ClientUnaryCall;
|
|
1019
|
+
/** --- Triggers (Admin-UI, #28) --- */
|
|
1072
1020
|
getTriggers(request: Empty, callback: (error: ServiceError | null, response: GetTriggersResponse) => void): ClientUnaryCall;
|
|
1073
1021
|
getTriggers(request: Empty, metadata: Metadata, callback: (error: ServiceError | null, response: GetTriggersResponse) => void): ClientUnaryCall;
|
|
1074
1022
|
getTriggers(request: Empty, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetTriggersResponse) => void): ClientUnaryCall;
|
package/dist/hannah.js
CHANGED
|
@@ -312,43 +312,7 @@ exports.HannahServiceService = {
|
|
|
312
312
|
responseSerialize: (value) => Buffer.from(shared_1.StatusResponse.encode(value).finish()),
|
|
313
313
|
responseDeserialize: (value) => shared_1.StatusResponse.decode(value),
|
|
314
314
|
},
|
|
315
|
-
/** ---
|
|
316
|
-
getRoutines: {
|
|
317
|
-
path: "/hannah.HannahService/GetRoutines",
|
|
318
|
-
requestStream: false,
|
|
319
|
-
responseStream: false,
|
|
320
|
-
requestSerialize: (value) => Buffer.from(shared_1.Empty.encode(value).finish()),
|
|
321
|
-
requestDeserialize: (value) => shared_1.Empty.decode(value),
|
|
322
|
-
responseSerialize: (value) => Buffer.from(control_1.GetRoutinesResponse.encode(value).finish()),
|
|
323
|
-
responseDeserialize: (value) => control_1.GetRoutinesResponse.decode(value),
|
|
324
|
-
},
|
|
325
|
-
createRoutine: {
|
|
326
|
-
path: "/hannah.HannahService/CreateRoutine",
|
|
327
|
-
requestStream: false,
|
|
328
|
-
responseStream: false,
|
|
329
|
-
requestSerialize: (value) => Buffer.from(control_1.CreateRoutineRequest.encode(value).finish()),
|
|
330
|
-
requestDeserialize: (value) => control_1.CreateRoutineRequest.decode(value),
|
|
331
|
-
responseSerialize: (value) => Buffer.from(control_1.CreateRoutineResponse.encode(value).finish()),
|
|
332
|
-
responseDeserialize: (value) => control_1.CreateRoutineResponse.decode(value),
|
|
333
|
-
},
|
|
334
|
-
updateRoutine: {
|
|
335
|
-
path: "/hannah.HannahService/UpdateRoutine",
|
|
336
|
-
requestStream: false,
|
|
337
|
-
responseStream: false,
|
|
338
|
-
requestSerialize: (value) => Buffer.from(control_1.UpdateRoutineRequest.encode(value).finish()),
|
|
339
|
-
requestDeserialize: (value) => control_1.UpdateRoutineRequest.decode(value),
|
|
340
|
-
responseSerialize: (value) => Buffer.from(shared_1.StatusResponse.encode(value).finish()),
|
|
341
|
-
responseDeserialize: (value) => shared_1.StatusResponse.decode(value),
|
|
342
|
-
},
|
|
343
|
-
deleteRoutine: {
|
|
344
|
-
path: "/hannah.HannahService/DeleteRoutine",
|
|
345
|
-
requestStream: false,
|
|
346
|
-
responseStream: false,
|
|
347
|
-
requestSerialize: (value) => Buffer.from(control_1.DeleteRoutineRequest.encode(value).finish()),
|
|
348
|
-
requestDeserialize: (value) => control_1.DeleteRoutineRequest.decode(value),
|
|
349
|
-
responseSerialize: (value) => Buffer.from(shared_1.StatusResponse.encode(value).finish()),
|
|
350
|
-
responseDeserialize: (value) => shared_1.StatusResponse.decode(value),
|
|
351
|
-
},
|
|
315
|
+
/** --- Triggers (Admin-UI, #28) --- */
|
|
352
316
|
getTriggers: {
|
|
353
317
|
path: "/hannah.HannahService/GetTriggers",
|
|
354
318
|
requestStream: false,
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const PROTO_VERSION =
|
|
1
|
+
export declare const PROTO_VERSION = 3;
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m1kad0/hannah-proto",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1",
|
|
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",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@grpc/grpc-js": "1.14.4",
|
|
26
26
|
"ts-proto": "2.12.0",
|
|
27
|
-
"typescript": "
|
|
27
|
+
"typescript": "7.0.2"
|
|
28
28
|
},
|
|
29
29
|
"allowScripts": {
|
|
30
30
|
"protobufjs@7.6.5": true
|