@kusinta/iot-schema 0.2.0-beta.3 → 0.2.0-beta.30

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 (60) hide show
  1. package/package.json +9 -1
  2. package/src/kusinta/iot/access/v1/acl_pb.d.ts +118 -2
  3. package/src/kusinta/iot/access/v1/acl_pb.js +20 -3
  4. package/src/kusinta/iot/access/v1/roles_pb.d.ts +119 -4
  5. package/src/kusinta/iot/access/v1/roles_pb.js +98 -5
  6. package/src/kusinta/iot/climate/v1/climate_pb.d.ts +726 -0
  7. package/src/kusinta/iot/climate/v1/climate_pb.js +142 -0
  8. package/src/kusinta/iot/common/v1/pairing_pb.d.ts +217 -0
  9. package/src/kusinta/iot/common/v1/pairing_pb.js +50 -0
  10. package/src/kusinta/iot/common/v1/types_pb.d.ts +175 -0
  11. package/src/kusinta/iot/common/v1/types_pb.js +70 -1
  12. package/src/kusinta/iot/connector/v1/connector_pb.d.ts +691 -2
  13. package/src/kusinta/iot/connector/v1/connector_pb.js +104 -13
  14. package/src/kusinta/iot/device/v1/cluster_state_pb.d.ts +44 -0
  15. package/src/kusinta/iot/device/v1/cluster_state_pb.js +1 -1
  16. package/src/kusinta/iot/device/v1/descriptor_pb.d.ts +22 -2
  17. package/src/kusinta/iot/device/v1/descriptor_pb.js +2 -1
  18. package/src/kusinta/iot/device/v1/device_event_pb.d.ts +87 -5
  19. package/src/kusinta/iot/device/v1/device_event_pb.js +1 -1
  20. package/src/kusinta/iot/device/v1/device_pb.d.ts +150 -6
  21. package/src/kusinta/iot/device/v1/device_pb.js +33 -2
  22. package/src/kusinta/iot/device/v1/matter_options_pb.d.ts +26 -0
  23. package/src/kusinta/iot/device/v1/matter_options_pb.js +31 -4
  24. package/src/kusinta/iot/device/v1/properties_pb.d.ts +14 -0
  25. package/src/kusinta/iot/device/v1/properties_pb.js +1 -1
  26. package/src/kusinta/iot/device/v1/property_update_pb.d.ts +3 -2
  27. package/src/kusinta/iot/link/v1/link_pb.d.ts +438 -0
  28. package/src/kusinta/iot/link/v1/link_pb.js +121 -0
  29. package/src/kusinta/iot/reporting/v1/reporting_pb.d.ts +1219 -0
  30. package/src/kusinta/iot/reporting/v1/reporting_pb.js +238 -0
  31. package/src/kusinta/iot/reporting/v1/reporting_service_pb.d.ts +63 -0
  32. package/src/kusinta/iot/reporting/v1/reporting_service_pb.js +24 -0
  33. package/src/kusinta/iot/signaling/v1/signaling_pb.d.ts +361 -7
  34. package/src/kusinta/iot/signaling/v1/signaling_pb.js +68 -4
  35. package/src/kusinta/iot/signaling/v1/signaling_service_pb.d.ts +24 -1
  36. package/src/kusinta/iot/signaling/v1/signaling_service_pb.js +1 -1
  37. package/src/kusinta/iot/space/v1/space_pb.d.ts +103 -2
  38. package/src/kusinta/iot/space/v1/space_pb.js +10 -1
  39. package/src/kusinta/iot/vendor/homematic/v1/homematic_pb.d.ts +162 -13
  40. package/src/kusinta/iot/vendor/homematic/v1/homematic_pb.js +8 -1
  41. package/src/kusinta/iot/vendor/lorawan/v1/lorawan_pb.d.ts +69 -0
  42. package/src/kusinta/iot/vendor/lorawan/v1/lorawan_pb.js +19 -0
  43. package/src/kusinta/iot/vendor/v1/vendor_options_pb.d.ts +25 -4
  44. package/src/kusinta/iot/vendor/v1/vendor_options_pb.js +28 -6
  45. package/src/kusinta/iot/webrtc/v1/app_token_pb.d.ts +45 -5
  46. package/src/kusinta/iot/webrtc/v1/app_token_pb.js +1 -1
  47. package/src/kusinta/iot/webrtc/v1/command_pb.d.ts +14 -0
  48. package/src/kusinta/iot/webrtc/v1/command_pb.js +1 -1
  49. package/src/kusinta/iot/webrtc/v1/device_state_pb.d.ts +179 -5
  50. package/src/kusinta/iot/webrtc/v1/device_state_pb.js +35 -6
  51. package/src/kusinta/iot/webrtc/v1/envelope_pb.d.ts +520 -3
  52. package/src/kusinta/iot/webrtc/v1/envelope_pb.js +65 -3
  53. package/src/kusinta/iot/webrtc/v1/invite_pb.d.ts +496 -0
  54. package/src/kusinta/iot/webrtc/v1/invite_pb.js +108 -0
  55. package/src/kusinta/iot/webrtc/v1/management_pb.d.ts +977 -12
  56. package/src/kusinta/iot/webrtc/v1/management_pb.js +132 -5
  57. package/src/kusinta/iot/webrtc/v1/members_pb.d.ts +327 -0
  58. package/src/kusinta/iot/webrtc/v1/members_pb.js +78 -0
  59. package/src/kusinta/iot/webrtc/v1/permission_push_pb.d.ts +66 -4
  60. package/src/kusinta/iot/webrtc/v1/permission_push_pb.js +10 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kusinta/iot-schema",
