@nebulahome/integration-sdk 1.0.0 → 1.1.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": {
@@ -271,6 +337,203 @@
271
337
  },
272
338
  "additionalProperties": false
273
339
  },
340
+ "matter": {
341
+ "type": "object",
342
+ "properties": {
343
+ "match": {
344
+ "minItems": 1,
345
+ "maxItems": 16,
346
+ "type": "array",
347
+ "items": {
348
+ "anyOf": [
349
+ {
350
+ "type": "object",
351
+ "properties": {
352
+ "path": {
353
+ "type": "string",
354
+ "minLength": 1,
355
+ "maxLength": 256,
356
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
357
+ },
358
+ "equals": {
359
+ "type": [
360
+ "string",
361
+ "number",
362
+ "boolean"
363
+ ]
364
+ }
365
+ },
366
+ "required": [
367
+ "path",
368
+ "equals"
369
+ ],
370
+ "additionalProperties": false
371
+ },
372
+ {
373
+ "type": "object",
374
+ "properties": {
375
+ "path": {
376
+ "type": "string",
377
+ "minLength": 1,
378
+ "maxLength": 256,
379
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
380
+ },
381
+ "exists": {
382
+ "type": "boolean",
383
+ "const": true
384
+ }
385
+ },
386
+ "required": [
387
+ "path",
388
+ "exists"
389
+ ],
390
+ "additionalProperties": false
391
+ },
392
+ {
393
+ "type": "object",
394
+ "properties": {
395
+ "path": {
396
+ "type": "string",
397
+ "minLength": 1,
398
+ "maxLength": 256,
399
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
400
+ },
401
+ "oneOf": {
402
+ "minItems": 1,
403
+ "maxItems": 64,
404
+ "type": "array",
405
+ "items": {
406
+ "type": [
407
+ "string",
408
+ "number",
409
+ "boolean"
410
+ ]
411
+ }
412
+ }
413
+ },
414
+ "required": [
415
+ "path",
416
+ "oneOf"
417
+ ],
418
+ "additionalProperties": false
419
+ },
420
+ {
421
+ "type": "object",
422
+ "properties": {
423
+ "path": {
424
+ "type": "string",
425
+ "minLength": 1,
426
+ "maxLength": 256,
427
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
428
+ },
429
+ "startsWith": {
430
+ "type": "string",
431
+ "minLength": 1,
432
+ "maxLength": 64
433
+ }
434
+ },
435
+ "required": [
436
+ "path",
437
+ "startsWith"
438
+ ],
439
+ "additionalProperties": false
440
+ },
441
+ {
442
+ "type": "object",
443
+ "properties": {
444
+ "path": {
445
+ "type": "string",
446
+ "minLength": 1,
447
+ "maxLength": 256,
448
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
449
+ },
450
+ "endsWith": {
451
+ "type": "string",
452
+ "minLength": 1,
453
+ "maxLength": 64
454
+ }
455
+ },
456
+ "required": [
457
+ "path",
458
+ "endsWith"
459
+ ],
460
+ "additionalProperties": false
461
+ },
462
+ {
463
+ "type": "object",
464
+ "properties": {
465
+ "path": {
466
+ "type": "string",
467
+ "minLength": 1,
468
+ "maxLength": 256,
469
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
470
+ },
471
+ "contains": {
472
+ "type": [
473
+ "string",
474
+ "number",
475
+ "boolean"
476
+ ]
477
+ }
478
+ },
479
+ "required": [
480
+ "path",
481
+ "contains"
482
+ ],
483
+ "additionalProperties": false
484
+ },
485
+ {
486
+ "type": "object",
487
+ "properties": {
488
+ "path": {
489
+ "type": "string",
490
+ "minLength": 1,
491
+ "maxLength": 256,
492
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
493
+ },
494
+ "min": {
495
+ "type": "number"
496
+ },
497
+ "max": {
498
+ "type": "number"
499
+ }
500
+ },
501
+ "required": [
502
+ "path"
503
+ ],
504
+ "additionalProperties": false
505
+ }
506
+ ]
507
+ }
508
+ },
509
+ "model": {
510
+ "default": "productId",
511
+ "anyOf": [
512
+ {
513
+ "type": "string",
514
+ "minLength": 1,
515
+ "maxLength": 256,
516
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
517
+ },
518
+ {
519
+ "minItems": 1,
520
+ "maxItems": 4,
521
+ "type": "array",
522
+ "items": {
523
+ "type": "string",
524
+ "minLength": 1,
525
+ "maxLength": 256,
526
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
527
+ }
528
+ }
529
+ ]
530
+ }
531
+ },
532
+ "required": [
533
+ "match"
534
+ ],
535
+ "additionalProperties": false
536
+ },
274
537
  "adopt": {
275
538
  "default": "owner",
276
539
  "type": "string",
@@ -312,10 +575,6 @@
312
575
  "additionalProperties": false
313
576
  }
314
577
  },
315
- "required": [
316
- "listen",
317
- "identity"
318
- ],
319
578
  "additionalProperties": false,
320
579
  "$defs": {
321
580
  "__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": {
@@ -94,7 +94,7 @@
94
94
  },
95
95
  "wires": {
96
96
  "minItems": 1,
97
- "maxItems": 6,
97
+ "maxItems": 7,
98
98
  "type": "array",
99
99
  "items": {
100
100
  "type": "string",
@@ -104,7 +104,8 @@
104
104
  "ble",
105
105
  "zigbee",
106
106
  "udp",
107
- "modbus"
107
+ "modbus",
108
+ "matter"
108
109
  ]
109
110
  }
110
111
  }
@@ -525,7 +526,7 @@
525
526
  "type": "object",
526
527
  "propertyNames": {
527
528
  "type": "string",
528
- "pattern": "^[a-z][a-z0-9-]{1,63}$"
529
+ "pattern": "^[a-z0-9][a-z0-9-]{1,63}$"
529
530
  },
530
531
  "additionalProperties": {
531
532
  "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
  }