@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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kusinta/iot-schema",
3
- "version": "0.2.0-beta.4",
3
+ "version": "0.2.0-beta.41",
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,26 @@ 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; a household admin is given
319
+ * RESIDENT here too, since they see the device as any resident does. UNSPECIFIED: neither
320
+ * applies — the device is not in a home, or the user reaches it only by owning it.
321
+ *
322
+ * Descriptive, like role: allowed_actions and the ref lists are what is enforced.
323
+ *
324
+ * @generated from field: kusinta.iot.access.v1.MembershipRelation relation = 11;
325
+ */
326
+ relation: MembershipRelation;
307
327
  };
308
328
 
309
329
  /**
@@ -361,3 +381,101 @@ export declare type EffectivePermissions = Message<"kusinta.iot.access.v1.Effect
361
381
  */
362
382
  export declare const EffectivePermissionsSchema: GenMessage<EffectivePermissions>;
363
383
 
384
+ /**
385
+ * What service sees of a home, as a resident is told it in webrtc.v1.PrivacyDisclosure.
386
+ * Each names part of a webrtc.v1.ServiceStatus, of a device's description, of how the
387
+ * home is set up, or of who lives there; with the climate summary the disclosure names
388
+ * separately, nothing else of the home reaches service.
389
+ *
390
+ * @generated from enum kusinta.iot.access.v1.ServiceSignal
391
+ */
392
+ export enum ServiceSignal {
393
+ /**
394
+ * @generated from enum value: SERVICE_SIGNAL_UNSPECIFIED = 0;
395
+ */
396
+ UNSPECIFIED = 0,
397
+
398
+ /**
399
+ * Whether the device is reachable, and since which quarter hour it has not been.
400
+ *
401
+ * @generated from enum value: SERVICE_SIGNAL_REACHABILITY = 1;
402
+ */
403
+ REACHABILITY = 1,
404
+
405
+ /**
406
+ * Its remaining charge in steps of ten, and low-battery and replacement warnings.
407
+ *
408
+ * @generated from enum value: SERVICE_SIGNAL_BATTERY = 2;
409
+ */
410
+ BATTERY = 2,
411
+
412
+ /**
413
+ * How good its radio link is.
414
+ *
415
+ * @generated from enum value: SERVICE_SIGNAL_RADIO_LINK = 3;
416
+ */
417
+ RADIO_LINK = 3,
418
+
419
+ /**
420
+ * Its firmware version: DeviceDescriptor.software_version_string, sent to service.
421
+ *
422
+ * @generated from enum value: SERVICE_SIGNAL_FIRMWARE = 4;
423
+ */
424
+ FIRMWARE = 4,
425
+
426
+ /**
427
+ * Faults it reports about itself: errors and tampering. Not configuration it has yet to
428
+ * take, which would show when its residents changed a setting.
429
+ *
430
+ * @generated from enum value: SERVICE_SIGNAL_FAULT = 5;
431
+ */
432
+ FAULT = 5,
433
+
434
+ /**
435
+ * What the device is — its description, every field of device.v1.DeviceDescriptor but
436
+ * claimed_at: type, name, vendor, product, serial number, versions, ownership, asset
437
+ * owner, lifecycle and connector; its endpoints and what each supports — and where it is filed. A
438
+ * bridged_by naming a device the recipient may not see, such as a bridge a resident owns,
439
+ * is unset. Always disclosed together with FIRMWARE, whose
440
+ * version it carries. Not when it was claimed: the only times service is given of a
441
+ * device are the quarter hours of its webrtc.v1.ServiceStatus, and the moments it appears
442
+ * to them, changes and is taken away from them, which they see as they happen.
443
+ *
444
+ * @generated from enum value: SERVICE_SIGNAL_FILING = 6;
445
+ */
446
+ FILING = 6,
447
+
448
+ /**
449
+ * How the home is set up: the apartment and its rooms, their names and descriptions, the
450
+ * rooms' limits, and the building's sensors in them.
451
+ *
452
+ * @generated from enum value: SERVICE_SIGNAL_ROOM_SETUP = 7;
453
+ */
454
+ ROOM_SETUP = 7,
455
+
456
+ /**
457
+ * Which of the building's devices are linked to which, for what, and whether device to
458
+ * device or through the gateway — not how a link is set or what it is doing. A link shows
459
+ * as it is made and as it is removed, and changes for service at no other time.
460
+ *
461
+ * @generated from enum value: SERVICE_SIGNAL_LINKS = 8;
462
+ */
463
+ LINKS = 8,
464
+
465
+ /**
466
+ * Who is filed on the home, and how, as space.v1.Space.members tells it to a caller who
467
+ * does not live there: each residency under its own residency id and since when, never
468
+ * who holds it (MembershipRelation, RESIDENCY IDS); service, and memberships recorded
469
+ * with no relation, by user id, and staff among them by name. Shown to the property owner
470
+ * and the gateway administrator only, not to every party with service reach.
471
+ *
472
+ * @generated from enum value: SERVICE_SIGNAL_RESIDENTS = 9;
473
+ */
474
+ RESIDENTS = 9,
475
+ }
476
+
477
+ /**
478
+ * Describes the enum kusinta.iot.access.v1.ServiceSignal.
479
+ */
480
+ export declare const ServiceSignalSchema: GenEnum<ServiceSignal>;
481
+
@@ -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("Ch9rdXNpbnRhL2lvdC9hY2Nlc3MvdjEvYWNsLnByb3RvEhVrdXNpbnRhLmlvdC5hY2Nlc3MudjEirgEKDEF0dHJpYnV0ZVJlZhIWCg5hdHRyaWJ1dGVfbmFtZRgBIAEoCRISCgpjbHVzdGVyX2lkGAIgASgNEhQKDGF0dHJpYnV0ZV9pZBgEIAEoDRIYCgtlbmRwb2ludF9pZBgDIAEoDUgAiAEBEh0KEHZlbmRvcl9leHRlbnNpb24YBSABKAlIAYgBAUIOCgxfZW5kcG9pbnRfaWRCEwoRX3ZlbmRvcl9leHRlbnNpb24iZQoKQ29tbWFuZFJlZhISCgpjbHVzdGVyX2lkGAEgASgNEhkKEW1hdHRlcl9jb21tYW5kX2lkGAIgASgNEhgKC2VuZHBvaW50X2lkGAMgASgNSACIAQFCDgoMX2VuZHBvaW50X2lkIloKCEV2ZW50UmVmEhIKCmNsdXN0ZXJfaWQYASABKA0SEAoIZXZlbnRfaWQYAiABKA0SGAoLZW5kcG9pbnRfaWQYAyABKA1IAIgBAUIOCgxfZW5kcG9pbnRfaWQi5wEKElByb3BlcnR5Q29uc3RyYWludBI2CglhdHRyaWJ1dGUYCCABKAsyIy5rdXNpbnRhLmlvdC5hY2Nlc3MudjEuQXR0cmlidXRlUmVmEhEKB2ludF9t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fYXQYBCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wKrQCCg1TZXJ2aWNlU2lnbmFsEh4KGlNFUlZJQ0VfU0lHTkFMX1VOU1BFQ0lGSUVEEAASHwobU0VSVklDRV9TSUdOQUxfUkVBQ0hBQklMSVRZEAESGgoWU0VSVklDRV9TSUdOQUxfQkFUVEVSWRACEh0KGVNFUlZJQ0VfU0lHTkFMX1JBRElPX0xJTksQAxIbChdTRVJWSUNFX1NJR05BTF9GSVJNV0FSRRAEEhgKFFNFUlZJQ0VfU0lHTkFMX0ZBVUxUEAUSGQoVU0VSVklDRV9TSUdOQUxfRklMSU5HEAYSHQoZU0VSVklDRV9TSUdOQUxfUk9PTV9TRVRVUBAHEhgKFFNFUlZJQ0VfU0lHTkFMX0xJTktTEAgSHAoYU0VSVklDRV9TSUdOQUxfUkVTSURFTlRTEAlCAkgBYgZwcm90bzM", [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,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,144 @@ 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, and the readings a test they run is judged by while
216
+ * it runs. Never its history, savings, comfort settings or device events, nor who lives
217
+ * there.
218
+ * * As service — SERVICE on the apartment, a room in it, or a building or floor above it,
219
+ * or as the gateway's administrator. Of the building's own devices in what they reach of
220
+ * the home — any
221
+ * device no person owns — they see what each is and a webrtc.v1.ServiceStatus,
222
+ * evaluated each quarter hour, and no reading, event or time of the device itself; they
223
+ * operate none of them. Of what they reach of the home — from the room they are filed
224
+ * on, or all of it — they see how its rooms are set up, with
225
+ * RoomClimate.state_withheld marking what is not shown, and its links with
226
+ * DeviceLink.details_withheld; modes on a home are not sent to them at all. Service
227
+ * that reaches the apartment itself also gets its climate summary over the disclosed
228
+ * period. What they newly see of the home reaches them as it happens; what they lose,
229
+ * at once.
230
+ * * Not at all — RESIDENT on a building or floor above it. Living in a building is not
231
+ * living in every apartment in it.
232
+ *
233
+ * What was recorded while a room or device was in a home stays with the home after it
234
+ * leaves: its history, and the times and people it carries from then, are never given to
235
+ * whoever reaches it later.
236
+ *
237
+ * A residency starts when a user is assigned RESIDENT on an apartment while not already its
238
+ * resident — a membership recorded with no relation included, so its holder starts afresh —
239
+ * and ends with any other change to that membership. Assigning RESIDENT to a resident
240
+ * changes nothing. A space becoming an apartment starts the residency of each RESIDENT
241
+ * member on it, and ceasing to be one ends it — though it releases no device: what is no
242
+ * longer a home holds nobody's devices for a next tenant. A device in a space becoming an
243
+ * apartment, owned by someone who is not to be its resident, is taken out of that space.
244
+ *
245
+ * A device filed in a home counts as in the home wherever else it is also filed, a device a
246
+ * resident owns included: reaching it through another space shows it to nobody. A link
247
+ * never joins a device in a home to one outside it. Outside homes the relation changes
248
+ * nothing: what is filed there is visible to whoever reaches it. A device owned as RESIDENT
249
+ * is the exception everywhere, whoever owns it: it is visible to its owner and the RESIDENT
250
+ * members filed on the space it is filed in — for a device in a home, the home's residents
251
+ * alone, wherever else it is filed; never those who merely reach a space from above — and
252
+ * to nobody else. An owner who stops living in the home it is filed in gives it up: it is
253
+ * released, with no owner, and stays filed in the home alone, as one of the building's own
254
+ * devices there. A device given up so, or released, then appears to service as any device
255
+ * newly in the home does, as it happens; that much a release shows.
256
+ *
257
+ * Who may change a home's members, move its spaces or file devices into and out of it is
258
+ * restricted by the gateway, and a refused caller gets NOT_ENTITLED; within the household it
259
+ * is its household admins' (webrtc.v1 household.proto). This keeps a home's
260
+ * life — its readings, history and modes — from anyone but its residents by default; those
261
+ * who service the building get the service view above and no more. It does not keep the
262
+ * property owner or the administrator out by force — they hold the building's filing
263
+ * authority and the gateway itself — but it makes their seeing in a deliberate act on the
264
+ * home, such as filing themselves on it, rather than something handed out by default. They
265
+ * remove a resident who moves out, so they are shown every residency, and since when
266
+ * (webrtc.v1.ListGatewayMembers), but never who holds it (see RESIDENCY IDS).
267
+ *
268
+ * RESIDENCY IDS. To a caller who does not live in the home, a RESIDENT membership is told
269
+ * only under its residency id: an id the gateway mints for that residency alone, when it
270
+ * begins, holds for as long as it lasts unbroken, and never reuses. It is opaque, begins
271
+ * with "residency:", and is never a user's id or derived from one, so nothing told under it
272
+ * ties the residency to a name, a role or another membership — and nothing changes it when
273
+ * the person who holds it becomes staff or stops being staff (Role, STAFF). A relation
274
+ * change, or the residency ending, ends its id. The people of the home see one another
275
+ * under their user ids. Where a request below names a member, it says whether a residency
276
+ * id may stand for one; a request that does not say so refuses one as INVALID_REQUEST, so
277
+ * that no user is ever made under one.
278
+ *
279
+ * A membership recorded with no relation, made before relations existed, sees no more than
280
+ * either relation would where it is held: on an apartment or a room, a home as service; on a
281
+ * building or floor, no home at all. It is listed with UNSPECIFIED so that it can be found
282
+ * and assigned again.
283
+ *
284
+ * @generated from enum kusinta.iot.access.v1.MembershipRelation
285
+ */
286
+ export enum MembershipRelation {
287
+ /**
288
+ * Names no relation. Invalid on a request, and refused rather than defaulted: which of
289
+ * the two a member is decides what they see of someone's home, and that must never be
290
+ * decided by an omission.
291
+ *
292
+ * @generated from enum value: MEMBERSHIP_RELATION_UNSPECIFIED = 0;
293
+ */
294
+ UNSPECIFIED = 0,
295
+
296
+ /**
297
+ * Lives there.
298
+ *
299
+ * @generated from enum value: MEMBERSHIP_RELATION_RESIDENT = 1;
300
+ */
301
+ RESIDENT = 1,
302
+
303
+ /**
304
+ * Is there for the building rather than to live in it: its owner's people, a technician,
305
+ * the gateway's administrator.
306
+ *
307
+ * @generated from enum value: MEMBERSHIP_RELATION_SERVICE = 2;
308
+ */
309
+ SERVICE = 2,
310
+
311
+ /**
312
+ * Lives there and governs the home: a resident who may also manage it (webrtc.v1
313
+ * household.proto). On an apartment only; refused anywhere else.
314
+ *
315
+ * Rollout order: an app whose schema predates this value cannot tell it from an unknown
316
+ * relation, so app handling ships before or with the gateway that records it.
317
+ *
318
+ * @generated from enum value: MEMBERSHIP_RELATION_HOUSEHOLD_ADMIN = 3;
319
+ */
320
+ HOUSEHOLD_ADMIN = 3,
321
+ }
322
+
323
+ /**
324
+ * Describes the enum kusinta.iot.access.v1.MembershipRelation.
325
+ */
326
+ export declare const MembershipRelationSchema: GenEnum<MembershipRelation>;
327
+
@@ -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,111 @@ 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, and the readings a test they run is judged by while
120
+ * it runs. Never its history, savings, comfort settings or device events, nor who lives
121
+ * there.
122
+ * * As service — SERVICE on the apartment, a room in it, or a building or floor above it,
123
+ * or as the gateway's administrator. Of the building's own devices in what they reach of
124
+ * the home — any
125
+ * device no person owns — they see what each is and a webrtc.v1.ServiceStatus,
126
+ * evaluated each quarter hour, and no reading, event or time of the device itself; they
127
+ * operate none of them. Of what they reach of the home — from the room they are filed
128
+ * on, or all of it — they see how its rooms are set up, with
129
+ * RoomClimate.state_withheld marking what is not shown, and its links with
130
+ * DeviceLink.details_withheld; modes on a home are not sent to them at all. Service
131
+ * that reaches the apartment itself also gets its climate summary over the disclosed
132
+ * period. What they newly see of the home reaches them as it happens; what they lose,
133
+ * at once.
134
+ * * Not at all — RESIDENT on a building or floor above it. Living in a building is not
135
+ * living in every apartment in it.
136
+ *
137
+ * What was recorded while a room or device was in a home stays with the home after it
138
+ * leaves: its history, and the times and people it carries from then, are never given to
139
+ * whoever reaches it later.
140
+ *
141
+ * A residency starts when a user is assigned RESIDENT on an apartment while not already its
142
+ * resident — a membership recorded with no relation included, so its holder starts afresh —
143
+ * and ends with any other change to that membership. Assigning RESIDENT to a resident
144
+ * changes nothing. A space becoming an apartment starts the residency of each RESIDENT
145
+ * member on it, and ceasing to be one ends it — though it releases no device: what is no
146
+ * longer a home holds nobody's devices for a next tenant. A device in a space becoming an
147
+ * apartment, owned by someone who is not to be its resident, is taken out of that space.
148
+ *
149
+ * A device filed in a home counts as in the home wherever else it is also filed, a device a
150
+ * resident owns included: reaching it through another space shows it to nobody. A link
151
+ * never joins a device in a home to one outside it. Outside homes the relation changes
152
+ * nothing: what is filed there is visible to whoever reaches it. A device owned as RESIDENT
153
+ * is the exception everywhere, whoever owns it: it is visible to its owner and the RESIDENT
154
+ * members filed on the space it is filed in — for a device in a home, the home's residents
155
+ * alone, wherever else it is filed; never those who merely reach a space from above — and
156
+ * to nobody else. An owner who stops living in the home it is filed in gives it up: it is
157
+ * released, with no owner, and stays filed in the home alone, as one of the building's own
158
+ * devices there. A device given up so, or released, then appears to service as any device
159
+ * newly in the home does, as it happens; that much a release shows.
160
+ *
161
+ * Who may change a home's members, move its spaces or file devices into and out of it is
162
+ * restricted by the gateway, and a refused caller gets NOT_ENTITLED; within the household it
163
+ * is its household admins' (webrtc.v1 household.proto). This keeps a home's
164
+ * life — its readings, history and modes — from anyone but its residents by default; those
165
+ * who service the building get the service view above and no more. It does not keep the
166
+ * property owner or the administrator out by force — they hold the building's filing
167
+ * authority and the gateway itself — but it makes their seeing in a deliberate act on the
168
+ * home, such as filing themselves on it, rather than something handed out by default. They
169
+ * remove a resident who moves out, so they are shown every residency, and since when
170
+ * (webrtc.v1.ListGatewayMembers), but never who holds it (see RESIDENCY IDS).
171
+ *
172
+ * RESIDENCY IDS. To a caller who does not live in the home, a RESIDENT membership is told
173
+ * only under its residency id: an id the gateway mints for that residency alone, when it
174
+ * begins, holds for as long as it lasts unbroken, and never reuses. It is opaque, begins
175
+ * with "residency:", and is never a user's id or derived from one, so nothing told under it
176
+ * ties the residency to a name, a role or another membership — and nothing changes it when
177
+ * the person who holds it becomes staff or stops being staff (Role, STAFF). A relation
178
+ * change, or the residency ending, ends its id. The people of the home see one another
179
+ * under their user ids. Where a request below names a member, it says whether a residency
180
+ * id may stand for one; a request that does not say so refuses one as INVALID_REQUEST, so
181
+ * that no user is ever made under one.
182
+ *
183
+ * A membership recorded with no relation, made before relations existed, sees no more than
184
+ * either relation would where it is held: on an apartment or a room, a home as service; on a
185
+ * building or floor, no home at all. It is listed with UNSPECIFIED so that it can be found
186
+ * and assigned again.
187
+ *
188
+ * @generated from enum kusinta.iot.access.v1.MembershipRelation
189
+ */
190
+ export const MembershipRelation = /*@__PURE__*/
191
+ tsEnum(MembershipRelationSchema);
192
+