@m1kad0/hannah-proto 2.1.0 → 3.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/hannah.d.ts CHANGED
@@ -2,9 +2,10 @@ 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, CreateTriggerRequest, DeleteAlarmRequest, DeleteBleTagRequest, DeleteCarRequest, DeleteGroupRequest, DeleteSatelliteRequest, DeleteTriggerRequest, GetAlarmsResponse, GetBleTagsResponse, GetCarsResponse, GetGroupsResponse, GetRoomsResponse, GetSatellitesResponse, GetSettingsResponse, GetTriggersResponse, SetGroupSatellitesRequest, SetSatelliteDisplayNameRequest, SetSatelliteOwnerRequest, SetSatelliteRoomRequest, SetSatelliteSmalltalkFollowupRequest, SubmitTextRequest, SubmitTextResponse, SubmitVoiceRequest, SubmitVoiceResponse, UpdateAlarmRequest, UpdateBleTagRequest, UpdateCarRequest, UpdateConfigRequest, UpdateGroupRequest, UpdateTriggerRequest } from "./control";
5
+ import { AnnounceRequest, CreateAlarmRequest, CreateAlarmResponse, CreateBleTagRequest, CreateBleTagResponse, CreateCarRequest, CreateCarResponse, CreateGroupRequest, CreateTriggerRequest, DeleteAlarmRequest, DeleteBleTagRequest, DeleteCarRequest, DeleteGroupRequest, DeleteTriggerRequest, GetAlarmsResponse, GetBleTagsResponse, GetCarsResponse, GetGroupsResponse, GetRoomsResponse, GetSettingsResponse, GetTriggersResponse, SetGroupSatellitesRequest, 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, TriggerSatelliteRestartRequest } from "./event_stream";
8
+ import { DeleteSatelliteRequest, GetSatellitesResponse, SetSatelliteDisplayNameRequest, SetSatelliteOwnerRequest, SetSatelliteRoomRequest, SetSatelliteSmalltalkFollowupRequest } from "./satellite";
8
9
  import { ProvisionSatelliteRequest } from "./satellite_provisioning";
9
10
  import { ProxyCommand, ProxyHeartbeat, SatelliteRegistration, SubmitSatelliteAudioRequest, SubmitSatelliteAudioResponse } from "./satellite_proxy";
10
11
  import { Empty, StatusResponse } from "./shared";
package/dist/hannah.js CHANGED
@@ -3,7 +3,7 @@
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v2.12.0
5
5
  // protoc unknown
6
- // source: hannah.proto
6
+ // source: hannah/hannah.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.HannahServiceClient = exports.HannahServiceService = exports.protobufPackage = void 0;
9
9
  /* eslint-disable */
@@ -14,6 +14,7 @@ const car_state_1 = require("./car_state");
14
14
  const control_1 = require("./control");
15
15
  const device_control_menu_1 = require("./device_control_menu");
16
16
  const event_stream_1 = require("./event_stream");
17
+ const satellite_1 = require("./satellite");
17
18
  const satellite_provisioning_1 = require("./satellite_provisioning");
18
19
  const satellite_proxy_1 = require("./satellite_proxy");
19
20
  const shared_1 = require("./shared");
@@ -215,16 +216,16 @@ exports.HannahServiceService = {
215
216
  responseStream: false,
216
217
  requestSerialize: (value) => Buffer.from(shared_1.Empty.encode(value).finish()),
217
218
  requestDeserialize: (value) => shared_1.Empty.decode(value),
218
- responseSerialize: (value) => Buffer.from(control_1.GetSatellitesResponse.encode(value).finish()),
219
- responseDeserialize: (value) => control_1.GetSatellitesResponse.decode(value),
219
+ responseSerialize: (value) => Buffer.from(satellite_1.GetSatellitesResponse.encode(value).finish()),
220
+ responseDeserialize: (value) => satellite_1.GetSatellitesResponse.decode(value),
220
221
  },
221
222
  /** --- Satellites (Admin-UI, #27 Phase 2) --- */
222
223
  setSatelliteRoom: {
223
224
  path: "/hannah.HannahService/SetSatelliteRoom",
224
225
  requestStream: false,
225
226
  responseStream: false,
226
- requestSerialize: (value) => Buffer.from(control_1.SetSatelliteRoomRequest.encode(value).finish()),
227
- requestDeserialize: (value) => control_1.SetSatelliteRoomRequest.decode(value),
227
+ requestSerialize: (value) => Buffer.from(satellite_1.SetSatelliteRoomRequest.encode(value).finish()),
228
+ requestDeserialize: (value) => satellite_1.SetSatelliteRoomRequest.decode(value),
228
229
  responseSerialize: (value) => Buffer.from(shared_1.StatusResponse.encode(value).finish()),
229
230
  responseDeserialize: (value) => shared_1.StatusResponse.decode(value),
230
231
  },
