@camstack/addon-export-alexa 1.2.166 → 1.2.167

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.
@@ -5,7 +5,7 @@ import "node:fs";
5
5
  import "node:path";
6
6
  import "node:child_process";
7
7
  import "node:zlib";
8
- //#region ../types/dist/event-category-fDPduoeC.mjs
8
+ //#region ../types/dist/event-category-DHXxB8t9.mjs
9
9
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
10
10
  EventCategory["SystemBoot"] = "system.boot";
11
11
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -301,7 +301,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
301
301
  * TRANSITION into that state (never per dispatch), and the node is dropped
302
302
  * from the placement candidate set for as long as it holds.
303
303
  *
304
- * This exists because the state was previously invisible: little-unraid
304
+ * This exists because the state was previously invisible: agent-a
305
305
  * absorbed 283k inference errors in a day while still being handed cameras,
306
306
  * and nothing in the system said so.
307
307
  *
@@ -477,6 +477,10 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
477
477
  * on the device detail page.
478
478
  */
479
479
  EventCategory["DoorbellOnPressed"] = "doorbell.onPressed";
480
+ /** Mirrors `runningStateCapability.events.onStarted`. */
481
+ EventCategory["RunningStarted"] = "running.started";
482
+ /** Mirrors `runningStateCapability.events.onFinished`. */
483
+ EventCategory["RunningFinished"] = "running.finished";
480
484
  /**
481
485
  * Cap event fired by every device that registers the `event-emitter`
482
486
  * capability. Mirrors `eventEmitterCapability.events.onEvent`. Carries
@@ -5436,7 +5440,7 @@ var ZodIssueCode = {
5436
5440
  var ZodFirstPartyTypeKind;
5437
5441
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5438
5442
  //#endregion
5439
- //#region ../types/dist/sleep-CHIEEJkY.mjs
5443
+ //#region ../types/dist/sleep-BErAxhul.mjs
5440
5444
  /**
5441
5445
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5442
5446
  * window to float samples (D455).
@@ -5775,7 +5779,7 @@ Object.fromEntries([
5775
5779
  * `hydrateSchema` to skip the `value` injection for structural-only fields.
5776
5780
  */
5777
5781
  function isValuelessField(field) {
5778
- return field.type === "separator" || field.type === "info" || field.type === "qr-code" || field.type === "button" || field.type === "object-array" || field.type === "widget" || field.type === "addon-action-button" || field.type === "device-action-button";
5782
+ return field.type === "separator" || field.type === "info" || field.type === "qr-code" || field.type === "button" || field.type === "object-array" || field.type === "widget" || field.type === "addon-action-button" || field.type === "device-action-button" || field.type === "account-sign-in" || field.type === "secret-presence";
5779
5783
  }
