@kusinta/iot-schema 0.2.0-beta.3 → 0.2.0-beta.31
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/package.json +9 -1
- package/src/kusinta/iot/access/v1/acl_pb.d.ts +118 -2
- package/src/kusinta/iot/access/v1/acl_pb.js +20 -3
- package/src/kusinta/iot/access/v1/roles_pb.d.ts +119 -4
- package/src/kusinta/iot/access/v1/roles_pb.js +98 -5
- package/src/kusinta/iot/climate/v1/climate_pb.d.ts +726 -0
- package/src/kusinta/iot/climate/v1/climate_pb.js +142 -0
- package/src/kusinta/iot/common/v1/pairing_pb.d.ts +217 -0
- package/src/kusinta/iot/common/v1/pairing_pb.js +50 -0
- package/src/kusinta/iot/common/v1/types_pb.d.ts +175 -0
- package/src/kusinta/iot/common/v1/types_pb.js +70 -1
- package/src/kusinta/iot/connector/v1/connector_pb.d.ts +691 -2
- package/src/kusinta/iot/connector/v1/connector_pb.js +104 -13
- package/src/kusinta/iot/device/v1/cluster_state_pb.d.ts +44 -0
- package/src/kusinta/iot/device/v1/cluster_state_pb.js +1 -1
- package/src/kusinta/iot/device/v1/descriptor_pb.d.ts +22 -2
- package/src/kusinta/iot/device/v1/descriptor_pb.js +2 -1
- package/src/kusinta/iot/device/v1/device_event_pb.d.ts +87 -5
- package/src/kusinta/iot/device/v1/device_event_pb.js +1 -1
- package/src/kusinta/iot/device/v1/device_pb.d.ts +150 -6
- package/src/kusinta/iot/device/v1/device_pb.js +33 -2
- package/src/kusinta/iot/device/v1/matter_options_pb.d.ts +26 -0
- package/src/kusinta/iot/device/v1/matter_options_pb.js +31 -4
- package/src/kusinta/iot/device/v1/properties_pb.d.ts +14 -0
- package/src/kusinta/iot/device/v1/properties_pb.js +1 -1
- package/src/kusinta/iot/device/v1/property_update_pb.d.ts +3 -2
- package/src/kusinta/iot/link/v1/link_pb.d.ts +438 -0
- package/src/kusinta/iot/link/v1/link_pb.js +121 -0
- package/src/kusinta/iot/reporting/v1/reporting_pb.d.ts +1219 -0
- package/src/kusinta/iot/reporting/v1/reporting_pb.js +238 -0
- package/src/kusinta/iot/reporting/v1/reporting_service_pb.d.ts +63 -0
- package/src/kusinta/iot/reporting/v1/reporting_service_pb.js +24 -0
- package/src/kusinta/iot/signaling/v1/signaling_pb.d.ts +361 -7
- package/src/kusinta/iot/signaling/v1/signaling_pb.js +68 -4
- package/src/kusinta/iot/signaling/v1/signaling_service_pb.d.ts +24 -1
- package/src/kusinta/iot/signaling/v1/signaling_service_pb.js +1 -1
- package/src/kusinta/iot/space/v1/space_pb.d.ts +103 -2
- package/src/kusinta/iot/space/v1/space_pb.js +10 -1
- package/src/kusinta/iot/vendor/homematic/v1/homematic_pb.d.ts +162 -13
- package/src/kusinta/iot/vendor/homematic/v1/homematic_pb.js +8 -1
- package/src/kusinta/iot/vendor/lorawan/v1/lorawan_pb.d.ts +69 -0
- package/src/kusinta/iot/vendor/lorawan/v1/lorawan_pb.js +19 -0
- package/src/kusinta/iot/vendor/v1/vendor_options_pb.d.ts +25 -4
- package/src/kusinta/iot/vendor/v1/vendor_options_pb.js +28 -6
- package/src/kusinta/iot/webrtc/v1/app_token_pb.d.ts +45 -5
- package/src/kusinta/iot/webrtc/v1/app_token_pb.js +1 -1
- package/src/kusinta/iot/webrtc/v1/command_pb.d.ts +14 -0
- package/src/kusinta/iot/webrtc/v1/command_pb.js +1 -1
- package/src/kusinta/iot/webrtc/v1/device_state_pb.d.ts +179 -5
- package/src/kusinta/iot/webrtc/v1/device_state_pb.js +35 -6
- package/src/kusinta/iot/webrtc/v1/envelope_pb.d.ts +520 -3
- package/src/kusinta/iot/webrtc/v1/envelope_pb.js +65 -3
- package/src/kusinta/iot/webrtc/v1/invite_pb.d.ts +498 -0
- package/src/kusinta/iot/webrtc/v1/invite_pb.js +108 -0
- package/src/kusinta/iot/webrtc/v1/management_pb.d.ts +982 -12
- package/src/kusinta/iot/webrtc/v1/management_pb.js +132 -5
- package/src/kusinta/iot/webrtc/v1/members_pb.d.ts +328 -0
- package/src/kusinta/iot/webrtc/v1/members_pb.js +78 -0
- package/src/kusinta/iot/webrtc/v1/permission_push_pb.d.ts +66 -4
- package/src/kusinta/iot/webrtc/v1/permission_push_pb.js +10 -2
|
@@ -4,12 +4,18 @@
|
|
|
4
4
|
|
|
5
5
|
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
6
6
|
import type { Message } from "@bufbuild/protobuf";
|
|
7
|
-
import type { DeviceId } from "../../identity/v1/identity_pb.js";
|
|
7
|
+
import type { ConnectorId, DeviceId, SpaceId } from "../../identity/v1/identity_pb.js";
|
|
8
8
|
import type { AttributeRef } from "../../access/v1/acl_pb.js";
|
|
9
9
|
import type { Space } from "../../space/v1/space_pb.js";
|
|
10
|
-
import type { ManagementAck, ManagementRequest, SpaceTree } from "./management_pb.js";
|
|
10
|
+
import type { ManagementAck, ManagementRequest, PrivacyDisclosure, SpaceTree } from "./management_pb.js";
|
|
11
|
+
import type { DeviceLink, DeviceLinkList } from "../../link/v1/link_pb.js";
|
|
12
|
+
import type { ApartmentClimateSummary, ClimateMode, RoomClimate, RoomClimateList, RoomHistory } from "../../climate/v1/climate_pb.js";
|
|
13
|
+
import type { IssuedInvite, SpaceInvites } from "./invite_pb.js";
|
|
14
|
+
import type { GatewayMembers } from "./members_pb.js";
|
|
15
|
+
import type { PairingErrorDetail, PairingWindow } from "../../common/v1/pairing_pb.js";
|
|
16
|
+
import type { BackendHealth, ConnectorKind, DeviceOwnershipType } from "../../common/v1/types_pb.js";
|
|
11
17
|
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
12
|
-
import type { DeviceAdded, DeviceRemoved, DeviceStateSnapshot, PropertyReport } from "./device_state_pb.js";
|
|
18
|
+
import type { DeviceAdded, DeviceRemoved, DeviceStateSnapshot, PropertyReport, ServiceStatusChanged } from "./device_state_pb.js";
|
|
13
19
|
import type { LivePermissionUpdate } from "./permission_push_pb.js";
|
|
14
20
|
import type { AttributeWriteRequest, CommandResult, DeviceCommand } from "./command_pb.js";
|
|
15
21
|
import type { DeviceEventBatch } from "../../device/v1/device_event_pb.js";
|
|
@@ -316,6 +322,70 @@ export declare type ManagementResult = Message<"kusinta.iot.webrtc.v1.Management
|
|
|
316
322
|
*/
|
|
317
323
|
value: ManagementAck;
|
|
318
324
|
case: "ack";
|
|
325
|
+
} | {
|
|
326
|
+
/**
|
|
327
|
+
* list_device_links
|
|
328
|
+
*
|
|
329
|
+
* @generated from field: kusinta.iot.link.v1.DeviceLinkList links = 6;
|
|
330
|
+
*/
|
|
331
|
+
value: DeviceLinkList;
|
|
332
|
+
case: "links";
|
|
333
|
+
} | {
|
|
334
|
+
/**
|
|
335
|
+
* list_room_climates
|
|
336
|
+
*
|
|
337
|
+
* @generated from field: kusinta.iot.climate.v1.RoomClimateList room_climates = 7;
|
|
338
|
+
*/
|
|
339
|
+
value: RoomClimateList;
|
|
340
|
+
case: "roomClimates";
|
|
341
|
+
} | {
|
|
342
|
+
/**
|
|
343
|
+
* get_room_history
|
|
344
|
+
*
|
|
345
|
+
* @generated from field: kusinta.iot.climate.v1.RoomHistory room_history = 8;
|
|
346
|
+
*/
|
|
347
|
+
value: RoomHistory;
|
|
348
|
+
case: "roomHistory";
|
|
349
|
+
} | {
|
|
350
|
+
/**
|
|
351
|
+
* get_privacy_disclosure
|
|
352
|
+
*
|
|
353
|
+
* @generated from field: kusinta.iot.webrtc.v1.PrivacyDisclosure privacy_disclosure = 9;
|
|
354
|
+
*/
|
|
355
|
+
value: PrivacyDisclosure;
|
|
356
|
+
case: "privacyDisclosure";
|
|
357
|
+
} | {
|
|
358
|
+
/**
|
|
359
|
+
* get_apartment_climate_summary
|
|
360
|
+
*
|
|
361
|
+
* @generated from field: kusinta.iot.climate.v1.ApartmentClimateSummary apartment_climate_summary = 10;
|
|
362
|
+
*/
|
|
363
|
+
value: ApartmentClimateSummary;
|
|
364
|
+
case: "apartmentClimateSummary";
|
|
365
|
+
} | {
|
|
366
|
+
/**
|
|
367
|
+
* create_invite, resend_invite
|
|
368
|
+
*
|
|
369
|
+
* @generated from field: kusinta.iot.webrtc.v1.IssuedInvite issued_invite = 11;
|
|
370
|
+
*/
|
|
371
|
+
value: IssuedInvite;
|
|
372
|
+
case: "issuedInvite";
|
|
373
|
+
} | {
|
|
374
|
+
/**
|
|
375
|
+
* list_space_invites
|
|
376
|
+
*
|
|
377
|
+
* @generated from field: kusinta.iot.webrtc.v1.SpaceInvites space_invites = 12;
|
|
378
|
+
*/
|
|
379
|
+
value: SpaceInvites;
|
|
380
|
+
case: "spaceInvites";
|
|
381
|
+
} | {
|
|
382
|
+
/**
|
|
383
|
+
* list_gateway_members
|
|
384
|
+
*
|
|
385
|
+
* @generated from field: kusinta.iot.webrtc.v1.GatewayMembers gateway_members = 13;
|
|
386
|
+
*/
|
|
387
|
+
value: GatewayMembers;
|
|
388
|
+
case: "gatewayMembers";
|
|
319
389
|
} | { case: undefined; value?: undefined };
|
|
320
390
|
};
|
|
321
391
|
|
|
@@ -325,9 +395,383 @@ export declare type ManagementResult = Message<"kusinta.iot.webrtc.v1.Management
|
|
|
325
395
|
*/
|
|
326
396
|
export declare const ManagementResultSchema: GenMessage<ManagementResult>;
|
|
327
397
|
|
|
398
|
+
/**
|
|
399
|
+
* Asks the gateway to put a connector into pairing mode, so a device joined during the
|
|
400
|
+
* window becomes the caller's rather than belonging to nobody.
|
|
401
|
+
*
|
|
402
|
+
* A payload case of its own rather than a ManagementRequest. Those are gated on a target —
|
|
403
|
+
* a space, a device — and that is the justification for keeping them behind one wrapper.
|
|
404
|
+
* A connector is not a target the caller must reach the way a space is, so this is
|
|
405
|
+
* authorized against the caller's role and nothing else — but it must still name the
|
|
406
|
+
* connector to open (see connector_id), never every connector at once.
|
|
407
|
+
*
|
|
408
|
+
* Answered twice, and the two answers say different things at different times.
|
|
409
|
+
* PairingStarted reports whether the window opened; PairingFinished reports what came of
|
|
410
|
+
* it, seconds or minutes later, once someone has pressed a button on hardware that may be
|
|
411
|
+
* asleep or out of range.
|
|
412
|
+
*
|
|
413
|
+
* @generated from message kusinta.iot.webrtc.v1.StartPairing
|
|
414
|
+
*/
|
|
415
|
+
export declare type StartPairing = Message<"kusinta.iot.webrtc.v1.StartPairing"> & {
|
|
416
|
+
/**
|
|
417
|
+
* Which connector to open. Required: pairing always targets exactly one connector,
|
|
418
|
+
* picked from the connector enumeration (see ConnectorsAnnounced and
|
|
419
|
+
* ConnectorInfo.supports_pairing). An untargeted request is refused with
|
|
420
|
+
* PairingError.CONNECTOR_REQUIRED, never fanned out across every hub — so that no
|
|
421
|
+
* client can open every radio at once, and so a device is paired onto the specific hub
|
|
422
|
+
* that will broker its links. The field is a message, so proto cannot mark it required;
|
|
423
|
+
* the gateway enforces it.
|
|
424
|
+
*
|
|
425
|
+
* @generated from field: kusinta.iot.identity.v1.ConnectorId connector_id = 1;
|
|
426
|
+
*/
|
|
427
|
+
connectorId?: ConnectorId | undefined;
|
|
428
|
+
|
|
429
|
+
/**
|
|
430
|
+
* How long, which device, how many. See PairingWindow.
|
|
431
|
+
*
|
|
432
|
+
* @generated from field: kusinta.iot.common.v1.PairingWindow window = 2;
|
|
433
|
+
*/
|
|
434
|
+
window?: PairingWindow | undefined;
|
|
435
|
+
|
|
436
|
+
/**
|
|
437
|
+
* Where to file the device once it arrives. Into a home only as PlaceDeviceInSpace
|
|
438
|
+
* allows.
|
|
439
|
+
*
|
|
440
|
+
* Optional, and the two cases differ. A caller pairing a device of their own must name a
|
|
441
|
+
* space they reach, so it is theirs and placed on arrival rather than sitting unfiled and
|
|
442
|
+
* invisible to them. A caller commissioning for a building may leave it unset: a building
|
|
443
|
+
* is commissioned before its spaces are recorded, and an unfiled device is visible to the
|
|
444
|
+
* administrator, who is the person doing the pairing.
|
|
445
|
+
*
|
|
446
|
+
* @generated from field: kusinta.iot.identity.v1.SpaceId initial_space_id = 3;
|
|
447
|
+
*/
|
|
448
|
+
initialSpaceId?: SpaceId | undefined;
|
|
449
|
+
|
|
450
|
+
/**
|
|
451
|
+
* What the device should become. Unset lets the gateway decide from the caller's role,
|
|
452
|
+
* which is the reading that scales: someone commissioning fifty devices for a building
|
|
453
|
+
* should not come to own fifty devices because a field defaulted.
|
|
454
|
+
*
|
|
455
|
+
* The gateway refuses an ownership the caller may not confer, and never mints ownership
|
|
456
|
+
* for a third party — handing a device to someone else is a transfer, a separate operation
|
|
457
|
+
* with its own authority.
|
|
458
|
+
*
|
|
459
|
+
* @generated from field: kusinta.iot.common.v1.DeviceOwnershipType ownership = 4;
|
|
460
|
+
*/
|
|
461
|
+
ownership: DeviceOwnershipType;
|
|
462
|
+
};
|
|
463
|
+
|
|
464
|
+
/**
|
|
465
|
+
* Describes the message kusinta.iot.webrtc.v1.StartPairing.
|
|
466
|
+
* Use `create(StartPairingSchema)` to create a new message.
|
|
467
|
+
*/
|
|
468
|
+
export declare const StartPairingSchema: GenMessage<StartPairing>;
|
|
469
|
+
|
|
470
|
+
/**
|
|
471
|
+
* Whether the pairing window opened, gateway → app. The first of two answers to a
|
|
472
|
+
* StartPairing.
|
|
473
|
+
*
|
|
474
|
+
* @generated from message kusinta.iot.webrtc.v1.PairingStarted
|
|
475
|
+
*/
|
|
476
|
+
export declare type PairingStarted = Message<"kusinta.iot.webrtc.v1.PairingStarted"> & {
|
|
477
|
+
/**
|
|
478
|
+
* AppMessage.message_id of the StartPairing
|
|
479
|
+
*
|
|
480
|
+
* @generated from field: string in_reply_to = 1;
|
|
481
|
+
*/
|
|
482
|
+
inReplyTo: string;
|
|
483
|
+
|
|
484
|
+
/**
|
|
485
|
+
* When the window closes. Present when it opened, and this is the value to count down
|
|
486
|
+
* from — not the duration that was asked for, which both the gateway and the connector
|
|
487
|
+
* clamp. A countdown run on the request rather than on this one disagrees with the hub.
|
|
488
|
+
*
|
|
489
|
+
* @generated from field: google.protobuf.Timestamp expires_at = 2;
|
|
490
|
+
*/
|
|
491
|
+
expiresAt?: Timestamp | undefined;
|
|
492
|
+
|
|
493
|
+
/**
|
|
494
|
+
* Why it did not open. Present instead of expires_at.
|
|
495
|
+
*
|
|
496
|
+
* @generated from field: kusinta.iot.common.v1.PairingErrorDetail error = 3;
|
|
497
|
+
*/
|
|
498
|
+
error?: PairingErrorDetail | undefined;
|
|
499
|
+
};
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* Describes the message kusinta.iot.webrtc.v1.PairingStarted.
|
|
503
|
+
* Use `create(PairingStartedSchema)` to create a new message.
|
|
504
|
+
*/
|
|
505
|
+
export declare const PairingStartedSchema: GenMessage<PairingStarted>;
|
|
506
|
+
|
|
507
|
+
/**
|
|
508
|
+
* What the pairing window produced, gateway → app. The second and last answer, sent once
|
|
509
|
+
* when the window closes.
|
|
510
|
+
*
|
|
511
|
+
* One message per request, not per device: a batch window attributes several, and a client
|
|
512
|
+
* given one message each has nothing telling it the window is over and no defined moment to
|
|
513
|
+
* stop waiting. The devices are listed here; each also arrives as an ordinary DeviceAdded
|
|
514
|
+
* as it appears, so a client may show them as they come and use this to finish.
|
|
515
|
+
*
|
|
516
|
+
* An error and a non-empty device list are not exclusive. A batch of five that attributed
|
|
517
|
+
* three and then expired reports both — three devices and NO_DEVICE_APPEARED — because
|
|
518
|
+
* "some worked" and "the window ran out" are both true and a user needs to be told both.
|
|
519
|
+
*
|
|
520
|
+
* @generated from message kusinta.iot.webrtc.v1.PairingFinished
|
|
521
|
+
*/
|
|
522
|
+
export declare type PairingFinished = Message<"kusinta.iot.webrtc.v1.PairingFinished"> & {
|
|
523
|
+
/**
|
|
524
|
+
* AppMessage.message_id of the StartPairing
|
|
525
|
+
*
|
|
526
|
+
* @generated from field: string in_reply_to = 1;
|
|
527
|
+
*/
|
|
528
|
+
inReplyTo: string;
|
|
529
|
+
|
|
530
|
+
/**
|
|
531
|
+
* @generated from field: repeated kusinta.iot.identity.v1.DeviceId device_ids = 2;
|
|
532
|
+
*/
|
|
533
|
+
deviceIds: DeviceId[];
|
|
534
|
+
|
|
535
|
+
/**
|
|
536
|
+
* Why the window produced fewer devices than asked for, absent when it produced them all.
|
|
537
|
+
* Note this is not always a failure of the request: a window that simply expired unused
|
|
538
|
+
* ends here too, and is the ordinary result of a user changing their mind.
|
|
539
|
+
*
|
|
540
|
+
* @generated from field: kusinta.iot.common.v1.PairingErrorDetail error = 3;
|
|
541
|
+
*/
|
|
542
|
+
error?: PairingErrorDetail | undefined;
|
|
543
|
+
};
|
|
544
|
+
|
|
545
|
+
/**
|
|
546
|
+
* Describes the message kusinta.iot.webrtc.v1.PairingFinished.
|
|
547
|
+
* Use `create(PairingFinishedSchema)` to create a new message.
|
|
548
|
+
*/
|
|
549
|
+
export declare const PairingFinishedSchema: GenMessage<PairingFinished>;
|
|
550
|
+
|
|
328
551
|
/**
|
|
329
552
|
* GatewayMessage: gateway → app
|
|
553
|
+
* A link between two devices has changed, gateway to app.
|
|
554
|
+
*
|
|
555
|
+
* Sent without being asked for, like device_added, and for the same reason: a link's
|
|
556
|
+
* state is not settled when it is made. A hub accepting a link is not the two devices
|
|
557
|
+
* honouring it, and a link that was carrying stops when its sender goes quiet — so the
|
|
558
|
+
* interesting transitions all happen long after the request that created it was
|
|
559
|
+
* answered. Without this an app can only learn by listing every link again and
|
|
560
|
+
* diffing, which means a room that has quietly stopped following its wall thermostat
|
|
561
|
+
* looks correct until somebody reloads.
|
|
562
|
+
*
|
|
563
|
+
* Apply as an upsert keyed on link.link_id, never as an insert: the same link is sent
|
|
564
|
+
* again whenever its state moves.
|
|
565
|
+
*
|
|
566
|
+
* Sent only for links the recipient is entitled to see. An unfiltered one would say
|
|
567
|
+
* which devices exist and how they are arranged, to somebody entitled to neither. A link
|
|
568
|
+
* with an end in a home reaches a recipient who sees it as service with details_withheld,
|
|
569
|
+
* and is pushed to them only when it appears and when it is removed — never for anything
|
|
570
|
+
* else, its state and settings included, which are not theirs to see. Its removal is pushed
|
|
571
|
+
* to them at once, as every loss is — to those who were shown it, and to nobody else.
|
|
572
|
+
*
|
|
573
|
+
* @generated from message kusinta.iot.webrtc.v1.LinkChanged
|
|
574
|
+
*/
|
|
575
|
+
export declare type LinkChanged = Message<"kusinta.iot.webrtc.v1.LinkChanged"> & {
|
|
576
|
+
/**
|
|
577
|
+
* @generated from field: kusinta.iot.link.v1.DeviceLink link = 1;
|
|
578
|
+
*/
|
|
579
|
+
link?: DeviceLink | undefined;
|
|
580
|
+
|
|
581
|
+
/**
|
|
582
|
+
* The link is gone, rather than merely not carrying. Distinct from a BROKEN state
|
|
583
|
+
* because the two need opposite responses: a removal is finished business, while a
|
|
584
|
+
* link that has stopped carrying is a fault worth showing somebody. Announcing a
|
|
585
|
+
* deletion as BROKEN would leave every removed link looking like something to go
|
|
586
|
+
* and repair.
|
|
587
|
+
*
|
|
588
|
+
* `link` still carries the whole link when this is set, so the app can name what
|
|
589
|
+
* went rather than only its id — as much of it as the recipient was shown, so with
|
|
590
|
+
* details_withheld to one who saw it as service. To such a recipient it means the link is
|
|
591
|
+
* gone from their view, which need not mean it is gone.
|
|
592
|
+
*
|
|
593
|
+
* @generated from field: bool removed = 2;
|
|
594
|
+
*/
|
|
595
|
+
removed: boolean;
|
|
596
|
+
};
|
|
597
|
+
|
|
598
|
+
/**
|
|
599
|
+
* Describes the message kusinta.iot.webrtc.v1.LinkChanged.
|
|
600
|
+
* Use `create(LinkChangedSchema)` to create a new message.
|
|
601
|
+
*/
|
|
602
|
+
export declare const LinkChangedSchema: GenMessage<LinkChanged>;
|
|
603
|
+
|
|
604
|
+
/**
|
|
605
|
+
* One connected connector, described for the app, gateway → app.
|
|
606
|
+
*
|
|
607
|
+
* Deliberately not connector.v1.ConnectorInfo: that carries transport and endpoint,
|
|
608
|
+
* which are the gateway↔connector wiring and no business of the app. This is the
|
|
609
|
+
* app-facing projection — who the connector is and what it can do — and nothing
|
|
610
|
+
* about how the gateway reaches it.
|
|
611
|
+
*
|
|
612
|
+
* @generated from message kusinta.iot.webrtc.v1.ConnectorDescriptor
|
|
613
|
+
*/
|
|
614
|
+
export declare type ConnectorDescriptor = Message<"kusinta.iot.webrtc.v1.ConnectorDescriptor"> & {
|
|
615
|
+
/**
|
|
616
|
+
* The routing key. Stable and unique; what StartPairing.connector_id and
|
|
617
|
+
* ProvisionDevice.connector_id name.
|
|
618
|
+
*
|
|
619
|
+
* @generated from field: kusinta.iot.identity.v1.ConnectorId connector_id = 1;
|
|
620
|
+
*/
|
|
621
|
+
connectorId?: ConnectorId | undefined;
|
|
622
|
+
|
|
623
|
+
/**
|
|
624
|
+
* User-facing label, free-form, never matched on.
|
|
625
|
+
*
|
|
626
|
+
* @generated from field: string display_name = 2;
|
|
627
|
+
*/
|
|
628
|
+
displayName: string;
|
|
629
|
+
|
|
630
|
+
/**
|
|
631
|
+
* @generated from field: repeated uint32 supported_device_type_ids = 3;
|
|
632
|
+
*/
|
|
633
|
+
supportedDeviceTypeIds: number[];
|
|
634
|
+
|
|
635
|
+
/**
|
|
636
|
+
* The capabilities the app branches on. Copied from the connector's handshake;
|
|
637
|
+
* see ConnectorInfo for what each means. The app decides pairing-vs-provisioning
|
|
638
|
+
* and whether to offer hard links from these, never from kind.
|
|
639
|
+
*
|
|
640
|
+
* @generated from field: bool supports_pairing = 4;
|
|
641
|
+
*/
|
|
642
|
+
supportsPairing: boolean;
|
|
643
|
+
|
|
644
|
+
/**
|
|
645
|
+
* @generated from field: bool supports_provisioning = 5;
|
|
646
|
+
*/
|
|
647
|
+
supportsProvisioning: boolean;
|
|
648
|
+
|
|
649
|
+
/**
|
|
650
|
+
* @generated from field: bool brokers_links = 6;
|
|
651
|
+
*/
|
|
652
|
+
brokersLinks: boolean;
|
|
653
|
+
|
|
654
|
+
/**
|
|
655
|
+
* Presentation only — an icon or an "unknown hub" fallback; see
|
|
656
|
+
* common.v1.ConnectorKind. Unset renders as a generic hub.
|
|
657
|
+
*
|
|
658
|
+
* @generated from field: kusinta.iot.common.v1.ConnectorKind kind = 7;
|
|
659
|
+
*/
|
|
660
|
+
kind: ConnectorKind;
|
|
661
|
+
|
|
662
|
+
/**
|
|
663
|
+
* Installer or operator detail, free-form, for a person.
|
|
664
|
+
*
|
|
665
|
+
* @generated from field: string description = 8;
|
|
666
|
+
*/
|
|
667
|
+
description: string;
|
|
668
|
+
|
|
669
|
+
/**
|
|
670
|
+
* Whether the backend the connector drives is working, as the connector last reported it
|
|
671
|
+
* (see connector.v1.BackendHealthReport): state and category only — the connector's own
|
|
672
|
+
* detail stays in the gateway's logs. Unset when the connector has stated nothing, which
|
|
673
|
+
* reads as OK. FAILING is what opens a reporting.v1.PROBLEM_KIND_CONNECTOR_ERROR, and
|
|
674
|
+
* while it holds the app may offer ReconnectConnector.
|
|
675
|
+
*
|
|
676
|
+
* @generated from field: kusinta.iot.common.v1.BackendHealth backend_health = 9;
|
|
677
|
+
*/
|
|
678
|
+
backendHealth?: BackendHealth | undefined;
|
|
679
|
+
|
|
680
|
+
/**
|
|
681
|
+
* The connector can re-initialise its backend on request: ReconnectConnector is
|
|
682
|
+
* refused for any connector without it. Copied from the handshake, as the other
|
|
683
|
+
* capabilities are.
|
|
684
|
+
*
|
|
685
|
+
* @generated from field: bool supports_backend_reinitialize = 10;
|
|
686
|
+
*/
|
|
687
|
+
supportsBackendReinitialize: boolean;
|
|
688
|
+
};
|
|
689
|
+
|
|
690
|
+
/**
|
|
691
|
+
* Describes the message kusinta.iot.webrtc.v1.ConnectorDescriptor.
|
|
692
|
+
* Use `create(ConnectorDescriptorSchema)` to create a new message.
|
|
693
|
+
*/
|
|
694
|
+
export declare const ConnectorDescriptorSchema: GenMessage<ConnectorDescriptor>;
|
|
695
|
+
|
|
696
|
+
/**
|
|
697
|
+
* The connectors the gateway currently holds, gateway → app: those connected now. A
|
|
698
|
+
* connector whose stream drops leaves the list, and its backend health with it; it is
|
|
699
|
+
* listed again when it reconnects. The app offers ReconnectConnector only for a listed
|
|
700
|
+
* connector.
|
|
701
|
+
*
|
|
702
|
+
* A push, not a ManagementResult arm: a new result-oneof member is a compile error
|
|
703
|
+
* in a consumer whose match on the result is exhaustive, whereas a new push case is
|
|
704
|
+
* absorbed by that switch's default. Sent on connect and whenever the set changes —
|
|
705
|
+
* a connector arriving, leaving, revising its capabilities, or its backend health
|
|
706
|
+
* changing — and replaces the app's whole picture each time rather than being a delta,
|
|
707
|
+
* so a client that missed one re-syncs from the next.
|
|
708
|
+
*
|
|
709
|
+
* @generated from message kusinta.iot.webrtc.v1.ConnectorsAnnounced
|
|
710
|
+
*/
|
|
711
|
+
export declare type ConnectorsAnnounced = Message<"kusinta.iot.webrtc.v1.ConnectorsAnnounced"> & {
|
|
712
|
+
/**
|
|
713
|
+
* @generated from field: repeated kusinta.iot.webrtc.v1.ConnectorDescriptor connectors = 1;
|
|
714
|
+
*/
|
|
715
|
+
connectors: ConnectorDescriptor[];
|
|
716
|
+
};
|
|
717
|
+
|
|
718
|
+
/**
|
|
719
|
+
* Describes the message kusinta.iot.webrtc.v1.ConnectorsAnnounced.
|
|
720
|
+
* Use `create(ConnectorsAnnouncedSchema)` to create a new message.
|
|
721
|
+
*/
|
|
722
|
+
export declare const ConnectorsAnnouncedSchema: GenMessage<ConnectorsAnnounced>;
|
|
723
|
+
|
|
724
|
+
/**
|
|
725
|
+
* A room's climate changed, gateway → app: its target, what set it, what it is being
|
|
726
|
+
* held at, its condition. Apply as an upsert keyed on room.space_id. Sent only for rooms
|
|
727
|
+
* the recipient may see, and whenever any field the recipient is sent moves — a knob
|
|
728
|
+
* turned by hand shows up here without the app asking. To a recipient who sees the room
|
|
729
|
+
* as service, what is new is sent as it happens and what is lost at once. A recipient who
|
|
730
|
+
* is sent the room with state_withheld is therefore not sent it when only withheld fields
|
|
731
|
+
* move.
|
|
330
732
|
*
|
|
733
|
+
* @generated from message kusinta.iot.webrtc.v1.RoomClimateChanged
|
|
734
|
+
*/
|
|
735
|
+
export declare type RoomClimateChanged = Message<"kusinta.iot.webrtc.v1.RoomClimateChanged"> & {
|
|
736
|
+
/**
|
|
737
|
+
* @generated from field: kusinta.iot.climate.v1.RoomClimate room = 1;
|
|
738
|
+
*/
|
|
739
|
+
room?: RoomClimate | undefined;
|
|
740
|
+
};
|
|
741
|
+
|
|
742
|
+
/**
|
|
743
|
+
* Describes the message kusinta.iot.webrtc.v1.RoomClimateChanged.
|
|
744
|
+
* Use `create(RoomClimateChangedSchema)` to create a new message.
|
|
745
|
+
*/
|
|
746
|
+
export declare const RoomClimateChangedSchema: GenMessage<RoomClimateChanged>;
|
|
747
|
+
|
|
748
|
+
/**
|
|
749
|
+
* A mode on a space was switched on, changed or ended, gateway → app. `ended` rather than
|
|
750
|
+
* kind UNSPECIFIED, so an app can still name the mode that finished. A mode on an
|
|
751
|
+
* apartment or a room in one is sent to its residents only — whether a home stands empty
|
|
752
|
+
* is theirs to know; one on any other space, to whoever reaches it.
|
|
753
|
+
*
|
|
754
|
+
* @generated from message kusinta.iot.webrtc.v1.ClimateModeChanged
|
|
755
|
+
*/
|
|
756
|
+
export declare type ClimateModeChanged = Message<"kusinta.iot.webrtc.v1.ClimateModeChanged"> & {
|
|
757
|
+
/**
|
|
758
|
+
* @generated from field: kusinta.iot.climate.v1.ClimateMode mode = 1;
|
|
759
|
+
*/
|
|
760
|
+
mode?: ClimateMode | undefined;
|
|
761
|
+
|
|
762
|
+
/**
|
|
763
|
+
* @generated from field: bool ended = 2;
|
|
764
|
+
*/
|
|
765
|
+
ended: boolean;
|
|
766
|
+
};
|
|
767
|
+
|
|
768
|
+
/**
|
|
769
|
+
* Describes the message kusinta.iot.webrtc.v1.ClimateModeChanged.
|
|
770
|
+
* Use `create(ClimateModeChangedSchema)` to create a new message.
|
|
771
|
+
*/
|
|
772
|
+
export declare const ClimateModeChangedSchema: GenMessage<ClimateModeChanged>;
|
|
773
|
+
|
|
774
|
+
/**
|
|
331
775
|
* @generated from message kusinta.iot.webrtc.v1.GatewayMessage
|
|
332
776
|
*/
|
|
333
777
|
export declare type GatewayMessage = Message<"kusinta.iot.webrtc.v1.GatewayMessage"> & {
|
|
@@ -421,6 +865,56 @@ export declare type GatewayMessage = Message<"kusinta.iot.webrtc.v1.GatewayMessa
|
|
|
421
865
|
*/
|
|
422
866
|
value: DeviceEventBatch;
|
|
423
867
|
case: "deviceEvents";
|
|
868
|
+
} | {
|
|
869
|
+
/**
|
|
870
|
+
* @generated from field: kusinta.iot.webrtc.v1.PairingStarted pairing_started = 17;
|
|
871
|
+
*/
|
|
872
|
+
value: PairingStarted;
|
|
873
|
+
case: "pairingStarted";
|
|
874
|
+
} | {
|
|
875
|
+
/**
|
|
876
|
+
* @generated from field: kusinta.iot.webrtc.v1.PairingFinished pairing_finished = 18;
|
|
877
|
+
*/
|
|
878
|
+
value: PairingFinished;
|
|
879
|
+
case: "pairingFinished";
|
|
880
|
+
} | {
|
|
881
|
+
/**
|
|
882
|
+
* @generated from field: kusinta.iot.webrtc.v1.LinkChanged link_changed = 19;
|
|
883
|
+
*/
|
|
884
|
+
value: LinkChanged;
|
|
885
|
+
case: "linkChanged";
|
|
886
|
+
} | {
|
|
887
|
+
/**
|
|
888
|
+
* @generated from field: kusinta.iot.webrtc.v1.ConnectorsAnnounced connectors_announced = 20;
|
|
889
|
+
*/
|
|
890
|
+
value: ConnectorsAnnounced;
|
|
891
|
+
case: "connectorsAnnounced";
|
|
892
|
+
} | {
|
|
893
|
+
/**
|
|
894
|
+
* @generated from field: kusinta.iot.webrtc.v1.RoomClimateChanged room_climate_changed = 21;
|
|
895
|
+
*/
|
|
896
|
+
value: RoomClimateChanged;
|
|
897
|
+
case: "roomClimateChanged";
|
|
898
|
+
} | {
|
|
899
|
+
/**
|
|
900
|
+
* @generated from field: kusinta.iot.webrtc.v1.ClimateModeChanged climate_mode_changed = 22;
|
|
901
|
+
*/
|
|
902
|
+
value: ClimateModeChanged;
|
|
903
|
+
case: "climateModeChanged";
|
|
904
|
+
} | {
|
|
905
|
+
/**
|
|
906
|
+
* @generated from field: kusinta.iot.webrtc.v1.ServiceStatusChanged service_status_changed = 23;
|
|
907
|
+
*/
|
|
908
|
+
value: ServiceStatusChanged;
|
|
909
|
+
case: "serviceStatusChanged";
|
|
910
|
+
} | {
|
|
911
|
+
/**
|
|
912
|
+
* A space's pending invites and join requests changed; see SpaceInvites.
|
|
913
|
+
*
|
|
914
|
+
* @generated from field: kusinta.iot.webrtc.v1.SpaceInvites space_invites = 24;
|
|
915
|
+
*/
|
|
916
|
+
value: SpaceInvites;
|
|
917
|
+
case: "spaceInvites";
|
|
424
918
|
} | { case: undefined; value?: undefined };
|
|
425
919
|
};
|
|
426
920
|
|
|
@@ -497,6 +991,12 @@ export declare type AppMessage = Message<"kusinta.iot.webrtc.v1.AppMessage"> & {
|
|
|
497
991
|
*/
|
|
498
992
|
value: AttributeWriteRequest;
|
|
499
993
|
case: "attributeWrite";
|
|
994
|
+
} | {
|
|
995
|
+
/**
|
|
996
|
+
* @generated from field: kusinta.iot.webrtc.v1.StartPairing start_pairing = 11;
|
|
997
|
+
*/
|
|
998
|
+
value: StartPairing;
|
|
999
|
+
case: "startPairing";
|
|
500
1000
|
} | { case: undefined; value?: undefined };
|
|
501
1001
|
};
|
|
502
1002
|
|
|
@@ -570,6 +1070,23 @@ export enum GatewayErrorCode {
|
|
|
570
1070
|
* @generated from enum value: GATEWAY_ERROR_CODE_SESSION_LIMIT_REACHED = 5;
|
|
571
1071
|
*/
|
|
572
1072
|
SESSION_LIMIT_REACHED = 5,
|
|
1073
|
+
|
|
1074
|
+
/**
|
|
1075
|
+
* The request was well formed and the caller may make it, but it will not succeed without
|
|
1076
|
+
* a change on the receiving side — a capability the target lacks, configuration only a
|
|
1077
|
+
* person can fix. Do not retry as is. Distinct from INVALID_REQUEST, which is the app's
|
|
1078
|
+
* bug, and from UNAVAILABLE, which clears on its own. GatewayError.metadata says which
|
|
1079
|
+
* precondition failed where the operation documents one. Sent only in answer to a request
|
|
1080
|
+
* whose operation documents it, never as a session-level error that refuses or ends a
|
|
1081
|
+
* session.
|
|
1082
|
+
*
|
|
1083
|
+
* Rollout note: a client whose schema predates this value decodes it as UNSPECIFIED,
|
|
1084
|
+
* which is retryable by design, so it may offer a retry that fails the same way again.
|
|
1085
|
+
* Harmless, but client handling should ship before or with the gateway that emits it.
|
|
1086
|
+
*
|
|
1087
|
+
* @generated from enum value: GATEWAY_ERROR_CODE_FAILED_PRECONDITION = 6;
|
|
1088
|
+
*/
|
|
1089
|
+
FAILED_PRECONDITION = 6,
|
|
573
1090
|
}
|
|
574
1091
|
|
|
575
1092
|
/**
|