3
- "version": "0.2.0-beta.3",
3
+ "version": "0.2.0-beta.30",
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,27 @@
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
+ "./link": "./src/kusinta/iot/link/v1/link_pb.js",
29
+ "./climate": "./src/kusinta/iot/climate/v1/climate_pb.js",
26
30
  "./connector": "./src/kusinta/iot/connector/v1/connector_pb.js",
27
31
  "./connector/service": "./src/kusinta/iot/connector/v1/connector_service_pb.js",
28
32
  "./webrtc": "./src/kusinta/iot/webrtc/v1/envelope_pb.js",
29
33
  "./webrtc/app-token": "./src/kusinta/iot/webrtc/v1/app_token_pb.js",
30
34
  "./webrtc/command": "./src/kusinta/iot/webrtc/v1/command_pb.js",
31
35
  "./webrtc/device-state": "./src/kusinta/iot/webrtc/v1/device_state_pb.js",
36
+ "./webrtc/invite": "./src/kusinta/iot/webrtc/v1/invite_pb.js",
37
+ "./webrtc/members": "./src/kusinta/iot/webrtc/v1/members_pb.js",
32
38
  "./webrtc/management": "./src/kusinta/iot/webrtc/v1/management_pb.js",
33
39
  "./webrtc/permission-push": "./src/kusinta/iot/webrtc/v1/permission_push_pb.js",
34
40
  "./webrtc/setpoint-mode": "./src/kusinta/iot/webrtc/v1/setpoint_mode_pb.js",
35
41
  "./registration": "./src/kusinta/iot/registration/v1/registration_pb.js",
36
42
  "./registration/service": "./src/kusinta/iot/registration/v1/registration_service_pb.js",
43
+ "./reporting": "./src/kusinta/iot/reporting/v1/reporting_pb.js",
44
+ "./reporting/service": "./src/kusinta/iot/reporting/v1/reporting_service_pb.js",
37
45
  "./signaling": "./src/kusinta/iot/signaling/v1/signaling_pb.js",
38
46
  "./signaling/service": "./src/kusinta/iot/signaling/v1/signaling_service_pb.js"
39
47
  },
