@kusinta/iot-schema 0.1.0-beta.9 → 0.2.0-beta.10

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 (53) hide show
  1. package/package.json +19 -2
  2. package/src/kusinta/iot/access/v1/acl_pb.d.ts +230 -11
  3. package/src/kusinta/iot/access/v1/acl_pb.js +26 -5
  4. package/src/kusinta/iot/access/v1/roles_pb.d.ts +95 -2
  5. package/src/kusinta/iot/access/v1/roles_pb.js +37 -1
  6. package/src/kusinta/iot/common/v1/pairing_pb.d.ts +201 -0
  7. package/src/kusinta/iot/common/v1/pairing_pb.js +50 -0
  8. package/src/kusinta/iot/connector/v1/connector_pb.d.ts +481 -34
  9. package/src/kusinta/iot/connector/v1/connector_pb.js +81 -22
  10. package/src/kusinta/iot/connector/v1/connector_service_pb.d.ts +5 -5
  11. package/src/kusinta/iot/connector/v1/connector_service_pb.js +1 -1
  12. package/src/kusinta/iot/device/v1/cluster_state_pb.d.ts +263 -0
  13. package/src/kusinta/iot/device/v1/cluster_state_pb.js +54 -0
  14. package/src/kusinta/iot/device/v1/descriptor_pb.d.ts +53 -9
  15. package/src/kusinta/iot/device/v1/descriptor_pb.js +3 -1
  16. package/src/kusinta/iot/device/v1/device_event_pb.d.ts +162 -0
  17. package/src/kusinta/iot/device/v1/device_event_pb.js +45 -0
  18. package/src/kusinta/iot/device/v1/device_pb.d.ts +185 -28
  19. package/src/kusinta/iot/device/v1/device_pb.js +10 -2
  20. package/src/kusinta/iot/device/v1/matter_options_pb.d.ts +110 -0
  21. package/src/kusinta/iot/device/v1/matter_options_pb.js +118 -0
  22. package/src/kusinta/iot/device/v1/properties_pb.d.ts +240 -205
  23. package/src/kusinta/iot/device/v1/properties_pb.js +9 -1
  24. package/src/kusinta/iot/device/v1/property_update_pb.d.ts +197 -8
  25. package/src/kusinta/iot/device/v1/property_update_pb.js +20 -2
  26. package/src/kusinta/iot/link/v1/link_pb.d.ts +419 -0
  27. package/src/kusinta/iot/link/v1/link_pb.js +121 -0
  28. package/src/kusinta/iot/registration/v1/registration_pb.d.ts +170 -0
  29. package/src/kusinta/iot/registration/v1/registration_pb.js +61 -0
  30. package/src/kusinta/iot/registration/v1/registration_service_pb.d.ts +34 -0
  31. package/src/kusinta/iot/registration/v1/registration_service_pb.js +19 -0
  32. package/src/kusinta/iot/signaling/v1/signaling_pb.d.ts +320 -0
  33. package/src/kusinta/iot/signaling/v1/signaling_pb.js +83 -0
  34. package/src/kusinta/iot/signaling/v1/signaling_service_pb.d.ts +34 -0
  35. package/src/kusinta/iot/signaling/v1/signaling_service_pb.js +19 -0
  36. package/src/kusinta/iot/vendor/homematic/v1/homematic_pb.d.ts +202 -35
  37. package/src/kusinta/iot/vendor/homematic/v1/homematic_pb.js +14 -6
  38. package/src/kusinta/iot/vendor/v1/vendor_options_pb.d.ts +71 -0
  39. package/src/kusinta/iot/vendor/v1/vendor_options_pb.js +75 -0
  40. package/src/kusinta/iot/webrtc/v1/app_token_pb.d.ts +152 -0
  41. package/src/kusinta/iot/webrtc/v1/app_token_pb.js +28 -0
  42. package/src/kusinta/iot/webrtc/v1/command_pb.d.ts +277 -39
  43. package/src/kusinta/iot/webrtc/v1/command_pb.js +29 -2
  44. package/src/kusinta/iot/webrtc/v1/device_state_pb.d.ts +76 -7
  45. package/src/kusinta/iot/webrtc/v1/device_state_pb.js +20 -5
  46. package/src/kusinta/iot/webrtc/v1/envelope_pb.d.ts +603 -25
  47. package/src/kusinta/iot/webrtc/v1/envelope_pb.js +99 -5
  48. package/src/kusinta/iot/webrtc/v1/management_pb.d.ts +627 -0
  49. package/src/kusinta/iot/webrtc/v1/management_pb.js +135 -0
  50. package/src/kusinta/iot/webrtc/v1/permission_push_pb.d.ts +7 -1
  51. package/src/kusinta/iot/webrtc/v1/permission_push_pb.js +2 -2
  52. package/src/kusinta/iot/webrtc/v1/setpoint_mode_pb.d.ts +63 -0
  53. package/src/kusinta/iot/webrtc/v1/setpoint_mode_pb.js +45 -0
