@m1kad0/hannah-proto 4.8.0 → 5.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/README.md +20 -12
- package/dist/compat_interceptor.js +1 -1
- package/dist/compat_versions.js +89 -89
- package/dist/descriptor.binpb +0 -0
- package/dist/index.d.ts +1 -22
- package/dist/index.js +2 -23
- package/dist/{activity_log.d.ts → v2/activity_log.d.ts} +1 -1
- package/dist/{activity_log.js → v2/activity_log.js} +2 -2
- package/dist/{agent.d.ts → v2/agent.d.ts} +61 -86
- package/dist/{agent.js → v2/agent.js} +224 -426
- package/dist/{automation.d.ts → v2/automation.d.ts} +1 -1
- package/dist/{automation.js → v2/automation.js} +2 -2
- package/dist/{car_state.d.ts → v2/car_state.d.ts} +1 -1
- package/dist/{car_state.js → v2/car_state.js} +2 -2
- package/dist/{channel.d.ts → v2/channel.d.ts} +1 -1
- package/dist/{channel.js → v2/channel.js} +2 -2
- package/dist/{control.d.ts → v2/control.d.ts} +1 -1
- package/dist/{control.js → v2/control.js} +2 -2
- package/dist/v2/device_control_menu.d.ts +67 -0
- package/dist/v2/device_control_menu.js +328 -0
- package/dist/v2/device_model.d.ts +199 -0
- package/dist/v2/device_model.js +713 -0
- package/dist/{event_stream.d.ts → v2/event_stream.d.ts} +1 -1
- package/dist/{event_stream.js → v2/event_stream.js} +2 -2
- package/dist/{hannah.d.ts → v2/hannah.d.ts} +86 -86
- package/dist/{hannah.js → v2/hannah.js} +88 -88
- package/dist/v2/index.d.ts +23 -0
- package/dist/v2/index.js +59 -0
- package/dist/{infrastructure.d.ts → v2/infrastructure.d.ts} +1 -1
- package/dist/{infrastructure.js → v2/infrastructure.js} +2 -2
- package/dist/{logging.d.ts → v2/logging.d.ts} +4 -4
- package/dist/{logging.js → v2/logging.js} +6 -6
- package/dist/{messages.d.ts → v2/messages.d.ts} +1 -1
- package/dist/{messages.js → v2/messages.js} +2 -2
- package/dist/{satellite.d.ts → v2/satellite.d.ts} +1 -1
- package/dist/{satellite.js → v2/satellite.js} +2 -2
- package/dist/{satellite_provisioning.d.ts → v2/satellite_provisioning.d.ts} +1 -1
- package/dist/{satellite_provisioning.js → v2/satellite_provisioning.js} +2 -2
- package/dist/{satellite_proxy.d.ts → v2/satellite_proxy.d.ts} +1 -1
- package/dist/{satellite_proxy.js → v2/satellite_proxy.js} +2 -2
- package/dist/{shared.d.ts → v2/shared.d.ts} +1 -28
- package/dist/v2/shared.js +113 -0
- package/dist/{speaker_enrollment.d.ts → v2/speaker_enrollment.d.ts} +1 -1
- package/dist/{speaker_enrollment.js → v2/speaker_enrollment.js} +2 -2
- package/dist/{timer_admin.d.ts → v2/timer_admin.d.ts} +1 -1
- package/dist/{timer_admin.js → v2/timer_admin.js} +2 -2
- package/dist/{timer_service.d.ts → v2/timer_service.d.ts} +1 -1
- package/dist/{timer_service.js → v2/timer_service.js} +2 -2
- package/dist/{user_registry.d.ts → v2/user_registry.d.ts} +1 -1
- package/dist/{user_registry.js → v2/user_registry.js} +2 -2
- package/dist/{wakeword_capture.d.ts → v2/wakeword_capture.d.ts} +1 -1
- package/dist/{wakeword_capture.js → v2/wakeword_capture.js} +2 -2
- package/dist/{weather.d.ts → v2/weather.d.ts} +1 -1
- package/dist/{weather.js → v2/weather.js} +2 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/dist/device_control_menu.d.ts +0 -88
- package/dist/device_control_menu.js +0 -629
- package/dist/shared.js +0 -249
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export * as activity_log from './activity_log';
|
|
2
|
+
export * as agent from './agent';
|
|
3
|
+
export * as automation from './automation';
|
|
4
|
+
export * as car_state from './car_state';
|
|
5
|
+
export * as channel from './channel';
|
|
6
|
+
export * as control from './control';
|
|
7
|
+
export * as device_control_menu from './device_control_menu';
|
|
8
|
+
export * as device_model from './device_model';
|
|
9
|
+
export * as event_stream from './event_stream';
|
|
10
|
+
export * as hannah from './hannah';
|
|
11
|
+
export * as infrastructure from './infrastructure';
|
|
12
|
+
export * as logging from './logging';
|
|
13
|
+
export * as messages from './messages';
|
|
14
|
+
export * as satellite from './satellite';
|
|
15
|
+
export * as satellite_provisioning from './satellite_provisioning';
|
|
16
|
+
export * as satellite_proxy from './satellite_proxy';
|
|
17
|
+
export * as shared from './shared';
|
|
18
|
+
export * as speaker_enrollment from './speaker_enrollment';
|
|
19
|
+
export * as timer_admin from './timer_admin';
|
|
20
|
+
export * as timer_service from './timer_service';
|
|
21
|
+
export * as user_registry from './user_registry';
|
|
22
|
+
export * as wakeword_capture from './wakeword_capture';
|
|
23
|
+
export * as weather from './weather';
|
package/dist/v2/index.js
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.weather = exports.wakeword_capture = exports.user_registry = exports.timer_service = exports.timer_admin = exports.speaker_enrollment = exports.shared = exports.satellite_proxy = exports.satellite_provisioning = exports.satellite = exports.messages = exports.logging = exports.infrastructure = exports.hannah = exports.event_stream = exports.device_model = exports.device_control_menu = exports.control = exports.channel = exports.car_state = exports.automation = exports.agent = exports.activity_log = void 0;
|
|
37
|
+
exports.activity_log = __importStar(require("./activity_log"));
|
|
38
|
+
exports.agent = __importStar(require("./agent"));
|
|
39
|
+
exports.automation = __importStar(require("./automation"));
|
|
40
|
+
exports.car_state = __importStar(require("./car_state"));
|
|
41
|
+
exports.channel = __importStar(require("./channel"));
|
|
42
|
+
exports.control = __importStar(require("./control"));
|
|
43
|
+
exports.device_control_menu = __importStar(require("./device_control_menu"));
|
|
44
|
+
exports.device_model = __importStar(require("./device_model"));
|
|
45
|
+
exports.event_stream = __importStar(require("./event_stream"));
|
|
46
|
+
exports.hannah = __importStar(require("./hannah"));
|
|
47
|
+
exports.infrastructure = __importStar(require("./infrastructure"));
|
|
48
|
+
exports.logging = __importStar(require("./logging"));
|
|
49
|
+
exports.messages = __importStar(require("./messages"));
|
|
50
|
+
exports.satellite = __importStar(require("./satellite"));
|
|
51
|
+
exports.satellite_provisioning = __importStar(require("./satellite_provisioning"));
|
|
52
|
+
exports.satellite_proxy = __importStar(require("./satellite_proxy"));
|
|
53
|
+
exports.shared = __importStar(require("./shared"));
|
|
54
|
+
exports.speaker_enrollment = __importStar(require("./speaker_enrollment"));
|
|
55
|
+
exports.timer_admin = __importStar(require("./timer_admin"));
|
|
56
|
+
exports.timer_service = __importStar(require("./timer_service"));
|
|
57
|
+
exports.user_registry = __importStar(require("./user_registry"));
|
|
58
|
+
exports.wakeword_capture = __importStar(require("./wakeword_capture"));
|
|
59
|
+
exports.weather = __importStar(require("./weather"));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
-
export declare const protobufPackage = "hannah";
|
|
2
|
+
export declare const protobufPackage = "hannah.v2";
|
|
3
3
|
/**
|
|
4
4
|
* Infrastructure services that Hannah Core announces to all connected components
|
|
5
5
|
* (service discovery). Typed on purpose — a new kind of service gets a new enum value,
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v2.12.1
|
|
5
5
|
// protoc unknown
|
|
6
|
-
// source: hannah/infrastructure.proto
|
|
6
|
+
// source: hannah/v2/infrastructure.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.LogCollectorRegistered = exports.LogCollectorCommand = exports.LogCollectorRegister = exports.LogCollectorMessage = exports.ServiceUnavailable = exports.ServiceAvailable = exports.InfrastructureSnapshot = exports.InfrastructureMessage = exports.InfrastructureFilter = exports.ServiceEndpoint = exports.ServiceKind = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
|
-
exports.protobufPackage = "hannah";
|
|
11
|
+
exports.protobufPackage = "hannah.v2";
|
|
12
12
|
/**
|
|
13
13
|
* Infrastructure services that Hannah Core announces to all connected components
|
|
14
14
|
* (service discovery). Typed on purpose — a new kind of service gets a new enum value,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
2
|
import { type CallOptions, type ChannelCredentials, Client, type ClientOptions, type ClientReadableStream, type ClientUnaryCall, type ClientWritableStream, type handleClientStreamingCall, type handleServerStreamingCall, type handleUnaryCall, type Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
3
3
|
import { Empty } from "./shared";
|
|
4
|
-
export declare const protobufPackage = "hannah";
|
|
4
|
+
export declare const protobufPackage = "hannah.v2";
|
|
5
5
|
export declare enum LogLevel {
|
|
6
6
|
LOG_LEVEL_UNSPECIFIED = 0,
|
|
7
7
|
LOG_LEVEL_DEBUG = 1,
|
|
@@ -99,7 +99,7 @@ export declare const LogServiceService: {
|
|
|
99
99
|
* entries/gaps. The stream stays open for as long as the component runs.
|
|
100
100
|
*/
|
|
101
101
|
readonly ship: {
|
|
102
|
-
readonly path: "/hannah.LogService/Ship";
|
|
102
|
+
readonly path: "/hannah.v2.LogService/Ship";
|
|
103
103
|
readonly requestStream: true;
|
|
104
104
|
readonly responseStream: false;
|
|
105
105
|
readonly requestSerialize: (value: ShipMessage) => Buffer;
|
|
@@ -109,7 +109,7 @@ export declare const LogServiceService: {
|
|
|
109
109
|
};
|
|
110
110
|
/** Which sources the collector currently holds logs for, and how far back. */
|
|
111
111
|
readonly getSources: {
|
|
112
|
-
readonly path: "/hannah.LogService/GetSources";
|
|
112
|
+
readonly path: "/hannah.v2.LogService/GetSources";
|
|
113
113
|
readonly requestStream: false;
|
|
114
114
|
readonly responseStream: false;
|
|
115
115
|
readonly requestSerialize: (value: Empty) => Buffer;
|
|
@@ -122,7 +122,7 @@ export declare const LogServiceService: {
|
|
|
122
122
|
* split into chunks — the client concatenates ExportChunk.data in order.
|
|
123
123
|
*/
|
|
124
124
|
readonly export: {
|
|
125
|
-
readonly path: "/hannah.LogService/Export";
|
|
125
|
+
readonly path: "/hannah.v2.LogService/Export";
|
|
126
126
|
readonly requestStream: false;
|
|
127
127
|
readonly responseStream: true;
|
|
128
128
|
readonly requestSerialize: (value: ExportRequest) => Buffer;
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v2.12.1
|
|
5
5
|
// protoc unknown
|
|
6
|
-
// source: hannah/logging.proto
|
|
6
|
+
// source: hannah/v2/logging.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.LogServiceClient = exports.LogServiceService = exports.ExportChunk = exports.ExportRequest = exports.GetSourcesResponse = exports.LogSource = exports.ShipAck = exports.LogGap = exports.LogEntry = exports.ShipHello = exports.ShipMessage = exports.LogCategory = exports.LogLevel = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
11
|
const grpc_js_1 = require("@grpc/grpc-js");
|
|
12
12
|
const shared_1 = require("./shared");
|
|
13
|
-
exports.protobufPackage = "hannah";
|
|
13
|
+
exports.protobufPackage = "hannah.v2";
|
|
14
14
|
var LogLevel;
|
|
15
15
|
(function (LogLevel) {
|
|
16
16
|
LogLevel[LogLevel["LOG_LEVEL_UNSPECIFIED"] = 0] = "LOG_LEVEL_UNSPECIFIED";
|
|
@@ -740,7 +740,7 @@ exports.LogServiceService = {
|
|
|
740
740
|
* entries/gaps. The stream stays open for as long as the component runs.
|
|
741
741
|
*/
|
|
742
742
|
ship: {
|
|
743
|
-
path: "/hannah.LogService/Ship",
|
|
743
|
+
path: "/hannah.v2.LogService/Ship",
|
|
744
744
|
requestStream: true,
|
|
745
745
|
responseStream: false,
|
|
746
746
|
requestSerialize: (value) => Buffer.from(exports.ShipMessage.encode(value).finish()),
|
|
@@ -750,7 +750,7 @@ exports.LogServiceService = {
|
|
|
750
750
|
},
|
|
751
751
|
/** Which sources the collector currently holds logs for, and how far back. */
|
|
752
752
|
getSources: {
|
|
753
|
-
path: "/hannah.LogService/GetSources",
|
|
753
|
+
path: "/hannah.v2.LogService/GetSources",
|
|
754
754
|
requestStream: false,
|
|
755
755
|
responseStream: false,
|
|
756
756
|
requestSerialize: (value) => Buffer.from(shared_1.Empty.encode(value).finish()),
|
|
@@ -763,7 +763,7 @@ exports.LogServiceService = {
|
|
|
763
763
|
* split into chunks — the client concatenates ExportChunk.data in order.
|
|
764
764
|
*/
|
|
765
765
|
export: {
|
|
766
|
-
path: "/hannah.LogService/Export",
|
|
766
|
+
path: "/hannah.v2.LogService/Export",
|
|
767
767
|
requestStream: false,
|
|
768
768
|
responseStream: true,
|
|
769
769
|
requestSerialize: (value) => Buffer.from(exports.ExportRequest.encode(value).finish()),
|
|
@@ -772,4 +772,4 @@ exports.LogServiceService = {
|
|
|
772
772
|
responseDeserialize: (value) => exports.ExportChunk.decode(value),
|
|
773
773
|
},
|
|
774
774
|
};
|
|
775
|
-
exports.LogServiceClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.LogServiceService, "hannah.LogService");
|
|
775
|
+
exports.LogServiceClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.LogServiceService, "hannah.v2.LogService");
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v2.12.1
|
|
5
5
|
// protoc unknown
|
|
6
|
-
// source: hannah/messages.proto
|
|
6
|
+
// source: hannah/v2/messages.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.DeleteMessageRequest = exports.ListMessagesResponse = exports.ListMessagesRequest = exports.CreateMessageRequest = exports.Message = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
|
-
exports.protobufPackage = "hannah";
|
|
11
|
+
exports.protobufPackage = "hannah.v2";
|
|
12
12
|
function createBaseMessage() {
|
|
13
13
|
return { id: 0, userId: 0, content: "", source: "", createdAt: "", senderUserId: 0, replyToId: 0 };
|
|
14
14
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
-
export declare const protobufPackage = "hannah";
|
|
2
|
+
export declare const protobufPackage = "hannah.v2";
|
|
3
3
|
export interface Satellite {
|
|
4
4
|
deviceId: string;
|
|
5
5
|
/** live-reported room (UDP/proxy registration); empty if not connected */
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v2.12.1
|
|
5
5
|
// protoc unknown
|
|
6
|
-
// source: hannah/satellite.proto
|
|
6
|
+
// source: hannah/v2/satellite.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.DeleteSatelliteRequest = exports.SetSatelliteSmalltalkFollowupRequest = exports.SetSatelliteOwnerRequest = exports.SetSatelliteDisplayNameRequest = exports.SetSatelliteRoomRequest = exports.GetSatellitesResponse = exports.Satellite = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
|
-
exports.protobufPackage = "hannah";
|
|
11
|
+
exports.protobufPackage = "hannah.v2";
|
|
12
12
|
function createBaseSatellite() {
|
|
13
13
|
return {
|
|
14
14
|
deviceId: "",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
-
export declare const protobufPackage = "hannah";
|
|
2
|
+
export declare const protobufPackage = "hannah.v2";
|
|
3
3
|
/**
|
|
4
4
|
* Sent by the ioBroker adapter (WebFlasher) before flashing a satellite.
|
|
5
5
|
* Hannah stores the seed + pre-config; when the satellite first connects with
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v2.12.1
|
|
5
5
|
// protoc unknown
|
|
6
|
-
// source: hannah/satellite_provisioning.proto
|
|
6
|
+
// source: hannah/v2/satellite_provisioning.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.ProvisionSatelliteRequest = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
|
-
exports.protobufPackage = "hannah";
|
|
11
|
+
exports.protobufPackage = "hannah.v2";
|
|
12
12
|
function createBaseProvisionSatelliteRequest() {
|
|
13
13
|
return { seed: "", displayName: "", roomId: "" };
|
|
14
14
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
-
export declare const protobufPackage = "hannah";
|
|
2
|
+
export declare const protobufPackage = "hannah.v2";
|
|
3
3
|
/** Sent by the proxy periodically to keep the RegisterProxy stream alive. */
|
|
4
4
|
export interface ProxyHeartbeat {
|
|
5
5
|
/** human-readable identifier, e.g. "hannah-proxy-living-room" */
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v2.12.1
|
|
5
5
|
// protoc unknown
|
|
6
|
-
// source: hannah/satellite_proxy.proto
|
|
6
|
+
// source: hannah/v2/satellite_proxy.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.SatelliteRegistration = exports.SubmitSatelliteAudioResponse = exports.SubmitSatelliteAudioRequest = exports.PlayAudioCommand = exports.ProxyAck = exports.ProxyCommand = exports.ProxyHeartbeat = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
|
-
exports.protobufPackage = "hannah";
|
|
11
|
+
exports.protobufPackage = "hannah.v2";
|
|
12
12
|
function createBaseProxyHeartbeat() {
|
|
13
13
|
return { proxyId: "", udpHost: "", udpPort: 0 };
|
|
14
14
|
}
|
|
@@ -1,40 +1,13 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
-
export declare const protobufPackage = "hannah";
|
|
3
|
-
/**
|
|
4
|
-
* Classification of an ioBroker state's value, derived from common.type/role/states.
|
|
5
|
-
* Lets consumers (e.g. the WebUI trigger editor) offer the right operators/input widget
|
|
6
|
-
* per state instead of requiring a free-text ioBroker state ID.
|
|
7
|
-
*/
|
|
8
|
-
export declare enum StateType {
|
|
9
|
-
STATE_TYPE_UNSPECIFIED = 0,
|
|
10
|
-
BOOLEAN = 1,
|
|
11
|
-
NUMERIC = 2,
|
|
12
|
-
ENUM = 3,
|
|
13
|
-
COLOR = 4,
|
|
14
|
-
TEXT = 5,
|
|
15
|
-
UNRECOGNIZED = -1
|
|
16
|
-
}
|
|
2
|
+
export declare const protobufPackage = "hannah.v2";
|
|
17
3
|
export interface Empty {
|
|
18
4
|
}
|
|
19
5
|
export interface StatusResponse {
|
|
20
6
|
ok: boolean;
|
|
21
7
|
message: string;
|
|
22
8
|
}
|
|
23
|
-
/** Allowed values for an ENUM/COLOR state, e.g. from ioBroker's common.states. */
|
|
24
|
-
export interface EnumValues {
|
|
25
|
-
/** raw value -> display label */
|
|
26
|
-
values: {
|
|
27
|
-
[key: string]: string;
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
export interface EnumValues_ValuesEntry {
|
|
31
|
-
key: string;
|
|
32
|
-
value: string;
|
|
33
|
-
}
|
|
34
9
|
export declare const Empty: MessageFns<Empty>;
|
|
35
10
|
export declare const StatusResponse: MessageFns<StatusResponse>;
|
|
36
|
-
export declare const EnumValues: MessageFns<EnumValues>;
|
|
37
|
-
export declare const EnumValues_ValuesEntry: MessageFns<EnumValues_ValuesEntry>;
|
|
38
11
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
|
|
39
12
|
export type DeepPartial<T> = T extends bigint ? string | number | bigint : T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
40
13
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
@@ -0,0 +1,113 @@
|
|
|
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/v2/shared.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.StatusResponse = exports.Empty = exports.protobufPackage = void 0;
|
|
9
|
+
/* eslint-disable */
|
|
10
|
+
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
|
+
exports.protobufPackage = "hannah.v2";
|
|
12
|
+
function createBaseEmpty() {
|
|
13
|
+
return {};
|
|
14
|
+
}
|
|
15
|
+
exports.Empty = {
|
|
16
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
17
|
+
return writer;
|
|
18
|
+
},
|
|
19
|
+
decode(input, length) {
|
|
20
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
21
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
22
|
+
if (previousRecursionDepth >= 100) {
|
|
23
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
24
|
+
}
|
|
25
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
26
|
+
try {
|
|
27
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
28
|
+
const message = createBaseEmpty();
|
|
29
|
+
while (reader.pos < end) {
|
|
30
|
+
const tag = reader.uint32();
|
|
31
|
+
switch (tag >>> 3) {
|
|
32
|
+
}
|
|
33
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
|
+
reader.skip(tag & 7);
|
|
37
|
+
}
|
|
38
|
+
return message;
|
|
39
|
+
}
|
|
40
|
+
finally {
|
|
41
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
create(base) {
|
|
45
|
+
return exports.Empty.fromPartial(base ?? {});
|
|
46
|
+
},
|
|
47
|
+
fromPartial(_) {
|
|
48
|
+
const message = createBaseEmpty();
|
|
49
|
+
return message;
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
function createBaseStatusResponse() {
|
|
53
|
+
return { ok: false, message: "" };
|
|
54
|
+
}
|
|
55
|
+
exports.StatusResponse = {
|
|
56
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
57
|
+
if (message.ok !== false) {
|
|
58
|
+
writer.uint32(8).bool(message.ok);
|
|
59
|
+
}
|
|
60
|
+
if (message.message !== "") {
|
|
61
|
+
writer.uint32(18).string(message.message);
|
|
62
|
+
}
|
|
63
|
+
return writer;
|
|
64
|
+
},
|
|
65
|
+
decode(input, length) {
|
|
66
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
67
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
68
|
+
if (previousRecursionDepth >= 100) {
|
|
69
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
70
|
+
}
|
|
71
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
72
|
+
try {
|
|
73
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
74
|
+
const message = createBaseStatusResponse();
|
|
75
|
+
while (reader.pos < end) {
|
|
76
|
+
const tag = reader.uint32();
|
|
77
|
+
switch (tag >>> 3) {
|
|
78
|
+
case 1: {
|
|
79
|
+
if (tag !== 8) {
|
|
80
|
+
break;
|
|
81
|
+
}
|
|
82
|
+
message.ok = reader.bool();
|
|
83
|
+
continue;
|
|
84
|
+
}
|
|
85
|
+
case 2: {
|
|
86
|
+
if (tag !== 18) {
|
|
87
|
+
break;
|
|
88
|
+
}
|
|
89
|
+
message.message = reader.string();
|
|
90
|
+
continue;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
94
|
+
break;
|
|
95
|
+
}
|
|
96
|
+
reader.skip(tag & 7);
|
|
97
|
+
}
|
|
98
|
+
return message;
|
|
99
|
+
}
|
|
100
|
+
finally {
|
|
101
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
create(base) {
|
|
105
|
+
return exports.StatusResponse.fromPartial(base ?? {});
|
|
106
|
+
},
|
|
107
|
+
fromPartial(object) {
|
|
108
|
+
const message = createBaseStatusResponse();
|
|
109
|
+
message.ok = object.ok ?? false;
|
|
110
|
+
message.message = object.message ?? "";
|
|
111
|
+
return message;
|
|
112
|
+
},
|
|
113
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
-
export declare const protobufPackage = "hannah";
|
|
2
|
+
export declare const protobufPackage = "hannah.v2";
|
|
3
3
|
export interface EnrollVoiceprintRequest {
|
|
4
4
|
/** Hannah user this voice sample belongs to (users.id, stable) */
|
|
5
5
|
userId: string;
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v2.12.1
|
|
5
5
|
// protoc unknown
|
|
6
|
-
// source: hannah/speaker_enrollment.proto
|
|
6
|
+
// source: hannah/v2/speaker_enrollment.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.StartVoiceEnrollmentRequest = exports.EnrollVoiceprintRequest = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
|
-
exports.protobufPackage = "hannah";
|
|
11
|
+
exports.protobufPackage = "hannah.v2";
|
|
12
12
|
function createBaseEnrollVoiceprintRequest() {
|
|
13
13
|
return { userId: "", audioPcm: new Uint8Array(0), sampleRate: 0 };
|
|
14
14
|
}
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v2.12.1
|
|
5
5
|
// protoc unknown
|
|
6
|
-
// source: hannah/timer_admin.proto
|
|
6
|
+
// source: hannah/v2/timer_admin.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.DeleteTimerRequest = exports.GetTimersResponse = exports.GetTimersRequest = exports.Timer = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
|
-
exports.protobufPackage = "hannah";
|
|
11
|
+
exports.protobufPackage = "hannah.v2";
|
|
12
12
|
function createBaseTimer() {
|
|
13
13
|
return { timerId: "", label: "", seconds: 0n, roomId: "", userId: 0 };
|
|
14
14
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
-
export declare const protobufPackage = "hannah";
|
|
2
|
+
export declare const protobufPackage = "hannah.v2";
|
|
3
3
|
/** Sent by Hannah Core over the TimerConnect stream. */
|
|
4
4
|
export interface TimerCommand {
|
|
5
5
|
/** create a new timer */
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v2.12.1
|
|
5
5
|
// protoc unknown
|
|
6
|
-
// source: hannah/timer_service.proto
|
|
6
|
+
// source: hannah/v2/timer_service.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.TimerInfo_MetadataEntry = exports.TimerInfo = exports.TimerListResponse = exports.TimerFired_MetadataEntry = exports.TimerFired = exports.TimerAck = exports.TimerMessage = exports.TimerListRequest = exports.TimerCancel = exports.TimerCreate_MetadataEntry = exports.TimerCreate = exports.TimerNotReady = exports.TimerReady = exports.TimerCommand = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
|
-
exports.protobufPackage = "hannah";
|
|
11
|
+
exports.protobufPackage = "hannah.v2";
|
|
12
12
|
function createBaseTimerCommand() {
|
|
13
13
|
return { create: undefined, cancel: undefined, list: undefined, ready: undefined, notReady: undefined };
|
|
14
14
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
2
|
import { ResidentType } from "./agent";
|
|
3
|
-
export declare const protobufPackage = "hannah";
|
|
3
|
+
export declare const protobufPackage = "hannah.v2";
|
|
4
4
|
export interface User {
|
|
5
5
|
id: number;
|
|
6
6
|
userName: string;
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v2.12.1
|
|
5
5
|
// protoc unknown
|
|
6
|
-
// source: hannah/user_registry.proto
|
|
6
|
+
// source: hannah/v2/user_registry.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.GetResidentsResponse = exports.Resident = exports.DeleteUserRequest = exports.UpdateUserRequest = exports.CreateUserResponse = exports.CreateUserRequest = exports.SetAutomationRequest = exports.SetSystemMessagesRequest = exports.SetTrustLevelRequest = exports.CreateLinkTokenResponse = exports.CreateLinkTokenRequest = exports.UnlinkAccountRequest = exports.LinkAccountRequest = exports.LoginRequest = exports.UserResponse = exports.LinkedAccountLookup = exports.GetUserRequest = exports.GetUsersResponse = exports.GetUsersRequest = exports.User_LinkedAccountsEntry = exports.User = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
|
-
exports.protobufPackage = "hannah";
|
|
11
|
+
exports.protobufPackage = "hannah.v2";
|
|
12
12
|
function createBaseUser() {
|
|
13
13
|
return {
|
|
14
14
|
id: 0,
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v2.12.1
|
|
5
5
|
// protoc unknown
|
|
6
|
-
// source: hannah/wakeword_capture.proto
|
|
6
|
+
// source: hannah/v2/wakeword_capture.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.CollectorAck = exports.CollectorMessage = exports.HeyHannahSample = exports.NoiseSample = exports.SampleType = exports.CaptureCommand = exports.SatelliteAudioChunk = exports.SatelliteCaptureResponse = exports.TriggerPlinkRequest = exports.SatelliteCaptureRequest = exports.CaptureMode = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
|
-
exports.protobufPackage = "hannah";
|
|
11
|
+
exports.protobufPackage = "hannah.v2";
|
|
12
12
|
var CaptureMode;
|
|
13
13
|
(function (CaptureMode) {
|
|
14
14
|
CaptureMode[CaptureMode["CAPTURE_MODE_UNSPECIFIED"] = 0] = "CAPTURE_MODE_UNSPECIFIED";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
-
export declare const protobufPackage = "hannah";
|
|
2
|
+
export declare const protobufPackage = "hannah.v2";
|
|
3
3
|
/**
|
|
4
4
|
* Current weather conditions, discovered by the ioBroker adapter from a configured
|
|
5
5
|
* weather source and pushed via AgentMessage.weather_update. Field set is deliberately
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v2.12.1
|
|
5
5
|
// protoc unknown
|
|
6
|
-
// source: hannah/weather.proto
|
|
6
|
+
// source: hannah/v2/weather.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.AgentWeatherUpdate = exports.WeatherForecastDay = exports.WeatherCurrentData = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
|
-
exports.protobufPackage = "hannah";
|
|
11
|
+
exports.protobufPackage = "hannah.v2";
|
|
12
12
|
function createBaseWeatherCurrentData() {
|
|
13
13
|
return {
|
|
14
14
|
temperature: 0,
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const PROTO_VERSION =
|
|
1
|
+
export declare const PROTO_VERSION = 10;
|
package/dist/version.js
CHANGED
package/package.json
CHANGED