@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,9 +4,21 @@
4
4
 
5
5
  import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
6
6
  import type { Message } from "@bufbuild/protobuf";
7
- import type { DeviceOwnershipType, SpaceType } from "../../common/v1/types_pb.js";
8
- import type { DeviceId, SpaceId, UserId } from "../../identity/v1/identity_pb.js";
7
+ import type { AssetOwner, DeviceOwnershipType, SpaceType } from "../../common/v1/types_pb.js";
8
+ import type { ConnectorId, DeviceId, SpaceId, UserId } from "../../identity/v1/identity_pb.js";
9
+ import type { MembershipRelation, Role } from "../../access/v1/roles_pb.js";
10
+ import type { LorawanProvisioning } from "../../vendor/lorawan/v1/lorawan_pb.js";
9
11
  import type { Space } from "../../space/v1/space_pb.js";
12
+ import type { LinkFunction, LinkMode, LinkSettings } from "../../link/v1/link_pb.js";
13
+ import type { ClimateModeKind, ClimateSummaryPeriod } from "../../climate/v1/climate_pb.js";
14
+ import type { Timestamp } from "@bufbuild/protobuf/wkt";
15
+ import type { CancelHouseholdHandover, ConfirmHouseholdHandover, DemoteHouseholdAdmin, ExportHouseholdData, ListHouseholdHandovers, SetHomeName, StaffAppointment, StartHouseholdHandover } from "./household_pb.js";
16
+ import type { ServiceSignal } from "../../access/v1/acl_pb.js";
17
+ import type { ComfortLoad, ComfortWindow, FloorZone, HeatingCircuit, HeatingPlant } from "../../heating/v1/heating_pb.js";
18
+ import type { LinkedService } from "../../accountlink/v1/account_link_pb.js";
19
+ import type { BindingRef, CommissioningFact, HouseTemplate, TestKind, TestState } from "../../commissioning/v1/commissioning_pb.js";
20
+ import type { ApproveJoinRequest, CreateInvite, DenyJoinRequest, ListSpaceInvites, MarkInviteEmailSent, ResendInvite, RevokeInvite } from "./invite_pb.js";
21
+ import type { AnswerPromotion, ListGatewayMembers, ListPromotionRequests, RemoveFromGateway, RequestPromotion, SetAccessUntil, SetMemberRole, SetOwnerOrganisation } from "./members_pb.js";
10
22
 
11
23
  /**
12
24
  * Describes the file kusinta/iot/webrtc/v1/management.proto.
@@ -18,6 +30,13 @@ export declare const file_kusinta_iot_webrtc_v1_management: GenFile;
18
30
  * stronger request than it looks: there is no parent whose reach could authorize
19
31
  * it, so it is reserved to the gateway's administrator.
20
32
  *
33
+ * Under an apartment only a room may be created. Creating in a home is guarded as
34
+ * UpdateSpace is, and refused whatever the caller where UpdateSpace's structure rules would
35
+ * refuse it.
36
+ *
37
+ * An apartment is created by the property owner or the gateway's administrators, with a name
38
+ * that identifies it in the building (space.v1.Space.name); an empty name is INVALID_REQUEST.
39
+ *
21
40
  * @generated from message kusinta.iot.webrtc.v1.CreateSpace
22
41
  */
23
42
  export declare type CreateSpace = Message<"kusinta.iot.webrtc.v1.CreateSpace"> & {
@@ -49,6 +68,14 @@ export declare type CreateSpace = Message<"kusinta.iot.webrtc.v1.CreateSpace"> &
49
68
  * @generated from field: kusinta.iot.identity.v1.SpaceId parent_space_id = 5;
50
69
  */
51
70
  parentSpaceId?: SpaceId | undefined;
71
+
72
+ /**
73
+ * An IANA time zone name, e.g. "Europe/Stockholm". Accepted only on a building — a
74
+ * top-level space — and refused on any other. Unset leaves it unknown.
75
+ *
76
+ * @generated from field: optional string time_zone = 6;
77
+ */
78
+ timeZone?: string | undefined;
52
79
  };
53
80
 
54
81
  /**
@@ -58,9 +85,26 @@ export declare type CreateSpace = Message<"kusinta.iot.webrtc.v1.CreateSpace"> &
58
85
  export declare const CreateSpaceSchema: GenMessage<CreateSpace>;
59
86
 
60
87
  /**
61
- * Changes a space in place. Every descriptive field carries explicit presence:
62
- * absent means leave it alone, present means set it to this — including to the
63
- * empty string, which is how a description is cleared.
88
+ * Changes a space in place. Changes that would take a space into or out of a home, or move
89
+ * a home, are guarded by the gateway; a caller not allowed is refused as NOT_ENTITLED. A
90
+ * change is refused whatever the caller if it would leave anything but a room under an
91
+ * apartment, an apartment in a home, or — among what the caller can see — a device in two
92
+ * homes or a link across a home's boundary. What the caller cannot see never refuses it: a
93
+ * device a resident owns that would leave its owner's home, enter a home not theirs or sit
94
+ * in two homes is taken out of the moving space instead — staying in its owner's home,
95
+ * filed on the apartment, where it was in it — and any link it would carry across a
96
+ * boundary is removed. Changing the type of a space that has members needs
97
+ * ROLE_PROPERTY_OWNER or ROLE_GATEWAY_ADMIN, who see them, and is refused if it would
98
+ * leave a RESIDENT membership on a room.
99
+ *
100
+ * The name of an apartment is the building's identifier for it (space.v1.Space.name), and is
101
+ * changed only by the property owner or the gateway's administrators: from anyone else, a
102
+ * request setting it is refused whole as NOT_ENTITLED. The household names its home with
103
+ * SetHomeName instead.
104
+ *
105
+ * Every descriptive field carries explicit presence: absent means leave it alone, present
106
+ * means set it to this — including to the empty string, which is how a description is
107
+ * cleared.
64
108
  *
65
109
  * @generated from message kusinta.iot.webrtc.v1.UpdateSpace
66
110
  */
@@ -111,6 +155,15 @@ export declare type UpdateSpace = Message<"kusinta.iot.webrtc.v1.UpdateSpace"> &
111
155
  value: boolean;
112
156
  case: "detach";
113
157
  } | { case: undefined; value?: undefined };
158
+
159
+ /**
160
+ * An IANA time zone name, e.g. "Europe/Stockholm". Accepted only on a building — a
161
+ * top-level space — and refused on any other. Unset leaves it unchanged; the empty
162
+ * string clears it.
163
+ *
164
+ * @generated from field: optional string time_zone = 8;
165
+ */
166
+ timeZone?: string | undefined;
114
167
  };
115
168
 
116
169
  /**
@@ -122,7 +175,8 @@ export declare const UpdateSpaceSchema: GenMessage<UpdateSpace>;
122
175
  /**
123
176
  * Deletes a space. Refused if the space still holds devices or sub-spaces unless
124
177
  * cascade is set, so that emptying a building is always something the caller
125
- * asked for rather than something a stale client did by accident.
178
+ * asked for rather than something a stale client did by accident. Deleting a home, or
179
+ * anything in one, is guarded as UpdateSpace is.
126
180
  *
127
181
  * @generated from message kusinta.iot.webrtc.v1.DeleteSpace
128
182
  */
@@ -145,10 +199,28 @@ export declare type DeleteSpace = Message<"kusinta.iot.webrtc.v1.DeleteSpace"> &
145
199
  export declare const DeleteSpaceSchema: GenMessage<DeleteSpace>;
146
200
 
147
201
  /**
148
- * Adds a user to a space, granting them reach of it and everything beneath it.
202
+ * Adds a user to a space, granting them reach of it and everything beneath it — except
203
+ * that a RESIDENT membership reaches no home beneath it (see access.v1.MembershipRelation).
149
204
  * The user need not be known to the gateway beforehand — identities are minted by
150
205
  * the token issuer, and this records that one of them belongs here.
151
206
  *
207
+ * Assigning a user who is already a member changes their relation to the space.
208
+ * RESIDENT is refused on a room; see access.v1.MembershipRelation.
209
+ *
210
+ * Nobody is made a household admin through it: HOUSEHOLD_ADMIN is refused as
211
+ * INVALID_REQUEST, since that comes only by promotion or appointment (household.proto). A
212
+ * HOUSEHOLD_ADMIN membership is never changed through it either: assigning onto one is refused
213
+ * as FAILED_PRECONDITION with metadata {"reason": "household_admin"}; DemoteHouseholdAdmin and
214
+ * RemoveUserFromSpace are how it ends.
215
+ *
216
+ * Who may change who belongs to a home is restricted by the gateway; a caller not allowed is
217
+ * refused as NOT_ENTITLED. Residents see who is filed on their home in Space.members.
218
+ *
219
+ * A membership the caller is not told of under this user id (a residency, to anyone outside
220
+ * its household: access.v1.MembershipRelation, RESIDENCY IDS) is never changed through it:
221
+ * assigning onto it is refused as NOT_ENTITLED, and RemoveUserFromSpace answers as for one
222
+ * that does not exist. user_id is never a residency id.
223
+ *
152
224
  * @generated from message kusinta.iot.webrtc.v1.AssignUserToSpace
153
225
  */
154
226
  export declare type AssignUserToSpace = Message<"kusinta.iot.webrtc.v1.AssignUserToSpace"> & {
@@ -161,6 +233,15 @@ export declare type AssignUserToSpace = Message<"kusinta.iot.webrtc.v1.AssignUse
161
233
  * @generated from field: kusinta.iot.identity.v1.UserId user_id = 2;
162
234
  */
163
235
  userId?: UserId | undefined;
236
+
237
+ /**
238
+ * How the user stands to the space — whether they live there or are there for the
239
+ * building. Required: UNSPECIFIED is refused, never defaulted. See
240
+ * access.v1.MembershipRelation for what each lets a member see of a home.
241
+ *
242
+ * @generated from field: kusinta.iot.access.v1.MembershipRelation relation = 4;
243
+ */
244
+ relation: MembershipRelation;
164
245
  };
165
246
 
166
247
  /**
@@ -173,6 +254,18 @@ export declare const AssignUserToSpaceSchema: GenMessage<AssignUserToSpace>;
173
254
  * Removes a user's membership of a space. Losing reach also drops whatever the
174
255
  * user was streaming from it, announced by LivePermissionUpdate.
175
256
  *
257
+ * Removing someone else from a home is guarded as assigning is: within the household, it is a
258
+ * household admin's (household.proto). Anyone may remove themselves, save the last household
259
+ * admin of a home that has other residents ("last_household_admin", household.proto, LAST
260
+ * ADMIN, which also refuses a household admin removing another when that would leave none). A
261
+ * membership the caller is not told of under the user id given (see AssignUserToSpace) is
262
+ * answered as one that does not exist, and stays.
263
+ *
264
+ * user_id may be a residency id (access.v1.MembershipRelation, RESIDENCY IDS): it then ends
265
+ * that residency, if space_id is its home, and answers as for one that does not exist
266
+ * otherwise. This is how a property owner or an administrator ends the residency of
267
+ * someone who moved out.
268
+ *
176
269
  * @generated from message kusinta.iot.webrtc.v1.RemoveUserFromSpace
177
270
  */
