@camstack/types 1.2.355 → 1.2.357

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/dist/addon.js CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_sleep = require("./sleep-BxOWTkUD.js");
2
+ const require_sleep = require("./sleep-BFVY4_xY.js");
3
3
  const require_event_category = require("./event-category-T43rdQWR.js");
4
4
  const require_err_msg = require("./err-msg-Dx2Kor0g.js");
5
5
  //#region src/generated/cap-input-defaults.ts
@@ -428,9 +428,1692 @@ function isProviderOptionalMethodName(capName, method) {
428
428
  return methods !== void 0 && methods.includes(method);
429
429
  }
430
430
  //#endregion
431
+ //#region src/generated/addon-cap-facts.ts
432
+ /** cap name -> the numeric state field whose strict advance IS the cap's one-shot event. */
433
+ var CAP_ADVANCE_FIELDS = Object.freeze({ "doorbell": "lastPressedAt" });
434
+ /** cap name -> the bindable leaves of its runtime state (absent: none). */
435
+ var CAP_STATE_LEAVES = Object.freeze({
436
+ "air-quality-sensor": [
437
+ {
438
+ "path": "co2Ppm",
439
+ "valueType": "number"
440
+ },
441
+ {
442
+ "path": "vocPpb",
443
+ "valueType": "number"
444
+ },
445
+ {
446
+ "path": "pm25",
447
+ "valueType": "number"
448
+ },
449
+ {
450
+ "path": "pm10",
451
+ "valueType": "number"
452
+ },
453
+ {
454
+ "path": "aqi",
455
+ "valueType": "number"
456
+ },
457
+ {
458
+ "path": "unit",
459
+ "valueType": "string"
460
+ },
461
+ {
462
+ "path": "precision",
463
+ "valueType": "number"
464
+ }
465
+ ],
466
+ "alarm-panel": [
467
+ {
468
+ "path": "state",
469
+ "valueType": "enum",
470
+ "enumValues": [
471
+ "disarmed",
472
+ "armed_home",
473
+ "armed_away",
474
+ "armed_night",
475
+ "armed_vacation",
476
+ "armed_custom_bypass",
477
+ "arming",
478
+ "disarming",
479
+ "pending",
480
+ "triggered"
481
+ ]
482
+ },
483
+ {
484
+ "path": "targetMode",
485
+ "valueType": "enum",
486
+ "enumValues": [
487
+ "home",
488
+ "away",
489
+ "night",
490
+ "vacation",
491
+ "custom_bypass"
492
+ ]
493
+ },
494
+ {
495
+ "path": "requiresCode",
496
+ "valueType": "boolean"
497
+ }
498
+ ],
499
+ "ambient-light-sensor": [
500
+ {
501
+ "path": "lux",
502
+ "valueType": "number"
503
+ },
504
+ {
505
+ "path": "unit",
506
+ "valueType": "string"
507
+ },
508
+ {
509
+ "path": "precision",
510
+ "valueType": "number"
511
+ }
512
+ ],
513
+ "audio-metrics": [
514
+ {
515
+ "path": "ts",
516
+ "valueType": "number"
517
+ },
518
+ {
519
+ "path": "windowSec",
520
+ "valueType": "number"
521
+ },
522
+ {
523
+ "path": "level.rms",
524
+ "valueType": "number"
525
+ },
526
+ {
527
+ "path": "level.dbfs",
528
+ "valueType": "number"
529
+ },
530
+ {
531
+ "path": "peakDbfs",
532
+ "valueType": "number"
533
+ },
534
+ {
535
+ "path": "avgDbfs",
536
+ "valueType": "number"
537
+ },
538
+ {
539
+ "path": "current.className",
540
+ "valueType": "string"
541
+ },
542
+ {
543
+ "path": "current.score",
544
+ "valueType": "number"
545
+ },
546
+ {
547
+ "path": "current.timestamp",
548
+ "valueType": "number"
549
+ }
550
+ ],
551
+ "automation-control": [
552
+ {
553
+ "path": "enabled",
554
+ "valueType": "boolean"
555
+ },
556
+ {
557
+ "path": "isRunning",
558
+ "valueType": "boolean"
559
+ },
560
+ {
561
+ "path": "lastTriggeredAt",
562
+ "valueType": "number"
563
+ },
564
+ {
565
+ "path": "lastError",
566
+ "valueType": "string"
567
+ }
568
+ ],
569
+ "battery": [
570
+ {
571
+ "path": "percentage",
572
+ "valueType": "number"
573
+ },
574
+ {
575
+ "path": "charging",
576
+ "valueType": "enum",
577
+ "enumValues": [
578
+ "dc",
579
+ "solar",
580
+ "none",
581
+ "unknown"
582
+ ]
583
+ },
584
+ {
585
+ "path": "sleeping",
586
+ "valueType": "boolean"
587
+ },
588
+ {
589
+ "path": "lastUpdated",
590
+ "valueType": "number"
591
+ },
592
+ {
593
+ "path": "lastContactAt",
594
+ "valueType": "number"
595
+ },
596
+ {
597
+ "path": "lastFullRefreshAt",
598
+ "valueType": "number"
599
+ },
600
+ {
601
+ "path": "binary",
602
+ "valueType": "boolean"
603
+ }
604
+ ],
605
+ "binary": [{
606
+ "path": "on",
607
+ "valueType": "boolean"
608
+ }],
609
+ "brightness": [{
610
+ "path": "percentage",
611
+ "valueType": "number"
612
+ }],
613
+ "broker": [{
614
+ "path": "brokerCount",
615
+ "valueType": "number"
616
+ }, {
617
+ "path": "connectedCount",
618
+ "valueType": "number"
619
+ }],
620
+ "camera-credentials": [
621
+ {
622
+ "path": "host",
623
+ "valueType": "string"
624
+ },
625
+ {
626
+ "path": "port",
627
+ "valueType": "number"
628
+ },
629
+ {
630
+ "path": "onvifPort",
631
+ "valueType": "number"
632
+ },
633
+ {
634
+ "path": "rtspPort",
635
+ "valueType": "number"
636
+ },
637
+ {
638
+ "path": "https",
639
+ "valueType": "boolean"
640
+ },
641
+ {
642
+ "path": "hasUsername",
643
+ "valueType": "boolean"
644
+ },
645
+ {
646
+ "path": "hasPassword",
647
+ "valueType": "boolean"
648
+ },
649
+ {
650
+ "path": "onvifProfile",
651
+ "valueType": "string"
652
+ }
653
+ ],
654
+ "camera-streams": [
655
+ {
656
+ "path": "online",
657
+ "valueType": "boolean"
658
+ },
659
+ {
660
+ "path": "slotStatuses.high",
661
+ "valueType": "enum",
662
+ "enumValues": [
663
+ "unassigned",
664
+ "idle",
665
+ "connecting",
666
+ "streaming",
667
+ "error"
668
+ ]
669
+ },
670
+ {
671
+ "path": "slotStatuses.mid",
672
+ "valueType": "enum",
673
+ "enumValues": [
674
+ "unassigned",
675
+ "idle",
676
+ "connecting",
677
+ "streaming",
678
+ "error"
679
+ ]
680
+ },
681
+ {
682
+ "path": "slotStatuses.low",
683
+ "valueType": "enum",
684
+ "enumValues": [
685
+ "unassigned",
686
+ "idle",
687
+ "connecting",
688
+ "streaming",
689
+ "error"
690
+ ]
691
+ },
692
+ {
693
+ "path": "slotErrors.high",
694
+ "valueType": "string"
695
+ },
696
+ {
697
+ "path": "slotErrors.mid",
698
+ "valueType": "string"
699
+ },
700
+ {
701
+ "path": "slotErrors.low",
702
+ "valueType": "string"
703
+ }
704
+ ],
705
+ "carbon-monoxide": [{
706
+ "path": "detected",
707
+ "valueType": "boolean"
708
+ }],
709
+ "climate-control": [
710
+ {
711
+ "path": "mode",
712
+ "valueType": "enum",
713
+ "enumValues": [
714
+ "off",
715
+ "heat",
716
+ "cool",
717
+ "auto",
718
+ "heat_cool",
719
+ "fan_only",
720
+ "dry"
721
+ ]
722
+ },
723
+ {
724
+ "path": "fanMode",
725
+ "valueType": "string"
726
+ },
727
+ {
728
+ "path": "preset",
729
+ "valueType": "string"
730
+ },
731
+ {
732
+ "path": "target",
733
+ "valueType": "number"
734
+ },
735
+ {
736
+ "path": "targetHigh",
737
+ "valueType": "number"
738
+ },
739
+ {
740
+ "path": "targetLow",
741
+ "valueType": "number"
742
+ },
743
+ {
744
+ "path": "targetHumidity",
745
+ "valueType": "number"
746
+ },
747
+ {
748
+ "path": "currentTemp",
749
+ "valueType": "number"
750
+ },
751
+ {
752
+ "path": "currentHumidity",
753
+ "valueType": "number"
754
+ },
755
+ {
756
+ "path": "swingVertical",
757
+ "valueType": "boolean"
758
+ },
759
+ {
760
+ "path": "swingHorizontal",
761
+ "valueType": "boolean"
762
+ }
763
+ ],
764
+ "color": [
765
+ {
766
+ "path": "mode",
767
+ "valueType": "enum",
768
+ "enumValues": [
769
+ "rgb",
770
+ "hsv",
771
+ "mired"
772
+ ]
773
+ },
774
+ {
775
+ "path": "rgb.r",
776
+ "valueType": "number"
777
+ },
778
+ {
779
+ "path": "rgb.g",
780
+ "valueType": "number"
781
+ },
782
+ {
783
+ "path": "rgb.b",
784
+ "valueType": "number"
785
+ },
786
+ {
787
+ "path": "hsv.h",
788
+ "valueType": "number"
789
+ },
790
+ {
791
+ "path": "hsv.s",
792
+ "valueType": "number"
793
+ },
794
+ {
795
+ "path": "hsv.v",
796
+ "valueType": "number"
797
+ },
798
+ {
799
+ "path": "mireds",
800
+ "valueType": "number"
801
+ }
802
+ ],
803
+ "connectivity": [{
804
+ "path": "connected",
805
+ "valueType": "boolean"
806
+ }],
807
+ "contact": [{
808
+ "path": "entryOpen",
809
+ "valueType": "boolean"
810
+ }],
811
+ "control": [
812
+ {
813
+ "path": "kind",
814
+ "valueType": "enum",
815
+ "enumValues": [
816
+ "numeric",
817
+ "select",
818
+ "text",
819
+ "datetime"
820
+ ]
821
+ },
822
+ {
823
+ "path": "unit",
824
+ "valueType": "string"
825
+ },
826
+ {
827
+ "path": "min",
828
+ "valueType": "number"
829
+ },
830
+ {
831
+ "path": "max",
832
+ "valueType": "number"
833
+ },
834
+ {
835
+ "path": "step",
836
+ "valueType": "number"
837
+ },
838
+ {
839
+ "path": "precision",
840
+ "valueType": "number"
841
+ },
842
+ {
843
+ "path": "format",
844
+ "valueType": "enum",
845
+ "enumValues": [
846
+ "date",
847
+ "time",
848
+ "datetime"
849
+ ]
850
+ }
851
+ ],
852
+ "cover": [
853
+ {
854
+ "path": "state",
855
+ "valueType": "enum",
856
+ "enumValues": [
857
+ "open",
858
+ "opening",
859
+ "closing",
860
+ "closed",
861
+ "stopped"
862
+ ]
863
+ },
864
+ {
865
+ "path": "position",
866
+ "valueType": "number"
867
+ },
868
+ {
869
+ "path": "tiltPosition",
870
+ "valueType": "number"
871
+ }
872
+ ],
873
+ "day-night": [
874
+ {
875
+ "path": "mode",
876
+ "valueType": "enum",
877
+ "enumValues": [
878
+ "auto",
879
+ "day",
880
+ "night",
881
+ "schedule"
882
+ ]
883
+ },
884
+ {
885
+ "path": "sensitivity",
886
+ "valueType": "number"
887
+ },
888
+ {
889
+ "path": "switchDelaySec",
890
+ "valueType": "number"
891
+ }
892
+ ],
893
+ "device-adoption": [
894
+ {
895
+ "path": "lastDiscoveryAt",
896
+ "valueType": "number"
897
+ },
898
+ {
899
+ "path": "candidateCount",
900
+ "valueType": "number"
901
+ },
902
+ {
903
+ "path": "adoptedCount",
904
+ "valueType": "number"
905
+ },
906
+ {
907
+ "path": "lastError",
908
+ "valueType": "string"
909
+ }
910
+ ],
911
+ "device-discovery": [{
912
+ "path": "lastDiscoveryAt",
913
+ "valueType": "number"
914
+ }, {
915
+ "path": "lastError",
916
+ "valueType": "string"
917
+ }],
918
+ "device-export": [
919
+ {
920
+ "path": "linkState",
921
+ "valueType": "enum",
922
+ "enumValues": [
923
+ "unlinked",
924
+ "linked",
925
+ "error"
926
+ ]
927
+ },
928
+ {
929
+ "path": "exposedDeviceCount",
930
+ "valueType": "number"
931
+ },
932
+ {
933
+ "path": "error",
934
+ "valueType": "string"
935
+ },
936
+ {
937
+ "path": "setup.qr",
938
+ "valueType": "string"
939
+ },
940
+ {
941
+ "path": "setup.note",
942
+ "valueType": "string"
943
+ }
944
+ ],
945
+ "device-status": [{
946
+ "path": "online",
947
+ "valueType": "boolean"
948
+ }],
949
+ "doorbell": [{
950
+ "path": "lastPressedAt",
951
+ "valueType": "number"
952
+ }, {
953
+ "path": "pressCountSinceStart",
954
+ "valueType": "number"
955
+ }],
956
+ "enum-sensor": [{
957
+ "path": "value",
958
+ "valueType": "string"
959
+ }, {
960
+ "path": "format",
961
+ "valueType": "enum",
962
+ "enumValues": [
963
+ "date",
964
+ "time",
965
+ "datetime"
966
+ ]
967
+ }],
968
+ "event-emitter": [
969
+ {
970
+ "path": "lastEvent.deviceId",
971
+ "valueType": "number"
972
+ },
973
+ {
974
+ "path": "lastEvent.eventType",
975
+ "valueType": "string"
976
+ },
977
+ {
978
+ "path": "lastEvent.timestamp",
979
+ "valueType": "number"
980
+ },
981
+ {
982
+ "path": "lastEvent.seq",
983
+ "valueType": "number"
984
+ },
985
+ {
986
+ "path": "eventCountSinceStart",
987
+ "valueType": "number"
988
+ }
989
+ ],
990
+ "fan-control": [
991
+ {
992
+ "path": "percentage",
993
+ "valueType": "number"
994
+ },
995
+ {
996
+ "path": "percentageStep",
997
+ "valueType": "number"
998
+ },
999
+ {
1000
+ "path": "preset",
1001
+ "valueType": "string"
1002
+ },
1003
+ {
1004
+ "path": "direction",
1005
+ "valueType": "enum",
1006
+ "enumValues": ["forward", "reverse"]
1007
+ },
1008
+ {
1009
+ "path": "oscillating",
1010
+ "valueType": "boolean"
1011
+ }
1012
+ ],
1013
+ "feature-probe": [
1014
+ {
1015
+ "path": "deviceType",
1016
+ "valueType": "string"
1017
+ },
1018
+ {
1019
+ "path": "model",
1020
+ "valueType": "string"
1021
+ },
1022
+ {
1023
+ "path": "channelCount",
1024
+ "valueType": "number"
1025
+ },
1026
+ {
1027
+ "path": "lastProbedAt",
1028
+ "valueType": "number"
1029
+ }
1030
+ ],
1031
+ "flood": [{
1032
+ "path": "flooded",
1033
+ "valueType": "boolean"
1034
+ }],
1035
+ "gas": [{
1036
+ "path": "detected",
1037
+ "valueType": "boolean"
1038
+ }],
1039
+ "humidifier": [
1040
+ {
1041
+ "path": "on",
1042
+ "valueType": "boolean"
1043
+ },
1044
+ {
1045
+ "path": "currentHumidity",
1046
+ "valueType": "number"
1047
+ },
1048
+ {
1049
+ "path": "targetHumidity",
1050
+ "valueType": "number"
1051
+ },
1052
+ {
1053
+ "path": "mode",
1054
+ "valueType": "string"
1055
+ },
1056
+ {
1057
+ "path": "action",
1058
+ "valueType": "string"
1059
+ },
1060
+ {
1061
+ "path": "minHumidity",
1062
+ "valueType": "number"
1063
+ },
1064
+ {
1065
+ "path": "maxHumidity",
1066
+ "valueType": "number"
1067
+ }
1068
+ ],
1069
+ "humidity-sensor": [
1070
+ {
1071
+ "path": "percent",
1072
+ "valueType": "number"
1073
+ },
1074
+ {
1075
+ "path": "unit",
1076
+ "valueType": "string"
1077
+ },
1078
+ {
1079
+ "path": "precision",
1080
+ "valueType": "number"
1081
+ }
1082
+ ],
1083
+ "image": [{
1084
+ "path": "url",
1085
+ "valueType": "string"
1086
+ }, {
1087
+ "path": "lastUpdated",
1088
+ "valueType": "number"
1089
+ }],
1090
+ "image-settings": [
1091
+ {
1092
+ "path": "brightness",
1093
+ "valueType": "number"
1094
+ },
1095
+ {
1096
+ "path": "contrast",
1097
+ "valueType": "number"
1098
+ },
1099
+ {
1100
+ "path": "saturation",
1101
+ "valueType": "number"
1102
+ },
1103
+ {
1104
+ "path": "sharpness",
1105
+ "valueType": "number"
1106
+ },
1107
+ {
1108
+ "path": "mirror",
1109
+ "valueType": "boolean"
1110
+ },
1111
+ {
1112
+ "path": "flip",
1113
+ "valueType": "boolean"
1114
+ },
1115
+ {
1116
+ "path": "rotate",
1117
+ "valueType": "enum",
1118
+ "enumValues": [
1119
+ "0",
1120
+ "90",
1121
+ "180",
1122
+ "270"
1123
+ ]
1124
+ },
1125
+ {
1126
+ "path": "whiteBalance",
1127
+ "valueType": "enum",
1128
+ "enumValues": ["auto", "manual"]
1129
+ },
1130
+ {
1131
+ "path": "warmth",
1132
+ "valueType": "number"
1133
+ },
1134
+ {
1135
+ "path": "exposureMode",
1136
+ "valueType": "enum",
1137
+ "enumValues": ["auto", "manual"]
1138
+ },
1139
+ {
1140
+ "path": "backlightMode",
1141
+ "valueType": "enum",
1142
+ "enumValues": [
1143
+ "off",
1144
+ "blc",
1145
+ "wdr",
1146
+ "hlc"
1147
+ ]
1148
+ }
1149
+ ],
1150
+ "intercom": [
1151
+ {
1152
+ "path": "talking",
1153
+ "valueType": "boolean"
1154
+ },
1155
+ {
1156
+ "path": "lastSessionAt",
1157
+ "valueType": "number"
1158
+ },
1159
+ {
1160
+ "path": "ability.sampleRate",
1161
+ "valueType": "number"
1162
+ },
1163
+ {
1164
+ "path": "ability.duplex",
1165
+ "valueType": "enum",
1166
+ "enumValues": ["half", "full"]
1167
+ },
1168
+ {
1169
+ "path": "ability.maxBacklogMs",
1170
+ "valueType": "number"
1171
+ }
1172
+ ],
1173
+ "lawn-mower-control": [
1174
+ {
1175
+ "path": "activity",
1176
+ "valueType": "enum",
1177
+ "enumValues": [
1178
+ "idle",
1179
+ "mowing",
1180
+ "paused",
1181
+ "docked",
1182
+ "error"
1183
+ ]
1184
+ },
1185
+ {
1186
+ "path": "batteryLevel",
1187
+ "valueType": "number"
1188
+ },
1189
+ {
1190
+ "path": "progressPercent",
1191
+ "valueType": "number"
1192
+ },
1193
+ {
1194
+ "path": "currentCode",
1195
+ "valueType": "number"
1196
+ },
1197
+ {
1198
+ "path": "currentCodeLabel",
1199
+ "valueType": "string"
1200
+ },
1201
+ {
1202
+ "path": "severity",
1203
+ "valueType": "enum",
1204
+ "enumValues": [
1205
+ "info",
1206
+ "warning",
1207
+ "error"
1208
+ ]
1209
+ }
1210
+ ],
1211
+ "lock-control": [{
1212
+ "path": "state",
1213
+ "valueType": "enum",
1214
+ "enumValues": [
1215
+ "locked",
1216
+ "unlocked",
1217
+ "locking",
1218
+ "unlocking",
1219
+ "jammed"
1220
+ ]
1221
+ }],
1222
+ "media-player": [
1223
+ {
1224
+ "path": "state",
1225
+ "valueType": "enum",
1226
+ "enumValues": [
1227
+ "off",
1228
+ "on",
1229
+ "idle",
1230
+ "playing",
1231
+ "paused",
1232
+ "buffering",
1233
+ "standby"
1234
+ ]
1235
+ },
1236
+ {
1237
+ "path": "volumeLevel",
1238
+ "valueType": "number"
1239
+ },
1240
+ {
1241
+ "path": "isMuted",
1242
+ "valueType": "boolean"
1243
+ },
1244
+ {
1245
+ "path": "source",
1246
+ "valueType": "string"
1247
+ },
1248
+ {
1249
+ "path": "currentMedia.type",
1250
+ "valueType": "string"
1251
+ },
1252
+ {
1253
+ "path": "currentMedia.title",
1254
+ "valueType": "string"
1255
+ },
1256
+ {
1257
+ "path": "currentMedia.artist",
1258
+ "valueType": "string"
1259
+ },
1260
+ {
1261
+ "path": "currentMedia.album",
1262
+ "valueType": "string"
1263
+ },
1264
+ {
1265
+ "path": "currentMedia.imageUrl",
1266
+ "valueType": "string"
1267
+ },
1268
+ {
1269
+ "path": "positionMs",
1270
+ "valueType": "number"
1271
+ },
1272
+ {
1273
+ "path": "durationMs",
1274
+ "valueType": "number"
1275
+ },
1276
+ {
1277
+ "path": "shuffle",
1278
+ "valueType": "boolean"
1279
+ },
1280
+ {
1281
+ "path": "repeat",
1282
+ "valueType": "enum",
1283
+ "enumValues": [
1284
+ "off",
1285
+ "all",
1286
+ "one"
1287
+ ]
1288
+ }
1289
+ ],
1290
+ "motion": [
1291
+ {
1292
+ "path": "detected",
1293
+ "valueType": "boolean"
1294
+ },
1295
+ {
1296
+ "path": "lastDetectedAt",
1297
+ "valueType": "number"
1298
+ },
1299
+ {
1300
+ "path": "autoClearAfterMs",
1301
+ "valueType": "number"
1302
+ }
1303
+ ],
1304
+ "motion-trigger": [{
1305
+ "path": "enabled",
1306
+ "valueType": "boolean"
1307
+ }],
1308
+ "motion-zones": [{
1309
+ "path": "enabled",
1310
+ "valueType": "boolean"
1311
+ }, {
1312
+ "path": "sensitivity",
1313
+ "valueType": "number"
1314
+ }],
1315
+ "mqtt-broker": [{
1316
+ "path": "brokerCount",
1317
+ "valueType": "number"
1318
+ }, {
1319
+ "path": "embeddedRunning",
1320
+ "valueType": "boolean"
1321
+ }],
1322
+ "native-object-detection": [{
1323
+ "path": "enabled",
1324
+ "valueType": "boolean"
1325
+ }],
1326
+ "navigation": [
1327
+ {
1328
+ "path": "mode",
1329
+ "valueType": "enum",
1330
+ "enumValues": [
1331
+ "idle",
1332
+ "cleaning",
1333
+ "spot",
1334
+ "following",
1335
+ "goto",
1336
+ "returning",
1337
+ "paused",
1338
+ "unknown"
1339
+ ]
1340
+ },
1341
+ {
1342
+ "path": "following",
1343
+ "valueType": "boolean"
1344
+ },
1345
+ {
1346
+ "path": "flash",
1347
+ "valueType": "boolean"
1348
+ },
1349
+ {
1350
+ "path": "lightMode",
1351
+ "valueType": "enum",
1352
+ "enumValues": ["auto", "manual"]
1353
+ },
1354
+ {
1355
+ "path": "lightLevel",
1356
+ "valueType": "number"
1357
+ }
1358
+ ],
1359
+ "network-link": [
1360
+ {
1361
+ "path": "type",
1362
+ "valueType": "enum",
1363
+ "enumValues": [
1364
+ "wifi",
1365
+ "ethernet",
1366
+ "cellular",
1367
+ "unknown"
1368
+ ]
1369
+ },
1370
+ {
1371
+ "path": "signalPercent",
1372
+ "valueType": "number"
1373
+ },
1374
+ {
1375
+ "path": "rssiDbm",
1376
+ "valueType": "number"
1377
+ },
1378
+ {
1379
+ "path": "ssid",
1380
+ "valueType": "string"
1381
+ },
1382
+ {
1383
+ "path": "lastUpdated",
1384
+ "valueType": "number"
1385
+ }
1386
+ ],
1387
+ "notifier": [
1388
+ {
1389
+ "path": "lastSentAt",
1390
+ "valueType": "number"
1391
+ },
1392
+ {
1393
+ "path": "lastError",
1394
+ "valueType": "string"
1395
+ },
1396
+ {
1397
+ "path": "queueDepth",
1398
+ "valueType": "number"
1399
+ },
1400
+ {
1401
+ "path": "supports.image",
1402
+ "valueType": "boolean"
1403
+ },
1404
+ {
1405
+ "path": "supports.priority",
1406
+ "valueType": "boolean"
1407
+ },
1408
+ {
1409
+ "path": "supports.data",
1410
+ "valueType": "boolean"
1411
+ },
1412
+ {
1413
+ "path": "supports.actions",
1414
+ "valueType": "boolean"
1415
+ },
1416
+ {
1417
+ "path": "supports.recipients",
1418
+ "valueType": "boolean"
1419
+ }
1420
+ ],
1421
+ "numeric-sensor": [
1422
+ {
1423
+ "path": "value",
1424
+ "valueType": "number"
1425
+ },
1426
+ {
1427
+ "path": "unit",
1428
+ "valueType": "string"
1429
+ },
1430
+ {
1431
+ "path": "precision",
1432
+ "valueType": "number"
1433
+ }
1434
+ ],
1435
+ "pet-feeder": [
1436
+ {
1437
+ "path": "foodLevel",
1438
+ "valueType": "number"
1439
+ },
1440
+ {
1441
+ "path": "food1",
1442
+ "valueType": "number"
1443
+ },
1444
+ {
1445
+ "path": "food2",
1446
+ "valueType": "number"
1447
+ },
1448
+ {
1449
+ "path": "lowFood",
1450
+ "valueType": "boolean"
1451
+ },
1452
+ {
1453
+ "path": "batteryPower",
1454
+ "valueType": "number"
1455
+ },
1456
+ {
1457
+ "path": "desiccantLeftDays",
1458
+ "valueType": "number"
1459
+ },
1460
+ {
1461
+ "path": "feeding",
1462
+ "valueType": "boolean"
1463
+ },
1464
+ {
1465
+ "path": "status",
1466
+ "valueType": "enum",
1467
+ "enumValues": [
1468
+ "normal",
1469
+ "offline",
1470
+ "on_batteries"
1471
+ ]
1472
+ },
1473
+ {
1474
+ "path": "error",
1475
+ "valueType": "string"
1476
+ },
1477
+ {
1478
+ "path": "errorCode",
1479
+ "valueType": "number"
1480
+ },
1481
+ {
1482
+ "path": "isDualHopper",
1483
+ "valueType": "boolean"
1484
+ },
1485
+ {
1486
+ "path": "childLock",
1487
+ "valueType": "boolean"
1488
+ },
1489
+ {
1490
+ "path": "indicatorLight",
1491
+ "valueType": "boolean"
1492
+ },
1493
+ {
1494
+ "path": "feedSound",
1495
+ "valueType": "boolean"
1496
+ },
1497
+ {
1498
+ "path": "volume",
1499
+ "valueType": "number"
1500
+ }
1501
+ ],
1502
+ "power-meter": [
1503
+ {
1504
+ "path": "watts",
1505
+ "valueType": "number"
1506
+ },
1507
+ {
1508
+ "path": "kwhTotal",
1509
+ "valueType": "number"
1510
+ },
1511
+ {
1512
+ "path": "volts",
1513
+ "valueType": "number"
1514
+ },
1515
+ {
1516
+ "path": "amps",
1517
+ "valueType": "number"
1518
+ },
1519
+ {
1520
+ "path": "va",
1521
+ "valueType": "number"
1522
+ },
1523
+ {
1524
+ "path": "powerFactor",
1525
+ "valueType": "number"
1526
+ },
1527
+ {
1528
+ "path": "unit",
1529
+ "valueType": "string"
1530
+ },
1531
+ {
1532
+ "path": "precision",
1533
+ "valueType": "number"
1534
+ }
1535
+ ],
1536
+ "presence": [
1537
+ {
1538
+ "path": "state",
1539
+ "valueType": "string"
1540
+ },
1541
+ {
1542
+ "path": "location",
1543
+ "valueType": "string"
1544
+ },
1545
+ {
1546
+ "path": "gps.latitude",
1547
+ "valueType": "number"
1548
+ },
1549
+ {
1550
+ "path": "gps.longitude",
1551
+ "valueType": "number"
1552
+ },
1553
+ {
1554
+ "path": "gps.accuracyMeters",
1555
+ "valueType": "number"
1556
+ },
1557
+ {
1558
+ "path": "batteryPercent",
1559
+ "valueType": "number"
1560
+ }
1561
+ ],
1562
+ "pressure-sensor": [
1563
+ {
1564
+ "path": "hpa",
1565
+ "valueType": "number"
1566
+ },
1567
+ {
1568
+ "path": "unit",
1569
+ "valueType": "string"
1570
+ },
1571
+ {
1572
+ "path": "precision",
1573
+ "valueType": "number"
1574
+ }
1575
+ ],
1576
+ "privacy-mask": [{
1577
+ "path": "enabled",
1578
+ "valueType": "boolean"
1579
+ }, {
1580
+ "path": "audioEnabled",
1581
+ "valueType": "boolean"
1582
+ }],
1583
+ "ptz": [
1584
+ {
1585
+ "path": "pan",
1586
+ "valueType": "number"
1587
+ },
1588
+ {
1589
+ "path": "tilt",
1590
+ "valueType": "number"
1591
+ },
1592
+ {
1593
+ "path": "zoom",
1594
+ "valueType": "number"
1595
+ },
1596
+ {
1597
+ "path": "autofocus",
1598
+ "valueType": "boolean"
1599
+ }
1600
+ ],
1601
+ "ptz-autotrack": [
1602
+ {
1603
+ "path": "enabled",
1604
+ "valueType": "boolean"
1605
+ },
1606
+ {
1607
+ "path": "currentSettings.targetType",
1608
+ "valueType": "string"
1609
+ },
1610
+ {
1611
+ "path": "currentSettings.stopDelaySeconds",
1612
+ "valueType": "number"
1613
+ },
1614
+ {
1615
+ "path": "currentSettings.disappearDelaySeconds",
1616
+ "valueType": "number"
1617
+ }
1618
+ ],
1619
+ "recording-archive": [
1620
+ {
1621
+ "path": "deviceId",
1622
+ "valueType": "number"
1623
+ },
1624
+ {
1625
+ "path": "enabled",
1626
+ "valueType": "boolean"
1627
+ },
1628
+ {
1629
+ "path": "activeMode",
1630
+ "valueType": "enum",
1631
+ "enumValues": [
1632
+ "off",
1633
+ "events",
1634
+ "continuous",
1635
+ "on-device-decision"
1636
+ ]
1637
+ },
1638
+ {
1639
+ "path": "nodeId",
1640
+ "valueType": "string"
1641
+ },
1642
+ {
1643
+ "path": "storageBytes",
1644
+ "valueType": "number"
1645
+ }
1646
+ ],
1647
+ "recording-onboard": [
1648
+ {
1649
+ "path": "primaryTrackId",
1650
+ "valueType": "string"
1651
+ },
1652
+ {
1653
+ "path": "enabled",
1654
+ "valueType": "boolean"
1655
+ },
1656
+ {
1657
+ "path": "overwriteWhenFull",
1658
+ "valueType": "boolean"
1659
+ },
1660
+ {
1661
+ "path": "preRecordSec",
1662
+ "valueType": "number"
1663
+ },
1664
+ {
1665
+ "path": "postRecordSec",
1666
+ "valueType": "number"
1667
+ },
1668
+ {
1669
+ "path": "segmentMinutes",
1670
+ "valueType": "number"
1671
+ },
1672
+ {
1673
+ "path": "unreadableWindows",
1674
+ "valueType": "number"
1675
+ },
1676
+ {
1677
+ "path": "recordingToNowhere",
1678
+ "valueType": "boolean"
1679
+ }
1680
+ ],
1681
+ "recording-signal": [{
1682
+ "path": "active",
1683
+ "valueType": "boolean"
1684
+ }, {
1685
+ "path": "reason",
1686
+ "valueType": "string"
1687
+ }],
1688
+ "script-runner": [
1689
+ {
1690
+ "path": "isRunning",
1691
+ "valueType": "boolean"
1692
+ },
1693
+ {
1694
+ "path": "lastRunAt",
1695
+ "valueType": "number"
1696
+ },
1697
+ {
1698
+ "path": "lastRunSuccess",
1699
+ "valueType": "boolean"
1700
+ },
1701
+ {
1702
+ "path": "lastError",
1703
+ "valueType": "string"
1704
+ }
1705
+ ],
1706
+ "smoke": [{
1707
+ "path": "detected",
1708
+ "valueType": "boolean"
1709
+ }],
1710
+ "snapshot": [
1711
+ {
1712
+ "path": "lastCapturedAt",
1713
+ "valueType": "number"
1714
+ },
1715
+ {
1716
+ "path": "cacheAgeMs",
1717
+ "valueType": "number"
1718
+ },
1719
+ {
1720
+ "path": "lastBytes",
1721
+ "valueType": "number"
1722
+ },
1723
+ {
1724
+ "path": "lastStreamId",
1725
+ "valueType": "string"
1726
+ }
1727
+ ],
1728
+ "stream-params": [
1729
+ {
1730
+ "path": "main.width",
1731
+ "valueType": "number"
1732
+ },
1733
+ {
1734
+ "path": "main.height",
1735
+ "valueType": "number"
1736
+ },
1737
+ {
1738
+ "path": "main.codec",
1739
+ "valueType": "enum",
1740
+ "enumValues": ["h264", "h265"]
1741
+ },
1742
+ {
1743
+ "path": "main.framerate",
1744
+ "valueType": "number"
1745
+ },
1746
+ {
1747
+ "path": "main.bitrate",
1748
+ "valueType": "number"
1749
+ },
1750
+ {
1751
+ "path": "main.bitrateMode",
1752
+ "valueType": "enum",
1753
+ "enumValues": ["vbr", "cbr"]
1754
+ },
1755
+ {
1756
+ "path": "main.encoderProfile",
1757
+ "valueType": "enum",
1758
+ "enumValues": [
1759
+ "high",
1760
+ "main",
1761
+ "baseline"
1762
+ ]
1763
+ },
1764
+ {
1765
+ "path": "main.gop",
1766
+ "valueType": "number"
1767
+ },
1768
+ {
1769
+ "path": "main.audio",
1770
+ "valueType": "boolean"
1771
+ },
1772
+ {
1773
+ "path": "sub.width",
1774
+ "valueType": "number"
1775
+ },
1776
+ {
1777
+ "path": "sub.height",
1778
+ "valueType": "number"
1779
+ },
1780
+ {
1781
+ "path": "sub.codec",
1782
+ "valueType": "enum",
1783
+ "enumValues": ["h264", "h265"]
1784
+ },
1785
+ {
1786
+ "path": "sub.framerate",
1787
+ "valueType": "number"
1788
+ },
1789
+ {
1790
+ "path": "sub.bitrate",
1791
+ "valueType": "number"
1792
+ },
1793
+ {
1794
+ "path": "sub.bitrateMode",
1795
+ "valueType": "enum",
1796
+ "enumValues": ["vbr", "cbr"]
1797
+ },
1798
+ {
1799
+ "path": "sub.encoderProfile",
1800
+ "valueType": "enum",
1801
+ "enumValues": [
1802
+ "high",
1803
+ "main",
1804
+ "baseline"
1805
+ ]
1806
+ },
1807
+ {
1808
+ "path": "sub.gop",
1809
+ "valueType": "number"
1810
+ },
1811
+ {
1812
+ "path": "sub.audio",
1813
+ "valueType": "boolean"
1814
+ },
1815
+ {
1816
+ "path": "ext.width",
1817
+ "valueType": "number"
1818
+ },
1819
+ {
1820
+ "path": "ext.height",
1821
+ "valueType": "number"
1822
+ },
1823
+ {
1824
+ "path": "ext.codec",
1825
+ "valueType": "enum",
1826
+ "enumValues": ["h264", "h265"]
1827
+ },
1828
+ {
1829
+ "path": "ext.framerate",
1830
+ "valueType": "number"
1831
+ },
1832
+ {
1833
+ "path": "ext.bitrate",
1834
+ "valueType": "number"
1835
+ },
1836
+ {
1837
+ "path": "ext.bitrateMode",
1838
+ "valueType": "enum",
1839
+ "enumValues": ["vbr", "cbr"]
1840
+ },
1841
+ {
1842
+ "path": "ext.encoderProfile",
1843
+ "valueType": "enum",
1844
+ "enumValues": [
1845
+ "high",
1846
+ "main",
1847
+ "baseline"
1848
+ ]
1849
+ },
1850
+ {
1851
+ "path": "ext.gop",
1852
+ "valueType": "number"
1853
+ },
1854
+ {
1855
+ "path": "ext.audio",
1856
+ "valueType": "boolean"
1857
+ }
1858
+ ],
1859
+ "switch": [{
1860
+ "path": "on",
1861
+ "valueType": "boolean"
1862
+ }],
1863
+ "tamper": [{
1864
+ "path": "tampered",
1865
+ "valueType": "boolean"
1866
+ }],
1867
+ "temperature-sensor": [
1868
+ {
1869
+ "path": "celsius",
1870
+ "valueType": "number"
1871
+ },
1872
+ {
1873
+ "path": "unit",
1874
+ "valueType": "string"
1875
+ },
1876
+ {
1877
+ "path": "precision",
1878
+ "valueType": "number"
1879
+ }
1880
+ ],
1881
+ "update": [
1882
+ {
1883
+ "path": "currentVersion",
1884
+ "valueType": "string"
1885
+ },
1886
+ {
1887
+ "path": "availableVersion",
1888
+ "valueType": "string"
1889
+ },
1890
+ {
1891
+ "path": "updatable",
1892
+ "valueType": "boolean"
1893
+ },
1894
+ {
1895
+ "path": "state",
1896
+ "valueType": "string"
1897
+ },
1898
+ {
1899
+ "path": "inProgress",
1900
+ "valueType": "boolean"
1901
+ }
1902
+ ],
1903
+ "vacuum-control": [
1904
+ {
1905
+ "path": "state",
1906
+ "valueType": "enum",
1907
+ "enumValues": [
1908
+ "idle",
1909
+ "cleaning",
1910
+ "paused",
1911
+ "returning",
1912
+ "docked",
1913
+ "drying",
1914
+ "error"
1915
+ ]
1916
+ },
1917
+ {
1918
+ "path": "batteryLevel",
1919
+ "valueType": "number"
1920
+ },
1921
+ {
1922
+ "path": "fanSpeed",
1923
+ "valueType": "string"
1924
+ },
1925
+ {
1926
+ "path": "cleanWater.level",
1927
+ "valueType": "number"
1928
+ },
1929
+ {
1930
+ "path": "cleanWater.status",
1931
+ "valueType": "enum",
1932
+ "enumValues": [
1933
+ "ok",
1934
+ "low",
1935
+ "full"
1936
+ ]
1937
+ },
1938
+ {
1939
+ "path": "dirtyWater.level",
1940
+ "valueType": "number"
1941
+ },
1942
+ {
1943
+ "path": "dirtyWater.status",
1944
+ "valueType": "enum",
1945
+ "enumValues": [
1946
+ "ok",
1947
+ "low",
1948
+ "full"
1949
+ ]
1950
+ },
1951
+ {
1952
+ "path": "detergent.level",
1953
+ "valueType": "number"
1954
+ },
1955
+ {
1956
+ "path": "detergent.status",
1957
+ "valueType": "enum",
1958
+ "enumValues": [
1959
+ "ok",
1960
+ "low",
1961
+ "full"
1962
+ ]
1963
+ },
1964
+ {
1965
+ "path": "dustBin.level",
1966
+ "valueType": "number"
1967
+ },
1968
+ {
1969
+ "path": "dustBin.status",
1970
+ "valueType": "enum",
1971
+ "enumValues": [
1972
+ "ok",
1973
+ "low",
1974
+ "full"
1975
+ ]
1976
+ },
1977
+ {
1978
+ "path": "progressPercent",
1979
+ "valueType": "number"
1980
+ },
1981
+ {
1982
+ "path": "errorCode",
1983
+ "valueType": "number"
1984
+ },
1985
+ {
1986
+ "path": "errorLabel",
1987
+ "valueType": "string"
1988
+ }
1989
+ ],
1990
+ "valve": [{
1991
+ "path": "state",
1992
+ "valueType": "enum",
1993
+ "enumValues": [
1994
+ "open",
1995
+ "opening",
1996
+ "closing",
1997
+ "closed",
1998
+ "stopped"
1999
+ ]
2000
+ }, {
2001
+ "path": "position",
2002
+ "valueType": "number"
2003
+ }],
2004
+ "vibration": [{
2005
+ "path": "detected",
2006
+ "valueType": "boolean"
2007
+ }],
2008
+ "water-heater": [
2009
+ {
2010
+ "path": "currentTemp",
2011
+ "valueType": "number"
2012
+ },
2013
+ {
2014
+ "path": "targetTemp",
2015
+ "valueType": "number"
2016
+ },
2017
+ {
2018
+ "path": "operationMode",
2019
+ "valueType": "string"
2020
+ },
2021
+ {
2022
+ "path": "away",
2023
+ "valueType": "boolean"
2024
+ },
2025
+ {
2026
+ "path": "minTemp",
2027
+ "valueType": "number"
2028
+ },
2029
+ {
2030
+ "path": "maxTemp",
2031
+ "valueType": "number"
2032
+ }
2033
+ ],
2034
+ "weather": [
2035
+ {
2036
+ "path": "condition",
2037
+ "valueType": "string"
2038
+ },
2039
+ {
2040
+ "path": "temperature",
2041
+ "valueType": "number"
2042
+ },
2043
+ {
2044
+ "path": "temperatureUnit",
2045
+ "valueType": "string"
2046
+ },
2047
+ {
2048
+ "path": "humidity",
2049
+ "valueType": "number"
2050
+ },
2051
+ {
2052
+ "path": "pressure",
2053
+ "valueType": "number"
2054
+ },
2055
+ {
2056
+ "path": "pressureUnit",
2057
+ "valueType": "string"
2058
+ },
2059
+ {
2060
+ "path": "windSpeed",
2061
+ "valueType": "number"
2062
+ },
2063
+ {
2064
+ "path": "windSpeedUnit",
2065
+ "valueType": "string"
2066
+ },
2067
+ {
2068
+ "path": "windBearing",
2069
+ "valueType": "number"
2070
+ }
2071
+ ],
2072
+ "zone-analytics": [
2073
+ {
2074
+ "path": "ts",
2075
+ "valueType": "number"
2076
+ },
2077
+ {
2078
+ "path": "frameWidth",
2079
+ "valueType": "number"
2080
+ },
2081
+ {
2082
+ "path": "frameHeight",
2083
+ "valueType": "number"
2084
+ },
2085
+ {
2086
+ "path": "frame.totalObjects",
2087
+ "valueType": "number"
2088
+ },
2089
+ {
2090
+ "path": "frame.standingObjects",
2091
+ "valueType": "number"
2092
+ },
2093
+ {
2094
+ "path": "frame.transientObjects",
2095
+ "valueType": "number"
2096
+ },
2097
+ {
2098
+ "path": "unzoned.totalObjects",
2099
+ "valueType": "number"
2100
+ },
2101
+ {
2102
+ "path": "unzoned.standingObjects",
2103
+ "valueType": "number"
2104
+ },
2105
+ {
2106
+ "path": "unzoned.transientObjects",
2107
+ "valueType": "number"
2108
+ }
2109
+ ]
2110
+ });
2111
+ //#endregion
431
2112
  exports.BOOT_RECOVERY_BACKOFF_MS = require_sleep.BOOT_RECOVERY_BACKOFF_MS;