5780
5784
  function hydrateSchema(schema, values, options = {}) {
5781
5785
  return {
@@ -8410,6 +8414,1980 @@ method(object({ deviceId: number() }), array(StreamSourceEntrySchema)), method(o
8410
8414
  kind: "mutation",
8411
8415
  auth: "admin"
8412
8416
  }), method(object({ deviceId: number() }), unknown().nullable()), method(object({ deviceId: number() }), RawStateResultSchema.nullable(), { auth: "protected" });
8417
+ Object.freeze({ "doorbell": "lastPressedAt" });
8418
+ /** Every capability name, so addon code can check a name without the schema graph. */
8419
+ var CAP_NAMES = Object.freeze([
8420
+ "accessories",
8421
+ "addon-pages",
8422
+ "addon-pages-source",
8423
+ "addon-routes",
8424
+ "addon-settings",
8425
+ "addon-widgets",
8426
+ "addon-widgets-source",
8427
+ "addons",
8428
+ "admin-ui",
8429
+ "air-quality-sensor",
8430
+ "alarm-panel",
8431
+ "alerts",
8432
+ "ambient-light-sensor",
8433
+ "audio-analysis",
8434
+ "audio-analyzer",
8435
+ "audio-codec",
8436
+ "audio-metrics",
8437
+ "auth-provider",
8438
+ "automation-control",
8439
+ "backup",
8440
+ "battery",
8441
+ "binary",
8442
+ "brightness",
8443
+ "broker",
8444
+ "button",
8445
+ "calendar-source",
8446
+ "calendars",
8447
+ "camera-credentials",
8448
+ "camera-grid-layout",
8449
+ "camera-pipeline-config",
8450
+ "camera-streams",
8451
+ "carbon-monoxide",
8452
+ "climate-control",
8453
+ "color",
8454
+ "composer",
8455
+ "connection-test",
8456
+ "connectivity",
8457
+ "consumables",
8458
+ "contact",
8459
+ "control",
8460
+ "core-blocks",
8461
+ "cover",
8462
+ "custom-model-registry",
8463
+ "data-store-provider",
8464
+ "database-snapshot",
8465
+ "day-night",
8466
+ "decoder",
8467
+ "detection-pipeline",
8468
+ "device-admin-link",
8469
+ "device-adoption",
8470
+ "device-credentials",
8471
+ "device-discovery",
8472
+ "device-export",
8473
+ "device-extension",
8474
+ "device-history",
8475
+ "device-manager",
8476
+ "device-ops",
8477
+ "device-provider",
8478
+ "device-removal-hook",
8479
+ "device-state",
8480
+ "device-status",
8481
+ "dishwasher",
8482
+ "display-palette",
8483
+ "doorbell",
8484
+ "embedding-encoder",
8485
+ "enum-sensor",
8486
+ "event-emitter",
8487
+ "face-gallery",
8488
+ "failure-contribution",
8489
+ "fan-control",
8490
+ "feature-probe",
8491
+ "filesystem-browse",
8492
+ "flood",
8493
+ "gas",
8494
+ "heating-valve",
8495
+ "humidifier",
8496
+ "humidity-sensor",
8497
+ "image",
8498
+ "image-settings",
8499
+ "integrations",
8500
+ "intercom",
8501
+ "keychain",
8502
+ "keychain-admin",
8503
+ "lawn-mower-control",
8504
+ "llm",
8505
+ "llm-runtime",
8506
+ "load-contribution",
8507
+ "local-network",
8508
+ "lock-control",
8509
+ "log-channels",
8510
+ "log-destination",
8511
+ "login-method",
8512
+ "media-player",
8513
+ "mesh-network",
8514
+ "metrics-provider",
8515
+ "model-convert",
8516
+ "model-distributor",
8517
+ "motion",
8518
+ "motion-detection",
8519
+ "motion-trigger",
8520
+ "motion-zones",
8521
+ "mqtt-broker",
8522
+ "native-object-detection",
8523
+ "navigation",
8524
+ "network-access",
8525
+ "network-link",
8526
+ "network-quality",
8527
+ "node-certificates",
8528
+ "nodes",
8529
+ "notification-output",
8530
+ "notification-rules",
8531
+ "notifier",
8532
+ "numeric-sensor",
8533
+ "oauth-integration",
8534
+ "oidc-connections",
8535
+ "osd",
8536
+ "osd-manager",
8537
+ "pet-feeder",
8538
+ "pipeline-analytics",
8539
+ "pipeline-executor",
8540
+ "pipeline-orchestrator",
8541
+ "pipeline-runner",
8542
+ "plate-gallery",
8543
+ "platform-probe",
8544
+ "power-meter",
8545
+ "presence",
8546
+ "pressure-sensor",
8547
+ "privacy-mask",
8548
+ "ptz",
8549
+ "ptz-autotrack",
8550
+ "reboot",
8551
+ "record-entries",
8552
+ "recording",
8553
+ "recording-archive",
8554
+ "recording-export",
8555
+ "recording-onboard",
8556
+ "recording-signal",
8557
+ "records",
8558
+ "running-state",
8559
+ "scene-monitor",
8560
+ "script-runner",
8561
+ "server-management",
8562
+ "settings-store",
8563
+ "smoke",
8564
+ "smtp-provider",
8565
+ "snapshot",
8566
+ "sso-bridge",
8567
+ "storage",
8568
+ "storage-admin",
8569
+ "storage-evictable",
8570
+ "storage-migration",
8571
+ "storage-occupancy",
8572
+ "storage-provider",
8573
+ "stream-broker",
8574
+ "stream-catalog",
8575
+ "stream-params",
8576
+ "stream-signals",
8577
+ "switch",
8578
+ "system",
8579
+ "tamper",
8580
+ "temperature-sensor",
8581
+ "terminal-session",
8582
+ "toast",
8583
+ "training",
8584
+ "training-provider",
8585
+ "turn-provider",
8586
+ "update",
8587
+ "user-management",
8588
+ "user-passkeys",
8589
+ "vacuum-control",
8590
+ "valve",
8591
+ "vector-store",
8592
+ "vibration",
8593
+ "videoclips",
8594
+ "viewer-ui",
8595
+ "water-heater",
8596
+ "weather",
8597
+ "webrtc-session",
8598
+ "zone-analytics",
8599
+ "zone-rules",
8600
+ "zones"
8601
+ ]);
8602
+ Object.freeze({
8603
+ "air-quality-sensor": [
8604
+ {
8605
+ "path": "co2Ppm",
8606
+ "valueType": "number"
8607
+ },
8608
+ {
8609
+ "path": "vocPpb",
8610
+ "valueType": "number"
8611
+ },
8612
+ {
8613
+ "path": "pm25",
8614
+ "valueType": "number"
8615
+ },
8616
+ {
8617
+ "path": "pm10",
8618
+ "valueType": "number"
8619
+ },
8620
+ {
8621
+ "path": "aqi",
8622
+ "valueType": "number"
8623
+ },
8624
+ {
8625
+ "path": "unit",
8626
+ "valueType": "string"
8627
+ },
8628
+ {
8629
+ "path": "precision",
8630
+ "valueType": "number"
8631
+ }
8632
+ ],
8633
+ "alarm-panel": [
8634
+ {
8635
+ "path": "state",
8636
+ "valueType": "enum",
8637
+ "enumValues": [
8638
+ "disarmed",
8639
+ "armed_home",
8640
+ "armed_away",
8641
+ "armed_night",
8642
+ "armed_vacation",
8643
+ "armed_custom_bypass",
8644
+ "arming",
8645
+ "disarming",
8646
+ "pending",
8647
+ "triggered"
8648
+ ]
8649
+ },
8650
+ {
8651
+ "path": "targetMode",
8652
+ "valueType": "enum",
8653
+ "enumValues": [
8654
+ "home",
8655
+ "away",
8656
+ "night",
8657
+ "vacation",
8658
+ "custom_bypass"
8659
+ ]
8660
+ },
8661
+ {
8662
+ "path": "requiresCode",
8663
+ "valueType": "boolean"
8664
+ }
8665
+ ],
8666
+ "ambient-light-sensor": [
8667
+ {
8668
+ "path": "lux",
8669
+ "valueType": "number"
8670
+ },
8671
+ {
8672
+ "path": "unit",
8673
+ "valueType": "string"
8674
+ },
8675
+ {
8676
+ "path": "precision",
8677
+ "valueType": "number"
8678
+ }
8679
+ ],
8680
+ "audio-metrics": [
8681
+ {
8682
+ "path": "ts",
8683
+ "valueType": "number"
8684
+ },
8685
+ {
8686
+ "path": "windowSec",
8687
+ "valueType": "number"
8688
+ },
8689
+ {
8690
+ "path": "level.rms",
8691
+ "valueType": "number"
8692
+ },
8693
+ {
8694
+ "path": "level.dbfs",
8695
+ "valueType": "number"
8696
+ },
8697
+ {
8698
+ "path": "peakDbfs",
8699
+ "valueType": "number"
8700
+ },
8701
+ {
8702
+ "path": "avgDbfs",
8703
+ "valueType": "number"
8704
+ },
8705
+ {
8706
+ "path": "current.className",
8707
+ "valueType": "string"
8708
+ },
8709
+ {
8710
+ "path": "current.score",
8711
+ "valueType": "number"
8712
+ },
8713
+ {
8714
+ "path": "current.timestamp",
8715
+ "valueType": "number"
8716
+ }
8717
+ ],
8718
+ "automation-control": [
8719
+ {
8720
+ "path": "enabled",
8721
+ "valueType": "boolean"
8722
+ },
8723
+ {
8724
+ "path": "isRunning",
8725
+ "valueType": "boolean"
8726
+ },
8727
+ {
8728
+ "path": "lastTriggeredAt",
8729
+ "valueType": "number"
8730
+ },
8731
+ {
8732
+ "path": "lastError",
8733
+ "valueType": "string"
8734
+ }
8735
+ ],
8736
+ "battery": [
8737
+ {
8738
+ "path": "percentage",
8739
+ "valueType": "number"
8740
+ },
8741
+ {
8742
+ "path": "charging",
8743
+ "valueType": "enum",
8744
+ "enumValues": [
8745
+ "dc",
8746
+ "solar",
8747
+ "none",
8748
+ "unknown"
8749
+ ]
8750
+ },
8751
+ {
8752
+ "path": "sleeping",
8753
+ "valueType": "boolean"
8754
+ },
8755
+ {
8756
+ "path": "lastUpdated",
8757
+ "valueType": "number"
8758
+ },
8759
+ {
8760
+ "path": "lastContactAt",
8761
+ "valueType": "number"
8762
+ },
8763
+ {
8764
+ "path": "lastFullRefreshAt",
8765
+ "valueType": "number"
8766
+ },
8767
+ {
8768
+ "path": "binary",
8769
+ "valueType": "boolean"
8770
+ }
8771
+ ],
8772
+ "binary": [{
8773
+ "path": "on",
8774
+ "valueType": "boolean"
8775
+ }],
8776
+ "brightness": [{
8777
+ "path": "percentage",
8778
+ "valueType": "number"
8779
+ }],
8780
+ "broker": [{
8781
+ "path": "brokerCount",
8782
+ "valueType": "number"
8783
+ }, {
8784
+ "path": "connectedCount",
8785
+ "valueType": "number"
8786
+ }],
8787
+ "camera-credentials": [
8788
+ {
8789
+ "path": "host",
8790
+ "valueType": "string"
8791
+ },
8792
+ {
8793
+ "path": "port",
8794
+ "valueType": "number"
8795
+ },
8796
+ {
8797
+ "path": "onvifPort",
8798
+ "valueType": "number"
8799
+ },
8800
+ {
8801
+ "path": "rtspPort",
8802
+ "valueType": "number"
8803
+ },
8804
+ {
8805
+ "path": "https",
8806
+ "valueType": "boolean"
8807
+ },
8808
+ {
8809
+ "path": "hasUsername",
8810
+ "valueType": "boolean"
8811
+ },
8812
+ {
8813
+ "path": "hasPassword",
8814
+ "valueType": "boolean"
8815
+ },
8816
+ {
8817
+ "path": "onvifProfile",
8818
+ "valueType": "string"
8819
+ }
8820
+ ],
8821
+ "camera-streams": [
8822
+ {
8823
+ "path": "online",
8824
+ "valueType": "boolean"
8825
+ },
8826
+ {
8827
+ "path": "slotStatuses.high",
8828
+ "valueType": "enum",
8829
+ "enumValues": [
8830
+ "unassigned",
8831
+ "idle",
8832
+ "connecting",
8833
+ "streaming",
8834
+ "error"
8835
+ ]
8836
+ },
8837
+ {
8838
+ "path": "slotStatuses.mid",
8839
+ "valueType": "enum",
8840
+ "enumValues": [
8841
+ "unassigned",
8842
+ "idle",
8843
+ "connecting",
8844
+ "streaming",
8845
+ "error"
8846
+ ]
8847
+ },
8848
+ {
8849
+ "path": "slotStatuses.low",
8850
+ "valueType": "enum",
8851
+ "enumValues": [
8852
+ "unassigned",
8853
+ "idle",
8854
+ "connecting",
8855
+ "streaming",
8856
+ "error"
8857
+ ]
8858
+ },
8859
+ {
8860
+ "path": "slotErrors.high",
8861
+ "valueType": "string"
8862
+ },
8863
+ {
8864
+ "path": "slotErrors.mid",
8865
+ "valueType": "string"
8866
+ },
8867
+ {
8868
+ "path": "slotErrors.low",
8869
+ "valueType": "string"
8870
+ }
8871
+ ],
8872
+ "carbon-monoxide": [{
8873
+ "path": "detected",
8874
+ "valueType": "boolean"
8875
+ }],
8876
+ "climate-control": [
8877
+ {
8878
+ "path": "mode",
8879
+ "valueType": "enum",
8880
+ "enumValues": [
8881
+ "off",
8882
+ "heat",
8883
+ "cool",
8884
+ "auto",
8885
+ "heat_cool",
8886
+ "fan_only",
8887
+ "dry"
8888
+ ]
8889
+ },
8890
+ {
8891
+ "path": "fanMode",
8892
+ "valueType": "string"
8893
+ },
8894
+ {
8895
+ "path": "preset",
8896
+ "valueType": "string"
8897
+ },
8898
+ {
8899
+ "path": "target",
8900
+ "valueType": "number"
8901
+ },
8902
+ {
8903
+ "path": "targetHigh",
8904
+ "valueType": "number"
8905
+ },
8906
+ {
8907
+ "path": "targetLow",
8908
+ "valueType": "number"
8909
+ },
8910
+ {
8911
+ "path": "targetHumidity",
8912
+ "valueType": "number"
8913
+ },
8914
+ {
8915
+ "path": "currentTemp",
8916
+ "valueType": "number"
8917
+ },
8918
+ {
8919
+ "path": "currentHumidity",
8920
+ "valueType": "number"
8921
+ },
8922
+ {
8923
+ "path": "swingVertical",
8924
+ "valueType": "boolean"
8925
+ },
8926
+ {
8927
+ "path": "swingHorizontal",
8928
+ "valueType": "boolean"
8929
+ },
8930
+ {
8931
+ "path": "minTemp",
8932
+ "valueType": "number"
8933
+ },
8934
+ {
8935
+ "path": "maxTemp",
8936
+ "valueType": "number"
8937
+ },
8938
+ {
8939
+ "path": "tempStep",
8940
+ "valueType": "number"
8941
+ }
8942
+ ],
8943
+ "color": [
8944
+ {
8945
+ "path": "mode",
8946
+ "valueType": "enum",
8947
+ "enumValues": [
8948
+ "rgb",
8949
+ "hsv",
8950
+ "mired"
8951
+ ]
8952
+ },
8953
+ {
8954
+ "path": "rgb.r",
8955
+ "valueType": "number"
8956
+ },
8957
+ {
8958
+ "path": "rgb.g",
8959
+ "valueType": "number"
8960
+ },
8961
+ {
8962
+ "path": "rgb.b",
8963
+ "valueType": "number"
8964
+ },
8965
+ {
8966
+ "path": "hsv.h",
8967
+ "valueType": "number"
8968
+ },
8969
+ {
8970
+ "path": "hsv.s",
8971
+ "valueType": "number"
8972
+ },
8973
+ {
8974
+ "path": "hsv.v",
8975
+ "valueType": "number"
8976
+ },
8977
+ {
8978
+ "path": "mireds",
8979
+ "valueType": "number"
8980
+ }
8981
+ ],
8982
+ "connectivity": [{
8983
+ "path": "connected",
8984
+ "valueType": "boolean"
8985
+ }],
8986
+ "contact": [{
8987
+ "path": "entryOpen",
8988
+ "valueType": "boolean"
8989
+ }],
8990
+ "control": [
8991
+ {
8992
+ "path": "kind",
8993
+ "valueType": "enum",
8994
+ "enumValues": [
8995
+ "numeric",
8996
+ "select",
8997
+ "text",
8998
+ "datetime"
8999
+ ]
9000
+ },
9001
+ {
9002
+ "path": "unit",
9003
+ "valueType": "string"
9004
+ },
9005
+ {
9006
+ "path": "min",
9007
+ "valueType": "number"
9008
+ },
9009
+ {
9010
+ "path": "max",
9011
+ "valueType": "number"
9012
+ },
9013
+ {
9014
+ "path": "step",
9015
+ "valueType": "number"
9016
+ },
9017
+ {
9018
+ "path": "precision",
9019
+ "valueType": "number"
9020
+ },
9021
+ {
9022
+ "path": "format",
9023
+ "valueType": "enum",
9024
+ "enumValues": [
9025
+ "date",
9026
+ "time",
9027
+ "datetime"
9028
+ ]
9029
+ }
9030
+ ],
9031
+ "cover": [
9032
+ {
9033
+ "path": "state",
9034
+ "valueType": "enum",
9035
+ "enumValues": [
9036
+ "open",
9037
+ "opening",
9038
+ "closing",
9039
+ "closed",
9040
+ "stopped"
9041
+ ]
9042
+ },
9043
+ {
9044
+ "path": "position",
9045
+ "valueType": "number"
9046
+ },
9047
+ {
9048
+ "path": "tiltPosition",
9049
+ "valueType": "number"
9050
+ }
9051
+ ],
9052
+ "day-night": [
9053
+ {
9054
+ "path": "mode",
9055
+ "valueType": "enum",
9056
+ "enumValues": [
9057
+ "auto",
9058
+ "day",
9059
+ "night",
9060
+ "schedule"
9061
+ ]
9062
+ },
9063
+ {
9064
+ "path": "sensitivity",
9065
+ "valueType": "number"
9066
+ },
9067
+ {
9068
+ "path": "switchDelaySec",
9069
+ "valueType": "number"
9070
+ }
9071
+ ],
9072
+ "device-adoption": [
9073
+ {
9074
+ "path": "lastDiscoveryAt",
9075
+ "valueType": "number"
9076
+ },
9077
+ {
9078
+ "path": "candidateCount",
9079
+ "valueType": "number"
9080
+ },
9081
+ {
9082
+ "path": "adoptedCount",
9083
+ "valueType": "number"
9084
+ },
9085
+ {
9086
+ "path": "lastError",
9087
+ "valueType": "string"
9088
+ }
9089
+ ],
9090
+ "device-discovery": [{
9091
+ "path": "lastDiscoveryAt",
9092
+ "valueType": "number"
9093
+ }, {
9094
+ "path": "lastError",
9095
+ "valueType": "string"
9096
+ }],
9097
+ "device-export": [
9098
+ {
9099
+ "path": "linkState",
9100
+ "valueType": "enum",
9101
+ "enumValues": [
9102
+ "unlinked",
9103
+ "linked",
9104
+ "error"
9105
+ ]
9106
+ },
9107
+ {
9108
+ "path": "exposedDeviceCount",
9109
+ "valueType": "number"
9110
+ },
9111
+ {
9112
+ "path": "error",
9113
+ "valueType": "string"
9114
+ },
9115
+ {
9116
+ "path": "setup.qr",
9117
+ "valueType": "string"
9118
+ },
9119
+ {
9120
+ "path": "setup.note",
9121
+ "valueType": "string"
9122
+ }
9123
+ ],
9124
+ "device-status": [{
9125
+ "path": "online",
9126
+ "valueType": "boolean"
9127
+ }],
9128
+ "dishwasher": [
9129
+ {
9130
+ "path": "availability",
9131
+ "valueType": "enum",
9132
+ "enumValues": [
9133
+ "available",
9134
+ "offline",
9135
+ "description-missing"
9136
+ ]
9137
+ },
9138
+ {
9139
+ "path": "state",
9140
+ "valueType": "enum",
9141
+ "enumValues": [
9142
+ "idle",
9143
+ "running",
9144
+ "paused",
9145
+ "finished",
9146
+ "error",
9147
+ "unavailable"
9148
+ ]
9149
+ },
9150
+ {
9151
+ "path": "operationState",
9152
+ "valueType": "enum",
9153
+ "enumValues": [
9154
+ "Inactive",
9155
+ "Ready",
9156
+ "DelayedStart",
9157
+ "Run",
9158
+ "Pause",
9159
+ "ActionRequired",
9160
+ "Finished",
9161
+ "Error",
9162
+ "Aborting"
9163
+ ]
9164
+ },
9165
+ {
9166
+ "path": "program",
9167
+ "valueType": "string"
9168
+ },
9169
+ {
9170
+ "path": "selectedProgram",
9171
+ "valueType": "string"
9172
+ },
9173
+ {
9174
+ "path": "remainingSeconds",
9175
+ "valueType": "number"
9176
+ },
9177
+ {
9178
+ "path": "delayedStartSeconds",
9179
+ "valueType": "number"
9180
+ },
9181
+ {
9182
+ "path": "progressPercent",
9183
+ "valueType": "number"
9184
+ },
9185
+ {
9186
+ "path": "doorOpen",
9187
+ "valueType": "boolean"
9188
+ },
9189
+ {
9190
+ "path": "doorLocked",
9191
+ "valueType": "boolean"
9192
+ },
9193
+ {
9194
+ "path": "remoteStartAllowed",
9195
+ "valueType": "boolean"
9196
+ },
9197
+ {
9198
+ "path": "remoteControlActive",
9199
+ "valueType": "boolean"
9200
+ },
9201
+ {
9202
+ "path": "localControlActive",
9203
+ "valueType": "boolean"
9204
+ },
9205
+ {
9206
+ "path": "powerOn",
9207
+ "valueType": "boolean"
9208
+ },
9209
+ {
9210
+ "path": "powerState",
9211
+ "valueType": "string"
9212
+ },
9213
+ {
9214
+ "path": "filterCleaningDue",
9215
+ "valueType": "boolean"
9216
+ },
9217
+ {
9218
+ "path": "machineCareDue",
9219
+ "valueType": "boolean"
9220
+ },
9221
+ {
9222
+ "path": "machineCareRemainingRuns",
9223
+ "valueType": "number"
9224
+ },
9225
+ {
9226
+ "path": "halfLoad",
9227
+ "valueType": "boolean"
9228
+ },
9229
+ {
9230
+ "path": "hygienePlus",
9231
+ "valueType": "boolean"
9232
+ },
9233
+ {
9234
+ "path": "extraDry",
9235
+ "valueType": "boolean"
9236
+ },
9237
+ {
9238
+ "path": "intensiveZone",
9239
+ "valueType": "boolean"
9240
+ },
9241
+ {
9242
+ "path": "varioSpeedPlus",
9243
+ "valueType": "boolean"
9244
+ },
9245
+ {
9246
+ "path": "childLock",
9247
+ "valueType": "boolean"
9248
+ },
9249
+ {
9250
+ "path": "errorCode",
9251
+ "valueType": "number"
9252
+ },
9253
+ {
9254
+ "path": "errorLabel",
9255
+ "valueType": "string"
9256
+ }
9257
+ ],
9258
+ "doorbell": [{
9259
+ "path": "lastPressedAt",
9260
+ "valueType": "number"
9261
+ }, {
9262
+ "path": "pressCountSinceStart",
9263
+ "valueType": "number"
9264
+ }],
9265
+ "enum-sensor": [{
9266
+ "path": "value",
9267
+ "valueType": "string"
9268
+ }, {
9269
+ "path": "format",
9270
+ "valueType": "enum",
9271
+ "enumValues": [
9272
+ "date",
9273
+ "time",
9274
+ "datetime"
9275
+ ]
9276
+ }],
9277
+ "event-emitter": [
9278
+ {
9279
+ "path": "lastEvent.deviceId",
9280
+ "valueType": "number"
9281
+ },
9282
+ {
9283
+ "path": "lastEvent.eventType",
9284
+ "valueType": "string"
9285
+ },
9286
+ {
9287
+ "path": "lastEvent.timestamp",
9288
+ "valueType": "number"
9289
+ },
9290
+ {
9291
+ "path": "lastEvent.seq",
9292
+ "valueType": "number"
9293
+ },
9294
+ {
9295
+ "path": "eventCountSinceStart",
9296
+ "valueType": "number"
9297
+ }
9298
+ ],
9299
+ "fan-control": [
9300
+ {
9301
+ "path": "percentage",
9302
+ "valueType": "number"
9303
+ },
9304
+ {
9305
+ "path": "percentageStep",
9306
+ "valueType": "number"
9307
+ },
9308
+ {
9309
+ "path": "preset",
9310
+ "valueType": "string"
9311
+ },
9312
+ {
9313
+ "path": "direction",
9314
+ "valueType": "enum",
9315
+ "enumValues": ["forward", "reverse"]
9316
+ },
9317
+ {
9318
+ "path": "oscillating",
9319
+ "valueType": "boolean"
9320
+ }
9321
+ ],
9322
+ "feature-probe": [
9323
+ {
9324
+ "path": "deviceType",
9325
+ "valueType": "string"
9326
+ },
9327
+ {
9328
+ "path": "model",
9329
+ "valueType": "string"
9330
+ },
9331
+ {
9332
+ "path": "channelCount",
9333
+ "valueType": "number"
9334
+ },
9335
+ {
9336
+ "path": "lastProbedAt",
9337
+ "valueType": "number"
9338
+ }
9339
+ ],
9340
+ "flood": [{
9341
+ "path": "flooded",
9342
+ "valueType": "boolean"
9343
+ }],
9344
+ "gas": [{
9345
+ "path": "detected",
9346
+ "valueType": "boolean"
9347
+ }],
9348
+ "heating-valve": [{
9349
+ "path": "position",
9350
+ "valueType": "number"
9351
+ }],
9352
+ "humidifier": [
9353
+ {
9354
+ "path": "on",
9355
+ "valueType": "boolean"
9356
+ },
9357
+ {
9358
+ "path": "currentHumidity",
9359
+ "valueType": "number"
9360
+ },
9361
+ {
9362
+ "path": "targetHumidity",
9363
+ "valueType": "number"
9364
+ },
9365
+ {
9366
+ "path": "mode",
9367
+ "valueType": "string"
9368
+ },
9369
+ {
9370
+ "path": "action",
9371
+ "valueType": "string"
9372
+ },
9373
+ {
9374
+ "path": "minHumidity",
9375
+ "valueType": "number"
9376
+ },
9377
+ {
9378
+ "path": "maxHumidity",
9379
+ "valueType": "number"
9380
+ }
9381
+ ],
9382
+ "humidity-sensor": [
9383
+ {
9384
+ "path": "percent",
9385
+ "valueType": "number"
9386
+ },
9387
+ {
9388
+ "path": "unit",
9389
+ "valueType": "string"
9390
+ },
9391
+ {
9392
+ "path": "precision",
9393
+ "valueType": "number"
9394
+ }
9395
+ ],
9396
+ "image": [{
9397
+ "path": "url",
9398
+ "valueType": "string"
9399
+ }, {
9400
+ "path": "lastUpdated",
9401
+ "valueType": "number"
9402
+ }],
9403
+ "image-settings": [
9404
+ {
9405
+ "path": "brightness",
9406
+ "valueType": "number"
9407
+ },
9408
+ {
9409
+ "path": "contrast",
9410
+ "valueType": "number"
9411
+ },
9412
+ {
9413
+ "path": "saturation",
9414
+ "valueType": "number"
9415
+ },
9416
+ {
9417
+ "path": "sharpness",
9418
+ "valueType": "number"
9419
+ },
9420
+ {
9421
+ "path": "mirror",
9422
+ "valueType": "boolean"
9423
+ },
9424
+ {
9425
+ "path": "flip",
9426
+ "valueType": "boolean"
9427
+ },
9428
+ {
9429
+ "path": "rotate",
9430
+ "valueType": "enum",
9431
+ "enumValues": [
9432
+ "0",
9433
+ "90",
9434
+ "180",
9435
+ "270"
9436
+ ]
9437
+ },
9438
+ {
9439
+ "path": "whiteBalance",
9440
+ "valueType": "enum",
9441
+ "enumValues": ["auto", "manual"]
9442
+ },
9443
+ {
9444
+ "path": "warmth",
9445
+ "valueType": "number"
9446
+ },
9447
+ {
9448
+ "path": "exposureMode",
9449
+ "valueType": "enum",
9450
+ "enumValues": ["auto", "manual"]
9451
+ },
9452
+ {
9453
+ "path": "backlightMode",
9454
+ "valueType": "enum",
9455
+ "enumValues": [
9456
+ "off",
9457
+ "blc",
9458
+ "wdr",
9459
+ "hlc"
9460
+ ]
9461
+ }
9462
+ ],
9463
+ "intercom": [
9464
+ {
9465
+ "path": "talking",
9466
+ "valueType": "boolean"
9467
+ },
9468
+ {
9469
+ "path": "lastSessionAt",
9470
+ "valueType": "number"
9471
+ },
9472
+ {
9473
+ "path": "ability.sampleRate",
9474
+ "valueType": "number"
9475
+ },
9476
+ {
9477
+ "path": "ability.duplex",
9478
+ "valueType": "enum",
9479
+ "enumValues": ["half", "full"]
9480
+ },
9481
+ {
9482
+ "path": "ability.maxBacklogMs",
9483
+ "valueType": "number"
9484
+ }
9485
+ ],
9486
+ "lawn-mower-control": [
9487
+ {
9488
+ "path": "activity",
9489
+ "valueType": "enum",
9490
+ "enumValues": [
9491
+ "idle",
9492
+ "mowing",
9493
+ "paused",
9494
+ "docked",
9495
+ "error"
9496
+ ]
9497
+ },
9498
+ {
9499
+ "path": "batteryLevel",
9500
+ "valueType": "number"
9501
+ },
9502
+ {
9503
+ "path": "progressPercent",
9504
+ "valueType": "number"
9505
+ },
9506
+ {
9507
+ "path": "currentCode",
9508
+ "valueType": "number"
9509
+ },
9510
+ {
9511
+ "path": "currentCodeLabel",
9512
+ "valueType": "string"
9513
+ },
9514
+ {
9515
+ "path": "severity",
9516
+ "valueType": "enum",
9517
+ "enumValues": [
9518
+ "info",
9519
+ "warning",
9520
+ "error"
9521
+ ]
9522
+ }
9523
+ ],
9524
+ "lock-control": [{
9525
+ "path": "state",
9526
+ "valueType": "enum",
9527
+ "enumValues": [
9528
+ "locked",
9529
+ "unlocked",
9530
+ "locking",
9531
+ "unlocking",
9532
+ "jammed"
9533
+ ]
9534
+ }],
9535
+ "media-player": [
9536
+ {
9537
+ "path": "state",
9538
+ "valueType": "enum",
9539
+ "enumValues": [
9540
+ "off",
9541
+ "on",
9542
+ "idle",
9543
+ "playing",
9544
+ "paused",
9545
+ "buffering",
9546
+ "standby"
9547
+ ]
9548
+ },
9549
+ {
9550
+ "path": "volumeLevel",
9551
+ "valueType": "number"
9552
+ },
9553
+ {
9554
+ "path": "isMuted",
9555
+ "valueType": "boolean"
9556
+ },
9557
+ {
9558
+ "path": "source",
9559
+ "valueType": "string"
9560
+ },
9561
+ {
9562
+ "path": "currentMedia.type",
9563
+ "valueType": "string"
9564
+ },
9565
+ {
9566
+ "path": "currentMedia.title",
9567
+ "valueType": "string"
9568
+ },
9569
+ {
9570
+ "path": "currentMedia.artist",
9571
+ "valueType": "string"
9572
+ },
9573
+ {
9574
+ "path": "currentMedia.album",
9575
+ "valueType": "string"
9576
+ },
9577
+ {
9578
+ "path": "currentMedia.imageUrl",
9579
+ "valueType": "string"
9580
+ },
9581
+ {
9582
+ "path": "positionMs",
9583
+ "valueType": "number"
9584
+ },
9585
+ {
9586
+ "path": "durationMs",
9587
+ "valueType": "number"
9588
+ },
9589
+ {
9590
+ "path": "shuffle",
9591
+ "valueType": "boolean"
9592
+ },
9593
+ {
9594
+ "path": "repeat",
9595
+ "valueType": "enum",
9596
+ "enumValues": [
9597
+ "off",
9598
+ "all",
9599
+ "one"
9600
+ ]
9601
+ }
9602
+ ],
9603
+ "motion": [
9604
+ {
9605
+ "path": "detected",
9606
+ "valueType": "boolean"
9607
+ },
9608
+ {
9609
+ "path": "lastDetectedAt",
9610
+ "valueType": "number"
9611
+ },
9612
+ {
9613
+ "path": "autoClearAfterMs",
9614
+ "valueType": "number"
9615
+ }
9616
+ ],
9617
+ "motion-trigger": [{
9618
+ "path": "enabled",
9619
+ "valueType": "boolean"
9620
+ }],
9621
+ "motion-zones": [{
9622
+ "path": "enabled",
9623
+ "valueType": "boolean"
9624
+ }, {
9625
+ "path": "sensitivity",
9626
+ "valueType": "number"
9627
+ }],
9628
+ "mqtt-broker": [{
9629
+ "path": "brokerCount",
9630
+ "valueType": "number"
9631
+ }, {
9632
+ "path": "embeddedRunning",
9633
+ "valueType": "boolean"
9634
+ }],
9635
+ "native-object-detection": [{
9636
+ "path": "enabled",
9637
+ "valueType": "boolean"
9638
+ }],
9639
+ "navigation": [
9640
+ {
9641
+ "path": "mode",
9642
+ "valueType": "enum",
9643
+ "enumValues": [
9644
+ "idle",
9645
+ "cleaning",
9646
+ "spot",
9647
+ "following",
9648
+ "goto",
9649
+ "returning",
9650
+ "paused",
9651
+ "unknown"
9652
+ ]
9653
+ },
9654
+ {
9655
+ "path": "following",
9656
+ "valueType": "boolean"
9657
+ },
9658
+ {
9659
+ "path": "flash",
9660
+ "valueType": "boolean"
9661
+ },
9662
+ {
9663
+ "path": "lightMode",
9664
+ "valueType": "enum",
9665
+ "enumValues": ["auto", "manual"]
9666
+ },
9667
+ {
9668
+ "path": "lightLevel",
9669
+ "valueType": "number"
9670
+ }
9671
+ ],
9672
+ "network-link": [
9673
+ {
9674
+ "path": "type",
9675
+ "valueType": "enum",
9676
+ "enumValues": [
9677
+ "wifi",
9678
+ "ethernet",
9679
+ "cellular",
9680
+ "unknown"
9681
+ ]
9682
+ },
9683
+ {
9684
+ "path": "signalPercent",
9685
+ "valueType": "number"
9686
+ },
9687
+ {
9688
+ "path": "rssiDbm",
9689
+ "valueType": "number"
9690
+ },
9691
+ {
9692
+ "path": "ssid",
9693
+ "valueType": "string"
9694
+ },
9695
+ {
9696
+ "path": "lastUpdated",
9697
+ "valueType": "number"
9698
+ }
9699
+ ],
9700
+ "notifier": [
9701
+ {
9702
+ "path": "lastSentAt",
9703
+ "valueType": "number"
9704
+ },
9705
+ {
9706
+ "path": "lastError",
9707
+ "valueType": "string"
9708
+ },
9709
+ {
9710
+ "path": "queueDepth",
9711
+ "valueType": "number"
9712
+ },
9713
+ {
9714
+ "path": "supports.image",
9715
+ "valueType": "boolean"
9716
+ },
9717
+ {
9718
+ "path": "supports.priority",
9719
+ "valueType": "boolean"
9720
+ },
9721
+ {
9722
+ "path": "supports.data",
9723
+ "valueType": "boolean"
9724
+ },
9725
+ {
9726
+ "path": "supports.actions",
9727
+ "valueType": "boolean"
9728
+ },
9729
+ {
9730
+ "path": "supports.recipients",
9731
+ "valueType": "boolean"
9732
+ }
9733
+ ],
9734
+ "numeric-sensor": [
9735
+ {
9736
+ "path": "value",
9737
+ "valueType": "number"
9738
+ },
9739
+ {
9740
+ "path": "unit",
9741
+ "valueType": "string"
9742
+ },
9743
+ {
9744
+ "path": "precision",
9745
+ "valueType": "number"
9746
+ }
9747
+ ],
9748
+ "pet-feeder": [
9749
+ {
9750
+ "path": "foodLevel",
9751
+ "valueType": "number"
9752
+ },
9753
+ {
9754
+ "path": "food1",
9755
+ "valueType": "number"
9756
+ },
9757
+ {
9758
+ "path": "food2",
9759
+ "valueType": "number"
9760
+ },
9761
+ {
9762
+ "path": "lowFood",
9763
+ "valueType": "boolean"
9764
+ },
9765
+ {
9766
+ "path": "batteryPower",
9767
+ "valueType": "number"
9768
+ },
9769
+ {
9770
+ "path": "desiccantLeftDays",
9771
+ "valueType": "number"
9772
+ },
9773
+ {
9774
+ "path": "feeding",
9775
+ "valueType": "boolean"
9776
+ },
9777
+ {
9778
+ "path": "status",
9779
+ "valueType": "enum",
9780
+ "enumValues": [
9781
+ "normal",
9782
+ "offline",
9783
+ "on_batteries"
9784
+ ]
9785
+ },
9786
+ {
9787
+ "path": "error",
9788
+ "valueType": "string"
9789
+ },
9790
+ {
9791
+ "path": "errorCode",
9792
+ "valueType": "number"
9793
+ },
9794
+ {
9795
+ "path": "isDualHopper",
9796
+ "valueType": "boolean"
9797
+ },
9798
+ {
9799
+ "path": "childLock",
9800
+ "valueType": "boolean"
9801
+ },
9802
+ {
9803
+ "path": "indicatorLight",
9804
+ "valueType": "boolean"
9805
+ },
9806
+ {
9807
+ "path": "feedSound",
9808
+ "valueType": "boolean"
9809
+ },
9810
+ {
9811
+ "path": "volume",
9812
+ "valueType": "number"
9813
+ }
9814
+ ],
9815
+ "power-meter": [
9816
+ {
9817
+ "path": "watts",
9818
+ "valueType": "number"
9819
+ },
9820
+ {
9821
+ "path": "kwhTotal",
9822
+ "valueType": "number"
9823
+ },
9824
+ {
9825
+ "path": "volts",
9826
+ "valueType": "number"
9827
+ },
9828
+ {
9829
+ "path": "amps",
9830
+ "valueType": "number"
9831
+ },
9832
+ {
9833
+ "path": "va",
9834
+ "valueType": "number"
9835
+ },
9836
+ {
9837
+ "path": "powerFactor",
9838
+ "valueType": "number"
9839
+ },
9840
+ {
9841
+ "path": "unit",
9842
+ "valueType": "string"
9843
+ },
9844
+ {
9845
+ "path": "precision",
9846
+ "valueType": "number"
9847
+ }
9848
+ ],
9849
+ "presence": [
9850
+ {
9851
+ "path": "state",
9852
+ "valueType": "string"
9853
+ },
9854
+ {
9855
+ "path": "location",
9856
+ "valueType": "string"
9857
+ },
9858
+ {
9859
+ "path": "gps.latitude",
9860
+ "valueType": "number"
9861
+ },
9862
+ {
9863
+ "path": "gps.longitude",
9864
+ "valueType": "number"
9865
+ },
9866
+ {
9867
+ "path": "gps.accuracyMeters",
9868
+ "valueType": "number"
9869
+ },
9870
+ {
9871
+ "path": "batteryPercent",
9872
+ "valueType": "number"
9873
+ }
9874
+ ],
9875
+ "pressure-sensor": [
9876
+ {
9877
+ "path": "hpa",
9878
+ "valueType": "number"
9879
+ },
9880
+ {
9881
+ "path": "unit",
9882
+ "valueType": "string"
9883
+ },
9884
+ {
9885
+ "path": "precision",
9886
+ "valueType": "number"
9887
+ }
9888
+ ],
9889
+ "privacy-mask": [{
9890
+ "path": "enabled",
9891
+ "valueType": "boolean"
9892
+ }, {
9893
+ "path": "audioEnabled",
9894
+ "valueType": "boolean"
9895
+ }],
9896
+ "ptz": [
9897
+ {
9898
+ "path": "pan",
9899
+ "valueType": "number"
9900
+ },
9901
+ {
9902
+ "path": "tilt",
9903
+ "valueType": "number"
9904
+ },
9905
+ {
9906
+ "path": "zoom",
9907
+ "valueType": "number"
9908
+ },
9909
+ {
9910
+ "path": "autofocus",
9911
+ "valueType": "boolean"
9912
+ }
9913
+ ],
9914
+ "ptz-autotrack": [
9915
+ {
9916
+ "path": "enabled",
9917
+ "valueType": "boolean"
9918
+ },
9919
+ {
9920
+ "path": "currentSettings.targetType",
9921
+ "valueType": "string"
9922
+ },
9923
+ {
9924
+ "path": "currentSettings.stopDelaySeconds",
9925
+ "valueType": "number"
9926
+ },
9927
+ {
9928
+ "path": "currentSettings.disappearDelaySeconds",
9929
+ "valueType": "number"
9930
+ }
9931
+ ],
9932
+ "recording-archive": [
9933
+ {
9934
+ "path": "deviceId",
9935
+ "valueType": "number"
9936
+ },
9937
+ {
9938
+ "path": "enabled",
9939
+ "valueType": "boolean"
9940
+ },
9941
+ {
9942
+ "path": "activeMode",
9943
+ "valueType": "enum",
9944
+ "enumValues": [
9945
+ "off",
9946
+ "events",
9947
+ "continuous",
9948
+ "on-device-decision"
9949
+ ]
9950
+ },
9951
+ {
9952
+ "path": "nodeId",
9953
+ "valueType": "string"
9954
+ },
9955
+ {
9956
+ "path": "storageBytes",
9957
+ "valueType": "number"
9958
+ }
9959
+ ],
9960
+ "recording-onboard": [
9961
+ {
9962
+ "path": "primaryTrackId",
9963
+ "valueType": "string"
9964
+ },
9965
+ {
9966
+ "path": "enabled",
9967
+ "valueType": "boolean"
9968
+ },
9969
+ {
9970
+ "path": "overwriteWhenFull",
9971
+ "valueType": "boolean"
9972
+ },
9973
+ {
9974
+ "path": "preRecordSec",
9975
+ "valueType": "number"
9976
+ },
9977
+ {
9978
+ "path": "postRecordSec",
9979
+ "valueType": "number"
9980
+ },
9981
+ {
9982
+ "path": "segmentMinutes",
9983
+ "valueType": "number"
9984
+ },
9985
+ {
9986
+ "path": "unreadableWindows",
9987
+ "valueType": "number"
9988
+ },
9989
+ {
9990
+ "path": "recordingToNowhere",
9991
+ "valueType": "boolean"
9992
+ }
9993
+ ],
9994
+ "recording-signal": [{
9995
+ "path": "active",
9996
+ "valueType": "boolean"
9997
+ }, {
9998
+ "path": "reason",
9999
+ "valueType": "string"
10000
+ }],
10001
+ "running-state": [
10002
+ {
10003
+ "path": "running",
10004
+ "valueType": "boolean"
10005
+ },
10006
+ {
10007
+ "path": "since",
10008
+ "valueType": "number"
10009
+ },
10010
+ {
10011
+ "path": "source",
10012
+ "valueType": "enum",
10013
+ "enumValues": ["native", "assigned"]
10014
+ },
10015
+ {
10016
+ "path": "phase",
10017
+ "valueType": "string"
10018
+ }
10019
+ ],
10020
+ "script-runner": [
10021
+ {
10022
+ "path": "isRunning",
10023
+ "valueType": "boolean"
10024
+ },
10025
+ {
10026
+ "path": "lastRunAt",
10027
+ "valueType": "number"
10028
+ },
10029
+ {
10030
+ "path": "lastRunSuccess",
10031
+ "valueType": "boolean"
10032
+ },
10033
+ {
10034
+ "path": "lastError",
10035
+ "valueType": "string"
10036
+ }
10037
+ ],
10038
+ "smoke": [{
10039
+ "path": "detected",
10040
+ "valueType": "boolean"
10041
+ }],
10042
+ "snapshot": [
10043
+ {
10044
+ "path": "lastCapturedAt",
10045
+ "valueType": "number"
10046
+ },
10047
+ {
10048
+ "path": "cacheAgeMs",
10049
+ "valueType": "number"
10050
+ },
10051
+ {
10052
+ "path": "lastBytes",
10053
+ "valueType": "number"
10054
+ },
10055
+ {
10056
+ "path": "lastStreamId",
10057
+ "valueType": "string"
10058
+ }
10059
+ ],
10060
+ "stream-params": [
10061
+ {
10062
+ "path": "main.width",
10063
+ "valueType": "number"
10064
+ },
10065
+ {
10066
+ "path": "main.height",
10067
+ "valueType": "number"
10068
+ },
10069
+ {
10070
+ "path": "main.codec",
10071
+ "valueType": "enum",
10072
+ "enumValues": ["h264", "h265"]
10073
+ },
10074
+ {
10075
+ "path": "main.framerate",
10076
+ "valueType": "number"
10077
+ },
10078
+ {
10079
+ "path": "main.bitrate",
10080
+ "valueType": "number"
10081
+ },
10082
+ {
10083
+ "path": "main.bitrateMode",
10084
+ "valueType": "enum",
10085
+ "enumValues": ["vbr", "cbr"]
10086
+ },
10087
+ {
10088
+ "path": "main.encoderProfile",
10089
+ "valueType": "enum",
10090
+ "enumValues": [
10091
+ "high",
10092
+ "main",
10093
+ "baseline"
10094
+ ]
10095
+ },
10096
+ {
10097
+ "path": "main.gop",
10098
+ "valueType": "number"
10099
+ },
10100
+ {
10101
+ "path": "main.audio",
10102
+ "valueType": "boolean"
10103
+ },
10104
+ {
10105
+ "path": "sub.width",
10106
+ "valueType": "number"
10107
+ },
10108
+ {
10109
+ "path": "sub.height",
10110
+ "valueType": "number"
10111
+ },
10112
+ {
10113
+ "path": "sub.codec",
10114
+ "valueType": "enum",
10115
+ "enumValues": ["h264", "h265"]
10116
+ },
10117
+ {
10118
+ "path": "sub.framerate",
10119
+ "valueType": "number"
10120
+ },
10121
+ {
10122
+ "path": "sub.bitrate",
10123
+ "valueType": "number"
10124
+ },
10125
+ {
10126
+ "path": "sub.bitrateMode",
10127
+ "valueType": "enum",
10128
+ "enumValues": ["vbr", "cbr"]
10129
+ },
10130
+ {
10131
+ "path": "sub.encoderProfile",
10132
+ "valueType": "enum",
10133
+ "enumValues": [
10134
+ "high",
10135
+ "main",
10136
+ "baseline"
10137
+ ]
10138
+ },
10139
+ {
10140
+ "path": "sub.gop",
10141
+ "valueType": "number"
10142
+ },
10143
+ {
10144
+ "path": "sub.audio",
10145
+ "valueType": "boolean"
10146
+ },
10147
+ {
10148
+ "path": "ext.width",
10149
+ "valueType": "number"
10150
+ },
10151
+ {
10152
+ "path": "ext.height",
10153
+ "valueType": "number"
10154
+ },
10155
+ {
10156
+ "path": "ext.codec",
10157
+ "valueType": "enum",
10158
+ "enumValues": ["h264", "h265"]
10159
+ },
10160
+ {
10161
+ "path": "ext.framerate",
10162
+ "valueType": "number"
10163
+ },
10164
+ {
10165
+ "path": "ext.bitrate",
10166
+ "valueType": "number"
10167
+ },
10168
+ {
10169
+ "path": "ext.bitrateMode",
10170
+ "valueType": "enum",
10171
+ "enumValues": ["vbr", "cbr"]
10172
+ },
10173
+ {
10174
+ "path": "ext.encoderProfile",
10175
+ "valueType": "enum",
10176
+ "enumValues": [
10177
+ "high",
10178
+ "main",
10179
+ "baseline"
10180
+ ]
10181
+ },
10182
+ {
10183
+ "path": "ext.gop",
10184
+ "valueType": "number"
10185
+ },
10186
+ {
10187
+ "path": "ext.audio",
10188
+ "valueType": "boolean"
10189
+ }
10190
+ ],
10191
+ "switch": [{
10192
+ "path": "on",
10193
+ "valueType": "boolean"
10194
+ }],
10195
+ "tamper": [{
10196
+ "path": "tampered",
10197
+ "valueType": "boolean"
10198
+ }],
10199
+ "temperature-sensor": [
10200
+ {
10201
+ "path": "celsius",
10202
+ "valueType": "number"
10203
+ },
10204
+ {
10205
+ "path": "unit",
10206
+ "valueType": "string"
10207
+ },
10208
+ {
10209
+ "path": "precision",
10210
+ "valueType": "number"
10211
+ }
10212
+ ],
10213
+ "update": [
10214
+ {
10215
+ "path": "currentVersion",
10216
+ "valueType": "string"
10217
+ },
10218
+ {
10219
+ "path": "availableVersion",
10220
+ "valueType": "string"
10221
+ },
10222
+ {
10223
+ "path": "updatable",
10224
+ "valueType": "boolean"
10225
+ },
10226
+ {
10227
+ "path": "state",
10228
+ "valueType": "string"
10229
+ },
10230
+ {
10231
+ "path": "inProgress",
10232
+ "valueType": "boolean"
10233
+ }
10234
+ ],
10235
+ "vacuum-control": [
10236
+ {
10237
+ "path": "state",
10238
+ "valueType": "enum",
10239
+ "enumValues": [
10240
+ "idle",
10241
+ "cleaning",
10242
+ "paused",
10243
+ "returning",
10244
+ "docked",
10245
+ "drying",
10246
+ "error"
10247
+ ]
10248
+ },
10249
+ {
10250
+ "path": "batteryLevel",
10251
+ "valueType": "number"
10252
+ },
10253
+ {
10254
+ "path": "fanSpeed",
10255
+ "valueType": "string"
10256
+ },
10257
+ {
10258
+ "path": "progressPercent",
10259
+ "valueType": "number"
10260
+ },
10261
+ {
10262
+ "path": "errorCode",
10263
+ "valueType": "number"
10264
+ },
10265
+ {
10266
+ "path": "errorLabel",
10267
+ "valueType": "string"
10268
+ }
10269
+ ],
10270
+ "valve": [{
10271
+ "path": "state",
10272
+ "valueType": "enum",
10273
+ "enumValues": [
10274
+ "open",
10275
+ "opening",
10276
+ "closing",
10277
+ "closed",
10278
+ "stopped"
10279
+ ]
10280
+ }, {
10281
+ "path": "position",
10282
+ "valueType": "number"
10283
+ }],
10284
+ "vibration": [{
10285
+ "path": "detected",
10286
+ "valueType": "boolean"
10287
+ }],
10288
+ "water-heater": [
10289
+ {
10290
+ "path": "currentTemp",
10291
+ "valueType": "number"
10292
+ },
10293
+ {
10294
+ "path": "targetTemp",
10295
+ "valueType": "number"
10296
+ },
10297
+ {
10298
+ "path": "operationMode",
10299
+ "valueType": "string"
10300
+ },
10301
+ {
10302
+ "path": "away",
10303
+ "valueType": "boolean"
10304
+ },
10305
+ {
10306
+ "path": "minTemp",
10307
+ "valueType": "number"
10308
+ },
10309
+ {
10310
+ "path": "maxTemp",
10311
+ "valueType": "number"
10312
+ }
10313
+ ],
10314
+ "weather": [
10315
+ {
10316
+ "path": "condition",
10317
+ "valueType": "string"
10318
+ },
10319
+ {
10320
+ "path": "temperature",
10321
+ "valueType": "number"
10322
+ },
10323
+ {
10324
+ "path": "temperatureUnit",
10325
+ "valueType": "string"
10326
+ },
10327
+ {
10328
+ "path": "humidity",
10329
+ "valueType": "number"
10330
+ },
10331
+ {
10332
+ "path": "pressure",
10333
+ "valueType": "number"
10334
+ },
10335
+ {
10336
+ "path": "pressureUnit",
10337
+ "valueType": "string"
10338
+ },
10339
+ {
10340
+ "path": "windSpeed",
10341
+ "valueType": "number"
10342
+ },
10343
+ {
10344
+ "path": "windSpeedUnit",
10345
+ "valueType": "string"
10346
+ },
10347
+ {
10348
+ "path": "windBearing",
10349
+ "valueType": "number"
10350
+ }
10351
+ ],
10352
+ "zone-analytics": [
10353
+ {
10354
+ "path": "ts",
10355
+ "valueType": "number"
10356
+ },
10357
+ {
10358
+ "path": "frameWidth",
10359
+ "valueType": "number"
10360
+ },
10361
+ {
10362
+ "path": "frameHeight",
10363
+ "valueType": "number"
10364
+ },
10365
+ {
10366
+ "path": "frame.totalObjects",
10367
+ "valueType": "number"
10368
+ },
10369
+ {
10370
+ "path": "frame.standingObjects",
10371
+ "valueType": "number"
10372
+ },
10373
+ {
10374
+ "path": "frame.transientObjects",
10375
+ "valueType": "number"
10376
+ },
10377
+ {
10378
+ "path": "unzoned.totalObjects",
10379
+ "valueType": "number"
10380
+ },
10381
+ {
10382
+ "path": "unzoned.standingObjects",
10383
+ "valueType": "number"
10384
+ },
10385
+ {
10386
+ "path": "unzoned.transientObjects",
10387
+ "valueType": "number"
10388
+ }
10389
+ ]
10390
+ });
8413
10391
  object({
8414
10392
  code: string().regex(/^[a-z][a-z0-9-]*(\.[a-z0-9-]+)+$/),
8415
10393
  params: record(string(), union([string(), number()])).optional()
@@ -8768,7 +10746,7 @@ function errMsg(err) {
8768
10746
  return String(err);
8769
10747
  }
8770
10748
  //#endregion
8771
- //#region ../types/dist/composition-CB6PMT9p.mjs
10749
+ //#region ../types/dist/composition-kEl9mevu.mjs
8772
10750
  /**
8773
10751
  * The ffmpeg build every CamStack node downloads, per platform and arch.
8774
10752
  *
@@ -8828,7 +10806,7 @@ portable("linux64"), portable("linuxarm64"), portable("macarm64"), portable("mac
8828
10806
  * ONE table for everyone who asks "is this device HIGH?": the
8829
10807
  * recorder's `RecordingTriggers.sensorDeviceIds` trigger, the post-analysis
8830
10808
  * sensor markers, the orchestrator's camera-sensors bridge and
8831
- * the sources of a composite doorbell (`doorbellFeatureSources`, D671).
10809
+ * the sources of a pulse (`compilePulseOverride`, D936).
8832
10810
  * A second copy would diverge at the first cap added, and the symptom — "the
8833
10811
  * sensor rings the doorbell but does not record" — is exactly D62.
8834
10812
  *
@@ -9069,6 +11047,20 @@ var table = {
9069
11047
  apply: () => {
9070
11048
  throw new ExpressionEvalError("count: stateful evaluation context is required");
9071
11049
  }
11050
+ },
11051
+ dwell: {
11052
+ minArgs: 3,
11053
+ maxArgs: 3,
11054
+ apply: () => {
11055
+ throw new ExpressionEvalError("dwell: stateful evaluation context is required");
11056
+ }
11057
+ },
11058
+ latchedAt: {
11059
+ minArgs: 1,
11060
+ maxArgs: 1,
11061
+ apply: () => {
11062
+ throw new ExpressionEvalError("latchedAt: stateful evaluation context is required");
11063
+ }
9072
11064
  }
9073
11065
  };
9074
11066
  Object.freeze(Object.assign(Object.create(null), table));
@@ -12138,7 +14130,7 @@ var LogChannelDescriptorSchema = object({
12138
14130
  * `true` is a PROMISE with two halves, and both must hold: the gate is
12139
14131
  * consulted with the numeric device id, AND every line the channel admits
12140
14132
  * carries `tags: { deviceId }` with that same numeric id. The second half is
12141
- * what makes `| json | deviceId="617"` work in Loki — `loki-payload.ts`
14133
+ * what makes `| json | deviceId="102"` work in Loki — `loki-payload.ts`
12142
14134
  * keeps `deviceId` out of the stream labels for cardinality, so the tag in
12143
14135
  * the body is the only way to filter.
12144
14136
  *
@@ -12414,7 +14406,7 @@ var ModelVariantGroupSchema = object({
12414
14406
  precision: _enum(["fp32", "int8"]).optional(),
12415
14407
  /**
12416
14408
  * Training / latency-variant axis. Omit ⇒ the standard build. `test` marks
12417
- * an alternate training of the same family (Scrypted `relu_test`); chip
14409
+ * an alternate training of the same family (plugin catalog `relu_test`); chip
12418
14410
  * label is "Test".
12419
14411
  */
12420
14412
  optimization: _enum(["standard", "test"]).optional(),
@@ -12666,8 +14658,8 @@ var ModelCatalogEntrySchema = object({
12666
14658
  provider: ModelProviderIdSchema.optional(),
12667
14659
  /**
12668
14660
  * Per-MODEL class map override. Absent ⇒ the step's `StepDefinition.classMap`
12669
- * applies (Frigate / COCO public catalog). Set on a custom model whose raw
12670
- * labels already ARE the CamStack macros (Scrypted identity map).
14661
+ * applies (plus catalog / COCO public catalog). Set on a custom model whose raw
14662
+ * labels already ARE the CamStack macros (plugin catalog identity map).
12671
14663
  */
12672
14664
  classMap: DetectionCatalogClassMapSchema.optional(),
12673
14665
  /**
@@ -15685,7 +17677,7 @@ method(object({
15685
17677
  * `1` is real time and is the ONLY value that allows the copy branch —
15686
17678
  * anything else forces `libx264` over the window. That was priced
15687
17679
  * before it was chosen: a per-event burst measured at 0.23 s and 254 KB
15688
- * on a real 615 720p cut, against 922 KB for the copy it replaces. A
17680
+ * on a real 101 720p cut, against 922 KB for the copy it replaces. A
15689
17681
  * re-encode is capped at 720p (`EVENT_CLIP_ENCODE_MAX_WIDTH`), because
15690
17682
  * once the decode is forced the width stops being free.
15691
17683
  */
@@ -16105,6 +18097,7 @@ var CompositionRunStatusSchema = _enum([
16105
18097
  "starting",
16106
18098
  "running",
16107
18099
  "degraded",
18100
+ "incomplete",
16108
18101
  "failed"
16109
18102
  ]);
16110
18103
  var CompositionFieldStateKindSchema = _enum([
@@ -16154,6 +18147,13 @@ var ComposerUnreadableBlockSchema = object({
16154
18147
  /** The parse error, in the operator's words. */
16155
18148
  error: string()
16156
18149
  });
18150
+ /** A confirmed release the hub did not accept. `deviceId` is the claim's device. */
18151
+ var UnreleasedClaimSchema = object({
18152
+ deviceId: number().int(),
18153
+ capName: string(),
18154
+ owner: string(),
18155
+ error: string()
18156
+ });
16157
18157
  method(object({
16158
18158
  /** The shared Blocks integration; null until `core-blocks` has reconciled it. */
16159
18159
  integrationId: string().nullable(),
@@ -16163,7 +18163,13 @@ method(object({
16163
18163
  /** Operator restarts: rebuild these runtimes and re-resolve their sources. Stores nothing (D62). */
16164
18164
  restartBlockIds: array(string()),
16165
18165
  /** Composition rows that exist but do not parse: held, never withdrawn, reported failed. */
16166
- unreadableBlocks: array(ComposerUnreadableBlockSchema)
18166
+ unreadableBlocks: array(ComposerUnreadableBlockSchema),
18167
+ /**
18168
+ * Operator-confirmed deletions. Their claims are released on this apply,
18169
+ * before any replacement block claims. A block that merely vanished from the
18170
+ * snapshot is not listed here and still waits for two applies (D49).
18171
+ */
18172
+ retiredBlockIds: array(string()).optional()
16167
18173
  }), object({
16168
18174
  blocks: array(object({
16169
18175
  blockId: string(),
@@ -16175,7 +18181,13 @@ method(object({
16175
18181
  * integration unknown, its own rows unread or read empty once). An empty
16176
18182
  * apply the caller owes is paid off only by one the composer acted on (D49).
16177
18183
  */
16178
- acted: boolean()
18184
+ acted: boolean(),
18185
+ /**
18186
+ * Confirmed releases this apply tried and the hub did not accept. Empty when
18187
+ * every one landed (or there was nothing to hand back). Absent on a result
18188
+ * that never got that far.
18189
+ */
18190
+ unreleasedClaims: array(UnreleasedClaimSchema).optional()
16179
18191
  }), {
16180
18192
  kind: "mutation",
16181
18193
  auth: "admin"
@@ -16218,7 +18230,15 @@ Object.freeze({
16218
18230
  kind: "fixed",
16219
18231
  result: ["number", "null"]
16220
18232
  },
16221
- count: NUMBER
18233
+ count: NUMBER,
18234
+ dwell: {
18235
+ kind: "fixed",
18236
+ result: ["boolean", "null"]
18237
+ },
18238
+ latchedAt: {
18239
+ kind: "fixed",
18240
+ result: ["number", "null"]
18241
+ }
16222
18242
  });
16223
18243
  `${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
16224
18244
  /**
@@ -16291,6 +18311,7 @@ var CoreBlockStatusSchema = _enum([
16291
18311
  "starting",
16292
18312
  "running",
16293
18313
  "degraded",
18314
+ "incomplete",
16294
18315
  "failed"
16295
18316
  ]);
16296
18317
  /** path → TypeScript source for a multi-file block. */
@@ -38239,7 +40260,7 @@ var PRIMARY_CATEGORIES = new Set(ENTRIES.map((e) => e.primaryCategory));
38239
40260
  * `locationKey` is ALWAYS {@link locationIconKey} of the label — never the
38240
40261
  * operator's casing. The registry matches labels trimmed + case-insensitively
38241
40262
  * everywhere (`addLocation`, `removeLocation`, `renameLocation`), and a
38242
- * case-only rename (`cucina` → `Cucina`) is a real edit this repo supports; a
40263
+ * case-only rename (`kitchen` → `Kitchen`) is a real edit this repo supports; a
38243
40264
  * map keyed on the displayed casing would orphan its entry on exactly that
38244
40265
  * edit. Consumers join by keying their own label through `locationIconKey`.
38245
40266
  */
@@ -38264,7 +40285,7 @@ var LocationDescriptionAssignmentSchema = object({
38264
40285
  /**
38265
40286
  * A SITE ZONE — a named part of the property that several locations belong to.
38266
40287
  *
38267
- * "Zona notte" holds every bedroom; "Zona giorno" the living room and the
40288
+ * "Night zone" holds every bedroom; "Zona giorno" the living room and the
38268
40289
  * kitchen. A camera belongs to exactly one location, and a location to at most
38269
40290
  * one zone, so a camera's zone is derived and never stored on the device: the
38270
40291
  * whole point of this entity is that grouping rooms touches no device row.
@@ -38293,7 +40314,7 @@ var LocationDescriptionAssignmentSchema = object({
38293
40314
  * the locations inside it.
38294
40315
  *
38295
40316
  * The LABEL is carried alongside the key because the key is lossy on purpose —
38296
- * a surface must show "Zona notte", not "zona notte". Locations are carried
40317
+ * a surface must show "Night zone", not "night zone". Locations are carried
38297
40318
  * here, rather than left to a second call, because every consumer wants both
38298
40319
  * at once and a viewer that asked twice could render a zone whose membership
38299
40320
  * it has not fetched yet.
@@ -40406,8 +42427,8 @@ var LoadContributionSchema = object({
40406
42427
  "unattributable"
40407
42428
  ]),
40408
42429
  /**
40409
- * What ONE entry is, in the contributor's own words — `615/high`,
40410
- * `617/native`, `cuda:0 shared pool`. Free text because the unit differs per
42430
+ * What ONE entry is, in the contributor's own words — `101/high`,
42431
+ * `102/native`, `cuda:0 shared pool`. Free text because the unit differs per
40411
42432
  * family and inventing a common one would lose the only information that
40412
42433
  * makes two entries for the same camera distinguishable.
40413
42434
  */
@@ -42055,6 +44076,381 @@ var _macroLookup = /* @__PURE__ */ new Map();
42055
44076
  for (const [k, v] of Object.entries(YAMNET_TO_MACRO.mapping)) _macroLookup.set(k.toLowerCase(), v);
42056
44077
  for (const [k, v] of Object.entries(APPLE_SA_TO_MACRO.mapping)) _macroLookup.set(k.toLowerCase(), v);
42057
44078
  /**
44079
+ * Palette entry ids (D939). Audio is the one gradient; `audio-*` leaves are
44080
+ * not entries. `heatmapScrub` is a mark, not an event kind.
44081
+ */
44082
+ var PALETTE_ENTRY_IDS = [
44083
+ "motion",
44084
+ "audio",
44085
+ "recording",
44086
+ "live",
44087
+ "heatmapScrub",
44088
+ "person",
44089
+ "vehicle",
44090
+ "animal",
44091
+ "package",
44092
+ "sensor",
44093
+ "control",
44094
+ "face",
44095
+ "plate",
44096
+ "car",
44097
+ "truck",
44098
+ "bus",
44099
+ "motorcycle",
44100
+ "bicycle",
44101
+ "airplane",
44102
+ "boat",
44103
+ "train",
44104
+ "bird",
44105
+ "dog",
44106
+ "cat",
44107
+ "horse",
44108
+ "sheep",
44109
+ "cow",
44110
+ "elephant",
44111
+ "bear",
44112
+ "zebra",
44113
+ "giraffe",
44114
+ "package-delivered",
44115
+ "package-picked-up",
44116
+ "suitcase",
44117
+ "backpack",
44118
+ "handbag",
44119
+ "contact",
44120
+ "motion-sensor",
44121
+ "smoke",
44122
+ "flood",
44123
+ "gas",
44124
+ "carbon-monoxide",
44125
+ "vibration",
44126
+ "tamper",
44127
+ "presence",
44128
+ "enum-sensor",
44129
+ "device-event",
44130
+ "lock",
44131
+ "cover",
44132
+ "switch",
44133
+ "siren",
44134
+ "button",
44135
+ "doorbell"
44136
+ ];
44137
+ var AUDIO_ENTRY_ID = "audio";
44138
+ /** Six rungs, quiet → loud. The opaque end is the entry's hex. */
44139
+ var AUDIO_GRADIENT_ALPHAS = [
44140
+ .3,
44141
+ .42,
44142
+ .55,
44143
+ .7,
44144
+ .85,
44145
+ 1
44146
+ ];
44147
+ var PALETTE_PRESET_IDS = [
44148
+ "camstack",
44149
+ "high-contrast",
44150
+ "okabe-ito"
44151
+ ];
44152
+ /** Frozen palette tables (D939). The spec refuses a table that breaks the rule. */
44153
+ var CAMSTACK_HEX = {
44154
+ motion: "#d946ef",
44155
+ audio: "#059eb8",
44156
+ recording: "#ef4444",
44157
+ live: "#8d7a00",
44158
+ heatmapScrub: "#4b32ff",
44159
+ person: "#11a64c",
44160
+ vehicle: "#3b82f6",
44161
+ animal: "#ea6a09",
44162
+ package: "#924667",
44163
+ sensor: "#624bbc",
44164
+ control: "#944d24",
44165
+ face: "#ed4f8d",
44166
+ plate: "#4b7027",
44167
+ car: "#9684cf",
44168
+ truck: "#0f9b89",
44169
+ bus: "#a734a9",
44170
+ motorcycle: "#c1133a",
44171
+ bicycle: "#0e6a9b",
44172
+ airplane: "#7c9928",
44173
+ boat: "#b17933",
44174
+ train: "#ad6ca3",
44175
+ bird: "#0f7c55",
44176
+ dog: "#c82700",
44177
+ cat: "#7268f2",
44178
+ horse: "#cb795e",
44179
+ sheep: "#b8636b",
44180
+ cow: "#cb2969",
44181
+ elephant: "#1158d2",
44182
+ bear: "#8d5e00",
44183
+ zebra: "#0097d6",
44184
+ giraffe: "#8f61bb",
44185
+ "package-delivered": "#cd3f9b",
44186
+ "package-picked-up": "#388a08",
44187
+ suitcase: "#666800",
44188
+ backpack: "#ec5022",
44189
+ handbag: "#a76ef8",
44190
+ contact: "#ab5a49",
44191
+ "motion-sensor": "#b95d1a",
44192
+ smoke: "#dd3858",
44193
+ flood: "#b31e7d",
44194
+ gas: "#5b70b5",
44195
+ "carbon-monoxide": "#7b4e8e",
44196
+ vibration: "#e65bba",
44197
+ tamper: "#98464b",
44198
+ presence: "#3a9468",
44199
+ "enum-sensor": "#7885f8",
44200
+ "device-event": "#8c43c8",
44201
+ lock: "#649653",
44202
+ cover: "#c67597",
44203
+ switch: "#7a812a",
44204
+ siren: "#ac5d7f",
44205
+ button: "#b276cd",
44206
+ doorbell: "#0087ab"
44207
+ };
44208
+ var CAMSTACK_FALLBACK = [
44209
+ "#b34dc7",
44210
+ "#1d7d34",
44211
+ "#db6b6c",
44212
+ "#a43d29",
44213
+ "#0e6ee6",
44214
+ "#29a10b",
44215
+ "#a98731",
44216
+ "#0181c6"
44217
+ ];
44218
+ var HIGH_CONTRAST_HEX = {
44219
+ motion: "#964360",
44220
+ audio: "#23a132",
44221
+ recording: "#2494ca",
44222
+ live: "#bd7e2b",
44223
+ heatmapScrub: "#ad6eea",
44224
+ person: "#62611e",
44225
+ vehicle: "#f4534c",
44226
+ animal: "#1556cd",
44227
+ package: "#9c4415",
44228
+ sensor: "#066c48",
44229
+ control: "#f2479f",
44230
+ face: "#139d8a",
44231
+ plate: "#909024",
44232
+ car: "#8e35ab",
44233
+ truck: "#bd0b2b",
44234
+ bus: "#7a88ca",
44235
+ motorcycle: "#e26725",
44236
+ bicycle: "#a6679b",
44237
+ airplane: "#7c5720",
44238
+ boat: "#467a1b",
44239
+ train: "#6f65a4",
44240
+ bird: "#cb717f",
44241
+ dog: "#c62490",
44242
+ cat: "#b36850",
44243
+ horse: "#1872ac",
44244
+ sheep: "#927939",
44245
+ cow: "#428a5c",
44246
+ elephant: "#d41160",
44247
+ bear: "#799453",
44248
+ zebra: "#a85455",
44249
+ giraffe: "#746be8",
44250
+ "package-delivered": "#824a80",
44251
+ "package-picked-up": "#614ac1",
44252
+ suitcase: "#2f77f3",
44253
+ backpack: "#fa476d",
44254
+ handbag: "#c14cbe",
44255
+ contact: "#c83921",
44256
+ "motion-sensor": "#a07ebd",
44257
+ smoke: "#a25b13",
44258
+ flood: "#526bab",
44259
+ gas: "#924938",
44260
+ "carbon-monoxide": "#bb7e53",
44261
+ vibration: "#b66182",
44262
+ tamper: "#3c6931",
44263
+ presence: "#6c851d",
44264
+ "enum-sensor": "#ad2d48",
44265
+ "device-event": "#5e9b04",
44266
+ lock: "#00a062",
44267
+ cover: "#ad8624",
44268
+ switch: "#d05259",
44269
+ siren: "#cd67b3",
44270
+ button: "#c9746a",
44271
+ doorbell: "#338eeb"
44272
+ };
44273
+ var HIGH_CONTRAST_FALLBACK = [
44274
+ "#817f3b",
44275
+ "#a0733e",
44276
+ "#8658b2",
44277
+ "#956301",
44278
+ "#bc652d",
44279
+ "#647331",
44280
+ "#a14c9e",
44281
+ "#d14e71"
44282
+ ];
44283
+ var OKABE_ITO_HEX = {
44284
+ motion: "#b88128",
44285
+ audio: "#1096c8",
44286
+ recording: "#009e73",
44287
+ live: "#9c8c22",
44288
+ heatmapScrub: "#0072b2",
44289
+ person: "#d55e00",
44290
+ vehicle: "#c0739f",
44291
+ animal: "#226d18",
44292
+ package: "#91446c",
44293
+ sensor: "#217b56",
44294
+ control: "#648647",
44295
+ face: "#c22998",
44296
+ plate: "#fa4575",
44297
+ car: "#956301",
44298
+ truck: "#2f77f3",
44299
+ bus: "#7a4e86",
44300
+ motorcycle: "#f54597",
44301
+ bicycle: "#bb3e75",
44302
+ airplane: "#e054c0",
44303
+ boat: "#457942",
44304
+ train: "#867afa",
44305
+ bird: "#88914c",
44306
+ dog: "#1556cd",
44307
+ cat: "#71702c",
44308
+ horse: "#9b4fa4",
44309
+ sheep: "#c0559d",
44310
+ cow: "#d14f65",
44311
+ elephant: "#98470f",
44312
+ bear: "#595896",
44313
+ zebra: "#96790e",
44314
+ giraffe: "#cb717b",
44315
+ "package-delivered": "#139d8a",
44316
+ "package-picked-up": "#906ead",
44317
+ suitcase: "#d02939",
44318
+ backpack: "#d41160",
44319
+ handbag: "#f64f54",
44320
+ contact: "#7258d2",
44321
+ "motion-sensor": "#b66182",
44322
+ smoke: "#627abb",
44323
+ flood: "#b86ae4",
44324
+ gas: "#a95261",
44325
+ "carbon-monoxide": "#c65d3c",
44326
+ vibration: "#7a40b7",
44327
+ tamper: "#914b34",
44328
+ presence: "#9481c3",
44329
+ "enum-sensor": "#ac6d47",
44330
+ "device-event": "#7b6fce",
44331
+ lock: "#c67662",
44332
+ cover: "#a6564d",
44333
+ switch: "#ad2c4e",
44334
+ siren: "#348e08",
44335
+ button: "#d27303",
44336
+ doorbell: "#55770f"
44337
+ };
44338
+ var OKABE_ITO_FALLBACK = [
44339
+ "#9a3784",
44340
+ "#a7392c",
44341
+ "#409d50",
44342
+ "#6987e7",
44343
+ "#ee5b3d",
44344
+ "#c0430d",
44345
+ "#af79b3",
44346
+ "#4b6628"
44347
+ ];
44348
+ /**
44349
+ * The display palette (D939). One table of colours, three presets, one
44350
+ * validator. Taxonomy colours and every consumer read this — there is no
44351
+ * second hex table.
44352
+ */
44353
+ var paletteHexSchema = string().regex(/^#[0-9a-f]{6}$/);
44354
+ var paletteSwatchSchema = discriminatedUnion("form", [object({
44355
+ form: literal("solid"),
44356
+ hex: paletteHexSchema
44357
+ }), object({
44358
+ form: literal("gradient"),
44359
+ hex: paletteHexSchema,
44360
+ alphas: array(number().gt(0).lte(1)).length(AUDIO_GRADIENT_ALPHAS.length)
44361
+ })]);
44362
+ var paletteReadySchema = object({
44363
+ status: literal("ready"),
44364
+ presetId: _enum(PALETTE_PRESET_IDS),
44365
+ customized: boolean(),
44366
+ source: _enum(["stored", "unconfigured"]),
44367
+ swatches: record(string(), paletteSwatchSchema),
44368
+ fallbacks: array(paletteHexSchema).length(8)
44369
+ });
44370
+ var paletteResultSchema = discriminatedUnion("status", [paletteReadySchema, object({
44371
+ status: literal("unknown"),
44372
+ reason: string()
44373
+ })]);
44374
+ var setPaletteInputSchema = union([object({ presetId: string() }), object({
44375
+ presetId: string(),
44376
+ overrides: record(string(), paletteSwatchSchema)
44377
+ })]);
44378
+ object({
44379
+ presetId: string(),
44380
+ overrides: record(string(), paletteSwatchSchema)
44381
+ });
44382
+ function solid(hex) {
44383
+ return {
44384
+ form: "solid",
44385
+ hex
44386
+ };
44387
+ }
44388
+ function audioGradient(hex) {
44389
+ return {
44390
+ form: "gradient",
44391
+ hex,
44392
+ alphas: [...AUDIO_GRADIENT_ALPHAS]
44393
+ };
44394
+ }
44395
+ function swatchesFrom(hexes) {
44396
+ const out = {};
44397
+ for (const id of PALETTE_ENTRY_IDS) {
44398
+ const hex = hexes[id];
44399
+ if (hex === void 0) throw new Error(`palette table missing ${id}`);
44400
+ out[id] = id === "audio" ? audioGradient(hex) : solid(hex);
44401
+ }
44402
+ return out;
44403
+ }
44404
+ function preset(id, name, hexes, fallbacks) {
44405
+ return {
44406
+ id,
44407
+ name,
44408
+ swatches: swatchesFrom(hexes),
44409
+ fallbacks
44410
+ };
44411
+ }
44412
+ var DISPLAY_PRESETS = [
44413
+ preset("camstack", "CamStack", CAMSTACK_HEX, CAMSTACK_FALLBACK),
44414
+ preset("high-contrast", "High contrast", HIGH_CONTRAST_HEX, HIGH_CONTRAST_FALLBACK),
44415
+ preset("okabe-ito", "Colour-blind safe", OKABE_ITO_HEX, OKABE_ITO_FALLBACK)
44416
+ ];
44417
+ function presetById(id) {
44418
+ return DISPLAY_PRESETS.find((item) => item.id === id);
44419
+ }
44420
+ function bundledCamstack() {
44421
+ const presetRow = presetById("camstack");
44422
+ if (presetRow === void 0) throw new Error("CamStack preset missing");
44423
+ return readyOf(presetRow, "unconfigured", false);
44424
+ }
44425
+ function readyOf(row, source, customized) {
44426
+ return {
44427
+ status: "ready",
44428
+ presetId: row.id,
44429
+ customized,
44430
+ source,
44431
+ swatches: row.swatches,
44432
+ fallbacks: [...row.fallbacks]
44433
+ };
44434
+ }
44435
+ function hashFallback(kind, fallbacks) {
44436
+ let hash = 0;
44437
+ for (let i = 0; i < kind.length; i++) hash = hash * 31 + (kind.codePointAt(i) ?? 0) >>> 0;
44438
+ const hex = fallbacks[hash % fallbacks.length];
44439
+ if (hex === void 0) throw new Error("display palette has no fallback colour");
44440
+ return hex;
44441
+ }
44442
+ /** Colour a kind paints with. Audio leaves share the audio gradient's hex. */
44443
+ function paintHex(swatches, fallbacks, kind) {
44444
+ const key = kind.trim().toLowerCase();
44445
+ if (key.startsWith("audio-")) {
44446
+ const audio = swatches[AUDIO_ENTRY_ID];
44447
+ return audio !== void 0 ? audio.hex : hashFallback(key, fallbacks);
44448
+ }
44449
+ const direct = swatches[key];
44450
+ if (direct !== void 0) return direct.hex;
44451
+ return hashFallback(key, fallbacks);
44452
+ }
44453
+ /**
42058
44454
  * Unified event-kind taxonomy — THE single source of truth for
42059
44455
  * `kind → { parentKind, category, level, color, iconId, labelKey, label,
42060
44456
  * icon }`.
@@ -42068,109 +44464,88 @@ for (const [k, v] of Object.entries(APPLE_SA_TO_MACRO.mapping)) _macroLookup.set
42068
44464
  * - `addon-post-analysis/shared/frame/box-drawer.ts` (DEFAULT_COLOR)
42069
44465
  * - the COCO / audio class maps (macro ↔ sub relationships)
42070
44466
  *
42071
- * The DATA (serializable — color/iconId/labelKey/parentKind) lives here in
42072
- * `@camstack/types`. The UI-side mapping `iconId → lucide component` and
42073
- * `labelKey → t()` lives in `@camstack/ui-library`. UIs never hardcode a
42074
- * color or an icon: they read this dictionary (server descriptors carry the
42075
- * fields inline; the client resolves color/icon/label from `iconId`/`kind`).
44467
+ * The DATA (serializable — parentKind / iconId / labelKey) lives here in
44468
+ * `@camstack/types`. Colour is NOT a second table: each entry's `color` is
44469
+ * the bundled CamStack display palette (D939). The effective cluster palette
44470
+ * is the `display-palette` capability. The UI-side mapping `iconId → lucide
44471
+ * component` and `labelKey → t()` lives in `@camstack/ui-library`.
42076
44472
  *
42077
44473
  * Two levels only (v1 YAGNI): macro → sub. `person` is a leaf macro.
42078
44474
  */
42079
- var TAXONOMY_COLORS = {
42080
- motion: "#f59e0b",
42081
- audio: "#06b6d4",
42082
- person: "#22c55e",
42083
- vehicle: "#3b82f6",
42084
- animal: "#f97316",
42085
- package: "#a855f7",
42086
- sensor: "#8b5cf6",
42087
- control: "#10b981",
42088
- genericDetection: "#64748b"
42089
- };
42090
- var DETECTION_SUB_COLORS = {
42091
- car: "#f59e0b",
42092
- truck: "#d97706",
42093
- bus: "#b45309",
42094
- motorcycle: "#eab308",
42095
- bicycle: "#ca8a04",
42096
- airplane: "#60a5fa",
42097
- boat: "#2563eb",
42098
- train: "#1d4ed8",
42099
- bird: "#14b8a6",
42100
- dog: "#84cc16",
42101
- cat: "#f97316",
42102
- horse: "#a16207",
42103
- sheep: "#a3a3a3",
42104
- cow: "#78716c",
42105
- elephant: "#6b7280",
42106
- bear: "#7c2d12",
42107
- zebra: "#404040",
42108
- giraffe: "#d4a373"
42109
- };
44475
+ var BUNDLED_PALETTE = bundledCamstack();
44476
+ function kindColor(kind) {
44477
+ return paintHex(BUNDLED_PALETTE.swatches, BUNDLED_PALETTE.fallbacks, kind);
44478
+ }
44479
+ function firstFallback(fallbacks) {
44480
+ const hex = fallbacks[0];
44481
+ if (hex === void 0) throw new Error("display palette has no fallback colour");
44482
+ return hex;
44483
+ }
44484
+ firstFallback(BUNDLED_PALETTE.fallbacks);
42110
44485
  function titleCase(id) {
42111
44486
  return id.split(/[-_ ]/).filter((p) => p.length > 0).map((p) => p.charAt(0).toUpperCase() + p.slice(1)).join(" ");
42112
44487
  }
42113
44488
  var entries = /* @__PURE__ */ new Map();
42114
- function macro(kind, category, color, iconId, label) {
44489
+ function macro(kind, category, iconId, label) {
42115
44490
  entries.set(kind, {
42116
44491
  kind,
42117
44492
  parentKind: null,
42118
44493
  level: "macro",
42119
44494
  category,
42120
- color,
44495
+ color: kindColor(kind),
42121
44496
  iconId,
42122
44497
  labelKey: `eventKind.${kind}`,
42123
44498
  label
42124
44499
  });
42125
44500
  }
42126
- function sub(kind, parentKind, category, color, iconId, label) {
44501
+ function sub(kind, parentKind, category, iconId, label) {
42127
44502
  entries.set(kind, {
42128
44503
  kind,
42129
44504
  parentKind,
42130
44505
  level: "sub",
42131
44506
  category,
42132
- color,
44507
+ color: kindColor(kind),
42133
44508
  iconId,
42134
44509
  labelKey: `eventKind.${kind}`,
42135
44510
  label
42136
44511
  });
42137
44512
  }
42138
- macro("motion", "motion", TAXONOMY_COLORS.motion, "motion", "Motion");
42139
- macro("audio", "audio", TAXONOMY_COLORS.audio, "audio", "Audio");
42140
- macro("person", "detection", TAXONOMY_COLORS.person, "person", "Person");
42141
- macro("vehicle", "detection", TAXONOMY_COLORS.vehicle, "vehicle", "Vehicle");
42142
- macro("animal", "detection", TAXONOMY_COLORS.animal, "animal", "Animal");
42143
- macro("package", "package", TAXONOMY_COLORS.package, "package", "Package");
42144
- macro("sensor", "sensor", TAXONOMY_COLORS.sensor, "sensor", "Sensor");
42145
- macro("control", "control", TAXONOMY_COLORS.control, "control", "Control");
44513
+ macro("motion", "motion", "motion", "Motion");
44514
+ macro("audio", "audio", "audio", "Audio");
44515
+ macro("person", "detection", "person", "Person");
44516
+ macro("vehicle", "detection", "vehicle", "Vehicle");
44517
+ macro("animal", "detection", "animal", "Animal");
44518
+ macro("package", "package", "package", "Package");
44519
+ macro("sensor", "sensor", "sensor", "Sensor");
44520
+ macro("control", "control", "control", "Control");
42146
44521
  for (const [cocoClass, macroClass] of Object.entries(COCO_TO_MACRO.mapping)) {
42147
44522
  if (macroClass !== "vehicle" && macroClass !== "animal") continue;
42148
44523
  if (entries.has(cocoClass)) continue;
42149
- sub(cocoClass, macroClass, "detection", DETECTION_SUB_COLORS[cocoClass] ?? TAXONOMY_COLORS.genericDetection, cocoClass, titleCase(cocoClass));
42150
- }
42151
- sub("package-delivered", "package", "package", TAXONOMY_COLORS.package, "package", "Package delivered");
42152
- sub("package-picked-up", "package", "package", TAXONOMY_COLORS.package, "package", "Package picked up");
42153
- sub("contact", "sensor", "sensor", "#f59e0b", "door", "Contact");
42154
- sub("motion-sensor", "sensor", "sensor", TAXONOMY_COLORS.sensor, "pir", "Motion sensor");
42155
- sub("smoke", "sensor", "sensor", "#ef4444", "smoke", "Smoke");
42156
- sub("flood", "sensor", "sensor", "#3b82f6", "water", "Water leak");
42157
- sub("gas", "sensor", "sensor", "#ef4444", "gas", "Gas");
42158
- sub("carbon-monoxide", "sensor", "sensor", "#dc2626", "smoke", "Carbon monoxide");
42159
- sub("vibration", "sensor", "sensor", "#eab308", "vibration", "Vibration");
42160
- sub("tamper", "sensor", "sensor", "#f97316", "tamper", "Tamper");
42161
- sub("presence", "sensor", "sensor", "#22c55e", "presence", "Presence");
42162
- sub("enum-sensor", "sensor", "sensor", TAXONOMY_COLORS.sensor, "generic", "Sensor state");
42163
- sub("device-event", "sensor", "sensor", "#10b981", "button", "Device event");
42164
- sub("lock", "control", "control", "#0ea5e9", "lock", "Lock");
42165
- sub("cover", "control", "control", "#0ea5e9", "door", "Cover");
42166
- sub("switch", "control", "control", TAXONOMY_COLORS.control, "switch", "Switch");
42167
- sub("siren", "control", "control", "#dc2626", "siren", "Siren");
42168
- sub("button", "control", "control", "#10b981", "button", "Button");
42169
- sub("doorbell", "control", "control", "#a855f7", "doorbell", "Doorbell");
44524
+ sub(cocoClass, macroClass, "detection", cocoClass, titleCase(cocoClass));
44525
+ }
44526
+ sub("package-delivered", "package", "package", "package", "Package delivered");
44527
+ sub("package-picked-up", "package", "package", "package", "Package picked up");
44528
+ sub("contact", "sensor", "sensor", "door", "Contact");
44529
+ sub("motion-sensor", "sensor", "sensor", "pir", "Motion sensor");
44530
+ sub("smoke", "sensor", "sensor", "smoke", "Smoke");
44531
+ sub("flood", "sensor", "sensor", "water", "Water leak");
44532
+ sub("gas", "sensor", "sensor", "gas", "Gas");
44533
+ sub("carbon-monoxide", "sensor", "sensor", "smoke", "Carbon monoxide");
44534
+ sub("vibration", "sensor", "sensor", "vibration", "Vibration");
44535
+ sub("tamper", "sensor", "sensor", "tamper", "Tamper");
44536
+ sub("presence", "sensor", "sensor", "presence", "Presence");
44537
+ sub("enum-sensor", "sensor", "sensor", "generic", "Sensor state");
44538
+ sub("device-event", "sensor", "sensor", "button", "Device event");
44539
+ sub("lock", "control", "control", "lock", "Lock");
44540
+ sub("cover", "control", "control", "door", "Cover");
44541
+ sub("switch", "control", "control", "switch", "Switch");
44542
+ sub("siren", "control", "control", "siren", "Siren");
44543
+ sub("button", "control", "control", "button", "Button");
44544
+ sub("doorbell", "control", "control", "doorbell", "Doorbell");
42170
44545
  for (const l of AUDIO_MACRO_LABELS) {
42171
44546
  const kind = `audio-${l.id}`;
42172
44547
  if (entries.has(kind)) continue;
42173
- sub(kind, "audio", "audio", TAXONOMY_COLORS.audio, kind, l.name);
44548
+ sub(kind, "audio", "audio", kind, l.name);
42174
44549
  }
42175
44550
  /** The complete taxonomy dictionary, keyed by kind. */
42176
44551
  var EVENT_TAXONOMY = Object.freeze(Object.fromEntries(entries));
@@ -42437,9 +44812,6 @@ var NcSystemEventKindSchema = _enum([
42437
44812
  "device-battery-normal",
42438
44813
  "device-consumable-low",
42439
44814
  "device-consumable-normal",
42440
- "device-tank-low",
42441
- "device-tank-full",
42442
- "device-tank-normal",
42443
44815
  "stream-online",
42444
44816
  "stream-offline",
42445
44817
  "node-online",
@@ -42486,13 +44858,14 @@ var NcSystemEventKindSchema = _enum([
42486
44858
  "camera-enabled"
42487
44859
  ]);
42488
44860
  /** The legacy tail of {@link NcSystemEventKindSchema} — see its docblock. */
42489
- var NC_LEGACY_SYSTEM_EVENT_KINDS = new Set([
44861
+ var NC_LEGACY_SYSTEM_EVENT_KINDS = [
42490
44862
  "camera-online",
42491
44863
  "camera-offline",
42492
44864
  "camera-disabled",
42493
44865
  "camera-enabled"
42494
- ]);
42495
- NcSystemEventKindSchema.options.filter((kind) => !NC_LEGACY_SYSTEM_EVENT_KINDS.has(kind));
44866
+ ];
44867
+ var NC_LEGACY_SYSTEM_EVENT_KIND_SET = new Set(NC_LEGACY_SYSTEM_EVENT_KINDS);
44868
+ NcSystemEventKindSchema.options.filter((kind) => !NC_LEGACY_SYSTEM_EVENT_KIND_SET.has(kind));
42496
44869
  /**
42497
44870
  * The panel's transitions, as ONE list.
42498
44871
  *
@@ -43015,7 +45388,7 @@ var NcConditionsSchema = object({
43015
45388
  * with the list under it is worse than no switch (D62).
43016
45389
  *
43017
45390
  * MEMBERS ARE FACE-GALLERY `Identity.id`s (uuid), not display names. A name is
43018
- * renameable, and a rule authored on "Gianluca" went silently dark the moment
45391
+ * renameable, and a rule authored on "Alice" went silently dark the moment
43019
45392
  * the operator fixed the spelling. The id reaches the record on
43020
45393
  * `LabelAttribution.identityId`; the name is what the editor shows and what
43021
45394
  * `{{label}}` renders.
@@ -43566,7 +45939,7 @@ var NcRulePatchSchema = NcRuleInputSchema.partial().extend({
43566
45939
  * A rule scoped to one camera and one zone silently became a rule that
43567
45940
  * matches EVERY event on EVERY camera, and lost its `media` policy
43568
45941
  * (zoneCrop / gif / clip / frame) and its `priority` at the same time. Seen
43569
- * live on 2026-08-12: a rule scoped to device 617 fired on 590 and 615
45942
+ * live on 2026-08-12: a rule scoped to device 102 fired on 104 and 101
43570
45943
  * within a minute of a two-field patch.
43571
45944
  *
43572
45945
  * So every defaulted field is re-declared here WITHOUT its default. The
@@ -43611,18 +45984,11 @@ var NcRuleSchema = NcRuleInputSchema.extend({
43611
45984
  */
43612
45985
  disabledTargetIds: array(string()).default([])
43613
45986
  });
43614
- /**
43615
- * The state-summary SECTIONS (D647 / D698 / D708): the D637 kind groups that
43616
- * report a still-true state. `addons` is the crash-looped addons only and
43617
- * `addon-updates` the addons that are behind (D708 split them). `backups-exports` and `alarm` are not sections — a completed
43618
- * job is not an open state, and the alarm stays instant.
43619
- */
43620
45987
  var NcStateSummarySectionIdSchema = _enum([
43621
45988
  "device-state",
43622
45989
  "streams",
43623
45990
  "battery",
43624
45991
  "consumables",
43625
- "tanks",
43626
45992
  "detection-blind",
43627
45993
  "nodes",
43628
45994
  "addons",
@@ -45402,7 +47768,7 @@ var LabelAttributionSchema = object({
45402
47768
  * `Identity.id` or a plate-gallery `Vehicle.id` (both `randomUUID`).
45403
47769
  *
45404
47770
  * The text alone is a DISPLAY NAME, and a display name is renameable: a
45405
- * notification rule authored on "Gianluca" stopped matching the moment the
47771
+ * notification rule authored on "Alice" stopped matching the moment the
45406
47772
  * operator fixed the spelling in the gallery, and nothing said so. The id is
45407
47773
  * the thing that does not move, so it is what a rule matches on
45408
47774
  * (`NcConditions.identities`) and the text is what a human is shown.
@@ -47941,7 +50307,7 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
47941
50307
  /**
47942
50308
  * Root-supplied detections for the tree's ROOT step (D730). Set by
47943
50309
  * `runDetailSubtree` when the camera's root model supplies a crop-kind
47944
- * step (a Frigate+ `license_plate` for `plate-detection`): the step is
50310
+ * step (a plus catalog `license_plate` for `plate-detection`): the step is
47945
50311
  * NOT inferred, these boxes are its output, and its children (the plate
47946
50312
  * reader) run on them through their own crop policy. Boxes are in the
47947
50313
  * PIXELS of the image this call carries. Absent ⇒ the root step runs.
@@ -49574,7 +51940,7 @@ var RunnerCameraConfigSchema = object({
49574
51940
  * detection session that asks for history. What shipped was a last-moment
49575
51941
  * discard — `FrameSlot`'s throttle compares wall clocks, and ~4 s of media
49576
51942
  * arriving inside a few hundred ms of wall clock looks to it like one frame's
49577
- * worth. Device 617, 2026-09-08: a re-run of the SAME model over the stored
51943
+ * worth. Device 102, 2026-09-08: a re-run of the SAME model over the stored
49578
51944
  * recording scored the subject `vehicle 0.5669` — above the 0.50 floor —
49579
51945
  * 1.68 s BEFORE the live track was born, on a frame that was in the pre-roll,
49580
51946
  * was decoded, and was freed.
@@ -51604,7 +53970,7 @@ method(_void(), ProviderInfoSchema, { auth: "admin" }), method(object({ config:
51604
53970
  * The signals a device can emit to WAKE its own stream.
51605
53971
  *
51606
53972
  * A camera whose stream is built on demand sleeps until something asks for it,
51607
- * and "something" cannot be a consumer that is merely attached — a Frigate-style
53973
+ * and "something" cannot be a consumer that is merely attached — a external-catalog
51608
53974
  * puller holds a session open for ever, and treating that as demand would keep
51609
53975
  * a battery camera awake for ever, which is the whole thing the battery is for
51610
53976
  * (D173). So the wake has to come from the CAMERA: an event it noticed by
@@ -52291,7 +54657,7 @@ var ClipSchema = object({
52291
54657
  * {@link MAX_CLIP_EVENT_IDS}. Empty on footage-only clips.
52292
54658
  *
52293
54659
  * Bounded because it is not a payload the surface pages through: one visit on
52294
- * device 615 carried 2 345 ids, and `eventIds` was 99% of a 153 KB
54660
+ * device 101 carried 2 345 ids, and `eventIds` was 99% of a 153 KB
52295
54661
  * camera-day. Read {@link eventCount} for the true total.
52296
54662
  */
52297
54663
  eventIds: array(string()).optional(),
@@ -52436,7 +54802,7 @@ var ClipPlaybackSchema = object({
52436
54802
  * camera has no recordings", which is the defect this whole line of work is
52437
54803
  * about: a battery camera nobody woke (`sleeping`), a camera that could not be
52438
54804
  * reached at all (`unreachable`, also what a provider that THREW reports), a
52439
- * camera whose SD card is not mounted (`no-storage`, measured on 640 —
54805
+ * camera whose SD card is not mounted (`no-storage`, measured on 106 —
52440
54806
  * `HddInfo mount 0`, honestly nothing to list rather than "no clips"), and a
52441
54807
  * camera whose OWN index disagrees with its OWN calendar (`index-empty`,
52442
54808
  * measured on 618: the calendar marks 3–20 September, days 6–20 list zero
@@ -52701,7 +55067,7 @@ DeviceType.Camera, method(object({
52701
55067
  *
52702
55068
  * It was optional, documented as "absent means the device's BOUND
52703
55069
  * provider, which is CamStack on every camera". No code implemented
52704
- * that. Measured on the live hub 2026-09-20 — device 592, bound to
55070
+ * that. Measured on the live hub 2026-09-20 — device 107, bound to
52705
55071
  * `recorder` AND `provider-reolink` — a bare call with `limit: 3`
52706
55072
  * answered SIX rows, three from each source, merged newest-first:
52707
55073
  * `device-collection-dispatch.ts` simply left the fan-out un-narrowed,
@@ -53779,7 +56145,10 @@ object({
53779
56145
  DeviceType.Sensor;
53780
56146
  object({
53781
56147
  /** Current illuminance in lux (lx). */
53782
- lux: number().min(0),
56148
+ lux: number().min(0).meta({
56149
+ unit: "lx",
56150
+ label: "Illuminance"
56151
+ }),
53783
56152
  /** Ms epoch when the slice was last updated. */
53784
56153
  lastFetchedAt: number(),
53785
56154
  /** Live display unit from the upstream source (e.g. HA
@@ -53935,7 +56304,10 @@ var BatteryStatusSchema = object({
53935
56304
  * Consumers must SKIP a null rather than coerce it — `battery-band` already
53936
56305
  * declines to band a non-finite reading, which is the correct shape.
53937
56306
  */
53938
- percentage: number().min(0).max(100).nullable(),
56307
+ percentage: number().min(0).max(100).nullable().meta({
56308
+ unit: "%",
56309
+ label: "Charge"
56310
+ }),
53939
56311
  /**
53940
56312
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
53941
56313
  * Reolink-specific for the Solar Panel 2 accessory (will become
@@ -53954,13 +56326,13 @@ var BatteryStatusSchema = object({
53954
56326
  "solar",
53955
56327
  "none",
53956
56328
  "unknown"
53957
- ]),
56329
+ ]).meta({ label: "Charging source" }),
53958
56330
  /**
53959
56331
  * True when the camera firmware has gone into low-power mode. Battery
53960
56332
  * providers MUST avoid polling during sleep — reading the battery
53961
56333
  * wakes the camera up and drains charge.
53962
56334
  */
53963
- sleeping: boolean(),
56335
+ sleeping: boolean().meta({ label: "Sleeping" }),
53964
56336
  /** Ms epoch of the last observation. Lets consumers reason about freshness. */
53965
56337
  lastUpdated: number(),
53966
56338
  /**
@@ -54000,9 +56372,10 @@ var BatteryStatusSchema = object({
54000
56372
  * sub-threshold = low). UI MUST render "Normal"/"Low" instead of a
54001
56373
  * misleading exact percentage. Absent/false → genuine 0–100 % reading.
54002
56374
  */
54003
- binary: boolean().optional()
56375
+ binary: boolean().optional().meta({ label: "Binary indicator" })
54004
56376
  });
54005
- DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Thermostat, method(object({
56377
+ DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Thermostat;
56378
+ method(object({
54006
56379
  deviceId: number(),
54007
56380
  /** Bound on the wait. Sensible range 3000–10000ms. */
54008
56381
  timeoutMs: number().int().min(500).max(3e4).default(8e3)
@@ -54014,7 +56387,7 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, Devi
54014
56387
  status: BatteryStatusSchema
54015
56388
  });
54016
56389
  object({
54017
- on: boolean(),
56390
+ on: boolean().meta({ label: "On" }),
54018
56391
  /** Ms epoch of the last transition. 0 if never observed. */
54019
56392
  lastChangedAt: number()
54020
56393
  });
@@ -54284,7 +56657,7 @@ var GridLayoutCellSchema = object({
54284
56657
  *
54285
56658
  * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
54286
56659
  * profile is on offer only when EVERY source can serve it. The refusal NAMES
54287
- * the sources, because "this grid has no low" is not a finding — "615 has no
56660
+ * the sources, because "this grid has no low" is not a finding — "101 has no
54288
56661
  * low" is, and it is the one an operator can act on.
54289
56662
  */
54290
56663
  var GridProfileOfferSchema = object({
@@ -54723,6 +57096,7 @@ var ConsumablesStatusSchema = object({
54723
57096
  })),
54724
57097
  lastChangedAt: number()
54725
57098
  });
57099
+ Object.values(DeviceType), [...ConsumableRemainingUnitSchema.options], [...ConsumableStatusSchema.options], [...ConsumableKindSchema.options], [...ConsumableFormSchema.options];
54726
57100
  Object.values(DeviceType), method(object({
54727
57101
  deviceId: number().int().nonnegative(),
54728
57102
  key: string().min(1)
@@ -54927,6 +57301,30 @@ DeviceType.Camera, method(object({ deviceId: number() }), DayNightOptionsSchema)
54927
57301
  auth: "admin"
54928
57302
  });
54929
57303
  /**
57304
+ * display-palette — the cluster's one colour table (D939).
57305
+ *
57306
+ * Hub singleton. `getPalette` reports `unknown` when the settings store
57307
+ * cannot be read; it does not pretend the bundled preset was stored.
57308
+ * `setPalette` refuses a palette that fails the ΔE / contrast rule and names
57309
+ * the pairs.
57310
+ */
57311
+ var presetSummarySchema = object({
57312
+ id: string(),
57313
+ name: string(),
57314
+ swatches: record(string(), paletteSwatchSchema),
57315
+ fallbacks: array(string())
57316
+ });
57317
+ method(_void(), paletteResultSchema, {
57318
+ auth: "protected",
57319
+ role: "viewer"
57320
+ }), method(_void(), array(presetSummarySchema).readonly(), {
57321
+ auth: "protected",
57322
+ role: "viewer"
57323
+ }), method(setPaletteInputSchema, paletteReadySchema, {
57324
+ kind: "mutation",
57325
+ auth: "admin"
57326
+ });
57327
+ /**
54930
57328
  * Generic device-level status snapshot. Auto-registered by `BaseDevice`
54931
57329
  * for every device, regardless of provider — the kernel needs a uniform
54932
57330
  * cap-keyed slice for the basic device flags every consumer expects to
@@ -55206,6 +57604,7 @@ DeviceType.Dishwasher, method(object({
55206
57604
  kind: "mutation",
55207
57605
  auth: "protected"
55208
57606
  }), method(object({ deviceId: DeviceIdSchema }), DishwasherOptionsSchema, { auth: "protected" });
57607
+ DeviceType.Camera;
55209
57608
  object({
55210
57609
  /** Ms epoch of the last press. null = never observed since this provider started. */
55211
57610
  lastPressedAt: number().nullable(),
@@ -55829,7 +58228,10 @@ DeviceType.Humidifier, method(object({
55829
58228
  */
55830
58229
  var HumiditySensorStatusSchema = object({
55831
58230
  /** Current relative humidity, 0..100. */
55832
- percent: number().min(0).max(100),
58231
+ percent: number().min(0).max(100).meta({
58232
+ unit: "%",
58233
+ label: "Humidity"
58234
+ }),
55833
58235
  /** Ms epoch when the slice was last updated. */
55834
58236
  lastFetchedAt: number(),
55835
58237
  /** Live display unit from the upstream source (e.g. HA
@@ -57006,6 +59408,7 @@ authKey: string().optional() }), object({
57006
59408
  /** Human-readable error when `ok: false`. */
57007
59409
  error: string().optional()
57008
59410
  }), { kind: "mutation" });
59411
+ DeviceType.Camera;
57009
59412
  var MotionStatusSchema = object({
57010
59413
  detected: boolean(),
57011
59414
  /** Ms epoch of the last detected-true observation. Null if never detected. */
@@ -58605,9 +61008,15 @@ method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema)
58605
61008
  });
58606
61009
  object({
58607
61010
  /** Instantaneous power draw in watts. */
58608
- watts: number().optional(),
61011
+ watts: number().optional().meta({
61012
+ unit: "W",
61013
+ label: "Power"
61014
+ }),
58609
61015
  /** Cumulative energy in kilowatt-hours since the meter was reset. */
58610
- kwhTotal: number().optional(),
61016
+ kwhTotal: number().optional().meta({
61017
+ unit: "kWh",
61018
+ label: "Energy"
61019
+ }),
58611
61020
  /** Voltage in volts. */
58612
61021
  volts: number().optional(),
58613
61022
  /** Current in amperes. */
@@ -58926,9 +61335,9 @@ var PtzOptionsSchema = object({
58926
61335
  * Reolink preset 0, Hikvision preset '1', Dahua preset 1 -- and on this fleet
58927
61336
  * not one of the three cameras honours its own:
58928
61337
  *
58929
- * 592 Videocamera camera Daniel (reolink) preset 0 holds "stanza"
58930
- * 1438 Videocamera dispensa (hikvision) preset 1 holds "Credenza"
58931
- * 3836 Videocamera studio (amcrest) preset 1 holds "Preset1"
61338
+ * 107 Camera camera Carol (reolink) preset 0 holds "stanza"
61339
+ * 1438 Camera dispensa (hikvision) preset 1 holds "Credenza"
61340
+ * 3836 Camera studio (amcrest) preset 1 holds "Preset1"
58932
61341
  *
58933
61342
  * So `goHome` meant "go wherever the operator happened to save in slot 0 or 1",
58934
61343
  * and two of the three swallowed the failure in a bare `catch`. For autotrack
@@ -59069,6 +61478,24 @@ DeviceType.Camera, method(object({ deviceId: number() }), PtzAutotrackStatusSche
59069
61478
  deviceId: number(),
59070
61479
  status: PtzAutotrackStatusSchema
59071
61480
  });
61481
+ var RunningStateSourceSchema = _enum(["native", "assigned"]);
61482
+ object({
61483
+ /** null = unknown — never coerced to false (D393). */
61484
+ running: boolean().nullable(),
61485
+ /** Epoch ms the current boolean began; null while `running` is null. */
61486
+ since: number().nullable(),
61487
+ source: RunningStateSourceSchema.meta({ label: "Source" }),
61488
+ phase: string().nullable(),
61489
+ /** null until a reading has been published (D393). */
61490
+ lastFetchedAt: number().nullable()
61491
+ });
61492
+ object({
61493
+ deviceId: number(),
61494
+ since: number().nullable(),
61495
+ phase: string().nullable()
61496
+ });
61497
+ Object.values(DeviceType);
61498
+ DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.MediaPlayer, DeviceType.WaterHeater, DeviceType.Humidifier, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.PetFeeder;
59072
61499
  DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceId: number().int().nonnegative() }), object({ success: literal(true) }), {
59073
61500
  kind: "mutation",
59074
61501
  auth: "admin"
@@ -59110,7 +61537,7 @@ var RecordingAvailabilitySchema = object({
59110
61537
  * would look identical. But the answer used to say nothing about that, so a
59111
61538
  * caller asking "what can I export?" read the single preferred profile as
59112
61539
  * the only one that exists — on this deployment every camera records `high`
59113
- * AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
61540
+ * AND `low`, the low tree holding 14 GB for camera 101 alone, and the export
59114
61541
  * UI could not see it.
59115
61542
  *
59116
61543
  * Cheap: it is the same shallow directory read the profile CHOICE already
@@ -59209,7 +61636,7 @@ var RecordingSourceOptionsSchema = object({
59209
61636
  * `sparse` = gaps are the absence of one, and must be drawn as such.
59210
61637
  *
59211
61638
  * Not an onboard-only concession: measured 2026-09-24, OUR bar covers 98.8 %
59212
- * of 592's day and 1.2 % of 1436's. It is a fact about a (source, camera)
61639
+ * of 107's day and 1.2 % of 1436's. It is a fact about a (source, camera)
59213
61640
  * pair, and ours answers it per camera from `deriveRecordingMode`. */
59214
61641
  coverage: _enum(["continuous", "sparse"]),
59215
61642
  /** Where the playhead may be put.
@@ -59285,7 +61712,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(RecordingSourceS
59285
61712
  * merely discouraged (D554 amended).
59286
61713
  *
59287
61714
  * It was learned the expensive way on `videoclips.listClips`: measured
59288
- * on the live hub 2026-09-20, device 592 bound to `recorder` AND
61715
+ * on the live hub 2026-09-20, device 107 bound to `recorder` AND
59289
61716
  * `provider-reolink`, a bare call with `limit: 3` answered SIX rows,
59290
61717
  * three from each source, merged — `device-collection-dispatch.ts`
59291
61718
  * leaves an unpinned fan-out un-narrowed, so absence buys the union the
@@ -59886,7 +62313,7 @@ var ExportSpeedSchema = number().min(.25).max(32);
59886
62313
  * on a 10 h window holding 29,393 s of footage every range landed late by the
59887
62314
  * gap accumulated before it — up to 6,607 s, well past EOF. Nothing matched,
59888
62315
  * the video was a uniform timelapse, and the log line reported the five ranges
59889
- * that had been ASKED for (2026-08-13, export `57d14363`, camera 615).
62316
+ * that had been ASKED for (2026-08-13, export `57d14363`, camera 101).
59890
62317
  *
59891
62318
  * Relative and not absolute epoch, because an absolute epoch would make every
59892
62319
  * call site responsible for the same subtraction.
@@ -60520,7 +62947,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), RecordingSignalStatusS
60520
62947
  * which put a "Scenes" tab on one camera's detail page. That is the wrong shape
60521
62948
  * for the thing: a scene is a standing question about the property ("is the bin
60522
62949
  * still out"), and the operator's question is "which of my scenes have tripped",
60523
- * across every camera at once — not "what does camera 617 think". Buried one
62950
+ * across every camera at once — not "what does camera 102 think". Buried one
60524
62951
  * camera deep it also could not be found. The surface is now a top-level admin
60525
62952
  * page (`/scenes`, `pages/Scenes.tsx`) that lists every scene on every camera and
60526
62953
  * picks the camera inside the create flow, the same shape Events and Faces have.
@@ -61110,7 +63537,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), StreamParamsOptionsSch
61110
63537
  * `getSettingsUISchema()` surface.
61111
63538
  */
61112
63539
  var SwitchStatusSchema = object({
61113
- on: boolean(),
63540
+ on: boolean().meta({ label: "On" }),
61114
63541
  /** Ms epoch of the last state change. Useful for UI "X minutes ago". */
61115
63542
  lastChangedAt: number()
61116
63543
  });
@@ -61689,7 +64116,10 @@ DeviceType.Sensor;
61689
64116
  */
61690
64117
  var TemperatureSensorStatusSchema = object({
61691
64118
  /** Current temperature in Celsius. */
61692
- celsius: number(),
64119
+ celsius: number().meta({
64120
+ unit: "°C",
64121
+ label: "Temperature"
64122
+ }),
61693
64123
  /** Ms epoch when the slice was last updated (push or poll). */
61694
64124
  lastFetchedAt: number(),
61695
64125
  /** Live display unit from the upstream source (e.g. HA
@@ -62837,6 +65267,10 @@ method(object({}), array(TrainingBaseModelSchema).readonly(), { auth: "admin" })
62837
65267
  auth: "admin"
62838
65268
  });
62839
65269
  SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
65270
+ DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Thermostat, DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.Dishwasher, DeviceType.Camera, DeviceType.Camera, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.MediaPlayer, DeviceType.WaterHeater, DeviceType.Humidifier, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.PetFeeder;
65271
+ String.raw`rose\(active(\d+), changed(\d+), (\d+(?:\.\d+)?)\)`;
65272
+ DeviceRole.BinarySensor, DeviceRole.MotionSensor;
65273
+ new Set(CAP_NAMES);
62840
65274
  Object.freeze({
62841
65275
  person: .5,
62842
65276
  vehicle: .5,
@@ -65836,6 +68270,27 @@ Object.freeze({
65836
68270
  access: "create",
65837
68271
  role: "viewer"
65838
68272
  },
68273
+ "displayPalette.getPalette": {
68274
+ capName: "display-palette",
68275
+ capScope: "system",
68276
+ addonId: null,
68277
+ access: "view",
68278
+ role: "viewer"
68279
+ },
68280
+ "displayPalette.listPresets": {
68281
+ capName: "display-palette",
68282
+ capScope: "system",
68283
+ addonId: null,
68284
+ access: "view",
68285
+ role: "viewer"
68286
+ },
68287
+ "displayPalette.setPalette": {
68288
+ capName: "display-palette",
68289
+ capScope: "system",
68290
+ addonId: null,
68291
+ access: "create",
68292
+ role: "admin"
68293
+ },
65839
68294
  "doorbell.getStatus": {
65840
68295
  capName: "doorbell",
65841
68296
  capScope: "device",
@@ -70386,6 +72841,13 @@ Object.freeze({
70386
72841
  access: "create",
70387
72842
  role: "admin"
70388
72843
  },
72844
+ "runningState.getStatus": {
72845
+ capName: "running-state",
72846
+ capScope: "device",
72847
+ addonId: null,
72848
+ access: "view",
72849
+ role: "viewer"
72850
+ },
70389
72851
  "sceneMonitor.captureReference": {
70390
72852
  capName: "scene-monitor",
70391
72853
  capScope: "device",
@@ -75100,6 +77562,32 @@ var APPLIANCE_CAP_VOCABULARY = {
75100
77562
  }],
75101
77563
  events: { onSent: { notOperatorFacing: "a delivery receipt of a send this system made — not a fact about the world" } }
75102
77564
  },
77565
+ "running-state": {
77566
+ scope: "device",
77567
+ noun: t("Running", "In funzione"),
77568
+ state: [{
77569
+ kind: "boolean",
77570
+ field: "running",
77571
+ label: t("Running", "In funzione"),
77572
+ whenTrue: t("When {device} starts", "Quando {device} inizia"),
77573
+ whenFalse: t("When {device} finishes", "Quando {device} finisce"),
77574
+ icon: "play"
77575
+ }],
77576
+ events: {
77577
+ onStarted: {
77578
+ category: EventCategory.RunningStarted,
77579
+ label: t("Started running", "Ha iniziato a funzionare"),
77580
+ phrase: t("When {device} starts running", "Quando {device} inizia a funzionare"),
77581
+ icon: "play"
77582
+ },
77583
+ onFinished: {
77584
+ category: EventCategory.RunningFinished,
77585
+ label: t("Finished", "Ha finito"),
77586
+ phrase: t("When {device} finishes", "Quando {device} finisce"),
77587
+ icon: "square"
77588
+ }
77589
+ }
77590
+ },
75103
77591
  update: {
75104
77592
  scope: "device",
75105
77593
  noun: t("Firmware update", "Aggiornamento firmware"),
@@ -75720,7 +78208,7 @@ var SENSOR_CAP_VOCABULARY = {
75720
78208
  state: [{
75721
78209
  kind: "boolean",
75722
78210
  field: "on",
75723
- label: t("Active", "Attivo"),
78211
+ label: t("On", "Acceso"),
75724
78212
  whenTrue: t("When {device} turns active", "Quando {device} si attiva"),
75725
78213
  whenFalse: t("When {device} turns inactive", "Quando {device} si disattiva"),
75726
78214
  icon: "toggle-right"
@@ -76259,6 +78747,7 @@ var SYSTEM_CAP_VOCABULARY = {
76259
78747
  "device-provider": system(INTERNAL),
76260
78748
  "device-removal-hook": system(INTERNAL),
76261
78749
  "device-state": system("the runtime-state mirror every trigger already reads through"),
78750
+ "display-palette": system("the cluster display palette — one colour table for every client, not a device action"),
76262
78751
  "embedding-encoder": system(ML),
76263
78752
  "face-gallery": system("the face gallery — curated on its own page"),
76264
78753
  "failure-contribution": system(INTERNAL),
@@ -78640,6 +81129,11 @@ Object.freeze({
78640
81129
  form: "single",
78641
81130
  optional: true
78642
81131
  }],
81132
+ "runningState.getStatus": [{
81133
+ name: "deviceId",
81134
+ form: "single",
81135
+ optional: false
81136
+ }],
78643
81137
  "sceneMonitor.captureReference": [{
78644
81138
  name: "deviceId",
78645
81139
  form: "single",
@@ -79138,6 +81632,94 @@ Object.freeze({
79138
81632
  "smtp-provider": "email"
79139
81633
  });
79140
81634
  DeviceType.Camera;
81635
+ /**
81636
+ * A saved Customize assignment (D936). The schema is the type: callers use
81637
+ * `z.infer`, they do not restate the shape.
81638
+ */
81639
+ var OverrideSourceSchema = object({
81640
+ addonId: string().min(1),
81641
+ stableId: string().min(1),
81642
+ cap: string().min(1),
81643
+ fieldPath: string().min(1)
81644
+ });
81645
+ var CustomizeTransformDraftSchema = discriminatedUnion("kind", [
81646
+ object({ kind: literal("identity") }),
81647
+ object({ kind: literal("invert") }),
81648
+ object({
81649
+ kind: literal("threshold"),
81650
+ comparison: _enum(["gte", "lte"]),
81651
+ threshold: number(),
81652
+ startDwellMs: number().nonnegative(),
81653
+ stopDwellMs: number().nonnegative()
81654
+ }),
81655
+ object({
81656
+ kind: literal("linear"),
81657
+ scale: number(),
81658
+ offset: number(),
81659
+ clampMin: number().optional(),
81660
+ clampMax: number().optional()
81661
+ }),
81662
+ object({
81663
+ kind: literal("enum-map"),
81664
+ mapping: record(string(), string().nullable())
81665
+ }),
81666
+ object({ kind: literal("number") })
81667
+ ]);
81668
+ var ScalarOverrideDraftSchema = object({
81669
+ kind: literal("scalar"),
81670
+ cap: string().min(1),
81671
+ targetId: string().min(1),
81672
+ source: OverrideSourceSchema,
81673
+ transform: CustomizeTransformDraftSchema
81674
+ });
81675
+ var KeyedArrayOverrideDraftSchema = object({
81676
+ kind: literal("keyedArray"),
81677
+ cap: string().min(1),
81678
+ targetId: string().min(1),
81679
+ key: string().min(1),
81680
+ label: string().min(1),
81681
+ fieldPath: string().min(1),
81682
+ source: OverrideSourceSchema,
81683
+ transform: CustomizeTransformDraftSchema
81684
+ });
81685
+ var PulseOverrideDraftSchema = object({
81686
+ kind: literal("pulse"),
81687
+ cap: string().min(1),
81688
+ targetId: string().min(1),
81689
+ enabled: boolean(),
81690
+ debounceMs: number().nonnegative(),
81691
+ sources: array(OverrideSourceSchema).min(1)
81692
+ });
81693
+ var SpanSourceDraftSchema = OverrideSourceSchema.extend({ mode: _enum([
81694
+ "in-addition",
81695
+ "confirm",
81696
+ "replace"
81697
+ ]).optional() });
81698
+ discriminatedUnion("kind", [
81699
+ ScalarOverrideDraftSchema,
81700
+ KeyedArrayOverrideDraftSchema,
81701
+ PulseOverrideDraftSchema,
81702
+ object({
81703
+ kind: literal("span"),
81704
+ cap: string().min(1),
81705
+ targetId: string().min(1),
81706
+ timeoutMs: number().nonnegative(),
81707
+ cooldownMs: number().nonnegative().optional(),
81708
+ sources: array(SpanSourceDraftSchema)
81709
+ })
81710
+ ]);
81711
+ object({
81712
+ targetId: string().min(1),
81713
+ configured: boolean(),
81714
+ source: _enum(["native", "assigned"]),
81715
+ state: _enum([
81716
+ "active",
81717
+ "stale",
81718
+ "released",
81719
+ "unavailable"
81720
+ ]),
81721
+ reason: string().nullable()
81722
+ });
79141
81723
  var G711_SCALE_CORRECTION_DB = {
79142
81724
  PCMU: 20 * Math.log10(4),
79143
81725
  PCMA: 20 * Math.log10(8)
@@ -79190,40 +81772,7 @@ var NC_AUDIO_DEFAULTS = {
79190
81772
  samplingSeconds: 10
79191
81773
  };
79192
81774
  new Set(["devices", "classes"]);
79193
- /**
79194
- * WHICH narrowing filter speaks about WHICH system-event kind — one predicate,
79195
- * consumed by the rule ENGINE and by every rule EDITOR.
79196
- *
79197
- * ── The failure this file exists for ───────────────────────────────────────
79198
- * `NcSystemEventConditionSchema` carries four optional narrowing lists
79199
- * (`deviceIds`, `deviceTypes`, `nodeIds`, `packageNames`) beside a required
79200
- * `kinds` gate. They are not four filters over one vocabulary: each belongs to
79201
- * a FAMILY of kinds and is meaningless outside it. A node going away has no
79202
- * device type; a completed export has no package; `stream-offline` deliberately
79203
- * carries no device type at all (a stream belongs to a camera by construction).
79204
- *
79205
- * The engine applied all four to every kind, so a filter from one family failed
79206
- * a kind from another family CLOSED. The operator's live rule "Eventi di
79207
- * sistema" selected eleven kinds and set `deviceTypes: ['camera']` — the only
79208
- * way to say "only my cameras" about the two liveness kinds — and NINE of the
79209
- * eleven silently stopped being deliverable. Four days of history contained
79210
- * `device-online` and `device-offline` and nothing else, across a window in
79211
- * which agents were restarted and addons were updated.
79212
- *
79213
- * Both editors already computed this scoping, to decide which filter boxes to
79214
- * render; the cap's own docblock already promised it ("Narrow a `device-*` kind
79215
- * to these device TYPES"). Only the engine disagreed, and it disagreed in the
79216
- * destructive direction. So the rule is stated ONCE, here, and the engine and
79217
- * the editors are readers of it rather than three independent authors.
79218
- *
79219
- * ── The direction ─────────────────────────────────────────────────────────
79220
- * Out of family ⇒ the filter is IGNORED, never fail-closed. An editor that
79221
- * hides a box has already told the operator this filter does not speak about
79222
- * these kinds, so honouring it as an exclusion contradicts the only
79223
- * explanation the operator was ever given. Inside its family the filter still
79224
- * narrows, and still fails CLOSED on a subject that cannot produce the identity
79225
- * it tests (a device the mirror cannot name is not evidence of a camera).
79226
- */
81775
+ new Set(NC_LEGACY_SYSTEM_EVENT_KINDS);
79227
81776
  /**
79228
81777
  * Every filter, for the callers that must cover all of them (guards, tests).
79229
81778
  *
@@ -79249,9 +81798,6 @@ new Map(Object.entries({
79249
81798
  "device-battery-normal": "device-events",
79250
81799
  "device-consumable-low": "device-events",
79251
81800
  "device-consumable-normal": "device-events",
79252
- "device-tank-low": "device-events",
79253
- "device-tank-full": "device-events",
79254
- "device-tank-normal": "device-events",
79255
81801
  "stream-online": "device-events",
79256
81802
  "stream-offline": "device-events",
79257
81803
  "detection-blind": "device-events",
@@ -79328,16 +81874,6 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
79328
81874
  label: "Consumables",
79329
81875
  kinds: ["device-consumable-low", "device-consumable-normal"]
79330
81876
  },
79331
- {
79332
- id: "tanks",
79333
- family: "device-events",
79334
- label: "Tanks",
79335
- kinds: [
79336
- "device-tank-low",
79337
- "device-tank-full",
79338
- "device-tank-normal"
79339
- ]
79340
- },
79341
81877
  {
79342
81878
  id: "detection-blind",
79343
81879
  family: "device-events",
@@ -79495,11 +82031,6 @@ var RULE_BODY_ONLY = ["body"];
79495
82031
  var RULE_TEXT = ["title", "body"];
79496
82032
  var BATTERY = ["device-battery-low", "device-battery-normal"];
79497
82033
  var CONSUMABLE = ["device-consumable-low", "device-consumable-normal"];
79498
- var TANK = [
79499
- "device-tank-low",
79500
- "device-tank-full",
79501
- "device-tank-normal"
79502
- ];
79503
82034
  var ALERT_EPISODE = [
79504
82035
  "alert-critical",
79505
82036
  "alert-error",
@@ -79531,7 +82062,6 @@ var DEVICE_EVENTS = [
79531
82062
  "device-enabled",
79532
82063
  ...BATTERY,
79533
82064
  ...CONSUMABLE,
79534
- ...TANK,
79535
82065
  "stream-online",
79536
82066
  "stream-offline",
79537
82067
  "detection-blind",
@@ -79562,7 +82092,7 @@ var STATE_SUMMARY_SECTION_VARS = [
79562
82092
  {
79563
82093
  name: "summaryStreams",
79564
82094
  label: "Summary: streams offline",
79565
- example: "Ingresso (high) — since 06:40",
82095
+ example: "Front door (high) — since 06:40",
79566
82096
  kinds: ["stream-offline", "stream-online"]
79567
82097
  },
79568
82098
  {
@@ -79577,22 +82107,16 @@ var STATE_SUMMARY_SECTION_VARS = [
79577
82107
  example: "Robot — filter 10 %",
79578
82108
  kinds: CONSUMABLE
79579
82109
  },
79580
- {
79581
- name: "summaryTanks",
79582
- label: "Summary: tanks",
79583
- example: "Robot — clean water low",
79584
- kinds: TANK
79585
- },
79586
82110
  {
79587
82111
  name: "summaryDetection",
79588
82112
  label: "Summary: cameras detecting nothing",
79589
- example: "Ingresso — since 05:10",
82113
+ example: "Front door — since 05:10",
79590
82114
  kinds: ["detection-blind"]
79591
82115
  },
79592
82116
  {
79593
82117
  name: "summaryNodes",
79594
82118
  label: "Summary: nodes",
79595
- example: "little-unraid — offline since 03:00",
82119
+ example: "agent-a — offline since 03:00",
79596
82120
  kinds: [
79597
82121
  "node-offline",
79598
82122
  "node-online",
@@ -79698,8 +82222,7 @@ var STATE_SUMMARY_VARS = [
79698
82222
  ([...RULE_TEXT], [...COMBINED_ALARM]),
79699
82223
  ([...RULE_TEXT], [...DEVICE_EVENTS]),
79700
82224
  ([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
79701
- ([...RULE_TEXT], [...CONSUMABLE, ...TANK]),
79702
- ([...RULE_TEXT], [...TANK]),
82225
+ ([...RULE_TEXT], [...CONSUMABLE]),
79703
82226
  [...RULE_TEXT],
79704
82227
  ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
79705
82228
  ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
@@ -79803,15 +82326,6 @@ new Map([
79803
82326
  snapshotLabel: "Consumables low now",
79804
82327
  snapshotSection: "consumables"
79805
82328
  },
79806
- {
79807
- id: "tanks",
79808
- family: "device-events",
79809
- label: "Tanks (low or full / back to normal)",
79810
- bad: ["device-tank-low", "device-tank-full"],
79811
- recovery: ["device-tank-normal"],
79812
- snapshotLabel: "Tanks low or full now",
79813
- snapshotSection: "tanks"
79814
- },
79815
82329
  {
79816
82330
  id: "motion-noise",
79817
82331
  family: "device-events",
@@ -83748,7 +86262,7 @@ var BRIGHTNESS_CONTROLLER = {
83748
86262
  * when the impulse is unknown — see `handlers/ptz-travel.ts`; never
83749
86263
  * `continuousMove` / `stop`), and the toggle auto-resets to OFF (handler
83750
86264
  * returns the OFF state in `context.properties`). Alexa renders one row per instance in the
83751
- * device detail; users can also say "Alexa, turn on Salone Pan Left".
86265
+ * device detail; users can also say "Alexa, turn on Hall Pan Left".
83752
86266
  *
83753
86267
  * Instance ids match the directive routing in `ptz-direction.ts`.
83754
86268
  */
@@ -83941,8 +86455,8 @@ function buildParentCameraEndpoint(input) {
83941
86455
  /**
83942
86456
  * Compose a child accessory's Alexa friendly name. camstack child devices
83943
86457
  * are usually already named with their parent prefix (e.g. parent
83944
- * "Videocamera salone" → child "Videocamera salone Siren"), so blindly
83945
- * prefixing the parent again yields "Videocamera salone — Videocamera salone
86458
+ * "Camera hall" → child "Camera hall Siren"), so blindly
86459
+ * prefixing the parent again yields "Camera hall — Camera hall
83946
86460
  * Siren". Skip the prefix when the child name already contains the parent name
83947
86461
  * (case-insensitive).
83948
86462
  */
@@ -87738,7 +90252,7 @@ var DOORBELL_INTERFACE = "Alexa.DoorbellEventSource";
87738
90252
  * on for it (R4, D779).
87739
90253
  *
87740
90254
  * Measured 2026-08-07, before the declaration existed: 223 `smartvision person
87741
- * posted status=202` in 692 s on endpoint 590 alone, every one of them against
90255
+ * posted status=202` in 692 s on endpoint 104 alone, every one of them against
87742
90256
  * an endpoint whose discovered capability list did not contain this string. The
87743
90257
  * Event Gateway answers 202 because the ENVELOPE parsed; the cloud then drops
87744
90258
  * the event. D76: an accepted POST is not evidence of delivery.
@@ -87917,7 +90431,7 @@ var LwaEventGateway = class {
87917
90431
  /**
87918
90432
  * Camera-native motion flipped. Report it as an `Alexa.MotionSensor`
87919
90433
  * ChangeReport: the rising edge immediately, the falling edge only once the
87920
- * source has stayed quiet (see `MotionClearHold` for the 590 measurement
90434
+ * source has stayed quiet (see `MotionClearHold` for the 104 measurement
87921
90435
  * that made a plain transition dedupe insufficient).
87922
90436
  */
87923
90437
  async onMotionChanged(data) {
@@ -90565,7 +93079,7 @@ var SyncEngine = class {
90565
93079
  /**
90566
93080
  * One in-flight reconcile per device. At boot the 60 s full pass and the
90567
93081
  * debounced bindings-change reconciles overlap, and each one rebuilt the
90568
- * same device serially — the live hub built camera 615's endpoint shape
93082
+ * same device serially — the live hub built camera 101's endpoint shape
90569
93083
  * four times inside one boot (2026-08-15). Joining the running pass costs
90570
93084
  * the duplicate nothing.
90571
93085
  */
@@ -91548,7 +94062,7 @@ var ExportAlexaAddon = class extends BaseAddon {
91548
94062
  * One reconcile pass over every exposed device shortly after boot. This is
91549
94063
  * what heals a shape that drifted while the addon was DOWN (or under an
91550
94064
  * older build that had no signature at all) with no operator click — the
91551
- * doorbell bound on 615 after it was exposed is exactly that case. Deliberately late
94065
+ * doorbell bound on 101 after it was exposed is exactly that case. Deliberately late
91552
94066
  * enough that device providers have registered their caps: a device whose
91553
94067
  * bindings have not landed yet builds a shape we must not push.
91554
94068
  */