@kusinta/iot-schema 0.2.0-beta.5 → 0.2.0-beta.50

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 +138 -2
  3. package/src/kusinta/iot/access/v1/acl_pb.js +19 -2
  4. package/src/kusinta/iot/access/v1/roles_pb.d.ts +160 -4
  5. package/src/kusinta/iot/access/v1/roles_pb.js +128 -5
  6. package/src/kusinta/iot/accountlink/v1/account_link_pb.d.ts +591 -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 +1492 -0
  9. package/src/kusinta/iot/climate/v1/climate_pb.js +278 -0
  10. package/src/kusinta/iot/commissioning/v1/commissioning_pb.d.ts +1344 -0
  11. package/src/kusinta/iot/commissioning/v1/commissioning_pb.js +282 -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 +235 -0
  15. package/src/kusinta/iot/common/v1/types_pb.js +84 -2
  16. package/src/kusinta/iot/connector/v1/connector_pb.d.ts +874 -3
  17. package/src/kusinta/iot/connector/v1/connector_pb.js +126 -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 +32 -4
  21. package/src/kusinta/iot/device/v1/descriptor_pb.js +2 -1
  22. package/src/kusinta/iot/device/v1/device_event_pb.d.ts +89 -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 +426 -11
  25. package/src/kusinta/iot/device/v1/device_pb.js +74 -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 +42 -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 +656 -0
  31. package/src/kusinta/iot/heating/v1/heating_pb.js +119 -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 +1251 -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 +146 -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 +15 -0
  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 +5 -4
  51. package/src/kusinta/iot/vendor/v1/vendor_options_pb.js +5 -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 +34 -5
  58. package/src/kusinta/iot/webrtc/v1/envelope_pb.d.ts +732 -3
  59. package/src/kusinta/iot/webrtc/v1/envelope_pb.js +84 -4
  60. package/src/kusinta/iot/webrtc/v1/household_pb.d.ts +612 -0
  61. package/src/kusinta/iot/webrtc/v1/household_pb.js +134 -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 +2149 -76
  65. package/src/kusinta/iot/webrtc/v1/management_pb.js +311 -5
  66. package/src/kusinta/iot/webrtc/v1/members_pb.d.ts +582 -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 +9 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kusinta/iot-schema",
3
- "version": "0.2.0-beta.5",
3
+ "version": "0.2.0-beta.50",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "files": ["src"],
@@ -10,6 +10,7 @@
10
10
  },
11
11
  "exports": {
12
12
  "./common": "./src/kusinta/iot/common/v1/types_pb.js",
13
+ "./common/pairing": "./src/kusinta/iot/common/v1/pairing_pb.js",
13
14
  "./identity": "./src/kusinta/iot/identity/v1/identity_pb.js",
14
15
  "./device": "./src/kusinta/iot/device/v1/device_pb.js",
15
16
  "./device/descriptor": "./src/kusinta/iot/device/v1/descriptor_pb.js",
@@ -20,20 +21,31 @@
20
21
  "./device/event": "./src/kusinta/iot/device/v1/device_event_pb.js",
21
22
  "./vendor/options": "./src/kusinta/iot/vendor/v1/vendor_options_pb.js",
22
23
  "./vendor/homematic": "./src/kusinta/iot/vendor/homematic/v1/homematic_pb.js",
24
+ "./vendor/lorawan": "./src/kusinta/iot/vendor/lorawan/v1/lorawan_pb.js",
23
25
  "./space": "./src/kusinta/iot/space/v1/space_pb.js",
24
26
  "./access": "./src/kusinta/iot/access/v1/acl_pb.js",
25
27
  "./access/roles": "./src/kusinta/iot/access/v1/roles_pb.js",
28
+ "./account-link": "./src/kusinta/iot/accountlink/v1/account_link_pb.js",
29
+ "./link": "./src/kusinta/iot/link/v1/link_pb.js",
30
+ "./climate": "./src/kusinta/iot/climate/v1/climate_pb.js",
31
+ "./commissioning": "./src/kusinta/iot/commissioning/v1/commissioning_pb.js",
32
+ "./heating": "./src/kusinta/iot/heating/v1/heating_pb.js",
26
33
  "./connector": "./src/kusinta/iot/connector/v1/connector_pb.js",
27
34
  "./connector/service": "./src/kusinta/iot/connector/v1/connector_service_pb.js",
28
35
  "./webrtc": "./src/kusinta/iot/webrtc/v1/envelope_pb.js",
29
36
  "./webrtc/app-token": "./src/kusinta/iot/webrtc/v1/app_token_pb.js",
30
37
  "./webrtc/command": "./src/kusinta/iot/webrtc/v1/command_pb.js",
31
38
  "./webrtc/device-state": "./src/kusinta/iot/webrtc/v1/device_state_pb.js",
39
+ "./webrtc/household": "./src/kusinta/iot/webrtc/v1/household_pb.js",
40
+ "./webrtc/invite": "./src/kusinta/iot/webrtc/v1/invite_pb.js",
41
+ "./webrtc/members": "./src/kusinta/iot/webrtc/v1/members_pb.js",
32
42
  "./webrtc/management": "./src/kusinta/iot/webrtc/v1/management_pb.js",
33
43
  "./webrtc/permission-push": "./src/kusinta/iot/webrtc/v1/permission_push_pb.js",
34
44
  "./webrtc/setpoint-mode": "./src/kusinta/iot/webrtc/v1/setpoint_mode_pb.js",
35
45
  "./registration": "./src/kusinta/iot/registration/v1/registration_pb.js",
36
46
  "./registration/service": "./src/kusinta/iot/registration/v1/registration_service_pb.js",
47
+ "./reporting": "./src/kusinta/iot/reporting/v1/reporting_pb.js",
48
+ "./reporting/service": "./src/kusinta/iot/reporting/v1/reporting_service_pb.js",
37
49
  "./signaling": "./src/kusinta/iot/signaling/v1/signaling_pb.js",
38
50
  "./signaling/service": "./src/kusinta/iot/signaling/v1/signaling_service_pb.js"
39
51
  },
