@kusinta/iot-schema 0.2.0-beta.4 → 0.2.0-beta.41

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.
Files changed (69) hide show
  1. package/package.json +13 -1
  2. package/src/kusinta/iot/access/v1/acl_pb.d.ts +120 -2
  3. package/src/kusinta/iot/access/v1/acl_pb.js +20 -3
  4. package/src/kusinta/iot/access/v1/roles_pb.d.ts +157 -4
  5. package/src/kusinta/iot/access/v1/roles_pb.js +125 -5
  6. package/src/kusinta/iot/accountlink/v1/account_link_pb.d.ts +583 -0
  7. package/src/kusinta/iot/accountlink/v1/account_link_pb.js +160 -0
  8. package/src/kusinta/iot/climate/v1/climate_pb.d.ts +1041 -0
  9. package/src/kusinta/iot/climate/v1/climate_pb.js +206 -0
  10. package/src/kusinta/iot/commissioning/v1/commissioning_pb.d.ts +1280 -0
  11. package/src/kusinta/iot/commissioning/v1/commissioning_pb.js +275 -0
  12. package/src/kusinta/iot/common/v1/pairing_pb.d.ts +217 -0
  13. package/src/kusinta/iot/common/v1/pairing_pb.js +50 -0
  14. package/src/kusinta/iot/common/v1/types_pb.d.ts +232 -0
  15. package/src/kusinta/iot/common/v1/types_pb.js +84 -2
  16. package/src/kusinta/iot/connector/v1/connector_pb.d.ts +691 -2
  17. package/src/kusinta/iot/connector/v1/connector_pb.js +104 -13
  18. package/src/kusinta/iot/device/v1/cluster_state_pb.d.ts +213 -1
  19. package/src/kusinta/iot/device/v1/cluster_state_pb.js +37 -2
  20. package/src/kusinta/iot/device/v1/descriptor_pb.d.ts +33 -3
  21. package/src/kusinta/iot/device/v1/descriptor_pb.js +2 -1
  22. package/src/kusinta/iot/device/v1/device_event_pb.d.ts +87 -5
  23. package/src/kusinta/iot/device/v1/device_event_pb.js +1 -1
  24. package/src/kusinta/iot/device/v1/device_pb.d.ts +164 -11
  25. package/src/kusinta/iot/device/v1/device_pb.js +33 -2
  26. package/src/kusinta/iot/device/v1/properties_pb.d.ts +26 -5
  27. package/src/kusinta/iot/device/v1/properties_pb.js +1 -1
  28. package/src/kusinta/iot/device/v1/property_update_pb.d.ts +28 -2
  29. package/src/kusinta/iot/device/v1/property_update_pb.js +2 -1
  30. package/src/kusinta/iot/heating/v1/heating_pb.d.ts +619 -0
  31. package/src/kusinta/iot/heating/v1/heating_pb.js +118 -0
  32. package/src/kusinta/iot/link/v1/link_pb.d.ts +438 -0
  33. package/src/kusinta/iot/link/v1/link_pb.js +121 -0
  34. package/src/kusinta/iot/registration/v1/registration_pb.d.ts +18 -0
  35. package/src/kusinta/iot/registration/v1/registration_pb.js +1 -1
  36. package/src/kusinta/iot/reporting/v1/reporting_pb.d.ts +1228 -0
  37. package/src/kusinta/iot/reporting/v1/reporting_pb.js +238 -0
  38. package/src/kusinta/iot/reporting/v1/reporting_service_pb.d.ts +63 -0
  39. package/src/kusinta/iot/reporting/v1/reporting_service_pb.js +24 -0
  40. package/src/kusinta/iot/signaling/v1/signaling_pb.d.ts +936 -7
  41. package/src/kusinta/iot/signaling/v1/signaling_pb.js +163 -4
  42. package/src/kusinta/iot/signaling/v1/signaling_service_pb.d.ts +24 -1
  43. package/src/kusinta/iot/signaling/v1/signaling_service_pb.js +1 -1
  44. package/src/kusinta/iot/space/v1/space_pb.d.ts +129 -2
  45. package/src/kusinta/iot/space/v1/space_pb.js +10 -1
  46. package/src/kusinta/iot/vendor/homematic/v1/homematic_pb.d.ts +19 -3
  47. package/src/kusinta/iot/vendor/homematic/v1/homematic_pb.js +1 -1
  48. package/src/kusinta/iot/vendor/lorawan/v1/lorawan_pb.d.ts +69 -0
  49. package/src/kusinta/iot/vendor/lorawan/v1/lorawan_pb.js +19 -0
  50. package/src/kusinta/iot/vendor/v1/vendor_options_pb.d.ts +4 -4
  51. package/src/kusinta/iot/vendor/v1/vendor_options_pb.js +4 -4
  52. package/src/kusinta/iot/webrtc/v1/app_token_pb.d.ts +48 -5
  53. package/src/kusinta/iot/webrtc/v1/app_token_pb.js +1 -1
  54. package/src/kusinta/iot/webrtc/v1/command_pb.d.ts +56 -0
  55. package/src/kusinta/iot/webrtc/v1/command_pb.js +1 -1
  56. package/src/kusinta/iot/webrtc/v1/device_state_pb.d.ts +179 -5
  57. package/src/kusinta/iot/webrtc/v1/device_state_pb.js +35 -6
  58. package/src/kusinta/iot/webrtc/v1/envelope_pb.d.ts +664 -3
  59. package/src/kusinta/iot/webrtc/v1/envelope_pb.js +69 -3
  60. package/src/kusinta/iot/webrtc/v1/household_pb.d.ts +490 -0
  61. package/src/kusinta/iot/webrtc/v1/household_pb.js +120 -0
  62. package/src/kusinta/iot/webrtc/v1/invite_pb.d.ts +502 -0
  63. package/src/kusinta/iot/webrtc/v1/invite_pb.js +108 -0
  64. package/src/kusinta/iot/webrtc/v1/management_pb.d.ts +1944 -76
  65. package/src/kusinta/iot/webrtc/v1/management_pb.js +297 -5
  66. package/src/kusinta/iot/webrtc/v1/members_pb.d.ts +578 -0
  67. package/src/kusinta/iot/webrtc/v1/members_pb.js +113 -0
  68. package/src/kusinta/iot/webrtc/v1/permission_push_pb.d.ts +66 -4
  69. package/src/kusinta/iot/webrtc/v1/permission_push_pb.js +10 -2
