@kusinta/iot-schema 0.1.0-beta.2
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 +31 -0
- package/src/__tests__/access.test.js +134 -0
- package/src/__tests__/common.test.js +29 -0
- package/src/__tests__/connector.test.js +144 -0
- package/src/__tests__/device.test.js +194 -0
- package/src/__tests__/identity.test.js +43 -0
- package/src/__tests__/space.test.js +54 -0
- package/src/__tests__/vendor.test.js +60 -0
- package/src/__tests__/webrtc.test.js +268 -0
- package/src/kusinta/iot/access/v1/acl_pb.d.ts +144 -0
- package/src/kusinta/iot/access/v1/acl_pb.js +36 -0
- package/src/kusinta/iot/access/v1/roles_pb.d.ts +81 -0
- package/src/kusinta/iot/access/v1/roles_pb.js +36 -0
- package/src/kusinta/iot/common/v1/types_pb.d.ts +163 -0
- package/src/kusinta/iot/common/v1/types_pb.js +67 -0
- package/src/kusinta/iot/connector/v1/connector_pb.d.ts +359 -0
- package/src/kusinta/iot/connector/v1/connector_pb.js +101 -0
- package/src/kusinta/iot/connector/v1/connector_service_pb.d.ts +29 -0
- package/src/kusinta/iot/connector/v1/connector_service_pb.js +22 -0
- package/src/kusinta/iot/device/v1/descriptor_pb.d.ts +115 -0
- package/src/kusinta/iot/device/v1/descriptor_pb.js +22 -0
- package/src/kusinta/iot/device/v1/device_pb.d.ts +131 -0
- package/src/kusinta/iot/device/v1/device_pb.js +23 -0
- package/src/kusinta/iot/device/v1/properties_pb.d.ts +580 -0
- package/src/kusinta/iot/device/v1/properties_pb.js +96 -0
- package/src/kusinta/iot/device/v1/property_update_pb.d.ts +112 -0
- package/src/kusinta/iot/device/v1/property_update_pb.js +28 -0
- package/src/kusinta/iot/identity/v1/identity_pb.d.ts +108 -0
- package/src/kusinta/iot/identity/v1/identity_pb.js +54 -0
- package/src/kusinta/iot/space/v1/space_pb.d.ts +86 -0
- package/src/kusinta/iot/space/v1/space_pb.js +21 -0
- package/src/kusinta/iot/vendor/homematic/v1/homematic_pb.d.ts +94 -0
- package/src/kusinta/iot/vendor/homematic/v1/homematic_pb.js +26 -0
- package/src/kusinta/iot/webrtc/v1/command_pb.d.ts +271 -0
- package/src/kusinta/iot/webrtc/v1/command_pb.js +70 -0
- package/src/kusinta/iot/webrtc/v1/device_state_pb.d.ts +67 -0
- package/src/kusinta/iot/webrtc/v1/device_state_pb.js +30 -0
- package/src/kusinta/iot/webrtc/v1/envelope_pb.d.ts +210 -0
- package/src/kusinta/iot/webrtc/v1/envelope_pb.js +59 -0
- package/src/kusinta/iot/webrtc/v1/permission_push_pb.d.ts +48 -0
- package/src/kusinta/iot/webrtc/v1/permission_push_pb.js +21 -0
|
@@ -0,0 +1,580 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.12.0 with parameter "target=js+dts"
|
|
2
|
+
// @generated from file kusinta/iot/device/v1/properties.proto (package kusinta.iot.device.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
6
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Describes the file kusinta/iot/device/v1/properties.proto.
|
|
10
|
+
*/
|
|
11
|
+
export declare const file_kusinta_iot_device_v1_properties: GenFile;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Matter Thermostat cluster (0x0201) — device type 0x0301
|
|
15
|
+
*
|
|
16
|
+
* @generated from message kusinta.iot.device.v1.ThermostatProperties
|
|
17
|
+
*/
|
|
18
|
+
export declare type ThermostatProperties = Message<"kusinta.iot.device.v1.ThermostatProperties"> & {
|
|
19
|
+
/**
|
|
20
|
+
* LocalTemperature
|
|
21
|
+
*
|
|
22
|
+
* @generated from field: sint32 local_temperature = 1;
|
|
23
|
+
*/
|
|
24
|
+
localTemperature: number;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* OccupiedHeatingSetpoint
|
|
28
|
+
*
|
|
29
|
+
* @generated from field: sint32 occupied_heating_setpoint = 2;
|
|
30
|
+
*/
|
|
31
|
+
occupiedHeatingSetpoint: number;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* OccupiedCoolingSetpoint
|
|
35
|
+
*
|
|
36
|
+
* @generated from field: sint32 occupied_cooling_setpoint = 3;
|
|
37
|
+
*/
|
|
38
|
+
occupiedCoolingSetpoint: number;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* MinHeatSetpointLimit — property-owner constraint
|
|
42
|
+
*
|
|
43
|
+
* @generated from field: sint32 min_heat_setpoint_limit = 4;
|
|
44
|
+
*/
|
|
45
|
+
minHeatSetpointLimit: number;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* MaxHeatSetpointLimit — property-owner constraint
|
|
49
|
+
*
|
|
50
|
+
* @generated from field: sint32 max_heat_setpoint_limit = 5;
|
|
51
|
+
*/
|
|
52
|
+
maxHeatSetpointLimit: number;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* MinCoolSetpointLimit
|
|
56
|
+
*
|
|
57
|
+
* @generated from field: sint32 min_cool_setpoint_limit = 6;
|
|
58
|
+
*/
|
|
59
|
+
minCoolSetpointLimit: number;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* MaxCoolSetpointLimit
|
|
63
|
+
*
|
|
64
|
+
* @generated from field: sint32 max_cool_setpoint_limit = 7;
|
|
65
|
+
*/
|
|
66
|
+
maxCoolSetpointLimit: number;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* ControlSequenceOfOperation enum
|
|
70
|
+
*
|
|
71
|
+
* @generated from field: uint32 control_sequence_of_operation = 8;
|
|
72
|
+
*/
|
|
73
|
+
controlSequenceOfOperation: number;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* SystemMode: Off=0,Auto=1,Cool=3,Heat=4,EmHeat=5
|
|
77
|
+
*
|
|
78
|
+
* @generated from field: uint32 system_mode = 9;
|
|
79
|
+
*/
|
|
80
|
+
systemMode: number;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* ThermostatRunningMode
|
|
84
|
+
*
|
|
85
|
+
* @generated from field: uint32 thermostat_running_mode = 10;
|
|
86
|
+
*/
|
|
87
|
+
thermostatRunningMode: number;
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Describes the message kusinta.iot.device.v1.ThermostatProperties.
|
|
92
|
+
* Use `create(ThermostatPropertiesSchema)` to create a new message.
|
|
93
|
+
*/
|
|
94
|
+
export declare const ThermostatPropertiesSchema: GenMessage<ThermostatProperties>;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Matter Temperature Measurement cluster (0x0402) — device type 0x0302
|
|
98
|
+
*
|
|
99
|
+
* @generated from message kusinta.iot.device.v1.TemperatureSensorProperties
|
|
100
|
+
*/
|
|
101
|
+
export declare type TemperatureSensorProperties = Message<"kusinta.iot.device.v1.TemperatureSensorProperties"> & {
|
|
102
|
+
/**
|
|
103
|
+
* MeasuredValue
|
|
104
|
+
*
|
|
105
|
+
* @generated from field: sint32 measured_value = 1;
|
|
106
|
+
*/
|
|
107
|
+
measuredValue: number;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* MinMeasuredValue
|
|
111
|
+
*
|
|
112
|
+
* @generated from field: sint32 min_measured_value = 2;
|
|
113
|
+
*/
|
|
114
|
+
minMeasuredValue: number;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* MaxMeasuredValue
|
|
118
|
+
*
|
|
119
|
+
* @generated from field: sint32 max_measured_value = 3;
|
|
120
|
+
*/
|
|
121
|
+
maxMeasuredValue: number;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Tolerance
|
|
125
|
+
*
|
|
126
|
+
* @generated from field: uint32 tolerance = 4;
|
|
127
|
+
*/
|
|
128
|
+
tolerance: number;
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Describes the message kusinta.iot.device.v1.TemperatureSensorProperties.
|
|
133
|
+
* Use `create(TemperatureSensorPropertiesSchema)` to create a new message.
|
|
134
|
+
*/
|
|
135
|
+
export declare const TemperatureSensorPropertiesSchema: GenMessage<TemperatureSensorProperties>;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Matter Relative Humidity Measurement cluster (0x0405) — device type 0x0307
|
|
139
|
+
*
|
|
140
|
+
* @generated from message kusinta.iot.device.v1.HumiditySensorProperties
|
|
141
|
+
*/
|
|
142
|
+
export declare type HumiditySensorProperties = Message<"kusinta.iot.device.v1.HumiditySensorProperties"> & {
|
|
143
|
+
/**
|
|
144
|
+
* MeasuredValue (% × 100, 0–10000)
|
|
145
|
+
*
|
|
146
|
+
* @generated from field: uint32 measured_value = 1;
|
|
147
|
+
*/
|
|
148
|
+
measuredValue: number;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* @generated from field: uint32 min_measured_value = 2;
|
|
152
|
+
*/
|
|
153
|
+
minMeasuredValue: number;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* @generated from field: uint32 max_measured_value = 3;
|
|
157
|
+
*/
|
|
158
|
+
maxMeasuredValue: number;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* @generated from field: uint32 tolerance = 4;
|
|
162
|
+
*/
|
|
163
|
+
tolerance: number;
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Describes the message kusinta.iot.device.v1.HumiditySensorProperties.
|
|
168
|
+
* Use `create(HumiditySensorPropertiesSchema)` to create a new message.
|
|
169
|
+
*/
|
|
170
|
+
export declare const HumiditySensorPropertiesSchema: GenMessage<HumiditySensorProperties>;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Matter Occupancy Sensing cluster (0x0406) — device type 0x0107
|
|
174
|
+
*
|
|
175
|
+
* @generated from message kusinta.iot.device.v1.OccupancySensorProperties
|
|
176
|
+
*/
|
|
177
|
+
export declare type OccupancySensorProperties = Message<"kusinta.iot.device.v1.OccupancySensorProperties"> & {
|
|
178
|
+
/**
|
|
179
|
+
* Occupancy bitmask: bit 0 = occupied
|
|
180
|
+
*
|
|
181
|
+
* @generated from field: uint32 occupancy = 1;
|
|
182
|
+
*/
|
|
183
|
+
occupancy: number;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* OccupancySensorType: PIR=0,Ultrasonic=1,PIRandUS=2,PhysicalContact=3
|
|
187
|
+
*
|
|
188
|
+
* @generated from field: uint32 occupancy_sensor_type = 2;
|
|
189
|
+
*/
|
|
190
|
+
occupancySensorType: number;
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* @generated from field: uint32 occupancy_sensor_type_bitmap = 3;
|
|
194
|
+
*/
|
|
195
|
+
occupancySensorTypeBitmap: number;
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* @generated from field: uint32 pir_occ_to_unocc_delay = 4;
|
|
199
|
+
*/
|
|
200
|
+
pirOccToUnoccDelay: number;
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* @generated from field: uint32 pir_unocc_to_occ_delay = 5;
|
|
204
|
+
*/
|
|
205
|
+
pirUnoccToOccDelay: number;
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* Describes the message kusinta.iot.device.v1.OccupancySensorProperties.
|
|
210
|
+
* Use `create(OccupancySensorPropertiesSchema)` to create a new message.
|
|
211
|
+
*/
|
|
212
|
+
export declare const OccupancySensorPropertiesSchema: GenMessage<OccupancySensorProperties>;
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Matter Boolean State cluster (0x0045) — device type 0x0015 (Contact Sensor)
|
|
216
|
+
*
|
|
217
|
+
* @generated from message kusinta.iot.device.v1.ContactSensorProperties
|
|
218
|
+
*/
|
|
219
|
+
export declare type ContactSensorProperties = Message<"kusinta.iot.device.v1.ContactSensorProperties"> & {
|
|
220
|
+
/**
|
|
221
|
+
* StateValue: false = contact open (alarm), true = contact closed (normal)
|
|
222
|
+
*
|
|
223
|
+
* @generated from field: bool state_value = 1;
|
|
224
|
+
*/
|
|
225
|
+
stateValue: boolean;
|
|
226
|
+
};
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* Describes the message kusinta.iot.device.v1.ContactSensorProperties.
|
|
230
|
+
* Use `create(ContactSensorPropertiesSchema)` to create a new message.
|
|
231
|
+
*/
|
|
232
|
+
export declare const ContactSensorPropertiesSchema: GenMessage<ContactSensorProperties>;
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* Matter Window Covering cluster (0x0102) — device type 0x0202
|
|
236
|
+
*
|
|
237
|
+
* @generated from message kusinta.iot.device.v1.WindowCoveringProperties
|
|
238
|
+
*/
|
|
239
|
+
export declare type WindowCoveringProperties = Message<"kusinta.iot.device.v1.WindowCoveringProperties"> & {
|
|
240
|
+
/**
|
|
241
|
+
* @generated from field: uint32 covering_type = 1;
|
|
242
|
+
*/
|
|
243
|
+
coveringType: number;
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* current_position_lift_percent100ths is the primary attribute in Matter 1.5.1 (0–10000)
|
|
247
|
+
*
|
|
248
|
+
* @generated from field: uint32 current_position_lift_percent100ths = 2;
|
|
249
|
+
*/
|
|
250
|
+
currentPositionLiftPercent100ths: number;
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* @generated from field: uint32 current_position_tilt_percent100ths = 3;
|
|
254
|
+
*/
|
|
255
|
+
currentPositionTiltPercent100ths: number;
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* @generated from field: uint32 target_position_lift_percent100ths = 4;
|
|
259
|
+
*/
|
|
260
|
+
targetPositionLiftPercent100ths: number;
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* @generated from field: uint32 target_position_tilt_percent100ths = 5;
|
|
264
|
+
*/
|
|
265
|
+
targetPositionTiltPercent100ths: number;
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* bitmask: global, lift, tilt
|
|
269
|
+
*
|
|
270
|
+
* @generated from field: uint32 operational_status = 6;
|
|
271
|
+
*/
|
|
272
|
+
operationalStatus: number;
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* @generated from field: uint32 end_product_type = 7;
|
|
276
|
+
*/
|
|
277
|
+
endProductType: number;
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* @generated from field: uint32 mode = 8;
|
|
281
|
+
*/
|
|
282
|
+
mode: number;
|
|
283
|
+
};
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* Describes the message kusinta.iot.device.v1.WindowCoveringProperties.
|
|
287
|
+
* Use `create(WindowCoveringPropertiesSchema)` to create a new message.
|
|
288
|
+
*/
|
|
289
|
+
export declare const WindowCoveringPropertiesSchema: GenMessage<WindowCoveringProperties>;
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* Matter Door Lock cluster (0x0101) — device type 0x000A
|
|
293
|
+
*
|
|
294
|
+
* @generated from message kusinta.iot.device.v1.DoorLockProperties
|
|
295
|
+
*/
|
|
296
|
+
export declare type DoorLockProperties = Message<"kusinta.iot.device.v1.DoorLockProperties"> & {
|
|
297
|
+
/**
|
|
298
|
+
* LockState: NotFullyLocked=0,Locked=1,Unlocked=2,Unlatched=3
|
|
299
|
+
*
|
|
300
|
+
* @generated from field: uint32 lock_state = 1;
|
|
301
|
+
*/
|
|
302
|
+
lockState: number;
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* LockType enum
|
|
306
|
+
*
|
|
307
|
+
* @generated from field: uint32 lock_type = 2;
|
|
308
|
+
*/
|
|
309
|
+
lockType: number;
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* ActuatorEnabled
|
|
313
|
+
*
|
|
314
|
+
* @generated from field: bool actuator_enabled = 3;
|
|
315
|
+
*/
|
|
316
|
+
actuatorEnabled: boolean;
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* DoorState (requires door sensor hardware)
|
|
320
|
+
*
|
|
321
|
+
* @generated from field: uint32 door_state = 4;
|
|
322
|
+
*/
|
|
323
|
+
doorState: number;
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* OperatingMode
|
|
327
|
+
*
|
|
328
|
+
* @generated from field: uint32 operating_mode = 5;
|
|
329
|
+
*/
|
|
330
|
+
operatingMode: number;
|
|
331
|
+
};
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* Describes the message kusinta.iot.device.v1.DoorLockProperties.
|
|
335
|
+
* Use `create(DoorLockPropertiesSchema)` to create a new message.
|
|
336
|
+
*/
|
|
337
|
+
export declare const DoorLockPropertiesSchema: GenMessage<DoorLockProperties>;
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* Matter On/Off cluster (0x0006) — device type 0x0100 (On/Off Light)
|
|
341
|
+
*
|
|
342
|
+
* @generated from message kusinta.iot.device.v1.OnOffLightProperties
|
|
343
|
+
*/
|
|
344
|
+
export declare type OnOffLightProperties = Message<"kusinta.iot.device.v1.OnOffLightProperties"> & {
|
|
345
|
+
/**
|
|
346
|
+
* OnOff
|
|
347
|
+
*
|
|
348
|
+
* @generated from field: bool on_off = 1;
|
|
349
|
+
*/
|
|
350
|
+
onOff: boolean;
|
|
351
|
+
|
|
352
|
+
/**
|
|
353
|
+
* GlobalSceneControl
|
|
354
|
+
*
|
|
355
|
+
* @generated from field: bool global_scene_control = 2;
|
|
356
|
+
*/
|
|
357
|
+
globalSceneControl: boolean;
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* OnTime
|
|
361
|
+
*
|
|
362
|
+
* @generated from field: uint32 on_time = 3;
|
|
363
|
+
*/
|
|
364
|
+
onTime: number;
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* OffWaitTime
|
|
368
|
+
*
|
|
369
|
+
* @generated from field: uint32 off_wait_time = 4;
|
|
370
|
+
*/
|
|
371
|
+
offWaitTime: number;
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* StartUpOnOff
|
|
375
|
+
*
|
|
376
|
+
* @generated from field: uint32 start_up_on_off = 5;
|
|
377
|
+
*/
|
|
378
|
+
startUpOnOff: number;
|
|
379
|
+
};
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
* Describes the message kusinta.iot.device.v1.OnOffLightProperties.
|
|
383
|
+
* Use `create(OnOffLightPropertiesSchema)` to create a new message.
|
|
384
|
+
*/
|
|
385
|
+
export declare const OnOffLightPropertiesSchema: GenMessage<OnOffLightProperties>;
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* Matter On/Off + Level Control cluster (0x0008) — device type 0x010B (Dimmable Light)
|
|
389
|
+
*
|
|
390
|
+
* @generated from message kusinta.iot.device.v1.DimmableLightProperties
|
|
391
|
+
*/
|
|
392
|
+
export declare type DimmableLightProperties = Message<"kusinta.iot.device.v1.DimmableLightProperties"> & {
|
|
393
|
+
/**
|
|
394
|
+
* @generated from field: bool on_off = 1;
|
|
395
|
+
*/
|
|
396
|
+
onOff: boolean;
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* CurrentLevel (0–254)
|
|
400
|
+
*
|
|
401
|
+
* @generated from field: uint32 current_level = 2;
|
|
402
|
+
*/
|
|
403
|
+
currentLevel: number;
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* MinLevel
|
|
407
|
+
*
|
|
408
|
+
* @generated from field: uint32 min_level = 3;
|
|
409
|
+
*/
|
|
410
|
+
minLevel: number;
|
|
411
|
+
|
|
412
|
+
/**
|
|
413
|
+
* MaxLevel
|
|
414
|
+
*
|
|
415
|
+
* @generated from field: uint32 max_level = 4;
|
|
416
|
+
*/
|
|
417
|
+
maxLevel: number;
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* OnLevel
|
|
421
|
+
*
|
|
422
|
+
* @generated from field: uint32 on_level = 5;
|
|
423
|
+
*/
|
|
424
|
+
onLevel: number;
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* StartUpCurrentLevel
|
|
428
|
+
*
|
|
429
|
+
* @generated from field: uint32 start_up_current_level = 6;
|
|
430
|
+
*/
|
|
431
|
+
startUpCurrentLevel: number;
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* RemainingTime
|
|
435
|
+
*
|
|
436
|
+
* @generated from field: uint32 remaining_time = 7;
|
|
437
|
+
*/
|
|
438
|
+
remainingTime: number;
|
|
439
|
+
};
|
|
440
|
+
|
|
441
|
+
/**
|
|
442
|
+
* Describes the message kusinta.iot.device.v1.DimmableLightProperties.
|
|
443
|
+
* Use `create(DimmableLightPropertiesSchema)` to create a new message.
|
|
444
|
+
*/
|
|
445
|
+
export declare const DimmableLightPropertiesSchema: GenMessage<DimmableLightProperties>;
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* Matter On/Off + Level + Color Control cluster (0x0300) — device type 0x010C
|
|
449
|
+
*
|
|
450
|
+
* @generated from message kusinta.iot.device.v1.ColorTemperatureLightProperties
|
|
451
|
+
*/
|
|
452
|
+
export declare type ColorTemperatureLightProperties = Message<"kusinta.iot.device.v1.ColorTemperatureLightProperties"> & {
|
|
453
|
+
/**
|
|
454
|
+
* @generated from field: bool on_off = 1;
|
|
455
|
+
*/
|
|
456
|
+
onOff: boolean;
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* @generated from field: uint32 current_level = 2;
|
|
460
|
+
*/
|
|
461
|
+
currentLevel: number;
|
|
462
|
+
|
|
463
|
+
/**
|
|
464
|
+
* ColorTemperatureMireds
|
|
465
|
+
*
|
|
466
|
+
* @generated from field: uint32 color_temperature_mireds = 3;
|
|
467
|
+
*/
|
|
468
|
+
colorTemperatureMireds: number;
|
|
469
|
+
|
|
470
|
+
/**
|
|
471
|
+
* ColorTempPhysicalMinMireds
|
|
472
|
+
*
|
|
473
|
+
* @generated from field: uint32 color_temp_physical_min_mireds = 4;
|
|
474
|
+
*/
|
|
475
|
+
colorTempPhysicalMinMireds: number;
|
|
476
|
+
|
|
477
|
+
/**
|
|
478
|
+
* ColorTempPhysicalMaxMireds
|
|
479
|
+
*
|
|
480
|
+
* @generated from field: uint32 color_temp_physical_max_mireds = 5;
|
|
481
|
+
*/
|
|
482
|
+
colorTempPhysicalMaxMireds: number;
|
|
483
|
+
|
|
484
|
+
/**
|
|
485
|
+
* StartUpColorTemperatureMireds
|
|
486
|
+
*
|
|
487
|
+
* @generated from field: uint32 startup_color_temperature_mireds = 6;
|
|
488
|
+
*/
|
|
489
|
+
startupColorTemperatureMireds: number;
|
|
490
|
+
|
|
491
|
+
/**
|
|
492
|
+
* ColorMode
|
|
493
|
+
*
|
|
494
|
+
* @generated from field: uint32 color_mode = 7;
|
|
495
|
+
*/
|
|
496
|
+
colorMode: number;
|
|
497
|
+
};
|
|
498
|
+
|
|
499
|
+
/**
|
|
500
|
+
* Describes the message kusinta.iot.device.v1.ColorTemperatureLightProperties.
|
|
501
|
+
* Use `create(ColorTemperatureLightPropertiesSchema)` to create a new message.
|
|
502
|
+
*/
|
|
503
|
+
export declare const ColorTemperatureLightPropertiesSchema: GenMessage<ColorTemperatureLightProperties>;
|
|
504
|
+
|
|
505
|
+
/**
|
|
506
|
+
* Matter Electrical Measurement cluster (0x0B04) — device type 0x0510
|
|
507
|
+
*
|
|
508
|
+
* @generated from message kusinta.iot.device.v1.EnergySensorProperties
|
|
509
|
+
*/
|
|
510
|
+
export declare type EnergySensorProperties = Message<"kusinta.iot.device.v1.EnergySensorProperties"> & {
|
|
511
|
+
/**
|
|
512
|
+
* ActivePower (watts)
|
|
513
|
+
*
|
|
514
|
+
* @generated from field: int32 active_power = 1;
|
|
515
|
+
*/
|
|
516
|
+
activePower: number;
|
|
517
|
+
|
|
518
|
+
/**
|
|
519
|
+
* RmsVoltage (volts × 10)
|
|
520
|
+
*
|
|
521
|
+
* @generated from field: uint32 rms_voltage = 2;
|
|
522
|
+
*/
|
|
523
|
+
rmsVoltage: number;
|
|
524
|
+
|
|
525
|
+
/**
|
|
526
|
+
* RmsCurrent (amps × 1000)
|
|
527
|
+
*
|
|
528
|
+
* @generated from field: uint32 rms_current = 3;
|
|
529
|
+
*/
|
|
530
|
+
rmsCurrent: number;
|
|
531
|
+
|
|
532
|
+
/**
|
|
533
|
+
* AcFrequency (Hz × 100)
|
|
534
|
+
*
|
|
535
|
+
* @generated from field: uint32 ac_frequency = 4;
|
|
536
|
+
*/
|
|
537
|
+
acFrequency: number;
|
|
538
|
+
};
|
|
539
|
+
|
|
540
|
+
/**
|
|
541
|
+
* Describes the message kusinta.iot.device.v1.EnergySensorProperties.
|
|
542
|
+
* Use `create(EnergySensorPropertiesSchema)` to create a new message.
|
|
543
|
+
*/
|
|
544
|
+
export declare const EnergySensorPropertiesSchema: GenMessage<EnergySensorProperties>;
|
|
545
|
+
|
|
546
|
+
/**
|
|
547
|
+
* Matter Pressure Measurement cluster (0x0403) — device type 0x0305
|
|
548
|
+
*
|
|
549
|
+
* @generated from message kusinta.iot.device.v1.PressureSensorProperties
|
|
550
|
+
*/
|
|
551
|
+
export declare type PressureSensorProperties = Message<"kusinta.iot.device.v1.PressureSensorProperties"> & {
|
|
552
|
+
/**
|
|
553
|
+
* MeasuredValue (kPa × 10)
|
|
554
|
+
*
|
|
555
|
+
* @generated from field: sint32 measured_value = 1;
|
|
556
|
+
*/
|
|
557
|
+
measuredValue: number;
|
|
558
|
+
|
|
559
|
+
/**
|
|
560
|
+
* @generated from field: sint32 min_measured_value = 2;
|
|
561
|
+
*/
|
|
562
|
+
minMeasuredValue: number;
|
|
563
|
+
|
|
564
|
+
/**
|
|
565
|
+
* @generated from field: sint32 max_measured_value = 3;
|
|
566
|
+
*/
|
|
567
|
+
maxMeasuredValue: number;
|
|
568
|
+
|
|
569
|
+
/**
|
|
570
|
+
* @generated from field: uint32 tolerance = 4;
|
|
571
|
+
*/
|
|
572
|
+
tolerance: number;
|
|
573
|
+
};
|
|
574
|
+
|
|
575
|
+
/**
|
|
576
|
+
* Describes the message kusinta.iot.device.v1.PressureSensorProperties.
|
|
577
|
+
* Use `create(PressureSensorPropertiesSchema)` to create a new message.
|
|
578
|
+
*/
|
|
579
|
+
export declare const PressureSensorPropertiesSchema: GenMessage<PressureSensorProperties>;
|
|
580
|
+
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.12.0 with parameter "target=js+dts"
|
|
2
|
+
// @generated from file kusinta/iot/device/v1/properties.proto (package kusinta.iot.device.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Describes the file kusinta/iot/device/v1/properties.proto.
|
|
9
|
+
*/
|
|
10
|
+
export const file_kusinta_iot_device_v1_properties = /*@__PURE__*/
|
|
11
|
+
fileDesc("CiZrdXNpbnRhL2lvdC9kZXZpY2UvdjEvcHJvcGVydGllcy5wcm90bxIVa3VzaW50YS5pb3QuZGV2aWNlLnYxItgCChRUaGVybW9zdGF0UHJvcGVydGllcxIZChFsb2NhbF90ZW1wZXJhdHVyZRgBIAEoERIhChlvY2N1cGllZF9oZWF0aW5nX3NldHBvaW50GAIgASgREiEKGW9jY3VwaWVkX2Nvb2xpbmdfc2V0cG9pbnQYAyABKBESHwoXbWluX2hlYXRfc2V0cG9pbnRfbGltaXQYBCABKBESHwoXbWF4X2hlYXRfc2V0cG9pbnRfbGltaXQYBSABKBESHwoXbWluX2Nvb2xfc2V0cG9pbnRfbGltaXQYBiABKBESHwoXbWF4X2Nvb2xfc2V0cG9pbnRfbGltaXQYByABKBESJQodY29udHJvbF9zZXF1ZW5jZV9vZl9vcGVyYXRpb24YCCABKA0SEwoLc3lzdGVtX21vZGUYCSABKA0SHwoXdGhlcm1vc3RhdF9ydW5uaW5nX21vZGUYCiABKA0igAEKG1RlbXBlcmF0dXJlU2Vuc29yUHJvcGVydGllcxIWCg5tZWFzdXJlZF92YWx1Z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ZF92YWx1ZRgCIAEoERIaChJtYXhfbWVhc3VyZWRfdmFsdWUYAyABKBESEQoJdG9sZXJhbmNlGAQgASgNQgJIAWIGcHJvdG8z");
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Describes the message kusinta.iot.device.v1.ThermostatProperties.
|
|
15
|
+
* Use `create(ThermostatPropertiesSchema)` to create a new message.
|
|
16
|
+
*/
|
|
17
|
+
export const ThermostatPropertiesSchema = /*@__PURE__*/
|
|
18
|
+
messageDesc(file_kusinta_iot_device_v1_properties, 0);
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Describes the message kusinta.iot.device.v1.TemperatureSensorProperties.
|
|
22
|
+
* Use `create(TemperatureSensorPropertiesSchema)` to create a new message.
|
|
23
|
+
*/
|
|
24
|
+
export const TemperatureSensorPropertiesSchema = /*@__PURE__*/
|
|
25
|
+
messageDesc(file_kusinta_iot_device_v1_properties, 1);
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Describes the message kusinta.iot.device.v1.HumiditySensorProperties.
|
|
29
|
+
* Use `create(HumiditySensorPropertiesSchema)` to create a new message.
|
|
30
|
+
*/
|
|
31
|
+
export const HumiditySensorPropertiesSchema = /*@__PURE__*/
|
|
32
|
+
messageDesc(file_kusinta_iot_device_v1_properties, 2);
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Describes the message kusinta.iot.device.v1.OccupancySensorProperties.
|
|
36
|
+
* Use `create(OccupancySensorPropertiesSchema)` to create a new message.
|
|
37
|
+
*/
|
|
38
|
+
export const OccupancySensorPropertiesSchema = /*@__PURE__*/
|
|
39
|
+
messageDesc(file_kusinta_iot_device_v1_properties, 3);
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Describes the message kusinta.iot.device.v1.ContactSensorProperties.
|
|
43
|
+
* Use `create(ContactSensorPropertiesSchema)` to create a new message.
|
|
44
|
+
*/
|
|
45
|
+
export const ContactSensorPropertiesSchema = /*@__PURE__*/
|
|
46
|
+
messageDesc(file_kusinta_iot_device_v1_properties, 4);
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Describes the message kusinta.iot.device.v1.WindowCoveringProperties.
|
|
50
|
+
* Use `create(WindowCoveringPropertiesSchema)` to create a new message.
|
|
51
|
+
*/
|
|
52
|
+
export const WindowCoveringPropertiesSchema = /*@__PURE__*/
|
|
53
|
+
messageDesc(file_kusinta_iot_device_v1_properties, 5);
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Describes the message kusinta.iot.device.v1.DoorLockProperties.
|
|
57
|
+
* Use `create(DoorLockPropertiesSchema)` to create a new message.
|
|
58
|
+
*/
|
|
59
|
+
export const DoorLockPropertiesSchema = /*@__PURE__*/
|
|
60
|
+
messageDesc(file_kusinta_iot_device_v1_properties, 6);
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Describes the message kusinta.iot.device.v1.OnOffLightProperties.
|
|
64
|
+
* Use `create(OnOffLightPropertiesSchema)` to create a new message.
|
|
65
|
+
*/
|
|
66
|
+
export const OnOffLightPropertiesSchema = /*@__PURE__*/
|
|
67
|
+
messageDesc(file_kusinta_iot_device_v1_properties, 7);
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Describes the message kusinta.iot.device.v1.DimmableLightProperties.
|
|
71
|
+
* Use `create(DimmableLightPropertiesSchema)` to create a new message.
|
|
72
|
+
*/
|
|
73
|
+
export const DimmableLightPropertiesSchema = /*@__PURE__*/
|
|
74
|
+
messageDesc(file_kusinta_iot_device_v1_properties, 8);
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Describes the message kusinta.iot.device.v1.ColorTemperatureLightProperties.
|
|
78
|
+
* Use `create(ColorTemperatureLightPropertiesSchema)` to create a new message.
|
|
79
|
+
*/
|
|
80
|
+
export const ColorTemperatureLightPropertiesSchema = /*@__PURE__*/
|
|
81
|
+
messageDesc(file_kusinta_iot_device_v1_properties, 9);
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Describes the message kusinta.iot.device.v1.EnergySensorProperties.
|
|
85
|
+
* Use `create(EnergySensorPropertiesSchema)` to create a new message.
|
|
86
|
+
*/
|
|
87
|
+
export const EnergySensorPropertiesSchema = /*@__PURE__*/
|
|
88
|
+
messageDesc(file_kusinta_iot_device_v1_properties, 10);
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Describes the message kusinta.iot.device.v1.PressureSensorProperties.
|
|
92
|
+
* Use `create(PressureSensorPropertiesSchema)` to create a new message.
|
|
93
|
+
*/
|
|
94
|
+
export const PressureSensorPropertiesSchema = /*@__PURE__*/
|
|
95
|
+
messageDesc(file_kusinta_iot_device_v1_properties, 11);
|
|
96
|
+
|