@nebulahome/integration-sdk 1.0.0 → 1.2.0

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.
@@ -7,7 +7,7 @@
7
7
  "description": "The JSON Schema an editor checks the file with."
8
8
  },
9
9
  "listen": {
10
- "minItems": 1,
10
+ "default": [],
11
11
  "maxItems": 4,
12
12
  "type": "array",
13
13
  "items": {
@@ -143,6 +143,71 @@
143
143
  "startsWith"
144
144
  ],
145
145
  "additionalProperties": false
146
+ },
147
+ {
148
+ "type": "object",
149
+ "properties": {
150
+ "path": {
151
+ "type": "string",
152
+ "minLength": 1,
153
+ "maxLength": 256,
154
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
155
+ },
156
+ "endsWith": {
157
+ "type": "string",
158
+ "minLength": 1,
159
+ "maxLength": 64
160
+ }
161
+ },
162
+ "required": [
163
+ "path",
164
+ "endsWith"
165
+ ],
166
+ "additionalProperties": false
167
+ },
168
+ {
169
+ "type": "object",
170
+ "properties": {
171
+ "path": {
172
+ "type": "string",
173
+ "minLength": 1,
174
+ "maxLength": 256,
175
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
176
+ },
177
+ "contains": {
178
+ "type": [
179
+ "string",
180
+ "number",
181
+ "boolean"
182
+ ]
183
+ }
184
+ },
185
+ "required": [
186
+ "path",
187
+ "contains"
188
+ ],
189
+ "additionalProperties": false
190
+ },
191
+ {
192
+ "type": "object",
193
+ "properties": {
194
+ "path": {
195
+ "type": "string",
196
+ "minLength": 1,
197
+ "maxLength": 256,
198
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
199
+ },
200
+ "min": {
201
+ "type": "number"
202
+ },
203
+ "max": {
204
+ "type": "number"
205
+ }
206
+ },
207
+ "required": [
208
+ "path"
209
+ ],
210
+ "additionalProperties": false
146
211
  }
147
212
  ]
148
213
  }
@@ -182,6 +247,7 @@
182
247
  "additionalProperties": false
183
248
  },
184
249
  "identity": {
250
+ "default": {},
185
251
  "type": "object",
186
252
  "properties": {
187
253
  "model": {
@@ -267,10 +333,270 @@
267
333
  }
268
334
  }
269
335
  ]
336
+ },
337
+ "mac": {
338
+ "anyOf": [
339
+ {
340
+ "type": "string",
341
+ "minLength": 1,
342
+ "maxLength": 256,
343
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
344
+ },
345
+ {
346
+ "minItems": 1,
347
+ "maxItems": 4,
348
+ "type": "array",
349
+ "items": {
350
+ "type": "string",
351
+ "minLength": 1,
352
+ "maxLength": 256,
353
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
354
+ }
355
+ }
356
+ ]
357
+ },
358
+ "serialNumber": {
359
+ "anyOf": [
360
+ {
361
+ "type": "string",
362
+ "minLength": 1,
363
+ "maxLength": 256,
364
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
365
+ },
366
+ {
367
+ "minItems": 1,
368
+ "maxItems": 4,
369
+ "type": "array",
370
+ "items": {
371
+ "type": "string",
372
+ "minLength": 1,
373
+ "maxLength": 256,
374
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
375
+ }
376
+ }
377
+ ]
378
+ },
379
+ "auth": {
380
+ "anyOf": [
381
+ {
382
+ "type": "string",
383
+ "minLength": 1,
384
+ "maxLength": 256,
385
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
386
+ },
387
+ {
388
+ "minItems": 1,
389
+ "maxItems": 4,
390
+ "type": "array",
391
+ "items": {
392
+ "type": "string",
393
+ "minLength": 1,
394
+ "maxLength": 256,
395
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
396
+ }
397
+ }
398
+ ]
270
399
  }
271
400
  },
272
401
  "additionalProperties": false
273
402
  },