@@ -4,12 +4,22 @@
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, PromotionRequests } from "./members_pb.js";
15
+ import type { HeatingLayout, HeatingRecord } from "../../heating/v1/heating_pb.js";
16
+ import type { AccountLinkNonce, AccountLinks } from "../../accountlink/v1/account_link_pb.js";
17
+ import type { CommissioningGrant, CommissioningGrants, CommissioningProfile, CommissioningRecord, CommissioningTest, HomeSetups } from "../../commissioning/v1/commissioning_pb.js";
18
+ import type { HouseholdExport, HouseholdHandover, HouseholdHandovers } from "./household_pb.js";
19
+ import type { PairingErrorDetail, PairingWindow } from "../../common/v1/pairing_pb.js";
20
+ import type { BackendHealth, ConnectorKind, DeviceOwnershipType } from "../../common/v1/types_pb.js";
11
21
  import type { Timestamp } from "@bufbuild/protobuf/wkt";
12
- import type { DeviceAdded, DeviceRemoved, DeviceStateSnapshot, PropertyReport } from "./device_state_pb.js";
22
+ import type { DeviceAdded, DeviceRemoved, DeviceStateSnapshot, PropertyReport, ServiceStatusChanged } from "./device_state_pb.js";
13
23
  import type { LivePermissionUpdate } from "./permission_push_pb.js";
14
24
  import type { AttributeWriteRequest, CommandResult, DeviceCommand } from "./command_pb.js";
15
25
  import type { DeviceEventBatch } from "../../device/v1/device_event_pb.js";
@@ -316,6 +326,176 @@ export declare type ManagementResult = Message<"kusinta.iot.webrtc.v1.Management
316
326
  */
317
327
  value: ManagementAck;
318
328
  case: "ack";