@@ -2,10 +2,10 @@
2
2
  // @generated from file kusinta/iot/access/v1/acl.proto (package kusinta.iot.access.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
 
5
- import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
5
+ import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
6
6
  import type { Message } from "@bufbuild/protobuf";
7
7
  import type { DeviceId, GatewayId, UserId } from "../../identity/v1/identity_pb.js";
8
- import type { PermissionAction, Role } from "./roles_pb.js";
8
+ import type { MembershipRelation, PermissionAction, Role } from "./roles_pb.js";
9
9
  import type { Timestamp } from "@bufbuild/protobuf/wkt";
10
10
 
11
11
  /**
@@ -304,6 +304,30 @@ export declare type DeviceAcl = Message<"kusinta.iot.access.v1.DeviceAcl"> & {
304
304
  * @generated from field: repeated kusinta.iot.access.v1.EventRef allowed_event_refs = 10;
305
305
  */
306
306
  allowedEventRefs: EventRef[];
307
+
308
+ /**
309
+ * How the user stands to the home this device is filed in, where that shaped this ACL.
310
+ * See MembershipRelation in roles.proto.
311
+ *
312
+ * SERVICE: the user sees this building device in someone's home as service, whatever
313
+ * relation their membership records. They hold no action on it — allowed_actions is empty
314
+ * — and are sent no reading or event of it. The Device they are sent carries its
315
+ * description only: its endpoints with their device types and implemented lists, and no
316
+ * property value — save that, while a commissioning grant on the home is active, its
317
+ * installer is also sent each cluster's attribute_behaviours and each endpoint's
318
+ * vendor_attribute_behaviours, the device's statement of how it holds an output, to bind
319
+ * outputs by (commissioning.v1, GRANTS); still no property value. What keeps it working
320
+ * comes as a webrtc.v1.ServiceStatus instead. An app should show its readings as withheld,
321
+ * not missing. RESIDENT: the user lives in the
322
+ * home the device is filed in, whether or not they also own it; a household admin is given
323
+ * RESIDENT here too, since they see the device as any resident does. UNSPECIFIED: neither
324
+ * applies — the device is not in a home, or the user reaches it only by owning it.
325
+ *
326
+ * Descriptive, like role: allowed_actions and the ref lists are what is enforced.
327
+ *
328
+ * @generated from field: kusinta.iot.access.v1.MembershipRelation relation = 11;
329
+ */
330
+ relation: MembershipRelation;
307
331
  };
308
332
 
309
333
  /**
@@ -361,3 +385,115 @@ export declare type EffectivePermissions = Message<"kusinta.iot.access.v1.Effect
361
385
  */
362
386
  export declare const EffectivePermissionsSchema: GenMessage<EffectivePermissions>;
363
387
 