@@ -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,25 @@ 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. What keeps it working comes as a webrtc.v1.ServiceStatus instead. An
317
+ * app should show its readings as withheld, not missing. RESIDENT: the user lives in the
318
+ * home the device is filed in, whether or not they also own it. UNSPECIFIED: neither
319
+ * applies — the device is not in a home, or the user reaches it only by owning it.
320
+ *
321
+ * Descriptive, like role: allowed_actions and the ref lists are what is enforced.
322
+ *
323
+ * @generated from field: kusinta.iot.access.v1.MembershipRelation relation = 11;
324
+ */
325
+ relation: MembershipRelation;
307
326
  };
308
327
 
309
328
  /**
@@ -361,3 +380,100 @@ export declare type EffectivePermissions = Message<"kusinta.iot.access.v1.Effect
361
380
  */
362
381
  export declare const EffectivePermissionsSchema: GenMessage<EffectivePermissions>;
363
382
 
383
+ /**
384
+ * What service sees of a home, as a resident is told it in webrtc.v1.PrivacyDisclosure.
385
+ * Each names part of a webrtc.v1.ServiceStatus, of a device's description, of how the
386
+ * home is set up, or of who lives there; with the climate summary the disclosure names
387
+ * separately, nothing else of the home reaches service.
388
+ *
389
+ * @generated from enum kusinta.iot.access.v1.ServiceSignal
390
+ */
391
+ export enum ServiceSignal {
392
+ /**
393
+ * @generated from enum value: SERVICE_SIGNAL_UNSPECIFIED = 0;
394
+ */
395
+ UNSPECIFIED = 0,
396
+
397
+ /**
398
+ * Whether the device is reachable, and since which quarter hour it has not been.
399
+ *
400
+ * @generated from enum value: SERVICE_SIGNAL_REACHABILITY = 1;
401
+ */
402
+ REACHABILITY = 1,
403
+
404
+ /**
405
+ * Its remaining charge in steps of ten, and low-battery and replacement warnings.
406
+ *
407
+ * @generated from enum value: SERVICE_SIGNAL_BATTERY = 2;
408
+ */
409
+ BATTERY = 2,
410
+
411
+ /**
412
+ * How good its radio link is.
413
+ *
414
+ * @generated from enum value: SERVICE_SIGNAL_RADIO_LINK = 3;
415
+ */
416
+ RADIO_LINK = 3,
417
+
418
+ /**
419
+ * Its firmware version: DeviceDescriptor.software_version_string, sent to service.
420
+ *
421
+ * @generated from enum value: SERVICE_SIGNAL_FIRMWARE = 4;
422
+ */
423
+ FIRMWARE = 4,
424
+
425
+ /**
426
+ * Faults it reports about itself: errors and tampering. Not configuration it has yet to
427
+ * take, which would show when its residents changed a setting.
428
+ *
429
+ * @generated from enum value: SERVICE_SIGNAL_FAULT = 5;
430
+ */
431
+ FAULT = 5,
432
+
433
+ /**
434
+ * What the device is — its description, every field of device.v1.DeviceDescriptor but
435
+ * claimed_at: type, name, vendor, product, serial number, versions, ownership, lifecycle
436
+ * and connector; its endpoints and what each supports — and where it is filed. A
437
+ * bridged_by naming a device the recipient may not see, such as a bridge a resident owns,
438
+ * is unset. Always disclosed together with FIRMWARE, whose
439
+ * version it carries. Not when it was claimed: the only times service is given of a
440
+ * device are the quarter hours of its webrtc.v1.ServiceStatus, and the moments it appears
441
+ * to them, changes and is taken away from them, which they see as they happen.
442
+ *
443
+ * @generated from enum value: SERVICE_SIGNAL_FILING = 6;
444
+ */
445
+ FILING = 6,
446
+
447
+ /**
448
+ * How the home is set up: the apartment and its rooms, their names and descriptions, the
449
+ * rooms' limits, and the building's sensors in them.
450
+ *
451
+ * @generated from enum value: SERVICE_SIGNAL_ROOM_SETUP = 7;
452
+ */
453
+ ROOM_SETUP = 7,
454
+
455
+ /**
456
+ * Which of the building's devices are linked to which, for what, and whether device to
457
+ * device or through the gateway — not how a link is set or what it is doing. A link shows
458
+ * as it is made and as it is removed, and changes for service at no other time.
459
+ *
460
+ * @generated from enum value: SERVICE_SIGNAL_LINKS = 8;
461
+ */
462
+ LINKS = 8,
463
+
464
+ /**
465
+ * Who is filed on the home, and how: every membership of it — residents, service, and
466
+ * those recorded with no relation — by user id. Shown to the property owner and the
467
+ * gateway administrator only, not to every party with service reach (see
468
+ * space.v1.Space.members).
469
+ *
470
+ * @generated from enum value: SERVICE_SIGNAL_RESIDENTS = 9;
471
+ */
472
+ RESIDENTS = 9,
473
+ }
474
+
475
+ /**
476
+ * Describes the enum kusinta.iot.access.v1.ServiceSignal.
477
+ */
478
+ export declare const ServiceSignalSchema: GenEnum<ServiceSignal>;
479
+
@@ -2,16 +2,16 @@
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
- import { file_kusinta_iot_identity_v1_identity } from "../../identity/v1/identity_pb.js";
8
7
  import { file_kusinta_iot_access_v1_roles } from "./roles_pb.js";