329
+ } | {
330
+ /**
331
+ * list_device_links
332
+ *
333
+ * @generated from field: kusinta.iot.link.v1.DeviceLinkList links = 6;
334
+ */
335
+ value: DeviceLinkList;
336
+ case: "links";
337
+ } | {
338
+ /**
339
+ * list_room_climates
340
+ *
341
+ * @generated from field: kusinta.iot.climate.v1.RoomClimateList room_climates = 7;
342
+ */
343
+ value: RoomClimateList;
344
+ case: "roomClimates";
345
+ } | {
346
+ /**
347
+ * get_room_history
348
+ *
349
+ * @generated from field: kusinta.iot.climate.v1.RoomHistory room_history = 8;
350
+ */
351
+ value: RoomHistory;
352
+ case: "roomHistory";
353
+ } | {
354
+ /**
355
+ * get_privacy_disclosure
356
+ *
357
+ * @generated from field: kusinta.iot.webrtc.v1.PrivacyDisclosure privacy_disclosure = 9;
358
+ */
359
+ value: PrivacyDisclosure;
360
+ case: "privacyDisclosure";
361
+ } | {
362
+ /**
363
+ * get_apartment_climate_summary
364
+ *
365
+ * @generated from field: kusinta.iot.climate.v1.ApartmentClimateSummary apartment_climate_summary = 10;
366
+ */
367
+ value: ApartmentClimateSummary;
368
+ case: "apartmentClimateSummary";
369
+ } | {
370
+ /**
371
+ * create_invite, resend_invite
372
+ *
373
+ * @generated from field: kusinta.iot.webrtc.v1.IssuedInvite issued_invite = 11;
374
+ */
375
+ value: IssuedInvite;
376
+ case: "issuedInvite";
377
+ } | {
378
+ /**
379
+ * list_space_invites
380
+ *
381
+ * @generated from field: kusinta.iot.webrtc.v1.SpaceInvites space_invites = 12;
382
+ */
383
+ value: SpaceInvites;
384
+ case: "spaceInvites";
385
+ } | {
386
+ /**
387
+ * list_gateway_members
388
+ *
389
+ * @generated from field: kusinta.iot.webrtc.v1.GatewayMembers gateway_members = 13;
390
+ */
391
+ value: GatewayMembers;
392
+ case: "gatewayMembers";
393
+ } | {
394
+ /**
395
+ * list_promotion_requests
396
+ *
397
+ * @generated from field: kusinta.iot.webrtc.v1.PromotionRequests promotion_requests = 14;
398
+ */
399
+ value: PromotionRequests;
400
+ case: "promotionRequests";
401
+ } | {
402
+ /**
403
+ * list_heating
404
+ *
405
+ * @generated from field: kusinta.iot.heating.v1.HeatingLayout heating_layout = 15;
406
+ */
407
+ value: HeatingLayout;
408
+ case: "heatingLayout";
409
+ } | {
410
+ /**
411
+ * put_heating_plant, put_heating_circuit, put_floor_zone, put_comfort_load,
412
+ * set_comfort_windows
413
+ *
414
+ * @generated from field: kusinta.iot.heating.v1.HeatingRecord heating_record = 16;
415
+ */
416
+ value: HeatingRecord;
417
+ case: "heatingRecord";
418
+ } | {
419
+ /**
420
+ * request_account_link_nonce
421
+ *
422
+ * @generated from field: kusinta.iot.accountlink.v1.AccountLinkNonce account_link_nonce = 17;
423
+ */
424
+ value: AccountLinkNonce;
425
+ case: "accountLinkNonce";
426
+ } | {
427
+ /**
428
+ * list_account_links
429
+ *
430
+ * @generated from field: kusinta.iot.accountlink.v1.AccountLinks account_links = 18;
431
+ */
432
+ value: AccountLinks;
433
+ case: "accountLinks";
434
+ } | {
435
+ /**
436
+ * list_commissioning
437
+ *
438
+ * @generated from field: kusinta.iot.commissioning.v1.CommissioningProfile commissioning_profile = 19;
439
+ */
440
+ value: CommissioningProfile;
441
+ case: "commissioningProfile";
442
+ } | {
443
+ /**
444
+ * put_commissioning_fact, put_house_template, run_commissioning_test,
445
+ * conclude_commissioning_test
446
+ *
447
+ * @generated from field: kusinta.iot.commissioning.v1.CommissioningRecord commissioning_record = 20;
448
+ */
449
+ value: CommissioningRecord;
450
+ case: "commissioningRecord";
451
+ } | {
452
+ /**
453
+ * list_home_setups
454
+ *
455
+ * @generated from field: kusinta.iot.commissioning.v1.HomeSetups home_setups = 21;
456
+ */
457
+ value: HomeSetups;
458
+ case: "homeSetups";
459
+ } | {
460
+ /**
461
+ * request_commissioning_grant, answer_commissioning_grant (granted)
462
+ *
463
+ * @generated from field: kusinta.iot.commissioning.v1.CommissioningGrant commissioning_grant = 22;
464
+ */
465
+ value: CommissioningGrant;
466
+ case: "commissioningGrant";
467
+ } | {
468
+ /**
469
+ * list_commissioning_grants
470
+ *
471
+ * @generated from field: kusinta.iot.commissioning.v1.CommissioningGrants commissioning_grants = 23;
472
+ */
473
+ value: CommissioningGrants;
474
+ case: "commissioningGrants";
475
+ } | {
476
+ /**
477
+ * start_household_handover
478
+ *
479
+ * @generated from field: kusinta.iot.webrtc.v1.HouseholdHandover household_handover = 24;
480
+ */
481
+ value: HouseholdHandover;
482
+ case: "householdHandover";
483
+ } | {
484
+ /**
485
+ * list_household_handovers
486
+ *
487
+ * @generated from field: kusinta.iot.webrtc.v1.HouseholdHandovers household_handovers = 25;
488
+ */
489
+ value: HouseholdHandovers;
490
+ case: "householdHandovers";
491
+ } | {
492
+ /**
493
+ * export_household_data
494
+ *
495
+ * @generated from field: kusinta.iot.webrtc.v1.HouseholdExport household_export = 26;
496
+ */
497
+ value: HouseholdExport;
498
+ case: "householdExport";
319
499
  } | { case: undefined; value?: undefined };
320
500
  };
321
501
 