@@ -8,6 +8,7 @@ import type { Device } from "../../device/v1/device_pb.js";
8
8
  import type { EffectivePermissions } from "../../access/v1/acl_pb.js";
9
9
  import type { Timestamp } from "@bufbuild/protobuf/wkt";
10
10
  import type { PropertyUpdate } from "../../device/v1/property_update_pb.js";
11
+ import type { DeviceId } from "../../identity/v1/identity_pb.js";
11
12
 
12
13
  /**
13
14
  * Describes the file kusinta/iot/webrtc/v1/device_state.proto.
@@ -15,7 +16,7 @@ import type { PropertyUpdate } from "../../device/v1/property_update_pb.js";
15
16
  export declare const file_kusinta_iot_webrtc_v1_device_state: GenFile;
16
17
 
17
18
  /**
18
- * Full device state sent to the Flutter app on initial WebRTC connection.
19
+ * Full device state sent to the app on initial WebRTC connection.
19
20
  *
20
21
  * @generated from message kusinta.iot.webrtc.v1.DeviceStateSnapshot
21
22
  */
@@ -43,11 +44,17 @@ export declare type DeviceStateSnapshot = Message<"kusinta.iot.webrtc.v1.DeviceS
43
44
  export declare const DeviceStateSnapshotSchema: GenMessage<DeviceStateSnapshot>;
44
45
 
45
46
  /**
46
- * Single property change event streamed to the Flutter app in real time.
47
+ * One attribute reading streamed to the app as it happens — Matter's Report Data Action,
48
+ * for a single attribute.
47
49
  *
48
- * @generated from message kusinta.iot.webrtc.v1.DevicePropertyEvent
50
+ * Was DevicePropertyEvent. Renamed because it carries a device.v1.PropertyUpdate, which is
51
+ * STATE, while device.v1.DeviceEvent carries a journal entry. Two messages with "Event" in
52
+ * the name meaning opposite things is a trap, and this one was never the event: latest
53
+ * wins, order does not matter, and a missed one is corrected by the next.
54
+ *
55
+ * @generated from message kusinta.iot.webrtc.v1.PropertyReport
49
56
  */