@@ -232,8 +233,8 @@ exports.HannahServiceService = {
232
233
  path: "/hannah.HannahService/SetSatelliteDisplayName",
233
234
  requestStream: false,
234
235
  responseStream: false,
235
- requestSerialize: (value) => Buffer.from(control_1.SetSatelliteDisplayNameRequest.encode(value).finish()),
236
- requestDeserialize: (value) => control_1.SetSatelliteDisplayNameRequest.decode(value),
236
+ requestSerialize: (value) => Buffer.from(satellite_1.SetSatelliteDisplayNameRequest.encode(value).finish()),
237
+ requestDeserialize: (value) => satellite_1.SetSatelliteDisplayNameRequest.decode(value),
237
238
  responseSerialize: (value) => Buffer.from(shared_1.StatusResponse.encode(value).finish()),
238
239
  responseDeserialize: (value) => shared_1.StatusResponse.decode(value),
239
240
  },
@@ -242,8 +243,8 @@ exports.HannahServiceService = {
242
243
  path: "/hannah.HannahService/SetSatelliteOwner",
243
244
  requestStream: false,
244
245
  responseStream: false,
245
- requestSerialize: (value) => Buffer.from(control_1.SetSatelliteOwnerRequest.encode(value).finish()),
246
- requestDeserialize: (value) => control_1.SetSatelliteOwnerRequest.decode(value),
246
+ requestSerialize: (value) => Buffer.from(satellite_1.SetSatelliteOwnerRequest.encode(value).finish()),
247
+ requestDeserialize: (value) => satellite_1.SetSatelliteOwnerRequest.decode(value),
247
248
  responseSerialize: (value) => Buffer.from(shared_1.StatusResponse.encode(value).finish()),
248
249
  responseDeserialize: (value) => shared_1.StatusResponse.decode(value),
249
250
  },
@@ -255,8 +256,8 @@ exports.HannahServiceService = {
255
256
  path: "/hannah.HannahService/SetSatelliteSmalltalkFollowup",
256
257
  requestStream: false,
257
258
  responseStream: false,
258
- requestSerialize: (value) => Buffer.from(control_1.SetSatelliteSmalltalkFollowupRequest.encode(value).finish()),
259
- requestDeserialize: (value) => control_1.SetSatelliteSmalltalkFollowupRequest.decode(value),
259
+ requestSerialize: (value) => Buffer.from(satellite_1.SetSatelliteSmalltalkFollowupRequest.encode(value).finish()),
260
+ requestDeserialize: (value) => satellite_1.SetSatelliteSmalltalkFollowupRequest.decode(value),
260
261
  responseSerialize: (value) => Buffer.from(shared_1.StatusResponse.encode(value).finish()),
261
262
  responseDeserialize: (value) => shared_1.StatusResponse.decode(value),
262
263
  },
@@ -265,8 +266,8 @@ exports.HannahServiceService = {
265
266
  path: "/hannah.HannahService/DeleteSatellite",
266
267
  requestStream: false,
267
268
  responseStream: false,
268
- requestSerialize: (value) => Buffer.from(control_1.DeleteSatelliteRequest.encode(value).finish()),
269
- requestDeserialize: (value) => control_1.DeleteSatelliteRequest.decode(value),
269
+ requestSerialize: (value) => Buffer.from(satellite_1.DeleteSatelliteRequest.encode(value).finish()),
270
+ requestDeserialize: (value) => satellite_1.DeleteSatelliteRequest.decode(value),
270
271
  responseSerialize: (value) => Buffer.from(shared_1.StatusResponse.encode(value).finish()),
271
272
  responseDeserialize: (value) => shared_1.StatusResponse.decode(value),
272
273
  },
package/dist/index.d.ts CHANGED
@@ -6,6 +6,8 @@ export * as control from './control';
6
6
  export * as device_control_menu from './device_control_menu';
7
7
  export * as event_stream from './event_stream';
8
8
  export * as hannah from './hannah';
9
+ export * as options from './options';
10
+ export * as satellite from './satellite';
9
11
  export * as satellite_provisioning from './satellite_provisioning';
10
12
  export * as satellite_proxy from './satellite_proxy';
11
13
  export * as shared from './shared';
package/dist/index.js CHANGED
@@ -36,7 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- 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.hannah = exports.event_stream = exports.device_control_menu = exports.control = exports.car_state = exports.automation = exports.agent = void 0;
39
+ 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.options = exports.hannah = exports.event_stream = exports.device_control_menu = exports.control = exports.car_state = exports.automation = exports.agent = void 0;
40
40
  __exportStar(require("./version"), exports);
41
41
  exports.agent = __importStar(require("./agent"));
42
42
  exports.automation = __importStar(require("./automation"));