@@ -325,9 +505,383 @@ export declare type ManagementResult = Message<"kusinta.iot.webrtc.v1.Management
325
505
  */
326
506
  export declare const ManagementResultSchema: GenMessage<ManagementResult>;
327
507
 
508
+ /**
509
+ * Asks the gateway to put a connector into pairing mode, so a device joined during the
510
+ * window becomes the caller's rather than belonging to nobody.
511
+ *
512
+ * A payload case of its own rather than a ManagementRequest. Those are gated on a target —
513
+ * a space, a device — and that is the justification for keeping them behind one wrapper.
514
+ * A connector is not a target the caller must reach the way a space is, so this is
515
+ * authorized against the caller's role and nothing else — but it must still name the
516
+ * connector to open (see connector_id), never every connector at once.
517
+ *
518
+ * Answered twice, and the two answers say different things at different times.
519
+ * PairingStarted reports whether the window opened; PairingFinished reports what came of
520
+ * it, seconds or minutes later, once someone has pressed a button on hardware that may be
521
+ * asleep or out of range.
522
+ *
523
+ * @generated from message kusinta.iot.webrtc.v1.StartPairing
524
+ */
525
+ export declare type StartPairing = Message<"kusinta.iot.webrtc.v1.StartPairing"> & {
526
+ /**
527
+ * Which connector to open. Required: pairing always targets exactly one connector,
528
+ * picked from the connector enumeration (see ConnectorsAnnounced and
529
+ * ConnectorInfo.supports_pairing). An untargeted request is refused with
530
+ * PairingError.CONNECTOR_REQUIRED, never fanned out across every hub — so that no
531
+ * client can open every radio at once, and so a device is paired onto the specific hub
532
+ * that will broker its links. The field is a message, so proto cannot mark it required;
533
+ * the gateway enforces it.
534
+ *
535
+ * @generated from field: kusinta.iot.identity.v1.ConnectorId connector_id = 1;
536
+ */
537
+ connectorId?: ConnectorId | undefined;
538
+
539
+ /**
540
+ * How long, which device, how many. See PairingWindow.
541
+ *
542
+ * @generated from field: kusinta.iot.common.v1.PairingWindow window = 2;
543
+ */
544
+ window?: PairingWindow | undefined;
545
+
546
+ /**
547
+ * Where to file the device once it arrives. Into a home only as PlaceDeviceInSpace
548
+ * allows.
549
+ *
550
+ * Optional, and the two cases differ. A caller pairing a device of their own must name a
551
+ * space they reach, so it is theirs and placed on arrival rather than sitting unfiled and
552
+ * invisible to them. A caller commissioning for a building may leave it unset: a building
553
+ * is commissioned before its spaces are recorded, and an unfiled device is visible to the
554
+ * administrator, who is the person doing the pairing.
555
+ *
556
+ * @generated from field: kusinta.iot.identity.v1.SpaceId initial_space_id = 3;
557
+ */
558
+ initialSpaceId?: SpaceId | undefined;
559
+
560
+ /**
561
+ * What the device should become. Unset lets the gateway decide from the caller's role,
562
+ * which is the reading that scales: someone commissioning fifty devices for a building
563
+ * should not come to own fifty devices because a field defaulted.
564
+ *
565
+ * The gateway refuses an ownership the caller may not confer, and never mints ownership
566
+ * for a third party — handing a device to someone else is a transfer, a separate operation
567
+ * with its own authority.
568
+ *
569
+ * @generated from field: kusinta.iot.common.v1.DeviceOwnershipType ownership = 4;
570
+ */
571
+ ownership: DeviceOwnershipType;
572
+ };
573
+
574
+ /**
575
+ * Describes the message kusinta.iot.webrtc.v1.StartPairing.
576
+ * Use `create(StartPairingSchema)` to create a new message.
577
+ */
578
+ export declare const StartPairingSchema: GenMessage<StartPairing>;
579
+
580
+ /**
581
+ * Whether the pairing window opened, gateway → app. The first of two answers to a
582
+ * StartPairing.
583
+ *
584
+ * @generated from message kusinta.iot.webrtc.v1.PairingStarted
585
+ */
586
+ export declare type PairingStarted = Message<"kusinta.iot.webrtc.v1.PairingStarted"> & {
587
+ /**
588
+ * AppMessage.message_id of the StartPairing
589
+ *
590
+ * @generated from field: string in_reply_to = 1;
591
+ */
592
+ inReplyTo: string;
593
+
594
+ /**
595
+ * When the window closes. Present when it opened, and this is the value to count down
596
+ * from — not the duration that was asked for, which both the gateway and the connector
597
+ * clamp. A countdown run on the request rather than on this one disagrees with the hub.
598
+ *
599
+ * @generated from field: google.protobuf.Timestamp expires_at = 2;
600
+ */
601
+ expiresAt?: Timestamp | undefined;
602
+
603
+ /**
604
+ * Why it did not open. Present instead of expires_at.
605
+ *
606
+ * @generated from field: kusinta.iot.common.v1.PairingErrorDetail error = 3;
607
+ */
608
+ error?: PairingErrorDetail | undefined;
609
+ };
610
+
611
+ /**
612
+ * Describes the message kusinta.iot.webrtc.v1.PairingStarted.
613
+ * Use `create(PairingStartedSchema)` to create a new message.
614
+ */
615
+ export declare const PairingStartedSchema: GenMessage<PairingStarted>;
616
+
617
+ /**
618
+ * What the pairing window produced, gateway → app. The second and last answer, sent once
619
+ * when the window closes.
620
+ *
621
+ * One message per request, not per device: a batch window attributes several, and a client
622
+ * given one message each has nothing telling it the window is over and no defined moment to
623
+ * stop waiting. The devices are listed here; each also arrives as an ordinary DeviceAdded
624
+ * as it appears, so a client may show them as they come and use this to finish.
625
+ *
626
+ * An error and a non-empty device list are not exclusive. A batch of five that attributed
627
+ * three and then expired reports both — three devices and NO_DEVICE_APPEARED — because
628
+ * "some worked" and "the window ran out" are both true and a user needs to be told both.
629
+ *
630
+ * @generated from message kusinta.iot.webrtc.v1.PairingFinished
631
+ */
632
+ export declare type PairingFinished = Message<"kusinta.iot.webrtc.v1.PairingFinished"> & {
633
+ /**
634
+ * AppMessage.message_id of the StartPairing
635
+ *
636
+ * @generated from field: string in_reply_to = 1;
637
+ */
638
+ inReplyTo: string;
639
+
640
+ /**
641
+ * @generated from field: repeated kusinta.iot.identity.v1.DeviceId device_ids = 2;
642
+ */
643
+ deviceIds: DeviceId[];
644
+
645
+ /**
646
+ * Why the window produced fewer devices than asked for, absent when it produced them all.
647
+ * Note this is not always a failure of the request: a window that simply expired unused
648
+ * ends here too, and is the ordinary result of a user changing their mind.
649
+ *
650
+ * @generated from field: kusinta.iot.common.v1.PairingErrorDetail error = 3;
651
+ */
652
+ error?: PairingErrorDetail | undefined;
653
+ };
654
+
655
+ /**
656
+ * Describes the message kusinta.iot.webrtc.v1.PairingFinished.
657
+ * Use `create(PairingFinishedSchema)` to create a new message.
658
+ */
659
+ export declare const PairingFinishedSchema: GenMessage<PairingFinished>;
660
+
328
661
  /**
329
662
  * GatewayMessage: gateway → app
663
+ * A link between two devices has changed, gateway to app.
664
+ *
665
+ * Sent without being asked for, like device_added, and for the same reason: a link's
666
+ * state is not settled when it is made. A hub accepting a link is not the two devices
667
+ * honouring it, and a link that was carrying stops when its sender goes quiet — so the
668
+ * interesting transitions all happen long after the request that created it was
669
+ * answered. Without this an app can only learn by listing every link again and
670
+ * diffing, which means a room that has quietly stopped following its wall thermostat
671
+ * looks correct until somebody reloads.
672
+ *
673
+ * Apply as an upsert keyed on link.link_id, never as an insert: the same link is sent
674
+ * again whenever its state moves.
675
+ *
676
+ * Sent only for links the recipient is entitled to see. An unfiltered one would say
677
+ * which devices exist and how they are arranged, to somebody entitled to neither. A link
678
+ * with an end in a home reaches a recipient who sees it as service with details_withheld,
679
+ * and is pushed to them only when it appears and when it is removed — never for anything
680
+ * else, its state and settings included, which are not theirs to see. Its removal is pushed
681
+ * to them at once, as every loss is — to those who were shown it, and to nobody else.
682
+ *
683
+ * @generated from message kusinta.iot.webrtc.v1.LinkChanged
684
+ */
685
+ export declare type LinkChanged = Message<"kusinta.iot.webrtc.v1.LinkChanged"> & {
686
+ /**
687
+ * @generated from field: kusinta.iot.link.v1.DeviceLink link = 1;
688
+ */
689
+ link?: DeviceLink | undefined;
690
+
691
+ /**
692
+ * The link is gone, rather than merely not carrying. Distinct from a BROKEN state
693
+ * because the two need opposite responses: a removal is finished business, while a
694
+ * link that has stopped carrying is a fault worth showing somebody. Announcing a
695
+ * deletion as BROKEN would leave every removed link looking like something to go
696
+ * and repair.
697
+ *
698
+ * `link` still carries the whole link when this is set, so the app can name what
699
+ * went rather than only its id — as much of it as the recipient was shown, so with
700
+ * details_withheld to one who saw it as service. To such a recipient it means the link is
701
+ * gone from their view, which need not mean it is gone.
702
+ *
703
+ * @generated from field: bool removed = 2;
704
+ */
705
+ removed: boolean;
706
+ };
707
+
708
+ /**
709
+ * Describes the message kusinta.iot.webrtc.v1.LinkChanged.
710
+ * Use `create(LinkChangedSchema)` to create a new message.
711
+ */
712
+ export declare const LinkChangedSchema: GenMessage<LinkChanged>;
713
+
714
+ /**
715
+ * One connected connector, described for the app, gateway → app.
716
+ *
717
+ * Deliberately not connector.v1.ConnectorInfo: that carries transport and endpoint,
718
+ * which are the gateway↔connector wiring and no business of the app. This is the
719
+ * app-facing projection — who the connector is and what it can do — and nothing
720
+ * about how the gateway reaches it.
721
+ *
722
+ * @generated from message kusinta.iot.webrtc.v1.ConnectorDescriptor
723
+ */
724
+ export declare type ConnectorDescriptor = Message<"kusinta.iot.webrtc.v1.ConnectorDescriptor"> & {
725
+ /**
726
+ * The routing key. Stable and unique; what StartPairing.connector_id and
727
+ * ProvisionDevice.connector_id name.
728
+ *
729
+ * @generated from field: kusinta.iot.identity.v1.ConnectorId connector_id = 1;
730
+ */
731
+ connectorId?: ConnectorId | undefined;
732
+
733
+ /**
734
+ * User-facing label, free-form, never matched on.
735
+ *
736
+ * @generated from field: string display_name = 2;
737
+ */
738
+ displayName: string;
739
+
740
+ /**
741
+ * @generated from field: repeated uint32 supported_device_type_ids = 3;
742
+ */
743
+ supportedDeviceTypeIds: number[];
744
+
745
+ /**
746
+ * The capabilities the app branches on. Copied from the connector's handshake;
747
+ * see ConnectorInfo for what each means. The app decides pairing-vs-provisioning
748
+ * and whether to offer hard links from these, never from kind.
749
+ *
750
+ * @generated from field: bool supports_pairing = 4;
751
+ */
752
+ supportsPairing: boolean;
753
+
754
+ /**
755
+ * @generated from field: bool supports_provisioning = 5;
756
+ */
757
+ supportsProvisioning: boolean;
758
+
759
+ /**
760
+ * @generated from field: bool brokers_links = 6;
761
+ */
762
+ brokersLinks: boolean;
763
+
764
+ /**
765
+ * Presentation only — an icon or an "unknown hub" fallback; see
766
+ * common.v1.ConnectorKind. Unset renders as a generic hub.
767
+ *
768
+ * @generated from field: kusinta.iot.common.v1.ConnectorKind kind = 7;
769
+ */
770
+ kind: ConnectorKind;
771
+
772
+ /**
773
+ * Installer or operator detail, free-form, for a person.
774
+ *
775
+ * @generated from field: string description = 8;
776
+ */
777
+ description: string;
778
+
779
+ /**
780
+ * Whether the backend the connector drives is working, as the connector last reported it
781
+ * (see connector.v1.BackendHealthReport): state and category only — the connector's own
782
+ * detail stays in the gateway's logs. Unset when the connector has stated nothing, which
783
+ * reads as OK. FAILING is what opens a reporting.v1.PROBLEM_KIND_CONNECTOR_ERROR, and
784
+ * while it holds the app may offer ReconnectConnector.
785
+ *
786
+ * @generated from field: kusinta.iot.common.v1.BackendHealth backend_health = 9;
787
+ */
788
+ backendHealth?: BackendHealth | undefined;
789
+
790
+ /**
791
+ * The connector can re-initialise its backend on request: ReconnectConnector is
792
+ * refused for any connector without it. Copied from the handshake, as the other
793
+ * capabilities are.
794
+ *
795
+ * @generated from field: bool supports_backend_reinitialize = 10;
796
+ */
797
+ supportsBackendReinitialize: boolean;
798
+ };
799
+
800
+ /**
801
+ * Describes the message kusinta.iot.webrtc.v1.ConnectorDescriptor.
802
+ * Use `create(ConnectorDescriptorSchema)` to create a new message.
803
+ */
804
+ export declare const ConnectorDescriptorSchema: GenMessage<ConnectorDescriptor>;
805
+
806
+ /**
807
+ * The connectors the gateway currently holds, gateway → app: those connected now. A
808
+ * connector whose stream drops leaves the list, and its backend health with it; it is
809
+ * listed again when it reconnects. The app offers ReconnectConnector only for a listed
810
+ * connector.
811
+ *
812
+ * A push, not a ManagementResult arm: a new result-oneof member is a compile error
813
+ * in a consumer whose match on the result is exhaustive, whereas a new push case is
814
+ * absorbed by that switch's default. Sent on connect and whenever the set changes —
815
+ * a connector arriving, leaving, revising its capabilities, or its backend health
816
+ * changing — and replaces the app's whole picture each time rather than being a delta,
817
+ * so a client that missed one re-syncs from the next.
818
+ *
819
+ * @generated from message kusinta.iot.webrtc.v1.ConnectorsAnnounced
820
+ */
821
+ export declare type ConnectorsAnnounced = Message<"kusinta.iot.webrtc.v1.ConnectorsAnnounced"> & {
822
+ /**
823
+ * @generated from field: repeated kusinta.iot.webrtc.v1.ConnectorDescriptor connectors = 1;
824
+ */
825
+ connectors: ConnectorDescriptor[];
826
+ };
827
+
828
+ /**
829
+ * Describes the message kusinta.iot.webrtc.v1.ConnectorsAnnounced.
830
+ * Use `create(ConnectorsAnnouncedSchema)` to create a new message.
831
+ */
832
+ export declare const ConnectorsAnnouncedSchema: GenMessage<ConnectorsAnnounced>;
833
+
834
+ /**
835
+ * A room's climate changed, gateway → app: its target, what set it, what it is being
836
+ * held at, its condition. Apply as an upsert keyed on room.space_id. Sent only for rooms
837
+ * the recipient may see, and whenever any field the recipient is sent moves — a knob
838
+ * turned by hand shows up here without the app asking. To a recipient who sees the room
839
+ * as service, what is new is sent as it happens and what is lost at once. A recipient who
840
+ * is sent the room with state_withheld is therefore not sent it when only withheld fields
841
+ * move.
330
842
  *
843
+ * @generated from message kusinta.iot.webrtc.v1.RoomClimateChanged
844
+ */
845
+ export declare type RoomClimateChanged = Message<"kusinta.iot.webrtc.v1.RoomClimateChanged"> & {
846
+ /**
847
+ * @generated from field: kusinta.iot.climate.v1.RoomClimate room = 1;
848
+ */
849
+ room?: RoomClimate | undefined;
850
+ };
851
+
852
+ /**
853
+ * Describes the message kusinta.iot.webrtc.v1.RoomClimateChanged.
854
+ * Use `create(RoomClimateChangedSchema)` to create a new message.
855
+ */
856
+ export declare const RoomClimateChangedSchema: GenMessage<RoomClimateChanged>;
857
+
858
+ /**
859
+ * A mode on a space was switched on, changed or ended, gateway → app. `ended` rather than
860
+ * kind UNSPECIFIED, so an app can still name the mode that finished. A mode on an
861
+ * apartment or a room in one is sent to its residents only — whether a home stands empty
862
+ * is theirs to know; one on any other space, to whoever reaches it.
863
+ *
864
+ * @generated from message kusinta.iot.webrtc.v1.ClimateModeChanged
865
+ */
866
+ export declare type ClimateModeChanged = Message<"kusinta.iot.webrtc.v1.ClimateModeChanged"> & {
867
+ /**
868
+ * @generated from field: kusinta.iot.climate.v1.ClimateMode mode = 1;
869
+ */
870
+ mode?: ClimateMode | undefined;
871
+
872
+ /**
873
+ * @generated from field: bool ended = 2;
874
+ */
875
+ ended: boolean;
876
+ };
877
+
878
+ /**
879
+ * Describes the message kusinta.iot.webrtc.v1.ClimateModeChanged.
880
+ * Use `create(ClimateModeChangedSchema)` to create a new message.
881
+ */
882
+ export declare const ClimateModeChangedSchema: GenMessage<ClimateModeChanged>;
883
+
884
+ /**
331
885
  * @generated from message kusinta.iot.webrtc.v1.GatewayMessage
332
886
  */
