@camstack/addon-export-alexa 1.2.166 → 1.2.168

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.
@@ -34,7 +34,7 @@ let node_path = require("node:path");
34
34
  node_path = __toESM(node_path, 1);
35
35
  require("node:child_process");
36
36
  require("node:zlib");
37
- //#region ../types/dist/event-category-fDPduoeC.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
  *
@@ -506,6 +506,10 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
506
506
  * on the device detail page.
507
507
  */
508
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";
509
513
  /**
510
514
  * Cap event fired by every device that registers the `event-emitter`
511
515
  * capability. Mirrors `eventEmitterCapability.events.onEvent`. Carries
@@ -5465,7 +5469,7 @@ var ZodIssueCode = {
5465
5469
  var ZodFirstPartyTypeKind;
5466
5470
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5467
5471
  //#endregion
5468
- //#region ../types/dist/sleep-CHIEEJkY.mjs
5472
+ //#region ../types/dist/sleep-BErAxhul.mjs
5469
5473
  /**
5470
5474
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5471
5475
  * window to float samples (D455).
@@ -5804,7 +5808,7 @@ Object.fromEntries([
5804
5808
  * `hydrateSchema` to skip the `value` injection for structural-only fields.
5805
5809
  */
5806
5810
  function isValuelessField(field) {
5807
- 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";
5808
5812
  }
