@m1kad0/hannah-proto 0.3.3 → 0.3.4
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 +46 -1
- package/dist/agent.js +2010 -1
- package/dist/car_state.d.ts +24 -1
- package/dist/car_state.js +457 -1
- package/dist/control.d.ts +71 -0
- package/dist/control.js +3707 -1
- package/dist/device_control_menu.d.ts +23 -0
- package/dist/device_control_menu.js +314 -1
- package/dist/event_stream.d.ts +24 -0
- package/dist/event_stream.js +353 -1
- package/dist/hannah.d.ts +1160 -0
- package/dist/hannah.js +704 -1
- package/dist/satellite_provisioning.d.ts +19 -0
- package/dist/satellite_provisioning.js +65 -1
- package/dist/satellite_proxy.d.ts +25 -0
- package/dist/satellite_proxy.js +478 -1
- package/dist/shared.d.ts +20 -0
- package/dist/shared.js +84 -1
- package/dist/speaker_enrollment.d.ts +19 -0
- package/dist/speaker_enrollment.js +65 -1
- package/dist/timer_service.d.ts +34 -2
- package/dist/timer_service.js +796 -1
- package/dist/user_registry.d.ts +36 -0
- package/dist/user_registry.js +1179 -1
- package/dist/wakeword_capture.d.ts +22 -0
- package/dist/wakeword_capture.js +221 -1
- package/package.json +11 -4
package/dist/shared.js
CHANGED
|
@@ -5,6 +5,89 @@
|
|
|
5
5
|
// protoc unknown
|
|
6
6
|
// source: shared.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.protobufPackage = void 0;
|
|
8
|
+
exports.StatusResponse = exports.Empty = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
|
+
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
10
11
|
exports.protobufPackage = "hannah";
|
|
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 end = length === undefined ? reader.len : reader.pos + length;
|
|
22
|
+
const message = createBaseEmpty();
|
|
23
|
+
while (reader.pos < end) {
|
|
24
|
+
const tag = reader.uint32();
|
|
25
|
+
switch (tag >>> 3) {
|
|
26
|
+
}
|
|
27
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
28
|
+
break;
|
|
29
|
+
}
|
|
30
|
+
reader.skip(tag & 7);
|
|
31
|
+
}
|
|
32
|
+
return message;
|
|
33
|
+
},
|
|
34
|
+
create(base) {
|
|
35
|
+
return exports.Empty.fromPartial(base ?? {});
|
|
36
|
+
},
|
|
37
|
+
fromPartial(_) {
|
|
38
|
+
const message = createBaseEmpty();
|
|
39
|
+
return message;
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
function createBaseStatusResponse() {
|
|
43
|
+
return { ok: false, message: "" };
|
|
44
|
+
}
|
|
45
|
+
exports.StatusResponse = {
|
|
46
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
47
|
+
if (message.ok !== false) {
|
|
48
|
+
writer.uint32(8).bool(message.ok);
|
|
49
|
+
}
|
|
50
|
+
if (message.message !== "") {
|
|
51
|
+
writer.uint32(18).string(message.message);
|
|
52
|
+
}
|
|
53
|
+
return writer;
|
|
54
|
+
},
|
|
55
|
+
decode(input, length) {
|
|
56
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
57
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
58
|
+
const message = createBaseStatusResponse();
|
|
59
|
+
while (reader.pos < end) {
|
|
60
|
+
const tag = reader.uint32();
|
|
61
|
+
switch (tag >>> 3) {
|
|
62
|
+
case 1: {
|
|
63
|
+
if (tag !== 8) {
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
message.ok = reader.bool();
|
|
67
|
+
continue;
|
|
68
|
+
}
|
|
69
|
+
case 2: {
|
|
70
|
+
if (tag !== 18) {
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
message.message = reader.string();
|
|
74
|
+
continue;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
78
|
+
break;
|
|
79
|
+
}
|
|
80
|
+
reader.skip(tag & 7);
|
|
81
|
+
}
|
|
82
|
+
return message;
|
|
83
|
+
},
|
|
84
|
+
create(base) {
|
|
85
|
+
return exports.StatusResponse.fromPartial(base ?? {});
|
|
86
|
+
},
|
|
87
|
+
fromPartial(object) {
|
|
88
|
+
const message = createBaseStatusResponse();
|
|
89
|
+
message.ok = object.ok ?? false;
|
|
90
|
+
message.message = object.message ?? "";
|
|
91
|
+
return message;
|
|
92
|
+
},
|
|
93
|
+
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
1
2
|
export declare const protobufPackage = "hannah";
|
|
2
3
|
export interface EnrollVoiceprintRequest {
|
|
3
4
|
/** Hannah user this voice sample belongs to (users.id, stable) */
|
|
@@ -7,3 +8,21 @@ export interface EnrollVoiceprintRequest {
|
|
|
7
8
|
/** e.g. 16000 */
|
|
8
9
|
sampleRate: number;
|
|
9
10
|
}
|
|
11
|
+
export declare const EnrollVoiceprintRequest: MessageFns<EnrollVoiceprintRequest>;
|
|
12
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
|
|
13
|
+
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 {} ? {
|
|
14
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
15
|
+
} : Partial<T>;
|
|
16
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
17
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
18
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
19
|
+
} & {
|
|
20
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
21
|
+
};
|
|
22
|
+
export interface MessageFns<T> {
|
|
23
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
24
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
25
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
26
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
27
|
+
}
|
|
28
|
+
export {};
|
|
@@ -5,6 +5,70 @@
|
|
|
5
5
|
// protoc unknown
|
|
6
6
|
// source: speaker_enrollment.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.protobufPackage = void 0;
|
|
8
|
+
exports.EnrollVoiceprintRequest = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
|
+
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
10
11
|
exports.protobufPackage = "hannah";
|
|
12
|
+
function createBaseEnrollVoiceprintRequest() {
|
|
13
|
+
return { userId: "", audioPcm: new Uint8Array(0), sampleRate: 0 };
|
|
14
|
+
}
|
|
15
|
+
exports.EnrollVoiceprintRequest = {
|
|
16
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
17
|
+
if (message.userId !== "") {
|
|
18
|
+
writer.uint32(10).string(message.userId);
|
|
19
|
+
}
|
|
20
|
+
if (message.audioPcm.length !== 0) {
|
|
21
|
+
writer.uint32(18).bytes(message.audioPcm);
|
|
22
|
+
}
|
|
23
|
+
if (message.sampleRate !== 0) {
|
|
24
|
+
writer.uint32(24).int32(message.sampleRate);
|
|
25
|
+
}
|
|
26
|
+
return writer;
|
|
27
|
+
},
|
|
28
|
+
decode(input, length) {
|
|
29
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
30
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
31
|
+
const message = createBaseEnrollVoiceprintRequest();
|
|
32
|
+
while (reader.pos < end) {
|
|
33
|
+
const tag = reader.uint32();
|
|
34
|
+
switch (tag >>> 3) {
|
|
35
|
+
case 1: {
|
|
36
|
+
if (tag !== 10) {
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
message.userId = reader.string();
|
|
40
|
+
continue;
|
|
41
|
+
}
|
|
42
|
+
case 2: {
|
|
43
|
+
if (tag !== 18) {
|
|
44
|
+
break;
|
|
45
|
+
}
|
|
46
|
+
message.audioPcm = reader.bytes();
|
|
47
|
+
continue;
|
|
48
|
+
}
|
|
49
|
+
case 3: {
|
|
50
|
+
if (tag !== 24) {
|
|
51
|
+
break;
|
|
52
|
+
}
|
|
53
|
+
message.sampleRate = reader.int32();
|
|
54
|
+
continue;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
58
|
+
break;
|
|
59
|
+
}
|
|
60
|
+
reader.skip(tag & 7);
|
|
61
|
+
}
|
|
62
|
+
return message;
|
|
63
|
+
},
|
|
64
|
+
create(base) {
|
|
65
|
+
return exports.EnrollVoiceprintRequest.fromPartial(base ?? {});
|
|
66
|
+
},
|
|
67
|
+
fromPartial(object) {
|
|
68
|
+
const message = createBaseEnrollVoiceprintRequest();
|
|
69
|
+
message.userId = object.userId ?? "";
|
|
70
|
+
message.audioPcm = object.audioPcm ?? new Uint8Array(0);
|
|
71
|
+
message.sampleRate = object.sampleRate ?? 0;
|
|
72
|
+
return message;
|
|
73
|
+
},
|
|
74
|
+
};
|
package/dist/timer_service.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
1
2
|
export declare const protobufPackage = "hannah";
|
|
2
3
|
/** Sent by Hannah Core over the TimerConnect stream. */
|
|
3
4
|
export interface TimerCommand {
|
|
@@ -35,7 +36,7 @@ export interface TimerCreate {
|
|
|
35
36
|
/** human-readable label, e.g. "Spazieren gehen" */
|
|
36
37
|
label: string;
|
|
37
38
|
/** Unix timestamp (seconds) when to fire */
|
|
38
|
-
fireAt:
|
|
39
|
+
fireAt: bigint;
|
|
39
40
|
/** opaque to the Timer Service — e.g. "room", "roomie_id", "trigger_id" */
|
|
40
41
|
metadata: {
|
|
41
42
|
[key: string]: string;
|
|
@@ -90,7 +91,7 @@ export interface TimerInfo {
|
|
|
90
91
|
timerId: string;
|
|
91
92
|
label: string;
|
|
92
93
|
/** Unix timestamp (seconds) */
|
|
93
|
-
fireAt:
|
|
94
|
+
fireAt: bigint;
|
|
94
95
|
metadata: {
|
|
95
96
|
[key: string]: string;
|
|
96
97
|
};
|
|
@@ -99,3 +100,34 @@ export interface TimerInfo_MetadataEntry {
|
|
|
99
100
|
key: string;
|
|
100
101
|
value: string;
|
|
101
102
|
}
|
|
103
|
+
export declare const TimerCommand: MessageFns<TimerCommand>;
|
|
104
|
+
export declare const TimerReady: MessageFns<TimerReady>;
|
|
105
|
+
export declare const TimerNotReady: MessageFns<TimerNotReady>;
|
|
106
|
+
export declare const TimerCreate: MessageFns<TimerCreate>;
|
|
107
|
+
export declare const TimerCreate_MetadataEntry: MessageFns<TimerCreate_MetadataEntry>;
|
|
108
|
+
export declare const TimerCancel: MessageFns<TimerCancel>;
|
|
109
|
+
export declare const TimerListRequest: MessageFns<TimerListRequest>;
|
|
110
|
+
export declare const TimerMessage: MessageFns<TimerMessage>;
|
|
111
|
+
export declare const TimerAck: MessageFns<TimerAck>;
|
|
112
|
+
export declare const TimerFired: MessageFns<TimerFired>;
|
|
113
|
+
export declare const TimerFired_MetadataEntry: MessageFns<TimerFired_MetadataEntry>;
|
|
114
|
+
export declare const TimerListResponse: MessageFns<TimerListResponse>;
|
|
115
|
+
export declare const TimerInfo: MessageFns<TimerInfo>;
|
|
116
|
+
export declare const TimerInfo_MetadataEntry: MessageFns<TimerInfo_MetadataEntry>;
|
|
117
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
|
|
118
|
+
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 {} ? {
|
|
119
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
120
|
+
} : Partial<T>;
|
|
121
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
122
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
123
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
124
|
+
} & {
|
|
125
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
126
|
+
};
|
|
127
|
+
export interface MessageFns<T> {
|
|
128
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
129
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
130
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
131
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
132
|
+
}
|
|
133
|
+
export {};
|