@nebulahome/integration-sdk 0.0.0-stage → 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.
@@ -0,0 +1,613 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "$schema": {
6
+ "type": "string",
7
+ "description": "The JSON Schema an editor checks the file with."
8
+ },
9
+ "listen": {
10
+ "default": [],
11
+ "maxItems": 4,
12
+ "type": "array",
13
+ "items": {
14
+ "anyOf": [
15
+ {
16
+ "type": "object",
17
+ "properties": {
18
+ "mdns": {
19
+ "type": "string",
20
+ "pattern": "^_[a-z0-9][a-z0-9-]{0,62}\\._(?:tcp|udp)$"
21
+ }
22
+ },
23
+ "required": [
24
+ "mdns"
25
+ ],
26
+ "additionalProperties": false
27
+ },
28
+ {
29
+ "type": "object",
30
+ "properties": {
31
+ "module": {
32
+ "type": "string",
33
+ "minLength": 1,
34
+ "maxLength": 256
35
+ },
36
+ "lan": {
37
+ "default": true,
38
+ "type": "boolean"
39
+ }
40
+ },
41
+ "required": [
42
+ "module"
43
+ ],
44
+ "additionalProperties": false
45
+ }
46
+ ]
47
+ }
48
+ },
49
+ "match": {
50
+ "default": [],
51
+ "maxItems": 16,
52
+ "type": "array",
53
+ "items": {
54
+ "anyOf": [
55
+ {
56
+ "type": "object",
57
+ "properties": {
58
+ "path": {
59
+ "type": "string",
60
+ "minLength": 1,
61
+ "maxLength": 256,
62
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
63
+ },
64
+ "equals": {
65
+ "type": [
66
+ "string",
67
+ "number",
68
+ "boolean"
69
+ ]
70
+ }
71
+ },
72
+ "required": [
73
+ "path",
74
+ "equals"
75
+ ],
76
+ "additionalProperties": false
77
+ },
78
+ {
79
+ "type": "object",
80
+ "properties": {
81
+ "path": {
82
+ "type": "string",
83
+ "minLength": 1,
84
+ "maxLength": 256,
85
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
86
+ },
87
+ "exists": {
88
+ "type": "boolean",
89
+ "const": true
90
+ }
91
+ },
92
+ "required": [
93
+ "path",
94
+ "exists"
95
+ ],
96
+ "additionalProperties": false
97
+ },
98
+ {
99
+ "type": "object",
100
+ "properties": {
101
+ "path": {
102
+ "type": "string",
103
+ "minLength": 1,
104
+ "maxLength": 256,
105
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
106
+ },
107
+ "oneOf": {
108
+ "minItems": 1,
109
+ "maxItems": 64,
110
+ "type": "array",
111
+ "items": {
112
+ "type": [
113
+ "string",
114
+ "number",
115
+ "boolean"
116
+ ]
117
+ }
118
+ }
119
+ },
120
+ "required": [
121
+ "path",
122
+ "oneOf"
123
+ ],
124
+ "additionalProperties": false
125
+ },
126
+ {
127
+ "type": "object",
128
+ "properties": {
129
+ "path": {
130
+ "type": "string",
131
+ "minLength": 1,
132
+ "maxLength": 256,
133
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
134
+ },
135
+ "startsWith": {
136
+ "type": "string",
137
+ "minLength": 1,
138
+ "maxLength": 64
139
+ }
140
+ },
141
+ "required": [
142
+ "path",
143
+ "startsWith"
144
+ ],
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
211
+ }
212
+ ]
213
+ }
214
+ },
215
+ "probe": {
216
+ "type": "object",
217
+ "properties": {
218
+ "transport": {
219
+ "type": "string",
220
+ "pattern": "^(?:[a-z][a-z0-9-]{1,63}\\/)?[a-z][a-z0-9-]{1,31}$"
221
+ },
222
+ "op": {
223
+ "type": "string",
224
+ "minLength": 1,
225
+ "maxLength": 32
226
+ },
227
+ "args": {
228
+ "default": {},
229
+ "type": "object",
230
+ "propertyNames": {
231
+ "type": "string"
232
+ },
233
+ "additionalProperties": {
234
+ "$ref": "#/$defs/__schema0"
235
+ }
236
+ },
237
+ "timeoutMs": {
238
+ "type": "integer",
239
+ "minimum": 500,
240
+ "maximum": 30000
241
+ }
242
+ },
243
+ "required": [
244
+ "transport",
245
+ "op"
246
+ ],
247
+ "additionalProperties": false
248
+ },
249
+ "identity": {
250
+ "default": {},
251
+ "type": "object",
252
+ "properties": {
253
+ "model": {
254
+ "anyOf": [
255
+ {
256
+ "type": "string",
257
+ "minLength": 1,
258
+ "maxLength": 256,
259
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
260
+ },
261
+ {
262
+ "minItems": 1,
263
+ "maxItems": 4,
264
+ "type": "array",
265
+ "items": {
266
+ "type": "string",
267
+ "minLength": 1,
268
+ "maxLength": 256,
269
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
270
+ }
271
+ }
272
+ ]
273
+ },
274
+ "externalId": {
275
+ "anyOf": [
276
+ {
277
+ "type": "string",
278
+ "minLength": 1,
279
+ "maxLength": 256,
280
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
281
+ },
282
+ {
283
+ "minItems": 1,
284
+ "maxItems": 4,
285
+ "type": "array",
286
+ "items": {
287
+ "type": "string",
288
+ "minLength": 1,
289
+ "maxLength": 256,
290
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
291
+ }
292
+ }
293
+ ]
294
+ },
295
+ "name": {
296
+ "anyOf": [
297
+ {
298
+ "type": "string",
299
+ "minLength": 1,
300
+ "maxLength": 256,
301
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
302
+ },
303
+ {
304
+ "minItems": 1,
305
+ "maxItems": 4,
306
+ "type": "array",
307
+ "items": {
308
+ "type": "string",
309
+ "minLength": 1,
310
+ "maxLength": 256,
311
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
312
+ }
313
+ }
314
+ ]
315
+ },
316
+ "swVersion": {
317
+ "anyOf": [
318
+ {
319
+ "type": "string",
320
+ "minLength": 1,
321
+ "maxLength": 256,
322
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
323
+ },
324
+ {
325
+ "minItems": 1,
326
+ "maxItems": 4,
327
+ "type": "array",
328
+ "items": {
329
+ "type": "string",
330
+ "minLength": 1,
331
+ "maxLength": 256,
332
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
333
+ }
334
+ }
335
+ ]
336
+ }
337
+ },
338
+ "additionalProperties": false
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
+ },
537
+ "adopt": {
538
+ "default": "owner",
539
+ "type": "string",
540
+ "enum": [
541
+ "owner",
542
+ "automatic"
543
+ ]
544
+ },
545
+ "pairing": {
546
+ "type": "object",
547
+ "properties": {
548
+ "driver": {
549
+ "type": "string",
550
+ "minLength": 1,
551
+ "maxLength": 64
552
+ },
553
+ "open": {
554
+ "type": "string",
555
+ "minLength": 1,
556
+ "maxLength": 64
557
+ },
558
+ "close": {
559
+ "type": "string",
560
+ "minLength": 1,
561
+ "maxLength": 64
562
+ },
563
+ "state": {
564
+ "type": "string",
565
+ "minLength": 1,
566
+ "maxLength": 64
567
+ }
568
+ },
569
+ "required": [
570
+ "driver",
571
+ "open",
572
+ "close",
573
+ "state"
574
+ ],
575
+ "additionalProperties": false
576
+ }
577
+ },
578
+ "additionalProperties": false,
579
+ "$defs": {
580
+ "__schema0": {
581
+ "anyOf": [
582
+ {
583
+ "type": "string"
584
+ },
585
+ {
586
+ "type": "number"
587
+ },
588
+ {
589
+ "type": "boolean"
590
+ },
591
+ {
592
+ "type": "null"
593
+ },
594
+ {
595
+ "type": "array",
596
+ "items": {
597
+ "$ref": "#/$defs/__schema0"
598
+ }
599
+ },
600
+ {
601
+ "type": "object",
602
+ "propertyNames": {
603
+ "type": "string"
604
+ },
605
+ "additionalProperties": {
606
+ "$ref": "#/$defs/__schema0"
607
+ }
608
+ }
609
+ ]
610
+ }
611
+ },
612
+ "title": "NebulaHome integration: discovery.json"
613
+ }