@camstack/addon-provider-hikvision 1.2.172 → 1.2.174

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/addon.js CHANGED
@@ -34,7 +34,7 @@ let node_os = require("node:os");
34
34
  let node_net = require("node:net");
35
35
  let node_http = require("node:http");
36
36
  let node_https = require("node:https");
37
- //#region ../types/dist/event-category-BfJwUd2S.mjs
37
+ //#region ../types/dist/event-category-DHXxB8t9.mjs
38
38
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
39
39
  EventCategory["SystemBoot"] = "system.boot";
40
40
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -330,7 +330,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
330
330
  * TRANSITION into that state (never per dispatch), and the node is dropped
331
331
  * from the placement candidate set for as long as it holds.
332
332
  *
333
- * This exists because the state was previously invisible: little-unraid
333
+ * This exists because the state was previously invisible: agent-a
334
334
  * absorbed 283k inference errors in a day while still being handed cameras,
335
335
  * and nothing in the system said so.
336
336
  *
@@ -361,9 +361,8 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
361
361
  EventCategory["PipelineMotionCalm"] = "pipeline.motion-calm";
362
362
  /**
363
363
  * Per-camera pipeline config was mutated by the orchestrator
364
- * (3-level settings change via `setAgentAddonDefaults` /
365
- * `setCameraStepToggle` / `setCameraPipelineForAgent` or a
366
- * pipeline-scoped `applyDeviceSettingsPatch`). Orchestrator
364
+ * (a settings change via `setAgentInferenceDevices` /
365
+ * `setCameraStepToggle` / `setCameraStepSettings`). Orchestrator
367
366
  * subscribes to its own emission to hot-reload the assigned runner
368
367
  * via `attachCamera` so the next frame executes against the new
369
368
  * engine/steps without waiting for a rebalance or the next
@@ -507,6 +506,10 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
507
506
  * on the device detail page.
508
507
  */
509
508
  EventCategory["DoorbellOnPressed"] = "doorbell.onPressed";
509
+ /** Mirrors `runningStateCapability.events.onStarted`. */
510
+ EventCategory["RunningStarted"] = "running.started";
511
+ /** Mirrors `runningStateCapability.events.onFinished`. */
512
+ EventCategory["RunningFinished"] = "running.finished";
510
513
  /**
511
514
  * Cap event fired by every device that registers the `event-emitter`
512
515
  * capability. Mirrors `eventEmitterCapability.events.onEvent`. Carries
@@ -5466,7 +5469,7 @@ var ZodIssueCode = {
5466
5469
  var ZodFirstPartyTypeKind;
5467
5470
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5468
5471
  //#endregion
5469
- //#region ../types/dist/sleep-6AqUnQIT.mjs
5472
+ //#region ../types/dist/sleep-BErAxhul.mjs
5470
5473
  /**
5471
5474
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5472
5475
  * window to float samples (D455).
@@ -5805,7 +5808,7 @@ Object.fromEntries([
5805
5808
  * `hydrateSchema` to skip the `value` injection for structural-only fields.
5806
5809
  */
5807
5810
  function isValuelessField(field) {
5808
- 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";
5811
+ 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";
5809
5812
  }