388
+ /**
389
+ * What service sees of a home, as a resident is told it in webrtc.v1.PrivacyDisclosure.
390
+ * Each names part of a webrtc.v1.ServiceStatus, of a device's description, of how the
391
+ * home is set up, of who lives there, or a problem the gateway reports of it; with the
392
+ * climate summary the disclosure names separately, nothing else of the home reaches service.
393
+ *
394
+ * @generated from enum kusinta.iot.access.v1.ServiceSignal
395
+ */
396
+ export enum ServiceSignal {
397
+ /**
398
+ * @generated from enum value: SERVICE_SIGNAL_UNSPECIFIED = 0;
399
+ */
400
+ UNSPECIFIED = 0,
401
+
402
+ /**
403
+ * Whether the device is reachable, and since which quarter hour it has not been.
404
+ *
405
+ * @generated from enum value: SERVICE_SIGNAL_REACHABILITY = 1;
406
+ */
407
+ REACHABILITY = 1,
408
+
409
+ /**
410
+ * Its remaining charge in steps of ten, and low-battery and replacement warnings.
411
+ *
412
+ * @generated from enum value: SERVICE_SIGNAL_BATTERY = 2;
413
+ */
414
+ BATTERY = 2,
415
+
416
+ /**
417
+ * How good its radio link is.
418
+ *
419
+ * @generated from enum value: SERVICE_SIGNAL_RADIO_LINK = 3;
420
+ */
421
+ RADIO_LINK = 3,
422
+
423
+ /**
424
+ * Its firmware version: DeviceDescriptor.software_version_string, sent to service.
425
+ *
426
+ * @generated from enum value: SERVICE_SIGNAL_FIRMWARE = 4;
427
+ */
428
+ FIRMWARE = 4,
429
+
430
+ /**
431
+ * Faults it reports about itself: errors and tampering. Not configuration it has yet to
432
+ * take, which would show when its residents changed a setting.
433
+ *
434
+ * @generated from enum value: SERVICE_SIGNAL_FAULT = 5;
435
+ */
436
+ FAULT = 5,
437
+
438
+ /**
439
+ * What the device is — its description, every field of device.v1.DeviceDescriptor but
440
+ * claimed_at: type, name, vendor, product, serial number, versions, ownership, asset
441
+ * owner, lifecycle and connector; its endpoints and what each supports — and where it is filed. A
442
+ * bridged_by naming a device the recipient may not see, such as a bridge a resident owns,
443
+ * is unset. Always disclosed together with FIRMWARE, whose
444
+ * version it carries. Not when it was claimed: the only times service is given of a
445
+ * device are the quarter hours of its webrtc.v1.ServiceStatus, and the moments it appears
446
+ * to them, changes and is taken away from them, which they see as they happen.
447
+ *
448
+ * @generated from enum value: SERVICE_SIGNAL_FILING = 6;
449
+ */
450
+ FILING = 6,
451
+
452
+ /**
453
+ * How the home is set up: the apartment and its rooms, their names and descriptions, the
454
+ * rooms' outer limits with when each was set, and the role that set each save an installer
455
+ * under a grant — never the household's inner limits — and the building's sensors in them.
456
+ * While the home stood empty, before anyone moved in, its property owner and gateway
457
+ * administrators saw its rooms and modes in full (webrtc.v1 household.proto, EMPTY HOME).
458
+ *
459
+ * @generated from enum value: SERVICE_SIGNAL_ROOM_SETUP = 7;
460
+ */
461
+ ROOM_SETUP = 7,
462
+
463
+ /**
464
+ * Which of the building's devices are linked to which, for what, and whether device to
465
+ * device or through the gateway — not how a link is set or what it is doing. A link shows
466
+ * as it is made and as it is removed, and changes for service at no other time.
467
+ *
468
+ * @generated from enum value: SERVICE_SIGNAL_LINKS = 8;
469
+ */
470
+ LINKS = 8,
471
+
472
+ /**
473
+ * Who is filed on the home, and how, as space.v1.Space.members tells it to a caller who
474
+ * does not live there: each residency under its own residency id and since when, never
475
+ * who holds it (MembershipRelation, RESIDENCY IDS); service, and memberships recorded
476
+ * with no relation, by user id, and staff among them by name. Shown to the property owner
477
+ * and the gateway administrator only, not to every party with service reach.
478
+ *
479
+ * @generated from enum value: SERVICE_SIGNAL_RESIDENTS = 9;
480
+ */
481
+ RESIDENTS = 9,
482
+
483
+ /**
484
+ * That a floor zone on one of the home's devices has been uncontrolled for about an hour —
485
+ * without a room, or without a control room — and so heats without control: the device and
486
+ * the quarter hour it was reported, until the zone is given a control room or removed. Never
487
+ * which rooms it had or lacks, nor who left it so
488
+ * (reporting.v1.PROBLEM_KIND_FLOOR_ZONE_UNCONTROLLED).
489
+ *
490
+ * @generated from enum value: SERVICE_SIGNAL_FLOOR_ZONE_UNCONTROLLED = 10;
491
+ */
492
+ FLOOR_ZONE_UNCONTROLLED = 10,
493
+ }
494
+
495
+ /**
496
+ * Describes the enum kusinta.iot.access.v1.ServiceSignal.
497
+ */
498
+ export declare const ServiceSignalSchema: GenEnum<ServiceSignal>;
499
+
@@ -2,7 +2,7 @@
2
2
  // @generated from file kusinta/iot/access/v1/acl.proto (package kusinta.iot.access.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
 
5
- import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
5
+ import { enumDesc, fileDesc, messageDesc, tsEnum } from "@bufbuild/protobuf/codegenv2";
6
6
  import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
7
7
  import { file_kusinta_iot_access_v1_roles } from "./roles_pb.js";
8
8
  import { file_kusinta_iot_identity_v1_identity } from "../../identity/v1/identity_pb.js";
@@ -11,7 +11,7 @@ import { file_kusinta_iot_identity_v1_identity } from "../../identity/v1/identit
11
11
  * Describes the file kusinta/iot/access/v1/acl.proto.
12
12
  */
13
13
  export const file_kusinta_iot_access_v1_acl = /*@__PURE__*/
