@m1kad0/hannah-proto 4.5.0 → 4.6.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 +21 -0
- package/dist/compat_interceptor.js +6 -6
- package/dist/compat_versions.js +176 -88
- package/dist/descriptor.binpb +0 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -1
- package/dist/v1/activity_log.d.ts +60 -0
- package/dist/v1/activity_log.js +453 -0
- package/dist/v1/agent.d.ts +433 -0
- package/dist/v1/agent.js +2527 -0
- package/dist/v1/automation.d.ts +54 -0
- package/dist/v1/automation.js +303 -0
- package/dist/v1/car_state.d.ts +72 -0
- package/dist/v1/car_state.js +516 -0
- package/dist/v1/channel.d.ts +102 -0
- package/dist/v1/channel.js +587 -0
- package/dist/v1/control.d.ts +383 -0
- package/dist/v1/control.js +3879 -0
- package/dist/v1/device_control_menu.d.ts +88 -0
- package/dist/v1/device_control_menu.js +629 -0
- package/dist/v1/event_stream.d.ts +63 -0
- package/dist/v1/event_stream.js +494 -0
- package/dist/v1/hannah.d.ts +1644 -0
- package/dist/v1/hannah.js +968 -0
- package/dist/v1/index.d.ts +22 -0
- package/dist/v1/index.js +58 -0
- package/dist/v1/infrastructure.d.ts +98 -0
- package/dist/v1/infrastructure.js +652 -0
- package/dist/v1/logging.d.ts +189 -0
- package/dist/v1/logging.js +775 -0
- package/dist/v1/messages.d.ts +56 -0
- package/dist/v1/messages.js +398 -0
- package/dist/v1/satellite.d.ts +90 -0
- package/dist/v1/satellite.js +637 -0
- package/dist/v1/satellite_provisioning.d.ts +33 -0
- package/dist/v1/satellite_provisioning.js +84 -0
- package/dist/v1/satellite_proxy.d.ts +100 -0
- package/dist/v1/satellite_proxy.js +546 -0
- package/dist/v1/shared.d.ts +54 -0
- package/dist/v1/shared.js +249 -0
- package/dist/v1/speaker_enrollment.d.ts +44 -0
- package/dist/v1/speaker_enrollment.js +157 -0
- package/dist/v1/timer_admin.d.ts +42 -0
- package/dist/v1/timer_admin.js +273 -0
- package/dist/v1/timer_service.d.ts +133 -0
- package/dist/v1/timer_service.js +945 -0
- package/dist/v1/user_registry.d.ts +187 -0
- package/dist/v1/user_registry.js +1612 -0
- package/dist/v1/wakeword_capture.d.ts +101 -0
- package/dist/v1/wakeword_capture.js +611 -0
- package/dist/v1/weather.d.ts +81 -0
- package/dist/v1/weather.js +366 -0
- package/package.json +1 -1
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
export declare const protobufPackage = "hannah.v1";
|
|
3
|
+
export declare enum CaptureMode {
|
|
4
|
+
CAPTURE_MODE_UNSPECIFIED = 0,
|
|
5
|
+
CAPTURE_MODE_PTT = 2,
|
|
6
|
+
CAPTURE_MODE_PLINK = 3,
|
|
7
|
+
UNRECOGNIZED = -1
|
|
8
|
+
}
|
|
9
|
+
export interface SatelliteCaptureRequest {
|
|
10
|
+
deviceId: string;
|
|
11
|
+
/**
|
|
12
|
+
* "noise" (default) or "hey_hannah" — controls ESP streaming behaviour.
|
|
13
|
+
* noise: continuous auto-flush every 5 s.
|
|
14
|
+
* hey_hannah: stream only while PTT is held, flush on PTT release.
|
|
15
|
+
*/
|
|
16
|
+
sampleType: string;
|
|
17
|
+
}
|
|
18
|
+
export interface TriggerPlinkRequest {
|
|
19
|
+
deviceId: string;
|
|
20
|
+
/** seconds to hold virtual PTT after plink (default 3.0) */
|
|
21
|
+
recordDuration: number;
|
|
22
|
+
}
|
|
23
|
+
/** ok=false when the satellite is unknown or already captured by another client. */
|
|
24
|
+
export interface SatelliteCaptureResponse {
|
|
25
|
+
ok: boolean;
|
|
26
|
+
error: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* A single audio chunk streamed from a captured satellite to the collector.
|
|
30
|
+
* end_of_utterance=true marks a PTT-release boundary — the collector should
|
|
31
|
+
* finalise and save the accumulated audio as a labelled sample at that point.
|
|
32
|
+
*/
|
|
33
|
+
export interface SatelliteAudioChunk {
|
|
34
|
+
/** raw PCM, 16-bit signed mono */
|
|
35
|
+
pcm: Uint8Array;
|
|
36
|
+
/** Hz, typically 16000 */
|
|
37
|
+
sampleRate: number;
|
|
38
|
+
/** true = PTT released, utterance boundary */
|
|
39
|
+
endOfUtterance: boolean;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Sent by Hannah Core over the CollectorConnect stream to start or stop a
|
|
43
|
+
* satellite capture — the Collector-side counterpart to RequestSatelliteCapture/
|
|
44
|
+
* ReleaseSatelliteCapture, pushed proactively instead of polled.
|
|
45
|
+
* capture_mode is only meaningful when sample_type is hey_hannah.
|
|
46
|
+
*/
|
|
47
|
+
export interface CaptureCommand {
|
|
48
|
+
deviceId: string;
|
|
49
|
+
sampleType: SampleType | undefined;
|
|
50
|
+
captureMode: CaptureMode;
|
|
51
|
+
stop: boolean;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Deliberately a oneof of (currently empty) payload messages rather than a plain
|
|
55
|
+
* enum — leaves room to attach per-sample-type data later without a breaking change.
|
|
56
|
+
*/
|
|
57
|
+
export interface SampleType {
|
|
58
|
+
noise?: NoiseSample | undefined;
|
|
59
|
+
heyHannah?: HeyHannahSample | undefined;
|
|
60
|
+
}
|
|
61
|
+
export interface NoiseSample {
|
|
62
|
+
}
|
|
63
|
+
export interface HeyHannahSample {
|
|
64
|
+
}
|
|
65
|
+
/** Sent by the Collector over the CollectorConnect stream. */
|
|
66
|
+
export interface CollectorMessage {
|
|
67
|
+
/** initial confirmation when stream is established */
|
|
68
|
+
ack?: CollectorAck | undefined;
|
|
69
|
+
}
|
|
70
|
+
/** Sent once by the Collector after the CollectorConnect stream is established. */
|
|
71
|
+
export interface CollectorAck {
|
|
72
|
+
/** human-readable status */
|
|
73
|
+
message: string;
|
|
74
|
+
}
|
|
75
|
+
export declare const SatelliteCaptureRequest: MessageFns<SatelliteCaptureRequest>;
|
|
76
|
+
export declare const TriggerPlinkRequest: MessageFns<TriggerPlinkRequest>;
|
|
77
|
+
export declare const SatelliteCaptureResponse: MessageFns<SatelliteCaptureResponse>;
|
|
78
|
+
export declare const SatelliteAudioChunk: MessageFns<SatelliteAudioChunk>;
|
|
79
|
+
export declare const CaptureCommand: MessageFns<CaptureCommand>;
|
|
80
|
+
export declare const SampleType: MessageFns<SampleType>;
|
|
81
|
+
export declare const NoiseSample: MessageFns<NoiseSample>;
|
|
82
|
+
export declare const HeyHannahSample: MessageFns<HeyHannahSample>;
|
|
83
|
+
export declare const CollectorMessage: MessageFns<CollectorMessage>;
|
|
84
|
+
export declare const CollectorAck: MessageFns<CollectorAck>;
|
|
85
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
|
|
86
|
+
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 {} ? {
|
|
87
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
88
|
+
} : Partial<T>;
|
|
89
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
90
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
91
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
92
|
+
} & {
|
|
93
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
94
|
+
};
|
|
95
|
+
export interface MessageFns<T> {
|
|
96
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
97
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
98
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
99
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
100
|
+
}
|
|
101
|
+
export {};
|