homebridge-nest-accfactory 0.0.4-a
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/CHANGELOG.md +27 -0
- package/LICENSE +176 -0
- package/README.md +121 -0
- package/config.schema.json +107 -0
- package/dist/HomeKitDevice.js +441 -0
- package/dist/HomeKitHistory.js +2835 -0
- package/dist/camera.js +1276 -0
- package/dist/doorbell.js +122 -0
- package/dist/index.js +35 -0
- package/dist/nexustalk.js +741 -0
- package/dist/protect.js +240 -0
- package/dist/protobuf/google/rpc/status.proto +91 -0
- package/dist/protobuf/google/rpc/stream_body.proto +26 -0
- package/dist/protobuf/google/trait/product/camera.proto +53 -0
- package/dist/protobuf/googlehome/foyer.proto +208 -0
- package/dist/protobuf/nest/messages.proto +8 -0
- package/dist/protobuf/nest/services/apigateway.proto +107 -0
- package/dist/protobuf/nest/trait/audio.proto +7 -0
- package/dist/protobuf/nest/trait/cellular.proto +313 -0
- package/dist/protobuf/nest/trait/debug.proto +37 -0
- package/dist/protobuf/nest/trait/detector.proto +41 -0
- package/dist/protobuf/nest/trait/diagnostics.proto +87 -0
- package/dist/protobuf/nest/trait/firmware.proto +221 -0
- package/dist/protobuf/nest/trait/guest.proto +105 -0
- package/dist/protobuf/nest/trait/history.proto +345 -0
- package/dist/protobuf/nest/trait/humanlibrary.proto +19 -0
- package/dist/protobuf/nest/trait/hvac.proto +1353 -0
- package/dist/protobuf/nest/trait/input.proto +29 -0
- package/dist/protobuf/nest/trait/lighting.proto +61 -0
- package/dist/protobuf/nest/trait/located.proto +193 -0
- package/dist/protobuf/nest/trait/media.proto +68 -0
- package/dist/protobuf/nest/trait/network.proto +352 -0
- package/dist/protobuf/nest/trait/occupancy.proto +373 -0
- package/dist/protobuf/nest/trait/olive.proto +15 -0
- package/dist/protobuf/nest/trait/pairing.proto +85 -0
- package/dist/protobuf/nest/trait/product/camera.proto +283 -0
- package/dist/protobuf/nest/trait/product/detect.proto +67 -0
- package/dist/protobuf/nest/trait/product/doorbell.proto +18 -0
- package/dist/protobuf/nest/trait/product/guard.proto +59 -0
- package/dist/protobuf/nest/trait/product/protect.proto +344 -0
- package/dist/protobuf/nest/trait/promonitoring.proto +14 -0
- package/dist/protobuf/nest/trait/resourcedirectory.proto +32 -0
- package/dist/protobuf/nest/trait/safety.proto +119 -0
- package/dist/protobuf/nest/trait/security.proto +516 -0
- package/dist/protobuf/nest/trait/selftest.proto +78 -0
- package/dist/protobuf/nest/trait/sensor.proto +291 -0
- package/dist/protobuf/nest/trait/service.proto +46 -0
- package/dist/protobuf/nest/trait/structure.proto +85 -0
- package/dist/protobuf/nest/trait/system.proto +51 -0
- package/dist/protobuf/nest/trait/test.proto +15 -0
- package/dist/protobuf/nest/trait/ui.proto +65 -0
- package/dist/protobuf/nest/trait/user.proto +98 -0
- package/dist/protobuf/nest/trait/voiceassistant.proto +30 -0
- package/dist/protobuf/nestlabs/eventingapi/v1.proto +83 -0
- package/dist/protobuf/nestlabs/gateway/v1.proto +273 -0
- package/dist/protobuf/nestlabs/gateway/v2.proto +96 -0
- package/dist/protobuf/nestlabs/history/v1.proto +73 -0
- package/dist/protobuf/root.proto +64 -0
- package/dist/protobuf/wdl-event-importance.proto +11 -0
- package/dist/protobuf/wdl.proto +450 -0
- package/dist/protobuf/weave/common.proto +144 -0
- package/dist/protobuf/weave/trait/audio.proto +12 -0
- package/dist/protobuf/weave/trait/auth.proto +22 -0
- package/dist/protobuf/weave/trait/description.proto +32 -0
- package/dist/protobuf/weave/trait/heartbeat.proto +38 -0
- package/dist/protobuf/weave/trait/locale.proto +20 -0
- package/dist/protobuf/weave/trait/network.proto +24 -0
- package/dist/protobuf/weave/trait/pairing.proto +8 -0
- package/dist/protobuf/weave/trait/peerdevices.proto +18 -0
- package/dist/protobuf/weave/trait/power.proto +86 -0
- package/dist/protobuf/weave/trait/schedule.proto +76 -0
- package/dist/protobuf/weave/trait/security.proto +343 -0
- package/dist/protobuf/weave/trait/telemetry/tunnel.proto +37 -0
- package/dist/protobuf/weave/trait/time.proto +16 -0
- package/dist/res/Nest_camera_connecting.h264 +0 -0
- package/dist/res/Nest_camera_connecting.jpg +0 -0
- package/dist/res/Nest_camera_off.h264 +0 -0
- package/dist/res/Nest_camera_off.jpg +0 -0
- package/dist/res/Nest_camera_offline.h264 +0 -0
- package/dist/res/Nest_camera_offline.jpg +0 -0
- package/dist/res/Nest_camera_transfer.jpg +0 -0
- package/dist/streamer.js +344 -0
- package/dist/system.js +3112 -0
- package/dist/tempsensor.js +99 -0
- package/dist/thermostat.js +1026 -0
- package/dist/weather.js +205 -0
- package/dist/webrtc.js +55 -0
- package/package.json +66 -0
|
@@ -0,0 +1,450 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
import "google/protobuf/any.proto";
|
|
4
|
+
import "google/protobuf/duration.proto";
|
|
5
|
+
import "google/protobuf/timestamp.proto";
|
|
6
|
+
import "weave/common.proto";
|
|
7
|
+
import "wdl-event-importance.proto";
|
|
8
|
+
|
|
9
|
+
package wdl;
|
|
10
|
+
|
|
11
|
+
enum MessageType {
|
|
12
|
+
STRUCT = 0;
|
|
13
|
+
PROPERTIES_DEPRECATED = 1;
|
|
14
|
+
COMMAND = 2;
|
|
15
|
+
COMMAND_LIST = 3;
|
|
16
|
+
EVENT = 4;
|
|
17
|
+
EVENT_LIST = 5;
|
|
18
|
+
RESOURCE = 6;
|
|
19
|
+
IFACE = 7;
|
|
20
|
+
RESPONSE_EVENT = 8;
|
|
21
|
+
SERVICE_DESCRIPTION = 9;
|
|
22
|
+
UNION = 10;
|
|
23
|
+
TRAIT = 11;
|
|
24
|
+
UPDATE_PARAMETERS = 12;
|
|
25
|
+
TYPEDEF = 13;
|
|
26
|
+
IFACE_IMPLEMENTATIONS = 14;
|
|
27
|
+
TYPESPACE = 15;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
enum PublishedBy {
|
|
31
|
+
SELF = 0;
|
|
32
|
+
EXTERNAL = 1;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
enum Encoding {
|
|
36
|
+
ENCODING_UNSPECIFIED = 0;
|
|
37
|
+
FIXED = 1;
|
|
38
|
+
FLOAT = 2;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
enum Stability {
|
|
42
|
+
ALPHA = 0;
|
|
43
|
+
BETA = 1;
|
|
44
|
+
PROD = 2;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
enum Privilege {
|
|
48
|
+
PRIV_ANY = 0;
|
|
49
|
+
PRIV_ADVANCED = 1;
|
|
50
|
+
PRIV_ADMIN = 2;
|
|
51
|
+
PRIV_SERVICE = 3;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
enum Variability {
|
|
55
|
+
DYNAMIC = 0;
|
|
56
|
+
STATIC = 1;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
enum WriteAccess {
|
|
60
|
+
READ_WRITE = 0;
|
|
61
|
+
READ_ONLY = 1;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
enum Vendor {
|
|
65
|
+
COMMON = 0;
|
|
66
|
+
NEST = 9050;
|
|
67
|
+
CHARGEPOINT = 29124;
|
|
68
|
+
SKYDROP = 34131;
|
|
69
|
+
NET2GRID = 42430;
|
|
70
|
+
GEORGIA_POWER = 45485;
|
|
71
|
+
RACHIO = 45950;
|
|
72
|
+
LIFI_LABS = 48130;
|
|
73
|
+
BLUE_LINE = 50785;
|
|
74
|
+
CAL_THINGS = 51143;
|
|
75
|
+
GOOGLE = 57600;
|
|
76
|
+
LUMI = 58986;
|
|
77
|
+
YALE = 59175;
|
|
78
|
+
TP_LINK = 65242;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
message AnyStruct {
|
|
82
|
+
string type = 1;
|
|
83
|
+
repeated AnyValue values = 2;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
message AnyValue {
|
|
87
|
+
string fieldName = 1;
|
|
88
|
+
bool boolVal = 2;
|
|
89
|
+
int64 intVal = 3;
|
|
90
|
+
uint64 uintVal = 4;
|
|
91
|
+
double numberVal = 5;
|
|
92
|
+
string stringVal = 6;
|
|
93
|
+
string bytesBase16Val = 7;
|
|
94
|
+
string resourceIdVal = 8;
|
|
95
|
+
AnyStruct structVal = 9;
|
|
96
|
+
|
|
97
|
+
enum ValueCase {
|
|
98
|
+
VALUE_NOT_SET = 0;
|
|
99
|
+
BOOL_VAL = 2;
|
|
100
|
+
INT_VAL = 3;
|
|
101
|
+
UINT_VAL = 4;
|
|
102
|
+
NUMBER_VAL = 5;
|
|
103
|
+
STRING_VAL = 6;
|
|
104
|
+
BYTES_BASE16_VAL = 7;
|
|
105
|
+
RESOURCE_ID_VAL = 8;
|
|
106
|
+
STRUCT_VAL = 9;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
message TraitVersionAssociation {
|
|
111
|
+
uint32 version = 1;
|
|
112
|
+
uint32 parentVersion = 2;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
message TraitVersionIdentifier {
|
|
116
|
+
string trait = 1;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
message IntegerConstraints {
|
|
120
|
+
uint32 width = 1;
|
|
121
|
+
int64 max = 2;
|
|
122
|
+
int64 min = 3;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
message UnsignedConstraints {
|
|
126
|
+
uint32 width = 1;
|
|
127
|
+
uint64 max = 2;
|
|
128
|
+
uint64 min = 3;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
message NumberConstraints {
|
|
132
|
+
uint32 fixedEncodingWidth = 1;
|
|
133
|
+
double max = 2;
|
|
134
|
+
double min = 3;
|
|
135
|
+
double precision = 4;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
message TimestampConstraints {
|
|
139
|
+
bool signed = 1;
|
|
140
|
+
double precision = 2;
|
|
141
|
+
uint32 width = 3;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
message DurationConstraints {
|
|
145
|
+
bool signed = 1;
|
|
146
|
+
double precision = 2;
|
|
147
|
+
uint32 width = 3;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
message StringConstraints {
|
|
151
|
+
uint32 minLength = 1;
|
|
152
|
+
uint32 maxLength = 2;
|
|
153
|
+
string allowedCharacters = 3;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
message BytesConstraints {
|
|
157
|
+
uint32 minLength = 1;
|
|
158
|
+
uint32 maxLength = 2;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
message VersionCompatibleOptions {
|
|
162
|
+
uint32 minVersion = 1;
|
|
163
|
+
uint32 maxVersion = 2;
|
|
164
|
+
repeated uint32 incompatibleVersions = 3;
|
|
165
|
+
google.protobuf.Any defaultValue = 4;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
message WdlCommandOptions {
|
|
169
|
+
uint32 id = 1;
|
|
170
|
+
VersionCompatibleOptions compatibility = 3;
|
|
171
|
+
bool extendable = 5;
|
|
172
|
+
uint32 reservedTagMin = 6;
|
|
173
|
+
uint32 reservedTagMax = 7;
|
|
174
|
+
string pb_extends = 8;
|
|
175
|
+
string completionEvent = 11;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
message WdlEventOptions {
|
|
179
|
+
uint32 id = 1;
|
|
180
|
+
VersionCompatibleOptions compatibility = 3;
|
|
181
|
+
bool extendable = 5;
|
|
182
|
+
uint32 reservedTagMin = 6;
|
|
183
|
+
uint32 reservedTagMax = 7;
|
|
184
|
+
string pb_extends = 8;
|
|
185
|
+
EventImportance eventImportance = 9;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
message WdlPropertiesOptions {
|
|
189
|
+
Variability variability = 3;
|
|
190
|
+
WriteAccess writable = 4;
|
|
191
|
+
bool extendable = 5;
|
|
192
|
+
uint32 reservedTagMin = 6;
|
|
193
|
+
uint32 reservedTagMax = 7;
|
|
194
|
+
TraitVersionIdentifier extends = 8;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
message WdlPropertyOptions {
|
|
198
|
+
Variability variability = 1;
|
|
199
|
+
WriteAccess writable = 2;
|
|
200
|
+
VersionCompatibleOptions compatibility = 3;
|
|
201
|
+
bool optional = 5;
|
|
202
|
+
bool nullable = 6;
|
|
203
|
+
string updateCommand = 7;
|
|
204
|
+
weave.common.QuantityType quantityType = 20;
|
|
205
|
+
double quantityScale = 21;
|
|
206
|
+
double quantityOffset = 22;
|
|
207
|
+
IntegerConstraints intConstraints = 31;
|
|
208
|
+
UnsignedConstraints uintConstraints = 32;
|
|
209
|
+
NumberConstraints numberConstraints = 33;
|
|
210
|
+
StringConstraints stringConstraints = 34;
|
|
211
|
+
BytesConstraints bytesConstraints = 35;
|
|
212
|
+
TimestampConstraints timestampConstraints = 36;
|
|
213
|
+
DurationConstraints durationConstraints = 37;
|
|
214
|
+
weave.common.ResourceType resourceType = 50;
|
|
215
|
+
bool ephemeral = 51;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
message WdlParameterOptions {
|
|
219
|
+
bool optional = 1;
|
|
220
|
+
bool nullable = 2;
|
|
221
|
+
VersionCompatibleOptions compatibility = 3;
|
|
222
|
+
weave.common.QuantityType quantityType = 20;
|
|
223
|
+
double quantityScale = 21;
|
|
224
|
+
double quantityOffset = 22;
|
|
225
|
+
IntegerConstraints intConstraints = 31;
|
|
226
|
+
UnsignedConstraints uintConstraints = 32;
|
|
227
|
+
NumberConstraints numberConstraints = 33;
|
|
228
|
+
StringConstraints stringConstraints = 34;
|
|
229
|
+
BytesConstraints bytesConstraints = 35;
|
|
230
|
+
TimestampConstraints timestampConstraints = 36;
|
|
231
|
+
DurationConstraints durationConstraints = 37;
|
|
232
|
+
weave.common.ResourceType resourceType = 50;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
message WdlEnumOptions {
|
|
236
|
+
bool bitmask = 1;
|
|
237
|
+
bool extendable = 5;
|
|
238
|
+
uint32 reservedTagMin = 6;
|
|
239
|
+
uint32 reservedTagMax = 7;
|
|
240
|
+
string extends = 8;
|
|
241
|
+
string constantType = 10;
|
|
242
|
+
VersionCompatibleOptions compatibility = 11;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
message WdlEnumValueOptions {
|
|
246
|
+
VersionCompatibleOptions compatibility = 3;
|
|
247
|
+
bool unknownFallback = 10;
|
|
248
|
+
uint32 fallback = 11;
|
|
249
|
+
repeated string constantResourceId = 108;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
message WdlTlvOptions {
|
|
253
|
+
Encoding encoding = 1;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
message WdlPropertyRefinement {
|
|
257
|
+
string property = 1;
|
|
258
|
+
bool unimplemented = 3;
|
|
259
|
+
IntegerConstraints intConstraints = 31;
|
|
260
|
+
UnsignedConstraints uintConstraints = 32;
|
|
261
|
+
NumberConstraints numberConstraints = 33;
|
|
262
|
+
StringConstraints stringConstraints = 34;
|
|
263
|
+
BytesConstraints bytesConstraints = 35;
|
|
264
|
+
TimestampConstraints timestampConstraints = 36;
|
|
265
|
+
DurationConstraints durationConstraints = 37;
|
|
266
|
+
repeated bool staticBoolValue = 101;
|
|
267
|
+
repeated int64 staticIntValue = 102;
|
|
268
|
+
repeated uint64 staticUintValue = 103;
|
|
269
|
+
repeated double staticNumberValue = 104;
|
|
270
|
+
repeated string staticStringValue = 105;
|
|
271
|
+
repeated bytes staticBytesBase16Value = 106;
|
|
272
|
+
repeated AnyStruct staticStructValue = 107;
|
|
273
|
+
repeated string staticResourceIdValue = 108;
|
|
274
|
+
repeated bool initialBoolValue = 121;
|
|
275
|
+
repeated int64 initialIntValue = 122;
|
|
276
|
+
repeated uint64 initialUintValue = 123;
|
|
277
|
+
repeated double initialNumberValue = 124;
|
|
278
|
+
repeated string initialStringValue = 125;
|
|
279
|
+
repeated bytes initialBytesBase16Value = 126;
|
|
280
|
+
repeated AnyStruct initialStructValue = 127;
|
|
281
|
+
repeated string initialResourceIdValue = 128;
|
|
282
|
+
repeated google.protobuf.Duration initialDurationValue = 129;
|
|
283
|
+
repeated google.protobuf.Timestamp initialTimestampValue = 130;
|
|
284
|
+
repeated string initialEnumValueName = 131;
|
|
285
|
+
|
|
286
|
+
enum ConstraintsCase {
|
|
287
|
+
CONSTRAINTS_NOT_SET = 0;
|
|
288
|
+
INT_CONSTRAINTS = 31;
|
|
289
|
+
UINT_CONSTRAINTS = 32;
|
|
290
|
+
NUMBER_CONSTRAINTS = 33;
|
|
291
|
+
STRING_CONSTRAINTS = 34;
|
|
292
|
+
BYTES_CONSTRAINTS = 35;
|
|
293
|
+
TIMESTAMP_CONSTRAINTS = 36;
|
|
294
|
+
DURATION_CONSTRAINTS = 37;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
message WdlParameterRefinement {
|
|
299
|
+
string parameter = 1;
|
|
300
|
+
IntegerConstraints intConstraints = 31;
|
|
301
|
+
UnsignedConstraints uintConstraints = 32;
|
|
302
|
+
NumberConstraints numberConstraints = 33;
|
|
303
|
+
StringConstraints stringConstraints = 34;
|
|
304
|
+
BytesConstraints bytesConstraints = 35;
|
|
305
|
+
TimestampConstraints timestampConstraints = 36;
|
|
306
|
+
DurationConstraints durationConstraints = 37;
|
|
307
|
+
|
|
308
|
+
enum ConstraintsCase {
|
|
309
|
+
CONSTRAINTS_NOT_SET = 0;
|
|
310
|
+
INT_CONSTRAINTS = 31;
|
|
311
|
+
UINT_CONSTRAINTS = 32;
|
|
312
|
+
NUMBER_CONSTRAINTS = 33;
|
|
313
|
+
STRING_CONSTRAINTS = 34;
|
|
314
|
+
BYTES_CONSTRAINTS = 35;
|
|
315
|
+
TIMESTAMP_CONSTRAINTS = 36;
|
|
316
|
+
DURATION_CONSTRAINTS = 37;
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
message WdlCommandRefinement {
|
|
321
|
+
string command = 1;
|
|
322
|
+
repeated WdlParameterRefinement parameters = 2;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
message WdlEventRefinement {
|
|
326
|
+
string event = 1;
|
|
327
|
+
repeated WdlParameterRefinement parameters = 2;
|
|
328
|
+
EventImportance eventImportance = 4;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
message WdlTraitInstOptions {
|
|
332
|
+
uint32 instance = 3;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
message WdlTraitInstConfig {
|
|
336
|
+
PublishedBy publishedBy = 1;
|
|
337
|
+
bool proxied = 2;
|
|
338
|
+
bool subscribed = 3;
|
|
339
|
+
uint32 minVersion = 4;
|
|
340
|
+
repeated WdlPropertyRefinement propRefinement = 10;
|
|
341
|
+
repeated WdlCommandRefinement commandRefinement = 11;
|
|
342
|
+
repeated WdlEventRefinement eventRefinement = 12;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
message WdlIfaceTraitInstOptions {
|
|
346
|
+
uint32 minVersion = 1;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
message TraitVersionIds {
|
|
350
|
+
uint32 version = 1;
|
|
351
|
+
int32 id = 2;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
message WdlVersionEntry {
|
|
355
|
+
string name = 1;
|
|
356
|
+
uint32 version = 2;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
message WdlTraitVersionMapEntry {
|
|
360
|
+
uint32 parentVersion = 1;
|
|
361
|
+
repeated WdlVersionEntry dependentVersionList = 2;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
message WdlTraitOptions {
|
|
365
|
+
int32 id = 1;
|
|
366
|
+
Vendor vendorId = 3;
|
|
367
|
+
uint32 version = 4;
|
|
368
|
+
PublishedBy publishedBy = 5;
|
|
369
|
+
bool extendable = 6;
|
|
370
|
+
Stability stability = 7;
|
|
371
|
+
repeated WdlTraitVersionMapEntry versionMap = 8;
|
|
372
|
+
uint32 reservedCommandTagMin = 10;
|
|
373
|
+
uint32 reservedCommandTagMax = 11;
|
|
374
|
+
uint32 reservedEventTagMin = 12;
|
|
375
|
+
uint32 reservedEventTagMax = 13;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
message WdlTypespaceOptions {
|
|
379
|
+
Vendor vendorId = 3;
|
|
380
|
+
uint32 version = 4;
|
|
381
|
+
Stability stability = 7;
|
|
382
|
+
repeated WdlTraitVersionMapEntry versionMap = 8;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
message WdlStructOptions {
|
|
386
|
+
VersionCompatibleOptions compatibility = 3;
|
|
387
|
+
bool extendable = 5;
|
|
388
|
+
uint32 reservedTagMin = 6;
|
|
389
|
+
uint32 reservedTagMax = 7;
|
|
390
|
+
string extends = 8;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
message TraitMapping {
|
|
394
|
+
string from = 1;
|
|
395
|
+
string to = 2;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
message WdlImplementsOptions {
|
|
399
|
+
string iface = 1;
|
|
400
|
+
repeated TraitMapping traitMapping = 2;
|
|
401
|
+
uint32 minVersion = 3;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
message WdlImplementationOptions {
|
|
405
|
+
repeated TraitMapping traitMapping = 2;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
message WdlResourceVersionEntry {
|
|
409
|
+
uint32 resourceVersion = 1;
|
|
410
|
+
repeated WdlVersionEntry traitVersionList = 2;
|
|
411
|
+
repeated WdlVersionEntry ifaceVersionList = 3;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
message WdlResourceOptions {
|
|
415
|
+
Vendor vendorId = 1;
|
|
416
|
+
uint32 version = 2;
|
|
417
|
+
weave.common.ResourceType resourceType = 3;
|
|
418
|
+
uint32 vendorProductId = 5;
|
|
419
|
+
Stability stability = 6;
|
|
420
|
+
repeated WdlResourceVersionEntry versionMap = 7;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
message WdlIfaceOptions {
|
|
424
|
+
int32 id = 1;
|
|
425
|
+
Vendor vendorId = 2;
|
|
426
|
+
uint32 version = 3;
|
|
427
|
+
Stability stability = 4;
|
|
428
|
+
repeated WdlTraitVersionMapEntry versionMap = 5;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
message WdlInterfaceOptions {
|
|
432
|
+
int32 id = 1;
|
|
433
|
+
int32 vendorId = 2;
|
|
434
|
+
uint32 version = 3;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
message WdlServiceOptions {
|
|
438
|
+
string config = 1;
|
|
439
|
+
WdlTraitOptions trait = 2;
|
|
440
|
+
WdlResourceOptions resource = 3;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
message CaspianOptions {
|
|
444
|
+
bool ignore = 1;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
message VendorOptions {
|
|
448
|
+
string name = 1;
|
|
449
|
+
repeated string packages = 2;
|
|
450
|
+
}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
import "google/protobuf/duration.proto";
|
|
4
|
+
import "google/protobuf/timestamp.proto";
|
|
5
|
+
//import "wdl-event-importance.proto";
|
|
6
|
+
|
|
7
|
+
package weave.common;
|
|
8
|
+
|
|
9
|
+
enum DayOfWeek {
|
|
10
|
+
DAY_OF_WEEK_UNSPECIFIED = 0;
|
|
11
|
+
DAY_OF_WEEK_SUNDAY = 1;
|
|
12
|
+
DAY_OF_WEEK_MONDAY = 2;
|
|
13
|
+
DAY_OF_WEEK_TUESDAY = 4;
|
|
14
|
+
DAY_OF_WEEK_WEDNESDAY = 8;
|
|
15
|
+
DAY_OF_WEEK_THURSDAY = 16;
|
|
16
|
+
DAY_OF_WEEK_FRIDAY = 32;
|
|
17
|
+
DAY_OF_WEEK_SATURDAY = 64;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
enum MonthOfYear {
|
|
21
|
+
MONTH_OF_YEAR_UNSPECIFIED = 0;
|
|
22
|
+
MONTH_OF_YEAR_JANUARY = 1;
|
|
23
|
+
MONTH_OF_YEAR_FEBRUARY = 2;
|
|
24
|
+
MONTH_OF_YEAR_MARCH = 4;
|
|
25
|
+
MONTH_OF_YEAR_APRIL = 8;
|
|
26
|
+
MONTH_OF_YEAR_MAY = 16;
|
|
27
|
+
MONTH_OF_YEAR_JUNE = 32;
|
|
28
|
+
MONTH_OF_YEAR_JULY = 64;
|
|
29
|
+
MONTH_OF_YEAR_AUGUST = 128;
|
|
30
|
+
MONTH_OF_YEAR_SEPTEMBER = 256;
|
|
31
|
+
MONTH_OF_YEAR_OCTOBER = 512;
|
|
32
|
+
MONTH_OF_YEAR_NOVEMBER = 1024;
|
|
33
|
+
MONTH_OF_YEAR_DECEMBER = 2048;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
enum ResourceType {
|
|
37
|
+
RESOURCE_TYPE_UNSPECIFIED = 0;
|
|
38
|
+
RESOURCE_TYPE_DEVICE = 1;
|
|
39
|
+
RESOURCE_TYPE_USER = 2;
|
|
40
|
+
RESOURCE_TYPE_ACCOUNT = 3;
|
|
41
|
+
RESOURCE_TYPE_AREA = 4;
|
|
42
|
+
RESOURCE_TYPE_FIXTURE = 5;
|
|
43
|
+
RESOURCE_TYPE_GROUP = 6;
|
|
44
|
+
RESOURCE_TYPE_ANNOTATION = 7;
|
|
45
|
+
RESOURCE_TYPE_STRUCTURE = 8;
|
|
46
|
+
RESOURCE_TYPE_GUEST = 9;
|
|
47
|
+
RESOURCE_TYPE_SERVICE = 10;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
enum QuantityType {
|
|
51
|
+
QUANTITY_TYPE_UNSPECIFIED = 0;
|
|
52
|
+
LENGTH = 1;
|
|
53
|
+
MASS = 2;
|
|
54
|
+
DURATION = 3;
|
|
55
|
+
CURRENT = 4;
|
|
56
|
+
TEMPERATURE = 5;
|
|
57
|
+
LUMINOUS_INTENSITY = 6;
|
|
58
|
+
AREA = 7;
|
|
59
|
+
VOLUME = 8;
|
|
60
|
+
VELOCITY = 9;
|
|
61
|
+
ACCELERATION = 10;
|
|
62
|
+
FREQUENCY = 27;
|
|
63
|
+
ENERGY = 30;
|
|
64
|
+
ELECTRIC_CHARGE = 32;
|
|
65
|
+
VOLTAGE = 33;
|
|
66
|
+
RESISTANCE = 34;
|
|
67
|
+
MAGNETIC_FLUX_DENSITY = 38;
|
|
68
|
+
ILLUMINANCE = 42;
|
|
69
|
+
HUMIDITY = 46;
|
|
70
|
+
DBM = 47;
|
|
71
|
+
PPM = 48;
|
|
72
|
+
PIRMEASUREMENT = 256;
|
|
73
|
+
NORMALIZED = 257;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
message ResourceId {
|
|
77
|
+
string resourceId = 1;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
message ResourceName {
|
|
81
|
+
string resourceName = 1;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
message TraitTypeId {
|
|
85
|
+
uint32 traitTypeId = 1;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
message TraitTypeInstance {
|
|
89
|
+
TraitTypeId traitTypeId = 1;
|
|
90
|
+
uint32 instanceId = 2;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
message TraitInstanceId {
|
|
94
|
+
string traitInstanceLabel = 1;
|
|
95
|
+
TraitTypeInstance traitInstanceId = 2;
|
|
96
|
+
|
|
97
|
+
enum TraitInstanceCase {
|
|
98
|
+
TRAIT_INSTANCE_NOT_SET = 0;
|
|
99
|
+
TRAIT_INSTANCE_LABEL = 1;
|
|
100
|
+
TRAIT_INSTANCE_ID = 2;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
message FullTraitInstanceId {
|
|
105
|
+
ResourceId resourceId = 1;
|
|
106
|
+
TraitInstanceId traitInstanceId = 2;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
message InterfaceName {
|
|
110
|
+
string interfaceName = 1;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
message EventId {
|
|
114
|
+
ResourceId resourceId = 1;
|
|
115
|
+
wdl.EventImportance importance = 2;
|
|
116
|
+
uint64 id = 3;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
message ProfileSpecificStatusCode {
|
|
120
|
+
uint32 profileId = 1;
|
|
121
|
+
uint32 statusCode = 2;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
message StringRef {
|
|
125
|
+
string literal = 1;
|
|
126
|
+
uint32 reference = 2;
|
|
127
|
+
|
|
128
|
+
enum StringRefCase {
|
|
129
|
+
STRING_REF_NOT_SET = 0;
|
|
130
|
+
LITERAL = 1;
|
|
131
|
+
REFERENCE = 2;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
message Timer {
|
|
136
|
+
google.protobuf.Duration time = 1;
|
|
137
|
+
google.protobuf.Timestamp timeBasis = 2;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
message TimeOfDay {
|
|
141
|
+
uint32 hour = 5;
|
|
142
|
+
uint32 minute = 6;
|
|
143
|
+
uint32 second = 7;
|
|
144
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
import "google/protobuf/timestamp.proto";
|
|
4
|
+
|
|
5
|
+
package weave.trait.auth;
|
|
6
|
+
|
|
7
|
+
message ApplicationKeysTrait {
|
|
8
|
+
repeated EpochKey epochKeys = 1;
|
|
9
|
+
repeated ApplicationMasterKey masterKeys = 2;
|
|
10
|
+
|
|
11
|
+
message EpochKey {
|
|
12
|
+
uint32 keyId = 1;
|
|
13
|
+
google.protobuf.Timestamp startTime = 2;
|
|
14
|
+
bytes key = 3;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
message ApplicationMasterKey {
|
|
18
|
+
uint32 applicationGroupGlobalId = 1;
|
|
19
|
+
uint32 applicationGroupShortId = 2;
|
|
20
|
+
bytes key = 3;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
import "google/protobuf/wrappers.proto";
|
|
4
|
+
import "../../weave/common.proto";
|
|
5
|
+
|
|
6
|
+
package weave.trait.description;
|
|
7
|
+
|
|
8
|
+
message SoftwareComponentTrait {
|
|
9
|
+
repeated SoftwareComponentTypeStruct softwareComponents = 1;
|
|
10
|
+
|
|
11
|
+
message SoftwareComponentTypeStruct {
|
|
12
|
+
string componentName = 1;
|
|
13
|
+
string componentVersion = 2;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
message DeviceIdentityTrait {
|
|
18
|
+
uint32 vendorId = 1;
|
|
19
|
+
weave.common.StringRef vendorIdDescription = 2;
|
|
20
|
+
uint32 vendorProductId = 3;
|
|
21
|
+
weave.common.StringRef productIdDescription = 4;
|
|
22
|
+
uint32 productRevision = 5;
|
|
23
|
+
string serialNumber = 6;
|
|
24
|
+
string softwareVersion = 7;
|
|
25
|
+
google.protobuf.StringValue manufacturingDate = 8;
|
|
26
|
+
weave.common.ResourceId deviceId = 9;
|
|
27
|
+
uint64 fabricId = 10;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
message LabelSettingsTrait {
|
|
31
|
+
string label = 1;
|
|
32
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
import "google/protobuf/duration.proto";
|
|
4
|
+
import "google/protobuf/timestamp.proto";
|
|
5
|
+
import "google/protobuf/wrappers.proto";
|
|
6
|
+
|
|
7
|
+
package weave.trait.heartbeat;
|
|
8
|
+
|
|
9
|
+
message LivenessTrait {
|
|
10
|
+
LivenessDeviceStatus status = 1;
|
|
11
|
+
google.protobuf.Timestamp timeStatusChanged = 2;
|
|
12
|
+
google.protobuf.Duration maxInactivityDuration = 3;
|
|
13
|
+
LivenessDeviceStatus heartbeatStatus = 4;
|
|
14
|
+
google.protobuf.Timestamp timeHeartbeatStatusChanged = 5;
|
|
15
|
+
google.protobuf.BoolValue notifyRequestUnresponsiveness = 6;
|
|
16
|
+
google.protobuf.Timestamp notifyRequestUnresponsivenessTimeStatusChanged = 7;
|
|
17
|
+
google.protobuf.BoolValue commandRequestUnresponsiveness = 8;
|
|
18
|
+
google.protobuf.Timestamp commandRequestUnresponsivenessTimeStatusChanged = 9;
|
|
19
|
+
google.protobuf.StringValue publisherName = 10;
|
|
20
|
+
|
|
21
|
+
enum LivenessDeviceStatus {
|
|
22
|
+
LIVENESS_DEVICE_STATUS_UNSPECIFIED = 0;
|
|
23
|
+
LIVENESS_DEVICE_STATUS_ONLINE = 1;
|
|
24
|
+
LIVENESS_DEVICE_STATUS_UNREACHABLE = 2;
|
|
25
|
+
LIVENESS_DEVICE_STATUS_UNINITIALIZED = 3;
|
|
26
|
+
LIVENESS_DEVICE_STATUS_REBOOTING = 4;
|
|
27
|
+
LIVENESS_DEVICE_STATUS_UPGRADING = 5;
|
|
28
|
+
LIVENESS_DEVICE_STATUS_SCHEDULED_DOWN = 6;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
message LivenessChangeEvent {
|
|
32
|
+
LivenessDeviceStatus status = 1;
|
|
33
|
+
LivenessDeviceStatus heartbeatStatus = 2;
|
|
34
|
+
google.protobuf.BoolValue notifyRequestUnresponsiveness = 3;
|
|
35
|
+
google.protobuf.BoolValue commandRequestUnresponsiveness = 4;
|
|
36
|
+
LivenessDeviceStatus prevStatus = 5;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package weave.trait.locale;
|
|
4
|
+
|
|
5
|
+
message LocaleAvailabilitySettingsTrait {
|
|
6
|
+
repeated string availableLocales = 1;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
message LocaleCapabilitiesTrait {
|
|
10
|
+
repeated string availableLocales = 2;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
message LocaleSettingsTrait {
|
|
14
|
+
string activeLocale = 1;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
message LocaleStateTrait {
|
|
18
|
+
string activeLocale = 1;
|
|
19
|
+
repeated string alternativeLocales = 2;
|
|
20
|
+
}
|