8
+ import { file_kusinta_iot_identity_v1_identity } from "../../identity/v1/identity_pb.js";
9
9
 
10
10
  /**
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("Ch9rdXNpbnRhL2lvdC9hY2Nlc3MvdjEvYWNsLnByb3RvEhVrdXNpbnRhLmlvdC5hY2Nlc3MudjEirgEKDEF0dHJpYnV0ZVJlZhIWCg5hdHRyaWJ1dGVfbmFtZRgBIAEoCRISCgpjbHVzdGVyX2lkGAIgASgNEhQKDGF0dHJpYnV0ZV9pZBgEIAEoDRIYCgtlbmRwb2ludF9pZBgDIAEoDUgAiAEBEh0KEHZlb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d2VkX2V2ZW50X3JlZnMYCiADKAsyHy5rdXNpbnRhLmlvdC5hY2Nlc3MudjEuRXZlbnRSZWYSOwoIcmVsYXRpb24YCyABKA4yKS5rdXNpbnRhLmlvdC5hY2Nlc3MudjEuTWVtYmVyc2hpcFJlbGF0aW9uSgQIBRAGUhJhbGxvd2VkX2F0dHJpYnV0ZXMi5QEKFEVmZmVjdGl2ZVBlcm1pc3Npb25zEjAKB3VzZXJfaWQYASABKAsyHy5rdXNpbnRhLmlvdC5pZGVudGl0eS52MS5Vc2VySWQSNgoKZ2F0ZXdheV9pZBgCIAEoCzIiLmt1c2ludGEuaW90LmlkZW50aXR5LnYxLkdhdGV3YXlJZBI1CgtkZXZpY2VfYWNscxgDIAMoCzIgLmt1c2ludGEuaW90LmFjY2Vzcy52MS5EZXZpY2VBY2wSLAoIdmFsaWRfYXQYBCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wKrQCCg1TZXJ2aWNlU2lnbmFsEh4KGlNFUlZJQ0VfU0lHTkFMX1VOU1BFQ0lGSUVEEAASHwobU0VSVklDRV9TSUdOQUxfUkVBQ0hBQklMSVRZEAESGgoWU0VSVklDRV9TSUdOQUxfQkFUVEVSWRACEh0KGVNFUlZJQ0VfU0lHTkFMX1JBRElPX0xJTksQAxIbChdTRVJWSUNFX1NJR05BTF9GSVJNV0FSRRAEEhgKFFNFUlZJQ0VfU0lHTkFMX0ZBVUxUEAUSGQoVU0VSVklDRV9TSUdOQUxfRklMSU5HEAYSHQoZU0VSVklDRV9TSUdOQUxfUk9PTV9TRVRVUBAHEhgKFFNFUlZJQ0VfU0lHTkFMX0xJTktTEAgSHAoYU0VSVklDRV9TSUdOQUxfUkVTSURFTlRTEAlCAkgBYgZwcm90bzM", [file_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, or of who lives there; with the climate summary the disclosure names
68
+ * 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,12 @@ 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 whoever registered it, which
26
+ * the api-server records: that one it takes from the app's token
27
+ * (webrtc.v1.AppTokenClaims.roles). The api-server learns the rest from the gateway
28
+ * (reporting.v1.GatewayMember). A user may hold several at once and the effective ceiling is
29
+ * their union.
28
30
  *
29
31
  * UNORDERED. These are categories, not levels: a technician is not "more than" a
30
32
  * resident, and there is no >= comparison to make between them. Anything needing a graded
@@ -36,6 +38,14 @@ export declare const file_kusinta_iot_access_v1_roles: GenFile;
36
38
  * gateway-wide role alone would not grant. That widening is the gateway's to apply and is
37
39
  * visible to the app only in the resolved DeviceAcl.
38
40
  *
41
+ * STAFF. A user who holds ROLE_TECHNICIAN, ROLE_PROPERTY_OWNER or ROLE_GATEWAY_ADMIN on a
42
+ * gateway is staff there: they serve the building rather than live in it. Wherever this
43
+ * schema says "staff" or "a staff member" it means exactly that, as the gateway holds roles,
44
+ * the registering administrator included; holding ROLE_RESIDENT besides changes nothing. The
45
+ * term carries one rule about people: staff are named to whoever may list every member; a
46
+ * resident is named only to the people they live with; and where anyone lives is told only
47
+ * to their own household.
48
+ *
39
49
  * @generated from enum kusinta.iot.access.v1.Role
40
50
  */