432
2113
  exports.BaseAddon = require_sleep.BaseAddon;
2114
+ exports.CAP_ADVANCE_FIELDS = CAP_ADVANCE_FIELDS;
433
2115
  exports.CAP_INPUT_DEFAULTS = CAP_INPUT_DEFAULTS;
2116
+ exports.CAP_STATE_LEAVES = CAP_STATE_LEAVES;
434
2117
  exports.COLLECTION_ARRAY_METHODS = COLLECTION_ARRAY_METHODS;
435
2118
  exports.DATAPLANE_SECRET_HEADER = require_sleep.DATAPLANE_SECRET_HEADER;
436
2119
  exports.DEVICE_CHILDREN_BATCH_MAX = require_sleep.DEVICE_CHILDREN_BATCH_MAX;
@@ -438,7 +2121,9 @@ exports.DEVICE_SCOPED_CAPS = require_sleep.DEVICE_SCOPED_CAPS;
438
2121
  exports.DeviceType = require_err_msg.DeviceType;
439
2122
  exports.DisposerChain = require_sleep.DisposerChain;
440
2123
  exports.EventCategory = require_event_category.EventCategory;
2124
+ exports.HF_REPO = require_sleep.HF_REPO;
441
2125
  exports.MIN_SCRUBBED_LENGTH = require_sleep.MIN_SCRUBBED_LENGTH;
2126
+ exports.MODEL_FORMATS = require_sleep.MODEL_FORMATS;
442
2127
  exports.PEER_BYTES_CHUNK_BYTES = require_sleep.PEER_BYTES_CHUNK_BYTES;
443
2128
  exports.PEER_BYTES_MAX_OUTSTANDING = require_sleep.PEER_BYTES_MAX_OUTSTANDING;
444
2129
  exports.PEER_BYTES_STALL_MS = require_sleep.PEER_BYTES_STALL_MS;
@@ -469,6 +2154,7 @@ exports.expandCapMethods = require_sleep.expandCapMethods;
469
2154
  exports.forgetKnownSecret = require_sleep.forgetKnownSecret;
470
2155
  exports.formatSecretScope = require_sleep.formatSecretScope;
471
2156
  exports.globalSecretScope = require_sleep.globalSecretScope;
2157
+ exports.hfModelUrl = require_sleep.hfModelUrl;
472
2158
  exports.isCollectionArrayMethodName = isCollectionArrayMethodName;
473
2159
  exports.isDeviceScopedCap = require_sleep.isDeviceScopedCap;
474
2160
  exports.isProviderOptionalMethodName = isProviderOptionalMethodName;