@nebulahome/integration-sdk 1.9.0 → 1.10.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.
- package/CHANGELOG.md +16 -0
- package/FILES.md +38 -10
- package/dist/chunks/node-dist.js +476 -163
- package/dist/chunks/node-index.d.ts +409 -48
- package/dist/chunks/node-project.js +1 -1
- package/dist/index.d.ts +266 -43
- package/dist/schemas.d.ts +164 -17
- package/dist/testing.d.ts +16 -1
- package/dist/testing.js +18 -0
- package/package.json +5 -5
- package/schemas/account.schema.json +167 -0
- package/schemas/profile.schema.json +10 -1
- package/schemas/setup.schema.json +334 -0
|
@@ -557,6 +557,173 @@
|
|
|
557
557
|
"type"
|
|
558
558
|
],
|
|
559
559
|
"additionalProperties": false
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
"type": "object",
|
|
563
|
+
"properties": {
|
|
564
|
+
"key": {
|
|
565
|
+
"type": "string",
|
|
566
|
+
"pattern": "^[a-z][A-Za-z0-9]{0,63}$"
|
|
567
|
+
},
|
|
568
|
+
"label": {
|
|
569
|
+
"type": "string",
|
|
570
|
+
"minLength": 1,
|
|
571
|
+
"maxLength": 64
|
|
572
|
+
},
|
|
573
|
+
"help": {
|
|
574
|
+
"type": "string",
|
|
575
|
+
"maxLength": 256
|
|
576
|
+
},
|
|
577
|
+
"isRequired": {
|
|
578
|
+
"default": false,
|
|
579
|
+
"type": "boolean"
|
|
580
|
+
},
|
|
581
|
+
"shownWhen": {
|
|
582
|
+
"type": "object",
|
|
583
|
+
"properties": {
|
|
584
|
+
"key": {
|
|
585
|
+
"type": "string",
|
|
586
|
+
"pattern": "^[a-z][A-Za-z0-9]{0,63}$"
|
|
587
|
+
},
|
|
588
|
+
"equals": {
|
|
589
|
+
"minItems": 1,
|
|
590
|
+
"maxItems": 64,
|
|
591
|
+
"type": "array",
|
|
592
|
+
"items": {
|
|
593
|
+
"anyOf": [
|
|
594
|
+
{
|
|
595
|
+
"type": "string",
|
|
596
|
+
"minLength": 1,
|
|
597
|
+
"maxLength": 64
|
|
598
|
+
},
|
|
599
|
+
{
|
|
600
|
+
"type": "boolean"
|
|
601
|
+
}
|
|
602
|
+
]
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
},
|
|
606
|
+
"required": [
|
|
607
|
+
"key",
|
|
608
|
+
"equals"
|
|
609
|
+
],
|
|
610
|
+
"additionalProperties": false
|
|
611
|
+
},
|
|
612
|
+
"isLive": {
|
|
613
|
+
"type": "boolean"
|
|
614
|
+
},
|
|
615
|
+
"type": {
|
|
616
|
+
"type": "string",
|
|
617
|
+
"const": "entity"
|
|
618
|
+
},
|
|
619
|
+
"domains": {
|
|
620
|
+
"minItems": 1,
|
|
621
|
+
"maxItems": 21,
|
|
622
|
+
"type": "array",
|
|
623
|
+
"items": {
|
|
624
|
+
"type": "string",
|
|
625
|
+
"enum": [
|
|
626
|
+
"light",
|
|
627
|
+
"switch",
|
|
628
|
+
"sensor",
|
|
629
|
+
"binary_sensor",
|
|
630
|
+
"cover",
|
|
631
|
+
"lock",
|
|
632
|
+
"climate",
|
|
633
|
+
"media_player",
|
|
634
|
+
"camera",
|
|
635
|
+
"button",
|
|
636
|
+
"update",
|
|
637
|
+
"lawn_mower",
|
|
638
|
+
"select",
|
|
639
|
+
"number",
|
|
640
|
+
"vacuum",
|
|
641
|
+
"fan",
|
|
642
|
+
"device_tracker",
|
|
643
|
+
"geo_location",
|
|
644
|
+
"image",
|
|
645
|
+
"custom",
|
|
646
|
+
"alias"
|
|
647
|
+
]
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
},
|
|
651
|
+
"required": [
|
|
652
|
+
"key",
|
|
653
|
+
"label",
|
|
654
|
+
"type"
|
|
655
|
+
],
|
|
656
|
+
"additionalProperties": false
|
|
657
|
+
},
|
|
658
|
+
{
|
|
659
|
+
"type": "object",
|
|
660
|
+
"properties": {
|
|
661
|
+
"key": {
|
|
662
|
+
"type": "string",
|
|
663
|
+
"pattern": "^[a-z][A-Za-z0-9]{0,63}$"
|
|
664
|
+
},
|
|
665
|
+
"label": {
|
|
666
|
+
"type": "string",
|
|
667
|
+
"minLength": 1,
|
|
668
|
+
"maxLength": 64
|
|
669
|
+
},
|
|
670
|
+
"help": {
|
|
671
|
+
"type": "string",
|
|
672
|
+
"maxLength": 256
|
|
673
|
+
},
|
|
674
|
+
"isRequired": {
|
|
675
|
+
"default": false,
|
|
676
|
+
"type": "boolean"
|
|
677
|
+
},
|
|
678
|
+
"shownWhen": {
|
|
679
|
+
"type": "object",
|
|
680
|
+
"properties": {
|
|
681
|
+
"key": {
|
|
682
|
+
"type": "string",
|
|
683
|
+
"pattern": "^[a-z][A-Za-z0-9]{0,63}$"
|
|
684
|
+
},
|
|
685
|
+
"equals": {
|
|
686
|
+
"minItems": 1,
|
|
687
|
+
"maxItems": 64,
|
|
688
|
+
"type": "array",
|
|
689
|
+
"items": {
|
|
690
|
+
"anyOf": [
|
|
691
|
+
{
|
|
692
|
+
"type": "string",
|
|
693
|
+
"minLength": 1,
|
|
694
|
+
"maxLength": 64
|
|
695
|
+
},
|
|
696
|
+
{
|
|
697
|
+
"type": "boolean"
|
|
698
|
+
}
|
|
699
|
+
]
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
},
|
|
703
|
+
"required": [
|
|
704
|
+
"key",
|
|
705
|
+
"equals"
|
|
706
|
+
],
|
|
707
|
+
"additionalProperties": false
|
|
708
|
+
},
|
|
709
|
+
"isLive": {
|
|
710
|
+
"type": "boolean"
|
|
711
|
+
},
|
|
712
|
+
"type": {
|
|
713
|
+
"type": "string",
|
|
714
|
+
"const": "icon"
|
|
715
|
+
},
|
|
716
|
+
"default": {
|
|
717
|
+
"type": "string",
|
|
718
|
+
"pattern": "^[a-z0-9][a-z0-9-]{0,63}$"
|
|
719
|
+
}
|
|
720
|
+
},
|
|
721
|
+
"required": [
|
|
722
|
+
"key",
|
|
723
|
+
"label",
|
|
724
|
+
"type"
|
|
725
|
+
],
|
|
726
|
+
"additionalProperties": false
|
|
560
727
|
}
|
|
561
728
|
]
|
|
562
729
|
}
|
|
@@ -1119,6 +1286,173 @@
|
|
|
1119
1286
|
"type"
|
|
1120
1287
|
],
|
|
1121
1288
|
"additionalProperties": false
|
|
1289
|
+
},
|
|
1290
|
+
{
|
|
1291
|
+
"type": "object",
|
|
1292
|
+
"properties": {
|
|
1293
|
+
"key": {
|
|
1294
|
+
"type": "string",
|
|
1295
|
+
"pattern": "^[a-z][A-Za-z0-9]{0,63}$"
|
|
1296
|
+
},
|
|
1297
|
+
"label": {
|
|
1298
|
+
"type": "string",
|
|
1299
|
+
"minLength": 1,
|
|
1300
|
+
"maxLength": 64
|
|
1301
|
+
},
|
|
1302
|
+
"help": {
|
|
1303
|
+
"type": "string",
|
|
1304
|
+
"maxLength": 256
|
|
1305
|
+
},
|
|
1306
|
+
"isRequired": {
|
|
1307
|
+
"default": false,
|
|
1308
|
+
"type": "boolean"
|
|
1309
|
+
},
|
|
1310
|
+
"shownWhen": {
|
|
1311
|
+
"type": "object",
|
|
1312
|
+
"properties": {
|
|
1313
|
+
"key": {
|
|
1314
|
+
"type": "string",
|
|
1315
|
+
"pattern": "^[a-z][A-Za-z0-9]{0,63}$"
|
|
1316
|
+
},
|
|
1317
|
+
"equals": {
|
|
1318
|
+
"minItems": 1,
|
|
1319
|
+
"maxItems": 64,
|
|
1320
|
+
"type": "array",
|
|
1321
|
+
"items": {
|
|
1322
|
+
"anyOf": [
|
|
1323
|
+
{
|
|
1324
|
+
"type": "string",
|
|
1325
|
+
"minLength": 1,
|
|
1326
|
+
"maxLength": 64
|
|
1327
|
+
},
|
|
1328
|
+
{
|
|
1329
|
+
"type": "boolean"
|
|
1330
|
+
}
|
|
1331
|
+
]
|
|
1332
|
+
}
|
|
1333
|
+
}
|
|
1334
|
+
},
|
|
1335
|
+
"required": [
|
|
1336
|
+
"key",
|
|
1337
|
+
"equals"
|
|
1338
|
+
],
|
|
1339
|
+
"additionalProperties": false
|
|
1340
|
+
},
|
|
1341
|
+
"isLive": {
|
|
1342
|
+
"type": "boolean"
|
|
1343
|
+
},
|
|
1344
|
+
"type": {
|
|
1345
|
+
"type": "string",
|
|
1346
|
+
"const": "entity"
|
|
1347
|
+
},
|
|
1348
|
+
"domains": {
|
|
1349
|
+
"minItems": 1,
|
|
1350
|
+
"maxItems": 21,
|
|
1351
|
+
"type": "array",
|
|
1352
|
+
"items": {
|
|
1353
|
+
"type": "string",
|
|
1354
|
+
"enum": [
|
|
1355
|
+
"light",
|
|
1356
|
+
"switch",
|
|
1357
|
+
"sensor",
|
|
1358
|
+
"binary_sensor",
|
|
1359
|
+
"cover",
|
|
1360
|
+
"lock",
|
|
1361
|
+
"climate",
|
|
1362
|
+
"media_player",
|
|
1363
|
+
"camera",
|
|
1364
|
+
"button",
|
|
1365
|
+
"update",
|
|
1366
|
+
"lawn_mower",
|
|
1367
|
+
"select",
|
|
1368
|
+
"number",
|
|
1369
|
+
"vacuum",
|
|
1370
|
+
"fan",
|
|
1371
|
+
"device_tracker",
|
|
1372
|
+
"geo_location",
|
|
1373
|
+
"image",
|
|
1374
|
+
"custom",
|
|
1375
|
+
"alias"
|
|
1376
|
+
]
|
|
1377
|
+
}
|
|
1378
|
+
}
|
|
1379
|
+
},
|
|
1380
|
+
"required": [
|
|
1381
|
+
"key",
|
|
1382
|
+
"label",
|
|
1383
|
+
"type"
|
|
1384
|
+
],
|
|
1385
|
+
"additionalProperties": false
|
|
1386
|
+
},
|
|
1387
|
+
{
|
|
1388
|
+
"type": "object",
|
|
1389
|
+
"properties": {
|
|
1390
|
+
"key": {
|
|
1391
|
+
"type": "string",
|
|
1392
|
+
"pattern": "^[a-z][A-Za-z0-9]{0,63}$"
|
|
1393
|
+
},
|
|
1394
|
+
"label": {
|
|
1395
|
+
"type": "string",
|
|
1396
|
+
"minLength": 1,
|
|
1397
|
+
"maxLength": 64
|
|
1398
|
+
},
|
|
1399
|
+
"help": {
|
|
1400
|
+
"type": "string",
|
|
1401
|
+
"maxLength": 256
|
|
1402
|
+
},
|
|
1403
|
+
"isRequired": {
|
|
1404
|
+
"default": false,
|
|
1405
|
+
"type": "boolean"
|
|
1406
|
+
},
|
|
1407
|
+
"shownWhen": {
|
|
1408
|
+
"type": "object",
|
|
1409
|
+
"properties": {
|
|
1410
|
+
"key": {
|
|
1411
|
+
"type": "string",
|
|
1412
|
+
"pattern": "^[a-z][A-Za-z0-9]{0,63}$"
|
|
1413
|
+
},
|
|
1414
|
+
"equals": {
|
|
1415
|
+
"minItems": 1,
|
|
1416
|
+
"maxItems": 64,
|
|
1417
|
+
"type": "array",
|
|
1418
|
+
"items": {
|
|
1419
|
+
"anyOf": [
|
|
1420
|
+
{
|
|
1421
|
+
"type": "string",
|
|
1422
|
+
"minLength": 1,
|
|
1423
|
+
"maxLength": 64
|
|
1424
|
+
},
|
|
1425
|
+
{
|
|
1426
|
+
"type": "boolean"
|
|
1427
|
+
}
|
|
1428
|
+
]
|
|
1429
|
+
}
|
|
1430
|
+
}
|
|
1431
|
+
},
|
|
1432
|
+
"required": [
|
|
1433
|
+
"key",
|
|
1434
|
+
"equals"
|
|
1435
|
+
],
|
|
1436
|
+
"additionalProperties": false
|
|
1437
|
+
},
|
|
1438
|
+
"isLive": {
|
|
1439
|
+
"type": "boolean"
|
|
1440
|
+
},
|
|
1441
|
+
"type": {
|
|
1442
|
+
"type": "string",
|
|
1443
|
+
"const": "icon"
|
|
1444
|
+
},
|
|
1445
|
+
"default": {
|
|
1446
|
+
"type": "string",
|
|
1447
|
+
"pattern": "^[a-z0-9][a-z0-9-]{0,63}$"
|
|
1448
|
+
}
|
|
1449
|
+
},
|
|
1450
|
+
"required": [
|
|
1451
|
+
"key",
|
|
1452
|
+
"label",
|
|
1453
|
+
"type"
|
|
1454
|
+
],
|
|
1455
|
+
"additionalProperties": false
|
|
1122
1456
|
}
|
|
1123
1457
|
]
|
|
1124
1458
|
}
|