5810
5813
  function hydrateSchema(schema, values, options = {}) {
5811
5814
  return {
@@ -8501,6 +8504,1980 @@ method(object({ deviceId: number() }), array(StreamSourceEntrySchema)), method(o
8501
8504
  kind: "mutation",
8502
8505
  auth: "admin"
8503
8506
  }), method(object({ deviceId: number() }), unknown().nullable()), method(object({ deviceId: number() }), RawStateResultSchema.nullable(), { auth: "protected" });
8507
+ Object.freeze({ "doorbell": "lastPressedAt" });
8508
+ /** Every capability name, so addon code can check a name without the schema graph. */
8509
+ var CAP_NAMES = Object.freeze([
8510
+ "accessories",
8511
+ "addon-pages",
8512
+ "addon-pages-source",
8513
+ "addon-routes",
8514
+ "addon-settings",
8515
+ "addon-widgets",
8516
+ "addon-widgets-source",
8517
+ "addons",
8518
+ "admin-ui",
8519
+ "air-quality-sensor",
8520
+ "alarm-panel",
8521
+ "alerts",
8522
+ "ambient-light-sensor",
8523
+ "audio-analysis",
8524
+ "audio-analyzer",
8525
+ "audio-codec",
8526
+ "audio-metrics",
8527
+ "auth-provider",
8528
+ "automation-control",
8529
+ "backup",
8530
+ "battery",
8531
+ "binary",
8532
+ "brightness",
8533
+ "broker",
8534
+ "button",
8535
+ "calendar-source",
8536
+ "calendars",
8537
+ "camera-credentials",
8538
+ "camera-grid-layout",
8539
+ "camera-pipeline-config",
8540
+ "camera-streams",
8541
+ "carbon-monoxide",
8542
+ "climate-control",
8543
+ "color",
8544
+ "composer",
8545
+ "connection-test",
8546
+ "connectivity",
8547
+ "consumables",
8548
+ "contact",
8549
+ "control",
8550
+ "core-blocks",
8551
+ "cover",
8552
+ "custom-model-registry",
8553
+ "data-store-provider",
8554
+ "database-snapshot",
8555
+ "day-night",
8556
+ "decoder",
8557
+ "detection-pipeline",
8558
+ "device-admin-link",
8559
+ "device-adoption",
8560
+ "device-credentials",
8561
+ "device-discovery",
8562
+ "device-export",
8563
+ "device-extension",
8564
+ "device-history",
8565
+ "device-manager",
8566
+ "device-ops",
8567
+ "device-provider",
8568
+ "device-removal-hook",
8569
+ "device-state",
8570
+ "device-status",
8571
+ "dishwasher",
8572
+ "display-palette",
8573
+ "doorbell",
8574
+ "embedding-encoder",
8575
+ "enum-sensor",
8576
+ "event-emitter",
8577
+ "face-gallery",
8578
+ "failure-contribution",
8579
+ "fan-control",
8580
+ "feature-probe",
8581
+ "filesystem-browse",
8582
+ "flood",
8583
+ "gas",
8584
+ "heating-valve",
8585
+ "humidifier",
8586
+ "humidity-sensor",
8587
+ "image",
8588
+ "image-settings",
8589
+ "integrations",
8590
+ "intercom",
8591
+ "keychain",
8592
+ "keychain-admin",
8593
+ "lawn-mower-control",
8594
+ "llm",
8595
+ "llm-runtime",
8596
+ "load-contribution",
8597
+ "local-network",
8598
+ "lock-control",
8599
+ "log-channels",
8600
+ "log-destination",
8601
+ "login-method",
8602
+ "media-player",
8603
+ "mesh-network",
8604
+ "metrics-provider",
8605
+ "model-convert",
8606
+ "model-distributor",
8607
+ "motion",
8608
+ "motion-detection",
8609
+ "motion-trigger",
8610
+ "motion-zones",
8611
+ "mqtt-broker",
8612
+ "native-object-detection",
8613
+ "navigation",
8614
+ "network-access",
8615
+ "network-link",
8616
+ "network-quality",
8617
+ "node-certificates",
8618
+ "nodes",
8619
+ "notification-output",
8620
+ "notification-rules",
8621
+ "notifier",
8622
+ "numeric-sensor",
8623
+ "oauth-integration",
8624
+ "oidc-connections",
8625
+ "osd",
8626
+ "osd-manager",
8627
+ "pet-feeder",
8628
+ "pipeline-analytics",
8629
+ "pipeline-executor",
8630
+ "pipeline-orchestrator",
8631
+ "pipeline-runner",
8632
+ "plate-gallery",
8633
+ "platform-probe",
8634
+ "power-meter",
8635
+ "presence",
8636
+ "pressure-sensor",
8637
+ "privacy-mask",
8638
+ "ptz",
8639
+ "ptz-autotrack",
8640
+ "reboot",
8641
+ "record-entries",
8642
+ "recording",
8643
+ "recording-archive",
8644
+ "recording-export",
8645
+ "recording-onboard",
8646
+ "recording-signal",
8647
+ "records",
8648
+ "running-state",
8649
+ "scene-monitor",
8650
+ "script-runner",
8651
+ "server-management",
8652
+ "settings-store",
8653
+ "smoke",
8654
+ "smtp-provider",
8655
+ "snapshot",
8656
+ "sso-bridge",
8657
+ "storage",
8658
+ "storage-admin",
8659
+ "storage-evictable",
8660
+ "storage-migration",
8661
+ "storage-occupancy",
8662
+ "storage-provider",
8663
+ "stream-broker",
8664
+ "stream-catalog",
8665
+ "stream-params",
8666
+ "stream-signals",
8667
+ "switch",
8668
+ "system",
8669
+ "tamper",
8670
+ "temperature-sensor",
8671
+ "terminal-session",
8672
+ "toast",
8673
+ "training",
8674
+ "training-provider",
8675
+ "turn-provider",
8676
+ "update",
8677
+ "user-management",
8678
+ "user-passkeys",
8679
+ "vacuum-control",
8680
+ "valve",
8681
+ "vector-store",
8682
+ "vibration",
8683
+ "videoclips",
8684
+ "viewer-ui",
8685
+ "water-heater",
8686
+ "weather",
8687
+ "webrtc-session",
8688
+ "zone-analytics",
8689
+ "zone-rules",
8690
+ "zones"
8691
+ ]);
8692
+ Object.freeze({
8693
+ "air-quality-sensor": [
8694
+ {
8695
+ "path": "co2Ppm",
8696
+ "valueType": "number"
8697
+ },
8698
+ {
8699
+ "path": "vocPpb",
8700
+ "valueType": "number"
8701
+ },
8702
+ {
8703
+ "path": "pm25",
8704
+ "valueType": "number"
8705
+ },
8706
+ {
8707
+ "path": "pm10",
8708
+ "valueType": "number"
8709
+ },
8710
+ {
8711
+ "path": "aqi",
8712
+ "valueType": "number"
8713
+ },
8714
+ {
8715
+ "path": "unit",
8716
+ "valueType": "string"
8717
+ },
8718
+ {
8719
+ "path": "precision",
8720
+ "valueType": "number"
8721
+ }
8722
+ ],
8723
+ "alarm-panel": [
8724
+ {
8725
+ "path": "state",
8726
+ "valueType": "enum",
8727
+ "enumValues": [
8728
+ "disarmed",
8729
+ "armed_home",
8730
+ "armed_away",
8731
+ "armed_night",
8732
+ "armed_vacation",
8733
+ "armed_custom_bypass",
8734
+ "arming",
8735
+ "disarming",
8736
+ "pending",
8737
+ "triggered"
8738
+ ]
8739
+ },
8740
+ {
8741
+ "path": "targetMode",
8742
+ "valueType": "enum",
8743
+ "enumValues": [
8744
+ "home",
8745
+ "away",
8746
+ "night",
8747
+ "vacation",
8748
+ "custom_bypass"
8749
+ ]
8750
+ },
8751
+ {
8752
+ "path": "requiresCode",
8753
+ "valueType": "boolean"
8754
+ }
8755
+ ],
8756
+ "ambient-light-sensor": [
8757
+ {
8758
+ "path": "lux",
8759
+ "valueType": "number"
8760
+ },
8761
+ {
8762
+ "path": "unit",
8763
+ "valueType": "string"
8764
+ },
8765
+ {
8766
+ "path": "precision",
8767
+ "valueType": "number"
8768
+ }
8769
+ ],
8770
+ "audio-metrics": [
8771
+ {
8772
+ "path": "ts",
8773
+ "valueType": "number"
8774
+ },
8775
+ {
8776
+ "path": "windowSec",
8777
+ "valueType": "number"
8778
+ },
8779
+ {
8780
+ "path": "level.rms",
8781
+ "valueType": "number"
8782
+ },
8783
+ {
8784
+ "path": "level.dbfs",
8785
+ "valueType": "number"
8786
+ },
8787
+ {
8788
+ "path": "peakDbfs",
8789
+ "valueType": "number"
8790
+ },
8791
+ {
8792
+ "path": "avgDbfs",
8793
+ "valueType": "number"
8794
+ },
8795
+ {
8796
+ "path": "current.className",
8797
+ "valueType": "string"
8798
+ },
8799
+ {
8800
+ "path": "current.score",
8801
+ "valueType": "number"
8802
+ },
8803
+ {
8804
+ "path": "current.timestamp",
8805
+ "valueType": "number"
8806
+ }
8807
+ ],
8808
+ "automation-control": [
8809
+ {
8810
+ "path": "enabled",
8811
+ "valueType": "boolean"
8812
+ },
8813
+ {
8814
+ "path": "isRunning",
8815
+ "valueType": "boolean"
8816
+ },
8817
+ {
8818
+ "path": "lastTriggeredAt",
8819
+ "valueType": "number"
8820
+ },
8821
+ {
8822
+ "path": "lastError",
8823
+ "valueType": "string"
8824
+ }
8825
+ ],
8826
+ "battery": [
8827
+ {
8828
+ "path": "percentage",
8829
+ "valueType": "number"
8830
+ },
8831
+ {
8832
+ "path": "charging",
8833
+ "valueType": "enum",
8834
+ "enumValues": [
8835
+ "dc",
8836
+ "solar",
8837
+ "none",
8838
+ "unknown"
8839
+ ]
8840
+ },
8841
+ {
8842
+ "path": "sleeping",
8843
+ "valueType": "boolean"
8844
+ },
8845
+ {
8846
+ "path": "lastUpdated",
8847
+ "valueType": "number"
8848
+ },
8849
+ {
8850
+ "path": "lastContactAt",
8851
+ "valueType": "number"
8852
+ },
8853
+ {
8854
+ "path": "lastFullRefreshAt",
8855
+ "valueType": "number"
8856
+ },
8857
+ {
8858
+ "path": "binary",
8859
+ "valueType": "boolean"
8860
+ }
8861
+ ],
8862
+ "binary": [{
8863
+ "path": "on",
8864
+ "valueType": "boolean"
8865
+ }],
8866
+ "brightness": [{
8867
+ "path": "percentage",
8868
+ "valueType": "number"
8869
+ }],
8870
+ "broker": [{
8871
+ "path": "brokerCount",
8872
+ "valueType": "number"
8873
+ }, {
8874
+ "path": "connectedCount",
8875
+ "valueType": "number"
8876
+ }],
8877
+ "camera-credentials": [
8878
+ {
8879
+ "path": "host",
8880
+ "valueType": "string"
8881
+ },
8882
+ {
8883
+ "path": "port",
8884
+ "valueType": "number"
8885
+ },
8886
+ {
8887
+ "path": "onvifPort",
8888
+ "valueType": "number"
8889
+ },
8890
+ {
8891
+ "path": "rtspPort",
8892
+ "valueType": "number"
8893
+ },
8894
+ {
8895
+ "path": "https",
8896
+ "valueType": "boolean"
8897
+ },
8898
+ {
8899
+ "path": "hasUsername",
8900
+ "valueType": "boolean"
8901
+ },
8902
+ {
8903
+ "path": "hasPassword",
8904
+ "valueType": "boolean"
8905
+ },
8906
+ {
8907
+ "path": "onvifProfile",
8908
+ "valueType": "string"
8909
+ }
8910
+ ],
8911
+ "camera-streams": [
8912
+ {
8913
+ "path": "online",
8914
+ "valueType": "boolean"
8915
+ },
8916
+ {
8917
+ "path": "slotStatuses.high",
8918
+ "valueType": "enum",
8919
+ "enumValues": [
8920
+ "unassigned",
8921
+ "idle",
8922
+ "connecting",
8923
+ "streaming",
8924
+ "error"
8925
+ ]
8926
+ },
8927
+ {
8928
+ "path": "slotStatuses.mid",
8929
+ "valueType": "enum",
8930
+ "enumValues": [
8931
+ "unassigned",
8932
+ "idle",
8933
+ "connecting",
8934
+ "streaming",
8935
+ "error"
8936
+ ]
8937
+ },
8938
+ {
8939
+ "path": "slotStatuses.low",
8940
+ "valueType": "enum",
8941
+ "enumValues": [
8942
+ "unassigned",
8943
+ "idle",
8944
+ "connecting",
8945
+ "streaming",
8946
+ "error"
8947
+ ]
8948
+ },
8949
+ {
8950
+ "path": "slotErrors.high",
8951
+ "valueType": "string"
8952
+ },
8953
+ {
8954
+ "path": "slotErrors.mid",
8955
+ "valueType": "string"
8956
+ },
8957
+ {
8958
+ "path": "slotErrors.low",
8959
+ "valueType": "string"
8960
+ }
8961
+ ],
8962
+ "carbon-monoxide": [{
8963
+ "path": "detected",
8964
+ "valueType": "boolean"
8965
+ }],
8966
+ "climate-control": [
8967
+ {
8968
+ "path": "mode",
8969
+ "valueType": "enum",
8970
+ "enumValues": [
8971
+ "off",
8972
+ "heat",
8973
+ "cool",
8974
+ "auto",
8975
+ "heat_cool",
8976
+ "fan_only",
8977
+ "dry"
8978
+ ]
8979
+ },
8980
+ {
8981
+ "path": "fanMode",
8982
+ "valueType": "string"
8983
+ },
8984
+ {
8985
+ "path": "preset",
8986
+ "valueType": "string"
8987
+ },
8988
+ {
8989
+ "path": "target",
8990
+ "valueType": "number"
8991
+ },
8992
+ {
8993
+ "path": "targetHigh",
8994
+ "valueType": "number"
8995
+ },
8996
+ {
8997
+ "path": "targetLow",
8998
+ "valueType": "number"
8999
+ },
9000
+ {
9001
+ "path": "targetHumidity",
9002
+ "valueType": "number"
9003
+ },
9004
+ {
9005
+ "path": "currentTemp",
9006
+ "valueType": "number"
9007
+ },
9008
+ {
9009
+ "path": "currentHumidity",
9010
+ "valueType": "number"
9011
+ },
9012
+ {
9013
+ "path": "swingVertical",
9014
+ "valueType": "boolean"
9015
+ },
9016
+ {
9017
+ "path": "swingHorizontal",
9018
+ "valueType": "boolean"
9019
+ },
9020
+ {
9021
+ "path": "minTemp",
9022
+ "valueType": "number"
9023
+ },
9024
+ {
9025
+ "path": "maxTemp",
9026
+ "valueType": "number"
9027
+ },
9028
+ {
9029
+ "path": "tempStep",
9030
+ "valueType": "number"
9031
+ }
9032
+ ],
9033
+ "color": [
9034
+ {
9035
+ "path": "mode",
9036
+ "valueType": "enum",
9037
+ "enumValues": [
9038
+ "rgb",
9039
+ "hsv",
9040
+ "mired"
9041
+ ]
9042
+ },
9043
+ {
9044
+ "path": "rgb.r",
9045
+ "valueType": "number"
9046
+ },
9047
+ {
9048
+ "path": "rgb.g",
9049
+ "valueType": "number"
9050
+ },
9051
+ {
9052
+ "path": "rgb.b",
9053
+ "valueType": "number"
9054
+ },
9055
+ {
9056
+ "path": "hsv.h",
9057
+ "valueType": "number"
9058
+ },
9059
+ {
9060
+ "path": "hsv.s",
9061
+ "valueType": "number"
9062
+ },
9063
+ {
9064
+ "path": "hsv.v",
9065
+ "valueType": "number"
9066
+ },
9067
+ {
9068
+ "path": "mireds",
9069
+ "valueType": "number"
9070
+ }
9071
+ ],
9072
+ "connectivity": [{
9073
+ "path": "connected",
9074
+ "valueType": "boolean"
9075
+ }],
9076
+ "contact": [{
9077
+ "path": "entryOpen",
9078
+ "valueType": "boolean"
9079
+ }],
9080
+ "control": [
9081
+ {
9082
+ "path": "kind",
9083
+ "valueType": "enum",
9084
+ "enumValues": [
9085
+ "numeric",
9086
+ "select",
9087
+ "text",
9088
+ "datetime"
9089
+ ]
9090
+ },
9091
+ {
9092
+ "path": "unit",
9093
+ "valueType": "string"
9094
+ },
9095
+ {
9096
+ "path": "min",
9097
+ "valueType": "number"
9098
+ },
9099
+ {
9100
+ "path": "max",
9101
+ "valueType": "number"
9102
+ },
9103
+ {
9104
+ "path": "step",
9105
+ "valueType": "number"
9106
+ },
9107
+ {
9108
+ "path": "precision",
9109
+ "valueType": "number"
9110
+ },
9111
+ {
9112
+ "path": "format",
9113
+ "valueType": "enum",
9114
+ "enumValues": [
9115
+ "date",
9116
+ "time",
9117
+ "datetime"
9118
+ ]
9119
+ }
9120
+ ],
9121
+ "cover": [
9122
+ {
9123
+ "path": "state",
9124
+ "valueType": "enum",
9125
+ "enumValues": [
9126
+ "open",
9127
+ "opening",
9128
+ "closing",
9129
+ "closed",
9130
+ "stopped"
9131
+ ]
9132
+ },
9133
+ {
9134
+ "path": "position",
9135
+ "valueType": "number"
9136
+ },
9137
+ {
9138
+ "path": "tiltPosition",
9139
+ "valueType": "number"
9140
+ }
9141
+ ],
9142
+ "day-night": [
9143
+ {
9144
+ "path": "mode",
9145
+ "valueType": "enum",
9146
+ "enumValues": [
9147
+ "auto",
9148
+ "day",
9149
+ "night",
9150
+ "schedule"
9151
+ ]
9152
+ },
9153
+ {
9154
+ "path": "sensitivity",
9155
+ "valueType": "number"
9156
+ },
9157
+ {
9158
+ "path": "switchDelaySec",
9159
+ "valueType": "number"
9160
+ }
9161
+ ],
9162
+ "device-adoption": [
9163
+ {
9164
+ "path": "lastDiscoveryAt",
9165
+ "valueType": "number"
9166
+ },
9167
+ {
9168
+ "path": "candidateCount",
9169
+ "valueType": "number"
9170
+ },
9171
+ {
9172
+ "path": "adoptedCount",
9173
+ "valueType": "number"
9174
+ },
9175
+ {
9176
+ "path": "lastError",
9177
+ "valueType": "string"
9178
+ }
9179
+ ],
9180
+ "device-discovery": [{
9181
+ "path": "lastDiscoveryAt",
9182
+ "valueType": "number"
9183
+ }, {
9184
+ "path": "lastError",
9185
+ "valueType": "string"
9186
+ }],
9187
+ "device-export": [
9188
+ {
9189
+ "path": "linkState",
9190
+ "valueType": "enum",
9191
+ "enumValues": [
9192
+ "unlinked",
9193
+ "linked",
9194
+ "error"
9195
+ ]
9196
+ },
9197
+ {
9198
+ "path": "exposedDeviceCount",
9199
+ "valueType": "number"
9200
+ },
9201
+ {
9202
+ "path": "error",
9203
+ "valueType": "string"
9204
+ },
9205
+ {
9206
+ "path": "setup.qr",
9207
+ "valueType": "string"
9208
+ },
9209
+ {
9210
+ "path": "setup.note",
9211
+ "valueType": "string"
9212
+ }
9213
+ ],
9214
+ "device-status": [{
9215
+ "path": "online",
9216
+ "valueType": "boolean"
9217
+ }],
9218
+ "dishwasher": [
9219
+ {
9220
+ "path": "availability",
9221
+ "valueType": "enum",
9222
+ "enumValues": [
9223
+ "available",
9224
+ "offline",
9225
+ "description-missing"
9226
+ ]
9227
+ },
9228
+ {
9229
+ "path": "state",
9230
+ "valueType": "enum",
9231
+ "enumValues": [
9232
+ "idle",
9233
+ "running",
9234
+ "paused",
9235
+ "finished",
9236
+ "error",
9237
+ "unavailable"
9238
+ ]
9239
+ },
9240
+ {
9241
+ "path": "operationState",
9242
+ "valueType": "enum",
9243
+ "enumValues": [
9244
+ "Inactive",
9245
+ "Ready",
9246
+ "DelayedStart",
9247
+ "Run",
9248
+ "Pause",
9249
+ "ActionRequired",
9250
+ "Finished",
9251
+ "Error",
9252
+ "Aborting"
9253
+ ]
9254
+ },
9255
+ {
9256
+ "path": "program",
9257
+ "valueType": "string"
9258
+ },
9259
+ {
9260
+ "path": "selectedProgram",
9261
+ "valueType": "string"
9262
+ },
9263
+ {
9264
+ "path": "remainingSeconds",
9265
+ "valueType": "number"
9266
+ },
9267
+ {
9268
+ "path": "delayedStartSeconds",
9269
+ "valueType": "number"
9270
+ },
9271
+ {
9272
+ "path": "progressPercent",
9273
+ "valueType": "number"
9274
+ },
9275
+ {
9276
+ "path": "doorOpen",
9277
+ "valueType": "boolean"
9278
+ },
9279
+ {
9280
+ "path": "doorLocked",
9281
+ "valueType": "boolean"
9282
+ },
9283
+ {
9284
+ "path": "remoteStartAllowed",
9285
+ "valueType": "boolean"
9286
+ },
9287
+ {
9288
+ "path": "remoteControlActive",
9289
+ "valueType": "boolean"
9290
+ },
9291
+ {
9292
+ "path": "localControlActive",
9293
+ "valueType": "boolean"
9294
+ },
9295
+ {
9296
+ "path": "powerOn",
9297
+ "valueType": "boolean"
9298
+ },
9299
+ {
9300
+ "path": "powerState",
9301
+ "valueType": "string"
9302
+ },
9303
+ {
9304
+ "path": "filterCleaningDue",
9305
+ "valueType": "boolean"
9306
+ },
9307
+ {
9308
+ "path": "machineCareDue",
9309
+ "valueType": "boolean"
9310
+ },
9311
+ {
9312
+ "path": "machineCareRemainingRuns",
9313
+ "valueType": "number"
9314
+ },
9315
+ {
9316
+ "path": "halfLoad",
9317
+ "valueType": "boolean"
9318
+ },
9319
+ {
9320
+ "path": "hygienePlus",
9321
+ "valueType": "boolean"
9322
+ },
9323
+ {
9324
+ "path": "extraDry",
9325
+ "valueType": "boolean"
9326
+ },
9327
+ {
9328
+ "path": "intensiveZone",
9329
+ "valueType": "boolean"
9330
+ },
9331
+ {
9332
+ "path": "varioSpeedPlus",
9333
+ "valueType": "boolean"
9334
+ },
9335
+ {
9336
+ "path": "childLock",
9337
+ "valueType": "boolean"
9338
+ },
9339
+ {
9340
+ "path": "errorCode",
9341
+ "valueType": "number"
9342
+ },
9343
+ {
9344
+ "path": "errorLabel",
9345
+ "valueType": "string"
9346
+ }
9347
+ ],
9348
+ "doorbell": [{
9349
+ "path": "lastPressedAt",
9350
+ "valueType": "number"
9351
+ }, {
9352
+ "path": "pressCountSinceStart",
9353
+ "valueType": "number"
9354
+ }],
9355
+ "enum-sensor": [{
9356
+ "path": "value",
9357
+ "valueType": "string"
9358
+ }, {
9359
+ "path": "format",
9360
+ "valueType": "enum",
9361
+ "enumValues": [
9362
+ "date",
9363
+ "time",
9364
+ "datetime"
9365
+ ]
9366
+ }],
9367
+ "event-emitter": [
9368
+ {
9369
+ "path": "lastEvent.deviceId",
9370
+ "valueType": "number"
9371
+ },
9372
+ {
9373
+ "path": "lastEvent.eventType",
9374
+ "valueType": "string"
9375
+ },
9376
+ {
9377
+ "path": "lastEvent.timestamp",
9378
+ "valueType": "number"
9379
+ },
9380
+ {
9381
+ "path": "lastEvent.seq",
9382
+ "valueType": "number"
9383
+ },
9384
+ {
9385
+ "path": "eventCountSinceStart",
9386
+ "valueType": "number"
9387
+ }
9388
+ ],
9389
+ "fan-control": [
9390
+ {
9391
+ "path": "percentage",
9392
+ "valueType": "number"
9393
+ },
9394
+ {
9395
+ "path": "percentageStep",
9396
+ "valueType": "number"
9397
+ },
9398
+ {
9399
+ "path": "preset",
9400
+ "valueType": "string"
9401
+ },
9402
+ {
9403
+ "path": "direction",
9404
+ "valueType": "enum",
9405
+ "enumValues": ["forward", "reverse"]
9406
+ },
9407
+ {
9408
+ "path": "oscillating",
9409
+ "valueType": "boolean"
9410
+ }
9411
+ ],
9412
+ "feature-probe": [
9413
+ {
9414
+ "path": "deviceType",
9415
+ "valueType": "string"
9416
+ },
9417
+ {
9418
+ "path": "model",
9419
+ "valueType": "string"
9420
+ },
9421
+ {
9422
+ "path": "channelCount",
9423
+ "valueType": "number"
9424
+ },
9425
+ {
9426
+ "path": "lastProbedAt",
9427
+ "valueType": "number"
9428
+ }
9429
+ ],
9430
+ "flood": [{
9431
+ "path": "flooded",
9432
+ "valueType": "boolean"
9433
+ }],
9434
+ "gas": [{
9435
+ "path": "detected",
9436
+ "valueType": "boolean"
9437
+ }],
9438
+ "heating-valve": [{
9439
+ "path": "position",
9440
+ "valueType": "number"
9441
+ }],
9442
+ "humidifier": [
9443
+ {
9444
+ "path": "on",
9445
+ "valueType": "boolean"
9446
+ },
9447
+ {
9448
+ "path": "currentHumidity",
9449
+ "valueType": "number"
9450
+ },
9451
+ {
9452
+ "path": "targetHumidity",
9453
+ "valueType": "number"
9454
+ },
9455
+ {
9456
+ "path": "mode",
9457
+ "valueType": "string"
9458
+ },
9459
+ {
9460
+ "path": "action",
9461
+ "valueType": "string"
9462
+ },
9463
+ {
9464
+ "path": "minHumidity",
9465
+ "valueType": "number"
9466
+ },
9467
+ {
9468
+ "path": "maxHumidity",
9469
+ "valueType": "number"
9470
+ }
9471
+ ],
9472
+ "humidity-sensor": [
9473
+ {
9474
+ "path": "percent",
9475
+ "valueType": "number"
9476
+ },
9477
+ {
9478
+ "path": "unit",
9479
+ "valueType": "string"
9480
+ },
9481
+ {
9482
+ "path": "precision",
9483
+ "valueType": "number"
9484
+ }
9485
+ ],
9486
+ "image": [{
9487
+ "path": "url",
9488
+ "valueType": "string"
9489
+ }, {
9490
+ "path": "lastUpdated",
9491
+ "valueType": "number"
9492
+ }],
9493
+ "image-settings": [
9494
+ {
9495
+ "path": "brightness",
9496
+ "valueType": "number"
9497
+ },
9498
+ {
9499
+ "path": "contrast",
9500
+ "valueType": "number"
9501
+ },
9502
+ {
9503
+ "path": "saturation",
9504
+ "valueType": "number"
9505
+ },
9506
+ {
9507
+ "path": "sharpness",
9508
+ "valueType": "number"
9509
+ },
9510
+ {
9511
+ "path": "mirror",
9512
+ "valueType": "boolean"
9513
+ },
9514
+ {
9515
+ "path": "flip",
9516
+ "valueType": "boolean"
9517
+ },
9518
+ {
9519
+ "path": "rotate",
9520
+ "valueType": "enum",
9521
+ "enumValues": [
9522
+ "0",
9523
+ "90",
9524
+ "180",
9525
+ "270"
9526
+ ]
9527
+ },
9528
+ {
9529
+ "path": "whiteBalance",
9530
+ "valueType": "enum",
9531
+ "enumValues": ["auto", "manual"]
9532
+ },
9533
+ {
9534
+ "path": "warmth",
9535
+ "valueType": "number"
9536
+ },
9537
+ {
9538
+ "path": "exposureMode",
9539
+ "valueType": "enum",
9540
+ "enumValues": ["auto", "manual"]
9541
+ },
9542
+ {
9543
+ "path": "backlightMode",
9544
+ "valueType": "enum",
9545
+ "enumValues": [
9546
+ "off",
9547
+ "blc",
9548
+ "wdr",
9549
+ "hlc"
9550
+ ]
9551
+ }
9552
+ ],
9553
+ "intercom": [
9554
+ {
9555
+ "path": "talking",
9556
+ "valueType": "boolean"
9557
+ },
9558
+ {
9559
+ "path": "lastSessionAt",
9560
+ "valueType": "number"
9561
+ },
9562
+ {
9563
+ "path": "ability.sampleRate",
9564
+ "valueType": "number"
9565
+ },
9566
+ {
9567
+ "path": "ability.duplex",
9568
+ "valueType": "enum",
9569
+ "enumValues": ["half", "full"]
9570
+ },
9571
+ {
9572
+ "path": "ability.maxBacklogMs",
9573
+ "valueType": "number"
9574
+ }
9575
+ ],
9576
+ "lawn-mower-control": [
9577
+ {
9578
+ "path": "activity",
9579
+ "valueType": "enum",
9580
+ "enumValues": [
9581
+ "idle",
9582
+ "mowing",
9583
+ "paused",
9584
+ "docked",
9585
+ "error"
9586
+ ]
9587
+ },
9588
+ {
9589
+ "path": "batteryLevel",
9590
+ "valueType": "number"
9591
+ },
9592
+ {
9593
+ "path": "progressPercent",
9594
+ "valueType": "number"
9595
+ },
9596
+ {
9597
+ "path": "currentCode",
9598
+ "valueType": "number"
9599
+ },
9600
+ {
9601
+ "path": "currentCodeLabel",
9602
+ "valueType": "string"
9603
+ },
9604
+ {
9605
+ "path": "severity",
9606
+ "valueType": "enum",
9607
+ "enumValues": [
9608
+ "info",
9609
+ "warning",
9610
+ "error"
9611
+ ]
9612
+ }
9613
+ ],
9614
+ "lock-control": [{
9615
+ "path": "state",
9616
+ "valueType": "enum",
9617
+ "enumValues": [
9618
+ "locked",
9619
+ "unlocked",
9620
+ "locking",
9621
+ "unlocking",
9622
+ "jammed"
9623
+ ]
9624
+ }],
9625
+ "media-player": [
9626
+ {
9627
+ "path": "state",
9628
+ "valueType": "enum",
9629
+ "enumValues": [
9630
+ "off",
9631
+ "on",
9632
+ "idle",
9633
+ "playing",
9634
+ "paused",
9635
+ "buffering",
9636
+ "standby"
9637
+ ]
9638
+ },
9639
+ {
9640
+ "path": "volumeLevel",
9641
+ "valueType": "number"
9642
+ },
9643
+ {
9644
+ "path": "isMuted",
9645
+ "valueType": "boolean"
9646
+ },
9647
+ {
9648
+ "path": "source",
9649
+ "valueType": "string"
9650
+ },
9651
+ {
9652
+ "path": "currentMedia.type",
9653
+ "valueType": "string"
9654
+ },
9655
+ {
9656
+ "path": "currentMedia.title",
9657
+ "valueType": "string"
9658
+ },
9659
+ {
9660
+ "path": "currentMedia.artist",
9661
+ "valueType": "string"
9662
+ },
9663
+ {
9664
+ "path": "currentMedia.album",
9665
+ "valueType": "string"
9666
+ },
9667
+ {
9668
+ "path": "currentMedia.imageUrl",
9669
+ "valueType": "string"
9670
+ },
9671
+ {
9672
+ "path": "positionMs",
9673
+ "valueType": "number"
9674
+ },
9675
+ {
9676
+ "path": "durationMs",
9677
+ "valueType": "number"
9678
+ },
9679
+ {
9680
+ "path": "shuffle",
9681
+ "valueType": "boolean"
9682
+ },
9683
+ {
9684
+ "path": "repeat",
9685
+ "valueType": "enum",
9686
+ "enumValues": [
9687
+ "off",
9688
+ "all",
9689
+ "one"
9690
+ ]
9691
+ }
9692
+ ],
9693
+ "motion": [
9694
+ {
9695
+ "path": "detected",
9696
+ "valueType": "boolean"
9697
+ },
9698
+ {
9699
+ "path": "lastDetectedAt",
9700
+ "valueType": "number"
9701
+ },
9702
+ {
9703
+ "path": "autoClearAfterMs",
9704
+ "valueType": "number"
9705
+ }
9706
+ ],
9707
+ "motion-trigger": [{
9708
+ "path": "enabled",
9709
+ "valueType": "boolean"
9710
+ }],
9711
+ "motion-zones": [{
9712
+ "path": "enabled",
9713
+ "valueType": "boolean"
9714
+ }, {
9715
+ "path": "sensitivity",
9716
+ "valueType": "number"
9717
+ }],
9718
+ "mqtt-broker": [{
9719
+ "path": "brokerCount",
9720
+ "valueType": "number"
9721
+ }, {
9722
+ "path": "embeddedRunning",
9723
+ "valueType": "boolean"
9724
+ }],
9725
+ "native-object-detection": [{
9726
+ "path": "enabled",
9727
+ "valueType": "boolean"
9728
+ }],
9729
+ "navigation": [
9730
+ {
9731
+ "path": "mode",
9732
+ "valueType": "enum",
9733
+ "enumValues": [
9734
+ "idle",
9735
+ "cleaning",
9736
+ "spot",
9737
+ "following",
9738
+ "goto",
9739
+ "returning",
9740
+ "paused",
9741
+ "unknown"
9742
+ ]
9743
+ },
9744
+ {
9745
+ "path": "following",
9746
+ "valueType": "boolean"
9747
+ },
9748
+ {
9749
+ "path": "flash",
9750
+ "valueType": "boolean"
9751
+ },
9752
+ {
9753
+ "path": "lightMode",
9754
+ "valueType": "enum",
9755
+ "enumValues": ["auto", "manual"]
9756
+ },
9757
+ {
9758
+ "path": "lightLevel",
9759
+ "valueType": "number"
9760
+ }
9761
+ ],
9762
+ "network-link": [
9763
+ {
9764
+ "path": "type",
9765
+ "valueType": "enum",
9766
+ "enumValues": [
9767
+ "wifi",
9768
+ "ethernet",
9769
+ "cellular",
9770
+ "unknown"
9771
+ ]
9772
+ },
9773
+ {
9774
+ "path": "signalPercent",
9775
+ "valueType": "number"
9776
+ },
9777
+ {
9778
+ "path": "rssiDbm",
9779
+ "valueType": "number"
9780
+ },
9781
+ {
9782
+ "path": "ssid",
9783
+ "valueType": "string"
9784
+ },
9785
+ {
9786
+ "path": "lastUpdated",
9787
+ "valueType": "number"
9788
+ }
9789
+ ],
9790
+ "notifier": [
9791
+ {
9792
+ "path": "lastSentAt",
9793
+ "valueType": "number"
9794
+ },
9795
+ {
9796
+ "path": "lastError",
9797
+ "valueType": "string"
9798
+ },
9799
+ {
9800
+ "path": "queueDepth",
9801
+ "valueType": "number"
9802
+ },
9803
+ {
9804
+ "path": "supports.image",
9805
+ "valueType": "boolean"
9806
+ },
9807
+ {
9808
+ "path": "supports.priority",
9809
+ "valueType": "boolean"
9810
+ },
9811
+ {
9812
+ "path": "supports.data",
9813
+ "valueType": "boolean"
9814
+ },
9815
+ {
9816
+ "path": "supports.actions",
9817
+ "valueType": "boolean"
9818
+ },
9819
+ {
9820
+ "path": "supports.recipients",
9821
+ "valueType": "boolean"
9822
+ }
9823
+ ],
9824
+ "numeric-sensor": [
9825
+ {
9826
+ "path": "value",
9827
+ "valueType": "number"
9828
+ },
9829
+ {
9830
+ "path": "unit",
9831
+ "valueType": "string"
9832
+ },
9833
+ {
9834
+ "path": "precision",
9835
+ "valueType": "number"
9836
+ }
9837
+ ],
9838
+ "pet-feeder": [
9839
+ {
9840
+ "path": "foodLevel",
9841
+ "valueType": "number"
9842
+ },
9843
+ {
9844
+ "path": "food1",
9845
+ "valueType": "number"
9846
+ },
9847
+ {
9848
+ "path": "food2",
9849
+ "valueType": "number"
9850
+ },
9851
+ {
9852
+ "path": "lowFood",
9853
+ "valueType": "boolean"
9854
+ },
9855
+ {
9856
+ "path": "batteryPower",
9857
+ "valueType": "number"
9858
+ },
9859
+ {
9860
+ "path": "desiccantLeftDays",
9861
+ "valueType": "number"
9862
+ },
9863
+ {
9864
+ "path": "feeding",
9865
+ "valueType": "boolean"
9866
+ },
9867
+ {
9868
+ "path": "status",
9869
+ "valueType": "enum",
9870
+ "enumValues": [
9871
+ "normal",
9872
+ "offline",
9873
+ "on_batteries"
9874
+ ]
9875
+ },
9876
+ {
9877
+ "path": "error",
9878
+ "valueType": "string"
9879
+ },
9880
+ {
9881
+ "path": "errorCode",
9882
+ "valueType": "number"
9883
+ },
9884
+ {
9885
+ "path": "isDualHopper",
9886
+ "valueType": "boolean"
9887
+ },
9888
+ {
9889
+ "path": "childLock",
9890
+ "valueType": "boolean"
9891
+ },
9892
+ {
9893
+ "path": "indicatorLight",
9894
+ "valueType": "boolean"
9895
+ },
9896
+ {
9897
+ "path": "feedSound",
9898
+ "valueType": "boolean"
9899
+ },
9900
+ {
9901
+ "path": "volume",
9902
+ "valueType": "number"
9903
+ }
9904
+ ],
9905
+ "power-meter": [
9906
+ {
9907
+ "path": "watts",
9908
+ "valueType": "number"
9909
+ },
9910
+ {
9911
+ "path": "kwhTotal",
9912
+ "valueType": "number"
9913
+ },
9914
+ {
9915
+ "path": "volts",
9916
+ "valueType": "number"
9917
+ },
9918
+ {
9919
+ "path": "amps",
9920
+ "valueType": "number"
9921
+ },
9922
+ {
9923
+ "path": "va",
9924
+ "valueType": "number"
9925
+ },
9926
+ {
9927
+ "path": "powerFactor",
9928
+ "valueType": "number"
9929
+ },
9930
+ {
9931
+ "path": "unit",
9932
+ "valueType": "string"
9933
+ },
9934
+ {
9935
+ "path": "precision",
9936
+ "valueType": "number"
9937
+ }
9938
+ ],
9939
+ "presence": [
9940
+ {
9941
+ "path": "state",
9942
+ "valueType": "string"
9943
+ },
9944
+ {
9945
+ "path": "location",
9946
+ "valueType": "string"
9947
+ },
9948
+ {
9949
+ "path": "gps.latitude",
9950
+ "valueType": "number"
9951
+ },
9952
+ {
9953
+ "path": "gps.longitude",
9954
+ "valueType": "number"
9955
+ },
9956
+ {
9957
+ "path": "gps.accuracyMeters",
9958
+ "valueType": "number"
9959
+ },
9960
+ {
9961
+ "path": "batteryPercent",
9962
+ "valueType": "number"
9963
+ }
9964
+ ],
9965
+ "pressure-sensor": [
9966
+ {
9967
+ "path": "hpa",
9968
+ "valueType": "number"
9969
+ },
9970
+ {
9971
+ "path": "unit",
9972
+ "valueType": "string"
9973
+ },
9974
+ {
9975
+ "path": "precision",
9976
+ "valueType": "number"
9977
+ }
9978
+ ],
9979
+ "privacy-mask": [{
9980
+ "path": "enabled",
9981
+ "valueType": "boolean"
9982
+ }, {
9983
+ "path": "audioEnabled",
9984
+ "valueType": "boolean"
9985
+ }],
9986
+ "ptz": [
9987
+ {
9988
+ "path": "pan",
9989
+ "valueType": "number"
9990
+ },
9991
+ {
9992
+ "path": "tilt",
9993
+ "valueType": "number"
9994
+ },
9995
+ {
9996
+ "path": "zoom",
9997
+ "valueType": "number"
9998
+ },
9999
+ {
10000
+ "path": "autofocus",
10001
+ "valueType": "boolean"
10002
+ }
10003
+ ],
10004
+ "ptz-autotrack": [
10005
+ {
10006
+ "path": "enabled",
10007
+ "valueType": "boolean"
10008
+ },
10009
+ {
10010
+ "path": "currentSettings.targetType",
10011
+ "valueType": "string"
10012
+ },
10013
+ {
10014
+ "path": "currentSettings.stopDelaySeconds",
10015
+ "valueType": "number"
10016
+ },
10017
+ {
10018
+ "path": "currentSettings.disappearDelaySeconds",
10019
+ "valueType": "number"
10020
+ }
10021
+ ],
10022
+ "recording-archive": [
10023
+ {
10024
+ "path": "deviceId",
10025
+ "valueType": "number"
10026
+ },
10027
+ {
10028
+ "path": "enabled",
10029
+ "valueType": "boolean"
10030
+ },
10031
+ {
10032
+ "path": "activeMode",
10033
+ "valueType": "enum",
10034
+ "enumValues": [
10035
+ "off",
10036
+ "events",
10037
+ "continuous",
10038
+ "on-device-decision"
10039
+ ]
10040
+ },
10041
+ {
10042
+ "path": "nodeId",
10043
+ "valueType": "string"
10044
+ },
10045
+ {
10046
+ "path": "storageBytes",
10047
+ "valueType": "number"
10048
+ }
10049
+ ],
10050
+ "recording-onboard": [
10051
+ {
10052
+ "path": "primaryTrackId",
10053
+ "valueType": "string"
10054
+ },
10055
+ {
10056
+ "path": "enabled",
10057
+ "valueType": "boolean"
10058
+ },
10059
+ {
10060
+ "path": "overwriteWhenFull",
10061
+ "valueType": "boolean"
10062
+ },
10063
+ {
10064
+ "path": "preRecordSec",
10065
+ "valueType": "number"
10066
+ },
10067
+ {
10068
+ "path": "postRecordSec",
10069
+ "valueType": "number"
10070
+ },
10071
+ {
10072
+ "path": "segmentMinutes",
10073
+ "valueType": "number"
10074
+ },
10075
+ {
10076
+ "path": "unreadableWindows",
10077
+ "valueType": "number"
10078
+ },
10079
+ {
10080
+ "path": "recordingToNowhere",
10081
+ "valueType": "boolean"
10082
+ }
10083
+ ],
10084
+ "recording-signal": [{
10085
+ "path": "active",
10086
+ "valueType": "boolean"
10087
+ }, {
10088
+ "path": "reason",
10089
+ "valueType": "string"
10090
+ }],
10091
+ "running-state": [
10092
+ {
10093
+ "path": "running",
10094
+ "valueType": "boolean"
10095
+ },
10096
+ {
10097
+ "path": "since",
10098
+ "valueType": "number"
10099
+ },
10100
+ {
10101
+ "path": "source",
10102
+ "valueType": "enum",
10103
+ "enumValues": ["native", "assigned"]
10104
+ },
10105
+ {
10106
+ "path": "phase",
10107
+ "valueType": "string"
10108
+ }
10109
+ ],
10110
+ "script-runner": [
10111
+ {
10112
+ "path": "isRunning",
10113
+ "valueType": "boolean"
10114
+ },
10115
+ {
10116
+ "path": "lastRunAt",
10117
+ "valueType": "number"
10118
+ },
10119
+ {
10120
+ "path": "lastRunSuccess",
10121
+ "valueType": "boolean"
10122
+ },
10123
+ {
10124
+ "path": "lastError",
10125
+ "valueType": "string"
10126
+ }
10127
+ ],
10128
+ "smoke": [{
10129
+ "path": "detected",
10130
+ "valueType": "boolean"
10131
+ }],
10132
+ "snapshot": [
10133
+ {
10134
+ "path": "lastCapturedAt",
10135
+ "valueType": "number"
10136
+ },
10137
+ {
10138
+ "path": "cacheAgeMs",
10139
+ "valueType": "number"
10140
+ },
10141
+ {
10142
+ "path": "lastBytes",
10143
+ "valueType": "number"
10144
+ },
10145
+ {
10146
+ "path": "lastStreamId",
10147
+ "valueType": "string"
10148
+ }
10149
+ ],
10150
+ "stream-params": [
10151
+ {
10152
+ "path": "main.width",
10153
+ "valueType": "number"
10154
+ },
10155
+ {
10156
+ "path": "main.height",
10157
+ "valueType": "number"
10158
+ },
10159
+ {
10160
+ "path": "main.codec",
10161
+ "valueType": "enum",
10162
+ "enumValues": ["h264", "h265"]
10163
+ },
10164
+ {
10165
+ "path": "main.framerate",
10166
+ "valueType": "number"
10167
+ },
10168
+ {
10169
+ "path": "main.bitrate",
10170
+ "valueType": "number"
10171
+ },
10172
+ {
10173
+ "path": "main.bitrateMode",
10174
+ "valueType": "enum",
10175
+ "enumValues": ["vbr", "cbr"]
10176
+ },
10177
+ {
10178
+ "path": "main.encoderProfile",
10179
+ "valueType": "enum",
10180
+ "enumValues": [
10181
+ "high",
10182
+ "main",
10183
+ "baseline"
10184
+ ]
10185
+ },
10186
+ {
10187
+ "path": "main.gop",
10188
+ "valueType": "number"
10189
+ },
10190
+ {
10191
+ "path": "main.audio",
10192
+ "valueType": "boolean"
10193
+ },
10194
+ {
10195
+ "path": "sub.width",
10196
+ "valueType": "number"
10197
+ },
10198
+ {
10199
+ "path": "sub.height",
10200
+ "valueType": "number"
10201
+ },
10202
+ {
10203
+ "path": "sub.codec",
10204
+ "valueType": "enum",
10205
+ "enumValues": ["h264", "h265"]
10206
+ },
10207
+ {
10208
+ "path": "sub.framerate",
10209
+ "valueType": "number"
10210
+ },
10211
+ {
10212
+ "path": "sub.bitrate",
10213
+ "valueType": "number"
10214
+ },
10215
+ {
10216
+ "path": "sub.bitrateMode",
10217
+ "valueType": "enum",
10218
+ "enumValues": ["vbr", "cbr"]
10219
+ },
10220
+ {
10221
+ "path": "sub.encoderProfile",
10222
+ "valueType": "enum",
10223
+ "enumValues": [
10224
+ "high",
10225
+ "main",
10226
+ "baseline"
10227
+ ]
10228
+ },
10229
+ {
10230
+ "path": "sub.gop",
10231
+ "valueType": "number"
10232
+ },
10233
+ {
10234
+ "path": "sub.audio",
10235
+ "valueType": "boolean"
10236
+ },
10237
+ {
10238
+ "path": "ext.width",
10239
+ "valueType": "number"
10240
+ },
10241
+ {
10242
+ "path": "ext.height",
10243
+ "valueType": "number"
10244
+ },
10245
+ {
10246
+ "path": "ext.codec",
10247
+ "valueType": "enum",
10248
+ "enumValues": ["h264", "h265"]
10249
+ },
10250
+ {
10251
+ "path": "ext.framerate",
10252
+ "valueType": "number"
10253
+ },
10254
+ {
10255
+ "path": "ext.bitrate",
10256
+ "valueType": "number"
10257
+ },
10258
+ {
10259
+ "path": "ext.bitrateMode",
10260
+ "valueType": "enum",
10261
+ "enumValues": ["vbr", "cbr"]
10262
+ },
10263
+ {
10264
+ "path": "ext.encoderProfile",
10265
+ "valueType": "enum",
10266
+ "enumValues": [
10267
+ "high",
10268
+ "main",
10269
+ "baseline"
10270
+ ]
10271
+ },
10272
+ {
10273
+ "path": "ext.gop",
10274
+ "valueType": "number"
10275
+ },
10276
+ {
10277
+ "path": "ext.audio",
10278
+ "valueType": "boolean"
10279
+ }
10280
+ ],
10281
+ "switch": [{
10282
+ "path": "on",
10283
+ "valueType": "boolean"
10284
+ }],
10285
+ "tamper": [{
10286
+ "path": "tampered",
10287
+ "valueType": "boolean"
10288
+ }],
10289
+ "temperature-sensor": [
10290
+ {
10291
+ "path": "celsius",
10292
+ "valueType": "number"
10293
+ },
10294
+ {
10295
+ "path": "unit",
10296
+ "valueType": "string"
10297
+ },
10298
+ {
10299
+ "path": "precision",
10300
+ "valueType": "number"
10301
+ }
10302
+ ],
10303
+ "update": [
10304
+ {
10305
+ "path": "currentVersion",
10306
+ "valueType": "string"
10307
+ },
10308
+ {
10309
+ "path": "availableVersion",
10310
+ "valueType": "string"
10311
+ },
10312
+ {
10313
+ "path": "updatable",
10314
+ "valueType": "boolean"
10315
+ },
10316
+ {
10317
+ "path": "state",
10318
+ "valueType": "string"
10319
+ },
10320
+ {
10321
+ "path": "inProgress",
10322
+ "valueType": "boolean"
10323
+ }
10324
+ ],
10325
+ "vacuum-control": [
10326
+ {
10327
+ "path": "state",
10328
+ "valueType": "enum",
10329
+ "enumValues": [
10330
+ "idle",
10331
+ "cleaning",
10332
+ "paused",
10333
+ "returning",
10334
+ "docked",
10335
+ "drying",
10336
+ "error"
10337
+ ]
10338
+ },
10339
+ {
10340
+ "path": "batteryLevel",
10341
+ "valueType": "number"
10342
+ },
10343
+ {
10344
+ "path": "fanSpeed",
10345
+ "valueType": "string"
10346
+ },
10347
+ {
10348
+ "path": "progressPercent",
10349
+ "valueType": "number"
10350
+ },
10351
+ {
10352
+ "path": "errorCode",
10353
+ "valueType": "number"
10354
+ },
10355
+ {
10356
+ "path": "errorLabel",
10357
+ "valueType": "string"
10358
+ }
10359
+ ],
10360
+ "valve": [{
10361
+ "path": "state",
10362
+ "valueType": "enum",
10363
+ "enumValues": [
10364
+ "open",
10365
+ "opening",
10366
+ "closing",
10367
+ "closed",
10368
+ "stopped"
10369
+ ]
10370
+ }, {
10371
+ "path": "position",
10372
+ "valueType": "number"
10373
+ }],
10374
+ "vibration": [{
10375
+ "path": "detected",
10376
+ "valueType": "boolean"
10377
+ }],
10378
+ "water-heater": [
10379
+ {
10380
+ "path": "currentTemp",
10381
+ "valueType": "number"
10382
+ },
10383
+ {
10384
+ "path": "targetTemp",
10385
+ "valueType": "number"
10386
+ },
10387
+ {
10388
+ "path": "operationMode",
10389
+ "valueType": "string"
10390
+ },
10391
+ {
10392
+ "path": "away",
10393
+ "valueType": "boolean"
10394
+ },
10395
+ {
10396
+ "path": "minTemp",
10397
+ "valueType": "number"
10398
+ },
10399
+ {
10400
+ "path": "maxTemp",
10401
+ "valueType": "number"
10402
+ }
10403
+ ],
10404
+ "weather": [
10405
+ {
10406
+ "path": "condition",
10407
+ "valueType": "string"
10408
+ },
10409
+ {
10410
+ "path": "temperature",
10411
+ "valueType": "number"
10412
+ },
10413
+ {
10414
+ "path": "temperatureUnit",
10415
+ "valueType": "string"
10416
+ },
10417
+ {
10418
+ "path": "humidity",
10419
+ "valueType": "number"
10420
+ },
10421
+ {
10422
+ "path": "pressure",
10423
+ "valueType": "number"
10424
+ },
10425
+ {
10426
+ "path": "pressureUnit",
10427
+ "valueType": "string"
10428
+ },
10429
+ {
10430
+ "path": "windSpeed",
10431
+ "valueType": "number"
10432
+ },
10433
+ {
10434
+ "path": "windSpeedUnit",
10435
+ "valueType": "string"
10436
+ },
10437
+ {
10438
+ "path": "windBearing",
10439
+ "valueType": "number"
10440
+ }
10441
+ ],
10442
+ "zone-analytics": [
10443
+ {
10444
+ "path": "ts",
10445
+ "valueType": "number"
10446
+ },
10447
+ {
10448
+ "path": "frameWidth",
10449
+ "valueType": "number"
10450
+ },
10451
+ {
10452
+ "path": "frameHeight",
10453
+ "valueType": "number"
10454
+ },
10455
+ {
10456
+ "path": "frame.totalObjects",
10457
+ "valueType": "number"
10458
+ },
10459
+ {
10460
+ "path": "frame.standingObjects",
10461
+ "valueType": "number"
10462
+ },
10463
+ {
10464
+ "path": "frame.transientObjects",
10465
+ "valueType": "number"
10466
+ },
10467
+ {
10468
+ "path": "unzoned.totalObjects",
10469
+ "valueType": "number"
10470
+ },
10471
+ {
10472
+ "path": "unzoned.standingObjects",
10473
+ "valueType": "number"
10474
+ },
10475
+ {
10476
+ "path": "unzoned.transientObjects",
10477
+ "valueType": "number"
10478
+ }
10479
+ ]
10480
+ });
8504
10481
  object({
8505
10482
  code: string().regex(/^[a-z][a-z0-9-]*(\.[a-z0-9-]+)+$/),
8506
10483
  params: record(string(), union([string(), number()])).optional()
@@ -8863,7 +10840,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
8863
10840
  return DeviceRole;
8864
10841
  }({});
8865
10842
  //#endregion
8866
- //#region ../types/dist/composition-CB6PMT9p.mjs
10843
+ //#region ../types/dist/composition-kEl9mevu.mjs
8867
10844
  /**
8868
10845
  * The ffmpeg build every CamStack node downloads, per platform and arch.
8869
10846
  *
@@ -8923,7 +10900,7 @@ portable("linux64"), portable("linuxarm64"), portable("macarm64"), portable("mac
8923
10900
  * ONE table for everyone who asks "is this device HIGH?": the
8924
10901
  * recorder's `RecordingTriggers.sensorDeviceIds` trigger, the post-analysis
8925
10902
  * sensor markers, the orchestrator's camera-sensors bridge and
8926
- * the sources of a composite doorbell (`doorbellFeatureSources`, D671).
10903
+ * the sources of a pulse (`compilePulseOverride`, D936).
8927
10904
  * A second copy would diverge at the first cap added, and the symptom — "the
8928
10905
  * sensor rings the doorbell but does not record" — is exactly D62.
8929
10906
  *
@@ -9164,6 +11141,20 @@ var table = {
9164
11141
  apply: () => {
9165
11142
  throw new ExpressionEvalError("count: stateful evaluation context is required");
9166
11143
  }
11144
+ },
11145
+ dwell: {
11146
+ minArgs: 3,
11147
+ maxArgs: 3,
11148
+ apply: () => {
11149
+ throw new ExpressionEvalError("dwell: stateful evaluation context is required");
11150
+ }
11151
+ },
11152
+ latchedAt: {
11153
+ minArgs: 1,
11154
+ maxArgs: 1,
11155
+ apply: () => {
11156
+ throw new ExpressionEvalError("latchedAt: stateful evaluation context is required");
11157
+ }
9167
11158
  }
9168
11159
  };
9169
11160
  Object.freeze(Object.assign(Object.create(null), table));
@@ -10603,13 +12594,22 @@ var BirthDecisionRecordSchema = object({
10603
12594
  decidedByBirthEvidence: boolean(),
10604
12595
  /** Best class-compatible crop score, or `null` when nothing compatible was
10605
12596
  * found — deliberately not 0, which would be a measurement that never was.
10606
- * Includes a box the detector's own per-class floor refused (reason
10607
- * `below-detector-floor`, D922): that box never confirms, but it is the
10608
- * score the crop really held. */
12597
+ * Includes a box the detector's own per-class floor refused (D922): since
12598
+ * D925 the gate's bar, not that floor, decides whether it confirms. */
10609
12599
  bestScore: number().nullable(),
10610
12600
  /** The bar this candidate actually faced (the phantom-cell hook may raise it). */
10611
12601
  appliedMinConfidence: number().nullable(),
10612
12602
  /**
12603
+ * The detector the gate re-judged the birth WITH (D925): the session's own
12604
+ * root model, inference-device pool and node — never a node default. `null`
12605
+ * when the frame named no session detector or no gate ran, and on rows
12606
+ * written before D925. A `session-device-unavailable` row names the session
12607
+ * detector that could not be reached.
12608
+ */
12609
+ detectorModelId: string().nullable().default(null),
12610
+ detectorDeviceKey: string().nullable().default(null),
12611
+ detectorNodeId: string().nullable().default(null),
12612
+ /**
10613
12613
  * The track's own `firstSeen` — the candidate's first frame, which is where
10614
12614
  * the timeline starts. `null` for a suppressed birth, which has no track.
10615
12615
  */
@@ -12268,7 +14268,7 @@ var LogChannelDescriptorSchema = object({
12268
14268
  * `true` is a PROMISE with two halves, and both must hold: the gate is
12269
14269
  * consulted with the numeric device id, AND every line the channel admits
12270
14270
  * carries `tags: { deviceId }` with that same numeric id. The second half is
12271
- * what makes `| json | deviceId="617"` work in Loki — `loki-payload.ts`
14271
+ * what makes `| json | deviceId="102"` work in Loki — `loki-payload.ts`
12272
14272
  * keeps `deviceId` out of the stream labels for cardinality, so the tag in
12273
14273
  * the body is the only way to filter.
12274
14274
  *
@@ -12562,7 +14562,7 @@ var ModelVariantGroupSchema = object({
12562
14562
  precision: _enum(["fp32", "int8"]).optional(),
12563
14563
  /**
12564
14564
  * Training / latency-variant axis. Omit ⇒ the standard build. `test` marks
12565
- * an alternate training of the same family (Scrypted `relu_test`); chip
14565
+ * an alternate training of the same family (plugin catalog `relu_test`); chip
12566
14566
  * label is "Test".
12567
14567
  */
12568
14568
  optimization: _enum(["standard", "test"]).optional(),
@@ -12814,8 +14814,8 @@ var ModelCatalogEntrySchema = object({
12814
14814
  provider: ModelProviderIdSchema.optional(),
12815
14815
  /**
12816
14816
  * Per-MODEL class map override. Absent ⇒ the step's `StepDefinition.classMap`
12817
- * applies (Frigate / COCO public catalog). Set on a custom model whose raw
12818
- * labels already ARE the CamStack macros (Scrypted identity map).
14817
+ * applies (plus catalog / COCO public catalog). Set on a custom model whose raw
14818
+ * labels already ARE the CamStack macros (plugin catalog identity map).
12819
14819
  */
12820
14820
  classMap: DetectionCatalogClassMapSchema.optional(),
12821
14821
  /**
@@ -15784,7 +17784,7 @@ method(object({
15784
17784
  * `1` is real time and is the ONLY value that allows the copy branch —
15785
17785
  * anything else forces `libx264` over the window. That was priced
15786
17786
  * before it was chosen: a per-event burst measured at 0.23 s and 254 KB
15787
- * on a real 615 720p cut, against 922 KB for the copy it replaces. A
17787
+ * on a real 101 720p cut, against 922 KB for the copy it replaces. A
15788
17788
  * re-encode is capped at 720p (`EVENT_CLIP_ENCODE_MAX_WIDTH`), because
15789
17789
  * once the decode is forced the width stops being free.
15790
17790
  */
@@ -16310,6 +18310,7 @@ var CompositionRunStatusSchema = _enum([
16310
18310
  "starting",
16311
18311
  "running",
16312
18312
  "degraded",
18313
+ "incomplete",
16313
18314
  "failed"
16314
18315
  ]);
16315
18316
  var CompositionFieldStateKindSchema = _enum([
@@ -16359,6 +18360,13 @@ var ComposerUnreadableBlockSchema = object({
16359
18360
  /** The parse error, in the operator's words. */
16360
18361
  error: string()
16361
18362
  });
18363
+ /** A confirmed release the hub did not accept. `deviceId` is the claim's device. */
18364
+ var UnreleasedClaimSchema = object({
18365
+ deviceId: number().int(),
18366
+ capName: string(),
18367
+ owner: string(),
18368
+ error: string()
18369
+ });
16362
18370
  method(object({
16363
18371
  /** The shared Blocks integration; null until `core-blocks` has reconciled it. */
16364
18372
  integrationId: string().nullable(),
@@ -16368,7 +18376,13 @@ method(object({
16368
18376
  /** Operator restarts: rebuild these runtimes and re-resolve their sources. Stores nothing (D62). */
16369
18377
  restartBlockIds: array(string()),
16370
18378
  /** Composition rows that exist but do not parse: held, never withdrawn, reported failed. */
16371
- unreadableBlocks: array(ComposerUnreadableBlockSchema)
18379
+ unreadableBlocks: array(ComposerUnreadableBlockSchema),
18380
+ /**
18381
+ * Operator-confirmed deletions. Their claims are released on this apply,
18382
+ * before any replacement block claims. A block that merely vanished from the
18383
+ * snapshot is not listed here and still waits for two applies (D49).
18384
+ */
18385
+ retiredBlockIds: array(string()).optional()
16372
18386
  }), object({
16373
18387
  blocks: array(object({
16374
18388
  blockId: string(),
@@ -16380,7 +18394,13 @@ method(object({
16380
18394
  * integration unknown, its own rows unread or read empty once). An empty
16381
18395
  * apply the caller owes is paid off only by one the composer acted on (D49).
16382
18396
  */
16383
- acted: boolean()
18397
+ acted: boolean(),
18398
+ /**
18399
+ * Confirmed releases this apply tried and the hub did not accept. Empty when
18400
+ * every one landed (or there was nothing to hand back). Absent on a result
18401
+ * that never got that far.
18402
+ */
18403
+ unreleasedClaims: array(UnreleasedClaimSchema).optional()
16384
18404
  }), {
16385
18405
  kind: "mutation",
16386
18406
  auth: "admin"
@@ -16423,7 +18443,15 @@ Object.freeze({
16423
18443
  kind: "fixed",
16424
18444
  result: ["number", "null"]
16425
18445
  },
16426
- count: NUMBER
18446
+ count: NUMBER,
18447
+ dwell: {
18448
+ kind: "fixed",
18449
+ result: ["boolean", "null"]
18450
+ },
18451
+ latchedAt: {
18452
+ kind: "fixed",
18453
+ result: ["number", "null"]
18454
+ }
16427
18455
  });
16428
18456
  `${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
16429
18457
  /**
@@ -16496,6 +18524,7 @@ var CoreBlockStatusSchema = _enum([
16496
18524
  "starting",
16497
18525
  "running",
16498
18526
  "degraded",
18527
+ "incomplete",
16499
18528
  "failed"
16500
18529
  ]);
16501
18530
  /** path → TypeScript source for a multi-file block. */
@@ -38643,7 +40672,7 @@ var PRIMARY_CATEGORIES = new Set(ENTRIES.map((e) => e.primaryCategory));
38643
40672
  * `locationKey` is ALWAYS {@link locationIconKey} of the label — never the
38644
40673
  * operator's casing. The registry matches labels trimmed + case-insensitively
38645
40674
  * everywhere (`addLocation`, `removeLocation`, `renameLocation`), and a
38646
- * case-only rename (`cucina` → `Cucina`) is a real edit this repo supports; a
40675
+ * case-only rename (`kitchen` → `Kitchen`) is a real edit this repo supports; a
38647
40676
  * map keyed on the displayed casing would orphan its entry on exactly that
38648
40677
  * edit. Consumers join by keying their own label through `locationIconKey`.
38649
40678
  */
@@ -38668,7 +40697,7 @@ var LocationDescriptionAssignmentSchema = object({
38668
40697
  /**
38669
40698
  * A SITE ZONE — a named part of the property that several locations belong to.
38670
40699
  *
38671
- * "Zona notte" holds every bedroom; "Zona giorno" the living room and the
40700
+ * "Night zone" holds every bedroom; "Zona giorno" the living room and the
38672
40701
  * kitchen. A camera belongs to exactly one location, and a location to at most
38673
40702
  * one zone, so a camera's zone is derived and never stored on the device: the
38674
40703
  * whole point of this entity is that grouping rooms touches no device row.
@@ -38697,7 +40726,7 @@ var LocationDescriptionAssignmentSchema = object({
38697
40726
  * the locations inside it.
38698
40727
  *
38699
40728
  * The LABEL is carried alongside the key because the key is lossy on purpose —
38700
- * a surface must show "Zona notte", not "zona notte". Locations are carried
40729
+ * a surface must show "Night zone", not "night zone". Locations are carried
38701
40730
  * here, rather than left to a second call, because every consumer wants both
38702
40731
  * at once and a viewer that asked twice could render a zone whose membership
38703
40732
  * it has not fetched yet.
@@ -40910,8 +42939,8 @@ var LoadContributionSchema = object({
40910
42939
  "unattributable"
40911
42940
  ]),
40912
42941
  /**
40913
- * What ONE entry is, in the contributor's own words — `615/high`,
40914
- * `617/native`, `cuda:0 shared pool`. Free text because the unit differs per
42942
+ * What ONE entry is, in the contributor's own words — `101/high`,
42943
+ * `102/native`, `cuda:0 shared pool`. Free text because the unit differs per
40915
42944
  * family and inventing a common one would lose the only information that
40916
42945
  * makes two entries for the same camera distinguishable.
40917
42946
  */
@@ -42559,6 +44588,381 @@ var _macroLookup = /* @__PURE__ */ new Map();
42559
44588
  for (const [k, v] of Object.entries(YAMNET_TO_MACRO.mapping)) _macroLookup.set(k.toLowerCase(), v);
42560
44589
  for (const [k, v] of Object.entries(APPLE_SA_TO_MACRO.mapping)) _macroLookup.set(k.toLowerCase(), v);
42561
44590
  /**
44591
+ * Palette entry ids (D939). Audio is the one gradient; `audio-*` leaves are
44592
+ * not entries. `heatmapScrub` is a mark, not an event kind.
44593
+ */
44594
+ var PALETTE_ENTRY_IDS = [
44595
+ "motion",
44596
+ "audio",
44597
+ "recording",
44598
+ "live",
44599
+ "heatmapScrub",
44600
+ "person",
44601
+ "vehicle",
44602
+ "animal",
44603
+ "package",
44604
+ "sensor",
44605
+ "control",
44606
+ "face",
44607
+ "plate",
44608
+ "car",
44609
+ "truck",
44610
+ "bus",
44611
+ "motorcycle",
44612
+ "bicycle",
44613
+ "airplane",
44614
+ "boat",
44615
+ "train",
44616
+ "bird",
44617
+ "dog",
44618
+ "cat",
44619
+ "horse",
44620
+ "sheep",
44621
+ "cow",
44622
+ "elephant",
44623
+ "bear",
44624
+ "zebra",
44625
+ "giraffe",
44626
+ "package-delivered",
44627
+ "package-picked-up",
44628
+ "suitcase",
44629
+ "backpack",
44630
+ "handbag",
44631
+ "contact",
44632
+ "motion-sensor",
44633
+ "smoke",
44634
+ "flood",
44635
+ "gas",
44636
+ "carbon-monoxide",
44637
+ "vibration",
44638
+ "tamper",
44639
+ "presence",
44640
+ "enum-sensor",
44641
+ "device-event",
44642
+ "lock",
44643
+ "cover",
44644
+ "switch",
44645
+ "siren",
44646
+ "button",
44647
+ "doorbell"
44648
+ ];
44649
+ var AUDIO_ENTRY_ID = "audio";
44650
+ /** Six rungs, quiet → loud. The opaque end is the entry's hex. */
44651
+ var AUDIO_GRADIENT_ALPHAS = [
44652
+ .3,
44653
+ .42,
44654
+ .55,
44655
+ .7,
44656
+ .85,
44657
+ 1
44658
+ ];
44659
+ var PALETTE_PRESET_IDS = [
44660
+ "camstack",
44661
+ "high-contrast",
44662
+ "okabe-ito"
44663
+ ];
44664
+ /** Frozen palette tables (D939). The spec refuses a table that breaks the rule. */
44665
+ var CAMSTACK_HEX = {
44666
+ motion: "#d946ef",
44667
+ audio: "#059eb8",
44668
+ recording: "#ef4444",
44669
+ live: "#8d7a00",
44670
+ heatmapScrub: "#4b32ff",
44671
+ person: "#11a64c",
44672
+ vehicle: "#3b82f6",
44673
+ animal: "#ea6a09",
44674
+ package: "#924667",
44675
+ sensor: "#624bbc",
44676
+ control: "#944d24",
44677
+ face: "#ed4f8d",
44678
+ plate: "#4b7027",
44679
+ car: "#9684cf",
44680
+ truck: "#0f9b89",
44681
+ bus: "#a734a9",
44682
+ motorcycle: "#c1133a",
44683
+ bicycle: "#0e6a9b",
44684
+ airplane: "#7c9928",
44685
+ boat: "#b17933",
44686
+ train: "#ad6ca3",
44687
+ bird: "#0f7c55",
44688
+ dog: "#c82700",
44689
+ cat: "#7268f2",
44690
+ horse: "#cb795e",
44691
+ sheep: "#b8636b",
44692
+ cow: "#cb2969",
44693
+ elephant: "#1158d2",
44694
+ bear: "#8d5e00",
44695
+ zebra: "#0097d6",
44696
+ giraffe: "#8f61bb",
44697
+ "package-delivered": "#cd3f9b",
44698
+ "package-picked-up": "#388a08",
44699
+ suitcase: "#666800",
44700
+ backpack: "#ec5022",
44701
+ handbag: "#a76ef8",
44702
+ contact: "#ab5a49",
44703
+ "motion-sensor": "#b95d1a",
44704
+ smoke: "#dd3858",
44705
+ flood: "#b31e7d",
44706
+ gas: "#5b70b5",
44707
+ "carbon-monoxide": "#7b4e8e",
44708
+ vibration: "#e65bba",
44709
+ tamper: "#98464b",
44710
+ presence: "#3a9468",
44711
+ "enum-sensor": "#7885f8",
44712
+ "device-event": "#8c43c8",
44713
+ lock: "#649653",
44714
+ cover: "#c67597",
44715
+ switch: "#7a812a",
44716
+ siren: "#ac5d7f",
44717
+ button: "#b276cd",
44718
+ doorbell: "#0087ab"
44719
+ };
44720
+ var CAMSTACK_FALLBACK = [
44721
+ "#b34dc7",
44722
+ "#1d7d34",
44723
+ "#db6b6c",
44724
+ "#a43d29",
44725
+ "#0e6ee6",
44726
+ "#29a10b",
44727
+ "#a98731",
44728
+ "#0181c6"
44729
+ ];
44730
+ var HIGH_CONTRAST_HEX = {
44731
+ motion: "#964360",
44732
+ audio: "#23a132",
44733
+ recording: "#2494ca",
44734
+ live: "#bd7e2b",
44735
+ heatmapScrub: "#ad6eea",
44736
+ person: "#62611e",
44737
+ vehicle: "#f4534c",
44738
+ animal: "#1556cd",
44739
+ package: "#9c4415",
44740
+ sensor: "#066c48",
44741
+ control: "#f2479f",
44742
+ face: "#139d8a",
44743
+ plate: "#909024",
44744
+ car: "#8e35ab",
44745
+ truck: "#bd0b2b",
44746
+ bus: "#7a88ca",
44747
+ motorcycle: "#e26725",
44748
+ bicycle: "#a6679b",
44749
+ airplane: "#7c5720",
44750
+ boat: "#467a1b",
44751
+ train: "#6f65a4",
44752
+ bird: "#cb717f",
44753
+ dog: "#c62490",
44754
+ cat: "#b36850",
44755
+ horse: "#1872ac",
44756
+ sheep: "#927939",
44757
+ cow: "#428a5c",
44758
+ elephant: "#d41160",
44759
+ bear: "#799453",
44760
+ zebra: "#a85455",
44761
+ giraffe: "#746be8",
44762
+ "package-delivered": "#824a80",
44763
+ "package-picked-up": "#614ac1",
44764
+ suitcase: "#2f77f3",
44765
+ backpack: "#fa476d",
44766
+ handbag: "#c14cbe",
44767
+ contact: "#c83921",
44768
+ "motion-sensor": "#a07ebd",
44769
+ smoke: "#a25b13",
44770
+ flood: "#526bab",
44771
+ gas: "#924938",
44772
+ "carbon-monoxide": "#bb7e53",
44773
+ vibration: "#b66182",
44774
+ tamper: "#3c6931",
44775
+ presence: "#6c851d",
44776
+ "enum-sensor": "#ad2d48",
44777
+ "device-event": "#5e9b04",
44778
+ lock: "#00a062",
44779
+ cover: "#ad8624",
44780
+ switch: "#d05259",
44781
+ siren: "#cd67b3",
44782
+ button: "#c9746a",
44783
+ doorbell: "#338eeb"
44784
+ };
44785
+ var HIGH_CONTRAST_FALLBACK = [
44786
+ "#817f3b",
44787
+ "#a0733e",
44788
+ "#8658b2",
44789
+ "#956301",
44790
+ "#bc652d",
44791
+ "#647331",
44792
+ "#a14c9e",
44793
+ "#d14e71"
44794
+ ];
44795
+ var OKABE_ITO_HEX = {
44796
+ motion: "#b88128",
44797
+ audio: "#1096c8",
44798
+ recording: "#009e73",
44799
+ live: "#9c8c22",
44800
+ heatmapScrub: "#0072b2",
44801
+ person: "#d55e00",
44802
+ vehicle: "#c0739f",
44803
+ animal: "#226d18",
44804
+ package: "#91446c",
44805
+ sensor: "#217b56",
44806
+ control: "#648647",
44807
+ face: "#c22998",
44808
+ plate: "#fa4575",
44809
+ car: "#956301",
44810
+ truck: "#2f77f3",
44811
+ bus: "#7a4e86",
44812
+ motorcycle: "#f54597",
44813
+ bicycle: "#bb3e75",
44814
+ airplane: "#e054c0",
44815
+ boat: "#457942",
44816
+ train: "#867afa",
44817
+ bird: "#88914c",
44818
+ dog: "#1556cd",
44819
+ cat: "#71702c",
44820
+ horse: "#9b4fa4",
44821
+ sheep: "#c0559d",
44822
+ cow: "#d14f65",
44823
+ elephant: "#98470f",
44824
+ bear: "#595896",
44825
+ zebra: "#96790e",
44826
+ giraffe: "#cb717b",
44827
+ "package-delivered": "#139d8a",
44828
+ "package-picked-up": "#906ead",
44829
+ suitcase: "#d02939",
44830
+ backpack: "#d41160",
44831
+ handbag: "#f64f54",
44832
+ contact: "#7258d2",
44833
+ "motion-sensor": "#b66182",
44834
+ smoke: "#627abb",
44835
+ flood: "#b86ae4",
44836
+ gas: "#a95261",
44837
+ "carbon-monoxide": "#c65d3c",
44838
+ vibration: "#7a40b7",
44839
+ tamper: "#914b34",
44840
+ presence: "#9481c3",
44841
+ "enum-sensor": "#ac6d47",
44842
+ "device-event": "#7b6fce",
44843
+ lock: "#c67662",
44844
+ cover: "#a6564d",
44845
+ switch: "#ad2c4e",
44846
+ siren: "#348e08",
44847
+ button: "#d27303",
44848
+ doorbell: "#55770f"
44849
+ };
44850
+ var OKABE_ITO_FALLBACK = [
44851
+ "#9a3784",
44852
+ "#a7392c",
44853
+ "#409d50",
44854
+ "#6987e7",
44855
+ "#ee5b3d",
44856
+ "#c0430d",
44857
+ "#af79b3",
44858
+ "#4b6628"
44859
+ ];
44860
+ /**
44861
+ * The display palette (D939). One table of colours, three presets, one
44862
+ * validator. Taxonomy colours and every consumer read this — there is no
44863
+ * second hex table.
44864
+ */
44865
+ var paletteHexSchema = string().regex(/^#[0-9a-f]{6}$/);
44866
+ var paletteSwatchSchema = discriminatedUnion("form", [object({
44867
+ form: literal("solid"),
44868
+ hex: paletteHexSchema
44869
+ }), object({
44870
+ form: literal("gradient"),
44871
+ hex: paletteHexSchema,
44872
+ alphas: array(number().gt(0).lte(1)).length(AUDIO_GRADIENT_ALPHAS.length)
44873
+ })]);
44874
+ var paletteReadySchema = object({
44875
+ status: literal("ready"),
44876
+ presetId: _enum(PALETTE_PRESET_IDS),
44877
+ customized: boolean(),
44878
+ source: _enum(["stored", "unconfigured"]),
44879
+ swatches: record(string(), paletteSwatchSchema),
44880
+ fallbacks: array(paletteHexSchema).length(8)
44881
+ });
44882
+ var paletteResultSchema = discriminatedUnion("status", [paletteReadySchema, object({
44883
+ status: literal("unknown"),
44884
+ reason: string()
44885
+ })]);
44886
+ var setPaletteInputSchema = union([object({ presetId: string() }), object({
44887
+ presetId: string(),
44888
+ overrides: record(string(), paletteSwatchSchema)
44889
+ })]);
44890
+ object({
44891
+ presetId: string(),
44892
+ overrides: record(string(), paletteSwatchSchema)
44893
+ });
44894
+ function solid(hex) {
44895
+ return {
44896
+ form: "solid",
44897
+ hex
44898
+ };
44899
+ }
44900
+ function audioGradient(hex) {
44901
+ return {
44902
+ form: "gradient",
44903
+ hex,
44904
+ alphas: [...AUDIO_GRADIENT_ALPHAS]
44905
+ };
44906
+ }
44907
+ function swatchesFrom(hexes) {
44908
+ const out = {};
44909
+ for (const id of PALETTE_ENTRY_IDS) {
44910
+ const hex = hexes[id];
44911
+ if (hex === void 0) throw new Error(`palette table missing ${id}`);
44912
+ out[id] = id === "audio" ? audioGradient(hex) : solid(hex);
44913
+ }
44914
+ return out;
44915
+ }
44916
+ function preset(id, name, hexes, fallbacks) {
44917
+ return {
44918
+ id,
44919
+ name,
44920
+ swatches: swatchesFrom(hexes),
44921
+ fallbacks
44922
+ };
44923
+ }
44924
+ var DISPLAY_PRESETS = [
44925
+ preset("camstack", "CamStack", CAMSTACK_HEX, CAMSTACK_FALLBACK),
44926
+ preset("high-contrast", "High contrast", HIGH_CONTRAST_HEX, HIGH_CONTRAST_FALLBACK),
44927
+ preset("okabe-ito", "Colour-blind safe", OKABE_ITO_HEX, OKABE_ITO_FALLBACK)
44928
+ ];
44929
+ function presetById(id) {
44930
+ return DISPLAY_PRESETS.find((item) => item.id === id);
44931
+ }
44932
+ function bundledCamstack() {
44933
+ const presetRow = presetById("camstack");
44934
+ if (presetRow === void 0) throw new Error("CamStack preset missing");
44935
+ return readyOf(presetRow, "unconfigured", false);
44936
+ }
44937
+ function readyOf(row, source, customized) {
44938
+ return {
44939
+ status: "ready",
44940
+ presetId: row.id,
44941
+ customized,
44942
+ source,
44943
+ swatches: row.swatches,
44944
+ fallbacks: [...row.fallbacks]
44945
+ };
44946
+ }
44947
+ function hashFallback(kind, fallbacks) {
44948
+ let hash = 0;
44949
+ for (let i = 0; i < kind.length; i++) hash = hash * 31 + (kind.codePointAt(i) ?? 0) >>> 0;
44950
+ const hex = fallbacks[hash % fallbacks.length];
44951
+ if (hex === void 0) throw new Error("display palette has no fallback colour");
44952
+ return hex;
44953
+ }
44954
+ /** Colour a kind paints with. Audio leaves share the audio gradient's hex. */
44955
+ function paintHex(swatches, fallbacks, kind) {
44956
+ const key = kind.trim().toLowerCase();
44957
+ if (key.startsWith("audio-")) {
44958
+ const audio = swatches[AUDIO_ENTRY_ID];
44959
+ return audio !== void 0 ? audio.hex : hashFallback(key, fallbacks);
44960
+ }
44961
+ const direct = swatches[key];
44962
+ if (direct !== void 0) return direct.hex;
44963
+ return hashFallback(key, fallbacks);
44964
+ }
44965
+ /**
42562
44966
  * Unified event-kind taxonomy — THE single source of truth for
42563
44967
  * `kind → { parentKind, category, level, color, iconId, labelKey, label,
42564
44968
  * icon }`.
@@ -42572,109 +44976,88 @@ for (const [k, v] of Object.entries(APPLE_SA_TO_MACRO.mapping)) _macroLookup.set
42572
44976
  * - `addon-post-analysis/shared/frame/box-drawer.ts` (DEFAULT_COLOR)
42573
44977
  * - the COCO / audio class maps (macro ↔ sub relationships)
42574
44978
  *
42575
- * The DATA (serializable — color/iconId/labelKey/parentKind) lives here in
42576
- * `@camstack/types`. The UI-side mapping `iconId → lucide component` and
42577
- * `labelKey → t()` lives in `@camstack/ui-library`. UIs never hardcode a
42578
- * color or an icon: they read this dictionary (server descriptors carry the
42579
- * fields inline; the client resolves color/icon/label from `iconId`/`kind`).
44979
+ * The DATA (serializable — parentKind / iconId / labelKey) lives here in
44980
+ * `@camstack/types`. Colour is NOT a second table: each entry's `color` is
44981
+ * the bundled CamStack display palette (D939). The effective cluster palette
44982
+ * is the `display-palette` capability. The UI-side mapping `iconId → lucide
44983
+ * component` and `labelKey → t()` lives in `@camstack/ui-library`.
42580
44984
  *
42581
44985
  * Two levels only (v1 YAGNI): macro → sub. `person` is a leaf macro.
42582
44986
  */
42583
- var TAXONOMY_COLORS = {
42584
- motion: "#f59e0b",
42585
- audio: "#06b6d4",
42586
- person: "#22c55e",
42587
- vehicle: "#3b82f6",
42588
- animal: "#f97316",
42589
- package: "#a855f7",
42590
- sensor: "#8b5cf6",
42591
- control: "#10b981",
42592
- genericDetection: "#64748b"
42593
- };
42594
- var DETECTION_SUB_COLORS = {
42595
- car: "#f59e0b",
42596
- truck: "#d97706",
42597
- bus: "#b45309",
42598
- motorcycle: "#eab308",
42599
- bicycle: "#ca8a04",
42600
- airplane: "#60a5fa",
42601
- boat: "#2563eb",
42602
- train: "#1d4ed8",
42603
- bird: "#14b8a6",
42604
- dog: "#84cc16",
42605
- cat: "#f97316",
42606
- horse: "#a16207",
42607
- sheep: "#a3a3a3",
42608
- cow: "#78716c",
42609
- elephant: "#6b7280",
42610
- bear: "#7c2d12",
42611
- zebra: "#404040",
42612
- giraffe: "#d4a373"
42613
- };
44987
+ var BUNDLED_PALETTE = bundledCamstack();
44988
+ function kindColor(kind) {
44989
+ return paintHex(BUNDLED_PALETTE.swatches, BUNDLED_PALETTE.fallbacks, kind);
44990
+ }
44991
+ function firstFallback(fallbacks) {
44992
+ const hex = fallbacks[0];
44993
+ if (hex === void 0) throw new Error("display palette has no fallback colour");
44994
+ return hex;
44995
+ }
44996
+ firstFallback(BUNDLED_PALETTE.fallbacks);
42614
44997
  function titleCase(id) {
42615
44998
  return id.split(/[-_ ]/).filter((p) => p.length > 0).map((p) => p.charAt(0).toUpperCase() + p.slice(1)).join(" ");
42616
44999
  }
42617
45000
  var entries = /* @__PURE__ */ new Map();
42618
- function macro(kind, category, color, iconId, label) {
45001
+ function macro(kind, category, iconId, label) {
42619
45002
  entries.set(kind, {
42620
45003
  kind,
42621
45004
  parentKind: null,
42622
45005
  level: "macro",
42623
45006
  category,
42624
- color,
45007
+ color: kindColor(kind),
42625
45008
  iconId,
42626
45009
  labelKey: `eventKind.${kind}`,
42627
45010
  label
42628
45011
  });
42629
45012
  }
42630
- function sub(kind, parentKind, category, color, iconId, label) {
45013
+ function sub(kind, parentKind, category, iconId, label) {
42631
45014
  entries.set(kind, {
42632
45015
  kind,
42633
45016
  parentKind,
42634
45017
  level: "sub",
42635
45018
  category,
42636
- color,
45019
+ color: kindColor(kind),
42637
45020
  iconId,
42638
45021
  labelKey: `eventKind.${kind}`,
42639
45022
  label
42640
45023
  });
42641
45024
  }
42642
- macro("motion", "motion", TAXONOMY_COLORS.motion, "motion", "Motion");
42643
- macro("audio", "audio", TAXONOMY_COLORS.audio, "audio", "Audio");
42644
- macro("person", "detection", TAXONOMY_COLORS.person, "person", "Person");
42645
- macro("vehicle", "detection", TAXONOMY_COLORS.vehicle, "vehicle", "Vehicle");
42646
- macro("animal", "detection", TAXONOMY_COLORS.animal, "animal", "Animal");
42647
- macro("package", "package", TAXONOMY_COLORS.package, "package", "Package");
42648
- macro("sensor", "sensor", TAXONOMY_COLORS.sensor, "sensor", "Sensor");
42649
- macro("control", "control", TAXONOMY_COLORS.control, "control", "Control");
45025
+ macro("motion", "motion", "motion", "Motion");
45026
+ macro("audio", "audio", "audio", "Audio");
45027
+ macro("person", "detection", "person", "Person");
45028
+ macro("vehicle", "detection", "vehicle", "Vehicle");
45029
+ macro("animal", "detection", "animal", "Animal");
45030
+ macro("package", "package", "package", "Package");
45031
+ macro("sensor", "sensor", "sensor", "Sensor");
45032
+ macro("control", "control", "control", "Control");
42650
45033
  for (const [cocoClass, macroClass] of Object.entries(COCO_TO_MACRO.mapping)) {
42651
45034
  if (macroClass !== "vehicle" && macroClass !== "animal") continue;
42652
45035
  if (entries.has(cocoClass)) continue;
42653
- sub(cocoClass, macroClass, "detection", DETECTION_SUB_COLORS[cocoClass] ?? TAXONOMY_COLORS.genericDetection, cocoClass, titleCase(cocoClass));
42654
- }
42655
- sub("package-delivered", "package", "package", TAXONOMY_COLORS.package, "package", "Package delivered");
42656
- sub("package-picked-up", "package", "package", TAXONOMY_COLORS.package, "package", "Package picked up");
42657
- sub("contact", "sensor", "sensor", "#f59e0b", "door", "Contact");
42658
- sub("motion-sensor", "sensor", "sensor", TAXONOMY_COLORS.sensor, "pir", "Motion sensor");
42659
- sub("smoke", "sensor", "sensor", "#ef4444", "smoke", "Smoke");
42660
- sub("flood", "sensor", "sensor", "#3b82f6", "water", "Water leak");
42661
- sub("gas", "sensor", "sensor", "#ef4444", "gas", "Gas");
42662
- sub("carbon-monoxide", "sensor", "sensor", "#dc2626", "smoke", "Carbon monoxide");
42663
- sub("vibration", "sensor", "sensor", "#eab308", "vibration", "Vibration");
42664
- sub("tamper", "sensor", "sensor", "#f97316", "tamper", "Tamper");
42665
- sub("presence", "sensor", "sensor", "#22c55e", "presence", "Presence");
42666
- sub("enum-sensor", "sensor", "sensor", TAXONOMY_COLORS.sensor, "generic", "Sensor state");
42667
- sub("device-event", "sensor", "sensor", "#10b981", "button", "Device event");
42668
- sub("lock", "control", "control", "#0ea5e9", "lock", "Lock");
42669
- sub("cover", "control", "control", "#0ea5e9", "door", "Cover");
42670
- sub("switch", "control", "control", TAXONOMY_COLORS.control, "switch", "Switch");
42671
- sub("siren", "control", "control", "#dc2626", "siren", "Siren");
42672
- sub("button", "control", "control", "#10b981", "button", "Button");
42673
- sub("doorbell", "control", "control", "#a855f7", "doorbell", "Doorbell");
45036
+ sub(cocoClass, macroClass, "detection", cocoClass, titleCase(cocoClass));
45037
+ }
45038
+ sub("package-delivered", "package", "package", "package", "Package delivered");
45039
+ sub("package-picked-up", "package", "package", "package", "Package picked up");
45040
+ sub("contact", "sensor", "sensor", "door", "Contact");
45041
+ sub("motion-sensor", "sensor", "sensor", "pir", "Motion sensor");
45042
+ sub("smoke", "sensor", "sensor", "smoke", "Smoke");
45043
+ sub("flood", "sensor", "sensor", "water", "Water leak");
45044
+ sub("gas", "sensor", "sensor", "gas", "Gas");
45045
+ sub("carbon-monoxide", "sensor", "sensor", "smoke", "Carbon monoxide");
45046
+ sub("vibration", "sensor", "sensor", "vibration", "Vibration");
45047
+ sub("tamper", "sensor", "sensor", "tamper", "Tamper");
45048
+ sub("presence", "sensor", "sensor", "presence", "Presence");
45049
+ sub("enum-sensor", "sensor", "sensor", "generic", "Sensor state");
45050
+ sub("device-event", "sensor", "sensor", "button", "Device event");
45051
+ sub("lock", "control", "control", "lock", "Lock");
45052
+ sub("cover", "control", "control", "door", "Cover");
45053
+ sub("switch", "control", "control", "switch", "Switch");
45054
+ sub("siren", "control", "control", "siren", "Siren");
45055
+ sub("button", "control", "control", "button", "Button");
45056
+ sub("doorbell", "control", "control", "doorbell", "Doorbell");
42674
45057
  for (const l of AUDIO_MACRO_LABELS) {
42675
45058
  const kind = `audio-${l.id}`;
42676
45059
  if (entries.has(kind)) continue;
42677
- sub(kind, "audio", "audio", TAXONOMY_COLORS.audio, kind, l.name);
45060
+ sub(kind, "audio", "audio", kind, l.name);
42678
45061
  }
42679
45062
  /** The complete taxonomy dictionary, keyed by kind. */
42680
45063
  var EVENT_TAXONOMY = Object.freeze(Object.fromEntries(entries));
@@ -42985,9 +45368,6 @@ var NcSystemEventKindSchema = _enum([
42985
45368
  "device-battery-normal",
42986
45369
  "device-consumable-low",
42987
45370
  "device-consumable-normal",
42988
- "device-tank-low",
42989
- "device-tank-full",
42990
- "device-tank-normal",
42991
45371
  "stream-online",
42992
45372
  "stream-offline",
42993
45373
  "node-online",
@@ -43034,13 +45414,14 @@ var NcSystemEventKindSchema = _enum([
43034
45414
  "camera-enabled"
43035
45415
  ]);
43036
45416
  /** The legacy tail of {@link NcSystemEventKindSchema} — see its docblock. */
43037
- var NC_LEGACY_SYSTEM_EVENT_KINDS = new Set([
45417
+ var NC_LEGACY_SYSTEM_EVENT_KINDS = [
43038
45418
  "camera-online",
43039
45419
  "camera-offline",
43040
45420
  "camera-disabled",
43041
45421
  "camera-enabled"
43042
- ]);
43043
- NcSystemEventKindSchema.options.filter((kind) => !NC_LEGACY_SYSTEM_EVENT_KINDS.has(kind));
45422
+ ];
45423
+ var NC_LEGACY_SYSTEM_EVENT_KIND_SET = new Set(NC_LEGACY_SYSTEM_EVENT_KINDS);
45424
+ NcSystemEventKindSchema.options.filter((kind) => !NC_LEGACY_SYSTEM_EVENT_KIND_SET.has(kind));
43044
45425
  /**
43045
45426
  * The panel's transitions, as ONE list.
43046
45427
  *
@@ -43563,7 +45944,7 @@ var NcConditionsSchema = object({
43563
45944
  * with the list under it is worse than no switch (D62).
43564
45945
  *
43565
45946
  * MEMBERS ARE FACE-GALLERY `Identity.id`s (uuid), not display names. A name is
43566
- * renameable, and a rule authored on "Gianluca" went silently dark the moment
45947
+ * renameable, and a rule authored on "Alice" went silently dark the moment
43567
45948
  * the operator fixed the spelling. The id reaches the record on
43568
45949
  * `LabelAttribution.identityId`; the name is what the editor shows and what
43569
45950
  * `{{label}}` renders.
@@ -44114,7 +46495,7 @@ var NcRulePatchSchema = NcRuleInputSchema.partial().extend({
44114
46495
  * A rule scoped to one camera and one zone silently became a rule that
44115
46496
  * matches EVERY event on EVERY camera, and lost its `media` policy
44116
46497
  * (zoneCrop / gif / clip / frame) and its `priority` at the same time. Seen
44117
- * live on 2026-08-12: a rule scoped to device 617 fired on 590 and 615
46498
+ * live on 2026-08-12: a rule scoped to device 102 fired on 104 and 101
44118
46499
  * within a minute of a two-field patch.
44119
46500
  *
44120
46501
  * So every defaulted field is re-declared here WITHOUT its default. The
@@ -44159,18 +46540,11 @@ var NcRuleSchema = NcRuleInputSchema.extend({
44159
46540
  */
44160
46541
  disabledTargetIds: array(string()).default([])
44161
46542
  });
44162
- /**
44163
- * The state-summary SECTIONS (D647 / D698 / D708): the D637 kind groups that
44164
- * report a still-true state. `addons` is the crash-looped addons only and
44165
- * `addon-updates` the addons that are behind (D708 split them). `backups-exports` and `alarm` are not sections — a completed
44166
- * job is not an open state, and the alarm stays instant.
44167
- */
44168
46543
  var NcStateSummarySectionIdSchema = _enum([
44169
46544
  "device-state",
44170
46545
  "streams",
44171
46546
  "battery",
44172
46547
  "consumables",
44173
- "tanks",
44174
46548
  "detection-blind",
44175
46549
  "nodes",
44176
46550
  "addons",
@@ -45471,6 +47845,18 @@ Object.freeze({
45471
47845
  reason: "camera sensor mappings not loaded"
45472
47846
  });
45473
47847
  /**
47848
+ * What the vision model must answer before a package event is emitted
47849
+ * when a packages rule has "Confirm with the LLM" on.
47850
+ *
47851
+ * `package` is the verdict. `confidence` is 0..1. `reason` is the model's
47852
+ * one-line explanation, stored on the event so a drop is not silent.
47853
+ */
47854
+ var PackageLlmVerdictSchema = object({
47855
+ package: boolean(),
47856
+ confidence: number().min(0).max(1),
47857
+ reason: string().min(1)
47858
+ });
47859
+ /**
45474
47860
  * A model choice has a SCOPE, and a scope change has a workflow.
45475
47861
  *
45476
47862
  * ## The two scopes
@@ -45922,7 +48308,7 @@ var LabelAttributionSchema = object({
45922
48308
  * `Identity.id` or a plate-gallery `Vehicle.id` (both `randomUUID`).
45923
48309
  *
45924
48310
  * The text alone is a DISPLAY NAME, and a display name is renameable: a
45925
- * notification rule authored on "Gianluca" stopped matching the moment the
48311
+ * notification rule authored on "Alice" stopped matching the moment the
45926
48312
  * operator fixed the spelling in the gallery, and nothing said so. The id is
45927
48313
  * the thing that does not move, so it is what a rule matches on
45928
48314
  * (`NcConditions.identities`) and the text is what a human is shown.
@@ -46407,6 +48793,21 @@ var ObjectEventSchema = object({
46407
48793
  * pick-up written before D684 — UNKNOWN, never 0 and never `timestamp`.
46408
48794
  */
46409
48795
  observedAt: number().optional(),
48796
+ /**
48797
+ * The delivery was emitted without a vision-model yes (D931).
48798
+ *
48799
+ * Set only when the packages rule asked for an LLM confirm and the model
48800
+ * was unreachable, timed out, or answered something that did not parse.
48801
+ * A notification reads it so it can say "possible" instead of a definite
48802
+ * delivery. Absent on every other row, and on a confirm that said yes.
48803
+ */
48804
+ packagePossible: boolean().optional(),
48805
+ /**
48806
+ * The vision model's verdict, when a packages rule asked for one and the
48807
+ * model answered the schema (D931). A "no" never becomes a row — the
48808
+ * detector drops it and logs the reason. Present on a yes.
48809
+ */
48810
+ packageLlmVerdict: PackageLlmVerdictSchema.optional(),
46410
48811
  /** The parent track's key-event importance [0,1], propagated to every object
46411
48812
  * event of the track (so an event row can be sorted by importance without a
46412
48813
  * track join). Absent on legacy rows / before the track was scored. */
@@ -48204,7 +50605,6 @@ var PipelineAddonSchemaSchema = object({
48204
50605
  defaultModelId: string(),
48205
50606
  defaultModelIdByFormat: record(string(), string()).optional(),
48206
50607
  enabledByDefault: boolean().optional(),
48207
- backfillIntoExistingOverrides: boolean().optional(),
48208
50608
  defaultConfidence: number(),
48209
50609
  group: string().optional(),
48210
50610
  configSchema: array(ConfigFieldBridge).readonly().optional()
@@ -48331,13 +50731,12 @@ var AudioTestResultSchema = object({
48331
50731
  error: string().optional(),
48332
50732
  frame: custom().optional()
48333
50733
  });
48334
- var PipelineConfigBridge = custom();
48335
50734
  var ConfigUISchemaBridge = custom();
48336
50735
  var ConfigUISchemaNullableBridge = custom();
48337
50736
  var InferenceCapabilitiesBridge = custom();
48338
50737
  var ModelAvailabilityListBridge = custom();
48339
50738
  var PipelineRunResultBridge = custom();
48340
- method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngineChoiceSchema), method(PipelineEngineChoiceSchema, array(PipelineDefaultStepSchema)), method(object({ nodeId: string() }), EngineProvisioningSchema), method(_void(), record(string(), object({
50739
+ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngineChoiceSchema), method(object({ nodeId: string() }), EngineProvisioningSchema), method(_void(), record(string(), object({
48341
50740
  modelId: string(),
48342
50741
  settings: record(string(), unknown()).readonly()
48343
50742
  }))), method(object({ steps: record(string(), object({
@@ -48346,28 +50745,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
48346
50745
  })) }), object({ success: literal(true) }), {
48347
50746
  kind: "mutation",
48348
50747
  auth: "admin"
48349
- }), method(object({ nodeId: string() }), object({
48350
- success: literal(true),
48351
- clearedDevices: number()
48352
- }), {
48353
- kind: "mutation",
48354
- auth: "admin"
48355
- }), method(object({
48356
- nodeId: string(),
48357
- deviceIds: array(number()).readonly().optional(),
48358
- dryRun: boolean()
48359
- }), object({
48360
- entries: array(object({
48361
- deviceId: number(),
48362
- keys: array(string()).readonly()
48363
- })).readonly(),
48364
- refused: array(object({
48365
- deviceId: number(),
48366
- reason: string()
48367
- })).readonly()
48368
- }), {
48369
- kind: "mutation",
48370
- auth: "admin"
48371
50748
  }), method(object({ nodeId: string() }), object({ unhealthy: array(object({
48372
50749
  /** `<backend>:<device>`, e.g. `openvino:gpu`. */
48373
50750
  deviceKey: string(),
@@ -48390,7 +50767,7 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
48390
50767
  }), object({ rearmed: boolean() }), {
48391
50768
  kind: "mutation",
48392
50769
  auth: "admin"
48393
- }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(object({
50770
+ }), method(_void(), PipelineSchemaSchema), method(_void(), ConfigUISchemaBridge), method(object({
48394
50771
  steps: array(PipelineStepInputSchema),
48395
50772
  deviceKey: string().optional()
48396
50773
  }), PipelineValidationResultSchema), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string() }), ModelAvailabilityListBridge), method(object({
@@ -48470,7 +50847,7 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
48470
50847
  /**
48471
50848
  * Root-supplied detections for the tree's ROOT step (D730). Set by
48472
50849
  * `runDetailSubtree` when the camera's root model supplies a crop-kind
48473
- * step (a Frigate+ `license_plate` for `plate-detection`): the step is
50850
+ * step (a plus catalog `license_plate` for `plate-detection`): the step is
48474
50851
  * NOT inferred, these boxes are its output, and its children (the plate
48475
50852
  * reader) run on them through their own crop policy. Boxes are in the
48476
50853
  * PIXELS of the image this call carries. Absent ⇒ the root step runs.
@@ -48638,11 +51015,18 @@ var KeptReasonSchema = _enum(["custom-pin"]);
48638
51015
  * Where a choice's latency came from (D791): this node's own benchmark
48639
51016
  * result, or the hardware-class table. Measured on the node beats the table.
48640
51017
  */
48641
- var LatencySourceSchema = discriminatedUnion("kind", [object({ kind: literal("table") }), object({
48642
- kind: literal("node-benchmark"),
48643
- resultId: string(),
48644
- measuredAtMs: number()
48645
- })]);
51018
+ var LatencySourceSchema = discriminatedUnion("kind", [
51019
+ object({ kind: literal("table") }),
51020
+ object({
51021
+ kind: literal("node-benchmark"),
51022
+ resultId: string(),
51023
+ measuredAtMs: number()
51024
+ }),
51025
+ object({
51026
+ kind: literal("estimated"),
51027
+ estimatedFrom: HardwareClassIdSchema
51028
+ })
51029
+ ]);
48646
51030
  var DeviceModelChoiceSchema = object({
48647
51031
  modelId: string(),
48648
51032
  p50Ms: number(),
@@ -48650,6 +51034,11 @@ var DeviceModelChoiceSchema = object({
48650
51034
  measured: boolean(),
48651
51035
  /** Absent on a plan from before D791 — read as the table. */
48652
51036
  source: LatencySourceSchema.optional(),
51037
+ /**
51038
+ * The measured class this latency was scaled from (D930). Absent when the
51039
+ * cell is the table or a node benchmark.
51040
+ */
51041
+ estimatedFrom: HardwareClassIdSchema.optional(),
48653
51042
  /** Parallel sessions at the camera rate with the headroom kept free: ⌊fps × (1 − headroom) / camera fps⌋. */
48654
51043
  capacitySessions: number(),
48655
51044
  personRecall: number()
@@ -48689,40 +51078,20 @@ var NodeDeviceChangeSchema = object({
48689
51078
  keys: array(string()).readonly()
48690
51079
  })).readonly()
48691
51080
  });
48692
- var CameraOverrideClearSchema = object({
48693
- deviceId: number(),
48694
- source: _enum(["step-override", "wholesale"]),
51081
+ /**
51082
+ * Every model and model-bound threshold lives on the accelerator that runs it
51083
+ * (D927), so the plan writes node / device entries only — there is no camera
51084
+ * layer for it to clear.
51085
+ */
51086
+ var AutoTuneWarningSchema = discriminatedUnion("kind", [object({
51087
+ kind: literal("custom-pin-kept"),
48695
51088
  nodeId: string(),
48696
- deviceKey: string().nullable(),
48697
- stepId: string(),
48698
- modelIdBefore: string().nullable(),
48699
- keys: array(string()).readonly()
48700
- });
48701
- var DetectorStoreClearSchema = object({
48702
- deviceId: number(),
48703
- keys: array(string()).readonly()
48704
- });
48705
- var AutoTuneWarningSchema = discriminatedUnion("kind", [
48706
- object({
48707
- kind: literal("detector-store-cluster-wide"),
48708
- skippedNodes: array(string()).readonly()
48709
- }),
48710
- object({
48711
- kind: literal("detector-store-unreadable"),
48712
- error: string()
48713
- }),
48714
- object({
48715
- kind: literal("custom-pin-kept"),
48716
- nodeId: string(),
48717
- deviceKey: string().nullable(),
48718
- deviceId: number().nullable(),
48719
- modelId: string()
48720
- }),
48721
- object({
48722
- kind: literal("custom-registry-unreadable"),
48723
- error: string()
48724
- })
48725
- ]);
51089
+ deviceKey: string(),
51090
+ modelId: string()
51091
+ }), object({
51092
+ kind: literal("custom-registry-unreadable"),
51093
+ error: string()
51094
+ })]);
48726
51095
  var AutoTuneOptionsSchema = object({
48727
51096
  /** Share of each accelerator's throughput kept free (0.3–0.5). */
48728
51097
  headroom: number().min(.3).max(.5).default(.4),
@@ -48744,8 +51113,6 @@ var AutoTunePlanSchema = object({
48744
51113
  generatedAt: number(),
48745
51114
  nodes: array(NodeRecommendationSchema).readonly(),
48746
51115
  nodeChanges: array(NodeDeviceChangeSchema).readonly(),
48747
- cameraClears: array(CameraOverrideClearSchema).readonly(),
48748
- detectorStoreClears: array(DetectorStoreClearSchema).readonly(),
48749
51116
  warnings: array(AutoTuneWarningSchema).readonly()
48750
51117
  });
48751
51118
  var AutoTuneApplyInputSchema = object({
@@ -48756,8 +51123,6 @@ var AutoTuneApplyInputSchema = object({
48756
51123
  var AutoTunePhaseResultSchema = object({
48757
51124
  phase: _enum([
48758
51125
  "download",
48759
- "camera-overrides",
48760
- "detector-thresholds",
48761
51126
  "node-models",
48762
51127
  "redispatch"
48763
51128
  ]),
@@ -50159,7 +52524,7 @@ var RunnerCameraConfigSchema = object({
50159
52524
  * detection session that asks for history. What shipped was a last-moment
50160
52525
  * discard — `FrameSlot`'s throttle compares wall clocks, and ~4 s of media
50161
52526
  * arriving inside a few hundred ms of wall clock looks to it like one frame's
50162
- * worth. Device 617, 2026-09-08: a re-run of the SAME model over the stored
52527
+ * worth. Device 102, 2026-09-08: a re-run of the SAME model over the stored
50163
52528
  * recording scored the subject `vehicle 0.5669` — above the 0.50 floor —
50164
52529
  * 1.68 s BEFORE the live track was born, on a frame that was in the pre-roll,
50165
52530
  * was decoded, and was freed.
@@ -50512,6 +52877,12 @@ var AgentPipelineSettingsSchema = object({
50512
52877
  /** Hub-persisted UI colour (`--color-node-*` theme tokens). */
50513
52878
  color: NodeColorIdSchema.optional(),
50514
52879
  /**
52880
+ * NODE-wide step settings (D927): `stepId → { key → value }`, applied on
52881
+ * every accelerator of the node under the device's own settings. Never a
52882
+ * model or a model-bound threshold. Written by `setNodeStepSettings`.
52883
+ */
52884
+ stepSettings: record(string(), record(string(), unknown()).readonly()).optional(),
52885
+ /**
50515
52886
  * Multi-device inference opt-in (Phase 4). Per-node map deviceKey → {enabled,
50516
52887
  * weight, steps}. Absent / all-disabled ⇒ the node's single default
50517
52888
  * accelerator (safe default); two+ enabled ⇒ the dispatcher balances
@@ -50527,17 +52898,6 @@ var AgentPipelineSettingsSchema = object({
50527
52898
  steps: record(string(), DeviceStepConfigSchema).optional()
50528
52899
  })).optional()
50529
52900
  });
50530
- var CameraPipelineForAgentSchema = object({
50531
- steps: array(PipelineStepInputSchema).readonly(),
50532
- audio: object({
50533
- modelId: string(),
50534
- enabled: boolean()
50535
- }).nullable()
50536
- });
50537
- var CameraStepOverridePatchSchema = object({
50538
- modelId: string().optional(),
50539
- settings: record(string(), unknown()).readonly().optional()
50540
- });
50541
52901
  var CameraStepSettingsSchema = record(string(), record(string(), unknown()).readonly());
50542
52902
  /** The three root-detector choices a camera has (D507: at most one root). */
50543
52903
  var CameraDetectionSourceSchema = _enum([
@@ -50547,9 +52907,7 @@ var CameraDetectionSourceSchema = _enum([
50547
52907
  ]);
50548
52908
  var CameraPipelineSettingsSchema = object({
50549
52909
  stepToggles: record(string(), boolean()).optional(),
50550
- stepSettings: CameraStepSettingsSchema.optional(),
50551
- stepOverridesByDevice: record(string(), record(string(), record(string(), CameraStepOverridePatchSchema))).optional(),
50552
- pipelineByAgent: record(string(), CameraPipelineForAgentSchema).optional()
52910
+ stepSettings: CameraStepSettingsSchema.optional()
50553
52911
  });
50554
52912
  /**
50555
52913
  * Pipeline placement record persisted by `addon-pipeline-orchestrator` via
@@ -51095,6 +53453,13 @@ method(object({
51095
53453
  }), object({ success: literal(true) }), {
51096
53454
  kind: "mutation",
51097
53455
  auth: "admin"
53456
+ }), method(object({
53457
+ agentNodeId: string(),
53458
+ addonId: string(),
53459
+ settings: record(string(), unknown()).nullable()
53460
+ }), object({ success: literal(true) }), {
53461
+ kind: "mutation",
53462
+ auth: "admin"
51098
53463
  }), method(object({ nodeId: string() }), NodeInferenceDevicesSchema), method(object({
51099
53464
  agentNodeId: string(),
51100
53465
  deviceKey: string()
@@ -51104,9 +53469,7 @@ method(object({
51104
53469
  }), method(object({ agentNodeId: string() }), object({
51105
53470
  success: literal(true),
51106
53471
  /** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
51107
- effectiveModelId: string().nullable(),
51108
- /** Number of cameras whose node-scoped overrides were cleared. */
51109
- clearedCameraOverrides: number()
53472
+ effectiveModelId: string().nullable()
51110
53473
  }), {
51111
53474
  kind: "mutation",
51112
53475
  auth: "admin"
@@ -51161,15 +53524,6 @@ method(object({
51161
53524
  }), object({ success: literal(true) }), {
51162
53525
  kind: "mutation",
51163
53526
  auth: "admin"
51164
- }), method(object({ deviceId: number() }), record(string(), record(string(), record(string(), CameraStepOverridePatchSchema))).nullable()), method(object({
51165
- deviceId: number(),
51166
- agentNodeId: string(),
51167
- deviceKey: string(),
51168
- addonId: string(),
51169
- patch: CameraStepOverridePatchSchema.nullable()
51170
- }), object({ success: literal(true) }), {
51171
- kind: "mutation",
51172
- auth: "admin"
51173
53527
  }), method(object({
51174
53528
  deviceId: number(),
51175
53529
  addonId: string(),
@@ -51177,13 +53531,6 @@ method(object({
51177
53531
  }), object({ success: literal(true) }), {
51178
53532
  kind: "mutation",
51179
53533
  auth: "admin"
51180
- }), method(object({
51181
- deviceId: number(),
51182
- agentNodeId: string(),
51183
- pipeline: CameraPipelineForAgentSchema.nullable()
51184
- }), object({ success: literal(true) }), {
51185
- kind: "mutation",
51186
- auth: "admin"
51187
53534
  }), method(object({
51188
53535
  deviceId: number(),
51189
53536
  agentNodeId: string().optional()
@@ -52311,7 +54658,7 @@ method(_void(), ProviderInfoSchema, { auth: "admin" }), method(object({ config:
52311
54658
  * The signals a device can emit to WAKE its own stream.
52312
54659
  *
52313
54660
  * A camera whose stream is built on demand sleeps until something asks for it,
52314
- * and "something" cannot be a consumer that is merely attached — a Frigate-style
54661
+ * and "something" cannot be a consumer that is merely attached — a external-catalog
52315
54662
  * puller holds a session open for ever, and treating that as demand would keep
52316
54663
  * a battery camera awake for ever, which is the whole thing the battery is for
52317
54664
  * (D173). So the wake has to come from the CAMERA: an event it noticed by
@@ -53079,7 +55426,7 @@ var ClipSchema = object({
53079
55426
  * {@link MAX_CLIP_EVENT_IDS}. Empty on footage-only clips.
53080
55427
  *
53081
55428
  * Bounded because it is not a payload the surface pages through: one visit on
53082
- * device 615 carried 2 345 ids, and `eventIds` was 99% of a 153 KB
55429
+ * device 101 carried 2 345 ids, and `eventIds` was 99% of a 153 KB
53083
55430
  * camera-day. Read {@link eventCount} for the true total.
53084
55431
  */
53085
55432
  eventIds: array(string()).optional(),
@@ -53224,7 +55571,7 @@ var ClipPlaybackSchema = object({
53224
55571
  * camera has no recordings", which is the defect this whole line of work is
53225
55572
  * about: a battery camera nobody woke (`sleeping`), a camera that could not be
53226
55573
  * reached at all (`unreachable`, also what a provider that THREW reports), a
53227
- * camera whose SD card is not mounted (`no-storage`, measured on 640 —
55574
+ * camera whose SD card is not mounted (`no-storage`, measured on 106 —
53228
55575
  * `HddInfo mount 0`, honestly nothing to list rather than "no clips"), and a
53229
55576
  * camera whose OWN index disagrees with its OWN calendar (`index-empty`,
53230
55577
  * measured on 618: the calendar marks 3–20 September, days 6–20 list zero
@@ -53685,7 +56032,7 @@ var videoclipsCapability = {
53685
56032
  *
53686
56033
  * It was optional, documented as "absent means the device's BOUND
53687
56034
  * provider, which is CamStack on every camera". No code implemented
53688
- * that. Measured on the live hub 2026-09-20 — device 592, bound to
56035
+ * that. Measured on the live hub 2026-09-20 — device 107, bound to
53689
56036
  * `recorder` AND `provider-reolink` — a bare call with `limit: 3`
53690
56037
  * answered SIX rows, three from each source, merged newest-first:
53691
56038
  * `device-collection-dispatch.ts` simply left the fan-out un-narrowed,
@@ -55002,7 +57349,10 @@ var airQualitySensorCapability = {
55002
57349
  */
55003
57350
  var AmbientLightSensorStatusSchema = object({
55004
57351
  /** Current illuminance in lux (lx). */
55005
- lux: number().min(0),
57352
+ lux: number().min(0).meta({
57353
+ unit: "lx",
57354
+ label: "Illuminance"
57355
+ }),
55006
57356
  /** Ms epoch when the slice was last updated. */
55007
57357
  lastFetchedAt: number(),
55008
57358
  /** Live display unit from the upstream source (e.g. HA
@@ -55045,7 +57395,12 @@ var ambientLightSensorCapability = {
55045
57395
  } } },
55046
57396
  /** Clock fields: written, but excluded from the compare that decides
55047
57397
  * whether persisting is worth a SQLite commit. */
55048
- volatileStateFields: ["lastFetchedAt"]
57398
+ volatileStateFields: ["lastFetchedAt"],
57399
+ customize: {
57400
+ version: 1,
57401
+ advanced: "derive",
57402
+ targets: []
57403
+ }
55049
57404
  };
55050
57405
  /**
55051
57406
  * Per-class audio metrics aggregated over a sliding window.
@@ -55272,7 +57627,10 @@ var BatteryStatusSchema = object({
55272
57627
  * Consumers must SKIP a null rather than coerce it — `battery-band` already
55273
57628
  * declines to band a non-finite reading, which is the correct shape.
55274
57629
  */
55275
- percentage: number().min(0).max(100).nullable(),
57630
+ percentage: number().min(0).max(100).nullable().meta({
57631
+ unit: "%",
57632
+ label: "Charge"
57633
+ }),
55276
57634
  /**
55277
57635
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
55278
57636
  * Reolink-specific for the Solar Panel 2 accessory (will become
@@ -55291,13 +57649,13 @@ var BatteryStatusSchema = object({
55291
57649
  "solar",
55292
57650
  "none",
55293
57651
  "unknown"
55294
- ]),
57652
+ ]).meta({ label: "Charging source" }),
55295
57653
  /**
55296
57654
  * True when the camera firmware has gone into low-power mode. Battery
55297
57655
  * providers MUST avoid polling during sleep — reading the battery
55298
57656
  * wakes the camera up and drains charge.
55299
57657
  */
55300
- sleeping: boolean(),
57658
+ sleeping: boolean().meta({ label: "Sleeping" }),
55301
57659
  /** Ms epoch of the last observation. Lets consumers reason about freshness. */
55302
57660
  lastUpdated: number(),
55303
57661
  /**
@@ -55337,22 +57695,71 @@ var BatteryStatusSchema = object({
55337
57695
  * sub-threshold = low). UI MUST render "Normal"/"Low" instead of a
55338
57696
  * misleading exact percentage. Absent/false → genuine 0–100 % reading.
55339
57697
  */
55340
- binary: boolean().optional()
57698
+ binary: boolean().optional().meta({ label: "Binary indicator" })
55341
57699
  });
57700
+ var BATTERY_DEVICE_TYPES = [
57701
+ DeviceType.Camera,
57702
+ DeviceType.Sensor,
57703
+ DeviceType.Button,
57704
+ DeviceType.Switch,
57705
+ DeviceType.PetFeeder,
57706
+ DeviceType.Container,
57707
+ DeviceType.Thermostat
57708
+ ];
57709
+ /** Generic Customize target for the percentage reading (D936). */
57710
+ var batteryCustomize = {
57711
+ version: 1,
57712
+ advanced: "derive",
57713
+ targets: [{
57714
+ id: "percentage",
57715
+ cardinality: "scalar",
57716
+ vocabulary: {
57717
+ cap: "battery",
57718
+ stateField: "percentage"
57719
+ },
57720
+ deviceTypes: BATTERY_DEVICE_TYPES,
57721
+ apply: "add-or-replace",
57722
+ path: "percentage",
57723
+ sources: [{
57724
+ kind: "field",
57725
+ valueKinds: ["number", "string"],
57726
+ transforms: [{ kind: "identity" }, {
57727
+ kind: "linear",
57728
+ defaultScale: 1,
57729
+ defaultOffset: 0,
57730
+ clampMin: 0,
57731
+ clampMax: 100
57732
+ }]
57733
+ }],
57734
+ companions: [
57735
+ {
57736
+ kind: "constant",
57737
+ path: "charging",
57738
+ value: "unknown",
57739
+ when: "add"
57740
+ },
57741
+ {
57742
+ kind: "constant",
57743
+ path: "sleeping",
57744
+ value: false,
57745
+ when: "add"
57746
+ },
57747
+ {
57748
+ kind: "clock",
57749
+ path: "lastUpdated",
57750
+ when: "add"
57751
+ }
57752
+ ],
57753
+ sourceReport: { status: "assignment-status" },
57754
+ advancedExpression: true
57755
+ }]
57756
+ };
55342
57757
  var batteryCapability = {
55343
57758
  name: "battery",
55344
57759
  scope: "device",
55345
57760
  deviceNative: true,
55346
57761
  mode: "singleton",
55347
- deviceTypes: [
55348
- DeviceType.Camera,
55349
- DeviceType.Sensor,
55350
- DeviceType.Button,
55351
- DeviceType.Switch,
55352
- DeviceType.PetFeeder,
55353
- DeviceType.Container,
55354
- DeviceType.Thermostat
55355
- ],
57762
+ deviceTypes: BATTERY_DEVICE_TYPES,
55356
57763
  methods: {
55357
57764
  /**
55358
57765
  * Explicitly wake the camera from low-power sleep ahead of a
@@ -55436,6 +57843,7 @@ onStatusChanged: { data: object({
55436
57843
  kind: "gauge",
55437
57844
  unit: "%"
55438
57845
  } } },
57846
+ customize: batteryCustomize,
55439
57847
  /** Clock fields: written, but excluded from the compare that decides
55440
57848
  * whether persisting is worth a SQLite commit. */
55441
57849
  volatileStateFields: ["lastUpdated"]
@@ -55452,7 +57860,7 @@ onStatusChanged: { data: object({
55452
57860
  * with the right HomeKit / Alexa display category.
55453
57861
  */
55454
57862
  var BinaryStatusSchema = object({
55455
- on: boolean(),
57863
+ on: boolean().meta({ label: "On" }),
55456
57864
  /** Ms epoch of the last transition. 0 if never observed. */
55457
57865
  lastChangedAt: number()
55458
57866
  });
@@ -55481,7 +57889,12 @@ var binaryCapability = {
55481
57889
  history: { fields: { on: { kind: "boolean" } } },
55482
57890
  /** Clock fields: written, but excluded from the compare that decides
55483
57891
  * whether persisting is worth a SQLite commit. */
55484
- volatileStateFields: ["lastChangedAt"]
57892
+ volatileStateFields: ["lastChangedAt"],
57893
+ customize: {
57894
+ version: 1,
57895
+ advanced: "derive",
57896
+ targets: []
57897
+ }
55485
57898
  };
55486
57899
  /**
55487
57900
  * Dimmable-light brightness control. Co-exists with `switch` on the
@@ -55787,7 +58200,7 @@ var GridLayoutCellSchema = object({
55787
58200
  *
55788
58201
  * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
55789
58202
  * profile is on offer only when EVERY source can serve it. The refusal NAMES
55790
- * the sources, because "this grid has no low" is not a finding — "615 has no
58203
+ * the sources, because "this grid has no low" is not a finding — "101 has no
55791
58204
  * low" is, and it is the one an operator can act on.
55792
58205
  */
55793
58206
  var GridProfileOfferSchema = object({
@@ -56396,6 +58809,106 @@ var ConsumablesStatusSchema = object({
56396
58809
  items: array(ConsumableItemSchema),
56397
58810
  lastChangedAt: number()
56398
58811
  });
58812
+ /** Synthesize seed for a link-built status (no native provider).
58813
+ *
58814
+ * ⚠ NO LIVE CALLER since 2026-08-08 (device-links deleted; see
58815
+ * `CapabilityStatusSchema.empty`). The wiring guidance below was written for
58816
+ * exactly the case the operator is asking about again — a Dreame's HA
58817
+ * consumable-life sensors — so it is kept for that conversation, not because
58818
+ * anything reads it today. */
58819
+ var EMPTY_STATUS = {
58820
+ items: [],
58821
+ lastChangedAt: 0
58822
+ };
58823
+ /** Seed for a NEW link-built consumable item. `key`/`label` are overwritten
58824
+ * with the link's `itemKey` (see `status.itemArray`), so the placeholder
58825
+ * empty strings never survive into a validated item. Link-built items are
58826
+ * not resettable — there is no native provider to receive `reset()`.
58827
+ *
58828
+ * Wiring guidance (HA vacuum consumable-life sensors):
58829
+ * - a percent-remaining source (`numeric-sensor`, unit '%') → `level` via
58830
+ * `identity` (or `linear` scale 1 offset 0 clamp [0,100] to be safe);
58831
+ * - an hours-remaining source (e.g. Dreame 'Main Brush Time Left', unit 'h')
58832
+ * → `level` via `linear` with scale = 100 / max-hours for that item
58833
+ * (e.g. main brush 300 h → scale 0.3333) + clamp [0,100];
58834
+ * - a discrete source (`enum-sensor`, e.g. mop pad 'installed') → `status`
58835
+ * via `enum-map` (e.g. { installed: 'ok', missing: 'replace' }).
58836
+ * A numeric→'replace' THRESHOLD (level < 10 → 'replace') is NOT expressible
58837
+ * with the current transform kinds — leave `status` null (valid) until the
58838
+ * expression transform lands. */
58839
+ /** Generic Customize target for one consumable item (D936). Native rows stay read-only. */
58840
+ var consumablesCustomize = {
58841
+ version: 1,
58842
+ targets: [{
58843
+ id: "items",
58844
+ cardinality: "keyedArray",
58845
+ vocabulary: { cap: "consumables" },
58846
+ deviceTypes: Object.values(DeviceType),
58847
+ apply: "add",
58848
+ path: "items",
58849
+ keyField: "key",
58850
+ labelField: "label",
58851
+ itemSchema: ConsumableItemSchema,
58852
+ nativeItems: "read-only",
58853
+ sourceReport: { status: "assignment-status" },
58854
+ fields: [
58855
+ {
58856
+ path: "level",
58857
+ sources: [{
58858
+ kind: "numeric",
58859
+ transforms: [{ kind: "identity" }, {
58860
+ kind: "linear",
58861
+ defaultScale: 1,
58862
+ defaultOffset: 0,
58863
+ clampMin: 0,
58864
+ clampMax: 100
58865
+ }]
58866
+ }]
58867
+ },
58868
+ {
58869
+ path: "remaining.value",
58870
+ sources: [{
58871
+ kind: "numeric",
58872
+ transforms: [{ kind: "identity" }]
58873
+ }],
58874
+ literals: [{
58875
+ path: "remaining.unit",
58876
+ values: [...ConsumableRemainingUnitSchema.options]
58877
+ }]
58878
+ },
58879
+ {
58880
+ path: "status",
58881
+ sources: [{
58882
+ kind: "enum",
58883
+ transforms: [{
58884
+ kind: "enum-map",
58885
+ outputValues: [...ConsumableStatusSchema.options],
58886
+ unmapped: null
58887
+ }]
58888
+ }]
58889
+ }
58890
+ ],
58891
+ traits: [{
58892
+ path: "kind",
58893
+ values: [...ConsumableKindSchema.options],
58894
+ defaultValue: "wear"
58895
+ }, {
58896
+ path: "form",
58897
+ values: [...ConsumableFormSchema.options],
58898
+ defaultValue: "part"
58899
+ }],
58900
+ companions: [{
58901
+ kind: "clock",
58902
+ path: "lastChangedAt",
58903
+ when: "add"
58904
+ }, {
58905
+ kind: "clock",
58906
+ path: "lastFetchedAt",
58907
+ when: "add"
58908
+ }],
58909
+ advancedExpression: true
58910
+ }]
58911
+ };
56399
58912
  var consumablesCapability = {
56400
58913
  name: "consumables",
56401
58914
  scope: "device",
@@ -56433,10 +58946,7 @@ reset: method(object({
56433
58946
  status: {
56434
58947
  schema: ConsumablesStatusSchema,
56435
58948
  kind: "push",
56436
- empty: {
56437
- items: [],
56438
- lastChangedAt: 0
56439
- },
58949
+ empty: EMPTY_STATUS,
56440
58950
  itemArray: {
56441
58951
  path: "items",
56442
58952
  keyField: "key",
@@ -56472,6 +58982,7 @@ reset: method(object({
56472
58982
  * brush's remaining life and a dishwasher's salt are each recorded the moment
56473
58983
  * their provider reports them; an item that appears later gets its series.
56474
58984
  */
58985
+ customize: consumablesCustomize,
56475
58986
  history: {
56476
58987
  fields: {},
56477
58988
  items: {
@@ -56851,6 +59362,30 @@ var dayNightCapability = {
56851
59362
  volatileStateFields: ["lastFetchedAt"]
56852
59363
  };
56853
59364
  /**
59365
+ * display-palette — the cluster's one colour table (D939).
59366
+ *
59367
+ * Hub singleton. `getPalette` reports `unknown` when the settings store
59368
+ * cannot be read; it does not pretend the bundled preset was stored.
59369
+ * `setPalette` refuses a palette that fails the ΔE / contrast rule and names
59370
+ * the pairs.
59371
+ */
59372
+ var presetSummarySchema = object({
59373
+ id: string(),
59374
+ name: string(),
59375
+ swatches: record(string(), paletteSwatchSchema),
59376
+ fallbacks: array(string())
59377
+ });
59378
+ method(_void(), paletteResultSchema, {
59379
+ auth: "protected",
59380
+ role: "viewer"
59381
+ }), method(_void(), array(presetSummarySchema).readonly(), {
59382
+ auth: "protected",
59383
+ role: "viewer"
59384
+ }), method(setPaletteInputSchema, paletteReadySchema, {
59385
+ kind: "mutation",
59386
+ auth: "admin"
59387
+ });
59388
+ /**
56854
59389
  * Generic device-level status snapshot. Auto-registered by `BaseDevice`
56855
59390
  * for every device, regardless of provider — the kernel needs a uniform
56856
59391
  * cap-keyed slice for the basic device flags every consumer expects to
@@ -57214,6 +59749,36 @@ var dishwasherCapability = {
57214
59749
  powerOn: { kind: "boolean" }
57215
59750
  } }
57216
59751
  };
59752
+ /** Pulse override: a rising edge advances `lastPressedAt` and the press count. */
59753
+ var doorbellCustomize = {
59754
+ version: 1,
59755
+ targets: [{
59756
+ id: "pressed",
59757
+ cardinality: "event",
59758
+ shape: "pulse",
59759
+ vocabulary: {
59760
+ cap: "doorbell",
59761
+ eventName: "onPressed"
59762
+ },
59763
+ deviceTypes: [DeviceType.Camera],
59764
+ apply: "add",
59765
+ applyAuthority: { kind: "composition-claim" },
59766
+ eventName: "onPressed",
59767
+ edges: ["rising"],
59768
+ timestampPath: "lastPressedAt",
59769
+ counterPath: "pressCountSinceStart",
59770
+ highWater: "composer-advance",
59771
+ combine: "any",
59772
+ debounce: {
59773
+ kind: "rising-edge",
59774
+ defaultDebounceMs: 2e3,
59775
+ changedAtRequired: true
59776
+ },
59777
+ sources: [{ kind: "binary" }, { kind: "switch" }],
59778
+ sourceReport: { status: "assignment-status" },
59779
+ advancedExpression: true
59780
+ }]
59781
+ };
57217
59782
  var DoorbellStatusSchema = object({
57218
59783
  /** Ms epoch of the last press. null = never observed since this provider started. */
57219
59784
  lastPressedAt: number().nullable(),
@@ -57280,7 +59845,8 @@ onPressed: {
57280
59845
  /**
57281
59846
  * History (D850): none — `pressCountSinceStart` resets with the addon, so it is not a monotonic meter; presses live in the events ledger.
57282
59847
  */
57283
- history: "none"
59848
+ history: "none",
59849
+ customize: doorbellCustomize
57284
59850
  };
57285
59851
  /**
57286
59852
  * Enum-state sensor — a string value picked from a finite option set.
@@ -58152,7 +60718,10 @@ var humidifierCapability = {
58152
60718
  */
58153
60719
  var HumiditySensorStatusSchema = object({
58154
60720
  /** Current relative humidity, 0..100. */
58155
- percent: number().min(0).max(100),
60721
+ percent: number().min(0).max(100).meta({
60722
+ unit: "%",
60723
+ label: "Humidity"
60724
+ }),
58156
60725
  /** Ms epoch when the slice was last updated. */
58157
60726
  lastFetchedAt: number(),
58158
60727
  /** Live display unit from the upstream source (e.g. HA
@@ -58194,7 +60763,12 @@ var humiditySensorCapability = {
58194
60763
  } } },
58195
60764
  /** Clock fields: written, but excluded from the compare that decides
58196
60765
  * whether persisting is worth a SQLite commit. */
58197
- volatileStateFields: ["lastFetchedAt"]
60766
+ volatileStateFields: ["lastFetchedAt"],
60767
+ customize: {
60768
+ version: 1,
60769
+ advanced: "derive",
60770
+ targets: []
60771
+ }
58198
60772
  };
58199
60773
  /**
58200
60774
  * Image display cap. Models a single still image exposed by an integration —
@@ -59676,6 +62250,38 @@ authKey: string().optional() }), object({
59676
62250
  /** Human-readable error when `ok: false`. */
59677
62251
  error: string().optional()
59678
62252
  }), { kind: "mutation" });
62253
+ /** Span override: start on a rising edge, end on a fall or this timeout. */
62254
+ var motionCustomize = {
62255
+ version: 1,
62256
+ targets: [{
62257
+ id: "detected",
62258
+ cardinality: "event",
62259
+ shape: "span",
62260
+ vocabulary: {
62261
+ cap: "motion",
62262
+ eventName: "onMotionChanged"
62263
+ },
62264
+ deviceTypes: [DeviceType.Camera],
62265
+ apply: "replace",
62266
+ applyAuthority: {
62267
+ kind: "camera-sensors",
62268
+ timeoutField: "motionCooldownMs"
62269
+ },
62270
+ eventName: "onMotionChanged",
62271
+ start: "rising-edge",
62272
+ end: "falling-edge-or-timeout",
62273
+ timeoutMs: 3e4,
62274
+ combine: "any",
62275
+ sourceModes: [
62276
+ "in-addition",
62277
+ "confirm",
62278
+ "replace"
62279
+ ],
62280
+ sources: [{ kind: "binary" }, { kind: "switch" }],
62281
+ sourceReport: { status: "assignment-status" },
62282
+ advancedExpression: false
62283
+ }]
62284
+ };
59679
62285
  var MotionStatusSchema = object({
59680
62286
  detected: boolean(),
59681
62287
  /** Ms epoch of the last detected-true observation. Null if never detected. */
@@ -59815,7 +62421,8 @@ onMotionChanged: { data: MotionOnMotionChangedDataSchema } },
59815
62421
  history: { fields: { detected: {
59816
62422
  kind: "boolean",
59817
62423
  excludeDeviceTypes: [DeviceType.Camera]
59818
- } } }
62424
+ } } },
62425
+ customize: motionCustomize
59819
62426
  };
59820
62427
  /**
59821
62428
  * Motion-trigger toggle for accessory devices.
@@ -61614,6 +64221,30 @@ includeCrops: boolean().optional() }).optional(), array(VehicleSchema).readonly(
61614
64221
  kind: "mutation",
61615
64222
  auth: "admin"
61616
64223
  });
64224
+ var CORE_ULTRA_265K_IGPU_CLOCK_MHZ = 2e3;
64225
+ var positiveOrNull = number().nullable().transform((value) => value !== null && Number.isFinite(value) && value > 0 ? value : null);
64226
+ var textOrNull = string().nullable().transform((value) => value !== null && value.trim() !== "" ? value : null);
64227
+ var PrecisionGopsSchema = object({
64228
+ int8: positiveOrNull,
64229
+ fp16: positiveOrNull
64230
+ });
64231
+ /** What one accelerator device reported. Every failed query is null. */
64232
+ var AcceleratorComputeSchema = object({
64233
+ deviceKey: string(),
64234
+ fullDeviceName: textOrNull,
64235
+ executionUnits: positiveOrNull,
64236
+ clockMHz: positiveOrNull,
64237
+ gops: PrecisionGopsSchema.nullable(),
64238
+ architecture: textOrNull,
64239
+ npuName: textOrNull,
64240
+ tops: positiveOrNull,
64241
+ vendor: textOrNull,
64242
+ webgpuArchitecture: textOrNull,
64243
+ webgpuDevice: textOrNull,
64244
+ computeUnits: positiveOrNull
64245
+ });
64246
+ object({ accelerators: array(AcceleratorComputeSchema).nullable() });
64247
+ 64 * CORE_ULTRA_265K_IGPU_CLOCK_MHZ;
61617
64248
  var ModelFormatSchema = _enum(MODEL_FORMATS);
61618
64249
  var HwAccelBackendInputSchema = _enum([
61619
64250
  "videotoolbox",
@@ -61727,7 +64358,12 @@ var HardwareInfoSchema = object({
61727
64358
  availableRAM_MB: number(),
61728
64359
  gpu: GpuInfoSchema.nullable(),
61729
64360
  npu: NpuInfoSchema.nullable(),
61730
- coral: CoralInfoSchema.nullable().optional()
64361
+ coral: CoralInfoSchema.nullable().optional(),
64362
+ /**
64363
+ * Per-accelerator compute (D930). Omitted by a node that has not probed it.
64364
+ * `null` fields inside an entry are a failed query, never a zero.
64365
+ */
64366
+ accelerators: array(AcceleratorComputeSchema).readonly().optional()
61731
64367
  });
61732
64368
  var PlatformScoreSchema = object({
61733
64369
  runtime: literal("python"),
@@ -61811,9 +64447,15 @@ method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema)
61811
64447
  */
61812
64448
  var PowerMeterStatusSchema = object({
61813
64449
  /** Instantaneous power draw in watts. */
61814
- watts: number().optional(),
64450
+ watts: number().optional().meta({
64451
+ unit: "W",
64452
+ label: "Power"
64453
+ }),
61815
64454
  /** Cumulative energy in kilowatt-hours since the meter was reset. */
61816
- kwhTotal: number().optional(),
64455
+ kwhTotal: number().optional().meta({
64456
+ unit: "kWh",
64457
+ label: "Energy"
64458
+ }),
61817
64459
  /** Voltage in volts. */
61818
64460
  volts: number().optional(),
61819
64461
  /** Current in amperes. */
@@ -61898,7 +64540,12 @@ var powerMeterCapability = {
61898
64540
  } },
61899
64541
  /** Clock fields: written, but excluded from the compare that decides
61900
64542
  * whether persisting is worth a SQLite commit. */
61901
- volatileStateFields: ["lastFetchedAt"]
64543
+ volatileStateFields: ["lastFetchedAt"],
64544
+ customize: {
64545
+ version: 1,
64546
+ advanced: "derive",
64547
+ targets: []
64548
+ }
61902
64549
  };
61903
64550
  /**
61904
64551
  * Presence cap. Models HA `person.*` and `device_tracker.*` entities
@@ -62343,9 +64990,9 @@ var PtzOptionsSchema = object({
62343
64990
  * Reolink preset 0, Hikvision preset '1', Dahua preset 1 -- and on this fleet
62344
64991
  * not one of the three cameras honours its own:
62345
64992
  *
62346
- * 592 Videocamera camera Daniel (reolink) preset 0 holds "stanza"
62347
- * 1438 Videocamera dispensa (hikvision) preset 1 holds "Credenza"
62348
- * 3836 Videocamera studio (amcrest) preset 1 holds "Preset1"
64993
+ * 107 Camera camera Carol (reolink) preset 0 holds "stanza"
64994
+ * 1438 Camera dispensa (hikvision) preset 1 holds "Credenza"
64995
+ * 3836 Camera studio (amcrest) preset 1 holds "Preset1"
62349
64996
  *
62350
64997
  * So `goHome` meant "go wherever the operator happened to save in slot 0 or 1",
62351
64998
  * and two of the three swallowed the failure in a bare `catch`. For autotrack
@@ -62670,6 +65317,126 @@ var ptzAutotrackCapability = {
62670
65317
  */
62671
65318
  history: "none"
62672
65319
  };
65320
+ var RUNNING_POWER_START_DELAY_MS = 3e4;
65321
+ var RUNNING_POWER_STOP_DELAY_MS = 18e4;
65322
+ var RunningStateSourceSchema = _enum(["native", "assigned"]);
65323
+ var RunningStateStatusSchema = object({
65324
+ /** null = unknown — never coerced to false (D393). */
65325
+ running: boolean().nullable(),
65326
+ /** Epoch ms the current boolean began; null while `running` is null. */
65327
+ since: number().nullable(),
65328
+ source: RunningStateSourceSchema.meta({ label: "Source" }),
65329
+ phase: string().nullable(),
65330
+ /** null until a reading has been published (D393). */
65331
+ lastFetchedAt: number().nullable()
65332
+ });
65333
+ var RunningFlipEventDataSchema = object({
65334
+ deviceId: number(),
65335
+ since: number().nullable(),
65336
+ phase: string().nullable()
65337
+ });
65338
+ var RUNNING_DEVICE_TYPES = Object.values(DeviceType);
65339
+ /** Generic Customize target for the running boolean (D936). */
65340
+ var runningCustomize = {
65341
+ version: 1,
65342
+ advanced: "derive",
65343
+ targets: [{
65344
+ id: "running",
65345
+ cardinality: "scalar",
65346
+ vocabulary: {
65347
+ cap: "running-state",
65348
+ stateField: "running"
65349
+ },
65350
+ deviceTypes: [
65351
+ DeviceType.Dishwasher,
65352
+ DeviceType.Vacuum,
65353
+ DeviceType.LawnMower,
65354
+ DeviceType.MediaPlayer,
65355
+ DeviceType.WaterHeater,
65356
+ DeviceType.Humidifier,
65357
+ DeviceType.Fan,
65358
+ DeviceType.Climate,
65359
+ DeviceType.Thermostat,
65360
+ DeviceType.PetFeeder
65361
+ ],
65362
+ apply: "add-or-replace",
65363
+ path: "running",
65364
+ sources: [
65365
+ {
65366
+ kind: "switch",
65367
+ transforms: [{ kind: "identity" }]
65368
+ },
65369
+ {
65370
+ kind: "binary",
65371
+ transforms: [{ kind: "identity" }, { kind: "invert" }]
65372
+ },
65373
+ {
65374
+ kind: "numeric",
65375
+ requiredUnit: "W",
65376
+ transforms: [{
65377
+ kind: "threshold",
65378
+ comparison: "gte",
65379
+ defaultThreshold: 5,
65380
+ defaultStartDwellMs: RUNNING_POWER_START_DELAY_MS,
65381
+ defaultStopDwellMs: RUNNING_POWER_STOP_DELAY_MS,
65382
+ thresholdUnit: "W"
65383
+ }]
65384
+ }
65385
+ ],
65386
+ companions: [
65387
+ {
65388
+ kind: "constant",
65389
+ path: "source",
65390
+ value: "assigned",
65391
+ when: "always"
65392
+ },
65393
+ {
65394
+ kind: "constant",
65395
+ path: "phase",
65396
+ value: null,
65397
+ when: "always"
65398
+ },
65399
+ {
65400
+ kind: "clock",
65401
+ path: "lastFetchedAt",
65402
+ when: "always"
65403
+ },
65404
+ {
65405
+ kind: "transition-time",
65406
+ path: "since",
65407
+ sourceChangedAt: "prefer"
65408
+ }
65409
+ ],
65410
+ sourceReport: {
65411
+ status: "assignment-status",
65412
+ runtimeField: "source",
65413
+ nativeValue: "native",
65414
+ assignedValue: "assigned"
65415
+ },
65416
+ advancedExpression: true
65417
+ }]
65418
+ };
65419
+ var runningStateCapability = {
65420
+ name: "running-state",
65421
+ scope: "device",
65422
+ deviceNative: true,
65423
+ mode: "singleton",
65424
+ deviceTypes: RUNNING_DEVICE_TYPES,
65425
+ methods: {},
65426
+ events: {
65427
+ onStarted: { data: RunningFlipEventDataSchema },
65428
+ onFinished: { data: RunningFlipEventDataSchema }
65429
+ },
65430
+ status: {
65431
+ schema: RunningStateStatusSchema,
65432
+ kind: "push"
65433
+ },
65434
+ runtimeState: RunningStateStatusSchema,
65435
+ durability: "restored",
65436
+ history: { fields: { running: { kind: "boolean" } } },
65437
+ volatileStateFields: ["lastFetchedAt"],
65438
+ customize: runningCustomize
65439
+ };
62673
65440
  /**
62674
65441
  * reboot — device-scoped capability for "soft" device reboots (firmware
62675
65442
  * reboot via vendor protocol; cameras, NVRs, doorbells). Surfaces a
@@ -62736,7 +65503,7 @@ var RecordingAvailabilitySchema = object({
62736
65503
  * would look identical. But the answer used to say nothing about that, so a
62737
65504
  * caller asking "what can I export?" read the single preferred profile as
62738
65505
  * the only one that exists — on this deployment every camera records `high`
62739
- * AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
65506
+ * AND `low`, the low tree holding 14 GB for camera 101 alone, and the export
62740
65507
  * UI could not see it.
62741
65508
  *
62742
65509
  * Cheap: it is the same shallow directory read the profile CHOICE already
@@ -62835,7 +65602,7 @@ var RecordingSourceOptionsSchema = object({
62835
65602
  * `sparse` = gaps are the absence of one, and must be drawn as such.
62836
65603
  *
62837
65604
  * Not an onboard-only concession: measured 2026-09-24, OUR bar covers 98.8 %
62838
- * of 592's day and 1.2 % of 1436's. It is a fact about a (source, camera)
65605
+ * of 107's day and 1.2 % of 1436's. It is a fact about a (source, camera)
62839
65606
  * pair, and ours answers it per camera from `deriveRecordingMode`. */
62840
65607
  coverage: _enum(["continuous", "sparse"]),
62841
65608
  /** Where the playhead may be put.
@@ -62911,7 +65678,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(RecordingSourceS
62911
65678
  * merely discouraged (D554 amended).
62912
65679
  *
62913
65680
  * It was learned the expensive way on `videoclips.listClips`: measured
62914
- * on the live hub 2026-09-20, device 592 bound to `recorder` AND
65681
+ * on the live hub 2026-09-20, device 107 bound to `recorder` AND
62915
65682
  * `provider-reolink`, a bare call with `limit: 3` answered SIX rows,
62916
65683
  * three from each source, merged — `device-collection-dispatch.ts`
62917
65684
  * leaves an unpinned fan-out un-narrowed, so absence buys the union the
@@ -63512,7 +66279,7 @@ var ExportSpeedSchema = number().min(.25).max(32);
63512
66279
  * on a 10 h window holding 29,393 s of footage every range landed late by the
63513
66280
  * gap accumulated before it — up to 6,607 s, well past EOF. Nothing matched,
63514
66281
  * the video was a uniform timelapse, and the log line reported the five ranges
63515
- * that had been ASKED for (2026-08-13, export `57d14363`, camera 615).
66282
+ * that had been ASKED for (2026-08-13, export `57d14363`, camera 101).
63516
66283
  *
63517
66284
  * Relative and not absolute epoch, because an absolute epoch would make every
63518
66285
  * call site responsible for the same subtraction.
@@ -64403,7 +67170,7 @@ getStatus: method(object({ deviceId: number() }), RecordingSignalStatusSchema) }
64403
67170
  * which put a "Scenes" tab on one camera's detail page. That is the wrong shape
64404
67171
  * for the thing: a scene is a standing question about the property ("is the bin
64405
67172
  * still out"), and the operator's question is "which of my scenes have tripped",
64406
- * across every camera at once — not "what does camera 617 think". Buried one
67173
+ * across every camera at once — not "what does camera 102 think". Buried one
64407
67174
  * camera deep it also could not be found. The surface is now a top-level admin
64408
67175
  * page (`/scenes`, `pages/Scenes.tsx`) that lists every scene on every camera and
64409
67176
  * picks the camera inside the create flow, the same shape Events and Faces have.
@@ -64852,7 +67619,20 @@ var ZoneRuleSchema = object({
64852
67619
  * Defaults to `true` so operators creating a rule via the UI
64853
67620
  * see it active immediately.
64854
67621
  */
64855
- enabled: boolean().default(true)
67622
+ enabled: boolean().default(true),
67623
+ /**
67624
+ * Package stage only. When true, a package candidate may open from a
67625
+ * scene difference in this rule's zone after a person leaves. The
67626
+ * package model, when it boxes something overlapping, is extra evidence
67627
+ * and is not the gate. Absent or false keeps today's model path.
67628
+ */
67629
+ detectBySceneDifference: boolean().optional(),
67630
+ /**
67631
+ * Package stage only. When true, a promoted package is shown to the
67632
+ * `llm` cap before the delivery event is emitted. Absent or false emits
67633
+ * as today. Usable with or without `detectBySceneDifference`.
67634
+ */
67635
+ confirmWithLlm: boolean().optional()
64856
67636
  });
64857
67637
  array(ZoneRuleSchema).readonly();
64858
67638
  /**
@@ -65447,7 +68227,7 @@ function buildStreamParamsConfigSchema(options, status) {
65447
68227
  * `getSettingsUISchema()` surface.
65448
68228
  */
65449
68229
  var SwitchStatusSchema = object({
65450
- on: boolean(),
68230
+ on: boolean().meta({ label: "On" }),
65451
68231
  /** Ms epoch of the last state change. Useful for UI "X minutes ago". */
65452
68232
  lastChangedAt: number()
65453
68233
  });
@@ -65506,7 +68286,12 @@ var switchCapability = {
65506
68286
  label: "On",
65507
68287
  kind: "boolean"
65508
68288
  }
65509
- }] }
68289
+ }] },
68290
+ customize: {
68291
+ version: 1,
68292
+ advanced: "derive",
68293
+ targets: []
68294
+ }
65510
68295
  };
65511
68296
  /** C0 controls, DEL and the C1 range: none of them belongs in a name. */
65512
68297
  function hasControlCharacter(value) {
@@ -66102,7 +68887,10 @@ var tamperCapability = {
66102
68887
  */
66103
68888
  var TemperatureSensorStatusSchema = object({
66104
68889
  /** Current temperature in Celsius. */
66105
- celsius: number(),
68890
+ celsius: number().meta({
68891
+ unit: "°C",
68892
+ label: "Temperature"
68893
+ }),
66106
68894
  /** Ms epoch when the slice was last updated (push or poll). */
66107
68895
  lastFetchedAt: number(),
66108
68896
  /** Live display unit from the upstream source (e.g. HA
@@ -66145,7 +68933,12 @@ var temperatureSensorCapability = {
66145
68933
  } } },
66146
68934
  /** Clock fields: written, but excluded from the compare that decides
66147
68935
  * whether persisting is worth a SQLite commit. */
66148
- volatileStateFields: ["lastFetchedAt"]
68936
+ volatileStateFields: ["lastFetchedAt"],
68937
+ customize: {
68938
+ version: 1,
68939
+ advanced: "derive",
68940
+ targets: []
68941
+ }
66149
68942
  };
66150
68943
  /**
66151
68944
  * toast — system-scoped singleton capability that streams toast
@@ -67408,7 +70201,7 @@ method(object({}), array(TrainingProviderDescriptorSchema).readonly(), { auth: "
67408
70201
  * - **Jobs.** A persisted state machine, a reconcile loop against the
67409
70202
  * provider, a cost guard, a daily orphan sweep and the retention rules.
67410
70203
  * - **The return flow.** Verified artefacts → Model Studio
67411
- * (`custom-model-registry.importModelBundle`) → canary on cameras →
70204
+ * (`custom-model-registry.importModelBundle`) → canary on accelerators →
67412
70205
  * rollback. Nothing is ever registered automatically.
67413
70206
  *
67414
70207
  * Plan/start takes a live {@link TrainingCorpusSelection} (collections +
@@ -67545,20 +70338,24 @@ var TrainingProgressPointSchema = object({
67545
70338
  map50: number().nullable(),
67546
70339
  map50_95: number().nullable()
67547
70340
  });
70341
+ /** One accelerator: a `(node, inference device)` that runs the root detector. */
70342
+ var TrainingAcceleratorRefSchema = object({
70343
+ nodeId: string(),
70344
+ deviceKey: string()
70345
+ });
70346
+ /**
70347
+ * A canary pins the registered model on chosen ACCELERATORS — a model is
70348
+ * chosen by the accelerator that runs it (D927); every camera balanced onto
70349
+ * one runs it. `previous` is the root-detector pin each one had (`null` = it
70350
+ * ran its default), exactly, so rollback restores it.
70351
+ */
67548
70352
  var TrainingCanarySchema = object({
67549
- deviceIds: array(number().int()).readonly(),
70353
+ accelerators: array(TrainingAcceleratorRefSchema).readonly(),
67550
70354
  since: number(),
67551
- /** Every override the canary replaced, exactly, so rollback restores it. */
67552
- previous: array(object({
67553
- deviceId: number().int(),
67554
- nodeId: string(),
67555
- deviceKey: string(),
67556
- patch: object({
67557
- modelId: string().optional(),
67558
- settings: record(string(), unknown()).readonly().optional()
67559
- }).nullable()
67560
- })).readonly()
70355
+ previous: array(TrainingAcceleratorRefSchema.extend({ modelId: string().nullable() })).readonly()
67561
70356
  });
70357
+ /** An accelerator a canary may pin: it runs the root detector, on this model now. */
70358
+ var TrainingCanaryTargetSchema = TrainingAcceleratorRefSchema.extend({ pinnedModelId: string().nullable() });
67562
70359
  var TrainingJobSchema = object({
67563
70360
  id: string(),
67564
70361
  idempotencyKey: string(),
@@ -67670,11 +70467,11 @@ method(object({}), array(TrainingBaseModelSchema).readonly(), { auth: "admin" })
67670
70467
  kind: "mutation",
67671
70468
  auth: "admin",
67672
70469
  timeoutMs: 12e4
67673
- }), method(IdInput, TrainingResultSchema.nullable(), { auth: "admin" }), method(IdInput.extend({ canaryDeviceIds: array(number().int()).readonly() }), TrainingJobSchema, {
70470
+ }), method(IdInput, TrainingResultSchema.nullable(), { auth: "admin" }), method(_void(), array(TrainingCanaryTargetSchema).readonly(), { auth: "admin" }), method(IdInput.extend({ canaryAccelerators: array(TrainingAcceleratorRefSchema).readonly() }), TrainingJobSchema, {
67674
70471
  kind: "mutation",
67675
70472
  auth: "admin",
67676
70473
  timeoutMs: 30 * 6e4
67677
- }), method(IdInput.extend({ deviceIds: array(number().int()).min(1).readonly() }), TrainingJobSchema, {
70474
+ }), method(IdInput.extend({ accelerators: array(TrainingAcceleratorRefSchema).min(1).readonly() }), TrainingJobSchema, {
67678
70475
  kind: "mutation",
67679
70476
  auth: "admin",
67680
70477
  timeoutMs: 12e4
@@ -67820,6 +70617,10 @@ function withClipEventLabels(provider, deps) {
67820
70617
  };
67821
70618
  }
67822
70619
  SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
70620
+ 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;
70621
+ String.raw`rose\(active(\d+), changed(\d+), (\d+(?:\.\d+)?)\)`;
70622
+ DeviceRole.BinarySensor, DeviceRole.MotionSensor;
70623
+ new Set(CAP_NAMES);
67823
70624
  Object.freeze({
67824
70625
  person: .5,
67825
70626
  vehicle: .5,
@@ -68185,6 +70986,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
68185
70986
  ptzAutotrack: ptzAutotrackCapability,
68186
70987
  recordingOnboard: recordingOnboardCapability,
68187
70988
  recordingSignal: recordingSignalCapability,
70989
+ runningState: runningStateCapability,
68188
70990
  sceneMonitor: sceneMonitorCapability,
68189
70991
  scriptRunner: scriptRunnerCapability,
68190
70992
  smoke: smokeCapability,
@@ -69067,7 +71869,7 @@ var BaseDeviceProvider = class extends BaseAddon {
69067
71869
  * A top-level persisted row with NO configuration is a leftover, not a
69068
71870
  * device — quarantine it instead of dialling it.
69069
71871
  *
69070
- * Device 614 was deleted, resurrected as a config-less shell by a write
71872
+ * Device 105 was deleted, resurrected as a config-less shell by a write
69071
71873
  * already in flight (D376), and then dialled at every single boot: eight
69072
71874
  * `Failed to restore device — bounded retry scheduled` lines in one day,
69073
71875
  * each one the same Zod refusal on `host` and `password`. The bound was
@@ -72381,6 +75183,27 @@ Object.freeze({
72381
75183
  access: "create",
72382
75184
  role: "viewer"
72383
75185
  },
75186
+ "displayPalette.getPalette": {
75187
+ capName: "display-palette",
75188
+ capScope: "system",
75189
+ addonId: null,
75190
+ access: "view",
75191
+ role: "viewer"
75192
+ },
75193
+ "displayPalette.listPresets": {
75194
+ capName: "display-palette",
75195
+ capScope: "system",
75196
+ addonId: null,
75197
+ access: "view",
75198
+ role: "viewer"
75199
+ },
75200
+ "displayPalette.setPalette": {
75201
+ capName: "display-palette",
75202
+ capScope: "system",
75203
+ addonId: null,
75204
+ access: "create",
75205
+ role: "admin"
75206
+ },
72384
75207
  "doorbell.getStatus": {
72385
75208
  capName: "doorbell",
72386
75209
  capScope: "device",
@@ -75300,20 +78123,6 @@ Object.freeze({
75300
78123
  access: "create",
75301
78124
  role: "admin"
75302
78125
  },
75303
- "pipelineExecutor.clearDeviceOverrides": {
75304
- capName: "pipeline-executor",
75305
- capScope: "system",
75306
- addonId: null,
75307
- access: "delete",
75308
- role: "admin"
75309
- },
75310
- "pipelineExecutor.clearModelBoundDeviceOverrides": {
75311
- capName: "pipeline-executor",
75312
- capScope: "system",
75313
- addonId: null,
75314
- access: "delete",
75315
- role: "admin"
75316
- },
75317
78126
  "pipelineExecutor.deleteModel": {
75318
78127
  capName: "pipeline-executor",
75319
78128
  capScope: "system",
@@ -75356,13 +78165,6 @@ Object.freeze({
75356
78165
  access: "view",
75357
78166
  role: "admin"
75358
78167
  },
75359
- "pipelineExecutor.getDefaultSteps": {
75360
- capName: "pipeline-executor",
75361
- capScope: "system",
75362
- addonId: null,
75363
- access: "view",
75364
- role: "admin"
75365
- },
75366
78168
  "pipelineExecutor.getDetectionConfigSchema": {
75367
78169
  capName: "pipeline-executor",
75368
78170
  capScope: "system",
@@ -75384,20 +78186,6 @@ Object.freeze({
75384
78186
  access: "view",
75385
78187
  role: "admin"
75386
78188
  },
75387
- "pipelineExecutor.getGlobalPipelineConfig": {
75388
- capName: "pipeline-executor",
75389
- capScope: "system",
75390
- addonId: null,
75391
- access: "view",
75392
- role: "admin"
75393
- },
75394
- "pipelineExecutor.getGlobalSteps": {
75395
- capName: "pipeline-executor",
75396
- capScope: "system",
75397
- addonId: null,
75398
- access: "view",
75399
- role: "admin"
75400
- },
75401
78189
  "pipelineExecutor.getInferenceDeviceHealth": {
75402
78190
  capName: "pipeline-executor",
75403
78191
  capScope: "system",
@@ -75657,13 +78445,6 @@ Object.freeze({
75657
78445
  access: "view",
75658
78446
  role: "admin"
75659
78447
  },
75660
- "pipelineOrchestrator.getCameraStepOverrides": {
75661
- capName: "pipeline-orchestrator",
75662
- capScope: "system",
75663
- addonId: null,
75664
- access: "view",
75665
- role: "admin"
75666
- },
75667
78448
  "pipelineOrchestrator.getCameraSwitches": {
75668
78449
  capName: "pipeline-orchestrator",
75669
78450
  capScope: "system",
@@ -75902,13 +78683,6 @@ Object.freeze({
75902
78683
  access: "create",
75903
78684
  role: "admin"
75904
78685
  },
75905
- "pipelineOrchestrator.setCameraPipelineForAgent": {
75906
- capName: "pipeline-orchestrator",
75907
- capScope: "system",
75908
- addonId: null,
75909
- access: "create",
75910
- role: "admin"
75911
- },
75912
78686
  "pipelineOrchestrator.setCameraSensors": {
75913
78687
  capName: "pipeline-orchestrator",
75914
78688
  capScope: "system",
@@ -75916,42 +78690,42 @@ Object.freeze({
75916
78690
  access: "create",
75917
78691
  role: "admin"
75918
78692
  },
75919
- "pipelineOrchestrator.setCameraStepOverride": {
78693
+ "pipelineOrchestrator.setCameraStepSettings": {
75920
78694
  capName: "pipeline-orchestrator",
75921
78695
  capScope: "system",
75922
78696
  addonId: null,
75923
78697
  access: "create",
75924
78698
  role: "admin"
75925
78699
  },
75926
- "pipelineOrchestrator.setCameraStepSettings": {
78700
+ "pipelineOrchestrator.setCameraStepToggle": {
75927
78701
  capName: "pipeline-orchestrator",
75928
78702
  capScope: "system",
75929
78703
  addonId: null,
75930
78704
  access: "create",
75931
78705
  role: "admin"
75932
78706
  },
75933
- "pipelineOrchestrator.setCameraStepToggle": {
78707
+ "pipelineOrchestrator.setCameraSwitch": {
75934
78708
  capName: "pipeline-orchestrator",
75935
78709
  capScope: "system",
75936
78710
  addonId: null,
75937
78711
  access: "create",
75938
78712
  role: "admin"
75939
78713
  },
75940
- "pipelineOrchestrator.setCameraSwitch": {
78714
+ "pipelineOrchestrator.setCapabilityBinding": {
75941
78715
  capName: "pipeline-orchestrator",
75942
78716
  capScope: "system",
75943
78717
  addonId: null,
75944
78718
  access: "create",
75945
78719
  role: "admin"
75946
78720
  },
75947
- "pipelineOrchestrator.setCapabilityBinding": {
78721
+ "pipelineOrchestrator.setLoadBalancingShares": {
75948
78722
  capName: "pipeline-orchestrator",
75949
78723
  capScope: "system",
75950
78724
  addonId: null,
75951
78725
  access: "create",
75952
78726
  role: "admin"
75953
78727
  },
75954
- "pipelineOrchestrator.setLoadBalancingShares": {
78728
+ "pipelineOrchestrator.setNodeStepSettings": {
75955
78729
  capName: "pipeline-orchestrator",
75956
78730
  capScope: "system",
75957
78731
  addonId: null,
@@ -76980,6 +79754,13 @@ Object.freeze({
76980
79754
  access: "create",
76981
79755
  role: "admin"
76982
79756
  },
79757
+ "runningState.getStatus": {
79758
+ capName: "running-state",
79759
+ capScope: "device",
79760
+ addonId: null,
79761
+ access: "view",
79762
+ role: "viewer"
79763
+ },
76983
79764
  "sceneMonitor.captureReference": {
76984
79765
  capName: "scene-monitor",
76985
79766
  capScope: "device",
@@ -78310,6 +81091,13 @@ Object.freeze({
78310
81091
  access: "view",
78311
81092
  role: "admin"
78312
81093
  },
81094
+ "training.listCanaryTargets": {
81095
+ capName: "training",
81096
+ capScope: "system",
81097
+ addonId: null,
81098
+ access: "view",
81099
+ role: "admin"
81100
+ },
78313
81101
  "training.listJobs": {
78314
81102
  capName: "training",
78315
81103
  capScope: "system",
@@ -81687,6 +84475,32 @@ var APPLIANCE_CAP_VOCABULARY = {
81687
84475
  }],
81688
84476
  events: { onSent: { notOperatorFacing: "a delivery receipt of a send this system made — not a fact about the world" } }
81689
84477
  },
84478
+ "running-state": {
84479
+ scope: "device",
84480
+ noun: t("Running", "In funzione"),
84481
+ state: [{
84482
+ kind: "boolean",
84483
+ field: "running",
84484
+ label: t("Running", "In funzione"),
84485
+ whenTrue: t("When {device} starts", "Quando {device} inizia"),
84486
+ whenFalse: t("When {device} finishes", "Quando {device} finisce"),
84487
+ icon: "play"
84488
+ }],
84489
+ events: {
84490
+ onStarted: {
84491
+ category: EventCategory.RunningStarted,
84492
+ label: t("Started running", "Ha iniziato a funzionare"),
84493
+ phrase: t("When {device} starts running", "Quando {device} inizia a funzionare"),
84494
+ icon: "play"
84495
+ },
84496
+ onFinished: {
84497
+ category: EventCategory.RunningFinished,
84498
+ label: t("Finished", "Ha finito"),
84499
+ phrase: t("When {device} finishes", "Quando {device} finisce"),
84500
+ icon: "square"
84501
+ }
84502
+ }
84503
+ },
81690
84504
  update: {
81691
84505
  scope: "device",
81692
84506
  noun: t("Firmware update", "Aggiornamento firmware"),
@@ -82307,7 +85121,7 @@ var SENSOR_CAP_VOCABULARY = {
82307
85121
  state: [{
82308
85122
  kind: "boolean",
82309
85123
  field: "on",
82310
- label: t("Active", "Attivo"),
85124
+ label: t("On", "Acceso"),
82311
85125
  whenTrue: t("When {device} turns active", "Quando {device} si attiva"),
82312
85126
  whenFalse: t("When {device} turns inactive", "Quando {device} si disattiva"),
82313
85127
  icon: "toggle-right"
@@ -82846,6 +85660,7 @@ var SYSTEM_CAP_VOCABULARY = {
82846
85660
  "device-provider": system(INTERNAL),
82847
85661
  "device-removal-hook": system(INTERNAL),
82848
85662
  "device-state": system("the runtime-state mirror every trigger already reads through"),
85663
+ "display-palette": system("the cluster display palette — one colour table for every client, not a device action"),
82849
85664
  "embedding-encoder": system(ML),
82850
85665
  "face-gallery": system("the face gallery — curated on its own page"),
82851
85666
  "failure-contribution": system(INTERNAL),
@@ -84914,11 +87729,6 @@ Object.freeze({
84914
87729
  form: "single",
84915
87730
  optional: false
84916
87731
  }],
84917
- "pipelineExecutor.clearModelBoundDeviceOverrides": [{
84918
- name: "deviceIds",
84919
- form: "array",
84920
- optional: true
84921
- }],
84922
87732
  "pipelineExecutor.runPipeline": [{
84923
87733
  name: "deviceId",
84924
87734
  form: "single",
@@ -84974,11 +87784,6 @@ Object.freeze({
84974
87784
  form: "array",
84975
87785
  optional: true
84976
87786
  }],
84977
- "pipelineOrchestrator.getCameraStepOverrides": [{
84978
- name: "deviceId",
84979
- form: "single",
84980
- optional: false
84981
- }],
84982
87787
  "pipelineOrchestrator.getCameraSwitches": [{
84983
87788
  name: "deviceId",
84984
87789
  form: "single",
@@ -85019,21 +87824,11 @@ Object.freeze({
85019
87824
  form: "single",
85020
87825
  optional: false
85021
87826
  }],
85022
- "pipelineOrchestrator.setCameraPipelineForAgent": [{
85023
- name: "deviceId",
85024
- form: "single",
85025
- optional: false
85026
- }],
85027
87827
  "pipelineOrchestrator.setCameraSensors": [{
85028
87828
  name: "deviceId",
85029
87829
  form: "single",
85030
87830
  optional: false
85031
87831
  }],
85032
- "pipelineOrchestrator.setCameraStepOverride": [{
85033
- name: "deviceId",
85034
- form: "single",
85035
- optional: false
85036
- }],
85037
87832
  "pipelineOrchestrator.setCameraStepSettings": [{
85038
87833
  name: "deviceId",
85039
87834
  form: "single",
@@ -85465,6 +88260,11 @@ Object.freeze({
85465
88260
  form: "single",
85466
88261
  optional: true
85467
88262
  }],
88263
+ "runningState.getStatus": [{
88264
+ name: "deviceId",
88265
+ form: "single",
88266
+ optional: false
88267
+ }],
85468
88268
  "sceneMonitor.captureReference": [{
85469
88269
  name: "deviceId",
85470
88270
  form: "single",
@@ -85711,11 +88511,6 @@ Object.freeze({
85711
88511
  form: "single",
85712
88512
  optional: false
85713
88513
  }],
85714
- "training.canaryResult": [{
85715
- name: "deviceIds",
85716
- form: "array",
85717
- optional: false
85718
- }],
85719
88514
  "update.getStatus": [{
85720
88515
  name: "deviceId",
85721
88516
  form: "single",
@@ -85968,6 +88763,94 @@ Object.freeze({
85968
88763
  "smtp-provider": "email"
85969
88764
  });
85970
88765
  DeviceType.Camera;
88766
+ /**
88767
+ * A saved Customize assignment (D936). The schema is the type: callers use
88768
+ * `z.infer`, they do not restate the shape.
88769
+ */
88770
+ var OverrideSourceSchema = object({
88771
+ addonId: string().min(1),
88772
+ stableId: string().min(1),
88773
+ cap: string().min(1),
88774
+ fieldPath: string().min(1)
88775
+ });
88776
+ var CustomizeTransformDraftSchema = discriminatedUnion("kind", [
88777
+ object({ kind: literal("identity") }),
88778
+ object({ kind: literal("invert") }),
88779
+ object({
88780
+ kind: literal("threshold"),
88781
+ comparison: _enum(["gte", "lte"]),
88782
+ threshold: number(),
88783
+ startDwellMs: number().nonnegative(),
88784
+ stopDwellMs: number().nonnegative()
88785
+ }),
88786
+ object({
88787
+ kind: literal("linear"),
88788
+ scale: number(),
88789
+ offset: number(),
88790
+ clampMin: number().optional(),
88791
+ clampMax: number().optional()
88792
+ }),
88793
+ object({
88794
+ kind: literal("enum-map"),
88795
+ mapping: record(string(), string().nullable())
88796
+ }),
88797
+ object({ kind: literal("number") })
88798
+ ]);
88799
+ var ScalarOverrideDraftSchema = object({
88800
+ kind: literal("scalar"),
88801
+ cap: string().min(1),
88802
+ targetId: string().min(1),
88803
+ source: OverrideSourceSchema,
88804
+ transform: CustomizeTransformDraftSchema
88805
+ });
88806
+ var KeyedArrayOverrideDraftSchema = object({
88807
+ kind: literal("keyedArray"),
88808
+ cap: string().min(1),
88809
+ targetId: string().min(1),
88810
+ key: string().min(1),
88811
+ label: string().min(1),
88812
+ fieldPath: string().min(1),
88813
+ source: OverrideSourceSchema,
88814
+ transform: CustomizeTransformDraftSchema
88815
+ });
88816
+ var PulseOverrideDraftSchema = object({
88817
+ kind: literal("pulse"),
88818
+ cap: string().min(1),
88819
+ targetId: string().min(1),
88820
+ enabled: boolean(),
88821
+ debounceMs: number().nonnegative(),
88822
+ sources: array(OverrideSourceSchema).min(1)
88823
+ });
88824
+ var SpanSourceDraftSchema = OverrideSourceSchema.extend({ mode: _enum([
88825
+ "in-addition",
88826
+ "confirm",
88827
+ "replace"
88828
+ ]).optional() });
88829
+ discriminatedUnion("kind", [
88830
+ ScalarOverrideDraftSchema,
88831
+ KeyedArrayOverrideDraftSchema,
88832
+ PulseOverrideDraftSchema,
88833
+ object({
88834
+ kind: literal("span"),
88835
+ cap: string().min(1),
88836
+ targetId: string().min(1),
88837
+ timeoutMs: number().nonnegative(),
88838
+ cooldownMs: number().nonnegative().optional(),
88839
+ sources: array(SpanSourceDraftSchema)
88840
+ })
88841
+ ]);
88842
+ object({
88843
+ targetId: string().min(1),
88844
+ configured: boolean(),
88845
+ source: _enum(["native", "assigned"]),
88846
+ state: _enum([
88847
+ "active",
88848
+ "stale",
88849
+ "released",
88850
+ "unavailable"
88851
+ ]),
88852
+ reason: string().nullable()
88853
+ });
85971
88854
  var G711_SCALE_CORRECTION_DB = {
85972
88855
  PCMU: 20 * Math.log10(4),
85973
88856
  PCMA: 20 * Math.log10(8)
@@ -86020,40 +88903,7 @@ var NC_AUDIO_DEFAULTS = {
86020
88903
  samplingSeconds: 10
86021
88904
  };
86022
88905
  new Set(["devices", "classes"]);
86023
- /**
86024
- * WHICH narrowing filter speaks about WHICH system-event kind — one predicate,
86025
- * consumed by the rule ENGINE and by every rule EDITOR.
86026
- *
86027
- * ── The failure this file exists for ───────────────────────────────────────
86028
- * `NcSystemEventConditionSchema` carries four optional narrowing lists
86029
- * (`deviceIds`, `deviceTypes`, `nodeIds`, `packageNames`) beside a required
86030
- * `kinds` gate. They are not four filters over one vocabulary: each belongs to
86031
- * a FAMILY of kinds and is meaningless outside it. A node going away has no
86032
- * device type; a completed export has no package; `stream-offline` deliberately
86033
- * carries no device type at all (a stream belongs to a camera by construction).
86034
- *
86035
- * The engine applied all four to every kind, so a filter from one family failed
86036
- * a kind from another family CLOSED. The operator's live rule "Eventi di
86037
- * sistema" selected eleven kinds and set `deviceTypes: ['camera']` — the only
86038
- * way to say "only my cameras" about the two liveness kinds — and NINE of the
86039
- * eleven silently stopped being deliverable. Four days of history contained
86040
- * `device-online` and `device-offline` and nothing else, across a window in
86041
- * which agents were restarted and addons were updated.
86042
- *
86043
- * Both editors already computed this scoping, to decide which filter boxes to
86044
- * render; the cap's own docblock already promised it ("Narrow a `device-*` kind
86045
- * to these device TYPES"). Only the engine disagreed, and it disagreed in the
86046
- * destructive direction. So the rule is stated ONCE, here, and the engine and
86047
- * the editors are readers of it rather than three independent authors.
86048
- *
86049
- * ── The direction ─────────────────────────────────────────────────────────
86050
- * Out of family ⇒ the filter is IGNORED, never fail-closed. An editor that
86051
- * hides a box has already told the operator this filter does not speak about
86052
- * these kinds, so honouring it as an exclusion contradicts the only
86053
- * explanation the operator was ever given. Inside its family the filter still
86054
- * narrows, and still fails CLOSED on a subject that cannot produce the identity
86055
- * it tests (a device the mirror cannot name is not evidence of a camera).
86056
- */
88906
+ new Set(NC_LEGACY_SYSTEM_EVENT_KINDS);
86057
88907
  /**
86058
88908
  * Every filter, for the callers that must cover all of them (guards, tests).
86059
88909
  *
@@ -86079,9 +88929,6 @@ new Map(Object.entries({
86079
88929
  "device-battery-normal": "device-events",
86080
88930
  "device-consumable-low": "device-events",
86081
88931
  "device-consumable-normal": "device-events",
86082
- "device-tank-low": "device-events",
86083
- "device-tank-full": "device-events",
86084
- "device-tank-normal": "device-events",
86085
88932
  "stream-online": "device-events",
86086
88933
  "stream-offline": "device-events",
86087
88934
  "detection-blind": "device-events",
@@ -86158,16 +89005,6 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
86158
89005
  label: "Consumables",
86159
89006
  kinds: ["device-consumable-low", "device-consumable-normal"]
86160
89007
  },
86161
- {
86162
- id: "tanks",
86163
- family: "device-events",
86164
- label: "Tanks",
86165
- kinds: [
86166
- "device-tank-low",
86167
- "device-tank-full",
86168
- "device-tank-normal"
86169
- ]
86170
- },
86171
89008
  {
86172
89009
  id: "detection-blind",
86173
89010
  family: "device-events",
@@ -86325,11 +89162,6 @@ var RULE_BODY_ONLY = ["body"];
86325
89162
  var RULE_TEXT = ["title", "body"];
86326
89163
  var BATTERY = ["device-battery-low", "device-battery-normal"];
86327
89164
  var CONSUMABLE = ["device-consumable-low", "device-consumable-normal"];
86328
- var TANK = [
86329
- "device-tank-low",
86330
- "device-tank-full",
86331
- "device-tank-normal"
86332
- ];
86333
89165
  var ALERT_EPISODE = [
86334
89166
  "alert-critical",
86335
89167
  "alert-error",
@@ -86361,7 +89193,6 @@ var DEVICE_EVENTS = [
86361
89193
  "device-enabled",
86362
89194
  ...BATTERY,
86363
89195
  ...CONSUMABLE,
86364
- ...TANK,
86365
89196
  "stream-online",
86366
89197
  "stream-offline",
86367
89198
  "detection-blind",
@@ -86392,7 +89223,7 @@ var STATE_SUMMARY_SECTION_VARS = [
86392
89223
  {
86393
89224
  name: "summaryStreams",
86394
89225
  label: "Summary: streams offline",
86395
- example: "Ingresso (high) — since 06:40",
89226
+ example: "Front door (high) — since 06:40",
86396
89227
  kinds: ["stream-offline", "stream-online"]
86397
89228
  },
86398
89229
  {
@@ -86407,22 +89238,16 @@ var STATE_SUMMARY_SECTION_VARS = [
86407
89238
  example: "Robot — filter 10 %",
86408
89239
  kinds: CONSUMABLE
86409
89240
  },
86410
- {
86411
- name: "summaryTanks",
86412
- label: "Summary: tanks",
86413
- example: "Robot — clean water low",
86414
- kinds: TANK
86415
- },
86416
89241
  {
86417
89242
  name: "summaryDetection",
86418
89243
  label: "Summary: cameras detecting nothing",
86419
- example: "Ingresso — since 05:10",
89244
+ example: "Front door — since 05:10",
86420
89245
  kinds: ["detection-blind"]
86421
89246
  },
86422
89247
  {
86423
89248
  name: "summaryNodes",
86424
89249
  label: "Summary: nodes",
86425
- example: "little-unraid — offline since 03:00",
89250
+ example: "agent-a — offline since 03:00",
86426
89251
  kinds: [
86427
89252
  "node-offline",
86428
89253
  "node-online",
@@ -86528,8 +89353,7 @@ var STATE_SUMMARY_VARS = [
86528
89353
  ([...RULE_TEXT], [...COMBINED_ALARM]),
86529
89354
  ([...RULE_TEXT], [...DEVICE_EVENTS]),
86530
89355
  ([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
86531
- ([...RULE_TEXT], [...CONSUMABLE, ...TANK]),
86532
- ([...RULE_TEXT], [...TANK]),
89356
+ ([...RULE_TEXT], [...CONSUMABLE]),
86533
89357
  [...RULE_TEXT],
86534
89358
  ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
86535
89359
  ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
@@ -86633,15 +89457,6 @@ new Map([
86633
89457
  snapshotLabel: "Consumables low now",
86634
89458
  snapshotSection: "consumables"
86635
89459
  },
86636
- {
86637
- id: "tanks",
86638
- family: "device-events",
86639
- label: "Tanks (low or full / back to normal)",
86640
- bad: ["device-tank-low", "device-tank-full"],
86641
- recovery: ["device-tank-normal"],
86642
- snapshotLabel: "Tanks low or full now",
86643
- snapshotSection: "tanks"
86644
- },
86645
89460
  {
86646
89461
  id: "motion-noise",
86647
89462
  family: "device-events",
@@ -87094,6 +89909,10 @@ MotionOnMotionChangedDataSchema.omit({ triggeredBy: true });
87094
89909
  function providerMotionEvent(source, data) {
87095
89910
  return createEvent(EventCategory.ProviderMotion, source, data);
87096
89911
  }
89912
+ Object.freeze({
89913
+ person: .8,
89914
+ vehicle: .8
89915
+ });
87097
89916
  object({
87098
89917
  /**
87099
89918
  * Fraction of the box's own size added on EACH side before cutting.
@@ -95484,7 +98303,7 @@ var HikvisionIntercomSession = class {
95484
98303
  *
95485
98304
  * `failure-contribution` keeps `variant` for a second dimension WITHIN a
95486
98305
  * family, and here the useful one is the format the caller pushed: an operator
95487
- * asking "why is 617 silent" needs to know whether HomeKit's Opus or Alexa's
98306
+ * asking "why is 102 silent" needs to know whether HomeKit's Opus or Alexa's
95488
98307
  * raw PCM is the half that is failing. The provider is handed that value on
95489
98308
  * every call, so it is reported rather than guessed — absent, never invented.
95490
98309
  *