14
- fileDesc("Ch9rdXNpbnRhL2lvdC9hY2Nlc3MvdjEvYWNsLnByb3RvEhVrdXNpbnRhLmlvdC5hY2Nlc3MudjEirgEKDEF0dHJpYnV0ZVJlZhIWCg5hdHRyaWJ1dGVfbmFtZRgBIAEoCRISCgpjbHVzdGVyX2lkGAIgASgNEhQKDGF0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google_protobuf_timestamp, file_kusinta_iot_access_v1_roles, file_kusinta_iot_identity_v1_identity]);
15
15
 
16
16
  /**
17
17
  * Describes the message kusinta.iot.access.v1.AttributeRef.
@@ -55,3 +55,20 @@ export const DeviceAclSchema = /*@__PURE__*/
55
55
  export const EffectivePermissionsSchema = /*@__PURE__*/
56
56
  messageDesc(file_kusinta_iot_access_v1_acl, 5);
57
57
 
58
+ /**
59
+ * Describes the enum kusinta.iot.access.v1.ServiceSignal.
60
+ */
61
+ export const ServiceSignalSchema = /*@__PURE__*/
62
+ enumDesc(file_kusinta_iot_access_v1_acl, 0);
63
+
64
+ /**
65
+ * What service sees of a home, as a resident is told it in webrtc.v1.PrivacyDisclosure.
66
+ * Each names part of a webrtc.v1.ServiceStatus, of a device's description, of how the
67
+ * home is set up, of who lives there, or a problem the gateway reports of it; with the
68
+ * climate summary the disclosure names separately, nothing else of the home reaches service.
69
+ *
70
+ * @generated from enum kusinta.iot.access.v1.ServiceSignal
71
+ */
72
+ export const ServiceSignal = /*@__PURE__*/
73
+ tsEnum(ServiceSignalSchema);
74
+
@@ -21,10 +21,13 @@ export declare const file_kusinta_iot_access_v1_roles: GenFile;
21
21
  * The gateway resolves the two together into DeviceAcl.allowed_actions, per device. A
22
22
  * role narrows what may appear there; it does not put anything there on its own.
23
23
  *
24
- * Carried in the app's token as webrtc.v1.AppTokenClaims.roles, as an array of proto3
25
- * canonical enum NAME strings (e.g. ["ROLE_RESIDENT", "ROLE_GATEWAY_ADMIN"]) rather than
26
- * integers, so the claim stays self-describing. A user may hold several at once and the
27
- * effective ceiling is their union.
24
+ * The building-server gateway holds each user's roles itself and authorises from what it
25
+ * holds. The one role it cannot know is the administration of the organisation that owns it,
26
+ * which the api-server keeps: that one it takes from the app's token
27
+ * (webrtc.v1.AppTokenClaims.roles), and the api-server tells it who those administrators are
28
+ * (signaling.v1.VouchedAdministrators), which can end that administration but never grant it. The api-server learns the rest from the gateway
29
+ * (reporting.v1.GatewayMember). A user may hold several at once and the effective ceiling is
30
+ * their union.
28
31
  *
29
32
  * UNORDERED. These are categories, not levels: a technician is not "more than" a
30
33
  * resident, and there is no >= comparison to make between them. Anything needing a graded
@@ -36,6 +39,15 @@ export declare const file_kusinta_iot_access_v1_roles: GenFile;
36
39
  * gateway-wide role alone would not grant. That widening is the gateway's to apply and is
37
40
  * visible to the app only in the resolved DeviceAcl.
38
41
  *
42
+ * STAFF. A user who holds ROLE_TECHNICIAN, ROLE_PROPERTY_OWNER or ROLE_GATEWAY_ADMIN on a
43
+ * gateway is staff there: they serve the building rather than live in it. Wherever this
44
+ * schema says "staff" or "a staff member" it means exactly that, as the gateway holds roles,
45
+ * every vouched administrator included; holding ROLE_RESIDENT besides changes nothing. The
46
+ * term carries one rule about people: staff are named to whoever may list every member; a
47
+ * resident is named only to the people they live with; and where anyone lives is told by
48
+ * user id only to their own household, and to anyone else only under a residency id
49
+ * (MembershipRelation, RESIDENCY IDS).
50
+ *
39
51
  * @generated from enum kusinta.iot.access.v1.Role
40
52
  */
41
53
  export enum Role {
@@ -172,3 +184,147 @@ export enum PermissionAction {
172
184
  */
173
185
  export declare const PermissionActionSchema: GenEnum<PermissionAction>;
174
186
 
187
+ /**
188
+ * How a member stands to a space they are filed in. Held per membership — set by
189
+ * webrtc.v1.AssignUserToSpace — unlike Role, which is gateway-wide. The two are independent:
190
+ * a technician who lives in an apartment is filed on it as RESIDENT, and a resident who
191
+ * looks after a building's plant room is filed there as SERVICE. RESIDENT is refused on a
192
+ * room: a home's residents live in all of it.
193
+ *
194
+ * HOUSEHOLD ADMIN. HOUSEHOLD_ADMIN is RESIDENT and more: a resident who also governs the
195
+ * home (webrtc.v1 household.proto). It is held on an apartment and nowhere else, and is never
196
+ * a role: the app's token, and every role the gateway holds, are the same with it as without
197
+ * it. Wherever this schema says RESIDENT, a resident or a home's residents, it means
198
+ * HOUSEHOLD_ADMIN too, unless it names HOUSEHOLD_ADMIN apart: what a household admin sees of
199
+ * the home, and when from, is exactly what a resident sees. A change between RESIDENT and
200
+ * HOUSEHOLD_ADMIN on the same apartment continues the residency below, with its id and its
201
+ * since; it is no relation change in the sense the residency rules use.
202
+ *
203
+ * A HOME is an apartment and the rooms in it. What a user learns of a home depends on how
204
+ * they reach it; where several apply, the first wins:
205
+ *
206
+ * * As its resident — RESIDENT on the apartment. They see and operate everything filed
207
+ * in it, and its history from the start of their current residency, never before: a new
208
+ * tenant does not read the previous one's, nor learn when or by whom anything was
209
+ * changed before they moved in: every time from before that a home's rooms and devices
210
+ * carry — a reading's timestamp included — is unset for them, save a
211
+ * webrtc.v1.ServiceStatus, which always carries its times and so gives none before the first
212
+ * quarter hour of their residency, from that quarter hour on.
213
+ * * As an installer under a commissioning grant on the home, while it is active — the
214
+ * service view below, and on top of it what commissioning.v1 (GRANTS) lists: the home's
215
+ * commissioning and heating records, its devices' write behaviours to bind outputs by
216
+ * (device.v1.AttributeBehaviour), and the readings a test they run is judged by while it
217
+ * runs. Never its history, savings, comfort settings or device events, nor who lives
218
+ * there.
219
+ * * As service — SERVICE on the apartment, a room in it, or a building or floor above it,
220
+ * or as the gateway's administrator. Of the building's own devices in what they reach of
221
+ * the home — any
222
+ * device no person owns — they see what each is and a webrtc.v1.ServiceStatus,
223
+ * evaluated each quarter hour, and no reading, event or time of the device itself; they
224
+ * operate none of them. Of what they reach of the home — from the room they are filed
225
+ * on, or all of it — they see how its rooms are set up, with
226
+ * RoomClimate.state_withheld marking what is not shown, and its links with
227
+ * DeviceLink.details_withheld; modes on a home are not sent to them at all — save that the
228
+ * property owner and the gateway administrators are sent an empty home's rooms and modes
229
+ * in full, and its floor zones (webrtc.v1 household.proto, EMPTY HOME). Service
230
+ * that reaches the apartment itself also gets its climate summary over the disclosed
231
+ * period. What they newly see of the home reaches them as it happens; what they lose,
232
+ * at once.
233
+ * * Not at all — RESIDENT on a building or floor above it. Living in a building is not
234
+ * living in every apartment in it.
235
+ *
236
+ * What was recorded while a room or device was in a home stays with the home after it
237
+ * leaves: its history, and the times and people it carries from then, are never given to
238
+ * whoever reaches it later.
239
+ *
240
+ * A residency starts when a user is assigned RESIDENT on an apartment while not already its
241
+ * resident — a membership recorded with no relation included, so its holder starts afresh —
242
+ * and ends with any other change to that membership. Assigning RESIDENT to a resident
243
+ * changes nothing. A space becoming an apartment starts the residency of each RESIDENT
244
+ * member on it, and ceasing to be one ends it — though it releases no device: what is no
245
+ * longer a home holds nobody's devices for a next tenant. A device in a space becoming an
246
+ * apartment, owned by someone who is not to be its resident, is taken out of that space.
247
+ *
248
+ * A device filed in a home counts as in the home wherever else it is also filed, a device a
249
+ * resident owns included: reaching it through another space shows it to nobody. A link
250
+ * never joins a device in a home to one outside it. Outside homes the relation changes
251
+ * nothing: what is filed there is visible to whoever reaches it. A device owned as RESIDENT
252
+ * is the exception everywhere, whoever owns it: it is visible to its owner and the RESIDENT
253
+ * members filed on the space it is filed in — for a device in a home, the home's residents
254
+ * alone, wherever else it is filed; never those who merely reach a space from above — and
255
+ * to nobody else. An owner who stops living in the home it is filed in gives it up: it is
256
+ * released, with no owner, and stays filed in the home alone, as one of the building's own
257
+ * devices there. A device given up so, or released, then appears to service as any device
258
+ * newly in the home does, as it happens; that much a release shows.
259
+ *
260
+ * Who may change a home's members, move its spaces or file devices into and out of it is
261
+ * restricted by the gateway, and a refused caller gets NOT_ENTITLED; within the household it
262
+ * is its household admins' (webrtc.v1 household.proto). This keeps a home's
263
+ * life — its readings, history and modes — from anyone but its residents by default; those
264
+ * who service the building get the service view above and no more. It does not keep the
265
+ * property owner or the administrator out by force — they hold the building's filing
266
+ * authority and the gateway itself — but it makes their seeing in a deliberate act on the
267
+ * home, such as filing themselves on it, rather than something handed out by default. They
268
+ * remove a resident who moves out, so they are shown every residency, and since when
269
+ * (webrtc.v1.ListGatewayMembers), but never who holds it (see RESIDENCY IDS).
270
+ *
271
+ * RESIDENCY IDS. To a caller who does not live in the home, a RESIDENT membership is told
272
+ * only under its residency id: an id the gateway mints for that residency alone, when it
273
+ * begins, holds for as long as it lasts unbroken, and never reuses. It is opaque, begins
274
+ * with "residency:", and is never a user's id or derived from one, so nothing told under it
275
+ * ties the residency to a name, a role or another membership — and nothing changes it when
276
+ * the person who holds it becomes staff or stops being staff (Role, STAFF). A relation
277
+ * change, or the residency ending, ends its id. The people of the home see one another
278
+ * under their user ids. Where a request below names a member, it says whether a residency
279
+ * id may stand for one; a request that does not say so refuses one as INVALID_REQUEST, so
280
+ * that no user is ever made under one.
281
+ *
282
+ * A membership recorded with no relation, made before relations existed, sees no more than
283
+ * either relation would where it is held: on an apartment or a room, a home as service; on a
284
+ * building or floor, no home at all. It is listed with UNSPECIFIED so that it can be found
285
+ * and assigned again.
286
+ *
287
+ * @generated from enum kusinta.iot.access.v1.MembershipRelation
288
+ */
289
+ export enum MembershipRelation {
290
+ /**
291
+ * Names no relation. Invalid on a request, and refused rather than defaulted: which of
292
+ * the two a member is decides what they see of someone's home, and that must never be
293
+ * decided by an omission.
294
+ *
295
+ * @generated from enum value: MEMBERSHIP_RELATION_UNSPECIFIED = 0;
296
+ */
297
+ UNSPECIFIED = 0,
298
+
299
+ /**
300
+ * Lives there.
301
+ *
302
+ * @generated from enum value: MEMBERSHIP_RELATION_RESIDENT = 1;
303
+ */
304
+ RESIDENT = 1,
305
+
306
+ /**
307
+ * Is there for the building rather than to live in it: its owner's people, a technician,
308
+ * the gateway's administrator.
309
+ *
310
+ * @generated from enum value: MEMBERSHIP_RELATION_SERVICE = 2;
311
+ */
312
+ SERVICE = 2,
313
+
314
+ /**
315
+ * Lives there and governs the home: a resident who may also manage it (webrtc.v1
316
+ * household.proto). On an apartment only; refused anywhere else.
317
+ *
318
+ * Rollout order: an app whose schema predates this value cannot tell it from an unknown
319
+ * relation, so app handling ships before or with the gateway that records it.
320
+ *
321
+ * @generated from enum value: MEMBERSHIP_RELATION_HOUSEHOLD_ADMIN = 3;
322
+ */
323
+ HOUSEHOLD_ADMIN = 3,
324
+ }
325
+
326
+ /**
327
+ * Describes the enum kusinta.iot.access.v1.MembershipRelation.
328
+ */
329
+ export declare const MembershipRelationSchema: GenEnum<MembershipRelation>;
330
+
@@ -8,7 +8,7 @@ import { enumDesc, fileDesc, tsEnum } from "@bufbuild/protobuf/codegenv2";
8
8
  * Describes the file kusinta/iot/access/v1/roles.proto.
9
9
  */
10
10
  export const file_kusinta_iot_access_v1_roles = /*@__PURE__*/
11
- fileDesc("CiFrdXNpbnRhL2lvdC9hY2Nlc3MvdjEvcm9sZXMucHJvdG8SFWt1c2ludGEuaW90LmFjY2Vzcy52MSp1CgRSb2xlEhQKEFJPTEVfVU5TUEVDSUZJRUQQABIRCg1ST0xFX1JFU0lERU5UEAESFwoTUk9MRV9QUk9QRVJUWV9PV05FUhACEhMKD1JPTEVfVEVDSE5JQ0lBThADEhYKElJPTEVfR0FURVdBWV9BRE1JThAEKq0BChBQZXJtaXNzaW9uQWN0aW9uEiEKHVBFUk1JU1NJT05fQUNUSU9OX1VOU1BFQ0lGSUVEEAASGgoWUEVSTUlTU0lPTl9BQ1RJT05fUkVBRBABEhsKF1BFUk1JU1NJT05fQUNUSU9OX1dSSVRFEAISHwobUEVSTUlTU0lPTl9BQ1RJT05fU1VCU0NSSUJFEAMSHAoYUEVSTUlTU0lPTl9BQ1RJT05fSU5WT0tFEARCAkgBYgZwcm90bzM");
11
+ fileDesc("CiFrdXNpbnRhL2lvdC9hY2Nlc3MvdjEvcm9sZXMucHJvdG8SFWt1c2ludGEuaW90LmFjY2Vzcy52MSp1CgRSb2xlEhQKEFJPTEVfVU5TUEVDSUZJRUQQABIRCg1ST0xFX1JFU0lERU5UEAESFwoTUk9MRV9QUk9QRVJUWV9PV05FUhACEhMKD1JPTEVfVEVDSE5JQ0lBThADEhYKElJPTEVfR0FURVdBWV9BRE1JThAEKq0BChBQZXJtaXNzaW9uQWN0aW9uEiEKHVBFUk1JU1NJT05fQUNUSU9OX1VOU1BFQ0lGSUVEEAASGgoWUEVSTUlTU0lPTl9BQ1RJT05fUkVBRBABEhsKF1BFUk1JU1NJT05fQUNUSU9OX1dSSVRFEAISHwobUEVSTUlTU0lPTl9BQ1RJT05fU1VCU0NSSUJFEAMSHAoYUEVSTUlTU0lPTl9BQ1RJT05fSU5WT0tFEAQqpQEKEk1lbWJlcnNoaXBSZWxhdGlvbhIjCh9NRU1CRVJTSElQX1JFTEFUSU9OX1VOU1BFQ0lGSUVEEAASIAocTUVNQkVSU0hJUF9SRUxBVElPTl9SRVNJREVOVBABEh8KG01FTUJFUlNISVBfUkVMQVRJT05fU0VSVklDRRACEicKI01FTUJFUlNISVBfUkVMQVRJT05fSE9VU0VIT0xEX0FETUlOEANCAkgBYgZwcm90bzM");
12
12
 
13
13
  /**
14
14
  * Describes the enum kusinta.iot.access.v1.Role.
@@ -28,10 +28,13 @@ export const RoleSchema = /*@__PURE__*/
28
28
  * The gateway resolves the two together into DeviceAcl.allowed_actions, per device. A
29
29
  * role narrows what may appear there; it does not put anything there on its own.
30
30
  *
31
- * Carried in the app's token as webrtc.v1.AppTokenClaims.roles, as an array of proto3
32
- * canonical enum NAME strings (e.g. ["ROLE_RESIDENT", "ROLE_GATEWAY_ADMIN"]) rather than
33
- * integers, so the claim stays self-describing. A user may hold several at once and the
34
- * effective ceiling is their union.
31
+ * The building-server gateway holds each user's roles itself and authorises from what it
32
+ * holds. The one role it cannot know is the administration of the organisation that owns it,
33
+ * which the api-server keeps: that one it takes from the app's token
34
+ * (webrtc.v1.AppTokenClaims.roles), and the api-server tells it who those administrators are
35
+ * (signaling.v1.VouchedAdministrators), which can end that administration but never grant it. The api-server learns the rest from the gateway
36
+ * (reporting.v1.GatewayMember). A user may hold several at once and the effective ceiling is
37
+ * their union.
35
38
  *
36
39
  * UNORDERED. These are categories, not levels: a technician is not "more than" a
37
40
  * resident, and there is no >= comparison to make between them. Anything needing a graded
@@ -43,6 +46,15 @@ export const RoleSchema = /*@__PURE__*/
43
46
  * gateway-wide role alone would not grant. That widening is the gateway's to apply and is
44
47
  * visible to the app only in the resolved DeviceAcl.
45
48
  *
49
+ * STAFF. A user who holds ROLE_TECHNICIAN, ROLE_PROPERTY_OWNER or ROLE_GATEWAY_ADMIN on a
50
+ * gateway is staff there: they serve the building rather than live in it. Wherever this
51
+ * schema says "staff" or "a staff member" it means exactly that, as the gateway holds roles,
52
+ * every vouched administrator included; holding ROLE_RESIDENT besides changes nothing. The
53
+ * term carries one rule about people: staff are named to whoever may list every member; a
54
+ * resident is named only to the people they live with; and where anyone lives is told by
55
+ * user id only to their own household, and to anyone else only under a residency id
56
+ * (MembershipRelation, RESIDENCY IDS).
57
+ *
46
58
  * @generated from enum kusinta.iot.access.v1.Role
47
59
  */
48
60
  export const Role = /*@__PURE__*/
@@ -70,3 +82,114 @@ export const PermissionActionSchema = /*@__PURE__*/
70
82
  export const PermissionAction = /*@__PURE__*/
71
83
  tsEnum(PermissionActionSchema);
72
84
 
85
+ /**
86
+ * Describes the enum kusinta.iot.access.v1.MembershipRelation.
87
+ */
88
+ export const MembershipRelationSchema = /*@__PURE__*/
89
+ enumDesc(file_kusinta_iot_access_v1_roles, 2);
90
+
91
+ /**
92
+ * How a member stands to a space they are filed in. Held per membership — set by
93
+ * webrtc.v1.AssignUserToSpace — unlike Role, which is gateway-wide. The two are independent:
94
+ * a technician who lives in an apartment is filed on it as RESIDENT, and a resident who
95
+ * looks after a building's plant room is filed there as SERVICE. RESIDENT is refused on a
96
+ * room: a home's residents live in all of it.
97
+ *
98
+ * HOUSEHOLD ADMIN. HOUSEHOLD_ADMIN is RESIDENT and more: a resident who also governs the
99
+ * home (webrtc.v1 household.proto). It is held on an apartment and nowhere else, and is never
100
+ * a role: the app's token, and every role the gateway holds, are the same with it as without
101
+ * it. Wherever this schema says RESIDENT, a resident or a home's residents, it means
102
+ * HOUSEHOLD_ADMIN too, unless it names HOUSEHOLD_ADMIN apart: what a household admin sees of
103
+ * the home, and when from, is exactly what a resident sees. A change between RESIDENT and
104
+ * HOUSEHOLD_ADMIN on the same apartment continues the residency below, with its id and its
105
+ * since; it is no relation change in the sense the residency rules use.
106
+ *
107
+ * A HOME is an apartment and the rooms in it. What a user learns of a home depends on how
108
+ * they reach it; where several apply, the first wins:
109
+ *
110
+ * * As its resident — RESIDENT on the apartment. They see and operate everything filed
111
+ * in it, and its history from the start of their current residency, never before: a new
112
+ * tenant does not read the previous one's, nor learn when or by whom anything was
113
+ * changed before they moved in: every time from before that a home's rooms and devices
114
+ * carry — a reading's timestamp included — is unset for them, save a
115
+ * webrtc.v1.ServiceStatus, which always carries its times and so gives none before the first
116
+ * quarter hour of their residency, from that quarter hour on.
117
+ * * As an installer under a commissioning grant on the home, while it is active — the
118
+ * service view below, and on top of it what commissioning.v1 (GRANTS) lists: the home's
119
+ * commissioning and heating records, its devices' write behaviours to bind outputs by
120
+ * (device.v1.AttributeBehaviour), and the readings a test they run is judged by while it
121
+ * runs. Never its history, savings, comfort settings or device events, nor who lives
122
+ * there.
123
+ * * As service — SERVICE on the apartment, a room in it, or a building or floor above it,
124
+ * or as the gateway's administrator. Of the building's own devices in what they reach of
125
+ * the home — any
126
+ * device no person owns — they see what each is and a webrtc.v1.ServiceStatus,
127
+ * evaluated each quarter hour, and no reading, event or time of the device itself; they
128
+ * operate none of them. Of what they reach of the home — from the room they are filed
129
+ * on, or all of it — they see how its rooms are set up, with
130
+ * RoomClimate.state_withheld marking what is not shown, and its links with
131
+ * DeviceLink.details_withheld; modes on a home are not sent to them at all — save that the
132
+ * property owner and the gateway administrators are sent an empty home's rooms and modes
133
+ * in full, and its floor zones (webrtc.v1 household.proto, EMPTY HOME). Service
134
+ * that reaches the apartment itself also gets its climate summary over the disclosed
135
+ * period. What they newly see of the home reaches them as it happens; what they lose,
136
+ * at once.
137
+ * * Not at all — RESIDENT on a building or floor above it. Living in a building is not
138
+ * living in every apartment in it.
139
+ *
140
+ * What was recorded while a room or device was in a home stays with the home after it
141
+ * leaves: its history, and the times and people it carries from then, are never given to
142
+ * whoever reaches it later.
143
+ *
144
+ * A residency starts when a user is assigned RESIDENT on an apartment while not already its
145
+ * resident — a membership recorded with no relation included, so its holder starts afresh —
146
+ * and ends with any other change to that membership. Assigning RESIDENT to a resident
147
+ * changes nothing. A space becoming an apartment starts the residency of each RESIDENT
148
+ * member on it, and ceasing to be one ends it — though it releases no device: what is no
149
+ * longer a home holds nobody's devices for a next tenant. A device in a space becoming an
150
+ * apartment, owned by someone who is not to be its resident, is taken out of that space.
151
+ *
152
+ * A device filed in a home counts as in the home wherever else it is also filed, a device a
153
+ * resident owns included: reaching it through another space shows it to nobody. A link
154
+ * never joins a device in a home to one outside it. Outside homes the relation changes
155
+ * nothing: what is filed there is visible to whoever reaches it. A device owned as RESIDENT
156
+ * is the exception everywhere, whoever owns it: it is visible to its owner and the RESIDENT
157
+ * members filed on the space it is filed in — for a device in a home, the home's residents
158
+ * alone, wherever else it is filed; never those who merely reach a space from above — and
159
+ * to nobody else. An owner who stops living in the home it is filed in gives it up: it is
160
+ * released, with no owner, and stays filed in the home alone, as one of the building's own
161
+ * devices there. A device given up so, or released, then appears to service as any device
162
+ * newly in the home does, as it happens; that much a release shows.
163
+ *
164
+ * Who may change a home's members, move its spaces or file devices into and out of it is
165
+ * restricted by the gateway, and a refused caller gets NOT_ENTITLED; within the household it
166
+ * is its household admins' (webrtc.v1 household.proto). This keeps a home's
167
+ * life — its readings, history and modes — from anyone but its residents by default; those
168
+ * who service the building get the service view above and no more. It does not keep the
169
+ * property owner or the administrator out by force — they hold the building's filing
170
+ * authority and the gateway itself — but it makes their seeing in a deliberate act on the
171
+ * home, such as filing themselves on it, rather than something handed out by default. They
172
+ * remove a resident who moves out, so they are shown every residency, and since when
173
+ * (webrtc.v1.ListGatewayMembers), but never who holds it (see RESIDENCY IDS).
174
+ *
175
+ * RESIDENCY IDS. To a caller who does not live in the home, a RESIDENT membership is told
176
+ * only under its residency id: an id the gateway mints for that residency alone, when it
177
+ * begins, holds for as long as it lasts unbroken, and never reuses. It is opaque, begins
178
+ * with "residency:", and is never a user's id or derived from one, so nothing told under it
179
+ * ties the residency to a name, a role or another membership — and nothing changes it when
180
+ * the person who holds it becomes staff or stops being staff (Role, STAFF). A relation
181
+ * change, or the residency ending, ends its id. The people of the home see one another
182
+ * under their user ids. Where a request below names a member, it says whether a residency
183
+ * id may stand for one; a request that does not say so refuses one as INVALID_REQUEST, so
184
+ * that no user is ever made under one.
185
+ *
186
+ * A membership recorded with no relation, made before relations existed, sees no more than
187
+ * either relation would where it is held: on an apartment or a room, a home as service; on a
188
+ * building or floor, no home at all. It is listed with UNSPECIFIED so that it can be found
189
+ * and assigned again.
190
+ *
191
+ * @generated from enum kusinta.iot.access.v1.MembershipRelation
192
+ */
193
+ export const MembershipRelation = /*@__PURE__*/
194
+ tsEnum(MembershipRelationSchema);
195
+