41
51
  export enum Role {
@@ -172,3 +182,108 @@ export enum PermissionAction {
172
182
  */
173
183
  export declare const PermissionActionSchema: GenEnum<PermissionAction>;
174
184
 
185
+ /**
186
+ * How a member stands to a space they are filed in. Held per membership — set by
187
+ * webrtc.v1.AssignUserToSpace — unlike Role, which is gateway-wide. The two are independent:
188
+ * a technician who lives in an apartment is filed on it as RESIDENT, and a resident who
189
+ * looks after a building's plant room is filed there as SERVICE. RESIDENT is refused on a
190
+ * room: a home's residents live in all of it.
191
+ *
192
+ * A HOME is an apartment and the rooms in it. What a user learns of a home depends on how
193
+ * they reach it; where several apply, the first wins:
194
+ *
195
+ * * As its resident — RESIDENT on the apartment. They see and operate everything filed
196
+ * in it, and its history from the start of their current residency, never before: a new
197
+ * tenant does not read the previous one's, nor learn when or by whom anything was
198
+ * changed before they moved in: every time from before that a home's rooms and devices
199
+ * carry — a reading's timestamp included — is unset for them, save a
200
+ * webrtc.v1.ServiceStatus, which always carries its times and so gives none before the first
201
+ * quarter hour of their residency, from that quarter hour on.
202
+ * * As service — SERVICE on the apartment, a room in it, or a building or floor above it,
203
+ * or as the gateway's administrator. Of the building's own devices in what they reach of
204
+ * the home — any
205
+ * device no person owns — they see what each is and a webrtc.v1.ServiceStatus,
206
+ * evaluated each quarter hour, and no reading, event or time of the device itself; they
207
+ * operate none of them. Of what they reach of the home — from the room they are filed
208
+ * on, or all of it — they see how its rooms are set up, with
209
+ * RoomClimate.state_withheld marking what is not shown, and its links with
210
+ * DeviceLink.details_withheld; modes on a home are not sent to them at all. Service
211
+ * that reaches the apartment itself also gets its climate summary over the disclosed
212
+ * period. What they newly see of the home reaches them as it happens; what they lose,
213
+ * at once.
214
+ * * Not at all — RESIDENT on a building or floor above it. Living in a building is not
215
+ * living in every apartment in it.
216
+ *
217
+ * What was recorded while a room or device was in a home stays with the home after it
218
+ * leaves: its history, and the times and people it carries from then, are never given to
219
+ * whoever reaches it later.
220
+ *
221
+ * A residency starts when a user is assigned RESIDENT on an apartment while not already its
222
+ * resident — a membership recorded with no relation included, so its holder starts afresh —
223
+ * and ends with any other change to that membership. Assigning RESIDENT to a resident
224
+ * changes nothing. A space becoming an apartment starts the residency of each RESIDENT
225
+ * member on it, and ceasing to be one ends it — though it releases no device: what is no
226
+ * longer a home holds nobody's devices for a next tenant. A device in a space becoming an
227
+ * apartment, owned by someone who is not to be its resident, is taken out of that space.
228
+ *
229
+ * A device filed in a home counts as in the home wherever else it is also filed, a device a
230
+ * resident owns included: reaching it through another space shows it to nobody. A link
231
+ * never joins a device in a home to one outside it. Outside homes the relation changes
232
+ * nothing: what is filed there is visible to whoever reaches it. A device owned as RESIDENT
233
+ * is the exception everywhere, whoever owns it: it is visible to its owner and the RESIDENT
234
+ * members filed on the space it is filed in — for a device in a home, the home's residents
235
+ * alone, wherever else it is filed; never those who merely reach a space from above — and
236
+ * to nobody else. An owner who stops living in the home it is filed in gives it up: it is
237
+ * released, with no owner, and stays filed in the home alone, as one of the building's own
238
+ * devices there. A device given up so, or released, then appears to service as any device
239
+ * newly in the home does, as it happens; that much a release shows.
240
+ *
241
+ * Who may change a home's members, move its spaces or file devices into and out of it is
242
+ * restricted by the gateway, and a refused caller gets NOT_ENTITLED. This keeps a home's
243
+ * life — its readings, history and modes — from anyone but its residents by default; those
244
+ * who service the building get the service view above and no more. It does not keep the
245
+ * property owner or the administrator out by force — they hold the building's filing
246
+ * authority and the gateway itself — but it makes their seeing in a deliberate act on the
247
+ * home, such as filing themselves on it, rather than something handed out by default. They
248
+ * remove a resident who moves out, so they are shown each resident's homes, and since when
249
+ * (webrtc.v1.ListGatewayMembers), but never a resident's name; and a staff member's own
250
+ * residency is told only to the household they live in (see Role, STAFF).
251
+ *
252
+ * A membership recorded with no relation, made before relations existed, sees no more than
253
+ * either relation would where it is held: on an apartment or a room, a home as service; on a
254
+ * building or floor, no home at all. It is listed with UNSPECIFIED so that it can be found
255
+ * and assigned again.
256
+ *
257
+ * @generated from enum kusinta.iot.access.v1.MembershipRelation
258
+ */
259
+ export enum MembershipRelation {
260
+ /**
261
+ * Names no relation. Invalid on a request, and refused rather than defaulted: which of
262
+ * the two a member is decides what they see of someone's home, and that must never be
263
+ * decided by an omission.
264
+ *
265
+ * @generated from enum value: MEMBERSHIP_RELATION_UNSPECIFIED = 0;
266
+ */
267
+ UNSPECIFIED = 0,
268
+
269
+ /**
270
+ * Lives there.
271
+ *
272
+ * @generated from enum value: MEMBERSHIP_RELATION_RESIDENT = 1;
273
+ */
274
+ RESIDENT = 1,
275
+
276
+ /**
277
+ * Is there for the building rather than to live in it: its owner's people, a technician,
278
+ * the gateway's administrator.
279
+ *
280
+ * @generated from enum value: MEMBERSHIP_RELATION_SERVICE = 2;
281
+ */
282
+ SERVICE = 2,
283
+ }
284
+
285
+ /**
286
+ * Describes the enum kusinta.iot.access.v1.MembershipRelation.
287
+ */
288
+ export declare const MembershipRelationSchema: GenEnum<MembershipRelation>;
289
+
@@ -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("CiFrdXNpbnRhL2lvdC9hY2Nlc3MvdjEvcm9sZXMucHJvdG8SFWt1c2ludGEuaW90LmFjY2Vzcy52MSp1CgRSb2xlEhQKEFJPTEVfVU5TUEVDSUZJRUQQABIRCg1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.v1.Role.
@@ -28,10 +28,12 @@ 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 whoever registered it, which
33
+ * the api-server records: that one it takes from the app's token
34
+ * (webrtc.v1.AppTokenClaims.roles). The api-server learns the rest from the gateway
35
+ * (reporting.v1.GatewayMember). A user may hold several at once and the effective ceiling is
36
+ * their union.
35
37
  *
36
38
  * UNORDERED. These are categories, not levels: a technician is not "more than" a
37
39
  * resident, and there is no >= comparison to make between them. Anything needing a graded
@@ -43,6 +45,14 @@ export const RoleSchema = /*@__PURE__*/
43
45
  * gateway-wide role alone would not grant. That widening is the gateway's to apply and is
44
46
  * visible to the app only in the resolved DeviceAcl.
45
47
  *
48
+ * STAFF. A user who holds ROLE_TECHNICIAN, ROLE_PROPERTY_OWNER or ROLE_GATEWAY_ADMIN on a
49
+ * gateway is staff there: they serve the building rather than live in it. Wherever this
50
+ * schema says "staff" or "a staff member" it means exactly that, as the gateway holds roles,
51
+ * the registering administrator included; holding ROLE_RESIDENT besides changes nothing. The
52
+ * term carries one rule about people: staff are named to whoever may list every member; a
53
+ * resident is named only to the people they live with; and where anyone lives is told only
54
+ * to their own household.
55
+ *
46
56
  * @generated from enum kusinta.iot.access.v1.Role
47
57
  */
48
58
  export const Role = /*@__PURE__*/
@@ -70,3 +80,86 @@ export const PermissionActionSchema = /*@__PURE__*/
70
80
  export const PermissionAction = /*@__PURE__*/
71
81
  tsEnum(PermissionActionSchema);
72
82
 
83
+ /**
84
+ * Describes the enum kusinta.iot.access.v1.MembershipRelation.
85
+ */
86
+ export const MembershipRelationSchema = /*@__PURE__*/
87
+ enumDesc(file_kusinta_iot_access_v1_roles, 2);
88
+
89
+ /**
90
+ * How a member stands to a space they are filed in. Held per membership — set by
91
+ * webrtc.v1.AssignUserToSpace — unlike Role, which is gateway-wide. The two are independent:
92
+ * a technician who lives in an apartment is filed on it as RESIDENT, and a resident who
93
+ * looks after a building's plant room is filed there as SERVICE. RESIDENT is refused on a
94
+ * room: a home's residents live in all of it.
95
+ *
96
+ * A HOME is an apartment and the rooms in it. What a user learns of a home depends on how
97
+ * they reach it; where several apply, the first wins:
98
+ *
99
+ * * As its resident — RESIDENT on the apartment. They see and operate everything filed
100
+ * in it, and its history from the start of their current residency, never before: a new
101
+ * tenant does not read the previous one's, nor learn when or by whom anything was
102
+ * changed before they moved in: every time from before that a home's rooms and devices
103
+ * carry — a reading's timestamp included — is unset for them, save a
104
+ * webrtc.v1.ServiceStatus, which always carries its times and so gives none before the first
105
+ * quarter hour of their residency, from that quarter hour on.
106
+ * * As service — SERVICE on the apartment, a room in it, or a building or floor above it,
107
+ * or as the gateway's administrator. Of the building's own devices in what they reach of
108
+ * the home — any
109
+ * device no person owns — they see what each is and a webrtc.v1.ServiceStatus,
110
+ * evaluated each quarter hour, and no reading, event or time of the device itself; they
111
+ * operate none of them. Of what they reach of the home — from the room they are filed
112
+ * on, or all of it — they see how its rooms are set up, with
113
+ * RoomClimate.state_withheld marking what is not shown, and its links with
114
+ * DeviceLink.details_withheld; modes on a home are not sent to them at all. Service
115
+ * that reaches the apartment itself also gets its climate summary over the disclosed
116
+ * period. What they newly see of the home reaches them as it happens; what they lose,
117
+ * at once.
118
+ * * Not at all — RESIDENT on a building or floor above it. Living in a building is not
119
+ * living in every apartment in it.
120
+ *
121
+ * What was recorded while a room or device was in a home stays with the home after it
122
+ * leaves: its history, and the times and people it carries from then, are never given to
123
+ * whoever reaches it later.
124
+ *
125
+ * A residency starts when a user is assigned RESIDENT on an apartment while not already its
126
+ * resident — a membership recorded with no relation included, so its holder starts afresh —
127
+ * and ends with any other change to that membership. Assigning RESIDENT to a resident
128
+ * changes nothing. A space becoming an apartment starts the residency of each RESIDENT
129
+ * member on it, and ceasing to be one ends it — though it releases no device: what is no
130
+ * longer a home holds nobody's devices for a next tenant. A device in a space becoming an
131
+ * apartment, owned by someone who is not to be its resident, is taken out of that space.
132
+ *
133
+ * A device filed in a home counts as in the home wherever else it is also filed, a device a
134
+ * resident owns included: reaching it through another space shows it to nobody. A link
135
+ * never joins a device in a home to one outside it. Outside homes the relation changes
136
+ * nothing: what is filed there is visible to whoever reaches it. A device owned as RESIDENT
137
+ * is the exception everywhere, whoever owns it: it is visible to its owner and the RESIDENT
138
+ * members filed on the space it is filed in — for a device in a home, the home's residents
139
+ * alone, wherever else it is filed; never those who merely reach a space from above — and
140
+ * to nobody else. An owner who stops living in the home it is filed in gives it up: it is
141
+ * released, with no owner, and stays filed in the home alone, as one of the building's own
142
+ * devices there. A device given up so, or released, then appears to service as any device
143
+ * newly in the home does, as it happens; that much a release shows.
144
+ *
145
+ * Who may change a home's members, move its spaces or file devices into and out of it is
146
+ * restricted by the gateway, and a refused caller gets NOT_ENTITLED. This keeps a home's
147
+ * life — its readings, history and modes — from anyone but its residents by default; those
148
+ * who service the building get the service view above and no more. It does not keep the
149
+ * property owner or the administrator out by force — they hold the building's filing
150
+ * authority and the gateway itself — but it makes their seeing in a deliberate act on the
151
+ * home, such as filing themselves on it, rather than something handed out by default. They
152
+ * remove a resident who moves out, so they are shown each resident's homes, and since when
153
+ * (webrtc.v1.ListGatewayMembers), but never a resident's name; and a staff member's own
154
+ * residency is told only to the household they live in (see Role, STAFF).
155
+ *
156
+ * A membership recorded with no relation, made before relations existed, sees no more than
157
+ * either relation would where it is held: on an apartment or a room, a home as service; on a
158
+ * building or floor, no home at all. It is listed with UNSPECIFIED so that it can be found
159
+ * and assigned again.
160
+ *
161
+ * @generated from enum kusinta.iot.access.v1.MembershipRelation
162
+ */
163
+ export const MembershipRelation = /*@__PURE__*/
164
+ tsEnum(MembershipRelationSchema);
165
+