333
887
  export declare type GatewayMessage = Message<"kusinta.iot.webrtc.v1.GatewayMessage"> & {
@@ -421,6 +975,90 @@ export declare type GatewayMessage = Message<"kusinta.iot.webrtc.v1.GatewayMessa
421
975
  */
422
976
  value: DeviceEventBatch;
423
977
  case: "deviceEvents";
978
+ } | {
979
+ /**
980
+ * @generated from field: kusinta.iot.webrtc.v1.PairingStarted pairing_started = 17;
981
+ */
982
+ value: PairingStarted;
983
+ case: "pairingStarted";
984
+ } | {
985
+ /**
986
+ * @generated from field: kusinta.iot.webrtc.v1.PairingFinished pairing_finished = 18;
987
+ */
988
+ value: PairingFinished;
989
+ case: "pairingFinished";
990
+ } | {
991
+ /**
992
+ * @generated from field: kusinta.iot.webrtc.v1.LinkChanged link_changed = 19;
993
+ */
994
+ value: LinkChanged;
995
+ case: "linkChanged";
996
+ } | {
997
+ /**
998
+ * @generated from field: kusinta.iot.webrtc.v1.ConnectorsAnnounced connectors_announced = 20;
999
+ */
1000
+ value: ConnectorsAnnounced;
1001
+ case: "connectorsAnnounced";
1002
+ } | {
1003
+ /**
1004
+ * @generated from field: kusinta.iot.webrtc.v1.RoomClimateChanged room_climate_changed = 21;
1005
+ */
1006
+ value: RoomClimateChanged;
1007
+ case: "roomClimateChanged";
1008
+ } | {
1009
+ /**
1010
+ * @generated from field: kusinta.iot.webrtc.v1.ClimateModeChanged climate_mode_changed = 22;
1011
+ */
1012
+ value: ClimateModeChanged;
1013
+ case: "climateModeChanged";
1014
+ } | {
1015
+ /**
1016
+ * @generated from field: kusinta.iot.webrtc.v1.ServiceStatusChanged service_status_changed = 23;
1017
+ */
1018
+ value: ServiceStatusChanged;
1019
+ case: "serviceStatusChanged";
1020
+ } | {
1021
+ /**
1022
+ * A space's pending invites and join requests changed; see SpaceInvites.
1023
+ *
1024
+ * @generated from field: kusinta.iot.webrtc.v1.SpaceInvites space_invites = 24;
1025
+ */
1026
+ value: SpaceInvites;
1027
+ case: "spaceInvites";
1028
+ } | {
1029
+ /**
1030
+ * The promotion requests the session's user made or was asked to accept changed; see
1031
+ * PromotionRequests.
1032
+ *
1033
+ * @generated from field: kusinta.iot.webrtc.v1.PromotionRequests promotion_requests = 25;
1034
+ */
1035
+ value: PromotionRequests;
1036
+ case: "promotionRequests";
1037
+ } | {
1038
+ /**
1039
+ * A commissioning test changed state: to every session whose user is given it
1040
+ * (commissioning.v1), save its start to the session that started it.
1041
+ *
1042
+ * @generated from field: kusinta.iot.commissioning.v1.CommissioningTest commissioning_test = 26;
1043
+ */
1044
+ value: CommissioningTest;
1045
+ case: "commissioningTest";
1046
+ } | {
1047
+ /**
1048
+ * The commissioning grants on a space changed; see commissioning.v1.CommissioningGrants.
1049
+ *
1050
+ * @generated from field: kusinta.iot.commissioning.v1.CommissioningGrants commissioning_grants = 27;
1051
+ */
1052
+ value: CommissioningGrants;
1053
+ case: "commissioningGrants";
1054
+ } | {
1055
+ /**
1056
+ * A home's handover was started, cancelled or done; see HouseholdHandover.
1057
+ *
1058
+ * @generated from field: kusinta.iot.webrtc.v1.HouseholdHandover household_handover = 28;
1059
+ */
1060
+ value: HouseholdHandover;
1061
+ case: "householdHandover";
424
1062
  } | { case: undefined; value?: undefined };
