@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.
- package/package.json +19 -2
- package/src/kusinta/iot/access/v1/acl_pb.d.ts +230 -11
- package/src/kusinta/iot/access/v1/acl_pb.js +26 -5
- package/src/kusinta/iot/access/v1/roles_pb.d.ts +95 -2
- package/src/kusinta/iot/access/v1/roles_pb.js +37 -1
- package/src/kusinta/iot/common/v1/pairing_pb.d.ts +201 -0
- package/src/kusinta/iot/common/v1/pairing_pb.js +50 -0
- package/src/kusinta/iot/connector/v1/connector_pb.d.ts +481 -34
- package/src/kusinta/iot/connector/v1/connector_pb.js +81 -22
- package/src/kusinta/iot/connector/v1/connector_service_pb.d.ts +5 -5
- package/src/kusinta/iot/connector/v1/connector_service_pb.js +1 -1
- package/src/kusinta/iot/device/v1/cluster_state_pb.d.ts +263 -0
- package/src/kusinta/iot/device/v1/cluster_state_pb.js +54 -0
- package/src/kusinta/iot/device/v1/descriptor_pb.d.ts +53 -9
- package/src/kusinta/iot/device/v1/descriptor_pb.js +3 -1
- package/src/kusinta/iot/device/v1/device_event_pb.d.ts +162 -0
- package/src/kusinta/iot/device/v1/device_event_pb.js +45 -0
- package/src/kusinta/iot/device/v1/device_pb.d.ts +185 -28
- package/src/kusinta/iot/device/v1/device_pb.js +10 -2
- package/src/kusinta/iot/device/v1/matter_options_pb.d.ts +110 -0
- package/src/kusinta/iot/device/v1/matter_options_pb.js +118 -0
- package/src/kusinta/iot/device/v1/properties_pb.d.ts +240 -205
- package/src/kusinta/iot/device/v1/properties_pb.js +9 -1
- package/src/kusinta/iot/device/v1/property_update_pb.d.ts +197 -8
- package/src/kusinta/iot/device/v1/property_update_pb.js +20 -2
- package/src/kusinta/iot/link/v1/link_pb.d.ts +419 -0
- package/src/kusinta/iot/link/v1/link_pb.js +121 -0
- package/src/kusinta/iot/registration/v1/registration_pb.d.ts +170 -0
- package/src/kusinta/iot/registration/v1/registration_pb.js +61 -0
- package/src/kusinta/iot/registration/v1/registration_service_pb.d.ts +34 -0
- package/src/kusinta/iot/registration/v1/registration_service_pb.js +19 -0
- package/src/kusinta/iot/signaling/v1/signaling_pb.d.ts +320 -0
- package/src/kusinta/iot/signaling/v1/signaling_pb.js +83 -0
- package/src/kusinta/iot/signaling/v1/signaling_service_pb.d.ts +34 -0
- package/src/kusinta/iot/signaling/v1/signaling_service_pb.js +19 -0
- package/src/kusinta/iot/vendor/homematic/v1/homematic_pb.d.ts +202 -35
- package/src/kusinta/iot/vendor/homematic/v1/homematic_pb.js +14 -6
- package/src/kusinta/iot/vendor/v1/vendor_options_pb.d.ts +71 -0
- package/src/kusinta/iot/vendor/v1/vendor_options_pb.js +75 -0
- package/src/kusinta/iot/webrtc/v1/app_token_pb.d.ts +152 -0
- package/src/kusinta/iot/webrtc/v1/app_token_pb.js +28 -0
- package/src/kusinta/iot/webrtc/v1/command_pb.d.ts +277 -39
- package/src/kusinta/iot/webrtc/v1/command_pb.js +29 -2
- package/src/kusinta/iot/webrtc/v1/device_state_pb.d.ts +76 -7
- package/src/kusinta/iot/webrtc/v1/device_state_pb.js +20 -5
- package/src/kusinta/iot/webrtc/v1/envelope_pb.d.ts +603 -25
- package/src/kusinta/iot/webrtc/v1/envelope_pb.js +99 -5
- package/src/kusinta/iot/webrtc/v1/management_pb.d.ts +627 -0
- package/src/kusinta/iot/webrtc/v1/management_pb.js +135 -0
- package/src/kusinta/iot/webrtc/v1/permission_push_pb.d.ts +7 -1
- package/src/kusinta/iot/webrtc/v1/permission_push_pb.js +2 -2
- package/src/kusinta/iot/webrtc/v1/setpoint_mode_pb.d.ts +63 -0
- 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
|
|
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
|
-
*
|
|
47
|
+
* One attribute reading streamed to the app as it happens — Matter's Report Data Action,
|
|
48
|
+
* for a single attribute.
|
|
47
49
|
*
|
|
48
|
-
*
|
|
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
|
|
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.
|
|
64
|
-
* Use `create(
|
|
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
|
|
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 {
|
|
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("
|
|
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.
|
|
26
|
-
* Use `create(
|
|
26
|
+
* Describes the message kusinta.iot.webrtc.v1.PropertyReport.
|
|
27
|
+
* Use `create(PropertyReportSchema)` to create a new message.
|
|
27
28
|
*/
|
|
28
|
-
export const
|
|
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
|
+
|