@camstack/addon-terminal 0.1.18 → 0.1.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/addon.js +732 -77
- package/dist/addon.mjs +732 -77
- package/package.json +1 -1
package/dist/addon.mjs
CHANGED
|
@@ -10833,7 +10833,14 @@ var cameraStreamsCapability = {
|
|
|
10833
10833
|
low: string().optional()
|
|
10834
10834
|
}),
|
|
10835
10835
|
lastChangedAt: number()
|
|
10836
|
-
})
|
|
10836
|
+
}),
|
|
10837
|
+
/**
|
|
10838
|
+
* Runtime-state durability: **session** — a restored `slotStatuses: streaming` for a camera that has been dark for two hours is a lie the UI renders as truth.
|
|
10839
|
+
*
|
|
10840
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
10841
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
10842
|
+
*/
|
|
10843
|
+
durability: "session"
|
|
10837
10844
|
};
|
|
10838
10845
|
/** Where a block runs. The operator chooses — a block driving a device on an
|
|
10839
10846
|
* agent is the reason placement is not fixed to the hub. */
|
|
@@ -11394,6 +11401,13 @@ var deviceDiscoveryCapability = {
|
|
|
11394
11401
|
kind: "poll"
|
|
11395
11402
|
},
|
|
11396
11403
|
runtimeState: DeviceDiscoveryStatusSchema.extend({ lastFetchedAt: number().int().nonnegative() }),
|
|
11404
|
+
/**
|
|
11405
|
+
* Runtime-state durability: **session** — 5.7 KB of scan output on the largest device, fully re-derivable by re-scanning.
|
|
11406
|
+
*
|
|
11407
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
11408
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
11409
|
+
*/
|
|
11410
|
+
durability: "session",
|
|
11397
11411
|
methods: {
|
|
11398
11412
|
/**
|
|
11399
11413
|
* Snapshot of the current `discovered` list. Returns the
|
|
@@ -13208,11 +13222,33 @@ var NotificationFormatSchema = _enum([
|
|
|
13208
13222
|
* Named by INTENT, never by glyph. "check" would tie the vocabulary to one
|
|
13209
13223
|
* renderer's icon set; "acknowledge" survives an adapter that draws it
|
|
13210
13224
|
* differently.
|
|
13225
|
+
*
|
|
13226
|
+
* ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
|
|
13227
|
+
*
|
|
13228
|
+
* These names are for US. **No adapter may forward one verbatim.** Each maps
|
|
13229
|
+
* the whole set onto its own renderer's vocabulary through a
|
|
13230
|
+
* `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
|
|
13231
|
+
* fallback, so adding a member here fails every adapter's build until someone
|
|
13232
|
+
* decides its glyph, which is the only place that decision can be made
|
|
13233
|
+
* honestly.
|
|
13234
|
+
*
|
|
13235
|
+
* This paragraph is the bug. Zentik declared `actionIcons: true` and passed
|
|
13236
|
+
* `disarm` straight through; iOS feeds that string to
|
|
13237
|
+
* `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
|
|
13238
|
+
* and every snooze and alarm button arrived BLANK. A pass-through is not a
|
|
13239
|
+
* mapping, and "the field is documented" is not "the value renders".
|
|
13240
|
+
*
|
|
13241
|
+
* Adding a member is TRAIN-BOUND. The enum lives in the published
|
|
13242
|
+
* `@camstack/server` closure and the cap seam validates against the HUB's copy,
|
|
13243
|
+
* so an addon that emits a token the running hub does not know does not lose an
|
|
13244
|
+
* icon — its whole `send` fails Zod validation and the notification never
|
|
13245
|
+
* arrives. Never emit a new token from an addon before the train carrying it.
|
|
13211
13246
|
*/
|
|
13212
13247
|
var NotificationActionIconSchema = _enum([
|
|
13213
13248
|
"acknowledge",
|
|
13214
13249
|
"dismiss",
|
|
13215
13250
|
"silence",
|
|
13251
|
+
"snooze",
|
|
13216
13252
|
"view",
|
|
13217
13253
|
"play",
|
|
13218
13254
|
"open",
|
|
@@ -13220,9 +13256,13 @@ var NotificationActionIconSchema = _enum([
|
|
|
13220
13256
|
"lock",
|
|
13221
13257
|
"unlock",
|
|
13222
13258
|
"arm",
|
|
13259
|
+
"arm-home",
|
|
13260
|
+
"arm-away",
|
|
13261
|
+
"arm-night",
|
|
13223
13262
|
"disarm",
|
|
13224
13263
|
"light",
|
|
13225
|
-
"alert"
|
|
13264
|
+
"alert",
|
|
13265
|
+
"camera"
|
|
13226
13266
|
]);
|
|
13227
13267
|
/** A single tap-through action button. */
|
|
13228
13268
|
var NotificationActionSchema = object({
|
|
@@ -13238,7 +13278,23 @@ var NotificationActionSchema = object({
|
|
|
13238
13278
|
* else — see `notification-center/action-token.ts` for what that does and
|
|
13239
13279
|
* does not buy.
|
|
13240
13280
|
*/
|
|
13241
|
-
destructive: boolean().optional()
|
|
13281
|
+
destructive: boolean().optional(),
|
|
13282
|
+
/**
|
|
13283
|
+
* How the tap should REACH the url.
|
|
13284
|
+
*
|
|
13285
|
+
* `navigate` (absent, and every button authored before this field) opens it:
|
|
13286
|
+
* the phone leaves the notification and shows whatever the callback returns.
|
|
13287
|
+
* That is right for a button whose answer the operator wants to read.
|
|
13288
|
+
*
|
|
13289
|
+
* `background` fires it as a POST and stays put. It exists for the buttons
|
|
13290
|
+
* whose whole point is not to interrupt — "silence this for 30 minutes" is
|
|
13291
|
+
* an answer to the notification, and being thrown into a browser tab to
|
|
13292
|
+
* confirm it costs more attention than the notification did. A backend that
|
|
13293
|
+
* cannot do a background call renders it as an ordinary link (the adapters
|
|
13294
|
+
* fall back rather than dropping the button), so this is a preference, never
|
|
13295
|
+
* a requirement.
|
|
13296
|
+
*/
|
|
13297
|
+
mode: _enum(["navigate", "background"]).optional()
|
|
13242
13298
|
});
|
|
13243
13299
|
/**
|
|
13244
13300
|
* The canonical notification. `body` is the only hard field (Apprise model).
|
|
@@ -13406,6 +13462,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
|
|
|
13406
13462
|
targetId: string(),
|
|
13407
13463
|
enabled: boolean()
|
|
13408
13464
|
}), _void(), { kind: "mutation" });
|
|
13465
|
+
new Set([
|
|
13466
|
+
{
|
|
13467
|
+
id: "person",
|
|
13468
|
+
name: "Person"
|
|
13469
|
+
},
|
|
13470
|
+
{
|
|
13471
|
+
id: "vehicle",
|
|
13472
|
+
name: "Vehicle"
|
|
13473
|
+
},
|
|
13474
|
+
{
|
|
13475
|
+
id: "animal",
|
|
13476
|
+
name: "Animal"
|
|
13477
|
+
},
|
|
13478
|
+
{
|
|
13479
|
+
id: "package",
|
|
13480
|
+
name: "Package"
|
|
13481
|
+
}
|
|
13482
|
+
].map((l) => l.id));
|
|
13409
13483
|
var COCO_TO_MACRO = {
|
|
13410
13484
|
mapping: {
|
|
13411
13485
|
person: "person",
|
|
@@ -14090,7 +14164,17 @@ var alarmPanelCapability = {
|
|
|
14090
14164
|
* full slice; renders an arm button per `availableModes` entry and
|
|
14091
14165
|
* a PIN field iff `requiresCode === true`.
|
|
14092
14166
|
*/
|
|
14093
|
-
runtimeState: AlarmPanelStatusSchema
|
|
14167
|
+
runtimeState: AlarmPanelStatusSchema,
|
|
14168
|
+
/**
|
|
14169
|
+
* Runtime-state durability: **restored** — armed state is the one thing a panel must not lose across a restart.
|
|
14170
|
+
*
|
|
14171
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
14172
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
14173
|
+
*/
|
|
14174
|
+
durability: "restored",
|
|
14175
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
14176
|
+
* whether persisting is worth a SQLite commit. */
|
|
14177
|
+
volatileStateFields: ["lastChangedAt"]
|
|
14094
14178
|
};
|
|
14095
14179
|
/**
|
|
14096
14180
|
* Shared geometry vocabulary for on-frame shape caps — privacy-mask,
|
|
@@ -14231,6 +14315,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
14231
14315
|
"alarm-triggered",
|
|
14232
14316
|
"alarm-armed",
|
|
14233
14317
|
"alarm-disarmed",
|
|
14318
|
+
"alarm-arming",
|
|
14319
|
+
"alarm-arm-refused",
|
|
14234
14320
|
"camera-online",
|
|
14235
14321
|
"camera-offline",
|
|
14236
14322
|
"camera-disabled",
|
|
@@ -14267,6 +14353,9 @@ var NcSystemEventConditionSchema = object({
|
|
|
14267
14353
|
nodeIds: array(string().min(1)).min(1).optional(),
|
|
14268
14354
|
packageNames: array(string().min(1)).min(1).optional()
|
|
14269
14355
|
});
|
|
14356
|
+
/** Hard ceiling on a window (24h). A snooze that could not expire would be an
|
|
14357
|
+
* outage the operator asked for once and forgot. */
|
|
14358
|
+
var NC_SNOOZE_MAX_MINUTES = 1440;
|
|
14270
14359
|
/** Weekly schedule — OR of windows; absence on the rule = always active. */
|
|
14271
14360
|
var NcScheduleSchema = object({
|
|
14272
14361
|
windows: array(object({
|
|
@@ -14643,15 +14732,15 @@ var NcConditionsSchema = object({
|
|
|
14643
14732
|
* (an `immediate` rule naming an `audio-*` class, one notification per
|
|
14644
14733
|
* classified sample) stays exactly as it was for rules that already use it.
|
|
14645
14734
|
*
|
|
14646
|
-
*
|
|
14647
|
-
* rather than an
|
|
14648
|
-
* (`camstack/src/data/notification-center.ts`, guarded by
|
|
14649
|
-
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor
|
|
14735
|
+
* In {@link NC_CONDITION_CATALOG} since P2, and the ORDER it got there is the
|
|
14736
|
+
* rule rather than an accident: the viewer mirrors the descriptor enums BY
|
|
14737
|
+
* HAND (`camstack/src/data/notification-center.ts`, guarded by
|
|
14738
|
+
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor strips the
|
|
14650
14739
|
* condition fields it does not know when a rule is saved from the phone.
|
|
14651
14740
|
* Publishing an editor for a condition the app cannot round-trip is how an
|
|
14652
|
-
* operator loses a rule's conditions by opening it — so the
|
|
14653
|
-
*
|
|
14654
|
-
*
|
|
14741
|
+
* operator loses a rule's conditions by opening it — so the viewer mirror
|
|
14742
|
+
* (P3, shipped) went FIRST, and the descriptor an editor renders from
|
|
14743
|
+
* follows here.
|
|
14655
14744
|
*/
|
|
14656
14745
|
audio: NcAudioConditionSchema.optional()
|
|
14657
14746
|
});
|
|
@@ -14887,6 +14976,30 @@ var NcRuleInputSchema = object({
|
|
|
14887
14976
|
*/
|
|
14888
14977
|
snoozeAllowGlobal: boolean().optional(),
|
|
14889
14978
|
/**
|
|
14979
|
+
* The snooze durations THIS rule's notification offers as buttons, in
|
|
14980
|
+
* minutes.
|
|
14981
|
+
*
|
|
14982
|
+
* Three states, and all three are distinct — which is exactly why this is
|
|
14983
|
+
* `.optional()` and never `.default()`. A Zod default does not run on the
|
|
14984
|
+
* addon cap path (three production failures in one day), so a schema default
|
|
14985
|
+
* would collapse the first two:
|
|
14986
|
+
*
|
|
14987
|
+
* | value | meaning |
|
|
14988
|
+
* | --- | --- |
|
|
14989
|
+
* | absent | the operator never said ⇒ {@link NC_DEFAULT_SNOOZE_MINUTES} |
|
|
14990
|
+
* | `[]` | **no snooze buttons on this rule** — the explicit override |
|
|
14991
|
+
* | a list | these choices, de-duplicated and sorted, at most four |
|
|
14992
|
+
*
|
|
14993
|
+
* `.max(4)` because the notifier's own action budget is small (ntfy allows
|
|
14994
|
+
* three buttons in total) and a rule that spent it all on snooze choices
|
|
14995
|
+
* would push its own tap-through actions off the notification.
|
|
14996
|
+
*
|
|
14997
|
+
* An empty list is NOT an alarm exemption: a rule the alarm is about, or
|
|
14998
|
+
* that arms the panel, is exempt automatically and cannot be silenced by a
|
|
14999
|
+
* window from anywhere (D133).
|
|
15000
|
+
*/
|
|
15001
|
+
snoozeOptions: array(number().int().min(1).max(NC_SNOOZE_MAX_MINUTES)).max(4).optional(),
|
|
15002
|
+
/**
|
|
14890
15003
|
* Devices this rule ACTUATES — arm the alarm, open a gate, turn on a light.
|
|
14891
15004
|
*
|
|
14892
15005
|
* This is what makes the rule set the alarm's trigger set without the alarm
|
|
@@ -14986,6 +15099,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
14986
15099
|
"device",
|
|
14987
15100
|
"package",
|
|
14988
15101
|
"occupancy",
|
|
15102
|
+
"audio",
|
|
14989
15103
|
"system"
|
|
14990
15104
|
]),
|
|
14991
15105
|
label: string(),
|
|
@@ -15004,6 +15118,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
15004
15118
|
"crossingSelect",
|
|
15005
15119
|
"polygonDraw",
|
|
15006
15120
|
"occupancy",
|
|
15121
|
+
"audio",
|
|
15007
15122
|
"deviceState",
|
|
15008
15123
|
"systemEvent"
|
|
15009
15124
|
]),
|
|
@@ -15155,7 +15270,20 @@ var NcSnoozeInputSchema = object({
|
|
|
15155
15270
|
ruleId: string().optional(),
|
|
15156
15271
|
/** Required when `scope: 'device'`. */
|
|
15157
15272
|
deviceId: number().int().optional(),
|
|
15158
|
-
|
|
15273
|
+
/**
|
|
15274
|
+
* Narrow the window to these subject classes — "the cat, not the person".
|
|
15275
|
+
*
|
|
15276
|
+
* ORTHOGONAL to `scope`, deliberately, and absent means EVERY class: that is
|
|
15277
|
+
* what every window authored before this field meant, so no persisted row
|
|
15278
|
+
* changes meaning and no client has to learn anything to keep working.
|
|
15279
|
+
*
|
|
15280
|
+
* It is what makes the window's real key `(deviceId, classes[])` and lets it
|
|
15281
|
+
* cross rules (D133): the operator points at a camera and a kind of thing,
|
|
15282
|
+
* not at whichever of their four rules happened to produce the notification
|
|
15283
|
+
* they are dismissing.
|
|
15284
|
+
*/
|
|
15285
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
15286
|
+
durationMinutes: number().int().min(1).max(NC_SNOOZE_MAX_MINUTES),
|
|
15159
15287
|
/**
|
|
15160
15288
|
* Silence this for EVERY recipient, not just the caller. Permission is
|
|
15161
15289
|
* checked server-side (the rule's `snoozeAllowGlobal`, or admin for the
|
|
@@ -15180,6 +15308,10 @@ var NcSnoozeSchema = object({
|
|
|
15180
15308
|
scope: NcSnoozeScopeSchema,
|
|
15181
15309
|
ruleId: string().optional(),
|
|
15182
15310
|
deviceId: number().int().optional(),
|
|
15311
|
+
/** Subject classes this window covers. ABSENT = every class — see
|
|
15312
|
+
* {@link NcSnoozeInputSchema.shape.classes}. Lives in the JSON blob and has
|
|
15313
|
+
* no SQLite column: nothing queries a window by class. */
|
|
15314
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
15183
15315
|
startedAt: number(),
|
|
15184
15316
|
/** Exclusive: at exactly this instant the snooze is over. Expiry is a
|
|
15185
15317
|
* COMPARISON, not a job — no sweeper can leave the operator silenced. */
|
|
@@ -17280,7 +17412,14 @@ var zonesCapability = {
|
|
|
17280
17412
|
* handle. Slice shape is `{ zones: Zone[] }` so future extensions
|
|
17281
17413
|
* (e.g. zone groupings) can sit alongside the polygon list.
|
|
17282
17414
|
*/
|
|
17283
|
-
runtimeState: object({ zones: array(ZoneSchema).readonly() })
|
|
17415
|
+
runtimeState: object({ zones: array(ZoneSchema).readonly() }),
|
|
17416
|
+
/**
|
|
17417
|
+
* Runtime-state durability: **restored** — written only on operator mutation, so a camera that never had one has nothing to re-derive from. This is the slice `zone-mirror-hydration.ts` exists to paper over.
|
|
17418
|
+
*
|
|
17419
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
17420
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
17421
|
+
*/
|
|
17422
|
+
durability: "restored"
|
|
17284
17423
|
};
|
|
17285
17424
|
/**
|
|
17286
17425
|
* A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
|
|
@@ -17450,6 +17589,22 @@ var detectionFpsField = {
|
|
|
17450
17589
|
default: 10,
|
|
17451
17590
|
step: 1
|
|
17452
17591
|
};
|
|
17592
|
+
/**
|
|
17593
|
+
* The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
|
|
17594
|
+
*
|
|
17595
|
+
* The recheck is now on by default (a parked car is invisible to occupancy
|
|
17596
|
+
* rules until the stationary registry has been rebuilt by motion, which after a
|
|
17597
|
+
* restart may be never on a quiet camera). Each cycle re-subscribes a detection
|
|
17598
|
+
* session — an RTSP re-dial — so the switch is only affordable at a WIDE
|
|
17599
|
+
* interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
|
|
17600
|
+
* 30 s. A parked car is therefore counted within 5 minutes of a restart.
|
|
17601
|
+
*
|
|
17602
|
+
* Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
|
|
17603
|
+
* the host validates `attachCamera` against ITS copy of this schema, so a
|
|
17604
|
+
* runner asked for 600 would be rejected by the hub until a `@camstack/server`
|
|
17605
|
+
* carrying the wider bound is installed everywhere. 300 is the widest value
|
|
17606
|
+
* that ships with an addon deploy.
|
|
17607
|
+
*/
|
|
17453
17608
|
var occupancyRecheckSecField = {
|
|
17454
17609
|
min: 0,
|
|
17455
17610
|
max: 300,
|
|
@@ -17651,15 +17806,21 @@ var RunnerCameraConfigSchema = object({
|
|
|
17651
17806
|
*/
|
|
17652
17807
|
onboardMotionDrivesAnalyzer: boolean().default(true),
|
|
17653
17808
|
/**
|
|
17654
|
-
* Master toggle for the occupancy re-check. When `false`
|
|
17655
|
-
*
|
|
17656
|
-
* this is off by default because the recheck re-subscribes a detection session
|
|
17657
|
-
* every N seconds while `watching`, a major source of pull-decoder re-dial
|
|
17658
|
-
* churn (each cycle creates+tears a session → RTSP re-dial → latency). The
|
|
17809
|
+
* Master toggle for the occupancy re-check. When `false` the runner never arms
|
|
17810
|
+
* the periodic recheck timer, regardless of `occupancyRecheckSec`; the
|
|
17659
17811
|
* `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
|
|
17660
17812
|
* (and only render) when this is enabled.
|
|
17661
|
-
|
|
17662
|
-
|
|
17813
|
+
*
|
|
17814
|
+
* DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
|
|
17815
|
+
* recheck re-subscribes a detection session every N seconds while `watching`
|
|
17816
|
+
* — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
|
|
17817
|
+
* pull-decoder churn source. What that bought was a blind spot: a STATIONARY
|
|
17818
|
+
* object is counted only while the stationary registry holds it, and the
|
|
17819
|
+
* registry rebuilds from motion, so after a restart a parked car was invisible
|
|
17820
|
+
* to every occupancy rule until something moved in front of it. The churn is
|
|
17821
|
+
* now paid on the interval instead — see `occupancyRecheckSecField`.
|
|
17822
|
+
*/
|
|
17823
|
+
occupancyRecheckEnabled: boolean().default(true),
|
|
17663
17824
|
occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
|
|
17664
17825
|
occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
|
|
17665
17826
|
/**
|
|
@@ -20217,7 +20378,17 @@ var airQualitySensorCapability = {
|
|
|
20217
20378
|
schema: AirQualitySensorStatusSchema,
|
|
20218
20379
|
kind: "push"
|
|
20219
20380
|
},
|
|
20220
|
-
runtimeState: AirQualitySensorStatusSchema
|
|
20381
|
+
runtimeState: AirQualitySensorStatusSchema,
|
|
20382
|
+
/**
|
|
20383
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`.
|
|
20384
|
+
*
|
|
20385
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20386
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20387
|
+
*/
|
|
20388
|
+
durability: "restored",
|
|
20389
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20390
|
+
* whether persisting is worth a SQLite commit. */
|
|
20391
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
20221
20392
|
};
|
|
20222
20393
|
/**
|
|
20223
20394
|
* Ambient illuminance reading in lux. Drives Home Assistant `sensor`
|
|
@@ -20249,7 +20420,17 @@ var ambientLightSensorCapability = {
|
|
|
20249
20420
|
schema: AmbientLightSensorStatusSchema,
|
|
20250
20421
|
kind: "push"
|
|
20251
20422
|
},
|
|
20252
|
-
runtimeState: AmbientLightSensorStatusSchema
|
|
20423
|
+
runtimeState: AmbientLightSensorStatusSchema,
|
|
20424
|
+
/**
|
|
20425
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`.
|
|
20426
|
+
*
|
|
20427
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20428
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20429
|
+
*/
|
|
20430
|
+
durability: "restored",
|
|
20431
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20432
|
+
* whether persisting is worth a SQLite commit. */
|
|
20433
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
20253
20434
|
};
|
|
20254
20435
|
/**
|
|
20255
20436
|
* Per-class audio metrics aggregated over a sliding window.
|
|
@@ -20367,7 +20548,14 @@ var audioMetricsCapability = {
|
|
|
20367
20548
|
}), AudioMetricsHistorySchema)
|
|
20368
20549
|
},
|
|
20369
20550
|
/** Reactive runtime-state mirror — live `device.state.audioMetrics.value`. */
|
|
20370
|
-
runtimeState: AudioMetricsSnapshotSchema
|
|
20551
|
+
runtimeState: AudioMetricsSnapshotSchema,
|
|
20552
|
+
/**
|
|
20553
|
+
* Runtime-state durability: **session** — 1 Hz per camera at the mirror and ~63 % of the fleet's whole runtime-state write rate. `avgDbfs` is a rolling 60 s mean that genuinely moves every second, so no equality fix reclaims it — and a two-hour-old dB reading rendered as current is worse than no reading.
|
|
20554
|
+
*
|
|
20555
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20556
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20557
|
+
*/
|
|
20558
|
+
durability: "session"
|
|
20371
20559
|
};
|
|
20372
20560
|
/**
|
|
20373
20561
|
* Automation-control cap. Models HA `automation.*` entities on
|
|
@@ -20429,7 +20617,14 @@ var automationControlCapability = {
|
|
|
20429
20617
|
* reads `enabled` (toggle) + `isRunning` (spinner) + `lastError`
|
|
20430
20618
|
* (badge) directly.
|
|
20431
20619
|
*/
|
|
20432
|
-
runtimeState: AutomationControlStatusSchema
|
|
20620
|
+
runtimeState: AutomationControlStatusSchema,
|
|
20621
|
+
/**
|
|
20622
|
+
* Runtime-state durability: **session** — the authority for an automation being enabled is the automation store; a restored `isRunning` would be a lie. D62: one authority per switch.
|
|
20623
|
+
*
|
|
20624
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20625
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20626
|
+
*/
|
|
20627
|
+
durability: "session"
|
|
20433
20628
|
};
|
|
20434
20629
|
/**
|
|
20435
20630
|
* Battery status snapshot. Emitted by providers whose device is
|
|
@@ -20535,7 +20730,17 @@ onStatusChanged: { data: object({
|
|
|
20535
20730
|
* via `device.runtimeState.getCapState('battery')` regardless of
|
|
20536
20731
|
* the underlying driver.
|
|
20537
20732
|
*/
|
|
20538
|
-
runtimeState: BatteryStatusSchema
|
|
20733
|
+
runtimeState: BatteryStatusSchema,
|
|
20734
|
+
/**
|
|
20735
|
+
* Runtime-state durability: **restored** — a sleeping battery camera may not report for hours; the restored percentage is the only thing the UI and the sleep gate have. Zero churn once `lastUpdated` is excluded — 526 writes, 0 value changes, in 25 minutes.
|
|
20736
|
+
*
|
|
20737
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20738
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20739
|
+
*/
|
|
20740
|
+
durability: "restored",
|
|
20741
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20742
|
+
* whether persisting is worth a SQLite commit. */
|
|
20743
|
+
volatileStateFields: ["lastUpdated"]
|
|
20539
20744
|
};
|
|
20540
20745
|
/**
|
|
20541
20746
|
* Generic boolean sensor — last-resort fallback when no domain-
|
|
@@ -20564,7 +20769,17 @@ var binaryCapability = {
|
|
|
20564
20769
|
schema: BinaryStatusSchema,
|
|
20565
20770
|
kind: "push"
|
|
20566
20771
|
},
|
|
20567
|
-
runtimeState: BinaryStatusSchema
|
|
20772
|
+
runtimeState: BinaryStatusSchema,
|
|
20773
|
+
/**
|
|
20774
|
+
* Runtime-state durability: **restored** — transition-driven sensor state; the restored value gives the boot comparison.
|
|
20775
|
+
*
|
|
20776
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20777
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20778
|
+
*/
|
|
20779
|
+
durability: "restored",
|
|
20780
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20781
|
+
* whether persisting is worth a SQLite commit. */
|
|
20782
|
+
volatileStateFields: ["lastChangedAt"]
|
|
20568
20783
|
};
|
|
20569
20784
|
/**
|
|
20570
20785
|
* Dimmable-light brightness control. Co-exists with `switch` on the
|
|
@@ -20617,7 +20832,14 @@ onBrightnessChanged: { data: object({
|
|
|
20617
20832
|
* by the kernel. Read via `device.state.brightness.value` so UI
|
|
20618
20833
|
* sliders surface the current level without polling the provider.
|
|
20619
20834
|
*/
|
|
20620
|
-
runtimeState: BrightnessStatusSchema
|
|
20835
|
+
runtimeState: BrightnessStatusSchema,
|
|
20836
|
+
/**
|
|
20837
|
+
* Runtime-state durability: **session** — live lamp state, re-published by the provider on connect.
|
|
20838
|
+
*
|
|
20839
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20840
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20841
|
+
*/
|
|
20842
|
+
durability: "session"
|
|
20621
20843
|
};
|
|
20622
20844
|
DeviceType.Button, method(object({ deviceId: number().int().nonnegative() }), _void(), {
|
|
20623
20845
|
kind: "mutation",
|
|
@@ -20705,7 +20927,17 @@ var carbonMonoxideCapability = {
|
|
|
20705
20927
|
schema: CarbonMonoxideStatusSchema,
|
|
20706
20928
|
kind: "push"
|
|
20707
20929
|
},
|
|
20708
|
-
runtimeState: CarbonMonoxideStatusSchema
|
|
20930
|
+
runtimeState: CarbonMonoxideStatusSchema,
|
|
20931
|
+
/**
|
|
20932
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
20933
|
+
*
|
|
20934
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20935
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20936
|
+
*/
|
|
20937
|
+
durability: "restored",
|
|
20938
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20939
|
+
* whether persisting is worth a SQLite commit. */
|
|
20940
|
+
volatileStateFields: ["lastChangedAt"]
|
|
20709
20941
|
};
|
|
20710
20942
|
/**
|
|
20711
20943
|
* HVAC / climate control cap. Models the full surface of a HA
|
|
@@ -20865,7 +21097,14 @@ var climateControlCapability = {
|
|
|
20865
21097
|
* the full slice via `device.state.climate-control.value` and refresh
|
|
20866
21098
|
* on every push without re-querying the provider.
|
|
20867
21099
|
*/
|
|
20868
|
-
runtimeState: ClimateControlStatusSchema
|
|
21100
|
+
runtimeState: ClimateControlStatusSchema,
|
|
21101
|
+
/**
|
|
21102
|
+
* Runtime-state durability: **session** — as `brightness`; `currentTemp` moves continuously and is re-published on connect.
|
|
21103
|
+
*
|
|
21104
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21105
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21106
|
+
*/
|
|
21107
|
+
durability: "session"
|
|
20869
21108
|
};
|
|
20870
21109
|
/**
|
|
20871
21110
|
* Color-light cap. Coexists with `switch` (on/off) and `brightness`
|
|
@@ -20975,7 +21214,14 @@ onColorChanged: { data: object({
|
|
|
20975
21214
|
* kernel. Read via `device.state.color.value` so UI pickers surface
|
|
20976
21215
|
* the current chromaticity without polling the provider.
|
|
20977
21216
|
*/
|
|
20978
|
-
runtimeState: ColorStatusSchema
|
|
21217
|
+
runtimeState: ColorStatusSchema,
|
|
21218
|
+
/**
|
|
21219
|
+
* Runtime-state durability: **session** — as `brightness`.
|
|
21220
|
+
*
|
|
21221
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21222
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21223
|
+
*/
|
|
21224
|
+
durability: "session"
|
|
20979
21225
|
};
|
|
20980
21226
|
var ConnectionTestOutcomeSchema = discriminatedUnion("outcome", [
|
|
20981
21227
|
object({
|
|
@@ -21033,7 +21279,17 @@ var connectivityCapability = {
|
|
|
21033
21279
|
schema: ConnectivityStatusSchema,
|
|
21034
21280
|
kind: "push"
|
|
21035
21281
|
},
|
|
21036
|
-
runtimeState: ConnectivityStatusSchema
|
|
21282
|
+
runtimeState: ConnectivityStatusSchema,
|
|
21283
|
+
/**
|
|
21284
|
+
* Runtime-state durability: **restored** — same shape and same argument as `device-status`, for links rather than devices.
|
|
21285
|
+
*
|
|
21286
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21287
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21288
|
+
*/
|
|
21289
|
+
durability: "restored",
|
|
21290
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21291
|
+
* whether persisting is worth a SQLite commit. */
|
|
21292
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21037
21293
|
};
|
|
21038
21294
|
/**
|
|
21039
21295
|
* Generic device-consumables capability — surfaces a device's
|
|
@@ -21115,7 +21371,14 @@ reset: method(object({
|
|
|
21115
21371
|
}
|
|
21116
21372
|
}
|
|
21117
21373
|
},
|
|
21118
|
-
runtimeState: ConsumablesStatusSchema.extend({ lastFetchedAt: number() })
|
|
21374
|
+
runtimeState: ConsumablesStatusSchema.extend({ lastFetchedAt: number() }),
|
|
21375
|
+
/**
|
|
21376
|
+
* Runtime-state durability: **session** — the authority is the appliance; the provider re-reads the whole item array on connect.
|
|
21377
|
+
*
|
|
21378
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21379
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21380
|
+
*/
|
|
21381
|
+
durability: "session"
|
|
21119
21382
|
};
|
|
21120
21383
|
/**
|
|
21121
21384
|
* Door / window / opening / garage / valve contact sensor. Boolean
|
|
@@ -21146,7 +21409,17 @@ var contactCapability = {
|
|
|
21146
21409
|
schema: ContactStatusSchema,
|
|
21147
21410
|
kind: "push"
|
|
21148
21411
|
},
|
|
21149
|
-
runtimeState: ContactStatusSchema
|
|
21412
|
+
runtimeState: ContactStatusSchema,
|
|
21413
|
+
/**
|
|
21414
|
+
* Runtime-state durability: **restored** — a door left open across a restart must still read open.
|
|
21415
|
+
*
|
|
21416
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21417
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21418
|
+
*/
|
|
21419
|
+
durability: "restored",
|
|
21420
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21421
|
+
* whether persisting is worth a SQLite commit. */
|
|
21422
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21150
21423
|
};
|
|
21151
21424
|
/**
|
|
21152
21425
|
* Status slice — flat object (the framework's `runtimeState` contract
|
|
@@ -21252,7 +21525,14 @@ var controlCapability = {
|
|
|
21252
21525
|
* dropdown / text field / date picker) read the slice's discriminant
|
|
21253
21526
|
* and value directly without polling the provider.
|
|
21254
21527
|
*/
|
|
21255
|
-
runtimeState: ControlStatusSchema
|
|
21528
|
+
runtimeState: ControlStatusSchema,
|
|
21529
|
+
/**
|
|
21530
|
+
* Runtime-state durability: **session** — a generic control mirrors an external entity that re-publishes on connect; the options array is re-derived with it.
|
|
21531
|
+
*
|
|
21532
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21533
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21534
|
+
*/
|
|
21535
|
+
durability: "session"
|
|
21256
21536
|
};
|
|
21257
21537
|
var CoverStatusSchema = object({
|
|
21258
21538
|
/** Lifecycle state of the cover. */
|
|
@@ -21313,7 +21593,17 @@ var coverCapability = {
|
|
|
21313
21593
|
* Runtime-state slice — mirrored by the kernel. UI controls watch
|
|
21314
21594
|
* the slice for live position changes during a move.
|
|
21315
21595
|
*/
|
|
21316
|
-
runtimeState: CoverStatusSchema
|
|
21596
|
+
runtimeState: CoverStatusSchema,
|
|
21597
|
+
/**
|
|
21598
|
+
* Runtime-state durability: **restored** — position survives a restart on the device; the mirror should agree at boot rather than read blank.
|
|
21599
|
+
*
|
|
21600
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21601
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21602
|
+
*/
|
|
21603
|
+
durability: "restored",
|
|
21604
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21605
|
+
* whether persisting is worth a SQLite commit. */
|
|
21606
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21317
21607
|
};
|
|
21318
21608
|
/**
|
|
21319
21609
|
* Vendor-neutral day/night (IR-cut) control — the per-camera config cap
|
|
@@ -21407,7 +21697,17 @@ var dayNightCapability = {
|
|
|
21407
21697
|
schema: DayNightStatusSchema,
|
|
21408
21698
|
kind: "poll"
|
|
21409
21699
|
},
|
|
21410
|
-
runtimeState: DayNightStatusSchema
|
|
21700
|
+
runtimeState: DayNightStatusSchema,
|
|
21701
|
+
/**
|
|
21702
|
+
* Runtime-state durability: **restored** — operator-set IR-cut behaviour; mutation-driven.
|
|
21703
|
+
*
|
|
21704
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21705
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21706
|
+
*/
|
|
21707
|
+
durability: "restored",
|
|
21708
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21709
|
+
* whether persisting is worth a SQLite commit. */
|
|
21710
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
21411
21711
|
};
|
|
21412
21712
|
/**
|
|
21413
21713
|
* Generic device-level status snapshot. Auto-registered by `BaseDevice`
|
|
@@ -21454,7 +21754,17 @@ onStatusChanged: { data: object({
|
|
|
21454
21754
|
schema: DeviceStatusSchema,
|
|
21455
21755
|
kind: "push"
|
|
21456
21756
|
},
|
|
21457
|
-
runtimeState: DeviceStatusSchema
|
|
21757
|
+
runtimeState: DeviceStatusSchema,
|
|
21758
|
+
/**
|
|
21759
|
+
* Runtime-state durability: **restored** — the previous observation is what makes the first reading after a restart a COMPARISON instead of a phantom transition (D130). 32 real flips across 16 devices in 25 min — the busiest slice in the cold half.
|
|
21760
|
+
*
|
|
21761
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21762
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21763
|
+
*/
|
|
21764
|
+
durability: "restored",
|
|
21765
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21766
|
+
* whether persisting is worth a SQLite commit. */
|
|
21767
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21458
21768
|
};
|
|
21459
21769
|
/**
|
|
21460
21770
|
* Doorbell button cap. Two kinds of providers coexist behind this cap
|
|
@@ -21516,7 +21826,14 @@ onPressed: { data: DoorbellPressEventSchema } },
|
|
|
21516
21826
|
* `device.state.doorbell.value`. UIs can show "last ring 5m ago"
|
|
21517
21827
|
* without subscribing.
|
|
21518
21828
|
*/
|
|
21519
|
-
runtimeState: DoorbellStatusSchema
|
|
21829
|
+
runtimeState: DoorbellStatusSchema,
|
|
21830
|
+
/**
|
|
21831
|
+
* Runtime-state durability: **restored** — a monotonic accumulator: the slice IS the record. `lastPressedAt` is content here, not a clock, so it is deliberately NOT volatile.
|
|
21832
|
+
*
|
|
21833
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21834
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21835
|
+
*/
|
|
21836
|
+
durability: "restored"
|
|
21520
21837
|
};
|
|
21521
21838
|
/**
|
|
21522
21839
|
* Enum-state sensor — a string value picked from a finite option set.
|
|
@@ -21556,7 +21873,17 @@ var enumSensorCapability = {
|
|
|
21556
21873
|
schema: EnumSensorStatusSchema,
|
|
21557
21874
|
kind: "push"
|
|
21558
21875
|
},
|
|
21559
|
-
runtimeState: EnumSensorStatusSchema
|
|
21876
|
+
runtimeState: EnumSensorStatusSchema,
|
|
21877
|
+
/**
|
|
21878
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`; 80 devices.
|
|
21879
|
+
*
|
|
21880
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21881
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21882
|
+
*/
|
|
21883
|
+
durability: "restored",
|
|
21884
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21885
|
+
* whether persisting is worth a SQLite commit. */
|
|
21886
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
21560
21887
|
};
|
|
21561
21888
|
/**
|
|
21562
21889
|
* Generic stateless event emitter. Installed on a `DeviceType.EventEmitter`
|
|
@@ -21592,7 +21919,14 @@ var eventEmitterCapability = {
|
|
|
21592
21919
|
schema: EventEmitterStatusSchema,
|
|
21593
21920
|
kind: "push"
|
|
21594
21921
|
},
|
|
21595
|
-
runtimeState: EventEmitterStatusSchema
|
|
21922
|
+
runtimeState: EventEmitterStatusSchema,
|
|
21923
|
+
/**
|
|
21924
|
+
* Runtime-state durability: **session** — `eventCountSinceStart` names its own scope.
|
|
21925
|
+
*
|
|
21926
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21927
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21928
|
+
*/
|
|
21929
|
+
durability: "session"
|
|
21596
21930
|
};
|
|
21597
21931
|
var EventItemSchema = object({
|
|
21598
21932
|
id: string(),
|
|
@@ -21873,7 +22207,14 @@ var fanControlCapability = {
|
|
|
21873
22207
|
* Runtime-state slice — mirrored by the kernel. UI fan speed
|
|
21874
22208
|
* sliders read `percentage` for live updates.
|
|
21875
22209
|
*/
|
|
21876
|
-
runtimeState: FanControlStatusSchema
|
|
22210
|
+
runtimeState: FanControlStatusSchema,
|
|
22211
|
+
/**
|
|
22212
|
+
* Runtime-state durability: **session** — as `brightness`.
|
|
22213
|
+
*
|
|
22214
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22215
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22216
|
+
*/
|
|
22217
|
+
durability: "session"
|
|
21877
22218
|
};
|
|
21878
22219
|
/**
|
|
21879
22220
|
* Per-device feature/identity probe slice. Holds the runtime-resolved
|
|
@@ -21949,7 +22290,14 @@ onProbeChanged: { data: object({
|
|
|
21949
22290
|
schema: FeatureProbeStatusSchema,
|
|
21950
22291
|
kind: "push"
|
|
21951
22292
|
},
|
|
21952
|
-
runtimeState: FeatureProbeStatusSchema
|
|
22293
|
+
runtimeState: FeatureProbeStatusSchema,
|
|
22294
|
+
/**
|
|
22295
|
+
* Runtime-state durability: **session** — per-session by definition — `lastProbedAt` means "this worker completed a probe THIS session", which is why the mirror seed already blanks it. Persisting it only creates something to blank.
|
|
22296
|
+
*
|
|
22297
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22298
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22299
|
+
*/
|
|
22300
|
+
durability: "session"
|
|
21953
22301
|
};
|
|
21954
22302
|
/**
|
|
21955
22303
|
* Water leak / moisture sensor. Boolean "is liquid currently
|
|
@@ -21976,7 +22324,17 @@ var floodCapability = {
|
|
|
21976
22324
|
schema: FloodStatusSchema,
|
|
21977
22325
|
kind: "push"
|
|
21978
22326
|
},
|
|
21979
|
-
runtimeState: FloodStatusSchema
|
|
22327
|
+
runtimeState: FloodStatusSchema,
|
|
22328
|
+
/**
|
|
22329
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
22330
|
+
*
|
|
22331
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22332
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22333
|
+
*/
|
|
22334
|
+
durability: "restored",
|
|
22335
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22336
|
+
* whether persisting is worth a SQLite commit. */
|
|
22337
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21980
22338
|
};
|
|
21981
22339
|
/**
|
|
21982
22340
|
* Combustible-gas (LPG / methane / hydrogen) alarm sensor. Drives
|
|
@@ -21999,7 +22357,17 @@ var gasCapability = {
|
|
|
21999
22357
|
schema: GasStatusSchema,
|
|
22000
22358
|
kind: "push"
|
|
22001
22359
|
},
|
|
22002
|
-
runtimeState: GasStatusSchema
|
|
22360
|
+
runtimeState: GasStatusSchema,
|
|
22361
|
+
/**
|
|
22362
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
22363
|
+
*
|
|
22364
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22365
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22366
|
+
*/
|
|
22367
|
+
durability: "restored",
|
|
22368
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22369
|
+
* whether persisting is worth a SQLite commit. */
|
|
22370
|
+
volatileStateFields: ["lastChangedAt"]
|
|
22003
22371
|
};
|
|
22004
22372
|
/**
|
|
22005
22373
|
* Humidifier / dehumidifier cap. Models HA `humidifier.*` entities —
|
|
@@ -22075,7 +22443,14 @@ var humidifierCapability = {
|
|
|
22075
22443
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
22076
22444
|
* slice for live humidity / mode changes.
|
|
22077
22445
|
*/
|
|
22078
|
-
runtimeState: HumidifierStatusSchema
|
|
22446
|
+
runtimeState: HumidifierStatusSchema,
|
|
22447
|
+
/**
|
|
22448
|
+
* Runtime-state durability: **session** — as `climate-control`.
|
|
22449
|
+
*
|
|
22450
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22451
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22452
|
+
*/
|
|
22453
|
+
durability: "session"
|
|
22079
22454
|
};
|
|
22080
22455
|
/**
|
|
22081
22456
|
* Single-metric humidity reading. Drives Home Assistant `sensor`
|
|
@@ -22111,7 +22486,17 @@ var humiditySensorCapability = {
|
|
|
22111
22486
|
schema: HumiditySensorStatusSchema,
|
|
22112
22487
|
kind: "push"
|
|
22113
22488
|
},
|
|
22114
|
-
runtimeState: HumiditySensorStatusSchema
|
|
22489
|
+
runtimeState: HumiditySensorStatusSchema,
|
|
22490
|
+
/**
|
|
22491
|
+
* Runtime-state durability: **restored** — as `numeric-sensor` (67 of 75 writes were the clock alone).
|
|
22492
|
+
*
|
|
22493
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22494
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22495
|
+
*/
|
|
22496
|
+
durability: "restored",
|
|
22497
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22498
|
+
* whether persisting is worth a SQLite commit. */
|
|
22499
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
22115
22500
|
};
|
|
22116
22501
|
/**
|
|
22117
22502
|
* Image display cap. Models a single still image exposed by an integration —
|
|
@@ -22149,7 +22534,14 @@ var imageCapability = {
|
|
|
22149
22534
|
* Runtime-state slice — mirrored by the kernel. The UI reads `url`
|
|
22150
22535
|
* directly and renders the still image.
|
|
22151
22536
|
*/
|
|
22152
|
-
runtimeState: ImageStatusSchema
|
|
22537
|
+
runtimeState: ImageStatusSchema,
|
|
22538
|
+
/**
|
|
22539
|
+
* Runtime-state durability: **session** — a snapshot URL is a session-scoped handle; a restored one points at nothing.
|
|
22540
|
+
*
|
|
22541
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22542
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22543
|
+
*/
|
|
22544
|
+
durability: "session"
|
|
22153
22545
|
};
|
|
22154
22546
|
/**
|
|
22155
22547
|
* Vendor-neutral image / picture-adjustment cap — the per-camera config
|
|
@@ -22298,7 +22690,17 @@ var imageSettingsCapability = {
|
|
|
22298
22690
|
schema: ImageSettingsStatusSchema,
|
|
22299
22691
|
kind: "poll"
|
|
22300
22692
|
},
|
|
22301
|
-
runtimeState: ImageSettingsStatusSchema
|
|
22693
|
+
runtimeState: ImageSettingsStatusSchema,
|
|
22694
|
+
/**
|
|
22695
|
+
* Runtime-state durability: **restored** — operator-set camera imaging; mutation-driven.
|
|
22696
|
+
*
|
|
22697
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22698
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22699
|
+
*/
|
|
22700
|
+
durability: "restored",
|
|
22701
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22702
|
+
* whether persisting is worth a SQLite commit. */
|
|
22703
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
22302
22704
|
};
|
|
22303
22705
|
/**
|
|
22304
22706
|
* integrations — system-scoped singleton capability for integration
|
|
@@ -22638,7 +23040,14 @@ var lawnMowerControlCapability = {
|
|
|
22638
23040
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
22639
23041
|
* slice for live activity + battery changes.
|
|
22640
23042
|
*/
|
|
22641
|
-
runtimeState: LawnMowerControlStatusSchema
|
|
23043
|
+
runtimeState: LawnMowerControlStatusSchema,
|
|
23044
|
+
/**
|
|
23045
|
+
* Runtime-state durability: **session** — as `vacuum-control`.
|
|
23046
|
+
*
|
|
23047
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23048
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23049
|
+
*/
|
|
23050
|
+
durability: "session"
|
|
22642
23051
|
};
|
|
22643
23052
|
/**
|
|
22644
23053
|
* local-network — hub-only singleton.
|
|
@@ -22844,7 +23253,17 @@ var lockControlCapability = {
|
|
|
22844
23253
|
* read `state` and disable themselves during `locking`/`unlocking`
|
|
22845
23254
|
* transitions.
|
|
22846
23255
|
*/
|
|
22847
|
-
runtimeState: LockControlStatusSchema
|
|
23256
|
+
runtimeState: LockControlStatusSchema,
|
|
23257
|
+
/**
|
|
23258
|
+
* Runtime-state durability: **restored** — a lock left locked must still read locked.
|
|
23259
|
+
*
|
|
23260
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23261
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23262
|
+
*/
|
|
23263
|
+
durability: "restored",
|
|
23264
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
23265
|
+
* whether persisting is worth a SQLite commit. */
|
|
23266
|
+
volatileStateFields: ["lastChangedAt"]
|
|
22848
23267
|
};
|
|
22849
23268
|
/**
|
|
22850
23269
|
* Media-player cap. Models HA `media_player.*` (Sonos, Chromecast,
|
|
@@ -23006,7 +23425,14 @@ var mediaPlayerCapability = {
|
|
|
23006
23425
|
* full slice for live now-playing, volume, and progress updates
|
|
23007
23426
|
* without polling.
|
|
23008
23427
|
*/
|
|
23009
|
-
runtimeState: MediaPlayerStatusSchema
|
|
23428
|
+
runtimeState: MediaPlayerStatusSchema,
|
|
23429
|
+
/**
|
|
23430
|
+
* Runtime-state durability: **session** — a restored transport position describes a playback that stopped when the hub did.
|
|
23431
|
+
*
|
|
23432
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23433
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23434
|
+
*/
|
|
23435
|
+
durability: "session"
|
|
23010
23436
|
};
|
|
23011
23437
|
/**
|
|
23012
23438
|
* mesh-network — collection cap for mesh-VPN providers.
|
|
@@ -23270,7 +23696,14 @@ onMotionChanged: { data: MotionOnMotionChangedDataSchema } },
|
|
|
23270
23696
|
* `device.state.motion.value`. Reads never invoke the provider, so
|
|
23271
23697
|
* UIs and other addons can poll the cached state safely.
|
|
23272
23698
|
*/
|
|
23273
|
-
runtimeState: MotionStatusSchema
|
|
23699
|
+
runtimeState: MotionStatusSchema,
|
|
23700
|
+
/**
|
|
23701
|
+
* Runtime-state durability: **session** — self-clearing by construction (`autoClearAfterMs`); a restored `detected: true` is a frozen event, and the next frame re-publishes the real one.
|
|
23702
|
+
*
|
|
23703
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23704
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23705
|
+
*/
|
|
23706
|
+
durability: "session"
|
|
23274
23707
|
};
|
|
23275
23708
|
/**
|
|
23276
23709
|
* Motion-trigger toggle for accessory devices.
|
|
@@ -23335,7 +23768,14 @@ var motionTriggerCapability = {
|
|
|
23335
23768
|
schema: MotionTriggerStatusSchema,
|
|
23336
23769
|
kind: "command-driven"
|
|
23337
23770
|
},
|
|
23338
|
-
runtimeState: MotionTriggerRuntimeStateSchema
|
|
23771
|
+
runtimeState: MotionTriggerRuntimeStateSchema,
|
|
23772
|
+
/**
|
|
23773
|
+
* Runtime-state durability: **session** — the authority for motion-trigger enablement is the provider's own config; the slice is a mirror of it, re-published on connect.
|
|
23774
|
+
*
|
|
23775
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23776
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23777
|
+
*/
|
|
23778
|
+
durability: "session"
|
|
23339
23779
|
};
|
|
23340
23780
|
/**
|
|
23341
23781
|
* Motion-zones share the same MaskShape vocabulary as privacy-mask — the
|
|
@@ -23402,7 +23842,17 @@ var motionZonesCapability = {
|
|
|
23402
23842
|
schema: MotionZoneStatusSchema,
|
|
23403
23843
|
kind: "poll"
|
|
23404
23844
|
},
|
|
23405
|
-
runtimeState: MotionZoneStatusSchema
|
|
23845
|
+
runtimeState: MotionZoneStatusSchema,
|
|
23846
|
+
/**
|
|
23847
|
+
* Runtime-state durability: **restored** — the 14 KB polygon list is the single largest slice on the fleet and has not changed since the operator drew it. Highest value per byte in the table.
|
|
23848
|
+
*
|
|
23849
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23850
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23851
|
+
*/
|
|
23852
|
+
durability: "restored",
|
|
23853
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
23854
|
+
* whether persisting is worth a SQLite commit. */
|
|
23855
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
23406
23856
|
};
|
|
23407
23857
|
/**
|
|
23408
23858
|
* On-camera AI object detection cap. Surfaces per-device the classes
|
|
@@ -23476,7 +23926,17 @@ var nativeObjectDetectionCapability = {
|
|
|
23476
23926
|
schema: NativeObjectDetectionStatusSchema,
|
|
23477
23927
|
kind: "push"
|
|
23478
23928
|
},
|
|
23479
|
-
runtimeState: NativeObjectDetectionRuntimeStateSchema
|
|
23929
|
+
runtimeState: NativeObjectDetectionRuntimeStateSchema,
|
|
23930
|
+
/**
|
|
23931
|
+
* Runtime-state durability: **restored** — `enabled` is an operator toggle on a camera whose refresh is a no-op and whose staleMs is Infinity. There is no hardware value to re-read — losing it loses the setting.
|
|
23932
|
+
*
|
|
23933
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23934
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23935
|
+
*/
|
|
23936
|
+
durability: "restored",
|
|
23937
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
23938
|
+
* whether persisting is worth a SQLite commit. */
|
|
23939
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
23480
23940
|
};
|
|
23481
23941
|
/**
|
|
23482
23942
|
* network-quality — system-scoped singleton capability tracking RTT,
|
|
@@ -23810,7 +24270,14 @@ onSent: { data: object({
|
|
|
23810
24270
|
* form reads `supports` to gate optional fields; history pane reads
|
|
23811
24271
|
* `lastSentAt` / `lastError` / `queueDepth`.
|
|
23812
24272
|
*/
|
|
23813
|
-
runtimeState: NotifierStatusSchema
|
|
24273
|
+
runtimeState: NotifierStatusSchema,
|
|
24274
|
+
/**
|
|
24275
|
+
* Runtime-state durability: **session** — live queue depth and last-send state; a restored queue depth describes a queue that no longer exists.
|
|
24276
|
+
*
|
|
24277
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24278
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24279
|
+
*/
|
|
24280
|
+
durability: "session"
|
|
23814
24281
|
};
|
|
23815
24282
|
/**
|
|
23816
24283
|
* Generic numeric sensor — last-resort fallback when no typed numeric
|
|
@@ -23853,7 +24320,17 @@ var numericSensorCapability = {
|
|
|
23853
24320
|
schema: NumericSensorStatusSchema,
|
|
23854
24321
|
kind: "push"
|
|
23855
24322
|
},
|
|
23856
|
-
runtimeState: NumericSensorStatusSchema
|
|
24323
|
+
runtimeState: NumericSensorStatusSchema,
|
|
24324
|
+
/**
|
|
24325
|
+
* Runtime-state durability: **restored** — polled value, low churn once the clock is excluded (251 of 669 writes were the clock alone); restoring it removes the cold window before the first poll.
|
|
24326
|
+
*
|
|
24327
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24328
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24329
|
+
*/
|
|
24330
|
+
durability: "restored",
|
|
24331
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
24332
|
+
* whether persisting is worth a SQLite commit. */
|
|
24333
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
23857
24334
|
};
|
|
23858
24335
|
/**
|
|
23859
24336
|
* Generic on-screen-display (video overlay) cap. Each camera exposes
|
|
@@ -24238,7 +24715,14 @@ var petFeederCapability = {
|
|
|
24238
24715
|
* the full slice via `device.state.petFeeder.value` and refresh on
|
|
24239
24716
|
* every poll without re-querying the provider.
|
|
24240
24717
|
*/
|
|
24241
|
-
runtimeState: PetFeederStatusSchema
|
|
24718
|
+
runtimeState: PetFeederStatusSchema,
|
|
24719
|
+
/**
|
|
24720
|
+
* Runtime-state durability: **session** — live appliance state re-published on connect.
|
|
24721
|
+
*
|
|
24722
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24723
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24724
|
+
*/
|
|
24725
|
+
durability: "session"
|
|
24242
24726
|
};
|
|
24243
24727
|
var VehicleSchema = object({
|
|
24244
24728
|
id: string(),
|
|
@@ -24550,7 +25034,17 @@ var powerMeterCapability = {
|
|
|
24550
25034
|
schema: PowerMeterStatusSchema,
|
|
24551
25035
|
kind: "push"
|
|
24552
25036
|
},
|
|
24553
|
-
runtimeState: PowerMeterStatusSchema
|
|
25037
|
+
runtimeState: PowerMeterStatusSchema,
|
|
25038
|
+
/**
|
|
25039
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`; `kwhTotal` is an accumulator whose restored value is the baseline.
|
|
25040
|
+
*
|
|
25041
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25042
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25043
|
+
*/
|
|
25044
|
+
durability: "restored",
|
|
25045
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25046
|
+
* whether persisting is worth a SQLite commit. */
|
|
25047
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24554
25048
|
};
|
|
24555
25049
|
/**
|
|
24556
25050
|
* Presence cap. Models HA `person.*` and `device_tracker.*` entities
|
|
@@ -24607,7 +25101,17 @@ var presenceCapability = {
|
|
|
24607
25101
|
* the map pin is rendered (use `DeviceFeature.PresenceGps` for the
|
|
24608
25102
|
* pre-fetch fast-path check).
|
|
24609
25103
|
*/
|
|
24610
|
-
runtimeState: PresenceStatusSchema
|
|
25104
|
+
runtimeState: PresenceStatusSchema,
|
|
25105
|
+
/**
|
|
25106
|
+
* Runtime-state durability: **restored** — occupancy-relevant: the restored state is what an occupancy rule compares the first post-restart observation against.
|
|
25107
|
+
*
|
|
25108
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25109
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25110
|
+
*/
|
|
25111
|
+
durability: "restored",
|
|
25112
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25113
|
+
* whether persisting is worth a SQLite commit. */
|
|
25114
|
+
volatileStateFields: ["lastChangedAt"]
|
|
24611
25115
|
};
|
|
24612
25116
|
/**
|
|
24613
25117
|
* Atmospheric pressure reading in hectopascals. Drives Home Assistant
|
|
@@ -24643,7 +25147,17 @@ var pressureSensorCapability = {
|
|
|
24643
25147
|
schema: PressureSensorStatusSchema,
|
|
24644
25148
|
kind: "push"
|
|
24645
25149
|
},
|
|
24646
|
-
runtimeState: PressureSensorStatusSchema
|
|
25150
|
+
runtimeState: PressureSensorStatusSchema,
|
|
25151
|
+
/**
|
|
25152
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`.
|
|
25153
|
+
*
|
|
25154
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25155
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25156
|
+
*/
|
|
25157
|
+
durability: "restored",
|
|
25158
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25159
|
+
* whether persisting is worth a SQLite commit. */
|
|
25160
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24647
25161
|
};
|
|
24648
25162
|
/**
|
|
24649
25163
|
* PRIVACY — what the camera deliberately does not capture. Two planes:
|
|
@@ -24773,7 +25287,17 @@ var privacyMaskCapability = {
|
|
|
24773
25287
|
schema: PrivacyMaskStatusSchema,
|
|
24774
25288
|
kind: "poll"
|
|
24775
25289
|
},
|
|
24776
|
-
runtimeState: PrivacyMaskStatusSchema
|
|
25290
|
+
runtimeState: PrivacyMaskStatusSchema,
|
|
25291
|
+
/**
|
|
25292
|
+
* Runtime-state durability: **restored** — operator-drawn regions, zero real churn — 22 writes in 25 minutes, every one of them the clock.
|
|
25293
|
+
*
|
|
25294
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25295
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25296
|
+
*/
|
|
25297
|
+
durability: "restored",
|
|
25298
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25299
|
+
* whether persisting is worth a SQLite commit. */
|
|
25300
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24777
25301
|
};
|
|
24778
25302
|
var PtzPresetSchema = object({
|
|
24779
25303
|
id: string(),
|
|
@@ -24939,7 +25463,14 @@ var ptzAutotrackCapability = {
|
|
|
24939
25463
|
* fetch / cache / fallback logic out of the four cap methods —
|
|
24940
25464
|
* they become trampolines over `runtimeState`.
|
|
24941
25465
|
*/
|
|
24942
|
-
runtimeState: PtzAutotrackRuntimeStateSchema
|
|
25466
|
+
runtimeState: PtzAutotrackRuntimeStateSchema,
|
|
25467
|
+
/**
|
|
25468
|
+
* Runtime-state durability: **session** — mirrors the camera's own autotrack config, re-read on connect.
|
|
25469
|
+
*
|
|
25470
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25471
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25472
|
+
*/
|
|
25473
|
+
durability: "session"
|
|
24943
25474
|
};
|
|
24944
25475
|
DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceId: number().int().nonnegative() }), object({ success: literal(true) }), {
|
|
24945
25476
|
kind: "mutation",
|
|
@@ -25589,7 +26120,14 @@ var sceneMonitorCapability = {
|
|
|
25589
26120
|
schema: SceneMonitorStatusSchema,
|
|
25590
26121
|
kind: "push"
|
|
25591
26122
|
},
|
|
25592
|
-
runtimeState: SceneMonitorStatusSchema
|
|
26123
|
+
runtimeState: SceneMonitorStatusSchema,
|
|
26124
|
+
/**
|
|
26125
|
+
* Runtime-state durability: **session** — re-derived from the current scene on the next evaluation.
|
|
26126
|
+
*
|
|
26127
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26128
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26129
|
+
*/
|
|
26130
|
+
durability: "session"
|
|
25593
26131
|
};
|
|
25594
26132
|
/**
|
|
25595
26133
|
* Per-stage gating mode applied to the zones a rule references.
|
|
@@ -25733,7 +26271,14 @@ var scriptRunnerCapability = {
|
|
|
25733
26271
|
* `isRunning` to render a spinner during execution and surfaces
|
|
25734
26272
|
* `lastError` / `lastRunSuccess` in the recent-runs panel.
|
|
25735
26273
|
*/
|
|
25736
|
-
runtimeState: ScriptRunnerStatusSchema
|
|
26274
|
+
runtimeState: ScriptRunnerStatusSchema,
|
|
26275
|
+
/**
|
|
26276
|
+
* Runtime-state durability: **session** — a restored `isRunning: true` describes a process that died with the previous hub.
|
|
26277
|
+
*
|
|
26278
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26279
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26280
|
+
*/
|
|
26281
|
+
durability: "session"
|
|
25737
26282
|
};
|
|
25738
26283
|
/**
|
|
25739
26284
|
* Smoke alarm sensor — boolean "is smoke currently detected" with
|
|
@@ -25760,7 +26305,17 @@ var smokeCapability = {
|
|
|
25760
26305
|
schema: SmokeStatusSchema,
|
|
25761
26306
|
kind: "push"
|
|
25762
26307
|
},
|
|
25763
|
-
runtimeState: SmokeStatusSchema
|
|
26308
|
+
runtimeState: SmokeStatusSchema,
|
|
26309
|
+
/**
|
|
26310
|
+
* Runtime-state durability: **restored** — a safety sensor must not read "clear" merely because the hub restarted.
|
|
26311
|
+
*
|
|
26312
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26313
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26314
|
+
*/
|
|
26315
|
+
durability: "restored",
|
|
26316
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26317
|
+
* whether persisting is worth a SQLite commit. */
|
|
26318
|
+
volatileStateFields: ["lastChangedAt"]
|
|
25764
26319
|
};
|
|
25765
26320
|
/**
|
|
25766
26321
|
* One publishable camera stream as its OWNING PROVIDER describes it — the same
|
|
@@ -25946,7 +26501,17 @@ var streamParamsCapability = {
|
|
|
25946
26501
|
schema: StreamParamsStatusSchema,
|
|
25947
26502
|
kind: "poll"
|
|
25948
26503
|
},
|
|
25949
|
-
runtimeState: StreamParamsStatusSchema
|
|
26504
|
+
runtimeState: StreamParamsStatusSchema,
|
|
26505
|
+
/**
|
|
26506
|
+
* Runtime-state durability: **restored** — operator-set encoder profile; mutation-driven.
|
|
26507
|
+
*
|
|
26508
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26509
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26510
|
+
*/
|
|
26511
|
+
durability: "restored",
|
|
26512
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26513
|
+
* whether persisting is worth a SQLite commit. */
|
|
26514
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
25950
26515
|
};
|
|
25951
26516
|
/**
|
|
25952
26517
|
* Generic on/off switch cap for accessory children (siren, floodlight,
|
|
@@ -25992,6 +26557,16 @@ var switchCapability = {
|
|
|
25992
26557
|
* not need to re-query the provider after a setState mutation.
|
|
25993
26558
|
*/
|
|
25994
26559
|
runtimeState: SwitchStatusSchema,
|
|
26560
|
+
/**
|
|
26561
|
+
* Runtime-state durability: **restored** — device state an operator reads as authoritative; 55 devices, transition-driven.
|
|
26562
|
+
*
|
|
26563
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26564
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26565
|
+
*/
|
|
26566
|
+
durability: "restored",
|
|
26567
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26568
|
+
* whether persisting is worth a SQLite commit. */
|
|
26569
|
+
volatileStateFields: ["lastChangedAt"],
|
|
25995
26570
|
settings: { bindings: [{
|
|
25996
26571
|
kind: "scalar",
|
|
25997
26572
|
statusPath: "on",
|
|
@@ -26071,7 +26646,17 @@ var tamperCapability = {
|
|
|
26071
26646
|
schema: TamperStatusSchema,
|
|
26072
26647
|
kind: "push"
|
|
26073
26648
|
},
|
|
26074
|
-
runtimeState: TamperStatusSchema
|
|
26649
|
+
runtimeState: TamperStatusSchema,
|
|
26650
|
+
/**
|
|
26651
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
26652
|
+
*
|
|
26653
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26654
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26655
|
+
*/
|
|
26656
|
+
durability: "restored",
|
|
26657
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26658
|
+
* whether persisting is worth a SQLite commit. */
|
|
26659
|
+
volatileStateFields: ["lastChangedAt"]
|
|
26075
26660
|
};
|
|
26076
26661
|
/**
|
|
26077
26662
|
* Single-metric temperature reading. Drives Home Assistant `sensor`
|
|
@@ -26116,7 +26701,17 @@ var temperatureSensorCapability = {
|
|
|
26116
26701
|
schema: TemperatureSensorStatusSchema,
|
|
26117
26702
|
kind: "push"
|
|
26118
26703
|
},
|
|
26119
|
-
runtimeState: TemperatureSensorStatusSchema
|
|
26704
|
+
runtimeState: TemperatureSensorStatusSchema,
|
|
26705
|
+
/**
|
|
26706
|
+
* Runtime-state durability: **restored** — as `numeric-sensor` (69 of 125 writes were the clock alone).
|
|
26707
|
+
*
|
|
26708
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26709
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26710
|
+
*/
|
|
26711
|
+
durability: "restored",
|
|
26712
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26713
|
+
* whether persisting is worth a SQLite commit. */
|
|
26714
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
26120
26715
|
};
|
|
26121
26716
|
/**
|
|
26122
26717
|
* toast — system-scoped singleton capability that streams toast
|
|
@@ -26185,7 +26780,14 @@ var updateCapability = {
|
|
|
26185
26780
|
schema: UpdateStatusSchema,
|
|
26186
26781
|
kind: "poll"
|
|
26187
26782
|
},
|
|
26188
|
-
runtimeState: UpdateStatusSchema
|
|
26783
|
+
runtimeState: UpdateStatusSchema,
|
|
26784
|
+
/**
|
|
26785
|
+
* Runtime-state durability: **session** — a restored `inProgress: true` describes an update that is no longer running; versions are re-probed at boot.
|
|
26786
|
+
*
|
|
26787
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26788
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26789
|
+
*/
|
|
26790
|
+
durability: "session"
|
|
26189
26791
|
};
|
|
26190
26792
|
var UserSummarySchema = object({
|
|
26191
26793
|
id: string(),
|
|
@@ -26519,7 +27121,14 @@ var vacuumControlCapability = {
|
|
|
26519
27121
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
26520
27122
|
* slice for live state + battery + fan-speed changes.
|
|
26521
27123
|
*/
|
|
26522
|
-
runtimeState: VacuumControlStatusSchema
|
|
27124
|
+
runtimeState: VacuumControlStatusSchema,
|
|
27125
|
+
/**
|
|
27126
|
+
* Runtime-state durability: **session** — as `media-player` — a restored `state: cleaning` is a robot that is not cleaning.
|
|
27127
|
+
*
|
|
27128
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27129
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27130
|
+
*/
|
|
27131
|
+
durability: "session"
|
|
26523
27132
|
};
|
|
26524
27133
|
var ValveStatusSchema = object({
|
|
26525
27134
|
/** Lifecycle state of the valve. */
|
|
@@ -26571,7 +27180,14 @@ var valveCapability = {
|
|
|
26571
27180
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
26572
27181
|
* slice for live position changes during a move.
|
|
26573
27182
|
*/
|
|
26574
|
-
runtimeState: ValveStatusSchema
|
|
27183
|
+
runtimeState: ValveStatusSchema,
|
|
27184
|
+
/**
|
|
27185
|
+
* Runtime-state durability: **session** — as `brightness`.
|
|
27186
|
+
*
|
|
27187
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27188
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27189
|
+
*/
|
|
27190
|
+
durability: "session"
|
|
26575
27191
|
};
|
|
26576
27192
|
/**
|
|
26577
27193
|
* Vibration / shake / impact sensor. Drives Home Assistant
|
|
@@ -26593,7 +27209,17 @@ var vibrationCapability = {
|
|
|
26593
27209
|
schema: VibrationStatusSchema,
|
|
26594
27210
|
kind: "push"
|
|
26595
27211
|
},
|
|
26596
|
-
runtimeState: VibrationStatusSchema
|
|
27212
|
+
runtimeState: VibrationStatusSchema,
|
|
27213
|
+
/**
|
|
27214
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
27215
|
+
*
|
|
27216
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27217
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27218
|
+
*/
|
|
27219
|
+
durability: "restored",
|
|
27220
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
27221
|
+
* whether persisting is worth a SQLite commit. */
|
|
27222
|
+
volatileStateFields: ["lastChangedAt"]
|
|
26597
27223
|
};
|
|
26598
27224
|
/**
|
|
26599
27225
|
* Water heater / boiler cap. Models HA `water_heater.*` entities — a
|
|
@@ -26667,7 +27293,14 @@ var waterHeaterCapability = {
|
|
|
26667
27293
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
26668
27294
|
* slice for live temperature / mode / away changes.
|
|
26669
27295
|
*/
|
|
26670
|
-
runtimeState: WaterHeaterStatusSchema
|
|
27296
|
+
runtimeState: WaterHeaterStatusSchema,
|
|
27297
|
+
/**
|
|
27298
|
+
* Runtime-state durability: **session** — as `climate-control`.
|
|
27299
|
+
*
|
|
27300
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27301
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27302
|
+
*/
|
|
27303
|
+
durability: "session"
|
|
26671
27304
|
};
|
|
26672
27305
|
/**
|
|
26673
27306
|
* Weather provider cap. Models HA `weather.*` entities — a read-only
|
|
@@ -26726,7 +27359,14 @@ var weatherCapability = {
|
|
|
26726
27359
|
* Runtime-state slice — mirrored by the kernel. The UI reads the
|
|
26727
27360
|
* current conditions directly from the slice on each weather push.
|
|
26728
27361
|
*/
|
|
26729
|
-
runtimeState: WeatherStatusSchema
|
|
27362
|
+
runtimeState: WeatherStatusSchema,
|
|
27363
|
+
/**
|
|
27364
|
+
* Runtime-state durability: **session** — a forecast is stale the moment the hub is down; the provider re-fetches on connect.
|
|
27365
|
+
*
|
|
27366
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27367
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27368
|
+
*/
|
|
27369
|
+
durability: "session"
|
|
26730
27370
|
};
|
|
26731
27371
|
/**
|
|
26732
27372
|
* Per-zone occupancy aggregation produced by the analytics frame
|
|
@@ -26888,7 +27528,14 @@ var zoneAnalyticsCapability = {
|
|
|
26888
27528
|
* automatically; the explicit `getCurrentSnapshot` cap method is
|
|
26889
27529
|
* still useful for one-off polls without a subscription.
|
|
26890
27530
|
*/
|
|
26891
|
-
runtimeState: CameraOccupancySnapshotSchema
|
|
27531
|
+
runtimeState: CameraOccupancySnapshotSchema,
|
|
27532
|
+
/**
|
|
27533
|
+
* Runtime-state durability: **session** — per-frame analytics; with `audio-metrics` it is ~90 % of the offered write rate. Re-derived on the next frame.
|
|
27534
|
+
*
|
|
27535
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27536
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27537
|
+
*/
|
|
27538
|
+
durability: "session"
|
|
26892
27539
|
};
|
|
26893
27540
|
/**
|
|
26894
27541
|
* Stages a {@link ZoneRule} can apply to. Discriminator on the rules
|
|
@@ -26966,7 +27613,14 @@ var zoneRulesCapability = {
|
|
|
26966
27613
|
motion: array(ZoneRuleSchema).readonly(),
|
|
26967
27614
|
detection: array(ZoneRuleSchema).readonly(),
|
|
26968
27615
|
package: array(ZoneRuleSchema).readonly()
|
|
26969
|
-
})
|
|
27616
|
+
}),
|
|
27617
|
+
/**
|
|
27618
|
+
* Runtime-state durability: **restored** — operator intent, mutation-only, same argument as `zones`.
|
|
27619
|
+
*
|
|
27620
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27621
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27622
|
+
*/
|
|
27623
|
+
durability: "restored"
|
|
26970
27624
|
};
|
|
26971
27625
|
/**
|
|
26972
27626
|
* Accessory device helpers — shared across drivers.
|
|
@@ -33652,6 +34306,7 @@ Object.freeze({
|
|
|
33652
34306
|
"network-access": "ingress",
|
|
33653
34307
|
"smtp-provider": "email"
|
|
33654
34308
|
});
|
|
34309
|
+
new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
|
|
33655
34310
|
new Set(["devices", "classes"]);
|
|
33656
34311
|
/**
|
|
33657
34312
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|