425
1063
  };
426
1064
 
@@ -497,6 +1135,12 @@ export declare type AppMessage = Message<"kusinta.iot.webrtc.v1.AppMessage"> & {
497
1135
  */
498
1136
  value: AttributeWriteRequest;
499
1137
  case: "attributeWrite";
1138
+ } | {
1139
+ /**
1140
+ * @generated from field: kusinta.iot.webrtc.v1.StartPairing start_pairing = 11;
1141
+ */
1142
+ value: StartPairing;
1143
+ case: "startPairing";
500
1144
  } | { case: undefined; value?: undefined };
501
1145
  };
502
1146
 
@@ -570,6 +1214,23 @@ export enum GatewayErrorCode {
570
1214
  * @generated from enum value: GATEWAY_ERROR_CODE_SESSION_LIMIT_REACHED = 5;
571
1215
  */
572
1216
  SESSION_LIMIT_REACHED = 5,
1217
+
1218
+ /**
1219
+ * The request was well formed and the caller may make it, but it will not succeed without
1220
+ * a change on the receiving side — a capability the target lacks, configuration only a
1221
+ * person can fix. Do not retry as is. Distinct from INVALID_REQUEST, which is the app's
1222
+ * bug, and from UNAVAILABLE, which clears on its own. GatewayError.metadata says which
1223
+ * precondition failed where the operation documents one. Sent only in answer to a request
1224
+ * whose operation documents it, never as a session-level error that refuses or ends a
1225
+ * session.
1226
+ *
1227
+ * Rollout note: a client whose schema predates this value decodes it as UNSPECIFIED,
1228
+ * which is retryable by design, so it may offer a retry that fails the same way again.
1229
+ * Harmless, but client handling should ship before or with the gateway that emits it.
1230
+ *
1231
+ * @generated from enum value: GATEWAY_ERROR_CODE_FAILED_PRECONDITION = 6;
1232
+ */
1233
+ FAILED_PRECONDITION = 6,
573
1234
  }
574
1235
 
575
1236
  /**