178
271
  export declare type RemoveUserFromSpace = Message<"kusinta.iot.webrtc.v1.RemoveUserFromSpace"> & {
@@ -197,6 +290,13 @@ export declare const RemoveUserFromSpaceSchema: GenMessage<RemoveUserFromSpace>;
197
290
  * Files a device into a space. A device may sit in several spaces at once; this
198
291
  * is additive, and filing a device where it already sits is a no-op.
199
292
  *
293
+ * Into a home go only the building's own devices and devices its residents own, and a
294
+ * device belongs to one home at most; filing into, out of or beside a home is guarded by
295
+ * the gateway, and within the household it is a household admin's, save a device a resident
296
+ * owns, which its owner files (household.proto). A caller not allowed is refused as
297
+ * NOT_ENTITLED, and filing that would leave a link the caller can see across a home's
298
+ * boundary is refused whatever the caller; one they cannot see is removed instead.
299
+ *
200
300
  * @generated from message kusinta.iot.webrtc.v1.PlaceDeviceInSpace
201
301
  */
202
302
  export declare type PlaceDeviceInSpace = Message<"kusinta.iot.webrtc.v1.PlaceDeviceInSpace"> & {
@@ -221,6 +321,9 @@ export declare const PlaceDeviceInSpaceSchema: GenMessage<PlaceDeviceInSpace>;
221
321
  * Takes a device out of one space, leaving any others intact. A device in no
222
322
  * space and with no owner is unfiled, and visible only to the administrator.
223
323
  *
324
+ * Taking a device out of a home is guarded as PlaceDeviceInSpace is, and removes its links
325
+ * to devices still in the home.
326
+ *
224
327
  * @generated from message kusinta.iot.webrtc.v1.RemoveDeviceFromSpace
225
328
  */
226
329
  export declare type RemoveDeviceFromSpace = Message<"kusinta.iot.webrtc.v1.RemoveDeviceFromSpace"> & {
@@ -244,7 +347,12 @@ export declare const RemoveDeviceFromSpaceSchema: GenMessage<RemoveDeviceFromSpa
244
347
  /**
245
348
  * Takes ownership of a device. Ownership is reach in its own right: an owner may
246
349
  * see and control their device whatever their gateway-wide role permits, and may
247
- * file it into spaces they belong to.
350
+ * file it into spaces they belong to, and the rooms of a home they live in — though into a
351
+ * home only if they live there (see PlaceDeviceInSpace).
352
+ *
353
+ * Only a RESIDENT claim makes the caller the owner. A COMPANY claim records that the
354
+ * building owns the device, names no person, and grants the caller no reach. Claims of a
355
+ * device in a home, or of one already claimed, are restricted by the gateway.
248
356
  *
249
357
  * @generated from message kusinta.iot.webrtc.v1.ClaimDevice
250
358
  */
@@ -265,8 +373,18 @@ export declare type ClaimDevice = Message<"kusinta.iot.webrtc.v1.ClaimDevice"> &
265
373
  initialSpaceId?: SpaceId | undefined;
266
374
 
267
375
  /**
268
- * Evidence the claimant is standing at the device: the serial printed on it,
269
- * matched against DeviceDescriptor.serial_number. Required precisely when the
376
+ * Evidence the claimant is standing at the device: the identifier printed on it,
377
+ * matched against DeviceDescriptor.serial_number.
378
+ *
379
+ * The match is by SUFFIX, because what a connector announces is not always the whole
380
+ * of what is printed and the announced value is commonly the tail of the printed one.
381
+ * Both sides are normalised first — lowercased, with whitespace and ASCII hyphens
382
+ * removed, since a label prints the value in groups and a scan does not — and the proof
383
+ * is accepted when what remains ends with the announced serial. Spelled out because two
384
+ * gateways normalising differently would accept different proofs for the same device.
385
+ *
386
+ * A serial shorter than eight characters cannot be proved at all: under a suffix rule a
387
+ * short one is proved by almost anything ending with it. Required precisely when the
270
388
  * caller cannot already reach the device, which is the ordinary case for a
271
389
  * resident claiming something they just bought — an unfiled device is invisible
272
390
  * to them, so possession is the only thing left that can distinguish them from
@@ -286,8 +404,9 @@ export declare type ClaimDevice = Message<"kusinta.iot.webrtc.v1.ClaimDevice"> &
286
404
  export declare const ClaimDeviceSchema: GenMessage<ClaimDevice>;
287
405
 
288
406
  /**
289
- * Gives up ownership. The device keeps whatever space filing it has; if it has
290
- * none it becomes unfiled.
407
+ * Gives up ownership. The device keeps whatever space filing it has, except that a device in
408
+ * a home stays filed in the home alone, as one of the building's own devices there — as
409
+ * when its owner moves out; if it has none it becomes unfiled.
291
410
  *
292
411
  * @generated from message kusinta.iot.webrtc.v1.ReleaseDevice
293
412
  */
@@ -304,6 +423,66 @@ export declare type ReleaseDevice = Message<"kusinta.iot.webrtc.v1.ReleaseDevice
304
423
  */
305
424
  export declare const ReleaseDeviceSchema: GenMessage<ReleaseDevice>;
306
425
 
426
+ /**
427
+ * Registers a device with the system that will admit it, so that it can join
428
+ * later. For a technology where a device is enrolled as a record rather than
429
+ * adopted during a window — see common.v1.PairingWindow for the other case, where
430
+ * something joins a hub during a window and the arrival is attributed to the
431
+ * caller. A LoRaWAN device has no window: it is written into a network server and
432
+ * joins whenever it is next powered, which may be minutes, days, or never.
433
+ *
434
+ * Answered with the ordinary ManagementAck. A provision writes a record and returns
435
+ * nothing to show; the device itself is announced by device_added if and when it
436
+ * joins, the same path every other device takes — which is why this adds no
437
+ * ManagementResult arm. A new result arm is a compile error in a consumer that
438
+ * matches the result exhaustively; a new request arm is not.
439
+ *
440
+ * Registering and owning stay two operations. ClaimDevice records the caller and
441
+ * carries possession_proof, so a device that has not joined yet is still claimable
442
+ * by whoever holds it — and because the connector derives the device id and the
443
+ * serial from the identifier here, that claim can be made before the join.
444
+ *
445
+ * Provisioning the same identifier twice is an upsert: it replaces the credentials
446
+ * rather than being refused as a conflict, so correcting a mistyped key does not
447
+ * require removing the device first. Removing a record is a distinct act from
448
+ * giving up ownership (ReleaseDevice) and is left to a later operation.
449
+ *
450
+ * @generated from message kusinta.iot.webrtc.v1.ProvisionDevice
451
+ */
452
+ export declare type ProvisionDevice = Message<"kusinta.iot.webrtc.v1.ProvisionDevice"> & {
453
+ /**
454
+ * Required, unlike a pairing window's connector target. A registration is written
455
+ * to one specific registry; there is no sensible "open them all and see what
456
+ * joins". The app names it from the connector enumeration, targeting a connector
457
+ * that declares ConnectorInfo.supports_provisioning.
458
+ *
459
+ * @generated from field: kusinta.iot.identity.v1.ConnectorId connector_id = 1;
460
+ */
461
+ connectorId?: ConnectorId | undefined;
462
+
463
+ /**
464
+ * What the registry needs to admit the device, which differs entirely by
465
+ * technology — a oneof per technology rather than a flat set of fields, for the
466
+ * reason LinkSettings gives: the second technology to arrive must not turn this
467
+ * into a bag of unrelated optionals named after the first.
468
+ *
469
+ * @generated from oneof kusinta.iot.webrtc.v1.ProvisionDevice.credentials
470
+ */
471
+ credentials: {
472
+ /**
473
+ * @generated from field: kusinta.iot.vendor.lorawan.v1.LorawanProvisioning lorawan = 2;
474
+ */
475
+ value: LorawanProvisioning;
476
+ case: "lorawan";
477
+ } | { case: undefined; value?: undefined };
478
+ };
479
+
480
+ /**
481
+ * Describes the message kusinta.iot.webrtc.v1.ProvisionDevice.
482
+ * Use `create(ProvisionDeviceSchema)` to create a new message.
483
+ */
484
+ export declare const ProvisionDeviceSchema: GenMessage<ProvisionDevice>;
485
+
307
486
  /**
308
487
  * Asks for the spaces the caller can reach. Unset root_space_id means all of
309
488
  * them, which for most users is one apartment and for an administrator is the
@@ -333,7 +512,9 @@ export declare const ListSpacesSchema: GenMessage<ListSpaces>;
333
512
  *
334
513
  * device_ids on each Space are filtered to what the caller may see. An
335
514
  * unfiltered tree would list every device on the gateway by id, which is the
336
- * enumeration channel the snapshot filter exists to close.
515
+ * enumeration channel the snapshot filter exists to close. To a caller who sees a home as
516
+ * service, what is new in it is listed as it happens and what is gone at once, its members
517
+ * included where they are shown (see Space.members).
337
518
  *
338
519
  * @generated from message kusinta.iot.webrtc.v1.SpaceTree
339
520
  */
@@ -373,73 +554,1760 @@ export declare const ManagementAckSchema: GenMessage<ManagementAck>;
373
554
  * message kind, so these can never be gated by a table keyed on the envelope case
374
555
  * the way device messages are. Keeping them behind one case means one place that
375
556
  * must authorize, and one refusal path that must not leak whether a target exists.
557
+ * Links one device to another, so the sender leads the receiver. The gateway
558
+ * resolves which underlying connections that needs and asks the connector for
559
+ * them; a caller names two devices and what the link is for.
376
560
  *
377
- * @generated from message kusinta.iot.webrtc.v1.ManagementRequest
561
+ * Authorized against both ends, and not symmetrically. Leading a device is a
562
+ * standing grant of control over it, so the receiver requires ownership or a
563
+ * servicing role. The sender's requirement depends on the mode: a gateway-kept
564
+ * link only reads what the caller can already see, while a device-to-device one
565
+ * writes configuration to the sender and spends its battery, which is a change
566
+ * to someone else's hardware.
567
+ *
568
+ * In a home it is the other way round: links between its devices are its residents' to
569
+ * make, change and remove, and a caller who reaches it as service is refused as
570
+ * NOT_ENTITLED. A link between a device in a home and one outside it is refused to anyone.
571
+ * The same holds for UpdateDeviceLink and RemoveDeviceLink.
572
+ *
573
+ * @generated from message kusinta.iot.webrtc.v1.CreateDeviceLink
378
574
  */
379
- export declare type ManagementRequest = Message<"kusinta.iot.webrtc.v1.ManagementRequest"> & {
575
+ export declare type CreateDeviceLink = Message<"kusinta.iot.webrtc.v1.CreateDeviceLink"> & {
380
576
  /**
381
- * @generated from oneof kusinta.iot.webrtc.v1.ManagementRequest.request
577
+ * @generated from field: kusinta.iot.identity.v1.DeviceId sender = 1;
382
578
  */
383
- request: {
384
- /**
385
- * @generated from field: kusinta.iot.webrtc.v1.CreateSpace create_space = 1;
386
- */
387
- value: CreateSpace;
388
- case: "createSpace";
389
- } | {
390
- /**
391
- * @generated from field: kusinta.iot.webrtc.v1.UpdateSpace update_space = 2;
392
- */
393
- value: UpdateSpace;
394
- case: "updateSpace";
395
- } | {
396
- /**
397
- * @generated from field: kusinta.iot.webrtc.v1.DeleteSpace delete_space = 3;
398
- */
399
- value: DeleteSpace;
400
- case: "deleteSpace";
401
- } | {
402
- /**
403
- * @generated from field: kusinta.iot.webrtc.v1.AssignUserToSpace assign_user_to_space = 4;
404
- */
405
- value: AssignUserToSpace;
406
- case: "assignUserToSpace";
407
- } | {
408
- /**
409
- * @generated from field: kusinta.iot.webrtc.v1.RemoveUserFromSpace remove_user_from_space = 5;
410
- */
411
- value: RemoveUserFromSpace;
412
- case: "removeUserFromSpace";
413
- } | {
414
- /**
415
- * @generated from field: kusinta.iot.webrtc.v1.PlaceDeviceInSpace place_device_in_space = 6;
416
- */
417
- value: PlaceDeviceInSpace;
418
- case: "placeDeviceInSpace";
419
- } | {
420
- /**
421
- * @generated from field: kusinta.iot.webrtc.v1.RemoveDeviceFromSpace remove_device_from_space = 7;
422
- */
423
- value: RemoveDeviceFromSpace;
424
- case: "removeDeviceFromSpace";
425
- } | {
426
- /**
427
- * @generated from field: kusinta.iot.webrtc.v1.ClaimDevice claim_device = 8;
428
- */
429
- value: ClaimDevice;
430
- case: "claimDevice";
431
- } | {
432
- /**
433
- * @generated from field: kusinta.iot.webrtc.v1.ReleaseDevice release_device = 9;
434
- */
435
- value: ReleaseDevice;
436
- case: "releaseDevice";
437
- } | {
438
- /**
439
- * @generated from field: kusinta.iot.webrtc.v1.ListSpaces list_spaces = 10;
440
- */
441
- value: ListSpaces;
442
- case: "listSpaces";
579
+ sender?: DeviceId | undefined;
580
+
581
+ /**
582
+ * @generated from field: kusinta.iot.identity.v1.DeviceId receiver = 2;
583
+ */
584
+ receiver?: DeviceId | undefined;
585
+
586
+ /**
587
+ * @generated from field: kusinta.iot.link.v1.LinkFunction function = 3;
588
+ */
589
+ function: LinkFunction;
590
+
591
+ /**
592
+ * Unset lets the gateway choose, which prefers a device-to-device link where
593
+ * one can be brokered: it survives a gateway outage and runs at the devices'
594
+ * own rate. Name one to override that.
595
+ *
596
+ * @generated from field: kusinta.iot.link.v1.LinkMode mode = 4;
597
+ */
598
+ mode: LinkMode;
599
+
600
+ /**
601
+ * How a gateway-kept link is to behave, set as it is made. Carried here as
602
+ * well as on UpdateDeviceLink so that a link does not have to exist in a
603
+ * configured-by-nobody state first — a soft climate link created without a
604
+ * target is one that holds the room at nothing until a second request
605
+ * arrives, and every reader would have to handle that transient forever.
606
+ *
607
+ * Unset is still allowed and still means unconfigured, since a hard link has
608
+ * nothing to configure and a caller may genuinely not know the target yet.
609
+ *
610
+ * @generated from field: kusinta.iot.link.v1.LinkSettings settings = 5;
611
+ */
612
+ settings?: LinkSettings | undefined;
613
+ };
614
+
615
+ /**
616
+ * Describes the message kusinta.iot.webrtc.v1.CreateDeviceLink.
617
+ * Use `create(CreateDeviceLinkSchema)` to create a new message.
618
+ */
619
+ export declare const CreateDeviceLinkSchema: GenMessage<CreateDeviceLink>;
620
+
621
+ /**
622
+ * Removes a link. Note that on at least one vendor, removing a link disturbs the
623
+ * receiver's own settings and the connector must repair them, so this is not the
624
+ * no-op it appears to be.
625
+ *
626
+ * @generated from message kusinta.iot.webrtc.v1.RemoveDeviceLink
627
+ */
628
+ export declare type RemoveDeviceLink = Message<"kusinta.iot.webrtc.v1.RemoveDeviceLink"> & {
629
+ /**
630
+ * @generated from field: string link_id = 1;
631
+ */
632
+ linkId: string;
633
+ };
634
+
635
+ /**
636
+ * Describes the message kusinta.iot.webrtc.v1.RemoveDeviceLink.
637
+ * Use `create(RemoveDeviceLinkSchema)` to create a new message.
638
+ */
639
+ export declare const RemoveDeviceLinkSchema: GenMessage<RemoveDeviceLink>;
640
+
641
+ /**
642
+ * Changes how a gateway-kept link behaves — for a climate lead, the temperature
643
+ * it is to hold.
644
+ *
645
+ * Refused on a link that has nothing to configure — see LinkSettings — rather
646
+ * than accepted as a no-op, so that a caller who has mistaken which link they
647
+ * are holding is told.
648
+ *
649
+ * Authorized against both ends, as creating and removing the link are: deciding
650
+ * what temperature a room is held at is directing a device, not adjusting one,
651
+ * so it takes ownership of the ends or a servicing role, not the permission to
652
+ * turn a thermostat up. In a home it is its residents' instead (see CreateDeviceLink).
653
+ *
654
+ * @generated from message kusinta.iot.webrtc.v1.UpdateDeviceLink
655
+ */
656
+ export declare type UpdateDeviceLink = Message<"kusinta.iot.webrtc.v1.UpdateDeviceLink"> & {
657
+ /**
658
+ * @generated from field: string link_id = 1;
659
+ */
660
+ linkId: string;
661
+
662
+ /**
663
+ * Replaces the link's settings rather than patching them: the settings of one
664
+ * function are few and are set together, so there is no half-update worth
665
+ * expressing. This is why it does not follow UpdateSpace's per-field optional
666
+ * shape, which exists for a message whose fields genuinely move alone.
667
+ *
668
+ * Unset is refused rather than being given a meaning. It would have to mean
669
+ * either "leave everything alone", making the request a no-op, or "clear the
670
+ * settings", which is the one thing that reads like an accident — and the
671
+ * wire cannot tell those two callers apart.
672
+ *
673
+ * @generated from field: kusinta.iot.link.v1.LinkSettings settings = 2;
674
+ */
675
+ settings?: LinkSettings | undefined;
676
+ };
677
+
678
+ /**
679
+ * Describes the message kusinta.iot.webrtc.v1.UpdateDeviceLink.
680
+ * Use `create(UpdateDeviceLinkSchema)` to create a new message.
681
+ */
682
+ export declare const UpdateDeviceLinkSchema: GenMessage<UpdateDeviceLink>;
683
+
684
+ /**
685
+ * Lists links. Unset device_id lists every link among devices the caller can
686
+ * reach; naming one narrows it to that device's own, in either direction.
687
+ *
688
+ * A link with an end in a home reaches a caller who sees it as service with
689
+ * DeviceLink.details_withheld set, and what that withholds unset — a new link
690
+ * as it is made, a removed one at once — and not at all when either end is a
691
+ * device a resident owns.
692
+ *
693
+ * @generated from message kusinta.iot.webrtc.v1.ListDeviceLinks
694
+ */
695
+ export declare type ListDeviceLinks = Message<"kusinta.iot.webrtc.v1.ListDeviceLinks"> & {
696
+ /**
697
+ * @generated from field: kusinta.iot.identity.v1.DeviceId device_id = 1;
698
+ */
699
+ deviceId?: DeviceId | undefined;
700
+ };
701
+
702
+ /**
703
+ * Describes the message kusinta.iot.webrtc.v1.ListDeviceLinks.
704
+ * Use `create(ListDeviceLinksSchema)` to create a new message.
705
+ */
706
+ export declare const ListDeviceLinksSchema: GenMessage<ListDeviceLinks>;
707
+
708
+ /**
709
+ * Sets the temperature a room is to be held at.
710
+ *
711
+ * Authorized as adjusting, not directing: WRITE on the room is enough. It is the same act
712
+ * as turning a radiator's knob; setting up what the room obeys is ConfigureRoomClimate,
713
+ * and stays with owners, except the lock in a home.
714
+ *
715
+ * In a home, only its residents may set it; a caller who reaches the room as service is
716
+ * refused as NOT_ENTITLED.
717
+ *
718
+ * Clamped to the room's limits rather than refused outside them, and the clamped value is
719
+ * what the room's RoomClimate then reports.
720
+ *
721
+ * @generated from message kusinta.iot.webrtc.v1.SetRoomTarget
722
+ */
723
+ export declare type SetRoomTarget = Message<"kusinta.iot.webrtc.v1.SetRoomTarget"> & {
724
+ /**
725
+ * @generated from field: kusinta.iot.identity.v1.SpaceId room_id = 1;
726
+ */
727
+ roomId?: SpaceId | undefined;
728
+
729
+ /**
730
+ * Unset clears the target: the room goes back to having none (NO_TARGET) and its
731
+ * devices to their own behaviour. With presence, so that a request that forgot the
732
+ * field is not read as 0 °C and clamped to the room's minimum.
733
+ *
734
+ * @generated from field: optional sint32 target_centidegrees = 2;
735
+ */
736
+ targetCentidegrees?: number | undefined;
737
+ };
738
+
739
+ /**
740
+ * Describes the message kusinta.iot.webrtc.v1.SetRoomTarget.
741
+ * Use `create(SetRoomTargetSchema)` to create a new message.
742
+ */
743
+ export declare const SetRoomTargetSchema: GenMessage<SetRoomTarget>;
744
+
745
+ /**
746
+ * The sensors a room measures with, in order of preference. A message of its own so that
747
+ * "leave the sensors alone" (unset) differs from "set" on the wire. It orders the
748
+ * building's sensors only (see climate.v1.RoomClimate.sensor_ids); set but empty returns
749
+ * them to the default, every building temperature sensor filed in the room in filing
750
+ * order.
751
+ *
752
+ * @generated from message kusinta.iot.webrtc.v1.RoomSensors
753
+ */
754
+ export declare type RoomSensors = Message<"kusinta.iot.webrtc.v1.RoomSensors"> & {
755
+ /**
756
+ * @generated from field: repeated kusinta.iot.identity.v1.DeviceId sensor_ids = 1;
757
+ */
758
+ sensorIds: DeviceId[];
759
+ };
760
+
761
+ /**
762
+ * Describes the message kusinta.iot.webrtc.v1.RoomSensors.
763
+ * Use `create(RoomSensorsSchema)` to create a new message.
764
+ */
765
+ export declare const RoomSensorsSchema: GenMessage<RoomSensors>;
766
+
767
+ /**
768
+ * A room's limits. A message of its own so that "leave the limits alone" (unset) differs
769
+ * from "set" — and, set, an unset bound inside it removes that bound, which a bare
770
+ * optional on the request could not say.
771
+ *
772
+ * @generated from message kusinta.iot.webrtc.v1.RoomLimits
773
+ */
774
+ export declare type RoomLimits = Message<"kusinta.iot.webrtc.v1.RoomLimits"> & {
775
+ /**
776
+ * @generated from field: optional sint32 min_centidegrees = 1;
777
+ */
778
+ minCentidegrees?: number | undefined;
779
+
780
+ /**
781
+ * @generated from field: optional sint32 max_centidegrees = 2;
782
+ */
783
+ maxCentidegrees?: number | undefined;
784
+ };
785
+
786
+ /**
787
+ * Describes the message kusinta.iot.webrtc.v1.RoomLimits.
788
+ * Use `create(RoomLimitsSchema)` to create a new message.
789
+ */
790
+ export declare const RoomLimitsSchema: GenMessage<RoomLimits>;
791
+
792
+ /**
793
+ * Configures what a room obeys: its limits, its sensors, and whether a change made by
794
+ * hand at one of its devices counts. Authorized as directing — owners and filing roles —
795
+ * because this decides what everybody in the room can do.
796
+ *
797
+ * One exception: in a home, lock_device_controls is its residents' alone. They may send
798
+ * this request with nothing else set. Outside homes the lock is the owner's, as the rest
799
+ * is. A request that sets anything its caller may not — the lock in a home for service;
800
+ * anything but the lock in a home, or the lock outside one, for a caller with neither
801
+ * ROLE_PROPERTY_OWNER nor a filing role — is refused whole as NOT_ENTITLED, so nothing of
802
+ * it applies. sensors orders only the building's own
803
+ * sensors (see RoomClimate.sensor_ids).
804
+ *
805
+ * Each field moves alone, as on UpdateSpace: unset leaves it as it is.
806
+ *
807
+ * @generated from message kusinta.iot.webrtc.v1.ConfigureRoomClimate
808
+ */
809
+ export declare type ConfigureRoomClimate = Message<"kusinta.iot.webrtc.v1.ConfigureRoomClimate"> & {
810
+ /**
811
+ * @generated from field: kusinta.iot.identity.v1.SpaceId room_id = 1;
812
+ */
813
+ roomId?: SpaceId | undefined;
814
+
815
+ /**
816
+ * Replaces both bounds; see RoomLimits.
817
+ *
818
+ * @generated from field: kusinta.iot.webrtc.v1.RoomLimits limits = 2;
819
+ */
820
+ limits?: RoomLimits | undefined;
821
+
822
+ /**
823
+ * Only the building's sensors filed in this room; any other — including a sensor a
824
+ * resident owns — is refused, the same way whether or not it exists.
825
+ *
826
+ * @generated from field: kusinta.iot.webrtc.v1.RoomSensors sensors = 3;
827
+ */
828
+ sensors?: RoomSensors | undefined;
829
+
830
+ /**
831
+ * @generated from field: optional bool lock_device_controls = 4;
832
+ */
833
+ lockDeviceControls?: boolean | undefined;
834
+ };
835
+
836
+ /**
837
+ * Describes the message kusinta.iot.webrtc.v1.ConfigureRoomClimate.
838
+ * Use `create(ConfigureRoomClimateSchema)` to create a new message.
839
+ */
840
+ export declare const ConfigureRoomClimateSchema: GenMessage<ConfigureRoomClimate>;
841
+
842
+ /**
843
+ * Switches a mode on a space on, or off with kind UNSPECIFIED. WRITE on the space.
844
+ * Switching one on needs setback_centidegrees; a mode with nothing to set back to is
845
+ * refused. Switching one on is refused on a room inside an apartment, whose rooms follow
846
+ * the apartment's mode alone; such a room carries none (see climate.v1.ClimateMode), and
847
+ * switching one off there is accepted and does nothing — for those who may switch modes in
848
+ * that home at all, which is checked first: anyone else is refused as NOT_ENTITLED.
849
+ *
850
+ * In a home, only its residents may switch one on or off: whether a home stands empty is
851
+ * theirs to say. A caller who reaches it as service is refused as NOT_ENTITLED — except
852
+ * that, while the home has no resident, ROLE_PROPERTY_OWNER or ROLE_GATEWAY_ADMIN may
853
+ * switch off a mode that is on and whose setter is not a resident, so that no mode
854
+ * outlives everyone who could end it. Any other switch-off from them — no mode on, or one
855
+ * that is a resident's — is accepted and does nothing, so the answer tells them nothing of
856
+ * whether a mode was on or whether anyone has moved in.
857
+ *
858
+ * @generated from message kusinta.iot.webrtc.v1.SetClimateMode
859
+ */
860
+ export declare type SetClimateMode = Message<"kusinta.iot.webrtc.v1.SetClimateMode"> & {
861
+ /**
862
+ * @generated from field: kusinta.iot.identity.v1.SpaceId space_id = 1;
863
+ */
864
+ spaceId?: SpaceId | undefined;
865
+
866
+ /**
867
+ * @generated from field: kusinta.iot.climate.v1.ClimateModeKind kind = 2;
868
+ */
869
+ kind: ClimateModeKind;
870
+
871
+ /**
872
+ * @generated from field: optional sint32 setback_centidegrees = 3;
873
+ */
874
+ setbackCentidegrees?: number | undefined;
875
+
876
+ /**
877
+ * HOLIDAY only; both required there. Refused on AWAY.
878
+ *
879
+ * @generated from field: google.protobuf.Timestamp starts_at = 4;
880
+ */
881
+ startsAt?: Timestamp | undefined;
882
+
883
+ /**
884
+ * @generated from field: google.protobuf.Timestamp ends_at = 5;
885
+ */
886
+ endsAt?: Timestamp | undefined;
887
+ };
888
+
889
+ /**
890
+ * Describes the message kusinta.iot.webrtc.v1.SetClimateMode.
891
+ * Use `create(SetClimateModeSchema)` to create a new message.
892
+ */
893
+ export declare const SetClimateModeSchema: GenMessage<SetClimateMode>;
894
+
895
+ /**
896
+ * Lists the room climates and modes a caller may see. Unset root_space_id lists every
897
+ * one the caller can reach; naming a space narrows it to that space and those below.
898
+ *
899
+ * A caller who reaches a room inside an apartment as service gets it with
900
+ * RoomClimate.state_withheld set — what is new as it happens, what is gone at once — and
901
+ * gets no ClimateMode set on that apartment or its rooms.
902
+ *
903
+ * @generated from message kusinta.iot.webrtc.v1.ListRoomClimates
904
+ */
905
+ export declare type ListRoomClimates = Message<"kusinta.iot.webrtc.v1.ListRoomClimates"> & {
906
+ /**
907
+ * @generated from field: kusinta.iot.identity.v1.SpaceId root_space_id = 1;
908
+ */
909
+ rootSpaceId?: SpaceId | undefined;
910
+ };
911
+
912
+ /**
913
+ * Describes the message kusinta.iot.webrtc.v1.ListRoomClimates.
914
+ * Use `create(ListRoomClimatesSchema)` to create a new message.
915
+ */
916
+ export declare const ListRoomClimatesSchema: GenMessage<ListRoomClimates>;
917
+
918
+ /**
919
+ * Reads a room's history, answered with a climate.v1.RoomHistory of fixed 15-minute
920
+ * buckets aligned to UTC quarter hours (:00, :15, :30, :45). Needs READ on the room.
921
+ *
922
+ * The range is half-open: a bucket is returned when from_time <= at < to_time, so
923
+ * back-to-back windows neither repeat nor skip a bucket. Unset to_time means now;
924
+ * unset from_time means RoomHistory.kept_from. Both are clamped to [kept_from, now].
925
+ *
926
+ * A room in a home is readable by its residents only, and only from the start of their
927
+ * current residency (see access.v1.MembershipRelation). A caller who reaches it as service is
928
+ * refused as NOT_ENTITLED; one who reaches the apartment itself has
929
+ * GetApartmentClimateSummary instead.
930
+ *
931
+ * @generated from message kusinta.iot.webrtc.v1.GetRoomHistory
932
+ */
933
+ export declare type GetRoomHistory = Message<"kusinta.iot.webrtc.v1.GetRoomHistory"> & {
934
+ /**
935
+ * @generated from field: kusinta.iot.identity.v1.SpaceId room_id = 1;
936
+ */
937
+ roomId?: SpaceId | undefined;
938
+
939
+ /**
940
+ * @generated from field: google.protobuf.Timestamp from_time = 2;
941
+ */
942
+ fromTime?: Timestamp | undefined;
943
+
944
+ /**
945
+ * @generated from field: google.protobuf.Timestamp to_time = 3;
946
+ */
947
+ toTime?: Timestamp | undefined;
948
+ };
949
+
950
+ /**
951
+ * Describes the message kusinta.iot.webrtc.v1.GetRoomHistory.
952
+ * Use `create(GetRoomHistorySchema)` to create a new message.
953
+ */
954
+ export declare const GetRoomHistorySchema: GenMessage<GetRoomHistory>;
955
+
956
+ /**
957
+ * What the parties who do not live in a private space learn of it — the answer to a
958
+ * resident asking who can see what in their home, in reply to GetPrivacyDisclosure.
959
+ *
960
+ * It states the policy, the kinds of party it applies to now and the people counted under
961
+ * each (ServiceParty.names): a resident learns which technicians can see the battery of
962
+ * their radiator valve. The names say who has reach, never where anyone lives.
963
+ *
964
+ * @generated from message kusinta.iot.webrtc.v1.PrivacyDisclosure
965
+ */
966
+ export declare type PrivacyDisclosure = Message<"kusinta.iot.webrtc.v1.PrivacyDisclosure"> & {
967
+ /**
968
+ * An apartment, or a room in one.
969
+ *
970
+ * @generated from field: kusinta.iot.identity.v1.SpaceId space_id = 1;
971
+ */
972
+ spaceId?: SpaceId | undefined;
973
+
974
+ /**
975
+ * The kinds of party who see this space, or any part of it, as service now — or would
976
+ * through another membership, were they not its residents — each role once, with what
977
+ * that role brings here. Each party is listed under every role it holds other than
978
+ * ROLE_RESIDENT, and sees what its entries say together; one with no other role, or whose
979
+ * role the gateway has not yet learnt, counts as ROLE_UNSPECIFIED. ROLE_GATEWAY_ADMIN is
980
+ * always listed, and ROLE_PROPERTY_OWNER whenever anyone holds it, wherever they are
981
+ * filed: both may file themselves on the home. So the list reads the same whether or not
982
+ * anyone lives in the home, and never understates who has reach or what they see. Devices a resident
983
+ * owns are not shown to service at all.
984
+ *
985
+ * @generated from field: repeated kusinta.iot.webrtc.v1.ServiceParty service_parties = 5;
986
+ */
987
+ serviceParties: ServiceParty[];
988
+
989
+ /**
990
+ * How finely the space's climate is summarised for service, as means over periods of
991
+ * this length (climate.v1.ApartmentClimateSummary). UNSPECIFIED: no summary is given.
992
+ * The gateway's own setting, WEEK unless it is configured otherwise; no operation in this
993
+ * contract changes it. A change applies to periods that open after it: service is given
994
+ * no period that opened before the last change.
995
+ *
996
+ * @generated from field: kusinta.iot.climate.v1.ClimateSummaryPeriod climate_summary_period = 4;
997
+ */
998
+ climateSummaryPeriod: ClimateSummaryPeriod;
999
+
1000
+ /**
1001
+ * The name of the organisation that owns the gateway, and so the property, as the vouched
1002
+ * set gives it (signaling.v1.VouchedAdministrators.organisation_name); empty while the
1003
+ * gateway holds no vouched set. Never its organisation number. SetOwnerOrganisation, which
1004
+ * once set it, is superseded.
1005
+ *
1006
+ * @generated from field: string owner_organisation_name = 6;
1007
+ */
1008
+ ownerOrganisationName: string;
1009
+
1010
+ /**
1011
+ * Set when ServiceParty.names are not given to this caller, so that empty lists are not
1012
+ * read as nobody being named. Names are given to the home's own residents and to a
1013
+ * caller holding ROLE_GATEWAY_ADMIN or ROLE_PROPERTY_OWNER, and withheld from anyone
1014
+ * else: a technician who reaches the home learns the kinds of party, not who they are.
1015
+ *
1016
+ * @generated from field: bool names_withheld = 7;
1017
+ */
1018
+ namesWithheld: boolean;
1019
+
1020
+ /**
1021
+ * Each staff appointment (household.proto, STAFF APPOINTMENT) of a member who lives in this
1022
+ * home now, made during their current residency — the one that began at an appointment
1023
+ * invite's redeem included — oldest first: whoever joins the household later learns who put
1024
+ * its admins there. Given to the home's residents only, and so never to a caller who sees it
1025
+ * as service: a client shows it to residents alone.
1026
+ *
1027
+ * @generated from field: repeated kusinta.iot.webrtc.v1.StaffAppointment staff_appointments = 8;
1028
+ */
1029
+ staffAppointments: StaffAppointment[];
1030
+ };
1031
+
1032
+ /**
1033
+ * Describes the message kusinta.iot.webrtc.v1.PrivacyDisclosure.
1034
+ * Use `create(PrivacyDisclosureSchema)` to create a new message.
1035
+ */
1036
+ export declare const PrivacyDisclosureSchema: GenMessage<PrivacyDisclosure>;
1037
+
1038
+ /**
1039
+ * One kind of party with service reach of a home, and what it sees there. Every service
1040
+ * party sees the same kinds of thing of the part of the home it reaches — a whole
1041
+ * ServiceStatus, nothing withheld from it — so signals differ between parties only in
1042
+ * RESIDENTS. How much of the home that part is, a room or all of it, the disclosure does
1043
+ * not say.
1044
+ *
1045
+ * @generated from message kusinta.iot.webrtc.v1.ServiceParty
1046
+ */
1047
+ export declare type ServiceParty = Message<"kusinta.iot.webrtc.v1.ServiceParty"> & {
1048
+ /**
1049
+ * @generated from field: kusinta.iot.access.v1.Role role = 1;
1050
+ */
1051
+ role: Role;
1052
+
1053
+ /**
1054
+ * @generated from field: repeated kusinta.iot.access.v1.ServiceSignal signals = 2;
1055
+ */
1056
+ signals: ServiceSignal[];
1057
+
1058
+ /**
1059
+ * Each person counted under this role, by the name they gave their account
1060
+ * (AppTokenClaims.name), once each: everyone holding ROLE_GATEWAY_ADMIN or
1061
+ * ROLE_PROPERTY_OWNER, every vouched administrator included whether or not the gateway has
1062
+ * seen their token, and everyone else counted here by a SERVICE membership. A person counted
1063
+ * under several roles is named under each. An empty string stands for a person whose name
1064
+ * the gateway has not learnt, so the list is as long as the number of people. Self-chosen,
1065
+ * so the app shows it as the name they gave rather than as a verified identity. Empty for
1066
+ * every party when PrivacyDisclosure.names_withheld is set.
1067
+ *
1068
+ * @generated from field: repeated string names = 3;
1069
+ */
1070
+ names: string[];
1071
+ };
1072
+
1073
+ /**
1074
+ * Describes the message kusinta.iot.webrtc.v1.ServiceParty.
1075
+ * Use `create(ServicePartySchema)` to create a new message.
1076
+ */
1077
+ export declare const ServicePartySchema: GenMessage<ServiceParty>;
1078
+
1079
+ /**
1080
+ * Asks what the parties who do not live in a space learn of it, answered with a
1081
+ * PrivacyDisclosure. For an apartment or a room in one, and refused on any other
1082
+ * space. Needs READ on the space.
1083
+ *
1084
+ * @generated from message kusinta.iot.webrtc.v1.GetPrivacyDisclosure
1085
+ */
1086
+ export declare type GetPrivacyDisclosure = Message<"kusinta.iot.webrtc.v1.GetPrivacyDisclosure"> & {
1087
+ /**
1088
+ * @generated from field: kusinta.iot.identity.v1.SpaceId space_id = 1;
1089
+ */
1090
+ spaceId?: SpaceId | undefined;
1091
+ };
1092
+
1093
+ /**
1094
+ * Describes the message kusinta.iot.webrtc.v1.GetPrivacyDisclosure.
1095
+ * Use `create(GetPrivacyDisclosureSchema)` to create a new message.
1096
+ */
1097
+ export declare const GetPrivacyDisclosureSchema: GenMessage<GetPrivacyDisclosure>;
1098
+
1099
+ /**
1100
+ * Reads an apartment's climate as means over whole periods, answered with a
1101
+ * climate.v1.ApartmentClimateSummary. Needs READ on the apartment itself. Refused on a
1102
+ * space that is not an apartment, and while the building's time zone (Space.time_zone) is
1103
+ * unknown, since periods are cut at its midnights.
1104
+ *
1105
+ * The range is half-open over the periods' starts: a period is returned when from_time <=
1106
+ * starts_at < to_time. Unset from_time means kept_from; unset to_time means now. Both are
1107
+ * clamped to [kept_from, the start of the period running now — or now, if none is] (see
1108
+ * ApartmentClimateSummary).
1109
+ *
1110
+ * @generated from message kusinta.iot.webrtc.v1.GetApartmentClimateSummary
1111
+ */
1112
+ export declare type GetApartmentClimateSummary = Message<"kusinta.iot.webrtc.v1.GetApartmentClimateSummary"> & {
1113
+ /**
1114
+ * @generated from field: kusinta.iot.identity.v1.SpaceId apartment_id = 1;
1115
+ */
1116
+ apartmentId?: SpaceId | undefined;
1117
+
1118
+ /**
1119
+ * Unset asks for the period the apartment's privacy disclosure names
1120
+ * (PrivacyDisclosure.climate_summary_period), or weeks when it names none. Anyone but the
1121
+ * apartment's residents may ask for that period only, and is refused as NOT_ENTITLED for
1122
+ * any other or when it names none. Its residents may ask for any, and are given only
1123
+ * periods that began in their current residency.
1124
+ *
1125
+ * @generated from field: kusinta.iot.climate.v1.ClimateSummaryPeriod period = 2;
1126
+ */
1127
+ period: ClimateSummaryPeriod;
1128
+
1129
+ /**
1130
+ * @generated from field: google.protobuf.Timestamp from_time = 3;
1131
+ */
1132
+ fromTime?: Timestamp | undefined;
1133
+
1134
+ /**
1135
+ * @generated from field: google.protobuf.Timestamp to_time = 4;
1136
+ */
1137
+ toTime?: Timestamp | undefined;
1138
+ };
1139
+
1140
+ /**
1141
+ * Describes the message kusinta.iot.webrtc.v1.GetApartmentClimateSummary.
1142
+ * Use `create(GetApartmentClimateSummarySchema)` to create a new message.
1143
+ */
1144
+ export declare const GetApartmentClimateSummarySchema: GenMessage<GetApartmentClimateSummary>;
1145
+
1146
+ /**
1147
+ * Asks the gateway to have a connector re-initialise its backend connection: reconnect to
1148
+ * its radio central or network server. Meant to be offered while a
1149
+ * reporting.v1.PROBLEM_KIND_CONNECTOR_ERROR is open for the connector — its
1150
+ * ConnectorDescriptor.backend_health is FAILING — and only for a connector listed in
1151
+ * ConnectorsAnnounced. A request for a connector that is not listed is refused, as
1152
+ * CONNECTOR_OFFLINE or UNKNOWN_CONNECTOR below. For a listed one it is accepted whatever its
1153
+ * health, since re-initialising a healthy backend is harmless.
1154
+ *
1155
+ * Authorized against the caller's role alone, as StartPairing is: a connector is not a
1156
+ * target the caller reaches the way a space is. ROLE_TECHNICIAN and ROLE_GATEWAY_ADMIN may
1157
+ * ask; anyone else is refused as NOT_ENTITLED, before the connector is looked up, so the
1158
+ * refusal says nothing of which connectors exist.
1159
+ *
1160
+ * The gateway forwards it as connector.v1.ReinitializeBackend and answers once the
1161
+ * connector has: with ManagementAck when the attempt was made. That says the attempt
1162
+ * finished, not that it worked. Whether it worked is the connector's backend health, and
1163
+ * when that changed the gateway pushes it in ConnectorsAnnounced before the ack. One
1164
+ * request at a time per connector.
1165
+ *
1166
+ * So a failure found only by attempting — credentials the backend rejects, a backend that
1167
+ * does not answer — is not a refusal. It arrives as a ManagementAck, with the backend
1168
+ * health it left (FAILING, e.g. with AUTH_FAILED, UNREACHABLE or BACKEND_ERROR) already
1169
+ * pushed: after the ack, the app reads ConnectorDescriptor.backend_health for the outcome,
1170
+ * and a FAILING health there means the reconnect did not help. The app handles any reason
1171
+ * there, one its schema does not know included. No push precedes the ack when the attempt
1172
+ * left health as it was; the descriptor the app holds is then still the outcome.
1173
+ *
1174
+ * A refusal is a GatewayError whose metadata "reason" says which, as CommandError.metadata
1175
+ * describes, and whose "detail" is a sentence the app may show. The app branches on
1176
+ * "reason" for this operation; the code is only the fallback for a reason it does not know,
1177
+ * since GatewayErrorCode is too coarse to say what to do here. The role refusal above is
1178
+ * the code NOT_ENTITLED alone, with no "reason"; the reasons are for a caller who may ask:
1179
+ * "UNKNOWN_CONNECTOR" UNAVAILABLE. The gateway does not track a connector by that id:
1180
+ * it never had one, or has stopped tracking it. Not a client bug:
1181
+ * the list the app holds may be stale.
1182
+ * "CONNECTOR_OFFLINE" UNAVAILABLE. A connector the gateway tracks, whose stream to the
1183
+ * gateway is down now, before or while the request was
1184
+ * outstanding; that is CONNECTOR_OFFLINE, and a reconnect of its
1185
+ * backend cannot help it.
1186
+ * "NOT_SUPPORTED" FAILED_PRECONDITION. The connector does not declare
1187
+ * ConnectorDescriptor.supports_backend_reinitialize, or declared it
1188
+ * and answered that it has nothing to re-initialise. Not a client
1189
+ * bug, and not worth retrying as is.
1190
+ * "ALREADY_IN_PROGRESS" UNAVAILABLE. A reconnect of this connector is outstanding, from
1191
+ * this caller or another. It ends within 60 seconds of being
1192
+ * asked, answered or timed out; retry after that. Only the caller
1193
+ * who asked is answered, but a change of health it causes reaches
1194
+ * every session in ConnectorsAnnounced.
1195
+ * "TIMED_OUT" UNAVAILABLE. The connector did not answer within the gateway's
1196
+ * deadline. The attempt may still finish, and its outcome still
1197
+ * arrives as backend health.
1198
+ * "REINITIALIZE_FAILED" The connector could not attempt it at all
1199
+ * (connector.v1.REINITIALIZE_OUTCOME_FAILED, or an outcome the
1200
+ * gateway's schema does not know, read as FAILED). The code
1201
+ * depends on the reason: FAILED_PRECONDITION when it is
1202
+ * MISCONFIGURED, which needs a person to correct the connector's
1203
+ * configuration before asking again can help; UNAVAILABLE for
1204
+ * any other — INTERNAL, UNSPECIFIED, a value the gateway does not
1205
+ * know — since a retry may work. Rejected credentials are never
1206
+ * this: they are found by attempting, and come back as an ack
1207
+ * (see above). metadata "backend_failure" is always set: the
1208
+ * common.v1.BackendFailureReason by its enum name, e.g.
1209
+ * "BACKEND_FAILURE_REASON_MISCONFIGURED". A reason that is
1210
+ * UNSPECIFIED, or a value the gateway's schema does not know, is
1211
+ * sent as "BACKEND_FAILURE_REASON_BACKEND_ERROR", as
1212
+ * BackendFailureReason has it; an app reading a name its own
1213
+ * schema does not know treats it as BACKEND_ERROR too.
1214
+ * The connector's own detail is never in a refusal; GatewayError.message is the gateway's.
1215
+ *
1216
+ * @generated from message kusinta.iot.webrtc.v1.ReconnectConnector
1217
+ */
1218
+ export declare type ReconnectConnector = Message<"kusinta.iot.webrtc.v1.ReconnectConnector"> & {
1219
+ /**
1220
+ * As ConnectorDescriptor.connector_id, and the id a CONNECTOR_ERROR problem's subject
1221
+ * names (reporting.v1.ProblemSubject.connector_id).
1222
+ *
1223
+ * @generated from field: kusinta.iot.identity.v1.ConnectorId connector_id = 1;
1224
+ */
1225
+ connectorId?: ConnectorId | undefined;
1226
+ };
1227
+
1228
+ /**
1229
+ * Describes the message kusinta.iot.webrtc.v1.ReconnectConnector.
1230
+ * Use `create(ReconnectConnectorSchema)` to create a new message.
1231
+ */
1232
+ export declare const ReconnectConnectorSchema: GenMessage<ReconnectConnector>;
1233
+
1234
+ /**
1235
+ * Lists the heating records (heating.v1) a caller may see under a space: unset
1236
+ * root_space_id lists every one the caller can reach. Answered with a HeatingLayout.
1237
+ *
1238
+ * @generated from message kusinta.iot.webrtc.v1.ListHeating
1239
+ */
1240
+ export declare type ListHeating = Message<"kusinta.iot.webrtc.v1.ListHeating"> & {
1241
+ /**
1242
+ * @generated from field: kusinta.iot.identity.v1.SpaceId root_space_id = 1;
1243
+ */
1244
+ rootSpaceId?: SpaceId | undefined;
1245
+ };
1246
+
1247
+ /**
1248
+ * Describes the message kusinta.iot.webrtc.v1.ListHeating.
1249
+ * Use `create(ListHeatingSchema)` to create a new message.
1250
+ */
1251
+ export declare const ListHeatingSchema: GenMessage<ListHeating>;
1252
+
1253
+ /**
1254
+ * Creates a plant (empty plant_id) or replaces one. Answered with the HeatingRecord as
1255
+ * stored. The puts of heating records refuse, with metadata "reason":
1256
+ *
1257
+ * INVALID_REQUEST
1258
+ * "ZONE_CONTROL_ROOM" a floor zone whose control room is unset or not one of its rooms.
1259
+ * "ZONE_ROOMS_ACROSS_HOMES" a floor zone with rooms in two homes, or in a home and outside
1260
+ * homes.
1261
+ * "ZONE_AREA_SHARES" a floor zone with a room listed twice, a share of 0, or shares
1262
+ * that do not sum to 1000.
1263
+ * "ROOM_OUTSIDE_PLANT" a zone room outside its plant's space; metadata "room_id" names it.
1264
+ * "ZONE_NOT_ON_FLOOR" a floor zone on a circuit that is not a floor circuit.
1265
+ * "SG_READY_HALF_BOUND" one SG Ready input bound without the other.
1266
+ * "CONTROL_EMPTY" a plant control that binds no input.
1267
+ * "NO_ENDPOINT" an attribute on the Matter branch with no endpoint_id.
1268
+ * "WINDOWS_IN_PUT" a comfort load put with windows (see SetComfortWindows).
1269
+ *
1270
+ * FAILED_PRECONDITION
1271
+ * "STALE_REVISION" the record changed since the revision the request names.
1272
+ * "CHILDREN_INVALID" a plant or circuit put that would leave a record under it
1273
+ * invalid: a circuit with zones no longer a floor circuit, or a
1274
+ * space or plant change leaving a zone's room outside its plant.
1275
+ * "OUTPUT_BOUND_TWICE" an output already bound in another role or record.
1276
+ * "OUTPUT_NOT_LEASED" an output whose write its producer does not state as leased.
1277
+ * "REST_STATE" an output whose lapse value, read through closed_value, does not
1278
+ * leave the contact where its role rests.
1279
+ *
1280
+ * A refusal about one binding names it in metadata "field", by its proto field name:
1281
+ * "sg_ready_block", "sg_ready_boost", "add_on_heater_block", "meter", "output",
1282
+ * "supply_probe", "return_probe".
1283
+ *
1284
+ * A device or room the caller cannot reach, a parent it may not use (see heating.v1) and an
1285
+ * id that does not exist are all refused as NOT_ENTITLED with the same metadata, so no answer
1286
+ * tells one from another. HAS_CHILDREN, CHILDREN_INVALID and OUTPUT_BOUND_TWICE may count
1287
+ * records the caller cannot see — a zone in a home under a circuit outside it. That one bit
1288
+ * is accepted, as it is for the members listing; their metadata never names or counts such
1289
+ * a record.
1290
+ *
1291
+ * @generated from message kusinta.iot.webrtc.v1.PutHeatingPlant
1292
+ */
1293
+ export declare type PutHeatingPlant = Message<"kusinta.iot.webrtc.v1.PutHeatingPlant"> & {
1294
+ /**
1295
+ * @generated from field: kusinta.iot.heating.v1.HeatingPlant plant = 1;
1296
+ */
1297
+ plant?: HeatingPlant | undefined;
1298
+ };
1299
+
1300
+ /**
1301
+ * Describes the message kusinta.iot.webrtc.v1.PutHeatingPlant.
1302
+ * Use `create(PutHeatingPlantSchema)` to create a new message.
1303
+ */
1304
+ export declare const PutHeatingPlantSchema: GenMessage<PutHeatingPlant>;
1305
+
1306
+ /**
1307
+ * Creates or replaces a circuit of a plant; as PutHeatingPlant.
1308
+ *
1309
+ * @generated from message kusinta.iot.webrtc.v1.PutHeatingCircuit
1310
+ */
1311
+ export declare type PutHeatingCircuit = Message<"kusinta.iot.webrtc.v1.PutHeatingCircuit"> & {
1312
+ /**
1313
+ * @generated from field: kusinta.iot.heating.v1.HeatingCircuit circuit = 1;
1314
+ */
1315
+ circuit?: HeatingCircuit | undefined;
1316
+ };
1317
+
1318
+ /**
1319
+ * Describes the message kusinta.iot.webrtc.v1.PutHeatingCircuit.
1320
+ * Use `create(PutHeatingCircuitSchema)` to create a new message.
1321
+ */
1322
+ export declare const PutHeatingCircuitSchema: GenMessage<PutHeatingCircuit>;
1323
+
1324
+ /**
1325
+ * Creates or replaces a floor zone of a floor circuit; as PutHeatingPlant.
1326
+ *
1327
+ * @generated from message kusinta.iot.webrtc.v1.PutFloorZone
1328
+ */
1329
+ export declare type PutFloorZone = Message<"kusinta.iot.webrtc.v1.PutFloorZone"> & {
1330
+ /**
1331
+ * @generated from field: kusinta.iot.heating.v1.FloorZone zone = 1;
1332
+ */
1333
+ zone?: FloorZone | undefined;
1334
+ };
1335
+
1336
+ /**
1337
+ * Describes the message kusinta.iot.webrtc.v1.PutFloorZone.
1338
+ * Use `create(PutFloorZoneSchema)` to create a new message.
1339
+ */
1340
+ export declare const PutFloorZoneSchema: GenMessage<PutFloorZone>;
1341
+
1342
+ /**
1343
+ * Creates or replaces a comfort load's room, name and output, keeping its windows; as
1344
+ * PutHeatingPlant.
1345
+ *
1346
+ * @generated from message kusinta.iot.webrtc.v1.PutComfortLoad
1347
+ */
1348
+ export declare type PutComfortLoad = Message<"kusinta.iot.webrtc.v1.PutComfortLoad"> & {
1349
+ /**
1350
+ * @generated from field: kusinta.iot.heating.v1.ComfortLoad comfort_load = 1;
1351
+ */
1352
+ comfortLoad?: ComfortLoad | undefined;
1353
+ };
1354
+
1355
+ /**
1356
+ * Describes the message kusinta.iot.webrtc.v1.PutComfortLoad.
1357
+ * Use `create(PutComfortLoadSchema)` to create a new message.
1358
+ */
1359
+ export declare const PutComfortLoadSchema: GenMessage<PutComfortLoad>;
1360
+
1361
+ /**
1362
+ * Removes a heating record by its id, naming the revision it removes. Refused as
1363
+ * FAILED_PRECONDITION with metadata "reason" "STALE_REVISION" when it changed since, and
1364
+ * "HAS_CHILDREN" while records lie under it — a plant's circuits, a circuit's zones — so
1365
+ * nothing is removed that the caller did not name. Its outputs are returned to rest at once
1366
+ * (see heating.v1). Acked.
1367
+ *
1368
+ * @generated from message kusinta.iot.webrtc.v1.RemoveHeatingRecord
1369
+ */
1370
+ export declare type RemoveHeatingRecord = Message<"kusinta.iot.webrtc.v1.RemoveHeatingRecord"> & {
1371
+ /**
1372
+ * @generated from field: string id = 1;
1373
+ */
1374
+ id: string;
1375
+
1376
+ /**
1377
+ * @generated from field: uint64 revision = 2;
1378
+ */
1379
+ revision: bigint;
1380
+ };
1381
+
1382
+ /**
1383
+ * Describes the message kusinta.iot.webrtc.v1.RemoveHeatingRecord.
1384
+ * Use `create(RemoveHeatingRecordSchema)` to create a new message.
1385
+ */
1386
+ export declare const RemoveHeatingRecordSchema: GenMessage<RemoveHeatingRecord>;
1387
+
1388
+ /**
1389
+ * Replaces a comfort load's windows: a resident's setting, apart from the binding and its
1390
+ * revision. Answered with the HeatingRecord as stored. Refused as FAILED_PRECONDITION
1391
+ * "STALE_REVISION" when windows_revision is set and the windows changed since, and as
1392
+ * INVALID_REQUEST "WINDOW" for a window that ComfortWindow does not allow or more than 16.
1393
+ * From an installer under a commissioning grant, NOT_ENTITLED.
1394
+ *
1395
+ * @generated from message kusinta.iot.webrtc.v1.SetComfortWindows
1396
+ */
1397
+ export declare type SetComfortWindows = Message<"kusinta.iot.webrtc.v1.SetComfortWindows"> & {
1398
+ /**
1399
+ * @generated from field: string comfort_load_id = 1;
1400
+ */
1401
+ comfortLoadId: string;
1402
+
1403
+ /**
1404
+ * @generated from field: repeated kusinta.iot.heating.v1.ComfortWindow windows = 2;
1405
+ */
1406
+ windows: ComfortWindow[];
1407
+
1408
+ /**
1409
+ * The ComfortLoad.windows_revision these windows replace. Unset: whatever is stored.
1410
+ *
1411
+ * @generated from field: optional uint64 windows_revision = 3;
1412
+ */
1413
+ windowsRevision?: bigint | undefined;
1414
+ };
1415
+
1416
+ /**
1417
+ * Describes the message kusinta.iot.webrtc.v1.SetComfortWindows.
1418
+ * Use `create(SetComfortWindowsSchema)` to create a new message.
1419
+ */
1420
+ export declare const SetComfortWindowsSchema: GenMessage<SetComfortWindows>;
1421
+
1422
+ /**
1423
+ * Asks for a nonce to link one home's account at a third-party service
1424
+ * (accountlink.v1.AccountLinkNonce). Only a household admin of the home
1425
+ * (access.v1.MEMBERSHIP_RELATION_HOUSEHOLD_ADMIN) is issued one; anyone else is refused as
1426
+ * NOT_ENTITLED, as is a home the caller cannot reach. A service this gateway does not
1427
+ * support is refused as INVALID_REQUEST.
1428
+ *
1429
+ * @generated from message kusinta.iot.webrtc.v1.RequestAccountLinkNonce
1430
+ */
1431
+ export declare type RequestAccountLinkNonce = Message<"kusinta.iot.webrtc.v1.RequestAccountLinkNonce"> & {
1432
+ /**
1433
+ * @generated from field: kusinta.iot.identity.v1.SpaceId home_id = 1;
1434
+ */
1435
+ homeId?: SpaceId | undefined;
1436
+
1437
+ /**
1438
+ * @generated from field: kusinta.iot.accountlink.v1.LinkedService service = 2;
1439
+ */
1440
+ service: LinkedService;
1441
+ };
1442
+
1443
+ /**
1444
+ * Describes the message kusinta.iot.webrtc.v1.RequestAccountLinkNonce.
1445
+ * Use `create(RequestAccountLinkNonceSchema)` to create a new message.
1446
+ */
1447
+ export declare const RequestAccountLinkNonceSchema: GenMessage<RequestAccountLinkNonce>;
1448
+
1449
+ /**
1450
+ * Lists a home's linked accounts and their status, answered with an AccountLinks. Given to
1451
+ * the home's residents; anyone else is refused as NOT_ENTITLED.
1452
+ *
1453
+ * @generated from message kusinta.iot.webrtc.v1.ListAccountLinks
1454
+ */
1455
+ export declare type ListAccountLinks = Message<"kusinta.iot.webrtc.v1.ListAccountLinks"> & {
1456
+ /**
1457
+ * @generated from field: kusinta.iot.identity.v1.SpaceId home_id = 1;
1458
+ */
1459
+ homeId?: SpaceId | undefined;
1460
+ };
1461
+
1462
+ /**
1463
+ * Describes the message kusinta.iot.webrtc.v1.ListAccountLinks.
1464
+ * Use `create(ListAccountLinksSchema)` to create a new message.
1465
+ */
1466
+ export declare const ListAccountLinksSchema: GenMessage<ListAccountLinks>;
1467
+
1468
+ /**
1469
+ * Unlinks a home's account at one service: the gateway reads no more through it and revokes
1470
+ * it (accountlink.v1.RevokeToken). A household admin of the home only; anyone else is refused
1471
+ * as NOT_ENTITLED. A service with no link is acked all the same. Acked.
1472
+ *
1473
+ * @generated from message kusinta.iot.webrtc.v1.UnlinkAccount
1474
+ */
1475
+ export declare type UnlinkAccount = Message<"kusinta.iot.webrtc.v1.UnlinkAccount"> & {
1476
+ /**
1477
+ * @generated from field: kusinta.iot.identity.v1.SpaceId home_id = 1;
1478
+ */
1479
+ homeId?: SpaceId | undefined;
1480
+
1481
+ /**
1482
+ * @generated from field: kusinta.iot.accountlink.v1.LinkedService service = 2;
1483
+ */
1484
+ service: LinkedService;
1485
+ };
1486
+
1487
+ /**
1488
+ * Describes the message kusinta.iot.webrtc.v1.UnlinkAccount.
1489
+ * Use `create(UnlinkAccountSchema)` to create a new message.
1490
+ */
1491
+ export declare const UnlinkAccountSchema: GenMessage<UnlinkAccount>;
1492
+
1493
+ /**
1494
+ * Lists a space's commissioning (commissioning.v1): for a home, its facts, tests and feature
1495
+ * states; for a space outside homes, its facts and the tests on records there. Answered
1496
+ * with a CommissioningProfile, filtered as commissioning.v1 says. A home asked by a caller
1497
+ * who is not given its commissioning is refused as NOT_ENTITLED.
1498
+ *
1499
+ * @generated from message kusinta.iot.webrtc.v1.ListCommissioning
1500
+ */
1501
+ export declare type ListCommissioning = Message<"kusinta.iot.webrtc.v1.ListCommissioning"> & {
1502
+ /**
1503
+ * @generated from field: kusinta.iot.identity.v1.SpaceId space_id = 1;
1504
+ */
1505
+ spaceId?: SpaceId | undefined;
1506
+ };
1507
+
1508
+ /**
1509
+ * Describes the message kusinta.iot.webrtc.v1.ListCommissioning.
1510
+ * Use `create(ListCommissioningSchema)` to create a new message.
1511
+ */
1512
+ export declare const ListCommissioningSchema: GenMessage<ListCommissioning>;
1513
+
1514
+ /**
1515
+ * Creates a fact (empty fact_id) or replaces one. Answered with the CommissioningRecord as
1516
+ * stored. The gateway sets answerer, necessity, feature, topic and provenance, save
1517
+ * provenance.evidence, which the caller states. Refused with metadata "reason":
1518
+ *
1519
+ * INVALID_REQUEST
1520
+ * "UNKNOWN_KEY" a key the gateway's catalogue does not hold.
1521
+ * "VALUE_TYPE" a value of another type than the key takes, a string outside the
1522
+ * key's closed list, unknown false, or no answer.
1523
+ * "SUBJECT" a record_id that is not a heating record within space_id, or a key
1524
+ * that is not about that kind of space or record.
1525
+ * "ANSWERER" a key the caller's party does not answer.
1526
+ * "EVIDENCE" evidence the caller's party may not give, or less than the key
1527
+ * requires.
1528
+ * "TEMPLATE_VERSION" a new or changed deviates_from naming a template or version the
1529
+ * home's template never was, or set on a home that follows no
1530
+ * template. One carried over unchanged from the stored fact is kept,
1531
+ * even after the home moved to another template.
1532
+ *
1533
+ * FAILED_PRECONDITION
1534
+ * "STALE_REVISION" the fact changed since the revision the request names.
1535
+ * "FACT_EXISTS" a create for a space, record and key that already have a fact;
1536
+ * metadata "fact_id" names it. One answer per key.
1537
+ * "SET_BY_TEST" a key only a test sets.
1538
+ *
1539
+ * A space or record the caller cannot reach, and a fact_id that does not exist, are refused
1540
+ * as NOT_ENTITLED with the same metadata.
1541
+ *
1542
+ * @generated from message kusinta.iot.webrtc.v1.PutCommissioningFact
1543
+ */
1544
+ export declare type PutCommissioningFact = Message<"kusinta.iot.webrtc.v1.PutCommissioningFact"> & {
1545
+ /**
1546
+ * @generated from field: kusinta.iot.commissioning.v1.CommissioningFact fact = 1;
1547
+ */
1548
+ fact?: CommissioningFact | undefined;
1549
+ };
1550
+
1551
+ /**
1552
+ * Describes the message kusinta.iot.webrtc.v1.PutCommissioningFact.
1553
+ * Use `create(PutCommissioningFactSchema)` to create a new message.
1554
+ */
1555
+ export declare const PutCommissioningFactSchema: GenMessage<PutCommissioningFact>;
1556
+
1557
+ /**
1558
+ * Removes a fact by its id, naming the revision it removes; as PutCommissioningFact. A fact
1559
+ * set by a test is replaced only by running it again: refused as FAILED_PRECONDITION
1560
+ * "SET_BY_TEST". Acked.
1561
+ *
1562
+ * @generated from message kusinta.iot.webrtc.v1.RemoveCommissioningFact
1563
+ */
1564
+ export declare type RemoveCommissioningFact = Message<"kusinta.iot.webrtc.v1.RemoveCommissioningFact"> & {
1565
+ /**
1566
+ * @generated from field: string fact_id = 1;
1567
+ */
1568
+ factId: string;
1569
+
1570
+ /**
1571
+ * @generated from field: uint64 revision = 2;
1572
+ */
1573
+ revision: bigint;
1574
+ };
1575
+
1576
+ /**
1577
+ * Describes the message kusinta.iot.webrtc.v1.RemoveCommissioningFact.
1578
+ * Use `create(RemoveCommissioningFactSchema)` to create a new message.
1579
+ */
1580
+ export declare const RemoveCommissioningFactSchema: GenMessage<RemoveCommissioningFact>;
1581
+
1582
+ /**
1583
+ * Creates a house template (empty template_id) or replaces one, naming the version it
1584
+ * replaces. From the property owner or the gateway's administrators, reaching the building;
1585
+ * anyone else is refused as NOT_ENTITLED. Answered with the CommissioningRecord as stored.
1586
+ * Refused as FAILED_PRECONDITION "STALE_REVISION" when the template changed since, as
1587
+ * INVALID_REQUEST "UNKNOWN_KEY" or "VALUE_TYPE" as PutCommissioningFact, and as
1588
+ * INVALID_REQUEST "EVIDENCE" for a key a template may not answer (commissioning.v1,
1589
+ * TEMPLATES); metadata "key" names it.
1590
+ *
1591
+ * @generated from message kusinta.iot.webrtc.v1.PutHouseTemplate
1592
+ */
1593
+ export declare type PutHouseTemplate = Message<"kusinta.iot.webrtc.v1.PutHouseTemplate"> & {
1594
+ /**
1595
+ * @generated from field: kusinta.iot.commissioning.v1.HouseTemplate template = 1;
1596
+ */
1597
+ template?: HouseTemplate | undefined;
1598
+ };
1599
+
1600
+ /**
1601
+ * Describes the message kusinta.iot.webrtc.v1.PutHouseTemplate.
1602
+ * Use `create(PutHouseTemplateSchema)` to create a new message.
1603
+ */
1604
+ export declare const PutHouseTemplateSchema: GenMessage<PutHouseTemplate>;
1605
+
1606
+ /**
1607
+ * Says which house template a home follows; an empty template_id, none. From the property
1608
+ * owner or the gateway's administrators; anyone else is refused as NOT_ENTITLED. A template
1609
+ * of another building is refused as INVALID_REQUEST "TEMPLATE_BUILDING". Deviations recorded
1610
+ * against another template stay, naming the version they were recorded against. Acked.
1611
+ *
1612
+ * @generated from message kusinta.iot.webrtc.v1.SetHomeTemplate
1613
+ */
1614
+ export declare type SetHomeTemplate = Message<"kusinta.iot.webrtc.v1.SetHomeTemplate"> & {
1615
+ /**
1616
+ * @generated from field: kusinta.iot.identity.v1.SpaceId home_id = 1;
1617
+ */
1618
+ homeId?: SpaceId | undefined;
1619
+
1620
+ /**
1621
+ * @generated from field: string template_id = 2;
1622
+ */
1623
+ templateId: string;
1624
+ };
1625
+
1626
+ /**
1627
+ * Describes the message kusinta.iot.webrtc.v1.SetHomeTemplate.
1628
+ * Use `create(SetHomeTemplateSchema)` to create a new message.
1629
+ */
1630
+ export declare const SetHomeTemplateSchema: GenMessage<SetHomeTemplate>;
1631
+
1632
+ /**
1633
+ * Starts a commissioning test (commissioning.v1.TestKind) on a heating record, answered with
1634
+ * the CommissioningRecord of the test, RUNNING. Its changes of state, the start included,
1635
+ * are pushed (GatewayMessage.commissioning_test), save the start to the session that
1636
+ * started it, which has it as the reply. Run by whoever may bind the outputs it drives
1637
+ * (heating.v1); PUMP_ALL_ZONES_OFF by an installer under a commissioning grant only. Refused
1638
+ * with metadata "reason":
1639
+ *
1640
+ * INVALID_REQUEST
1641
+ * "TEST_SUBJECT" a kind that does not run on that record, or for OUTPUT_LEASE a
1642
+ * binding field that is empty or not a bound output of it; for the
1643
+ * other kinds, a binding field that is not empty.
1644
+ *
1645
+ * FAILED_PRECONDITION
1646
+ * "TEST_RUNNING" a test already drives one of its outputs.
1647
+ * "NEEDS_PASS" ZONE_EFFECT or PUMP_ALL_ZONES_OFF on outputs without a current
1648
+ * OUTPUT_LEASE pass; metadata "record_id" names one.
1649
+ * "OUTPUT_NOT_LEASED" an output its producer does not state as leased, with a lapse value
1650
+ * at rest (heating.v1), so no test could leave it at rest.
1651
+ * "READ_LATENCY" OUTPUT_LEASE on an output whose producer does not state its reads
1652
+ * REAL_TIME: a pass judged against a guessed latency is none.
1653
+ * "LEASE_BOUNDS" OUTPUT_LEASE on an output whose lease bounds admit no lease of 60
1654
+ * seconds to 5 minutes, so the test could not end by its ends_at.
1655
+ *
1656
+ * A record the caller cannot reach is refused as NOT_ENTITLED.
1657
+ *
1658
+ * @generated from message kusinta.iot.webrtc.v1.RunCommissioningTest
1659
+ */
1660
+ export declare type RunCommissioningTest = Message<"kusinta.iot.webrtc.v1.RunCommissioningTest"> & {
1661
+ /**
1662
+ * @generated from field: kusinta.iot.commissioning.v1.TestKind kind = 1;
1663
+ */
1664
+ kind: TestKind;
1665
+
1666
+ /**
1667
+ * binding.field for OUTPUT_LEASE only.
1668
+ *
1669
+ * @generated from field: kusinta.iot.commissioning.v1.BindingRef binding = 4;
1670
+ */
1671
+ binding?: BindingRef | undefined;
1672
+ };
1673
+
1674
+ /**
1675
+ * Describes the message kusinta.iot.webrtc.v1.RunCommissioningTest.
1676
+ * Use `create(RunCommissioningTestSchema)` to create a new message.
1677
+ */
1678
+ export declare const RunCommissioningTestSchema: GenMessage<RunCommissioningTest>;
1679
+
1680
+ /**
1681
+ * Ends a running test. verdict ABORTED stops any test, from whoever started it or may run
1682
+ * it; PASSED or FAILED concludes a PUMP_ALL_ZONES_OFF test, from an installer under a
1683
+ * commissioning grant only. Any other verdict, or PASSED or FAILED on another kind, is
1684
+ * refused as INVALID_REQUEST "VERDICT". Its outputs return to their normal control at once,
1685
+ * floor zones switching on no faster than "floor.max_zones_switching_on" allows. Answered
1686
+ * with the CommissioningRecord of the test. A test that has ended is refused as
1687
+ * FAILED_PRECONDITION "TEST_ENDED".
1688
+ *
1689
+ * @generated from message kusinta.iot.webrtc.v1.ConcludeCommissioningTest
1690
+ */
1691
+ export declare type ConcludeCommissioningTest = Message<"kusinta.iot.webrtc.v1.ConcludeCommissioningTest"> & {
1692
+ /**
1693
+ * @generated from field: string test_id = 1;
1694
+ */
1695
+ testId: string;
1696
+
1697
+ /**
1698
+ * @generated from field: kusinta.iot.commissioning.v1.TestState verdict = 2;
1699
+ */
1700
+ verdict: TestState;
1701
+ };
1702
+
1703
+ /**
1704
+ * Describes the message kusinta.iot.webrtc.v1.ConcludeCommissioningTest.
1705
+ * Use `create(ConcludeCommissioningTestSchema)` to create a new message.
1706
+ */
1707
+ export declare const ConcludeCommissioningTestSchema: GenMessage<ConcludeCommissioningTest>;
1708
+
1709
+ /**
1710
+ * Lists whether each home under a space is set up (commissioning.v1.HomeSetup): unset
1711
+ * root_space_id, every home the caller reaches. For the property owner and the gateway's
1712
+ * administrators; anyone else is refused as NOT_ENTITLED. Answered with a HomeSetups.
1713
+ *
1714
+ * @generated from message kusinta.iot.webrtc.v1.ListHomeSetups
1715
+ */
1716
+ export declare type ListHomeSetups = Message<"kusinta.iot.webrtc.v1.ListHomeSetups"> & {
1717
+ /**
1718
+ * @generated from field: kusinta.iot.identity.v1.SpaceId root_space_id = 1;
1719
+ */
1720
+ rootSpaceId?: SpaceId | undefined;
1721
+ };
1722
+
1723
+ /**
1724
+ * Describes the message kusinta.iot.webrtc.v1.ListHomeSetups.
1725
+ * Use `create(ListHomeSetupsSchema)` to create a new message.
1726
+ */
1727
+ export declare const ListHomeSetupsSchema: GenMessage<ListHomeSetups>;
1728
+
1729
+ /**
1730
+ * Asks for a commissioning grant on one space (commissioning.v1, GRANTS), answered with the
1731
+ * CommissioningGrant, REQUESTED. From a caller holding ROLE_TECHNICIAN who reaches the space;
1732
+ * anyone else, and a space they do not reach, is refused as NOT_ENTITLED. A room in a home is
1733
+ * INVALID_REQUEST with metadata {"reason": "grant_space"}: a home is granted whole. Asking
1734
+ * again while one of the caller's is requested or granted on the space answers that one.
1735
+ *
1736
+ * Accepted on any home the caller reaches, whether or not anyone could answer it: it lapses
1737
+ * unanswered where nobody does, so the answer tells the installer nothing of whether anyone
1738
+ * lives there.
1739
+ *
1740
+ * @generated from message kusinta.iot.webrtc.v1.RequestCommissioningGrant
1741
+ */
1742
+ export declare type RequestCommissioningGrant = Message<"kusinta.iot.webrtc.v1.RequestCommissioningGrant"> & {
1743
+ /**
1744
+ * @generated from field: kusinta.iot.identity.v1.SpaceId space_id = 1;
1745
+ */
1746
+ spaceId?: SpaceId | undefined;
1747
+ };
1748
+
1749
+ /**
1750
+ * Describes the message kusinta.iot.webrtc.v1.RequestCommissioningGrant.
1751
+ * Use `create(RequestCommissioningGrantSchema)` to create a new message.
1752
+ */
1753
+ export declare const RequestCommissioningGrantSchema: GenMessage<RequestCommissioningGrant>;
1754
+
1755
+ /**
1756
+ * Answers a requested commissioning grant, answered with the CommissioningGrant as stored when
1757
+ * granted, and with ManagementAck when declined, which ends it. From a household admin of the
1758
+ * home, or for a space outside homes the property owner or a gateway administrator who reaches
1759
+ * it; anyone else, and a grant_id that is not requested on a space the caller may answer for,
1760
+ * is refused as NOT_ENTITLED, so that no grant id can be probed.
1761
+ *
1762
+ * Granting needs ends_at after starts_at, no more than 14 days after it, and starts_at no
1763
+ * later than 30 days from now; otherwise INVALID_REQUEST with metadata
1764
+ * {"reason": "grant_period"}. An answered grant is not answered again: to change its time,
1765
+ * end it and let the installer ask anew.
1766
+ *
1767
+ * @generated from message kusinta.iot.webrtc.v1.AnswerCommissioningGrant
1768
+ */
1769
+ export declare type AnswerCommissioningGrant = Message<"kusinta.iot.webrtc.v1.AnswerCommissioningGrant"> & {
1770
+ /**
1771
+ * @generated from field: string grant_id = 1;
1772
+ */
1773
+ grantId: string;
1774
+
1775
+ /**
1776
+ * true grants; false declines.
1777
+ *
1778
+ * @generated from field: bool accept = 2;
1779
+ */
1780
+ accept: boolean;
1781
+
1782
+ /**
1783
+ * When it is active. Unset starts_at: now. Ignored when declining.
1784
+ *
1785
+ * @generated from field: google.protobuf.Timestamp starts_at = 3;
1786
+ */
1787
+ startsAt?: Timestamp | undefined;
1788
+
1789
+ /**
1790
+ * @generated from field: google.protobuf.Timestamp ends_at = 4;
1791
+ */
1792
+ endsAt?: Timestamp | undefined;
1793
+ };
1794
+
1795
+ /**
1796
+ * Describes the message kusinta.iot.webrtc.v1.AnswerCommissioningGrant.
1797
+ * Use `create(AnswerCommissioningGrantSchema)` to create a new message.
1798
+ */
1799
+ export declare const AnswerCommissioningGrantSchema: GenMessage<AnswerCommissioningGrant>;
1800
+
1801
+ /**
1802
+ * Ends a commissioning grant at once, requested or granted. Answered with ManagementAck. From
1803
+ * the installer it names, from whoever may answer it, and from nobody else: anyone else, and a
1804
+ * grant_id they are not listed, is refused as NOT_ENTITLED.
1805
+ *
1806
+ * @generated from message kusinta.iot.webrtc.v1.EndCommissioningGrant
1807
+ */
1808
+ export declare type EndCommissioningGrant = Message<"kusinta.iot.webrtc.v1.EndCommissioningGrant"> & {
1809
+ /**
1810
+ * @generated from field: string grant_id = 1;
1811
+ */
1812
+ grantId: string;
1813
+ };
1814
+
1815
+ /**
1816
+ * Describes the message kusinta.iot.webrtc.v1.EndCommissioningGrant.
1817
+ * Use `create(EndCommissioningGrantSchema)` to create a new message.
1818
+ */
1819
+ export declare const EndCommissioningGrantSchema: GenMessage<EndCommissioningGrant>;
1820
+
1821
+ /**
1822
+ * Lists the commissioning grants that have not ended on a space and those below it, answered
1823
+ * with CommissioningGrants: a home's to its residents; one on a space outside homes to the
1824
+ * property owner and the gateway administrators who reach it; to an installer, their own.
1825
+ * Unset root_space_id lists every one the caller may be listed. Anyone may ask; nobody is
1826
+ * refused, and a caller listed none gets none.
1827
+ *
1828
+ * @generated from message kusinta.iot.webrtc.v1.ListCommissioningGrants
1829
+ */
1830
+ export declare type ListCommissioningGrants = Message<"kusinta.iot.webrtc.v1.ListCommissioningGrants"> & {
1831
+ /**
1832
+ * @generated from field: kusinta.iot.identity.v1.SpaceId root_space_id = 1;
1833
+ */
1834
+ rootSpaceId?: SpaceId | undefined;
1835
+ };
1836
+
1837
+ /**
1838
+ * Describes the message kusinta.iot.webrtc.v1.ListCommissioningGrants.
1839
+ * Use `create(ListCommissioningGrantsSchema)` to create a new message.
1840
+ */
1841
+ export declare const ListCommissioningGrantsSchema: GenMessage<ListCommissioningGrants>;
1842
+
1843
+ /**
1844
+ * Sets who owns one of the building's own devices as an asset (common.v1.AssetOwner), and
1845
+ * with it nobody's access. Answered with ManagementAck. From the property owner or a gateway
1846
+ * administrator who reaches the device; anyone else is refused as NOT_ENTITLED. Unset
1847
+ * asset_owner clears it, as does one with neither owner set.
1848
+ *
1849
+ * Refused as INVALID_REQUEST with metadata "reason":
1850
+ * "owned_by_resident" a device a person owns outright (common.v1.DeviceOwnershipType
1851
+ * RESIDENT), which has no asset owner.
1852
+ * "asset_owner" owner_organisation false, or a household_home_id that is not an
1853
+ * apartment.
1854
+ *
1855
+ * A household's asset keeps naming its home if the home's space is changed or deleted, until
1856
+ * it is set again: who owns what after a home is split or merged is decided here, not by the
1857
+ * change.
1858
+ *
1859
+ * @generated from message kusinta.iot.webrtc.v1.SetAssetOwner
1860
+ */
1861
+ export declare type SetAssetOwner = Message<"kusinta.iot.webrtc.v1.SetAssetOwner"> & {
1862
+ /**
1863
+ * @generated from field: kusinta.iot.identity.v1.DeviceId device_id = 1;
1864
+ */
1865
+ deviceId?: DeviceId | undefined;
1866
+
1867
+ /**
1868
+ * @generated from field: kusinta.iot.common.v1.AssetOwner asset_owner = 2;
1869
+ */
1870
+ assetOwner?: AssetOwner | undefined;
1871
+ };
1872
+
1873
+ /**
1874
+ * Describes the message kusinta.iot.webrtc.v1.SetAssetOwner.
1875
+ * Use `create(SetAssetOwnerSchema)` to create a new message.
1876
+ */
1877
+ export declare const SetAssetOwnerSchema: GenMessage<SetAssetOwner>;
1878
+
1879
+ /**
1880
+ * @generated from message kusinta.iot.webrtc.v1.ManagementRequest
1881
+ */
1882
+ export declare type ManagementRequest = Message<"kusinta.iot.webrtc.v1.ManagementRequest"> & {
1883
+ /**
1884
+ * @generated from oneof kusinta.iot.webrtc.v1.ManagementRequest.request
1885
+ */
1886
+ request: {
1887
+ /**
1888
+ * @generated from field: kusinta.iot.webrtc.v1.CreateSpace create_space = 1;
1889
+ */
1890
+ value: CreateSpace;
1891
+ case: "createSpace";
1892
+ } | {
1893
+ /**
1894
+ * @generated from field: kusinta.iot.webrtc.v1.UpdateSpace update_space = 2;
1895
+ */
1896
+ value: UpdateSpace;
1897
+ case: "updateSpace";
1898
+ } | {
1899
+ /**
1900
+ * @generated from field: kusinta.iot.webrtc.v1.DeleteSpace delete_space = 3;
1901
+ */
1902
+ value: DeleteSpace;
1903
+ case: "deleteSpace";
1904
+ } | {
1905
+ /**
1906
+ * @generated from field: kusinta.iot.webrtc.v1.AssignUserToSpace assign_user_to_space = 4;
1907
+ */
1908
+ value: AssignUserToSpace;
1909
+ case: "assignUserToSpace";
1910
+ } | {
1911
+ /**
1912
+ * @generated from field: kusinta.iot.webrtc.v1.RemoveUserFromSpace remove_user_from_space = 5;
1913
+ */
1914
+ value: RemoveUserFromSpace;
1915
+ case: "removeUserFromSpace";
1916
+ } | {
1917
+ /**
1918
+ * @generated from field: kusinta.iot.webrtc.v1.PlaceDeviceInSpace place_device_in_space = 6;
1919
+ */
1920
+ value: PlaceDeviceInSpace;
1921
+ case: "placeDeviceInSpace";
1922
+ } | {
1923
+ /**
1924
+ * @generated from field: kusinta.iot.webrtc.v1.RemoveDeviceFromSpace remove_device_from_space = 7;
1925
+ */
1926
+ value: RemoveDeviceFromSpace;
1927
+ case: "removeDeviceFromSpace";
1928
+ } | {
1929
+ /**
1930
+ * @generated from field: kusinta.iot.webrtc.v1.ClaimDevice claim_device = 8;
1931
+ */
1932
+ value: ClaimDevice;
1933
+ case: "claimDevice";
1934
+ } | {
1935
+ /**
1936
+ * @generated from field: kusinta.iot.webrtc.v1.ReleaseDevice release_device = 9;
1937
+ */
1938
+ value: ReleaseDevice;
1939
+ case: "releaseDevice";
1940
+ } | {
1941
+ /**
1942
+ * @generated from field: kusinta.iot.webrtc.v1.ListSpaces list_spaces = 10;
1943
+ */
1944
+ value: ListSpaces;
1945
+ case: "listSpaces";
1946
+ } | {
1947
+ /**
1948
+ * @generated from field: kusinta.iot.webrtc.v1.CreateDeviceLink create_device_link = 11;
1949
+ */
1950
+ value: CreateDeviceLink;
1951
+ case: "createDeviceLink";
1952
+ } | {
1953
+ /**
1954
+ * @generated from field: kusinta.iot.webrtc.v1.RemoveDeviceLink remove_device_link = 12;
1955
+ */
1956
+ value: RemoveDeviceLink;
1957
+ case: "removeDeviceLink";
1958
+ } | {
1959
+ /**
1960
+ * @generated from field: kusinta.iot.webrtc.v1.ListDeviceLinks list_device_links = 13;
1961
+ */
1962
+ value: ListDeviceLinks;
1963
+ case: "listDeviceLinks";
1964
+ } | {
1965
+ /**
1966
+ * @generated from field: kusinta.iot.webrtc.v1.UpdateDeviceLink update_device_link = 14;
1967
+ */
1968
+ value: UpdateDeviceLink;
1969
+ case: "updateDeviceLink";
1970
+ } | {
1971
+ /**
1972
+ * @generated from field: kusinta.iot.webrtc.v1.ProvisionDevice provision_device = 15;
1973
+ */
1974
+ value: ProvisionDevice;
1975
+ case: "provisionDevice";
1976
+ } | {
1977
+ /**
1978
+ * @generated from field: kusinta.iot.webrtc.v1.SetRoomTarget set_room_target = 16;
1979
+ */
1980
+ value: SetRoomTarget;
1981
+ case: "setRoomTarget";
1982
+ } | {
1983
+ /**
1984
+ * @generated from field: kusinta.iot.webrtc.v1.ConfigureRoomClimate configure_room_climate = 17;
1985
+ */
1986
+ value: ConfigureRoomClimate;
1987
+ case: "configureRoomClimate";
1988
+ } | {
1989
+ /**
1990
+ * @generated from field: kusinta.iot.webrtc.v1.SetClimateMode set_climate_mode = 18;
1991
+ */
1992
+ value: SetClimateMode;
1993
+ case: "setClimateMode";
1994
+ } | {
1995
+ /**
1996
+ * @generated from field: kusinta.iot.webrtc.v1.ListRoomClimates list_room_climates = 19;
1997
+ */
1998
+ value: ListRoomClimates;
1999
+ case: "listRoomClimates";
2000
+ } | {
2001
+ /**
2002
+ * @generated from field: kusinta.iot.webrtc.v1.GetRoomHistory get_room_history = 20;
2003
+ */
2004
+ value: GetRoomHistory;
2005
+ case: "getRoomHistory";
2006
+ } | {
2007
+ /**
2008
+ * @generated from field: kusinta.iot.webrtc.v1.GetPrivacyDisclosure get_privacy_disclosure = 21;
2009
+ */
2010
+ value: GetPrivacyDisclosure;
2011
+ case: "getPrivacyDisclosure";
2012
+ } | {
2013
+ /**
2014
+ * @generated from field: kusinta.iot.webrtc.v1.GetApartmentClimateSummary get_apartment_climate_summary = 22;
2015
+ */
2016
+ value: GetApartmentClimateSummary;
2017
+ case: "getApartmentClimateSummary";
2018
+ } | {
2019
+ /**
2020
+ * @generated from field: kusinta.iot.webrtc.v1.ReconnectConnector reconnect_connector = 23;
2021
+ */
2022
+ value: ReconnectConnector;
2023
+ case: "reconnectConnector";
2024
+ } | {
2025
+ /**
2026
+ * Invites; see invite.proto.
2027
+ *
2028
+ * @generated from field: kusinta.iot.webrtc.v1.CreateInvite create_invite = 24;
2029
+ */
2030
+ value: CreateInvite;
2031
+ case: "createInvite";
2032
+ } | {
2033
+ /**
2034
+ * @generated from field: kusinta.iot.webrtc.v1.ResendInvite resend_invite = 25;
2035
+ */
2036
+ value: ResendInvite;
2037
+ case: "resendInvite";
2038
+ } | {
2039
+ /**
2040
+ * @generated from field: kusinta.iot.webrtc.v1.RevokeInvite revoke_invite = 26;
2041
+ */
2042
+ value: RevokeInvite;
2043
+ case: "revokeInvite";
2044
+ } | {
2045
+ /**
2046
+ * @generated from field: kusinta.iot.webrtc.v1.MarkInviteEmailSent mark_invite_email_sent = 27;
2047
+ */
2048
+ value: MarkInviteEmailSent;
2049
+ case: "markInviteEmailSent";
2050
+ } | {
2051
+ /**
2052
+ * @generated from field: kusinta.iot.webrtc.v1.ListSpaceInvites list_space_invites = 28;
2053
+ */
2054
+ value: ListSpaceInvites;
2055
+ case: "listSpaceInvites";
2056
+ } | {
2057
+ /**
2058
+ * @generated from field: kusinta.iot.webrtc.v1.ApproveJoinRequest approve_join_request = 29;
2059
+ */
2060
+ value: ApproveJoinRequest;
2061
+ case: "approveJoinRequest";
2062
+ } | {
2063
+ /**
2064
+ * @generated from field: kusinta.iot.webrtc.v1.DenyJoinRequest deny_join_request = 30;
2065
+ */
2066
+ value: DenyJoinRequest;
2067
+ case: "denyJoinRequest";
2068
+ } | {
2069
+ /**
2070
+ * Members; see members.proto.
2071
+ *
2072
+ * @generated from field: kusinta.iot.webrtc.v1.ListGatewayMembers list_gateway_members = 31;
2073
+ */
2074
+ value: ListGatewayMembers;
2075
+ case: "listGatewayMembers";
2076
+ } | {
2077
+ /**
2078
+ * @generated from field: kusinta.iot.webrtc.v1.SetMemberRole set_member_role = 32;
2079
+ */
2080
+ value: SetMemberRole;
2081
+ case: "setMemberRole";
2082
+ } | {
2083
+ /**
2084
+ * @generated from field: kusinta.iot.webrtc.v1.RemoveFromGateway remove_from_gateway = 33;
2085
+ */
2086
+ value: RemoveFromGateway;
2087
+ case: "removeFromGateway";
2088
+ } | {
2089
+ /**
2090
+ * @generated from field: kusinta.iot.webrtc.v1.SetAccessUntil set_access_until = 34;
2091
+ */
2092
+ value: SetAccessUntil;
2093
+ case: "setAccessUntil";
2094
+ } | {
2095
+ /**
2096
+ * Superseded, and refused as INVALID_REQUEST; see SetOwnerOrganisation.
2097
+ *
2098
+ * @generated from field: kusinta.iot.webrtc.v1.SetOwnerOrganisation set_owner_organisation = 35 [deprecated = true];
2099
+ * @deprecated
2100
+ */
2101
+ value: SetOwnerOrganisation;
2102
+ case: "setOwnerOrganisation";
2103
+ } | {
2104
+ /**
2105
+ * Promotion requests; see members.proto.
2106
+ *
2107
+ * @generated from field: kusinta.iot.webrtc.v1.RequestPromotion request_promotion = 36;
2108
+ */
2109
+ value: RequestPromotion;
2110
+ case: "requestPromotion";
2111
+ } | {
2112
+ /**
2113
+ * @generated from field: kusinta.iot.webrtc.v1.AnswerPromotion answer_promotion = 37;
2114
+ */
2115
+ value: AnswerPromotion;
2116
+ case: "answerPromotion";
2117
+ } | {
2118
+ /**
2119
+ * @generated from field: kusinta.iot.webrtc.v1.ListPromotionRequests list_promotion_requests = 38;
2120
+ */
2121
+ value: ListPromotionRequests;
2122
+ case: "listPromotionRequests";
2123
+ } | {
2124
+ /**
2125
+ * Heating records; see heating.v1.
2126
+ *
2127
+ * @generated from field: kusinta.iot.webrtc.v1.ListHeating list_heating = 39;
2128
+ */
2129
+ value: ListHeating;
2130
+ case: "listHeating";
2131
+ } | {
2132
+ /**
2133
+ * @generated from field: kusinta.iot.webrtc.v1.PutHeatingPlant put_heating_plant = 40;
2134
+ */
2135
+ value: PutHeatingPlant;
2136
+ case: "putHeatingPlant";
2137
+ } | {
2138
+ /**
2139
+ * @generated from field: kusinta.iot.webrtc.v1.PutHeatingCircuit put_heating_circuit = 41;
2140
+ */
2141
+ value: PutHeatingCircuit;
2142
+ case: "putHeatingCircuit";
2143
+ } | {
2144
+ /**
2145
+ * @generated from field: kusinta.iot.webrtc.v1.PutFloorZone put_floor_zone = 42;
2146
+ */
2147
+ value: PutFloorZone;
2148
+ case: "putFloorZone";
2149
+ } | {
2150
+ /**
2151
+ * @generated from field: kusinta.iot.webrtc.v1.PutComfortLoad put_comfort_load = 43;
2152
+ */
2153
+ value: PutComfortLoad;
2154
+ case: "putComfortLoad";
2155
+ } | {
2156
+ /**
2157
+ * @generated from field: kusinta.iot.webrtc.v1.RemoveHeatingRecord remove_heating_record = 44;
2158
+ */
2159
+ value: RemoveHeatingRecord;
2160
+ case: "removeHeatingRecord";
2161
+ } | {
2162
+ /**
2163
+ * @generated from field: kusinta.iot.webrtc.v1.SetComfortWindows set_comfort_windows = 45;
2164
+ */
2165
+ value: SetComfortWindows;
2166
+ case: "setComfortWindows";
2167
+ } | {
2168
+ /**
2169
+ * @generated from field: kusinta.iot.webrtc.v1.RequestAccountLinkNonce request_account_link_nonce = 46;
2170
+ */
2171
+ value: RequestAccountLinkNonce;
2172
+ case: "requestAccountLinkNonce";
2173
+ } | {
2174
+ /**
2175
+ * @generated from field: kusinta.iot.webrtc.v1.ListAccountLinks list_account_links = 47;
2176
+ */
2177
+ value: ListAccountLinks;
2178
+ case: "listAccountLinks";
2179
+ } | {
2180
+ /**
2181
+ * @generated from field: kusinta.iot.webrtc.v1.UnlinkAccount unlink_account = 48;
2182
+ */
2183
+ value: UnlinkAccount;
2184
+ case: "unlinkAccount";
2185
+ } | {
2186
+ /**
2187
+ * Commissioning; see commissioning.v1.
2188
+ *
2189
+ * @generated from field: kusinta.iot.webrtc.v1.ListCommissioning list_commissioning = 49;
2190
+ */
2191
+ value: ListCommissioning;
2192
+ case: "listCommissioning";
2193
+ } | {
2194
+ /**
2195
+ * @generated from field: kusinta.iot.webrtc.v1.PutCommissioningFact put_commissioning_fact = 50;
2196
+ */
2197
+ value: PutCommissioningFact;
2198
+ case: "putCommissioningFact";
2199
+ } | {
2200
+ /**
2201
+ * @generated from field: kusinta.iot.webrtc.v1.RemoveCommissioningFact remove_commissioning_fact = 51;
2202
+ */
2203
+ value: RemoveCommissioningFact;
2204
+ case: "removeCommissioningFact";
2205
+ } | {
2206
+ /**
2207
+ * @generated from field: kusinta.iot.webrtc.v1.PutHouseTemplate put_house_template = 52;
2208
+ */
2209
+ value: PutHouseTemplate;
2210
+ case: "putHouseTemplate";
2211
+ } | {
2212
+ /**
2213
+ * @generated from field: kusinta.iot.webrtc.v1.SetHomeTemplate set_home_template = 53;
2214
+ */
2215
+ value: SetHomeTemplate;
2216
+ case: "setHomeTemplate";
2217
+ } | {
2218
+ /**
2219
+ * @generated from field: kusinta.iot.webrtc.v1.RunCommissioningTest run_commissioning_test = 54;
2220
+ */
2221
+ value: RunCommissioningTest;
2222
+ case: "runCommissioningTest";
2223
+ } | {
2224
+ /**
2225
+ * @generated from field: kusinta.iot.webrtc.v1.ConcludeCommissioningTest conclude_commissioning_test = 55;
2226
+ */
2227
+ value: ConcludeCommissioningTest;
2228
+ case: "concludeCommissioningTest";
2229
+ } | {
2230
+ /**
2231
+ * @generated from field: kusinta.iot.webrtc.v1.ListHomeSetups list_home_setups = 56;
2232
+ */
2233
+ value: ListHomeSetups;
2234
+ case: "listHomeSetups";
2235
+ } | {
2236
+ /**
2237
+ * Commissioning grants; see commissioning.v1, GRANTS.
2238
+ *
2239
+ * @generated from field: kusinta.iot.webrtc.v1.RequestCommissioningGrant request_commissioning_grant = 57;
2240
+ */
2241
+ value: RequestCommissioningGrant;
2242
+ case: "requestCommissioningGrant";
2243
+ } | {
2244
+ /**
2245
+ * @generated from field: kusinta.iot.webrtc.v1.AnswerCommissioningGrant answer_commissioning_grant = 58;
2246
+ */
2247
+ value: AnswerCommissioningGrant;
2248
+ case: "answerCommissioningGrant";
2249
+ } | {
2250
+ /**
2251
+ * @generated from field: kusinta.iot.webrtc.v1.EndCommissioningGrant end_commissioning_grant = 59;
2252
+ */
2253
+ value: EndCommissioningGrant;
2254
+ case: "endCommissioningGrant";
2255
+ } | {
2256
+ /**
2257
+ * @generated from field: kusinta.iot.webrtc.v1.ListCommissioningGrants list_commissioning_grants = 60;
2258
+ */
2259
+ value: ListCommissioningGrants;
2260
+ case: "listCommissioningGrants";
2261
+ } | {
2262
+ /**
2263
+ * @generated from field: kusinta.iot.webrtc.v1.SetAssetOwner set_asset_owner = 61;
2264
+ */
2265
+ value: SetAssetOwner;
2266
+ case: "setAssetOwner";
2267
+ } | {
2268
+ /**
2269
+ * The household; see household.proto.
2270
+ *
2271
+ * @generated from field: kusinta.iot.webrtc.v1.DemoteHouseholdAdmin demote_household_admin = 62;
2272
+ */
2273
+ value: DemoteHouseholdAdmin;
2274
+ case: "demoteHouseholdAdmin";
2275
+ } | {
2276
+ /**
2277
+ * @generated from field: kusinta.iot.webrtc.v1.StartHouseholdHandover start_household_handover = 63;
2278
+ */
2279
+ value: StartHouseholdHandover;
2280
+ case: "startHouseholdHandover";
2281
+ } | {
2282
+ /**
2283
+ * @generated from field: kusinta.iot.webrtc.v1.ConfirmHouseholdHandover confirm_household_handover = 64;
2284
+ */
2285
+ value: ConfirmHouseholdHandover;
2286
+ case: "confirmHouseholdHandover";
2287
+ } | {
2288
+ /**
2289
+ * @generated from field: kusinta.iot.webrtc.v1.CancelHouseholdHandover cancel_household_handover = 65;
2290
+ */
2291
+ value: CancelHouseholdHandover;
2292
+ case: "cancelHouseholdHandover";
2293
+ } | {
2294
+ /**
2295
+ * @generated from field: kusinta.iot.webrtc.v1.ListHouseholdHandovers list_household_handovers = 66;
2296
+ */
2297
+ value: ListHouseholdHandovers;
2298
+ case: "listHouseholdHandovers";
2299
+ } | {
2300
+ /**
2301
+ * @generated from field: kusinta.iot.webrtc.v1.ExportHouseholdData export_household_data = 67;
2302
+ */
2303
+ value: ExportHouseholdData;
2304
+ case: "exportHouseholdData";
2305
+ } | {
2306
+ /**
2307
+ * @generated from field: kusinta.iot.webrtc.v1.SetHomeName set_home_name = 68;
2308
+ */
2309
+ value: SetHomeName;
2310
+ case: "setHomeName";
443
2311
  } | { case: undefined; value?: undefined };
444
2312
  };
445
2313