403
+ "matter": {
404
+ "type": "object",
405
+ "properties": {
406
+ "match": {
407
+ "minItems": 1,
408
+ "maxItems": 16,
409
+ "type": "array",
410
+ "items": {
411
+ "anyOf": [
412
+ {
413
+ "type": "object",
414
+ "properties": {
415
+ "path": {
416
+ "type": "string",
417
+ "minLength": 1,
418
+ "maxLength": 256,
419
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
420
+ },
421
+ "equals": {
422
+ "type": [
423
+ "string",
424
+ "number",
425
+ "boolean"
426
+ ]
427
+ }
428
+ },
429
+ "required": [
430
+ "path",
431
+ "equals"
432
+ ],
433
+ "additionalProperties": false
434
+ },
435
+ {
436
+ "type": "object",
437
+ "properties": {
438
+ "path": {
439
+ "type": "string",
440
+ "minLength": 1,
441
+ "maxLength": 256,
442
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
443
+ },
444
+ "exists": {
445
+ "type": "boolean",
446
+ "const": true
447
+ }
448
+ },
449
+ "required": [
450
+ "path",
451
+ "exists"
452
+ ],
453
+ "additionalProperties": false
454
+ },
455
+ {
456
+ "type": "object",
457
+ "properties": {
458
+ "path": {
459
+ "type": "string",
460
+ "minLength": 1,
461
+ "maxLength": 256,
462
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
463
+ },
464
+ "oneOf": {
465
+ "minItems": 1,
466
+ "maxItems": 64,
467
+ "type": "array",
468
+ "items": {
469
+ "type": [
470
+ "string",
471
+ "number",
472
+ "boolean"
473
+ ]
474
+ }
475
+ }
476
+ },
477
+ "required": [
478
+ "path",
479
+ "oneOf"
480
+ ],
481
+ "additionalProperties": false
482
+ },
483
+ {
484
+ "type": "object",
485
+ "properties": {
486
+ "path": {
487
+ "type": "string",
488
+ "minLength": 1,
489
+ "maxLength": 256,
490
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
491
+ },
492
+ "startsWith": {
493
+ "type": "string",
494
+ "minLength": 1,
495
+ "maxLength": 64
496
+ }
497
+ },
498
+ "required": [
499
+ "path",
500
+ "startsWith"
501
+ ],
502
+ "additionalProperties": false
503
+ },
504
+ {
505
+ "type": "object",
506
+ "properties": {
507
+ "path": {
508
+ "type": "string",
509
+ "minLength": 1,
510
+ "maxLength": 256,
511
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
512
+ },
513
+ "endsWith": {
514
+ "type": "string",
515
+ "minLength": 1,
516
+ "maxLength": 64
517
+ }
518
+ },
519
+ "required": [
520
+ "path",
521
+ "endsWith"
522
+ ],
523
+ "additionalProperties": false
524
+ },
525
+ {
526
+ "type": "object",
527
+ "properties": {
528
+ "path": {
529
+ "type": "string",
530
+ "minLength": 1,
531
+ "maxLength": 256,
532
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
533
+ },
534
+ "contains": {
535
+ "type": [
536
+ "string",
537
+ "number",
538
+ "boolean"
539
+ ]
540
+ }
541
+ },
542
+ "required": [
543
+ "path",
544
+ "contains"
545
+ ],
546
+ "additionalProperties": false
547
+ },
548
+ {
549
+ "type": "object",
550
+ "properties": {
551
+ "path": {
552
+ "type": "string",
553
+ "minLength": 1,
554
+ "maxLength": 256,
555
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
556
+ },
557
+ "min": {
558
+ "type": "number"
559
+ },
560
+ "max": {
561
+ "type": "number"
562
+ }
563
+ },
564
+ "required": [
565
+ "path"
566
+ ],
567
+ "additionalProperties": false
568
+ }
569
+ ]
570
+ }
571
+ },
572
+ "model": {
573
+ "default": "productId",
574
+ "anyOf": [
575
+ {
576
+ "type": "string",
577
+ "minLength": 1,
578
+ "maxLength": 256,
579
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
580
+ },
581
+ {
582
+ "minItems": 1,
583
+ "maxItems": 4,
584
+ "type": "array",
585
+ "items": {
586
+ "type": "string",
587
+ "minLength": 1,
588
+ "maxLength": 256,
589
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
590
+ }
591
+ }
592
+ ]
593
+ }
594
+ },
595
+ "required": [
596
+ "match"
597
+ ],
598
+ "additionalProperties": false
599
+ },
274
600
  "adopt": {
275
601
  "default": "owner",
276
602
  "type": "string",
@@ -312,10 +638,6 @@
312
638
  "additionalProperties": false
313
639
  }
314
640
  },
315
- "required": [
316
- "listen",
317
- "identity"
318
- ],
319
641
  "additionalProperties": false,