@@ -45,6 +45,8 @@ exports.control = __importStar(require("./control"));
45
45
  exports.device_control_menu = __importStar(require("./device_control_menu"));
46
46
  exports.event_stream = __importStar(require("./event_stream"));
47
47
  exports.hannah = __importStar(require("./hannah"));
48
+ exports.options = __importStar(require("./options"));
49
+ exports.satellite = __importStar(require("./satellite"));
48
50
  exports.satellite_provisioning = __importStar(require("./satellite_provisioning"));
49
51
  exports.satellite_proxy = __importStar(require("./satellite_proxy"));
50
52
  exports.shared = __importStar(require("./shared"));
@@ -0,0 +1 @@
1
+ export declare const protobufPackage = "hannah";
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
+ // versions:
4
+ // protoc-gen-ts_proto v2.12.0
5
+ // protoc unknown
6
+ // source: hannah/options.proto
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.protobufPackage = void 0;
9
+ /* eslint-disable */
10
+ exports.protobufPackage = "hannah";
@@ -0,0 +1,90 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ export declare const protobufPackage = "hannah";
3
+ export interface Satellite {
4
+ deviceId: string;
5
+ /** live-reported room (UDP/proxy registration); empty if not connected */
6
+ room: string;
7
+ /** IP:port of the UDP satellite; empty if not connected */
8
+ address: string;
9
+ /** human-readable name from Core DB (empty if not provisioned) */
10
+ displayName: string;
11
+ /** room assigned in Core DB, "" = unassigned */
12
+ roomId: string;
13
+ /** display name of room_id */
14
+ roomDisplayName: string;
15
+ /** UTC "YYYY-MM-DD HH:MM:SS" from Core DB, "" = never seen */
16
+ lastSeen: string;
17
+ /** true if currently live (UDP or proxy) */
18
+ connected: boolean;
19
+ /** true if connected and live room differs from room_id */
20
+ roomMismatch: boolean;
21
+ /** Person (User) assigned as owner in Core DB, 0 = unassigned. #31 */
22
+ ownerUserId: number;
23
+ /** display name of owner_user_id, "" if unassigned */
24
+ ownerDisplayName: string;
25
+ /** firmware_version of the satellite */
26
+ firmwareVersion: string;
27
+ /** true if the device has a new firmware available */
28
+ updateAvailable: boolean;
29
+ newVersion?: string | undefined;
30
+ /** #158: mic reopens after a Smalltalk answer instead of waiting for wake-word/PTT again */
31
+ smalltalkFollowupListen: boolean;
32
+ }
33
+ export interface GetSatellitesResponse {
34
+ satellites: Satellite[];
35
+ }
36
+ export interface SetSatelliteRoomRequest {
37
+ deviceId: string;
38
+ /** "" = unassign */
39
+ roomId: string;
40
+ /** requestor */
41
+ requestorId: number;
42
+ }
43
+ export interface SetSatelliteDisplayNameRequest {
44
+ deviceId: string;
45
+ displayName: string;
46
+ /** requestor */
47
+ requestorId: number;
48
+ }
49
+ export interface SetSatelliteOwnerRequest {
50
+ deviceId: string;
51
+ /** 0 = unassign */
52
+ userId: number;
53
+ /** requestor */
54
+ requestorId: number;
55
+ }
56
+ export interface SetSatelliteSmalltalkFollowupRequest {
57
+ deviceId: string;
58
+ enabled: boolean;
59
+ /** requestor */
60
+ requestorId: number;
61
+ }
62
+ export interface DeleteSatelliteRequest {
63
+ deviceId: string;
64
+ /** requestor */
65
+ requestorId: number;
66
+ }
67
+ export declare const Satellite: MessageFns<Satellite>;
68
+ export declare const GetSatellitesResponse: MessageFns<GetSatellitesResponse>;
69
+ export declare const SetSatelliteRoomRequest: MessageFns<SetSatelliteRoomRequest>;
70
+ export declare const SetSatelliteDisplayNameRequest: MessageFns<SetSatelliteDisplayNameRequest>;
71
+ export declare const SetSatelliteOwnerRequest: MessageFns<SetSatelliteOwnerRequest>;
72
+ export declare const SetSatelliteSmalltalkFollowupRequest: MessageFns<SetSatelliteSmalltalkFollowupRequest>;
73
+ export declare const DeleteSatelliteRequest: MessageFns<DeleteSatelliteRequest>;
74
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
75
+ 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 {} ? {
76
+ [K in keyof T]?: DeepPartial<T[K]>;
77
+ } : Partial<T>;
78
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
79
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
80
+ [K in keyof P]: Exact<P[K], I[K]>;
81
+ } & {
82
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
83
+ };
84
+ export interface MessageFns<T> {
85
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
86
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
87
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
88
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
89
+ }
90
+ export {};