5809
5813
  function hydrateSchema(schema, values, options = {}) {
5810
5814
  return {
@@ -8439,6 +8443,1980 @@ method(object({ deviceId: number() }), array(StreamSourceEntrySchema)), method(o
8439
8443
  kind: "mutation",
8440
8444
  auth: "admin"
8441
8445
  }), method(object({ deviceId: number() }), unknown().nullable()), method(object({ deviceId: number() }), RawStateResultSchema.nullable(), { auth: "protected" });
8446
+ Object.freeze({ "doorbell": "lastPressedAt" });
8447
+ /** Every capability name, so addon code can check a name without the schema graph. */
8448
+ var CAP_NAMES = Object.freeze([
8449
+ "accessories",
8450
+ "addon-pages",
8451
+ "addon-pages-source",
8452
+ "addon-routes",
8453
+ "addon-settings",
8454
+ "addon-widgets",
8455
+ "addon-widgets-source",
8456
+ "addons",
8457
+ "admin-ui",
8458
+ "air-quality-sensor",
8459
+ "alarm-panel",
8460
+ "alerts",
8461
+ "ambient-light-sensor",
8462
+ "audio-analysis",
8463
+ "audio-analyzer",
8464
+ "audio-codec",
8465
+ "audio-metrics",
8466
+ "auth-provider",
8467
+ "automation-control",
8468
+ "backup",
8469
+ "battery",
8470
+ "binary",
8471
+ "brightness",
8472
+ "broker",
8473
+ "button",
8474
+ "calendar-source",
8475
+ "calendars",
8476
+ "camera-credentials",
8477
+ "camera-grid-layout",
8478
+ "camera-pipeline-config",
8479
+ "camera-streams",
8480
+ "carbon-monoxide",
8481
+ "climate-control",
8482
+ "color",
8483
+ "composer",
8484
+ "connection-test",
8485
+ "connectivity",
8486
+ "consumables",
8487
+ "contact",
8488
+ "control",
8489
+ "core-blocks",
8490
+ "cover",
8491
+ "custom-model-registry",
8492
+ "data-store-provider",
8493
+ "database-snapshot",
8494
+ "day-night",
8495
+ "decoder",
8496
+ "detection-pipeline",
8497
+ "device-admin-link",
8498
+ "device-adoption",
8499
+ "device-credentials",
8500
+ "device-discovery",
8501
+ "device-export",
8502
+ "device-extension",
8503
+ "device-history",
8504
+ "device-manager",
8505
+ "device-ops",
8506
+ "device-provider",
8507
+ "device-removal-hook",
8508
+ "device-state",
8509
+ "device-status",
8510
+ "dishwasher",
8511
+ "display-palette",
8512
+ "doorbell",
8513
+ "embedding-encoder",
8514
+ "enum-sensor",
8515
+ "event-emitter",
8516
+ "face-gallery",
8517
+ "failure-contribution",
8518
+ "fan-control",
8519
+ "feature-probe",
8520
+ "filesystem-browse",
8521
+ "flood",
8522
+ "gas",
8523
+ "heating-valve",
8524
+ "humidifier",
8525
+ "humidity-sensor",
8526
+ "image",
8527
+ "image-settings",
8528
+ "integrations",
8529
+ "intercom",
8530
+ "keychain",
8531
+ "keychain-admin",
8532
+ "lawn-mower-control",
8533
+ "llm",
8534
+ "llm-runtime",
8535
+ "load-contribution",
8536
+ "local-network",
8537
+ "lock-control",
8538
+ "log-channels",
8539
+ "log-destination",
8540
+ "login-method",
8541
+ "media-player",
8542
+ "mesh-network",
8543
+ "metrics-provider",
8544
+ "model-convert",
8545
+ "model-distributor",
8546
+ "motion",
8547
+ "motion-detection",
8548
+ "motion-trigger",
8549
+ "motion-zones",
8550
+ "mqtt-broker",
8551
+ "native-object-detection",
8552
+ "navigation",
8553
+ "network-access",
8554
+ "network-link",
8555
+ "network-quality",
8556
+ "node-certificates",
8557
+ "nodes",
8558
+ "notification-output",
8559
+ "notification-rules",
8560
+ "notifier",
8561
+ "numeric-sensor",
8562
+ "oauth-integration",
8563
+ "oidc-connections",
8564
+ "osd",
8565
+ "osd-manager",
8566
+ "pet-feeder",
8567
+ "pipeline-analytics",
8568
+ "pipeline-executor",
8569
+ "pipeline-orchestrator",
8570
+ "pipeline-runner",
8571
+ "plate-gallery",
8572
+ "platform-probe",
8573
+ "power-meter",
8574
+ "presence",
8575
+ "pressure-sensor",
8576
+ "privacy-mask",
8577
+ "ptz",
8578
+ "ptz-autotrack",
8579
+ "reboot",
8580
+ "record-entries",
8581
+ "recording",
8582
+ "recording-archive",
8583
+ "recording-export",
8584
+ "recording-onboard",
8585
+ "recording-signal",
8586
+ "records",
8587
+ "running-state",
8588
+ "scene-monitor",
8589
+ "script-runner",
8590
+ "server-management",
8591
+ "settings-store",
8592
+ "smoke",
8593
+ "smtp-provider",
8594
+ "snapshot",
8595
+ "sso-bridge",
8596
+ "storage",
8597
+ "storage-admin",
8598
+ "storage-evictable",
8599
+ "storage-migration",
8600
+ "storage-occupancy",
8601
+ "storage-provider",
8602
+ "stream-broker",
8603
+ "stream-catalog",
8604
+ "stream-params",
8605
+ "stream-signals",
8606
+ "switch",
8607
+ "system",
8608
+ "tamper",
8609
+ "temperature-sensor",
8610
+ "terminal-session",
8611
+ "toast",
8612
+ "training",
8613
+ "training-provider",
8614
+ "turn-provider",
8615
+ "update",
8616
+ "user-management",
8617
+ "user-passkeys",
8618
+ "vacuum-control",
8619
+ "valve",
8620
+ "vector-store",
8621
+ "vibration",
8622
+ "videoclips",
8623
+ "viewer-ui",
8624
+ "water-heater",
8625
+ "weather",
8626
+ "webrtc-session",
8627
+ "zone-analytics",
8628
+ "zone-rules",
8629
+ "zones"
8630
+ ]);
8631
+ Object.freeze({
8632
+ "air-quality-sensor": [
8633
+ {
8634
+ "path": "co2Ppm",
8635
+ "valueType": "number"
8636
+ },
8637
+ {
8638
+ "path": "vocPpb",
8639
+ "valueType": "number"
8640
+ },
8641
+ {
8642
+ "path": "pm25",
8643
+ "valueType": "number"
8644
+ },
8645
+ {
8646
+ "path": "pm10",
8647
+ "valueType": "number"
8648
+ },
8649
+ {
8650
+ "path": "aqi",
8651
+ "valueType": "number"
8652
+ },
8653
+ {
8654
+ "path": "unit",
8655
+ "valueType": "string"
8656
+ },
8657
+ {
8658
+ "path": "precision",
8659
+ "valueType": "number"
8660
+ }
8661
+ ],
8662
+ "alarm-panel": [
8663
+ {
8664
+ "path": "state",
8665
+ "valueType": "enum",
8666
+ "enumValues": [
8667
+ "disarmed",
8668
+ "armed_home",
8669
+ "armed_away",
8670
+ "armed_night",
8671
+ "armed_vacation",
8672
+ "armed_custom_bypass",
8673
+ "arming",
8674
+ "disarming",
8675
+ "pending",
8676
+ "triggered"
8677
+ ]
8678
+ },
8679
+ {
8680
+ "path": "targetMode",
8681
+ "valueType": "enum",
8682
+ "enumValues": [
8683
+ "home",
8684
+ "away",
8685
+ "night",
8686
+ "vacation",
8687
+ "custom_bypass"
8688
+ ]
8689
+ },
8690
+ {
8691
+ "path": "requiresCode",
8692
+ "valueType": "boolean"
8693
+ }
8694
+ ],
8695
+ "ambient-light-sensor": [
8696
+ {
8697
+ "path": "lux",
8698
+ "valueType": "number"
8699
+ },
8700
+ {
8701
+ "path": "unit",
8702
+ "valueType": "string"
8703
+ },
8704
+ {
8705
+ "path": "precision",
8706
+ "valueType": "number"
8707
+ }
8708
+ ],
8709
+ "audio-metrics": [
8710
+ {
8711
+ "path": "ts",
8712
+ "valueType": "number"
8713
+ },
8714
+ {
8715
+ "path": "windowSec",
8716
+ "valueType": "number"
8717
+ },
8718
+ {
8719
+ "path": "level.rms",
8720
+ "valueType": "number"
8721
+ },
8722
+ {
8723
+ "path": "level.dbfs",
8724
+ "valueType": "number"
8725
+ },
8726
+ {
8727
+ "path": "peakDbfs",
8728
+ "valueType": "number"
8729
+ },
8730
+ {
8731
+ "path": "avgDbfs",
8732
+ "valueType": "number"
8733
+ },
8734
+ {
8735
+ "path": "current.className",
8736
+ "valueType": "string"
8737
+ },
8738
+ {
8739
+ "path": "current.score",
8740
+ "valueType": "number"
8741
+ },
8742
+ {
8743
+ "path": "current.timestamp",
8744
+ "valueType": "number"
8745
+ }
8746
+ ],
8747
+ "automation-control": [
8748
+ {
8749
+ "path": "enabled",
8750
+ "valueType": "boolean"
8751
+ },
8752
+ {
8753
+ "path": "isRunning",
8754
+ "valueType": "boolean"
8755
+ },
8756
+ {
8757
+ "path": "lastTriggeredAt",
8758
+ "valueType": "number"
8759
+ },
8760
+ {
8761
+ "path": "lastError",
8762
+ "valueType": "string"
8763
+ }
8764
+ ],
8765
+ "battery": [
8766
+ {
8767
+ "path": "percentage",
8768
+ "valueType": "number"
8769
+ },
8770
+ {
8771
+ "path": "charging",
8772
+ "valueType": "enum",
8773
+ "enumValues": [
8774
+ "dc",
8775
+ "solar",
8776
+ "none",
8777
+ "unknown"
8778
+ ]
8779
+ },
8780
+ {
8781
+ "path": "sleeping",
8782
+ "valueType": "boolean"
8783
+ },
8784
+ {
8785
+ "path": "lastUpdated",
8786
+ "valueType": "number"
8787
+ },
8788
+ {
8789
+ "path": "lastContactAt",
8790
+ "valueType": "number"
8791
+ },
8792
+ {
8793
+ "path": "lastFullRefreshAt",
8794
+ "valueType": "number"
8795
+ },
8796
+ {
8797
+ "path": "binary",
8798
+ "valueType": "boolean"
8799
+ }
8800
+ ],
8801
+ "binary": [{
8802
+ "path": "on",
8803
+ "valueType": "boolean"
8804
+ }],
8805
+ "brightness": [{
8806
+ "path": "percentage",
8807
+ "valueType": "number"
8808
+ }],
8809
+ "broker": [{
8810
+ "path": "brokerCount",
8811
+ "valueType": "number"
8812
+ }, {
8813
+ "path": "connectedCount",
8814
+ "valueType": "number"
8815
+ }],
8816
+ "camera-credentials": [
8817
+ {
8818
+ "path": "host",
8819
+ "valueType": "string"
8820
+ },
8821
+ {
8822
+ "path": "port",
8823
+ "valueType": "number"
8824
+ },
8825
+ {
8826
+ "path": "onvifPort",
8827
+ "valueType": "number"
8828
+ },
8829
+ {
8830
+ "path": "rtspPort",
8831
+ "valueType": "number"
8832
+ },
8833
+ {
8834
+ "path": "https",
8835
+ "valueType": "boolean"
8836
+ },
8837
+ {
8838
+ "path": "hasUsername",
8839
+ "valueType": "boolean"
8840
+ },
8841
+ {
8842
+ "path": "hasPassword",
8843
+ "valueType": "boolean"
8844
+ },
8845
+ {
8846
+ "path": "onvifProfile",
8847
+ "valueType": "string"
8848
+ }
8849
+ ],
8850
+ "camera-streams": [
8851
+ {
8852
+ "path": "online",
8853
+ "valueType": "boolean"
8854
+ },
8855
+ {
8856
+ "path": "slotStatuses.high",
8857
+ "valueType": "enum",
8858
+ "enumValues": [
8859
+ "unassigned",
8860
+ "idle",
8861
+ "connecting",
8862
+ "streaming",
8863
+ "error"
8864
+ ]
8865
+ },
8866
+ {
8867
+ "path": "slotStatuses.mid",
8868
+ "valueType": "enum",
8869
+ "enumValues": [
8870
+ "unassigned",
8871
+ "idle",
8872
+ "connecting",
8873
+ "streaming",
8874
+ "error"
8875
+ ]
8876
+ },
8877
+ {
8878
+ "path": "slotStatuses.low",
8879
+ "valueType": "enum",
8880
+ "enumValues": [
8881
+ "unassigned",
8882
+ "idle",
8883
+ "connecting",
8884
+ "streaming",
8885
+ "error"
8886
+ ]
8887
+ },
8888
+ {
8889
+ "path": "slotErrors.high",
8890
+ "valueType": "string"
8891
+ },
8892
+ {
8893
+ "path": "slotErrors.mid",
8894
+ "valueType": "string"
8895
+ },
8896
+ {
8897
+ "path": "slotErrors.low",
8898
+ "valueType": "string"
8899
+ }
8900
+ ],
8901
+ "carbon-monoxide": [{
8902
+ "path": "detected",
8903
+ "valueType": "boolean"
8904
+ }],
8905
+ "climate-control": [
8906
+ {
8907
+ "path": "mode",
8908
+ "valueType": "enum",
8909
+ "enumValues": [
8910
+ "off",
8911
+ "heat",
8912
+ "cool",
8913
+ "auto",
8914
+ "heat_cool",
8915
+ "fan_only",
8916
+ "dry"
8917
+ ]
8918
+ },
8919
+ {
8920
+ "path": "fanMode",
8921
+ "valueType": "string"
8922
+ },
8923
+ {
8924
+ "path": "preset",
8925
+ "valueType": "string"
8926
+ },
8927
+ {
8928
+ "path": "target",
8929
+ "valueType": "number"
8930
+ },
8931
+ {
8932
+ "path": "targetHigh",
8933
+ "valueType": "number"
8934
+ },
8935
+ {
8936
+ "path": "targetLow",
8937
+ "valueType": "number"
8938
+ },
8939
+ {
8940
+ "path": "targetHumidity",
8941
+ "valueType": "number"
8942
+ },
8943
+ {
8944
+ "path": "currentTemp",
8945
+ "valueType": "number"
8946
+ },
8947
+ {
8948
+ "path": "currentHumidity",
8949
+ "valueType": "number"
8950
+ },
8951
+ {
8952
+ "path": "swingVertical",
8953
+ "valueType": "boolean"
8954
+ },
8955
+ {
8956
+ "path": "swingHorizontal",
8957
+ "valueType": "boolean"
8958
+ },
8959
+ {
8960
+ "path": "minTemp",
8961
+ "valueType": "number"
8962
+ },
8963
+ {
8964
+ "path": "maxTemp",
8965
+ "valueType": "number"
8966
+ },
8967
+ {
8968
+ "path": "tempStep",
8969
+ "valueType": "number"
8970
+ }
8971
+ ],
8972
+ "color": [
8973
+ {
8974
+ "path": "mode",
8975
+ "valueType": "enum",
8976
+ "enumValues": [
8977
+ "rgb",
8978
+ "hsv",
8979
+ "mired"
8980
+ ]
8981
+ },
8982
+ {
8983
+ "path": "rgb.r",
8984
+ "valueType": "number"
8985
+ },
8986
+ {
8987
+ "path": "rgb.g",
8988
+ "valueType": "number"
8989
+ },
8990
+ {
8991
+ "path": "rgb.b",
8992
+ "valueType": "number"
8993
+ },
8994
+ {
8995
+ "path": "hsv.h",
8996
+ "valueType": "number"
8997
+ },
8998
+ {
8999
+ "path": "hsv.s",
9000
+ "valueType": "number"
9001
+ },
9002
+ {
9003
+ "path": "hsv.v",
9004
+ "valueType": "number"
9005
+ },
9006
+ {
9007
+ "path": "mireds",
9008
+ "valueType": "number"
9009
+ }
9010
+ ],
9011
+ "connectivity": [{
9012
+ "path": "connected",
9013
+ "valueType": "boolean"
9014
+ }],
9015
+ "contact": [{
9016
+ "path": "entryOpen",
9017
+ "valueType": "boolean"
9018
+ }],
9019
+ "control": [
9020
+ {
9021
+ "path": "kind",
9022
+ "valueType": "enum",
9023
+ "enumValues": [
9024
+ "numeric",
9025
+ "select",
9026
+ "text",
9027
+ "datetime"
9028
+ ]
9029
+ },
9030
+ {
9031
+ "path": "unit",
9032
+ "valueType": "string"
9033
+ },
9034
+ {
9035
+ "path": "min",
9036
+ "valueType": "number"
9037
+ },
9038
+ {
9039
+ "path": "max",
9040
+ "valueType": "number"
9041
+ },
9042
+ {
9043
+ "path": "step",
9044
+ "valueType": "number"
9045
+ },
9046
+ {
9047
+ "path": "precision",
9048
+ "valueType": "number"
9049
+ },
9050
+ {
9051
+ "path": "format",
9052
+ "valueType": "enum",
9053
+ "enumValues": [
9054
+ "date",
9055
+ "time",
9056
+ "datetime"
9057
+ ]
9058
+ }
9059
+ ],
9060
+ "cover": [
9061
+ {
9062
+ "path": "state",
9063
+ "valueType": "enum",
9064
+ "enumValues": [
9065
+ "open",
9066
+ "opening",
9067
+ "closing",
9068
+ "closed",
9069
+ "stopped"
9070
+ ]
9071
+ },
9072
+ {
9073
+ "path": "position",
9074
+ "valueType": "number"
9075
+ },
9076
+ {
9077
+ "path": "tiltPosition",
9078
+ "valueType": "number"
9079
+ }
9080
+ ],
9081
+ "day-night": [
9082
+ {
9083
+ "path": "mode",
9084
+ "valueType": "enum",
9085
+ "enumValues": [
9086
+ "auto",
9087
+ "day",
9088
+ "night",
9089
+ "schedule"
9090
+ ]
9091
+ },
9092
+ {
9093
+ "path": "sensitivity",
9094
+ "valueType": "number"
9095
+ },
9096
+ {
9097
+ "path": "switchDelaySec",
9098
+ "valueType": "number"
9099
+ }
9100
+ ],
9101
+ "device-adoption": [
9102
+ {
9103
+ "path": "lastDiscoveryAt",
9104
+ "valueType": "number"
9105
+ },
9106
+ {
9107
+ "path": "candidateCount",
9108
+ "valueType": "number"
9109
+ },
9110
+ {
9111
+ "path": "adoptedCount",
9112
+ "valueType": "number"
9113
+ },
9114
+ {
9115
+ "path": "lastError",
9116
+ "valueType": "string"
9117
+ }
9118
+ ],
9119
+ "device-discovery": [{
9120
+ "path": "lastDiscoveryAt",
9121
+ "valueType": "number"
9122
+ }, {
9123
+ "path": "lastError",
9124
+ "valueType": "string"
9125
+ }],
9126
+ "device-export": [
9127
+ {
9128
+ "path": "linkState",
9129
+ "valueType": "enum",
9130
+ "enumValues": [
9131
+ "unlinked",
9132
+ "linked",
9133
+ "error"
9134
+ ]
9135
+ },
9136
+ {
9137
+ "path": "exposedDeviceCount",
9138
+ "valueType": "number"
9139
+ },
9140
+ {
9141
+ "path": "error",
9142
+ "valueType": "string"
9143
+ },
9144
+ {
9145
+ "path": "setup.qr",
9146
+ "valueType": "string"
9147
+ },
9148
+ {
9149
+ "path": "setup.note",
9150
+ "valueType": "string"
9151
+ }
9152
+ ],
9153
+ "device-status": [{
9154
+ "path": "online",
9155
+ "valueType": "boolean"
9156
+ }],
9157
+ "dishwasher": [
9158
+ {
9159
+ "path": "availability",
9160
+ "valueType": "enum",
9161
+ "enumValues": [
9162
+ "available",
9163
+ "offline",
9164
+ "description-missing"
9165
+ ]
9166
+ },
9167
+ {
9168
+ "path": "state",
9169
+ "valueType": "enum",
9170
+ "enumValues": [
9171
+ "idle",
9172
+ "running",
9173
+ "paused",
9174
+ "finished",
9175
+ "error",
9176
+ "unavailable"
9177
+ ]
9178
+ },
9179
+ {
9180
+ "path": "operationState",
9181
+ "valueType": "enum",
9182
+ "enumValues": [
9183
+ "Inactive",
9184
+ "Ready",
9185
+ "DelayedStart",
9186
+ "Run",
9187
+ "Pause",
9188
+ "ActionRequired",
9189
+ "Finished",
9190
+ "Error",
9191
+ "Aborting"
9192
+ ]
9193
+ },
9194
+ {
9195
+ "path": "program",
9196
+ "valueType": "string"
9197
+ },
9198
+ {
9199
+ "path": "selectedProgram",
9200
+ "valueType": "string"
9201
+ },
9202
+ {
9203
+ "path": "remainingSeconds",
9204
+ "valueType": "number"
9205
+ },
9206
+ {
9207
+ "path": "delayedStartSeconds",
9208
+ "valueType": "number"
9209
+ },
9210
+ {
9211
+ "path": "progressPercent",
9212
+ "valueType": "number"
9213
+ },
9214
+ {
9215
+ "path": "doorOpen",
9216
+ "valueType": "boolean"
9217
+ },
9218
+ {
9219
+ "path": "doorLocked",
9220
+ "valueType": "boolean"
9221
+ },
9222
+ {
9223
+ "path": "remoteStartAllowed",
9224
+ "valueType": "boolean"
9225
+ },
9226
+ {
9227
+ "path": "remoteControlActive",
9228
+ "valueType": "boolean"
9229
+ },
9230
+ {
9231
+ "path": "localControlActive",
9232
+ "valueType": "boolean"
9233
+ },
9234
+ {
9235
+ "path": "powerOn",
9236
+ "valueType": "boolean"
9237
+ },
9238
+ {
9239
+ "path": "powerState",
9240
+ "valueType": "string"
9241
+ },
9242
+ {
9243
+ "path": "filterCleaningDue",
9244
+ "valueType": "boolean"
9245
+ },
9246
+ {
9247
+ "path": "machineCareDue",
9248
+ "valueType": "boolean"
9249
+ },
9250
+ {
9251
+ "path": "machineCareRemainingRuns",
9252
+ "valueType": "number"
9253
+ },
9254
+ {
9255
+ "path": "halfLoad",
9256
+ "valueType": "boolean"
9257
+ },
9258
+ {
9259
+ "path": "hygienePlus",
9260
+ "valueType": "boolean"
9261
+ },
9262
+ {
9263
+ "path": "extraDry",
9264
+ "valueType": "boolean"
9265
+ },
9266
+ {
9267
+ "path": "intensiveZone",
9268
+ "valueType": "boolean"
9269
+ },
9270
+ {
9271
+ "path": "varioSpeedPlus",
9272
+ "valueType": "boolean"
9273
+ },
9274
+ {
9275
+ "path": "childLock",
9276
+ "valueType": "boolean"
9277
+ },
9278
+ {
9279
+ "path": "errorCode",
9280
+ "valueType": "number"
9281
+ },
9282
+ {
9283
+ "path": "errorLabel",
9284
+ "valueType": "string"
9285
+ }
9286
+ ],
9287
+ "doorbell": [{
9288
+ "path": "lastPressedAt",
9289
+ "valueType": "number"
9290
+ }, {
9291
+ "path": "pressCountSinceStart",
9292
+ "valueType": "number"
9293
+ }],
9294
+ "enum-sensor": [{
9295
+ "path": "value",
9296
+ "valueType": "string"
9297
+ }, {
9298
+ "path": "format",
9299
+ "valueType": "enum",
9300
+ "enumValues": [
9301
+ "date",
9302
+ "time",
9303
+ "datetime"
9304
+ ]
9305
+ }],
9306
+ "event-emitter": [
9307
+ {
9308
+ "path": "lastEvent.deviceId",
9309
+ "valueType": "number"
9310
+ },
9311
+ {
9312
+ "path": "lastEvent.eventType",
9313
+ "valueType": "string"
9314
+ },
9315
+ {
9316
+ "path": "lastEvent.timestamp",
9317
+ "valueType": "number"
9318
+ },
9319
+ {
9320
+ "path": "lastEvent.seq",
9321
+ "valueType": "number"
9322
+ },
9323
+ {
9324
+ "path": "eventCountSinceStart",
9325
+ "valueType": "number"
9326
+ }
9327
+ ],
9328
+ "fan-control": [
9329
+ {
9330
+ "path": "percentage",
9331
+ "valueType": "number"
9332
+ },
9333
+ {
9334
+ "path": "percentageStep",
9335
+ "valueType": "number"
9336
+ },
9337
+ {
9338
+ "path": "preset",
9339
+ "valueType": "string"
9340
+ },
9341
+ {
9342
+ "path": "direction",
9343
+ "valueType": "enum",
9344
+ "enumValues": ["forward", "reverse"]
9345
+ },
9346
+ {
9347
+ "path": "oscillating",
9348
+ "valueType": "boolean"
9349
+ }
9350
+ ],
9351
+ "feature-probe": [
9352
+ {
9353
+ "path": "deviceType",
9354
+ "valueType": "string"
9355
+ },
9356
+ {
9357
+ "path": "model",
9358
+ "valueType": "string"
9359
+ },
9360
+ {
9361
+ "path": "channelCount",
9362
+ "valueType": "number"
9363
+ },
9364
+ {
9365
+ "path": "lastProbedAt",
9366
+ "valueType": "number"
9367
+ }
9368
+ ],
9369
+ "flood": [{
9370
+ "path": "flooded",
9371
+ "valueType": "boolean"
9372
+ }],
9373
+ "gas": [{
9374
+ "path": "detected",
9375
+ "valueType": "boolean"
9376
+ }],
9377
+ "heating-valve": [{
9378
+ "path": "position",
9379
+ "valueType": "number"
9380
+ }],
9381
+ "humidifier": [
9382
+ {
9383
+ "path": "on",
9384
+ "valueType": "boolean"
9385
+ },
9386
+ {
9387
+ "path": "currentHumidity",
9388
+ "valueType": "number"
9389
+ },
9390
+ {
9391
+ "path": "targetHumidity",
9392
+ "valueType": "number"
9393
+ },
9394
+ {
9395
+ "path": "mode",
9396
+ "valueType": "string"
9397
+ },
9398
+ {
9399
+ "path": "action",
9400
+ "valueType": "string"
9401
+ },
9402
+ {
9403
+ "path": "minHumidity",
9404
+ "valueType": "number"
9405
+ },
9406
+ {
9407
+ "path": "maxHumidity",
9408
+ "valueType": "number"
9409
+ }
9410
+ ],
9411
+ "humidity-sensor": [
9412
+ {
9413
+ "path": "percent",
9414
+ "valueType": "number"
9415
+ },
9416
+ {
9417
+ "path": "unit",
9418
+ "valueType": "string"
9419
+ },
9420
+ {
9421
+ "path": "precision",
9422
+ "valueType": "number"
9423
+ }
9424
+ ],
9425
+ "image": [{
9426
+ "path": "url",
9427
+ "valueType": "string"
9428
+ }, {
9429
+ "path": "lastUpdated",
9430
+ "valueType": "number"
9431
+ }],
9432
+ "image-settings": [
9433
+ {
9434
+ "path": "brightness",
9435
+ "valueType": "number"
9436
+ },
9437
+ {
9438
+ "path": "contrast",
9439
+ "valueType": "number"
9440
+ },
9441
+ {
9442
+ "path": "saturation",
9443
+ "valueType": "number"
9444
+ },
9445
+ {
9446
+ "path": "sharpness",
9447
+ "valueType": "number"
9448
+ },
9449
+ {
9450
+ "path": "mirror",
9451
+ "valueType": "boolean"
9452
+ },
9453
+ {
9454
+ "path": "flip",
9455
+ "valueType": "boolean"
9456
+ },
9457
+ {
9458
+ "path": "rotate",
9459
+ "valueType": "enum",
9460
+ "enumValues": [
9461
+ "0",
9462
+ "90",
9463
+ "180",
9464
+ "270"
9465
+ ]
9466
+ },
9467
+ {
9468
+ "path": "whiteBalance",
9469
+ "valueType": "enum",
9470
+ "enumValues": ["auto", "manual"]
9471
+ },
9472
+ {
9473
+ "path": "warmth",
9474
+ "valueType": "number"
9475
+ },
9476
+ {
9477
+ "path": "exposureMode",
9478
+ "valueType": "enum",
9479
+ "enumValues": ["auto", "manual"]
9480
+ },
9481
+ {
9482
+ "path": "backlightMode",
9483
+ "valueType": "enum",
9484
+ "enumValues": [
9485
+ "off",
9486
+ "blc",
9487
+ "wdr",
9488
+ "hlc"
9489
+ ]
9490
+ }
9491
+ ],
9492
+ "intercom": [
9493
+ {
9494
+ "path": "talking",
9495
+ "valueType": "boolean"
9496
+ },
9497
+ {
9498
+ "path": "lastSessionAt",
9499
+ "valueType": "number"
9500
+ },
9501
+ {
9502
+ "path": "ability.sampleRate",
9503
+ "valueType": "number"
9504
+ },
9505
+ {
9506
+ "path": "ability.duplex",
9507
+ "valueType": "enum",
9508
+ "enumValues": ["half", "full"]
9509
+ },
9510
+ {
9511
+ "path": "ability.maxBacklogMs",
9512
+ "valueType": "number"
9513
+ }
9514
+ ],
9515
+ "lawn-mower-control": [
9516
+ {
9517
+ "path": "activity",
9518
+ "valueType": "enum",
9519
+ "enumValues": [
9520
+ "idle",
9521
+ "mowing",
9522
+ "paused",
9523
+ "docked",
9524
+ "error"
9525
+ ]
9526
+ },
9527
+ {
9528
+ "path": "batteryLevel",
9529
+ "valueType": "number"
9530
+ },
9531
+ {
9532
+ "path": "progressPercent",
9533
+ "valueType": "number"
9534
+ },
9535
+ {
9536
+ "path": "currentCode",
9537
+ "valueType": "number"
9538
+ },
9539
+ {
9540
+ "path": "currentCodeLabel",
9541
+ "valueType": "string"
9542
+ },
9543
+ {
9544
+ "path": "severity",
9545
+ "valueType": "enum",
9546
+ "enumValues": [
9547
+ "info",
9548
+ "warning",
9549
+ "error"
9550
+ ]
9551
+ }
9552
+ ],
9553
+ "lock-control": [{
9554
+ "path": "state",
9555
+ "valueType": "enum",
9556
+ "enumValues": [
9557
+ "locked",
9558
+ "unlocked",
9559
+ "locking",
9560
+ "unlocking",
9561
+ "jammed"
9562
+ ]
9563
+ }],
9564
+ "media-player": [
9565
+ {
9566
+ "path": "state",
9567
+ "valueType": "enum",
9568
+ "enumValues": [
9569
+ "off",
9570
+ "on",
9571
+ "idle",
9572
+ "playing",
9573
+ "paused",
9574
+ "buffering",
9575
+ "standby"
9576
+ ]
9577
+ },
9578
+ {
9579
+ "path": "volumeLevel",
9580
+ "valueType": "number"
9581
+ },
9582
+ {
9583
+ "path": "isMuted",
9584
+ "valueType": "boolean"
9585
+ },
9586
+ {
9587
+ "path": "source",
9588
+ "valueType": "string"
9589
+ },
9590
+ {
9591
+ "path": "currentMedia.type",
9592
+ "valueType": "string"
9593
+ },
9594
+ {
9595
+ "path": "currentMedia.title",
9596
+ "valueType": "string"
9597
+ },
9598
+ {
9599
+ "path": "currentMedia.artist",
9600
+ "valueType": "string"
9601
+ },
9602
+ {
9603
+ "path": "currentMedia.album",
9604
+ "valueType": "string"
9605
+ },
9606
+ {
9607
+ "path": "currentMedia.imageUrl",
9608
+ "valueType": "string"
9609
+ },
9610
+ {
9611
+ "path": "positionMs",
9612
+ "valueType": "number"
9613
+ },
9614
+ {
9615
+ "path": "durationMs",
9616
+ "valueType": "number"
9617
+ },
9618
+ {
9619
+ "path": "shuffle",
9620
+ "valueType": "boolean"
9621
+ },
9622
+ {
9623
+ "path": "repeat",
9624
+ "valueType": "enum",
9625
+ "enumValues": [
9626
+ "off",
9627
+ "all",
9628
+ "one"
9629
+ ]
9630
+ }
9631
+ ],
9632
+ "motion": [
9633
+ {
9634
+ "path": "detected",
9635
+ "valueType": "boolean"
9636
+ },
9637
+ {
9638
+ "path": "lastDetectedAt",
9639
+ "valueType": "number"
9640
+ },
9641
+ {
9642
+ "path": "autoClearAfterMs",
9643
+ "valueType": "number"
9644
+ }
9645
+ ],
9646
+ "motion-trigger": [{
9647
+ "path": "enabled",
9648
+ "valueType": "boolean"
9649
+ }],
9650
+ "motion-zones": [{
9651
+ "path": "enabled",
9652
+ "valueType": "boolean"
9653
+ }, {
9654
+ "path": "sensitivity",
9655
+ "valueType": "number"
9656
+ }],
9657
+ "mqtt-broker": [{
9658
+ "path": "brokerCount",
9659
+ "valueType": "number"
9660
+ }, {
9661
+ "path": "embeddedRunning",
9662
+ "valueType": "boolean"
9663
+ }],
9664
+ "native-object-detection": [{
9665
+ "path": "enabled",
9666
+ "valueType": "boolean"
9667
+ }],
9668
+ "navigation": [
9669
+ {
9670
+ "path": "mode",
9671
+ "valueType": "enum",
9672
+ "enumValues": [
9673
+ "idle",
9674
+ "cleaning",
9675
+ "spot",
9676
+ "following",
9677
+ "goto",
9678
+ "returning",
9679
+ "paused",
9680
+ "unknown"
9681
+ ]
9682
+ },
9683
+ {
9684
+ "path": "following",
9685
+ "valueType": "boolean"
9686
+ },
9687
+ {
9688
+ "path": "flash",
9689
+ "valueType": "boolean"
9690
+ },
9691
+ {
9692
+ "path": "lightMode",
9693
+ "valueType": "enum",
9694
+ "enumValues": ["auto", "manual"]
9695
+ },
9696
+ {
9697
+ "path": "lightLevel",
9698
+ "valueType": "number"
9699
+ }
9700
+ ],
9701
+ "network-link": [
9702
+ {
9703
+ "path": "type",
9704
+ "valueType": "enum",
9705
+ "enumValues": [
9706
+ "wifi",
9707
+ "ethernet",
9708
+ "cellular",
9709
+ "unknown"
9710
+ ]
9711
+ },
9712
+ {
9713
+ "path": "signalPercent",
9714
+ "valueType": "number"
9715
+ },
9716
+ {
9717
+ "path": "rssiDbm",
9718
+ "valueType": "number"
9719
+ },
9720
+ {
9721
+ "path": "ssid",
9722
+ "valueType": "string"
9723
+ },
9724
+ {
9725
+ "path": "lastUpdated",
9726
+ "valueType": "number"
9727
+ }
9728
+ ],
9729
+ "notifier": [
9730
+ {
9731
+ "path": "lastSentAt",
9732
+ "valueType": "number"
9733
+ },
9734
+ {
9735
+ "path": "lastError",
9736
+ "valueType": "string"
9737
+ },
9738
+ {
9739
+ "path": "queueDepth",
9740
+ "valueType": "number"
9741
+ },
9742
+ {
9743
+ "path": "supports.image",
9744
+ "valueType": "boolean"
9745
+ },
9746
+ {
9747
+ "path": "supports.priority",
9748
+ "valueType": "boolean"
9749
+ },
9750
+ {
9751
+ "path": "supports.data",
9752
+ "valueType": "boolean"
9753
+ },
9754
+ {
9755
+ "path": "supports.actions",
9756
+ "valueType": "boolean"
9757
+ },
9758
+ {
9759
+ "path": "supports.recipients",
9760
+ "valueType": "boolean"
9761
+ }
9762
+ ],
9763
+ "numeric-sensor": [
9764
+ {
9765
+ "path": "value",
9766
+ "valueType": "number"
9767
+ },
9768
+ {
9769
+ "path": "unit",
9770
+ "valueType": "string"
9771
+ },
9772
+ {
9773
+ "path": "precision",
9774
+ "valueType": "number"
9775
+ }
9776
+ ],
9777
+ "pet-feeder": [
9778
+ {
9779
+ "path": "foodLevel",
9780
+ "valueType": "number"
9781
+ },
9782
+ {
9783
+ "path": "food1",
9784
+ "valueType": "number"
9785
+ },
9786
+ {
9787
+ "path": "food2",
9788
+ "valueType": "number"
9789
+ },
9790
+ {
9791
+ "path": "lowFood",
9792
+ "valueType": "boolean"
9793
+ },
9794
+ {
9795
+ "path": "batteryPower",
9796
+ "valueType": "number"
9797
+ },
9798
+ {
9799
+ "path": "desiccantLeftDays",
9800
+ "valueType": "number"
9801
+ },
9802
+ {
9803
+ "path": "feeding",
9804
+ "valueType": "boolean"
9805
+ },
9806
+ {
9807
+ "path": "status",
9808
+ "valueType": "enum",
9809
+ "enumValues": [
9810
+ "normal",
9811
+ "offline",
9812
+ "on_batteries"
9813
+ ]
9814
+ },
9815
+ {
9816
+ "path": "error",
9817
+ "valueType": "string"
9818
+ },
9819
+ {
9820
+ "path": "errorCode",
9821
+ "valueType": "number"
9822
+ },
9823
+ {
9824
+ "path": "isDualHopper",
9825
+ "valueType": "boolean"
9826
+ },
9827
+ {
9828
+ "path": "childLock",
9829
+ "valueType": "boolean"
9830
+ },
9831
+ {
9832
+ "path": "indicatorLight",
9833
+ "valueType": "boolean"
9834
+ },
9835
+ {
9836
+ "path": "feedSound",
9837
+ "valueType": "boolean"
9838
+ },
9839
+ {
9840
+ "path": "volume",
9841
+ "valueType": "number"
9842
+ }
9843
+ ],
9844
+ "power-meter": [
9845
+ {
9846
+ "path": "watts",
9847
+ "valueType": "number"
9848
+ },
9849
+ {
9850
+ "path": "kwhTotal",
9851
+ "valueType": "number"
9852
+ },
9853
+ {
9854
+ "path": "volts",
9855
+ "valueType": "number"
9856
+ },
9857
+ {
9858
+ "path": "amps",
9859
+ "valueType": "number"
9860
+ },
9861
+ {
9862
+ "path": "va",
9863
+ "valueType": "number"
9864
+ },
9865
+ {
9866
+ "path": "powerFactor",
9867
+ "valueType": "number"
9868
+ },
9869
+ {
9870
+ "path": "unit",
9871
+ "valueType": "string"
9872
+ },
9873
+ {
9874
+ "path": "precision",
9875
+ "valueType": "number"
9876
+ }
9877
+ ],
9878
+ "presence": [
9879
+ {
9880
+ "path": "state",
9881
+ "valueType": "string"
9882
+ },
9883
+ {
9884
+ "path": "location",
9885
+ "valueType": "string"
9886
+ },
9887
+ {
9888
+ "path": "gps.latitude",
9889
+ "valueType": "number"
9890
+ },
9891
+ {
9892
+ "path": "gps.longitude",
9893
+ "valueType": "number"
9894
+ },
9895
+ {
9896
+ "path": "gps.accuracyMeters",
9897
+ "valueType": "number"
9898
+ },
9899
+ {
9900
+ "path": "batteryPercent",
9901
+ "valueType": "number"
9902
+ }
9903
+ ],
9904
+ "pressure-sensor": [
9905
+ {
9906
+ "path": "hpa",
9907
+ "valueType": "number"
9908
+ },
9909
+ {
9910
+ "path": "unit",
9911
+ "valueType": "string"
9912
+ },
9913
+ {
9914
+ "path": "precision",
9915
+ "valueType": "number"
9916
+ }
9917
+ ],
9918
+ "privacy-mask": [{
9919
+ "path": "enabled",
9920
+ "valueType": "boolean"
9921
+ }, {
9922
+ "path": "audioEnabled",
9923
+ "valueType": "boolean"
9924
+ }],
9925
+ "ptz": [
9926
+ {
9927
+ "path": "pan",
9928
+ "valueType": "number"
9929
+ },
9930
+ {
9931
+ "path": "tilt",
9932
+ "valueType": "number"
9933
+ },
9934
+ {
9935
+ "path": "zoom",
9936
+ "valueType": "number"
9937
+ },
9938
+ {
9939
+ "path": "autofocus",
9940
+ "valueType": "boolean"
9941
+ }
9942
+ ],
9943
+ "ptz-autotrack": [
9944
+ {
9945
+ "path": "enabled",
9946
+ "valueType": "boolean"
9947
+ },
9948
+ {
9949
+ "path": "currentSettings.targetType",
9950
+ "valueType": "string"
9951
+ },
9952
+ {
9953
+ "path": "currentSettings.stopDelaySeconds",
9954
+ "valueType": "number"
9955
+ },
9956
+ {
9957
+ "path": "currentSettings.disappearDelaySeconds",
9958
+ "valueType": "number"
9959
+ }
9960
+ ],
9961
+ "recording-archive": [
9962
+ {
9963
+ "path": "deviceId",
9964
+ "valueType": "number"
9965
+ },
9966
+ {
9967
+ "path": "enabled",
9968
+ "valueType": "boolean"
9969
+ },
9970
+ {
9971
+ "path": "activeMode",
9972
+ "valueType": "enum",
9973
+ "enumValues": [
9974
+ "off",
9975
+ "events",
9976
+ "continuous",
9977
+ "on-device-decision"
9978
+ ]
9979
+ },
9980
+ {
9981
+ "path": "nodeId",
9982
+ "valueType": "string"
9983
+ },
9984
+ {
9985
+ "path": "storageBytes",
9986
+ "valueType": "number"
9987
+ }
9988
+ ],
9989
+ "recording-onboard": [
9990
+ {
9991
+ "path": "primaryTrackId",
9992
+ "valueType": "string"
9993
+ },
9994
+ {
9995
+ "path": "enabled",
9996
+ "valueType": "boolean"
9997
+ },
9998
+ {
9999
+ "path": "overwriteWhenFull",
10000
+ "valueType": "boolean"
10001
+ },
10002
+ {
10003
+ "path": "preRecordSec",
10004
+ "valueType": "number"
10005
+ },
10006
+ {
10007
+ "path": "postRecordSec",
10008
+ "valueType": "number"
10009
+ },
10010
+ {
10011
+ "path": "segmentMinutes",
10012
+ "valueType": "number"
10013
+ },
10014
+ {
10015
+ "path": "unreadableWindows",
10016
+ "valueType": "number"
10017
+ },
10018
+ {
10019
+ "path": "recordingToNowhere",
10020
+ "valueType": "boolean"
10021
+ }
10022
+ ],
10023
+ "recording-signal": [{
10024
+ "path": "active",
10025
+ "valueType": "boolean"
10026
+ }, {
10027
+ "path": "reason",
10028
+ "valueType": "string"
10029
+ }],
10030
+ "running-state": [
10031
+ {
10032
+ "path": "running",
10033
+ "valueType": "boolean"
10034
+ },
10035
+ {
10036
+ "path": "since",
10037
+ "valueType": "number"
10038
+ },
10039
+ {
10040
+ "path": "source",
10041
+ "valueType": "enum",
10042
+ "enumValues": ["native", "assigned"]
10043
+ },
10044
+ {
10045
+ "path": "phase",
10046
+ "valueType": "string"
10047
+ }
10048
+ ],
10049
+ "script-runner": [
10050
+ {
10051
+ "path": "isRunning",
10052
+ "valueType": "boolean"
10053
+ },
10054
+ {
10055
+ "path": "lastRunAt",
10056
+ "valueType": "number"
10057
+ },
10058
+ {
10059
+ "path": "lastRunSuccess",
10060
+ "valueType": "boolean"
10061
+ },
10062
+ {
10063
+ "path": "lastError",
10064
+ "valueType": "string"
10065
+ }
10066
+ ],
10067
+ "smoke": [{
10068
+ "path": "detected",
10069
+ "valueType": "boolean"
10070
+ }],
10071
+ "snapshot": [
10072
+ {
10073
+ "path": "lastCapturedAt",
10074
+ "valueType": "number"
10075
+ },
10076
+ {
10077
+ "path": "cacheAgeMs",
10078
+ "valueType": "number"
10079
+ },
10080
+ {
10081
+ "path": "lastBytes",
10082
+ "valueType": "number"
10083
+ },
10084
+ {
10085
+ "path": "lastStreamId",
10086
+ "valueType": "string"
10087
+ }
10088
+ ],
10089
+ "stream-params": [
10090
+ {
10091
+ "path": "main.width",
10092
+ "valueType": "number"
10093
+ },
10094
+ {
10095
+ "path": "main.height",
10096
+ "valueType": "number"
10097
+ },
10098
+ {
10099
+ "path": "main.codec",
10100
+ "valueType": "enum",
10101
+ "enumValues": ["h264", "h265"]
10102
+ },
10103
+ {
10104
+ "path": "main.framerate",
10105
+ "valueType": "number"
10106
+ },
10107
+ {
10108
+ "path": "main.bitrate",
10109
+ "valueType": "number"
10110
+ },
10111
+ {
10112
+ "path": "main.bitrateMode",
10113
+ "valueType": "enum",
10114
+ "enumValues": ["vbr", "cbr"]
10115
+ },
10116
+ {
10117
+ "path": "main.encoderProfile",
10118
+ "valueType": "enum",
10119
+ "enumValues": [
10120
+ "high",
10121
+ "main",
10122
+ "baseline"
10123
+ ]
10124
+ },
10125
+ {
10126
+ "path": "main.gop",
10127
+ "valueType": "number"
10128
+ },
10129
+ {
10130
+ "path": "main.audio",
10131
+ "valueType": "boolean"
10132
+ },
10133
+ {
10134
+ "path": "sub.width",
10135
+ "valueType": "number"
10136
+ },
10137
+ {
10138
+ "path": "sub.height",
10139
+ "valueType": "number"
10140
+ },
10141
+ {
10142
+ "path": "sub.codec",
10143
+ "valueType": "enum",
10144
+ "enumValues": ["h264", "h265"]
10145
+ },
10146
+ {
10147
+ "path": "sub.framerate",
10148
+ "valueType": "number"
10149
+ },
10150
+ {
10151
+ "path": "sub.bitrate",
10152
+ "valueType": "number"
10153
+ },
10154
+ {
10155
+ "path": "sub.bitrateMode",
10156
+ "valueType": "enum",
10157
+ "enumValues": ["vbr", "cbr"]
10158
+ },
10159
+ {
10160
+ "path": "sub.encoderProfile",
10161
+ "valueType": "enum",
10162
+ "enumValues": [
10163
+ "high",
10164
+ "main",
10165
+ "baseline"
10166
+ ]
10167
+ },
10168
+ {
10169
+ "path": "sub.gop",
10170
+ "valueType": "number"
10171
+ },
10172
+ {
10173
+ "path": "sub.audio",
10174
+ "valueType": "boolean"
10175
+ },
10176
+ {
10177
+ "path": "ext.width",
10178
+ "valueType": "number"
10179
+ },
10180
+ {
10181
+ "path": "ext.height",
10182
+ "valueType": "number"
10183
+ },
10184
+ {
10185
+ "path": "ext.codec",
10186
+ "valueType": "enum",
10187
+ "enumValues": ["h264", "h265"]
10188
+ },
10189
+ {
10190
+ "path": "ext.framerate",
10191
+ "valueType": "number"
10192
+ },
10193
+ {
10194
+ "path": "ext.bitrate",
10195
+ "valueType": "number"
10196
+ },
10197
+ {
10198
+ "path": "ext.bitrateMode",
10199
+ "valueType": "enum",
10200
+ "enumValues": ["vbr", "cbr"]
10201
+ },
10202
+ {
10203
+ "path": "ext.encoderProfile",
10204
+ "valueType": "enum",
10205
+ "enumValues": [
10206
+ "high",
10207
+ "main",
10208
+ "baseline"
10209
+ ]
10210
+ },
10211
+ {
10212
+ "path": "ext.gop",
10213
+ "valueType": "number"
10214
+ },
10215
+ {
10216
+ "path": "ext.audio",
10217
+ "valueType": "boolean"
10218
+ }
10219
+ ],
10220
+ "switch": [{
10221
+ "path": "on",
10222
+ "valueType": "boolean"
10223
+ }],
10224
+ "tamper": [{
10225
+ "path": "tampered",
10226
+ "valueType": "boolean"
10227
+ }],
10228
+ "temperature-sensor": [
10229
+ {
10230
+ "path": "celsius",
10231
+ "valueType": "number"
10232
+ },
10233
+ {
10234
+ "path": "unit",
10235
+ "valueType": "string"
10236
+ },
10237
+ {
10238
+ "path": "precision",
10239
+ "valueType": "number"
10240
+ }
10241
+ ],
10242
+ "update": [
10243
+ {
10244
+ "path": "currentVersion",
10245
+ "valueType": "string"
10246
+ },
10247
+ {
10248
+ "path": "availableVersion",
10249
+ "valueType": "string"
10250
+ },
10251
+ {
10252
+ "path": "updatable",
10253
+ "valueType": "boolean"
10254
+ },
10255
+ {
10256
+ "path": "state",
10257
+ "valueType": "string"
10258
+ },
10259
+ {
10260
+ "path": "inProgress",
10261
+ "valueType": "boolean"
10262
+ }
10263
+ ],
10264
+ "vacuum-control": [
10265
+ {
10266
+ "path": "state",
10267
+ "valueType": "enum",
10268
+ "enumValues": [
10269
+ "idle",
10270
+ "cleaning",
10271
+ "paused",
10272
+ "returning",
10273
+ "docked",
10274
+ "drying",
10275
+ "error"
10276
+ ]
10277
+ },
10278
+ {
10279
+ "path": "batteryLevel",
10280
+ "valueType": "number"
10281
+ },
10282
+ {
10283
+ "path": "fanSpeed",
10284
+ "valueType": "string"
10285
+ },
10286
+ {
10287
+ "path": "progressPercent",
10288
+ "valueType": "number"
10289
+ },
10290
+ {
10291
+ "path": "errorCode",
10292
+ "valueType": "number"
10293
+ },
10294
+ {
10295
+ "path": "errorLabel",
10296
+ "valueType": "string"
10297
+ }
10298
+ ],
10299
+ "valve": [{
10300
+ "path": "state",
10301
+ "valueType": "enum",
10302
+ "enumValues": [
10303
+ "open",
10304
+ "opening",
10305
+ "closing",
10306
+ "closed",
10307
+ "stopped"
10308
+ ]
10309
+ }, {
10310
+ "path": "position",
10311
+ "valueType": "number"
10312
+ }],
10313
+ "vibration": [{
10314
+ "path": "detected",
10315
+ "valueType": "boolean"
10316
+ }],
10317
+ "water-heater": [
10318
+ {
10319
+ "path": "currentTemp",
10320
+ "valueType": "number"
10321
+ },
10322
+ {
10323
+ "path": "targetTemp",
10324
+ "valueType": "number"
10325
+ },
10326
+ {
10327
+ "path": "operationMode",
10328
+ "valueType": "string"
10329
+ },
10330
+ {
10331
+ "path": "away",
10332
+ "valueType": "boolean"
10333
+ },
10334
+ {
10335
+ "path": "minTemp",
10336
+ "valueType": "number"
10337
+ },
10338
+ {
10339
+ "path": "maxTemp",
10340
+ "valueType": "number"
10341
+ }
10342
+ ],
10343
+ "weather": [
10344
+ {
10345
+ "path": "condition",
10346
+ "valueType": "string"
10347
+ },
10348
+ {
10349
+ "path": "temperature",
10350
+ "valueType": "number"
10351
+ },
10352
+ {
10353
+ "path": "temperatureUnit",
10354
+ "valueType": "string"
10355
+ },
10356
+ {
10357
+ "path": "humidity",
10358
+ "valueType": "number"
10359
+ },
10360
+ {
10361
+ "path": "pressure",
10362
+ "valueType": "number"
10363
+ },
10364
+ {
10365
+ "path": "pressureUnit",
10366
+ "valueType": "string"
10367
+ },
10368
+ {
10369
+ "path": "windSpeed",
10370
+ "valueType": "number"
10371
+ },
10372
+ {
10373
+ "path": "windSpeedUnit",
10374
+ "valueType": "string"
10375
+ },
10376
+ {
10377
+ "path": "windBearing",
10378
+ "valueType": "number"
10379
+ }
10380
+ ],
10381
+ "zone-analytics": [
10382
+ {
10383
+ "path": "ts",
10384
+ "valueType": "number"
10385
+ },
10386
+ {
10387
+ "path": "frameWidth",
10388
+ "valueType": "number"
10389
+ },
10390
+ {
10391
+ "path": "frameHeight",
10392
+ "valueType": "number"
10393
+ },
10394
+ {
10395
+ "path": "frame.totalObjects",
10396
+ "valueType": "number"
10397
+ },
10398
+ {
10399
+ "path": "frame.standingObjects",
10400
+ "valueType": "number"
10401
+ },
10402
+ {
10403
+ "path": "frame.transientObjects",
10404
+ "valueType": "number"
10405
+ },
10406
+ {
10407
+ "path": "unzoned.totalObjects",
10408
+ "valueType": "number"
10409
+ },
10410
+ {
10411
+ "path": "unzoned.standingObjects",
10412
+ "valueType": "number"
10413
+ },
10414
+ {
10415
+ "path": "unzoned.transientObjects",
10416
+ "valueType": "number"
10417
+ }
10418
+ ]
10419
+ });
8442
10420
  object({
8443
10421
  code: string().regex(/^[a-z][a-z0-9-]*(\.[a-z0-9-]+)+$/),
8444
10422
  params: record(string(), union([string(), number()])).optional()
@@ -8797,7 +10775,7 @@ function errMsg(err) {
8797
10775
  return String(err);
8798
10776
  }
8799
10777
  //#endregion
8800
- //#region ../types/dist/composition-CB6PMT9p.mjs
10778
+ //#region ../types/dist/composition-kEl9mevu.mjs
8801
10779
  /**
8802
10780
  * The ffmpeg build every CamStack node downloads, per platform and arch.
8803
10781
  *
@@ -8857,7 +10835,7 @@ portable("linux64"), portable("linuxarm64"), portable("macarm64"), portable("mac
8857
10835
  * ONE table for everyone who asks "is this device HIGH?": the
8858
10836
  * recorder's `RecordingTriggers.sensorDeviceIds` trigger, the post-analysis
8859
10837
  * sensor markers, the orchestrator's camera-sensors bridge and
8860
- * the sources of a composite doorbell (`doorbellFeatureSources`, D671).
10838
+ * the sources of a pulse (`compilePulseOverride`, D936).
8861
10839
  * A second copy would diverge at the first cap added, and the symptom — "the
8862
10840
  * sensor rings the doorbell but does not record" — is exactly D62.
8863
10841
  *
@@ -9098,6 +11076,20 @@ var table = {
9098
11076
  apply: () => {
9099
11077
  throw new ExpressionEvalError("count: stateful evaluation context is required");
9100
11078
  }
11079
+ },
11080
+ dwell: {
11081
+ minArgs: 3,
11082
+ maxArgs: 3,
11083
+ apply: () => {
11084
+ throw new ExpressionEvalError("dwell: stateful evaluation context is required");
11085
+ }
11086
+ },
11087
+ latchedAt: {
11088
+ minArgs: 1,
11089
+ maxArgs: 1,
11090
+ apply: () => {
11091
+ throw new ExpressionEvalError("latchedAt: stateful evaluation context is required");
11092
+ }
9101
11093
  }
9102
11094
  };
9103
11095
  Object.freeze(Object.assign(Object.create(null), table));
@@ -12167,7 +14159,7 @@ var LogChannelDescriptorSchema = object({
12167
14159
  * `true` is a PROMISE with two halves, and both must hold: the gate is
12168
14160
  * consulted with the numeric device id, AND every line the channel admits
12169
14161
  * carries `tags: { deviceId }` with that same numeric id. The second half is
12170
- * what makes `| json | deviceId="617"` work in Loki — `loki-payload.ts`
14162
+ * what makes `| json | deviceId="102"` work in Loki — `loki-payload.ts`
12171
14163
  * keeps `deviceId` out of the stream labels for cardinality, so the tag in
12172
14164
  * the body is the only way to filter.
12173
14165
  *
@@ -12443,7 +14435,7 @@ var ModelVariantGroupSchema = object({
12443
14435
  precision: _enum(["fp32", "int8"]).optional(),
12444
14436
  /**
12445
14437
  * Training / latency-variant axis. Omit ⇒ the standard build. `test` marks
12446
- * an alternate training of the same family (Scrypted `relu_test`); chip
14438
+ * an alternate training of the same family (plugin catalog `relu_test`); chip
12447
14439
  * label is "Test".
12448
14440
  */
12449
14441
  optimization: _enum(["standard", "test"]).optional(),
@@ -12695,8 +14687,8 @@ var ModelCatalogEntrySchema = object({
12695
14687
  provider: ModelProviderIdSchema.optional(),
12696
14688
  /**
12697
14689
  * Per-MODEL class map override. Absent ⇒ the step's `StepDefinition.classMap`
12698
- * applies (Frigate / COCO public catalog). Set on a custom model whose raw
12699
- * labels already ARE the CamStack macros (Scrypted identity map).
14690
+ * applies (plus catalog / COCO public catalog). Set on a custom model whose raw
14691
+ * labels already ARE the CamStack macros (plugin catalog identity map).
12700
14692
  */
12701
14693
  classMap: DetectionCatalogClassMapSchema.optional(),
12702
14694
  /**
@@ -15714,7 +17706,7 @@ method(object({
15714
17706
  * `1` is real time and is the ONLY value that allows the copy branch —
15715
17707
  * anything else forces `libx264` over the window. That was priced
15716
17708
  * before it was chosen: a per-event burst measured at 0.23 s and 254 KB
15717
- * on a real 615 720p cut, against 922 KB for the copy it replaces. A
17709
+ * on a real 101 720p cut, against 922 KB for the copy it replaces. A
15718
17710
  * re-encode is capped at 720p (`EVENT_CLIP_ENCODE_MAX_WIDTH`), because
15719
17711
  * once the decode is forced the width stops being free.
15720
17712
  */
@@ -16134,6 +18126,7 @@ var CompositionRunStatusSchema = _enum([
16134
18126
  "starting",
16135
18127
  "running",
16136
18128
  "degraded",
18129
+ "incomplete",
16137
18130
  "failed"
16138
18131
  ]);
16139
18132
  var CompositionFieldStateKindSchema = _enum([
@@ -16183,6 +18176,13 @@ var ComposerUnreadableBlockSchema = object({
16183
18176
  /** The parse error, in the operator's words. */
16184
18177
  error: string()
16185
18178
  });
18179
+ /** A confirmed release the hub did not accept. `deviceId` is the claim's device. */
18180
+ var UnreleasedClaimSchema = object({
18181
+ deviceId: number().int(),
18182
+ capName: string(),
18183
+ owner: string(),
18184
+ error: string()
18185
+ });
16186
18186
  method(object({
16187
18187
  /** The shared Blocks integration; null until `core-blocks` has reconciled it. */
16188
18188
  integrationId: string().nullable(),
@@ -16192,7 +18192,13 @@ method(object({
16192
18192
  /** Operator restarts: rebuild these runtimes and re-resolve their sources. Stores nothing (D62). */
16193
18193
  restartBlockIds: array(string()),
16194
18194
  /** Composition rows that exist but do not parse: held, never withdrawn, reported failed. */
16195
- unreadableBlocks: array(ComposerUnreadableBlockSchema)
18195
+ unreadableBlocks: array(ComposerUnreadableBlockSchema),
18196
+ /**
18197
+ * Operator-confirmed deletions. Their claims are released on this apply,
18198
+ * before any replacement block claims. A block that merely vanished from the
18199
+ * snapshot is not listed here and still waits for two applies (D49).
18200
+ */
18201
+ retiredBlockIds: array(string()).optional()
16196
18202
  }), object({
16197
18203
  blocks: array(object({
16198
18204
  blockId: string(),
@@ -16204,7 +18210,13 @@ method(object({
16204
18210
  * integration unknown, its own rows unread or read empty once). An empty
16205
18211
  * apply the caller owes is paid off only by one the composer acted on (D49).
16206
18212
  */
16207
- acted: boolean()
18213
+ acted: boolean(),
18214
+ /**
18215
+ * Confirmed releases this apply tried and the hub did not accept. Empty when
18216
+ * every one landed (or there was nothing to hand back). Absent on a result
18217
+ * that never got that far.
18218
+ */
18219
+ unreleasedClaims: array(UnreleasedClaimSchema).optional()
16208
18220
  }), {
16209
18221
  kind: "mutation",
16210
18222
  auth: "admin"
@@ -16247,7 +18259,15 @@ Object.freeze({
16247
18259
  kind: "fixed",
16248
18260
  result: ["number", "null"]
16249
18261
  },
16250
- count: NUMBER
18262
+ count: NUMBER,
18263
+ dwell: {
18264
+ kind: "fixed",
18265
+ result: ["boolean", "null"]
18266
+ },
18267
+ latchedAt: {
18268
+ kind: "fixed",
18269
+ result: ["number", "null"]
18270
+ }
16251
18271
  });
16252
18272
  `${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
16253
18273
  /**
@@ -16320,6 +18340,7 @@ var CoreBlockStatusSchema = _enum([
16320
18340
  "starting",
16321
18341
  "running",
16322
18342
  "degraded",
18343
+ "incomplete",
16323
18344
  "failed"
16324
18345
  ]);
16325
18346
  /** path → TypeScript source for a multi-file block. */
@@ -38268,7 +40289,7 @@ var PRIMARY_CATEGORIES = new Set(ENTRIES.map((e) => e.primaryCategory));
38268
40289
  * `locationKey` is ALWAYS {@link locationIconKey} of the label — never the
38269
40290
  * operator's casing. The registry matches labels trimmed + case-insensitively
38270
40291
  * everywhere (`addLocation`, `removeLocation`, `renameLocation`), and a
38271
- * case-only rename (`cucina` → `Cucina`) is a real edit this repo supports; a
40292
+ * case-only rename (`kitchen` → `Kitchen`) is a real edit this repo supports; a
38272
40293
  * map keyed on the displayed casing would orphan its entry on exactly that
38273
40294
  * edit. Consumers join by keying their own label through `locationIconKey`.
38274
40295
  */
@@ -38293,7 +40314,7 @@ var LocationDescriptionAssignmentSchema = object({
38293
40314
  /**
38294
40315
  * A SITE ZONE — a named part of the property that several locations belong to.
38295
40316
  *
38296
- * "Zona notte" holds every bedroom; "Zona giorno" the living room and the
40317
+ * "Night zone" holds every bedroom; "Zona giorno" the living room and the
38297
40318
  * kitchen. A camera belongs to exactly one location, and a location to at most
38298
40319
  * one zone, so a camera's zone is derived and never stored on the device: the
38299
40320
  * whole point of this entity is that grouping rooms touches no device row.
@@ -38322,7 +40343,7 @@ var LocationDescriptionAssignmentSchema = object({
38322
40343
  * the locations inside it.
38323
40344
  *
38324
40345
  * The LABEL is carried alongside the key because the key is lossy on purpose —
38325
- * a surface must show "Zona notte", not "zona notte". Locations are carried
40346
+ * a surface must show "Night zone", not "night zone". Locations are carried
38326
40347
  * here, rather than left to a second call, because every consumer wants both
38327
40348
  * at once and a viewer that asked twice could render a zone whose membership
38328
40349
  * it has not fetched yet.
@@ -40435,8 +42456,8 @@ var LoadContributionSchema = object({
40435
42456
  "unattributable"
40436
42457
  ]),
40437
42458
  /**
40438
- * What ONE entry is, in the contributor's own words — `615/high`,
40439
- * `617/native`, `cuda:0 shared pool`. Free text because the unit differs per
42459
+ * What ONE entry is, in the contributor's own words — `101/high`,
42460
+ * `102/native`, `cuda:0 shared pool`. Free text because the unit differs per
40440
42461
  * family and inventing a common one would lose the only information that
40441
42462
  * makes two entries for the same camera distinguishable.
40442
42463
  */
@@ -42084,6 +44105,381 @@ var _macroLookup = /* @__PURE__ */ new Map();
42084
44105
  for (const [k, v] of Object.entries(YAMNET_TO_MACRO.mapping)) _macroLookup.set(k.toLowerCase(), v);
42085
44106
  for (const [k, v] of Object.entries(APPLE_SA_TO_MACRO.mapping)) _macroLookup.set(k.toLowerCase(), v);
42086
44107
  /**
44108
+ * Palette entry ids (D939). Audio is the one gradient; `audio-*` leaves are
44109
+ * not entries. `heatmapScrub` is a mark, not an event kind.
44110
+ */
44111
+ var PALETTE_ENTRY_IDS = [
44112
+ "motion",
44113
+ "audio",
44114
+ "recording",
44115
+ "live",
44116
+ "heatmapScrub",
44117
+ "person",
44118
+ "vehicle",
44119
+ "animal",
44120
+ "package",
44121
+ "sensor",
44122
+ "control",
44123
+ "face",
44124
+ "plate",
44125
+ "car",
44126
+ "truck",
44127
+ "bus",
44128
+ "motorcycle",
44129
+ "bicycle",
44130
+ "airplane",
44131
+ "boat",
44132
+ "train",
44133
+ "bird",
44134
+ "dog",
44135
+ "cat",
44136
+ "horse",
44137
+ "sheep",
44138
+ "cow",
44139
+ "elephant",
44140
+ "bear",
44141
+ "zebra",
44142
+ "giraffe",
44143
+ "package-delivered",
44144
+ "package-picked-up",
44145
+ "suitcase",
44146
+ "backpack",
44147
+ "handbag",
44148
+ "contact",
44149
+ "motion-sensor",
44150
+ "smoke",
44151
+ "flood",
44152
+ "gas",
44153
+ "carbon-monoxide",
44154
+ "vibration",
44155
+ "tamper",
44156
+ "presence",
44157
+ "enum-sensor",
44158
+ "device-event",
44159
+ "lock",
44160
+ "cover",
44161
+ "switch",
44162
+ "siren",
44163
+ "button",
44164
+ "doorbell"
44165
+ ];
44166
+ var AUDIO_ENTRY_ID = "audio";
44167
+ /** Six rungs, quiet → loud. The opaque end is the entry's hex. */
44168
+ var AUDIO_GRADIENT_ALPHAS = [
44169
+ .3,
44170
+ .42,
44171
+ .55,
44172
+ .7,
44173
+ .85,
44174
+ 1
44175
+ ];
44176
+ var PALETTE_PRESET_IDS = [
44177
+ "camstack",
44178
+ "high-contrast",
44179
+ "okabe-ito"
44180
+ ];
44181
+ /** Frozen palette tables (D939). The spec refuses a table that breaks the rule. */
44182
+ var CAMSTACK_HEX = {
44183
+ motion: "#d946ef",
44184
+ audio: "#059eb8",
44185
+ recording: "#ef4444",
44186
+ live: "#8d7a00",
44187
+ heatmapScrub: "#4b32ff",
44188
+ person: "#11a64c",
44189
+ vehicle: "#3b82f6",
44190
+ animal: "#ea6a09",
44191
+ package: "#924667",
44192
+ sensor: "#624bbc",
44193
+ control: "#944d24",
44194
+ face: "#ed4f8d",
44195
+ plate: "#4b7027",
44196
+ car: "#9684cf",
44197
+ truck: "#0f9b89",
44198
+ bus: "#a734a9",
44199
+ motorcycle: "#c1133a",
44200
+ bicycle: "#0e6a9b",
44201
+ airplane: "#7c9928",
44202
+ boat: "#b17933",
44203
+ train: "#ad6ca3",
44204
+ bird: "#0f7c55",
44205
+ dog: "#c82700",
44206
+ cat: "#7268f2",
44207
+ horse: "#cb795e",
44208
+ sheep: "#b8636b",
44209
+ cow: "#cb2969",
44210
+ elephant: "#1158d2",
44211
+ bear: "#8d5e00",
44212
+ zebra: "#0097d6",
44213
+ giraffe: "#8f61bb",
44214
+ "package-delivered": "#cd3f9b",
44215
+ "package-picked-up": "#388a08",
44216
+ suitcase: "#666800",
44217
+ backpack: "#ec5022",
44218
+ handbag: "#a76ef8",
44219
+ contact: "#ab5a49",
44220
+ "motion-sensor": "#b95d1a",
44221
+ smoke: "#dd3858",
44222
+ flood: "#b31e7d",
44223
+ gas: "#5b70b5",
44224
+ "carbon-monoxide": "#7b4e8e",
44225
+ vibration: "#e65bba",
44226
+ tamper: "#98464b",
44227
+ presence: "#3a9468",
44228
+ "enum-sensor": "#7885f8",
44229
+ "device-event": "#8c43c8",
44230
+ lock: "#649653",
44231
+ cover: "#c67597",
44232
+ switch: "#7a812a",
44233
+ siren: "#ac5d7f",
44234
+ button: "#b276cd",
44235
+ doorbell: "#0087ab"
44236
+ };
44237
+ var CAMSTACK_FALLBACK = [
44238
+ "#b34dc7",
44239
+ "#1d7d34",
44240
+ "#db6b6c",
44241
+ "#a43d29",
44242
+ "#0e6ee6",
44243
+ "#29a10b",
44244
+ "#a98731",
44245
+ "#0181c6"
44246
+ ];
44247
+ var HIGH_CONTRAST_HEX = {
44248
+ motion: "#964360",
44249
+ audio: "#23a132",
44250
+ recording: "#2494ca",
44251
+ live: "#bd7e2b",
44252
+ heatmapScrub: "#ad6eea",
44253
+ person: "#62611e",
44254
+ vehicle: "#f4534c",
44255
+ animal: "#1556cd",
44256
+ package: "#9c4415",
44257
+ sensor: "#066c48",
44258
+ control: "#f2479f",
44259
+ face: "#139d8a",
44260
+ plate: "#909024",
44261
+ car: "#8e35ab",
44262
+ truck: "#bd0b2b",
44263
+ bus: "#7a88ca",
44264
+ motorcycle: "#e26725",
44265
+ bicycle: "#a6679b",
44266
+ airplane: "#7c5720",
44267
+ boat: "#467a1b",
44268
+ train: "#6f65a4",
44269
+ bird: "#cb717f",
44270
+ dog: "#c62490",
44271
+ cat: "#b36850",
44272
+ horse: "#1872ac",
44273
+ sheep: "#927939",
44274
+ cow: "#428a5c",
44275
+ elephant: "#d41160",
44276
+ bear: "#799453",
44277
+ zebra: "#a85455",
44278
+ giraffe: "#746be8",
44279
+ "package-delivered": "#824a80",
44280
+ "package-picked-up": "#614ac1",
44281
+ suitcase: "#2f77f3",
44282
+ backpack: "#fa476d",
44283
+ handbag: "#c14cbe",
44284
+ contact: "#c83921",
44285
+ "motion-sensor": "#a07ebd",
44286
+ smoke: "#a25b13",
44287
+ flood: "#526bab",
44288
+ gas: "#924938",
44289
+ "carbon-monoxide": "#bb7e53",
44290
+ vibration: "#b66182",
44291
+ tamper: "#3c6931",
44292
+ presence: "#6c851d",
44293
+ "enum-sensor": "#ad2d48",
44294
+ "device-event": "#5e9b04",
44295
+ lock: "#00a062",
44296
+ cover: "#ad8624",
44297
+ switch: "#d05259",
44298
+ siren: "#cd67b3",
44299
+ button: "#c9746a",
44300
+ doorbell: "#338eeb"
44301
+ };
44302
+ var HIGH_CONTRAST_FALLBACK = [
44303
+ "#817f3b",
44304
+ "#a0733e",
44305
+ "#8658b2",
44306
+ "#956301",
44307
+ "#bc652d",
44308
+ "#647331",
44309
+ "#a14c9e",
44310
+ "#d14e71"
44311
+ ];
44312
+ var OKABE_ITO_HEX = {
44313
+ motion: "#b88128",
44314
+ audio: "#1096c8",
44315
+ recording: "#009e73",
44316
+ live: "#9c8c22",
44317
+ heatmapScrub: "#0072b2",
44318
+ person: "#d55e00",
44319
+ vehicle: "#c0739f",
44320
+ animal: "#226d18",
44321
+ package: "#91446c",
44322
+ sensor: "#217b56",
44323
+ control: "#648647",
44324
+ face: "#c22998",
44325
+ plate: "#fa4575",
44326
+ car: "#956301",
44327
+ truck: "#2f77f3",
44328
+ bus: "#7a4e86",
44329
+ motorcycle: "#f54597",
44330
+ bicycle: "#bb3e75",
44331
+ airplane: "#e054c0",
44332
+ boat: "#457942",
44333
+ train: "#867afa",
44334
+ bird: "#88914c",
44335
+ dog: "#1556cd",
44336
+ cat: "#71702c",
44337
+ horse: "#9b4fa4",
44338
+ sheep: "#c0559d",
44339
+ cow: "#d14f65",
44340
+ elephant: "#98470f",
44341
+ bear: "#595896",
44342
+ zebra: "#96790e",
44343
+ giraffe: "#cb717b",
44344
+ "package-delivered": "#139d8a",
44345
+ "package-picked-up": "#906ead",
44346
+ suitcase: "#d02939",
44347
+ backpack: "#d41160",
44348
+ handbag: "#f64f54",
44349
+ contact: "#7258d2",
44350
+ "motion-sensor": "#b66182",
44351
+ smoke: "#627abb",
44352
+ flood: "#b86ae4",
44353
+ gas: "#a95261",
44354
+ "carbon-monoxide": "#c65d3c",
44355
+ vibration: "#7a40b7",
44356
+ tamper: "#914b34",
44357
+ presence: "#9481c3",
44358
+ "enum-sensor": "#ac6d47",
44359
+ "device-event": "#7b6fce",
44360
+ lock: "#c67662",
44361
+ cover: "#a6564d",
44362
+ switch: "#ad2c4e",
44363
+ siren: "#348e08",
44364
+ button: "#d27303",
44365
+ doorbell: "#55770f"
44366
+ };
44367
+ var OKABE_ITO_FALLBACK = [
44368
+ "#9a3784",
44369
+ "#a7392c",
44370
+ "#409d50",
44371
+ "#6987e7",
44372
+ "#ee5b3d",
44373
+ "#c0430d",
44374
+ "#af79b3",
44375
+ "#4b6628"
44376
+ ];
44377
+ /**
44378
+ * The display palette (D939). One table of colours, three presets, one
44379
+ * validator. Taxonomy colours and every consumer read this — there is no
44380
+ * second hex table.
44381
+ */
44382
+ var paletteHexSchema = string().regex(/^#[0-9a-f]{6}$/);
44383
+ var paletteSwatchSchema = discriminatedUnion("form", [object({
44384
+ form: literal("solid"),
44385
+ hex: paletteHexSchema
44386
+ }), object({
44387
+ form: literal("gradient"),
44388
+ hex: paletteHexSchema,
44389
+ alphas: array(number().gt(0).lte(1)).length(AUDIO_GRADIENT_ALPHAS.length)
44390
+ })]);
44391
+ var paletteReadySchema = object({
44392
+ status: literal("ready"),
44393
+ presetId: _enum(PALETTE_PRESET_IDS),
44394
+ customized: boolean(),
44395
+ source: _enum(["stored", "unconfigured"]),
44396
+ swatches: record(string(), paletteSwatchSchema),
44397
+ fallbacks: array(paletteHexSchema).length(8)
44398
+ });
44399
+ var paletteResultSchema = discriminatedUnion("status", [paletteReadySchema, object({
44400
+ status: literal("unknown"),
44401
+ reason: string()
44402
+ })]);
44403
+ var setPaletteInputSchema = union([object({ presetId: string() }), object({
44404
+ presetId: string(),
44405
+ overrides: record(string(), paletteSwatchSchema)
44406
+ })]);
44407
+ object({
44408
+ presetId: string(),
44409
+ overrides: record(string(), paletteSwatchSchema)
44410
+ });
44411
+ function solid(hex) {
44412
+ return {
44413
+ form: "solid",
44414
+ hex
44415
+ };
44416
+ }
44417
+ function audioGradient(hex) {
44418
+ return {
44419
+ form: "gradient",
44420
+ hex,
44421
+ alphas: [...AUDIO_GRADIENT_ALPHAS]
44422
+ };
44423
+ }
44424
+ function swatchesFrom(hexes) {
44425
+ const out = {};
44426
+ for (const id of PALETTE_ENTRY_IDS) {
44427
+ const hex = hexes[id];
44428
+ if (hex === void 0) throw new Error(`palette table missing ${id}`);
44429
+ out[id] = id === "audio" ? audioGradient(hex) : solid(hex);
44430
+ }
44431
+ return out;
44432
+ }
44433
+ function preset(id, name, hexes, fallbacks) {
44434
+ return {
44435
+ id,
44436
+ name,
44437
+ swatches: swatchesFrom(hexes),
44438
+ fallbacks
44439
+ };
44440
+ }
44441
+ var DISPLAY_PRESETS = [
44442
+ preset("camstack", "CamStack", CAMSTACK_HEX, CAMSTACK_FALLBACK),
44443
+ preset("high-contrast", "High contrast", HIGH_CONTRAST_HEX, HIGH_CONTRAST_FALLBACK),
44444
+ preset("okabe-ito", "Colour-blind safe", OKABE_ITO_HEX, OKABE_ITO_FALLBACK)
44445
+ ];
44446
+ function presetById(id) {
44447
+ return DISPLAY_PRESETS.find((item) => item.id === id);
44448
+ }
44449
+ function bundledCamstack() {
44450
+ const presetRow = presetById("camstack");
44451
+ if (presetRow === void 0) throw new Error("CamStack preset missing");
44452
+ return readyOf(presetRow, "unconfigured", false);
44453
+ }
44454
+ function readyOf(row, source, customized) {
44455
+ return {
44456
+ status: "ready",
44457
+ presetId: row.id,
44458
+ customized,
44459
+ source,
44460
+ swatches: row.swatches,
44461
+ fallbacks: [...row.fallbacks]
44462
+ };
44463
+ }
44464
+ function hashFallback(kind, fallbacks) {
44465
+ let hash = 0;
44466
+ for (let i = 0; i < kind.length; i++) hash = hash * 31 + (kind.codePointAt(i) ?? 0) >>> 0;
44467
+ const hex = fallbacks[hash % fallbacks.length];
44468
+ if (hex === void 0) throw new Error("display palette has no fallback colour");
44469
+ return hex;
44470
+ }
44471
+ /** Colour a kind paints with. Audio leaves share the audio gradient's hex. */
44472
+ function paintHex(swatches, fallbacks, kind) {
44473
+ const key = kind.trim().toLowerCase();
44474
+ if (key.startsWith("audio-")) {
44475
+ const audio = swatches[AUDIO_ENTRY_ID];
44476
+ return audio !== void 0 ? audio.hex : hashFallback(key, fallbacks);
44477
+ }
44478
+ const direct = swatches[key];
44479
+ if (direct !== void 0) return direct.hex;
44480
+ return hashFallback(key, fallbacks);
44481
+ }
44482
+ /**
42087
44483
  * Unified event-kind taxonomy — THE single source of truth for
42088
44484
  * `kind → { parentKind, category, level, color, iconId, labelKey, label,
42089
44485
  * icon }`.
@@ -42097,109 +44493,88 @@ for (const [k, v] of Object.entries(APPLE_SA_TO_MACRO.mapping)) _macroLookup.set
42097
44493
  * - `addon-post-analysis/shared/frame/box-drawer.ts` (DEFAULT_COLOR)
42098
44494
  * - the COCO / audio class maps (macro ↔ sub relationships)
42099
44495
  *
42100
- * The DATA (serializable — color/iconId/labelKey/parentKind) lives here in
42101
- * `@camstack/types`. The UI-side mapping `iconId → lucide component` and
42102
- * `labelKey → t()` lives in `@camstack/ui-library`. UIs never hardcode a
42103
- * color or an icon: they read this dictionary (server descriptors carry the
42104
- * fields inline; the client resolves color/icon/label from `iconId`/`kind`).
44496
+ * The DATA (serializable — parentKind / iconId / labelKey) lives here in
44497
+ * `@camstack/types`. Colour is NOT a second table: each entry's `color` is
44498
+ * the bundled CamStack display palette (D939). The effective cluster palette
44499
+ * is the `display-palette` capability. The UI-side mapping `iconId → lucide
44500
+ * component` and `labelKey → t()` lives in `@camstack/ui-library`.
42105
44501
  *
42106
44502
  * Two levels only (v1 YAGNI): macro → sub. `person` is a leaf macro.
42107
44503
  */
42108
- var TAXONOMY_COLORS = {
42109
- motion: "#f59e0b",
42110
- audio: "#06b6d4",
42111
- person: "#22c55e",
42112
- vehicle: "#3b82f6",
42113
- animal: "#f97316",
42114
- package: "#a855f7",
42115
- sensor: "#8b5cf6",
42116
- control: "#10b981",
42117
- genericDetection: "#64748b"
42118
- };
42119
- var DETECTION_SUB_COLORS = {
42120
- car: "#f59e0b",
42121
- truck: "#d97706",
42122
- bus: "#b45309",
42123
- motorcycle: "#eab308",
42124
- bicycle: "#ca8a04",
42125
- airplane: "#60a5fa",
42126
- boat: "#2563eb",
42127
- train: "#1d4ed8",
42128
- bird: "#14b8a6",
42129
- dog: "#84cc16",
42130
- cat: "#f97316",
42131
- horse: "#a16207",
42132
- sheep: "#a3a3a3",
42133
- cow: "#78716c",
42134
- elephant: "#6b7280",
42135
- bear: "#7c2d12",
42136
- zebra: "#404040",
42137
- giraffe: "#d4a373"
42138
- };
44504
+ var BUNDLED_PALETTE = bundledCamstack();
44505
+ function kindColor(kind) {
44506
+ return paintHex(BUNDLED_PALETTE.swatches, BUNDLED_PALETTE.fallbacks, kind);
44507
+ }
44508
+ function firstFallback(fallbacks) {
44509
+ const hex = fallbacks[0];
44510
+ if (hex === void 0) throw new Error("display palette has no fallback colour");
44511
+ return hex;
44512
+ }
44513
+ firstFallback(BUNDLED_PALETTE.fallbacks);
42139
44514
  function titleCase(id) {
42140
44515
  return id.split(/[-_ ]/).filter((p) => p.length > 0).map((p) => p.charAt(0).toUpperCase() + p.slice(1)).join(" ");
42141
44516
  }
42142
44517
  var entries = /* @__PURE__ */ new Map();
42143
- function macro(kind, category, color, iconId, label) {
44518
+ function macro(kind, category, iconId, label) {
42144
44519
  entries.set(kind, {
42145
44520
  kind,
42146
44521
  parentKind: null,
42147
44522
  level: "macro",
42148
44523
  category,
42149
- color,
44524
+ color: kindColor(kind),
42150
44525
  iconId,
42151
44526
  labelKey: `eventKind.${kind}`,
42152
44527
  label
42153
44528
  });
42154
44529
  }
42155
- function sub(kind, parentKind, category, color, iconId, label) {
44530
+ function sub(kind, parentKind, category, iconId, label) {
42156
44531
  entries.set(kind, {
42157
44532
  kind,
42158
44533
  parentKind,
42159
44534
  level: "sub",
42160
44535
  category,
42161
- color,
44536
+ color: kindColor(kind),
42162
44537
  iconId,
42163
44538
  labelKey: `eventKind.${kind}`,
42164
44539
  label
42165
44540
  });
42166
44541
  }
42167
- macro("motion", "motion", TAXONOMY_COLORS.motion, "motion", "Motion");
42168
- macro("audio", "audio", TAXONOMY_COLORS.audio, "audio", "Audio");
42169
- macro("person", "detection", TAXONOMY_COLORS.person, "person", "Person");
42170
- macro("vehicle", "detection", TAXONOMY_COLORS.vehicle, "vehicle", "Vehicle");
42171
- macro("animal", "detection", TAXONOMY_COLORS.animal, "animal", "Animal");
42172
- macro("package", "package", TAXONOMY_COLORS.package, "package", "Package");
42173
- macro("sensor", "sensor", TAXONOMY_COLORS.sensor, "sensor", "Sensor");
42174
- macro("control", "control", TAXONOMY_COLORS.control, "control", "Control");
44542
+ macro("motion", "motion", "motion", "Motion");
44543
+ macro("audio", "audio", "audio", "Audio");
44544
+ macro("person", "detection", "person", "Person");
44545
+ macro("vehicle", "detection", "vehicle", "Vehicle");
44546
+ macro("animal", "detection", "animal", "Animal");
44547
+ macro("package", "package", "package", "Package");
44548
+ macro("sensor", "sensor", "sensor", "Sensor");
44549
+ macro("control", "control", "control", "Control");
42175
44550
  for (const [cocoClass, macroClass] of Object.entries(COCO_TO_MACRO.mapping)) {
42176
44551
  if (macroClass !== "vehicle" && macroClass !== "animal") continue;
42177
44552
  if (entries.has(cocoClass)) continue;
42178
- sub(cocoClass, macroClass, "detection", DETECTION_SUB_COLORS[cocoClass] ?? TAXONOMY_COLORS.genericDetection, cocoClass, titleCase(cocoClass));
42179
- }
42180
- sub("package-delivered", "package", "package", TAXONOMY_COLORS.package, "package", "Package delivered");
42181
- sub("package-picked-up", "package", "package", TAXONOMY_COLORS.package, "package", "Package picked up");
42182
- sub("contact", "sensor", "sensor", "#f59e0b", "door", "Contact");
42183
- sub("motion-sensor", "sensor", "sensor", TAXONOMY_COLORS.sensor, "pir", "Motion sensor");
42184
- sub("smoke", "sensor", "sensor", "#ef4444", "smoke", "Smoke");
42185
- sub("flood", "sensor", "sensor", "#3b82f6", "water", "Water leak");
42186
- sub("gas", "sensor", "sensor", "#ef4444", "gas", "Gas");
42187
- sub("carbon-monoxide", "sensor", "sensor", "#dc2626", "smoke", "Carbon monoxide");
42188
- sub("vibration", "sensor", "sensor", "#eab308", "vibration", "Vibration");
42189
- sub("tamper", "sensor", "sensor", "#f97316", "tamper", "Tamper");
42190
- sub("presence", "sensor", "sensor", "#22c55e", "presence", "Presence");
42191
- sub("enum-sensor", "sensor", "sensor", TAXONOMY_COLORS.sensor, "generic", "Sensor state");
42192
- sub("device-event", "sensor", "sensor", "#10b981", "button", "Device event");
42193
- sub("lock", "control", "control", "#0ea5e9", "lock", "Lock");
42194
- sub("cover", "control", "control", "#0ea5e9", "door", "Cover");
42195
- sub("switch", "control", "control", TAXONOMY_COLORS.control, "switch", "Switch");
42196
- sub("siren", "control", "control", "#dc2626", "siren", "Siren");
42197
- sub("button", "control", "control", "#10b981", "button", "Button");
42198
- sub("doorbell", "control", "control", "#a855f7", "doorbell", "Doorbell");
44553
+ sub(cocoClass, macroClass, "detection", cocoClass, titleCase(cocoClass));
44554
+ }
44555
+ sub("package-delivered", "package", "package", "package", "Package delivered");
44556
+ sub("package-picked-up", "package", "package", "package", "Package picked up");
44557
+ sub("contact", "sensor", "sensor", "door", "Contact");
44558
+ sub("motion-sensor", "sensor", "sensor", "pir", "Motion sensor");
44559
+ sub("smoke", "sensor", "sensor", "smoke", "Smoke");
44560
+ sub("flood", "sensor", "sensor", "water", "Water leak");
44561
+ sub("gas", "sensor", "sensor", "gas", "Gas");
44562
+ sub("carbon-monoxide", "sensor", "sensor", "smoke", "Carbon monoxide");
44563
+ sub("vibration", "sensor", "sensor", "vibration", "Vibration");
44564
+ sub("tamper", "sensor", "sensor", "tamper", "Tamper");
44565
+ sub("presence", "sensor", "sensor", "presence", "Presence");
44566
+ sub("enum-sensor", "sensor", "sensor", "generic", "Sensor state");
44567
+ sub("device-event", "sensor", "sensor", "button", "Device event");
44568
+ sub("lock", "control", "control", "lock", "Lock");
44569
+ sub("cover", "control", "control", "door", "Cover");
44570
+ sub("switch", "control", "control", "switch", "Switch");
44571
+ sub("siren", "control", "control", "siren", "Siren");
44572
+ sub("button", "control", "control", "button", "Button");
44573
+ sub("doorbell", "control", "control", "doorbell", "Doorbell");
42199
44574
  for (const l of AUDIO_MACRO_LABELS) {
42200
44575
  const kind = `audio-${l.id}`;
42201
44576
  if (entries.has(kind)) continue;
42202
- sub(kind, "audio", "audio", TAXONOMY_COLORS.audio, kind, l.name);
44577
+ sub(kind, "audio", "audio", kind, l.name);
42203
44578
  }
42204
44579
  /** The complete taxonomy dictionary, keyed by kind. */
42205
44580
  var EVENT_TAXONOMY = Object.freeze(Object.fromEntries(entries));
@@ -42466,9 +44841,6 @@ var NcSystemEventKindSchema = _enum([
42466
44841
  "device-battery-normal",
42467
44842
  "device-consumable-low",
42468
44843
  "device-consumable-normal",
42469
- "device-tank-low",
42470
- "device-tank-full",
42471
- "device-tank-normal",
42472
44844
  "stream-online",
42473
44845
  "stream-offline",
42474
44846
  "node-online",
@@ -42515,13 +44887,14 @@ var NcSystemEventKindSchema = _enum([
42515
44887
  "camera-enabled"
42516
44888
  ]);
42517
44889
  /** The legacy tail of {@link NcSystemEventKindSchema} — see its docblock. */
42518
- var NC_LEGACY_SYSTEM_EVENT_KINDS = new Set([
44890
+ var NC_LEGACY_SYSTEM_EVENT_KINDS = [
42519
44891
  "camera-online",
42520
44892
  "camera-offline",
42521
44893
  "camera-disabled",
42522
44894
  "camera-enabled"
42523
- ]);
42524
- NcSystemEventKindSchema.options.filter((kind) => !NC_LEGACY_SYSTEM_EVENT_KINDS.has(kind));
44895
+ ];
44896
+ var NC_LEGACY_SYSTEM_EVENT_KIND_SET = new Set(NC_LEGACY_SYSTEM_EVENT_KINDS);
44897
+ NcSystemEventKindSchema.options.filter((kind) => !NC_LEGACY_SYSTEM_EVENT_KIND_SET.has(kind));
42525
44898
  /**
42526
44899
  * The panel's transitions, as ONE list.
42527
44900
  *
@@ -43044,7 +45417,7 @@ var NcConditionsSchema = object({
43044
45417
  * with the list under it is worse than no switch (D62).
43045
45418
  *
43046
45419
  * MEMBERS ARE FACE-GALLERY `Identity.id`s (uuid), not display names. A name is
43047
- * renameable, and a rule authored on "Gianluca" went silently dark the moment
45420
+ * renameable, and a rule authored on "Alice" went silently dark the moment
43048
45421
  * the operator fixed the spelling. The id reaches the record on
43049
45422
  * `LabelAttribution.identityId`; the name is what the editor shows and what
43050
45423
  * `{{label}}` renders.
@@ -43595,7 +45968,7 @@ var NcRulePatchSchema = NcRuleInputSchema.partial().extend({
43595
45968
  * A rule scoped to one camera and one zone silently became a rule that
43596
45969
  * matches EVERY event on EVERY camera, and lost its `media` policy
43597
45970
  * (zoneCrop / gif / clip / frame) and its `priority` at the same time. Seen
43598
- * live on 2026-08-12: a rule scoped to device 617 fired on 590 and 615
45971
+ * live on 2026-08-12: a rule scoped to device 102 fired on 104 and 101
43599
45972
  * within a minute of a two-field patch.
43600
45973
  *
43601
45974
  * So every defaulted field is re-declared here WITHOUT its default. The
@@ -43640,18 +46013,11 @@ var NcRuleSchema = NcRuleInputSchema.extend({
43640
46013
  */
43641
46014
  disabledTargetIds: array(string()).default([])
43642
46015
  });
43643
- /**
43644
- * The state-summary SECTIONS (D647 / D698 / D708): the D637 kind groups that
43645
- * report a still-true state. `addons` is the crash-looped addons only and
43646
- * `addon-updates` the addons that are behind (D708 split them). `backups-exports` and `alarm` are not sections — a completed
43647
- * job is not an open state, and the alarm stays instant.
43648
- */
43649
46016
  var NcStateSummarySectionIdSchema = _enum([
43650
46017
  "device-state",
43651
46018
  "streams",
43652
46019
  "battery",
43653
46020
  "consumables",
43654
- "tanks",
43655
46021
  "detection-blind",
43656
46022
  "nodes",
43657
46023
  "addons",
@@ -45431,7 +47797,7 @@ var LabelAttributionSchema = object({
45431
47797
  * `Identity.id` or a plate-gallery `Vehicle.id` (both `randomUUID`).
45432
47798
  *
45433
47799
  * The text alone is a DISPLAY NAME, and a display name is renameable: a
45434
- * notification rule authored on "Gianluca" stopped matching the moment the
47800
+ * notification rule authored on "Alice" stopped matching the moment the
45435
47801
  * operator fixed the spelling in the gallery, and nothing said so. The id is
45436
47802
  * the thing that does not move, so it is what a rule matches on
45437
47803
  * (`NcConditions.identities`) and the text is what a human is shown.
@@ -47970,7 +50336,7 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
47970
50336
  /**
47971
50337
  * Root-supplied detections for the tree's ROOT step (D730). Set by
47972
50338
  * `runDetailSubtree` when the camera's root model supplies a crop-kind
47973
- * step (a Frigate+ `license_plate` for `plate-detection`): the step is
50339
+ * step (a plus catalog `license_plate` for `plate-detection`): the step is
47974
50340
  * NOT inferred, these boxes are its output, and its children (the plate
47975
50341
  * reader) run on them through their own crop policy. Boxes are in the
47976
50342
  * PIXELS of the image this call carries. Absent ⇒ the root step runs.
@@ -49603,7 +51969,7 @@ var RunnerCameraConfigSchema = object({
49603
51969
  * detection session that asks for history. What shipped was a last-moment
49604
51970
  * discard — `FrameSlot`'s throttle compares wall clocks, and ~4 s of media
49605
51971
  * arriving inside a few hundred ms of wall clock looks to it like one frame's
49606
- * worth. Device 617, 2026-09-08: a re-run of the SAME model over the stored
51972
+ * worth. Device 102, 2026-09-08: a re-run of the SAME model over the stored
49607
51973
  * recording scored the subject `vehicle 0.5669` — above the 0.50 floor —
49608
51974
  * 1.68 s BEFORE the live track was born, on a frame that was in the pre-roll,
49609
51975
  * was decoded, and was freed.
@@ -51633,7 +53999,7 @@ method(_void(), ProviderInfoSchema, { auth: "admin" }), method(object({ config:
51633
53999
  * The signals a device can emit to WAKE its own stream.
51634
54000
  *
51635
54001
  * A camera whose stream is built on demand sleeps until something asks for it,
51636
- * and "something" cannot be a consumer that is merely attached — a Frigate-style
54002
+ * and "something" cannot be a consumer that is merely attached — a external-catalog
51637
54003
  * puller holds a session open for ever, and treating that as demand would keep
51638
54004
  * a battery camera awake for ever, which is the whole thing the battery is for
51639
54005
  * (D173). So the wake has to come from the CAMERA: an event it noticed by
@@ -52320,7 +54686,7 @@ var ClipSchema = object({
52320
54686
  * {@link MAX_CLIP_EVENT_IDS}. Empty on footage-only clips.
52321
54687
  *
52322
54688
  * Bounded because it is not a payload the surface pages through: one visit on
52323
- * device 615 carried 2 345 ids, and `eventIds` was 99% of a 153 KB
54689
+ * device 101 carried 2 345 ids, and `eventIds` was 99% of a 153 KB
52324
54690
  * camera-day. Read {@link eventCount} for the true total.
52325
54691
  */
52326
54692
  eventIds: array(string()).optional(),
@@ -52465,7 +54831,7 @@ var ClipPlaybackSchema = object({
52465
54831
  * camera has no recordings", which is the defect this whole line of work is
52466
54832
  * about: a battery camera nobody woke (`sleeping`), a camera that could not be
52467
54833
  * reached at all (`unreachable`, also what a provider that THREW reports), a
52468
- * camera whose SD card is not mounted (`no-storage`, measured on 640 —
54834
+ * camera whose SD card is not mounted (`no-storage`, measured on 106 —
52469
54835
  * `HddInfo mount 0`, honestly nothing to list rather than "no clips"), and a
52470
54836
  * camera whose OWN index disagrees with its OWN calendar (`index-empty`,
52471
54837
  * measured on 618: the calendar marks 3–20 September, days 6–20 list zero
@@ -52730,7 +55096,7 @@ DeviceType.Camera, method(object({
52730
55096
  *
52731
55097
  * It was optional, documented as "absent means the device's BOUND
52732
55098
  * provider, which is CamStack on every camera". No code implemented
52733
- * that. Measured on the live hub 2026-09-20 — device 592, bound to
55099
+ * that. Measured on the live hub 2026-09-20 — device 107, bound to
52734
55100
  * `recorder` AND `provider-reolink` — a bare call with `limit: 3`
52735
55101
  * answered SIX rows, three from each source, merged newest-first:
52736
55102
  * `device-collection-dispatch.ts` simply left the fan-out un-narrowed,
@@ -53808,7 +56174,10 @@ object({
53808
56174
  DeviceType.Sensor;
53809
56175
  object({
53810
56176
  /** Current illuminance in lux (lx). */
53811
- lux: number().min(0),
56177
+ lux: number().min(0).meta({
56178
+ unit: "lx",
56179
+ label: "Illuminance"
56180
+ }),
53812
56181
  /** Ms epoch when the slice was last updated. */
53813
56182
  lastFetchedAt: number(),
53814
56183
  /** Live display unit from the upstream source (e.g. HA
@@ -53964,7 +56333,10 @@ var BatteryStatusSchema = object({
53964
56333
  * Consumers must SKIP a null rather than coerce it — `battery-band` already
53965
56334
  * declines to band a non-finite reading, which is the correct shape.
53966
56335
  */
53967
- percentage: number().min(0).max(100).nullable(),
56336
+ percentage: number().min(0).max(100).nullable().meta({
56337
+ unit: "%",
56338
+ label: "Charge"
56339
+ }),
53968
56340
  /**
53969
56341
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
53970
56342
  * Reolink-specific for the Solar Panel 2 accessory (will become
@@ -53983,13 +56355,13 @@ var BatteryStatusSchema = object({
53983
56355
  "solar",
53984
56356
  "none",
53985
56357
  "unknown"
53986
- ]),
56358
+ ]).meta({ label: "Charging source" }),
53987
56359
  /**
53988
56360
  * True when the camera firmware has gone into low-power mode. Battery
53989
56361
  * providers MUST avoid polling during sleep — reading the battery
53990
56362
  * wakes the camera up and drains charge.
53991
56363
  */
53992
- sleeping: boolean(),
56364
+ sleeping: boolean().meta({ label: "Sleeping" }),
53993
56365
  /** Ms epoch of the last observation. Lets consumers reason about freshness. */
53994
56366
  lastUpdated: number(),
53995
56367
  /**
@@ -54029,9 +56401,10 @@ var BatteryStatusSchema = object({
54029
56401
  * sub-threshold = low). UI MUST render "Normal"/"Low" instead of a
54030
56402
  * misleading exact percentage. Absent/false → genuine 0–100 % reading.
54031
56403
  */
54032
- binary: boolean().optional()
56404
+ binary: boolean().optional().meta({ label: "Binary indicator" })
54033
56405
  });
54034
- DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Thermostat, method(object({
56406
+ DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Thermostat;
56407
+ method(object({
54035
56408
  deviceId: number(),
54036
56409
  /** Bound on the wait. Sensible range 3000–10000ms. */
54037
56410
  timeoutMs: number().int().min(500).max(3e4).default(8e3)
@@ -54043,7 +56416,7 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, Devi
54043
56416
  status: BatteryStatusSchema
54044
56417
  });
54045
56418
  object({
54046
- on: boolean(),
56419
+ on: boolean().meta({ label: "On" }),
54047
56420
  /** Ms epoch of the last transition. 0 if never observed. */
54048
56421
  lastChangedAt: number()
54049
56422
  });
@@ -54313,7 +56686,7 @@ var GridLayoutCellSchema = object({
54313
56686
  *
54314
56687
  * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
54315
56688
  * profile is on offer only when EVERY source can serve it. The refusal NAMES
54316
- * the sources, because "this grid has no low" is not a finding — "615 has no
56689
+ * the sources, because "this grid has no low" is not a finding — "101 has no
54317
56690
  * low" is, and it is the one an operator can act on.
54318
56691
  */
54319
56692
  var GridProfileOfferSchema = object({
@@ -54752,6 +57125,7 @@ var ConsumablesStatusSchema = object({
54752
57125
  })),
54753
57126
  lastChangedAt: number()
54754
57127
  });
57128
+ Object.values(DeviceType), [...ConsumableRemainingUnitSchema.options], [...ConsumableStatusSchema.options], [...ConsumableKindSchema.options], [...ConsumableFormSchema.options];
54755
57129
  Object.values(DeviceType), method(object({
54756
57130
  deviceId: number().int().nonnegative(),
54757
57131
  key: string().min(1)
@@ -54956,6 +57330,30 @@ DeviceType.Camera, method(object({ deviceId: number() }), DayNightOptionsSchema)
54956
57330
  auth: "admin"
54957
57331
  });
54958
57332
  /**
57333
+ * display-palette — the cluster's one colour table (D939).
57334
+ *
57335
+ * Hub singleton. `getPalette` reports `unknown` when the settings store
57336
+ * cannot be read; it does not pretend the bundled preset was stored.
57337
+ * `setPalette` refuses a palette that fails the ΔE / contrast rule and names
57338
+ * the pairs.
57339
+ */
57340
+ var presetSummarySchema = object({
57341
+ id: string(),
57342
+ name: string(),
57343
+ swatches: record(string(), paletteSwatchSchema),
57344
+ fallbacks: array(string())
57345
+ });
57346
+ method(_void(), paletteResultSchema, {
57347
+ auth: "protected",
57348
+ role: "viewer"
57349
+ }), method(_void(), array(presetSummarySchema).readonly(), {
57350
+ auth: "protected",
57351
+ role: "viewer"
57352
+ }), method(setPaletteInputSchema, paletteReadySchema, {
57353
+ kind: "mutation",
57354
+ auth: "admin"
57355
+ });
57356
+ /**
54959
57357
  * Generic device-level status snapshot. Auto-registered by `BaseDevice`
54960
57358
  * for every device, regardless of provider — the kernel needs a uniform
54961
57359
  * cap-keyed slice for the basic device flags every consumer expects to
@@ -55235,6 +57633,7 @@ DeviceType.Dishwasher, method(object({
55235
57633
  kind: "mutation",
55236
57634
  auth: "protected"
55237
57635
  }), method(object({ deviceId: DeviceIdSchema }), DishwasherOptionsSchema, { auth: "protected" });
57636
+ DeviceType.Camera;
55238
57637
  object({
55239
57638
  /** Ms epoch of the last press. null = never observed since this provider started. */
55240
57639
  lastPressedAt: number().nullable(),
@@ -55858,7 +58257,10 @@ DeviceType.Humidifier, method(object({
55858
58257
  */
55859
58258
  var HumiditySensorStatusSchema = object({
55860
58259
  /** Current relative humidity, 0..100. */
55861
- percent: number().min(0).max(100),
58260
+ percent: number().min(0).max(100).meta({
58261
+ unit: "%",
58262
+ label: "Humidity"
58263
+ }),
55862
58264
  /** Ms epoch when the slice was last updated. */
55863
58265
  lastFetchedAt: number(),
55864
58266
  /** Live display unit from the upstream source (e.g. HA
@@ -57035,6 +59437,7 @@ authKey: string().optional() }), object({
57035
59437
  /** Human-readable error when `ok: false`. */
57036
59438
  error: string().optional()
57037
59439
  }), { kind: "mutation" });
59440
+ DeviceType.Camera;
57038
59441
  var MotionStatusSchema = object({
57039
59442
  detected: boolean(),
57040
59443
  /** Ms epoch of the last detected-true observation. Null if never detected. */
@@ -58634,9 +61037,15 @@ method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema)
58634
61037
  });
58635
61038
  object({
58636
61039
  /** Instantaneous power draw in watts. */
58637
- watts: number().optional(),
61040
+ watts: number().optional().meta({
61041
+ unit: "W",
61042
+ label: "Power"
61043
+ }),
58638
61044
  /** Cumulative energy in kilowatt-hours since the meter was reset. */
58639
- kwhTotal: number().optional(),
61045
+ kwhTotal: number().optional().meta({
61046
+ unit: "kWh",
61047
+ label: "Energy"
61048
+ }),
58640
61049
  /** Voltage in volts. */
58641
61050
  volts: number().optional(),
58642
61051
  /** Current in amperes. */
@@ -58955,9 +61364,9 @@ var PtzOptionsSchema = object({
58955
61364
  * Reolink preset 0, Hikvision preset '1', Dahua preset 1 -- and on this fleet
58956
61365
  * not one of the three cameras honours its own:
58957
61366
  *
58958
- * 592 Videocamera camera Daniel (reolink) preset 0 holds "stanza"
58959
- * 1438 Videocamera dispensa (hikvision) preset 1 holds "Credenza"
58960
- * 3836 Videocamera studio (amcrest) preset 1 holds "Preset1"
61367
+ * 107 Camera camera Carol (reolink) preset 0 holds "stanza"
61368
+ * 1438 Camera dispensa (hikvision) preset 1 holds "Credenza"
61369
+ * 3836 Camera studio (amcrest) preset 1 holds "Preset1"
58961
61370
  *
58962
61371
  * So `goHome` meant "go wherever the operator happened to save in slot 0 or 1",
58963
61372
  * and two of the three swallowed the failure in a bare `catch`. For autotrack
@@ -59098,6 +61507,24 @@ DeviceType.Camera, method(object({ deviceId: number() }), PtzAutotrackStatusSche
59098
61507
  deviceId: number(),
59099
61508
  status: PtzAutotrackStatusSchema
59100
61509
  });
61510
+ var RunningStateSourceSchema = _enum(["native", "assigned"]);
61511
+ object({
61512
+ /** null = unknown — never coerced to false (D393). */
61513
+ running: boolean().nullable(),
61514
+ /** Epoch ms the current boolean began; null while `running` is null. */
61515
+ since: number().nullable(),
61516
+ source: RunningStateSourceSchema.meta({ label: "Source" }),
61517
+ phase: string().nullable(),
61518
+ /** null until a reading has been published (D393). */
61519
+ lastFetchedAt: number().nullable()
61520
+ });
61521
+ object({
61522
+ deviceId: number(),
61523
+ since: number().nullable(),
61524
+ phase: string().nullable()
61525
+ });
61526
+ Object.values(DeviceType);
61527
+ DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.MediaPlayer, DeviceType.WaterHeater, DeviceType.Humidifier, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.PetFeeder;
59101
61528
  DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceId: number().int().nonnegative() }), object({ success: literal(true) }), {
59102
61529
  kind: "mutation",
59103
61530
  auth: "admin"
@@ -59139,7 +61566,7 @@ var RecordingAvailabilitySchema = object({
59139
61566
  * would look identical. But the answer used to say nothing about that, so a
59140
61567
  * caller asking "what can I export?" read the single preferred profile as
59141
61568
  * the only one that exists — on this deployment every camera records `high`
59142
- * AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
61569
+ * AND `low`, the low tree holding 14 GB for camera 101 alone, and the export
59143
61570
  * UI could not see it.
59144
61571
  *
59145
61572
  * Cheap: it is the same shallow directory read the profile CHOICE already
@@ -59238,7 +61665,7 @@ var RecordingSourceOptionsSchema = object({
59238
61665
  * `sparse` = gaps are the absence of one, and must be drawn as such.
59239
61666
  *
59240
61667
  * Not an onboard-only concession: measured 2026-09-24, OUR bar covers 98.8 %
59241
- * of 592's day and 1.2 % of 1436's. It is a fact about a (source, camera)
61668
+ * of 107's day and 1.2 % of 1436's. It is a fact about a (source, camera)
59242
61669
  * pair, and ours answers it per camera from `deriveRecordingMode`. */
59243
61670
  coverage: _enum(["continuous", "sparse"]),
59244
61671
  /** Where the playhead may be put.
@@ -59314,7 +61741,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(RecordingSourceS
59314
61741
  * merely discouraged (D554 amended).
59315
61742
  *
59316
61743
  * It was learned the expensive way on `videoclips.listClips`: measured
59317
- * on the live hub 2026-09-20, device 592 bound to `recorder` AND
61744
+ * on the live hub 2026-09-20, device 107 bound to `recorder` AND
59318
61745
  * `provider-reolink`, a bare call with `limit: 3` answered SIX rows,
59319
61746
  * three from each source, merged — `device-collection-dispatch.ts`
59320
61747
  * leaves an unpinned fan-out un-narrowed, so absence buys the union the
@@ -59915,7 +62342,7 @@ var ExportSpeedSchema = number().min(.25).max(32);
59915
62342
  * on a 10 h window holding 29,393 s of footage every range landed late by the
59916
62343
  * gap accumulated before it — up to 6,607 s, well past EOF. Nothing matched,
59917
62344
  * the video was a uniform timelapse, and the log line reported the five ranges
59918
- * that had been ASKED for (2026-08-13, export `57d14363`, camera 615).
62345
+ * that had been ASKED for (2026-08-13, export `57d14363`, camera 101).
59919
62346
  *
59920
62347
  * Relative and not absolute epoch, because an absolute epoch would make every
59921
62348
  * call site responsible for the same subtraction.
@@ -60549,7 +62976,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), RecordingSignalStatusS
60549
62976
  * which put a "Scenes" tab on one camera's detail page. That is the wrong shape
60550
62977
  * for the thing: a scene is a standing question about the property ("is the bin
60551
62978
  * still out"), and the operator's question is "which of my scenes have tripped",
60552
- * across every camera at once — not "what does camera 617 think". Buried one
62979
+ * across every camera at once — not "what does camera 102 think". Buried one
60553
62980
  * camera deep it also could not be found. The surface is now a top-level admin
60554
62981
  * page (`/scenes`, `pages/Scenes.tsx`) that lists every scene on every camera and
60555
62982
  * picks the camera inside the create flow, the same shape Events and Faces have.
@@ -61139,7 +63566,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), StreamParamsOptionsSch
61139
63566
  * `getSettingsUISchema()` surface.
61140
63567
  */
61141
63568
  var SwitchStatusSchema = object({
61142
- on: boolean(),
63569
+ on: boolean().meta({ label: "On" }),
61143
63570
  /** Ms epoch of the last state change. Useful for UI "X minutes ago". */
61144
63571
  lastChangedAt: number()
61145
63572
  });
@@ -61718,7 +64145,10 @@ DeviceType.Sensor;
61718
64145
  */
61719
64146
  var TemperatureSensorStatusSchema = object({
61720
64147
  /** Current temperature in Celsius. */
61721
- celsius: number(),
64148
+ celsius: number().meta({
64149
+ unit: "°C",
64150
+ label: "Temperature"
64151
+ }),
61722
64152
  /** Ms epoch when the slice was last updated (push or poll). */
61723
64153
  lastFetchedAt: number(),
61724
64154
  /** Live display unit from the upstream source (e.g. HA
@@ -62866,6 +65296,10 @@ method(object({}), array(TrainingBaseModelSchema).readonly(), { auth: "admin" })
62866
65296
  auth: "admin"
62867
65297
  });
62868
65298
  SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
65299
+ 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;
65300
+ String.raw`rose\(active(\d+), changed(\d+), (\d+(?:\.\d+)?)\)`;
65301
+ DeviceRole.BinarySensor, DeviceRole.MotionSensor;
65302
+ new Set(CAP_NAMES);
62869
65303
  Object.freeze({
62870
65304
  person: .5,
62871
65305
  vehicle: .5,
@@ -65865,6 +68299,27 @@ Object.freeze({
65865
68299
  access: "create",
65866
68300
  role: "viewer"
65867
68301
  },
68302
+ "displayPalette.getPalette": {
68303
+ capName: "display-palette",
68304
+ capScope: "system",
68305
+ addonId: null,
68306
+ access: "view",
68307
+ role: "viewer"
68308
+ },
68309
+ "displayPalette.listPresets": {
68310
+ capName: "display-palette",
68311
+ capScope: "system",
68312
+ addonId: null,
68313
+ access: "view",
68314
+ role: "viewer"
68315
+ },
68316
+ "displayPalette.setPalette": {
68317
+ capName: "display-palette",
68318
+ capScope: "system",
68319
+ addonId: null,
68320
+ access: "create",
68321
+ role: "admin"
68322
+ },
65868
68323
  "doorbell.getStatus": {
65869
68324
  capName: "doorbell",
65870
68325
  capScope: "device",
@@ -70415,6 +72870,13 @@ Object.freeze({
70415
72870
  access: "create",
70416
72871
  role: "admin"
70417
72872
  },
72873
+ "runningState.getStatus": {
72874
+ capName: "running-state",
72875
+ capScope: "device",
72876
+ addonId: null,
72877
+ access: "view",
72878
+ role: "viewer"
72879
+ },
70418
72880
  "sceneMonitor.captureReference": {
70419
72881
  capName: "scene-monitor",
70420
72882
  capScope: "device",
@@ -75129,6 +77591,32 @@ var APPLIANCE_CAP_VOCABULARY = {
75129
77591
  }],
75130
77592
  events: { onSent: { notOperatorFacing: "a delivery receipt of a send this system made — not a fact about the world" } }
75131
77593
  },
77594
+ "running-state": {
77595
+ scope: "device",
77596
+ noun: t("Running", "In funzione"),
77597
+ state: [{
77598
+ kind: "boolean",
77599
+ field: "running",
77600
+ label: t("Running", "In funzione"),
77601
+ whenTrue: t("When {device} starts", "Quando {device} inizia"),
77602
+ whenFalse: t("When {device} finishes", "Quando {device} finisce"),
77603
+ icon: "play"
77604
+ }],
77605
+ events: {
77606
+ onStarted: {
77607
+ category: EventCategory.RunningStarted,
77608
+ label: t("Started running", "Ha iniziato a funzionare"),
77609
+ phrase: t("When {device} starts running", "Quando {device} inizia a funzionare"),
77610
+ icon: "play"
77611
+ },
77612
+ onFinished: {
77613
+ category: EventCategory.RunningFinished,
77614
+ label: t("Finished", "Ha finito"),
77615
+ phrase: t("When {device} finishes", "Quando {device} finisce"),
77616
+ icon: "square"
77617
+ }
77618
+ }
77619
+ },
75132
77620
  update: {
75133
77621
  scope: "device",
75134
77622
  noun: t("Firmware update", "Aggiornamento firmware"),
@@ -75749,7 +78237,7 @@ var SENSOR_CAP_VOCABULARY = {
75749
78237
  state: [{
75750
78238
  kind: "boolean",
75751
78239
  field: "on",
75752
- label: t("Active", "Attivo"),
78240
+ label: t("On", "Acceso"),
75753
78241
  whenTrue: t("When {device} turns active", "Quando {device} si attiva"),
75754
78242
  whenFalse: t("When {device} turns inactive", "Quando {device} si disattiva"),
75755
78243
  icon: "toggle-right"
@@ -76288,6 +78776,7 @@ var SYSTEM_CAP_VOCABULARY = {
76288
78776
  "device-provider": system(INTERNAL),
76289
78777
  "device-removal-hook": system(INTERNAL),
76290
78778
  "device-state": system("the runtime-state mirror every trigger already reads through"),
78779
+ "display-palette": system("the cluster display palette — one colour table for every client, not a device action"),
76291
78780
  "embedding-encoder": system(ML),
76292
78781
  "face-gallery": system("the face gallery — curated on its own page"),
76293
78782
  "failure-contribution": system(INTERNAL),
@@ -78669,6 +81158,11 @@ Object.freeze({
78669
81158
  form: "single",
78670
81159
  optional: true
78671
81160
  }],
81161
+ "runningState.getStatus": [{
81162
+ name: "deviceId",
81163
+ form: "single",
81164
+ optional: false
81165
+ }],
78672
81166
  "sceneMonitor.captureReference": [{
78673
81167
  name: "deviceId",
78674
81168
  form: "single",
@@ -79167,6 +81661,99 @@ Object.freeze({
79167
81661
  "smtp-provider": "email"
79168
81662
  });
79169
81663
  DeviceType.Camera;
81664
+ /**
81665
+ * A saved Customize assignment (D936). The schema is the type: callers use
81666
+ * `z.infer`, they do not restate the shape.
81667
+ */
81668
+ var OverrideSourceSchema = object({
81669
+ addonId: string().min(1),
81670
+ stableId: string().min(1),
81671
+ cap: string().min(1),
81672
+ fieldPath: string().min(1)
81673
+ });
81674
+ var CustomizeTransformDraftSchema = discriminatedUnion("kind", [
81675
+ object({ kind: literal("identity") }),
81676
+ object({ kind: literal("invert") }),
81677
+ object({
81678
+ kind: literal("threshold"),
81679
+ comparison: _enum(["gte", "lte"]),
81680
+ threshold: number(),
81681
+ startDwellMs: number().nonnegative(),
81682
+ stopDwellMs: number().nonnegative()
81683
+ }),
81684
+ object({
81685
+ kind: literal("linear"),
81686
+ scale: number(),
81687
+ offset: number(),
81688
+ clampMin: number().optional(),
81689
+ clampMax: number().optional()
81690
+ }),
81691
+ object({
81692
+ kind: literal("enum-map"),
81693
+ mapping: record(string(), string().nullable())
81694
+ }),
81695
+ object({ kind: literal("number") })
81696
+ ]);
81697
+ var ScalarOverrideDraftSchema = object({
81698
+ kind: literal("scalar"),
81699
+ cap: string().min(1),
81700
+ targetId: string().min(1),
81701
+ source: OverrideSourceSchema,
81702
+ transform: CustomizeTransformDraftSchema
81703
+ });
81704
+ var KeyedArrayOverrideDraftSchema = object({
81705
+ kind: literal("keyedArray"),
81706
+ cap: string().min(1),
81707
+ targetId: string().min(1),
81708
+ key: string().min(1),
81709
+ label: string().min(1),
81710
+ fieldPath: string().min(1),
81711
+ source: OverrideSourceSchema,
81712
+ transform: CustomizeTransformDraftSchema
81713
+ });
81714
+ var PulseOverrideDraftSchema = object({
81715
+ kind: literal("pulse"),
81716
+ cap: string().min(1),
81717
+ targetId: string().min(1),
81718
+ enabled: boolean(),
81719
+ debounceMs: number().nonnegative(),
81720
+ edges: array(_enum([
81721
+ "rising",
81722
+ "button",
81723
+ "native-event"
81724
+ ])).min(1).optional(),
81725
+ sources: array(OverrideSourceSchema).min(1)
81726
+ });
81727
+ var SpanSourceDraftSchema = OverrideSourceSchema.extend({ mode: _enum([
81728
+ "in-addition",
81729
+ "confirm",
81730
+ "replace"
81731
+ ]).optional() });
81732
+ discriminatedUnion("kind", [
81733
+ ScalarOverrideDraftSchema,
81734
+ KeyedArrayOverrideDraftSchema,
81735
+ PulseOverrideDraftSchema,
81736
+ object({
81737
+ kind: literal("span"),
81738
+ cap: string().min(1),
81739
+ targetId: string().min(1),
81740
+ timeoutMs: number().nonnegative(),
81741
+ cooldownMs: number().nonnegative().optional(),
81742
+ sources: array(SpanSourceDraftSchema)
81743
+ })
81744
+ ]);
81745
+ object({
81746
+ targetId: string().min(1),
81747
+ configured: boolean(),
81748
+ source: _enum(["native", "assigned"]),
81749
+ state: _enum([
81750
+ "active",
81751
+ "stale",
81752
+ "released",
81753
+ "unavailable"
81754
+ ]),
81755
+ reason: string().nullable()
81756
+ });
79170
81757
  var G711_SCALE_CORRECTION_DB = {
79171
81758
  PCMU: 20 * Math.log10(4),
79172
81759
  PCMA: 20 * Math.log10(8)
@@ -79219,40 +81806,7 @@ var NC_AUDIO_DEFAULTS = {
79219
81806
  samplingSeconds: 10
79220
81807
  };
79221
81808
  new Set(["devices", "classes"]);
79222
- /**
79223
- * WHICH narrowing filter speaks about WHICH system-event kind — one predicate,
79224
- * consumed by the rule ENGINE and by every rule EDITOR.
79225
- *
79226
- * ── The failure this file exists for ───────────────────────────────────────
79227
- * `NcSystemEventConditionSchema` carries four optional narrowing lists
79228
- * (`deviceIds`, `deviceTypes`, `nodeIds`, `packageNames`) beside a required
79229
- * `kinds` gate. They are not four filters over one vocabulary: each belongs to
79230
- * a FAMILY of kinds and is meaningless outside it. A node going away has no
79231
- * device type; a completed export has no package; `stream-offline` deliberately
79232
- * carries no device type at all (a stream belongs to a camera by construction).
79233
- *
79234
- * The engine applied all four to every kind, so a filter from one family failed
79235
- * a kind from another family CLOSED. The operator's live rule "Eventi di
79236
- * sistema" selected eleven kinds and set `deviceTypes: ['camera']` — the only
79237
- * way to say "only my cameras" about the two liveness kinds — and NINE of the
79238
- * eleven silently stopped being deliverable. Four days of history contained
79239
- * `device-online` and `device-offline` and nothing else, across a window in
79240
- * which agents were restarted and addons were updated.
79241
- *
79242
- * Both editors already computed this scoping, to decide which filter boxes to
79243
- * render; the cap's own docblock already promised it ("Narrow a `device-*` kind
79244
- * to these device TYPES"). Only the engine disagreed, and it disagreed in the
79245
- * destructive direction. So the rule is stated ONCE, here, and the engine and
79246
- * the editors are readers of it rather than three independent authors.
79247
- *
79248
- * ── The direction ─────────────────────────────────────────────────────────
79249
- * Out of family ⇒ the filter is IGNORED, never fail-closed. An editor that
79250
- * hides a box has already told the operator this filter does not speak about
79251
- * these kinds, so honouring it as an exclusion contradicts the only
79252
- * explanation the operator was ever given. Inside its family the filter still
79253
- * narrows, and still fails CLOSED on a subject that cannot produce the identity
79254
- * it tests (a device the mirror cannot name is not evidence of a camera).
79255
- */
81809
+ new Set(NC_LEGACY_SYSTEM_EVENT_KINDS);
79256
81810
  /**
79257
81811
  * Every filter, for the callers that must cover all of them (guards, tests).
79258
81812
  *
@@ -79278,9 +81832,6 @@ new Map(Object.entries({
79278
81832
  "device-battery-normal": "device-events",
79279
81833
  "device-consumable-low": "device-events",
79280
81834
  "device-consumable-normal": "device-events",
79281
- "device-tank-low": "device-events",
79282
- "device-tank-full": "device-events",
79283
- "device-tank-normal": "device-events",
79284
81835
  "stream-online": "device-events",
79285
81836
  "stream-offline": "device-events",
79286
81837
  "detection-blind": "device-events",
@@ -79357,16 +81908,6 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
79357
81908
  label: "Consumables",
79358
81909
  kinds: ["device-consumable-low", "device-consumable-normal"]
79359
81910
  },
79360
- {
79361
- id: "tanks",
79362
- family: "device-events",
79363
- label: "Tanks",
79364
- kinds: [
79365
- "device-tank-low",
79366
- "device-tank-full",
79367
- "device-tank-normal"
79368
- ]
79369
- },
79370
81911
  {
79371
81912
  id: "detection-blind",
79372
81913
  family: "device-events",
@@ -79524,11 +82065,6 @@ var RULE_BODY_ONLY = ["body"];
79524
82065
  var RULE_TEXT = ["title", "body"];
79525
82066
  var BATTERY = ["device-battery-low", "device-battery-normal"];
79526
82067
  var CONSUMABLE = ["device-consumable-low", "device-consumable-normal"];
79527
- var TANK = [
79528
- "device-tank-low",
79529
- "device-tank-full",
79530
- "device-tank-normal"
79531
- ];
79532
82068
  var ALERT_EPISODE = [
79533
82069
  "alert-critical",
79534
82070
  "alert-error",
@@ -79560,7 +82096,6 @@ var DEVICE_EVENTS = [
79560
82096
  "device-enabled",
79561
82097
  ...BATTERY,
79562
82098
  ...CONSUMABLE,
79563
- ...TANK,
79564
82099
  "stream-online",
79565
82100
  "stream-offline",
79566
82101
  "detection-blind",
@@ -79591,7 +82126,7 @@ var STATE_SUMMARY_SECTION_VARS = [
79591
82126
  {
79592
82127
  name: "summaryStreams",
79593
82128
  label: "Summary: streams offline",
79594
- example: "Ingresso (high) — since 06:40",
82129
+ example: "Front door (high) — since 06:40",
79595
82130
  kinds: ["stream-offline", "stream-online"]
79596
82131
  },
79597
82132
  {
@@ -79606,22 +82141,16 @@ var STATE_SUMMARY_SECTION_VARS = [
79606
82141
  example: "Robot — filter 10 %",
79607
82142
  kinds: CONSUMABLE
79608
82143
  },
79609
- {
79610
- name: "summaryTanks",
79611
- label: "Summary: tanks",
79612
- example: "Robot — clean water low",
79613
- kinds: TANK
79614
- },
79615
82144
  {
79616
82145
  name: "summaryDetection",
79617
82146
  label: "Summary: cameras detecting nothing",
79618
- example: "Ingresso — since 05:10",
82147
+ example: "Front door — since 05:10",
79619
82148
  kinds: ["detection-blind"]
79620
82149
  },
79621
82150
  {
79622
82151
  name: "summaryNodes",
79623
82152
  label: "Summary: nodes",
79624
- example: "little-unraid — offline since 03:00",
82153
+ example: "agent-a — offline since 03:00",
79625
82154
  kinds: [
79626
82155
  "node-offline",
79627
82156
  "node-online",
@@ -79727,8 +82256,7 @@ var STATE_SUMMARY_VARS = [
79727
82256
  ([...RULE_TEXT], [...COMBINED_ALARM]),
79728
82257
  ([...RULE_TEXT], [...DEVICE_EVENTS]),
79729
82258
  ([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
79730
- ([...RULE_TEXT], [...CONSUMABLE, ...TANK]),
79731
- ([...RULE_TEXT], [...TANK]),
82259
+ ([...RULE_TEXT], [...CONSUMABLE]),
79732
82260
  [...RULE_TEXT],
79733
82261
  ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
79734
82262
  ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
@@ -79832,15 +82360,6 @@ new Map([
79832
82360
  snapshotLabel: "Consumables low now",
79833
82361
  snapshotSection: "consumables"
79834
82362
  },
79835
- {
79836
- id: "tanks",
79837
- family: "device-events",
79838
- label: "Tanks (low or full / back to normal)",
79839
- bad: ["device-tank-low", "device-tank-full"],
79840
- recovery: ["device-tank-normal"],
79841
- snapshotLabel: "Tanks low or full now",
79842
- snapshotSection: "tanks"
79843
- },
79844
82363
  {
79845
82364
  id: "motion-noise",
79846
82365
  family: "device-events",
@@ -83777,7 +86296,7 @@ var BRIGHTNESS_CONTROLLER = {
83777
86296
  * when the impulse is unknown — see `handlers/ptz-travel.ts`; never
83778
86297
  * `continuousMove` / `stop`), and the toggle auto-resets to OFF (handler
83779
86298
  * returns the OFF state in `context.properties`). Alexa renders one row per instance in the
83780
- * device detail; users can also say "Alexa, turn on Salone Pan Left".
86299
+ * device detail; users can also say "Alexa, turn on Hall Pan Left".
83781
86300
  *
83782
86301
  * Instance ids match the directive routing in `ptz-direction.ts`.
83783
86302
  */
@@ -83970,8 +86489,8 @@ function buildParentCameraEndpoint(input) {
83970
86489
  /**
83971
86490
  * Compose a child accessory's Alexa friendly name. camstack child devices
83972
86491
  * are usually already named with their parent prefix (e.g. parent
83973
- * "Videocamera salone" → child "Videocamera salone Siren"), so blindly
83974
- * prefixing the parent again yields "Videocamera salone — Videocamera salone
86492
+ * "Camera hall" → child "Camera hall Siren"), so blindly
86493
+ * prefixing the parent again yields "Camera hall — Camera hall
83975
86494
  * Siren". Skip the prefix when the child name already contains the parent name
83976
86495
  * (case-insensitive).
83977
86496
  */
@@ -87767,7 +90286,7 @@ var DOORBELL_INTERFACE = "Alexa.DoorbellEventSource";
87767
90286
  * on for it (R4, D779).
87768
90287
  *
87769
90288
  * Measured 2026-08-07, before the declaration existed: 223 `smartvision person
87770
- * posted status=202` in 692 s on endpoint 590 alone, every one of them against
90289
+ * posted status=202` in 692 s on endpoint 104 alone, every one of them against
87771
90290
  * an endpoint whose discovered capability list did not contain this string. The
87772
90291
  * Event Gateway answers 202 because the ENVELOPE parsed; the cloud then drops
87773
90292
  * the event. D76: an accepted POST is not evidence of delivery.
@@ -87946,7 +90465,7 @@ var LwaEventGateway = class {
87946
90465
  /**
87947
90466
  * Camera-native motion flipped. Report it as an `Alexa.MotionSensor`
87948
90467
  * ChangeReport: the rising edge immediately, the falling edge only once the
87949
- * source has stayed quiet (see `MotionClearHold` for the 590 measurement
90468
+ * source has stayed quiet (see `MotionClearHold` for the 104 measurement
87950
90469
  * that made a plain transition dedupe insufficient).
87951
90470
  */
87952
90471
  async onMotionChanged(data) {
@@ -90594,7 +93113,7 @@ var SyncEngine = class {
90594
93113
  /**
90595
93114
  * One in-flight reconcile per device. At boot the 60 s full pass and the
90596
93115
  * debounced bindings-change reconciles overlap, and each one rebuilt the
90597
- * same device serially — the live hub built camera 615's endpoint shape
93116
+ * same device serially — the live hub built camera 101's endpoint shape
90598
93117
  * four times inside one boot (2026-08-15). Joining the running pass costs
90599
93118
  * the duplicate nothing.
90600
93119
  */
@@ -91577,7 +94096,7 @@ var ExportAlexaAddon = class extends BaseAddon {
91577
94096
  * One reconcile pass over every exposed device shortly after boot. This is
91578
94097
  * what heals a shape that drifted while the addon was DOWN (or under an
91579
94098
  * older build that had no signature at all) with no operator click — the
91580
- * doorbell bound on 615 after it was exposed is exactly that case. Deliberately late
94099
+ * doorbell bound on 101 after it was exposed is exactly that case. Deliberately late
91581
94100
  * enough that device providers have registered their caps: a device whose
91582
94101
  * bindings have not landed yet builds a shape we must not push.
91583
94102
  */