320
642
  "$defs": {
321
643
  "__schema0": {
@@ -73,7 +73,8 @@
73
73
  "type": "string",
74
74
  "enum": [
75
75
  "declarative",
76
- "code"
76
+ "code",
77
+ "matter"
77
78
  ]
78
79
  },
79
80
  "defaultIcon": {
@@ -60,6 +60,18 @@
60
60
  "default": false,
61
61
  "type": "boolean"
62
62
  },
63
+ "twins": {
64
+ "minItems": 1,
65
+ "maxItems": 2,
66
+ "type": "array",
67
+ "items": {
68
+ "type": "string",
69
+ "enum": [
70
+ "mac",
71
+ "serial"
72
+ ]
73
+ }
74
+ },
63
75
  "setup": {
64
76
  "type": "string",
65
77
  "minLength": 1,
@@ -94,7 +106,7 @@
94
106
  },
95
107
  "wires": {
96
108
  "minItems": 1,
97
- "maxItems": 6,
109
+ "maxItems": 7,
98
110
  "type": "array",
99
111
  "items": {
100
112
  "type": "string",
@@ -104,7 +116,8 @@
104
116
  "ble",
105
117
  "zigbee",
106
118
  "udp",
107
- "modbus"
119
+ "modbus",
120
+ "matter"
108
121
  ]
109
122
  }
110
123
  }
@@ -525,7 +538,7 @@
525
538
  "type": "object",
526
539
  "propertyNames": {
527
540
  "type": "string",
528
- "pattern": "^[a-z][a-z0-9-]{1,63}$"
541
+ "pattern": "^[a-z0-9][a-z0-9-]{1,63}$"
529
542
  },
530
543
  "additionalProperties": {
531
544
  "type": "string",
@@ -139,6 +139,71 @@
139
139
  "startsWith"
140
140
  ],
141
141
  "additionalProperties": false
142
+ },
143
+ {
144
+ "type": "object",
145
+ "properties": {
146
+ "path": {
147
+ "type": "string",
148
+ "minLength": 1,
149
+ "maxLength": 256,
150
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
151
+ },
152
+ "endsWith": {
153
+ "type": "string",
154
+ "minLength": 1,
155
+ "maxLength": 64
156
+ }
157
+ },
158
+ "required": [
159
+ "path",
160
+ "endsWith"
161
+ ],
162
+ "additionalProperties": false
163
+ },
164
+ {
165
+ "type": "object",
166
+ "properties": {
167
+ "path": {
168
+ "type": "string",
169
+ "minLength": 1,
170
+ "maxLength": 256,
171
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
172
+ },
173
+ "contains": {
174
+ "type": [
175
+ "string",
176
+ "number",
177
+ "boolean"
178
+ ]
179
+ }
180
+ },
181
+ "required": [
182
+ "path",
183
+ "contains"
184
+ ],
185
+ "additionalProperties": false
186
+ },
187
+ {
188
+ "type": "object",
189
+ "properties": {
190
+ "path": {
191
+ "type": "string",
192
+ "minLength": 1,
193
+ "maxLength": 256,
194
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
195
+ },
196
+ "min": {
197
+ "type": "number"
198
+ },
199
+ "max": {
200
+ "type": "number"
201
+ }
202
+ },
203
+ "required": [
204
+ "path"
205
+ ],
206
+ "additionalProperties": false
142
207
  }
143
208
  ]
144
209
  }
@@ -181,6 +246,18 @@
181
246
  "minLength": 1,
182
247
  "maxLength": 256,
183
248
  "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
249
+ },
250
+ "mac": {
251
+ "type": "string",
252
+ "minLength": 1,
253
+ "maxLength": 256,
254
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
255
+ },
256
+ "serialNumber": {
257
+ "type": "string",
258
+ "minLength": 1,
259
+ "maxLength": 256,
260
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
184
261
  }
185
262
  },
186
263
  "required": [
@@ -1238,6 +1315,43 @@
1238
1315
  "minimum": 0,
1239
1316
  "maximum": 6
1240
1317
  },
1318
+ "link": {
1319
+ "type": "object",
1320
+ "properties": {
1321
+ "key": {
1322
+ "type": "string",
1323
+ "minLength": 1,
1324
+ "maxLength": 64
1325
+ },
1326
+ "matter": {
1327
+ "type": "object",
1328
+ "properties": {
1329
+ "endpoint": {
1330
+ "type": "integer",
1331
+ "minimum": 0,
1332
+ "maximum": 65535
1333
+ },
1334
+ "cluster": {
1335
+ "type": "integer",
1336
+ "minimum": 0,
1337
+ "maximum": 9007199254740991
1338
+ },
1339
+ "attribute": {
1340
+ "type": "integer",
1341
+ "minimum": 0,
1342
+ "maximum": 9007199254740991
1343
+ }
1344
+ },
1345
+ "required": [
1346
+ "endpoint",
1347
+ "cluster",
1348
+ "attribute"
1349
+ ],
1350
+ "additionalProperties": false
1351
+ }
1352
+ },
1353
+ "additionalProperties": false
1354
+ },
1241
1355
  "stream": {
1242
1356
  "type": "object",
1243
1357
  "properties": {