50
- export declare type DevicePropertyEvent = Message<"kusinta.iot.webrtc.v1.DevicePropertyEvent"> & {
57
+ export declare type PropertyReport = Message<"kusinta.iot.webrtc.v1.PropertyReport"> & {
51
58
  /**
52
59
  * @generated from field: kusinta.iot.device.v1.PropertyUpdate update = 1;
53
60
  */
@@ -60,8 +67,70 @@ export declare type DevicePropertyEvent = Message<"kusinta.iot.webrtc.v1.DeviceP
60
67
  };
61
68
 
62
69
  /**
63
- * Describes the message kusinta.iot.webrtc.v1.DevicePropertyEvent.
64
- * Use `create(DevicePropertyEventSchema)` to create a new message.
70
+ * Describes the message kusinta.iot.webrtc.v1.PropertyReport.
71
+ * Use `create(PropertyReportSchema)` to create a new message.
72
+ */
73
+ export declare const PropertyReportSchema: GenMessage<PropertyReport>;
74
+
75
+ /**
76
+ * A device appeared while the app was connected — the app leg's counterpart to
77
+ * connector.v1.DeviceAnnouncement, which the gateway can currently only drop.
78
+ *
79
+ * Carries the full Device, descriptor plus current typed properties, so the app can
80
+ * render it without a follow-up read — the same payload DeviceStateSnapshot gives
81
+ * per device.
82
+ *
83
+ * Apply as an upsert keyed on descriptor.device_id, never as an insert: a device can
84
+ * be in the snapshot and then announced, or announced twice across a connector
85
+ * reconnect.
86
+ *
87
+ * Discovery, not interest. Being told a device exists does not subscribe the app to
88
+ * it — that still takes AppMessage.subscribe. The gateway sends this only for devices
89
+ * the user is entitled to see; an unfiltered announcement would be a device
90
+ * enumeration channel.
91
+ *
92
+ * @generated from message kusinta.iot.webrtc.v1.DeviceAdded
93
+ */
94
+ export declare type DeviceAdded = Message<"kusinta.iot.webrtc.v1.DeviceAdded"> & {
95
+ /**
96
+ * @generated from field: kusinta.iot.device.v1.Device device = 1;
97
+ */
98
+ device?: Device | undefined;
99
+ };
100
+
101
+ /**
102
+ * Describes the message kusinta.iot.webrtc.v1.DeviceAdded.
103
+ * Use `create(DeviceAddedSchema)` to create a new message.
104
+ */
105
+ export declare const DeviceAddedSchema: GenMessage<DeviceAdded>;
106
+
107
+ /**
108
+ * A device is gone, because its connector said so via connector.v1.DeviceRemoval.
109
+ *
110
+ * A connector disconnecting is NOT a removal: an ordinary reconnect wipes the
111
+ * device→connector route while every device still exists, and treating that as a
112
+ * removal makes the whole UI flap. Unreachability is a separate signal — read
113
+ * device.v1.Device.last_seen for that.
114
+ *
115
+ * @generated from message kusinta.iot.webrtc.v1.DeviceRemoved
116
+ */
117
+ export declare type DeviceRemoved = Message<"kusinta.iot.webrtc.v1.DeviceRemoved"> & {
118
+ /**
119
+ * @generated from field: kusinta.iot.identity.v1.DeviceId device_id = 1;
120
+ */
121
+ deviceId?: DeviceId | undefined;
122
+
123
+ /**
124
+ * passed through from the connector, for logs
125
+ *
126
+ * @generated from field: string reason = 2;
127
+ */
128
+ reason: string;
129
+ };
130
+
131
+ /**
132
+ * Describes the message kusinta.iot.webrtc.v1.DeviceRemoved.
133
+ * Use `create(DeviceRemovedSchema)` to create a new message.
65
134
  */
66
- export declare const DevicePropertyEventSchema: GenMessage<DevicePropertyEvent>;
135
+ export declare const DeviceRemovedSchema: GenMessage<DeviceRemoved>;
67
136
 
@@ -4,15 +4,16 @@
4
4
 
5
5
  import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
6
6
  import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
7
+ import { file_kusinta_iot_access_v1_acl } from "../../access/v1/acl_pb.js";
7
8
  import { file_kusinta_iot_device_v1_device } from "../../device/v1/device_pb.js";
8
9
  import { file_kusinta_iot_device_v1_property_update } from "../../device/v1/property_update_pb.js";
9
- import { file_kusinta_iot_access_v1_acl } from "../../access/v1/acl_pb.js";
10
+ import { file_kusinta_iot_identity_v1_identity } from "../../identity/v1/identity_pb.js";
10
11
 
11
12
  /**
12
13
  * Describes the file kusinta/iot/webrtc/v1/device_state.proto.
13
14
  */
14
15
  export const file_kusinta_iot_webrtc_v1_device_state = /*@__PURE__*/
15
- fileDesc("CihrdXNpbnRhL2lvdC93ZWJydGMvdjEvZGV2aWNlX3N0YXRlLnByb3RvEhVrdXNpbnRhLmlvdC53ZWJydGMudjEiuwEKE0RldmljZVN0YXRlU25hcHNob3QSLgoHZGV2aWNlcxgBIAMoCzIdLmt1c2ludGEuaW90LmRldmljZS52MS5EZXZpY2USQAoLcGVybWlzc2lvbnMYAiABKAsyKy5rdXNpbnRhLmlvdC5hY2Nlc3MudjEuRWZmZWN0aXZlUGVybWlzc2lvbnMSMgoOc25hcHNob3R0ZWRfYXQYAyABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wIoYBChNEZXZpY2VQcm9wZXJ0eUV2ZW50EjUKBnVwZGF0ZRgBIAEoCzIlLmt1c2ludGEuaW90LmRldmljZS52MS5Qcm9wZXJ0eVVwZGF0ZRI4ChRnYXRld2F5X3Byb2Nlc3NlZF9hdBgCIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCAkgBYgZwcm90bzM", [file_google_protobuf_timestamp, file_kusinta_iot_device_v1_device, file_kusinta_iot_device_v1_property_update, file_kusinta_iot_access_v1_acl]);
16
+ fileDesc("CihrdXNpbnRhL2lvdC93ZWJydGMvdjEvZGV2aWNlX3N0YXRlLnByb3RvEhVrdXNpbnRhLmlvdC53ZWJydGMudjEiuwEKE0RldmljZVN0YXRlU25hcHNob3QSLgoHZGV2aWNlcxgBIAMoCzIdLmt1c2ludGEuaW90LmRldmljZS52MS5EZXZpY2USQAoLcGVybWlzc2lvbnMYAiABKAsyKy5rdXNpbnRhLmlvdC5hY2Nlc3MudjEuRWZmZWN0aXZlUGVybWlzc2lvbnMSMgoOc25hcHNob3R0ZWRfYXQYAyABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wIoEBCg5Qcm9wZXJ0eVJlcG9ydBI1CgZ1cGRhdGUYASABKAsyJS5rdXNpbnRhLmlvdC5kZXZpY2UudjEuUHJvcGVydHlVcGRhdGUSOAoUZ2F0ZXdheV9wcm9jZXNzZWRfYXQYAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wIjwKC0RldmljZUFkZGVkEi0KBmRldmljZRgBIAEoCzIdLmt1c2ludGEuaW90LmRldmljZS52MS5EZXZpY2UiVQoNRGV2aWNlUmVtb3ZlZBI0CglkZXZpY2VfaWQYASABKAsyIS5rdXNpbnRhLmlvdC5pZGVudGl0eS52MS5EZXZpY2VJZBIOCgZyZWFzb24YAiABKAlCAkgBYgZwcm90bzM", [file_google_protobuf_timestamp, file_kusinta_iot_access_v1_acl, file_kusinta_iot_device_v1_device, file_kusinta_iot_device_v1_property_update, file_kusinta_iot_identity_v1_identity]);
16
17
 
17
18
  /**
18
19
  * Describes the message kusinta.iot.webrtc.v1.DeviceStateSnapshot.
@@ -22,9 +23,23 @@ export const DeviceStateSnapshotSchema = /*@__PURE__*/
22
23
  messageDesc(file_kusinta_iot_webrtc_v1_device_state, 0);
23
24
 
24
25
  /**
25
- * Describes the message kusinta.iot.webrtc.v1.DevicePropertyEvent.
26
- * Use `create(DevicePropertyEventSchema)` to create a new message.
26
+ * Describes the message kusinta.iot.webrtc.v1.PropertyReport.
27
+ * Use `create(PropertyReportSchema)` to create a new message.
27
28
  */
28
- export const DevicePropertyEventSchema = /*@__PURE__*/
29
+ export const PropertyReportSchema = /*@__PURE__*/
29
30
  messageDesc(file_kusinta_iot_webrtc_v1_device_state, 1);
30
31
 
32
+ /**
33
+ * Describes the message kusinta.iot.webrtc.v1.DeviceAdded.
34
+ * Use `create(DeviceAddedSchema)` to create a new message.
35
+ */
36
+ export const DeviceAddedSchema = /*@__PURE__*/
37
+ messageDesc(file_kusinta_iot_webrtc_v1_device_state, 2);
38
+
39
+ /**
40
+ * Describes the message kusinta.iot.webrtc.v1.DeviceRemoved.
41
+ * Use `create(DeviceRemovedSchema)` to create a new message.
42
+ */
43
+ export const DeviceRemovedSchema = /*@__PURE__*/
44
+ messageDesc(file_kusinta_iot_webrtc_v1_device_state, 3);
45
+