@camstack/types 1.2.63 → 1.2.65

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/index.mjs CHANGED
@@ -583,6 +583,19 @@ function resolveRunnerId(decl, addonId) {
583
583
  function resolveAddonPlacement(decl) {
584
584
  return resolveAddonExecution(decl).placement;
585
585
  }
586
+ /**
587
+ * True when a `@camstack/system` builtin opted out of the in-process rule and
588
+ * must be planned as a forked runner (`execution.isolate`).
589
+ *
590
+ * ONE predicate, because the hub asks this question in three places that must
591
+ * agree: the runner plan (`buildAddonGroupPlan`), the "does this boot
592
+ * in-process" filter, and `isForkedAddonEntry` (which decides route mounts,
593
+ * data-plane mounts, restart and uninstall). They diverged once before for
594
+ * `auth-oidc` and the addon's routes were mounted against an async UDS proxy.
595
+ */
596
+ function isIsolatedBuiltin(decl) {
597
+ return decl.execution?.isolate === true;
598
+ }
586
599
  //#endregion
587
600
  //#region src/interfaces/adoption-job.ts
588
601
  /**
@@ -1674,7 +1687,15 @@ function deriveRecordingMode(config) {
1674
1687
  * Each completed/failed run also lands one durable ops-log row on its owning
1675
1688
  * addon surface.
1676
1689
  */
1690
+ /**
1691
+ * `queued` exists because the recorder mover is SINGLE-FLIGHT and an operator
1692
+ * rebalance enqueues one job per (camera, profile). Refusing the second job —
1693
+ * what the engine did before — turned a fifteen-camera rebalance into fifteen
1694
+ * manual retries. Queued jobs run FIFO; a queued job that is cancelled never
1695
+ * runs at all.
1696
+ */
1677
1697
  var RelocateJobStateSchema = z.enum([
1698
+ "queued",
1678
1699
  "running",
1679
1700
  "done",
1680
1701
  "failed",
@@ -1709,6 +1730,15 @@ var RelocateFootageInputSchema = z.object({
1709
1730
  /** Limits relocation to the logical profile class. Omit only for the
1710
1731
  * pre-orchestration compatibility path. */
1711
1732
  footageClass: RelocateFootageClassSchema.optional(),
1733
+ /** Scope the move to ONE camera. Absent = every camera on the source, which
1734
+ * is what a whole-disk drain means. The rebalance path always sets it: its
1735
+ * unit is a (camera, profile) pile, not a disk. */
1736
+ deviceId: z.number().int().optional(),
1737
+ /** Scope the move to specific segment profiles (`high` / `mid` / `low`).
1738
+ * Finer than `footageClass`, which cannot separate high from mid — and the
1739
+ * placement plan assigns those two independently, so a rebalance that could
1740
+ * only say "recordings" would move footage the plan never asked to move. */
1741
+ profiles: z.array(z.string()).optional(),
1712
1742
  /** Copy throttle in MB/s (default 40) — the drain is a background chore,
1713
1743
  * never allowed to starve live writers. */
1714
1744
  throttleMbps: z.number().min(1).max(1e3).optional()
@@ -11809,6 +11839,13 @@ var MaskGridDimsSchema = z.object({
11809
11839
  * `package-event` are pure trigger kinds (no urgency dimension). Extending
11810
11840
  * this one field keeps the schema additive — a rule still declares exactly
11811
11841
  * one trigger.
11842
+ *
11843
+ * AUDIO rules add no member here, for the reason occupancy added none: the
11844
+ * enum is mirrored by hand in the viewer (`scripts/check-viewer-condition-
11845
+ * mirror.ts` fails the build on a member the app cannot render) and every
11846
+ * member costs a release train. A sustained-sound rule is therefore an
11847
+ * `immediate` rule carrying {@link NcConditions.audio} — the condition is the
11848
+ * trigger discriminator, exactly as `occupancy` is on `device-event`.
11812
11849
  */
11813
11850
  var NcDeliverySchema = z.enum([
11814
11851
  "immediate",
@@ -11823,16 +11860,51 @@ var NcDeliverySchema = z.enum([
11823
11860
  * depend on a provider's raw event name or payload shape.
11824
11861
  */
11825
11862
  var NcSystemEventKindSchema = z.enum([
11826
- "camera-online",
11827
- "camera-offline",
11863
+ "device-online",
11864
+ "device-offline",
11865
+ "device-disabled",
11866
+ "device-enabled",
11828
11867
  "stream-online",
11829
11868
  "stream-offline",
11830
11869
  "node-online",
11831
11870
  "node-offline",
11832
11871
  "addon-update-available",
11833
- "server-update-available"
11872
+ "server-update-available",
11873
+ "alarm-triggered",
11874
+ "alarm-armed",
11875
+ "alarm-disarmed",
11876
+ "camera-online",
11877
+ "camera-offline",
11878
+ "camera-disabled",
11879
+ "camera-enabled"
11880
+ ]);
11881
+ /** The legacy tail of {@link NcSystemEventKindSchema} — see its docblock. */
11882
+ var NC_LEGACY_SYSTEM_EVENT_KINDS = new Set([
11883
+ "camera-online",
11884
+ "camera-offline",
11885
+ "camera-disabled",
11886
+ "camera-enabled"
11834
11887
  ]);
11835
11888
  /**
11889
+ * The kinds a rule may be AUTHORED with — every schema member except the
11890
+ * legacy tail. Editors render THIS list; the schema still parses the tail so a
11891
+ * durable row (and an unmigrated rule) survives being read.
11892
+ */
11893
+ var NC_AUTHORABLE_SYSTEM_EVENT_KINDS = NcSystemEventKindSchema.options.filter((kind) => !NC_LEGACY_SYSTEM_EVENT_KINDS.has(kind));
11894
+ /**
11895
+ * The panel's three transitions, as ONE list.
11896
+ *
11897
+ * Named here rather than spelled out at each of the four sites that need them
11898
+ * (the emitter, the intake, the editor group, the combined-notification gate),
11899
+ * because a fourth transition added to the enum and forgotten at one of them is
11900
+ * an alarm state nobody can be notified about.
11901
+ */
11902
+ var NC_ALARM_SYSTEM_EVENT_KINDS = [
11903
+ "alarm-triggered",
11904
+ "alarm-armed",
11905
+ "alarm-disarmed"
11906
+ ];
11907
+ /**
11836
11908
  * One coherent system-event condition. `kinds` is the required opt-in safety
11837
11909
  * gate; the remaining lists are optional narrowing filters relevant to the
11838
11910
  * selected kinds.
@@ -11840,6 +11912,18 @@ var NcSystemEventKindSchema = z.enum([
11840
11912
  var NcSystemEventConditionSchema = z.object({
11841
11913
  kinds: z.array(NcSystemEventKindSchema).min(1),
11842
11914
  deviceIds: z.array(z.number().int()).min(1).optional(),
11915
+ /**
11916
+ * Narrow a `device-*` kind to these device TYPES (`DeviceType` values —
11917
+ * `camera`, `switch`, `sensor`, `container`, …). Absent = every type, which
11918
+ * is what a liveness rule means when nobody said otherwise.
11919
+ *
11920
+ * This is where "only my cameras" is expressed, and it lives on the rule for
11921
+ * one reason: the intake cannot know which devices this household cares
11922
+ * about, and a producer-side filter is one no operator can change. Fails
11923
+ * CLOSED — a subject whose device type is unknown (an id the device mirror
11924
+ * does not carry) matches no `deviceTypes` list.
11925
+ */
11926
+ deviceTypes: z.array(z.string().min(1)).min(1).optional(),
11843
11927
  nodeIds: z.array(z.string().min(1)).min(1).optional(),
11844
11928
  packageNames: z.array(z.string().min(1)).min(1).optional()
11845
11929
  });
@@ -11898,6 +11982,59 @@ var NcOccupancyConditionSchema = z.object({
11898
11982
  sustainSeconds: z.number().int().min(0).max(3600).default(15)
11899
11983
  });
11900
11984
  /**
11985
+ * The dBFS floor the analyzer reports on digital silence
11986
+ * (`audio-analyzer-provider.ts`: `dbfs = rms > 0 ? 20*log10(rms) : -96`).
11987
+ *
11988
+ * It is the lower bound of {@link NcAudioConditionSchema.shape.dbThreshold} for
11989
+ * one reason worth stating out loud: **the scale is dBFS and it is
11990
+ * NEGATIVE-GOING** — `0` is full scale and silence reads as a large negative
11991
+ * number. An operator (or a UI) that writes `60` meaning "60 decibels, quite
11992
+ * loud" would author a threshold NO sample can ever reach, and the rule would
11993
+ * look broken rather than mis-configured. The schema range rejects it instead.
11994
+ */
11995
+ var NC_AUDIO_DBFS_FLOOR = -96;
11996
+ /**
11997
+ * Audio condition (IMMEDIATE trigger) — a rule on SOUND, not on a picture.
11998
+ *
11999
+ * Operator-approved vocabulary (2026-08-12, option A — the same one the
12000
+ * reference notifier uses, so an operator moving between them re-uses what
12001
+ * they already know): a rule matches when, over a sampling window of
12002
+ * `samplingSeconds`, at least `hitPercent`% of the audio samples in that
12003
+ * window are HITS. A sample is a hit when it satisfies BOTH present filters:
12004
+ *
12005
+ * - `dbThreshold` — its level is at or above this many dBFS (see
12006
+ * {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale);
12007
+ * - `labels` — the classifier put at least one of these labels on it.
12008
+ *
12009
+ * Both are OPTIONAL and independent, which is the point of the shape: a
12010
+ * loudness rule ("something loud at 3am") needs no model to be right, and a
12011
+ * label rule ("a dog barked") needs no threshold. **Fail-closed when NEITHER
12012
+ * is given** — a window in which every sample is trivially a hit would fire on
12013
+ * silence, so the engine refuses such a condition rather than notifying on
12014
+ * nothing (the schema cannot express "at least one of" without becoming a
12015
+ * ZodEffects the cap path would have to special-case).
12016
+ *
12017
+ * `hitPercent` is over the samples the window actually HOLDS, and the window
12018
+ * must be FULL before it can match — a window that has been open for two
12019
+ * seconds of its ten is 100% of nothing, and firing on it would make
12020
+ * `samplingSeconds` decorative.
12021
+ *
12022
+ * Labels are the audio macro classes (`AUDIO_MACRO_LABELS` / the NC taxonomy's
12023
+ * `audio-*` ids). Both spellings are accepted — the matcher normalizes the
12024
+ * `audio-` prefix away on both sides, so a picker that offers taxonomy ids and
12025
+ * an operator who typed `dog` mean the same thing.
12026
+ */
12027
+ var NcAudioConditionSchema = z.object({
12028
+ /** Audio macro labels; absent = any sound (level-only rule). */
12029
+ labels: z.array(z.string().min(1)).min(1).optional(),
12030
+ /** Level floor in dBFS (negative-going, `0` = full scale); absent = any level. */
12031
+ dbThreshold: z.number().min(-96).max(0).optional(),
12032
+ /** Percentage of the window's samples that must be hits (1–100). */
12033
+ hitPercent: z.number().int().min(1).max(100).default(60),
12034
+ /** Length of the sampling window in seconds. */
12035
+ samplingSeconds: z.number().int().min(1).max(300).default(10)
12036
+ });
12037
+ /**
11901
12038
  * Which zone-crossing DIRECTION a rule accepts (`ObjectEvent.zoneCrossing`).
11902
12039
  *
11903
12040
  * The values are not symmetric, and deliberately so — the absent value has to
@@ -12181,7 +12318,33 @@ var NcConditionsSchema = z.object({
12181
12318
  * threshold and holds for `sustainSeconds`. Fail-closed on missing
12182
12319
  * substrate (no snapshot / missing zone). See {@link NcOccupancyCondition}.
12183
12320
  */
12184
- occupancy: NcOccupancyConditionSchema.optional()
12321
+ occupancy: NcOccupancyConditionSchema.optional(),
12322
+ /**
12323
+ * IMMEDIATE only. Sustained-sound matcher — `hitPercent` of the samples in a
12324
+ * `samplingSeconds` window clear the optional `dbThreshold` and carry one of
12325
+ * the optional `labels`. Fail-closed on missing substrate (no audio samples,
12326
+ * a window that is not full yet, neither filter given). See
12327
+ * {@link NcAudioCondition}.
12328
+ *
12329
+ * Presence of this key is what makes a rule an AUDIO rule: the engine fires
12330
+ * it ONLY on a confirmed audio window, and a rule carrying it never fires on
12331
+ * a detection, a track or a device event (the same fail-closed pairing
12332
+ * `occupancy` has with the `device-event` trigger). That is how audio labels
12333
+ * leave `classes`: an audio rule names its sounds HERE, and the legacy path
12334
+ * (an `immediate` rule naming an `audio-*` class, one notification per
12335
+ * classified sample) stays exactly as it was for rules that already use it.
12336
+ *
12337
+ * NOT in {@link NC_CONDITION_CATALOG} yet, and that is the sequencing rule
12338
+ * rather than an oversight: the viewer mirrors the descriptor enums BY HAND
12339
+ * (`camstack/src/data/notification-center.ts`, guarded by
12340
+ * `scripts/check-viewer-condition-mirror.ts`) and its rule editor STRIPS the
12341
+ * condition fields it does not know when a rule is saved from the phone.
12342
+ * Publishing an editor for a condition the app cannot round-trip is how an
12343
+ * operator loses a rule's conditions by opening it — so the descriptor, the
12344
+ * admin widget and the viewer mirror land together (P2 + P3), and only then
12345
+ * does an audio rule become authorable.
12346
+ */
12347
+ audio: NcAudioConditionSchema.optional()
12185
12348
  });
12186
12349
  /** One delivery target: a `notification-output` Target ref + passthrough params. */
12187
12350
  var NcRuleTargetSchema = z.object({
@@ -12295,6 +12458,74 @@ var NcThrottleSchema = z.object({
12295
12458
  */
12296
12459
  granularity: NcThrottleGranularitySchema.optional()
12297
12460
  });
12461
+ /**
12462
+ * How long the confirm gate may hold ONE notification, and how big the picture
12463
+ * it judges may be.
12464
+ *
12465
+ * The clamp is the product decision, not a coincidence of the model: p50 was
12466
+ * 4.9 s warm and 15.3 s cold against qwen3-vl-8b, and a notification that
12467
+ * arrives after the visitor has gone is not a notification. 448 px was enough
12468
+ * to score 16/16 on the operator's parking scenario — bigger costs latency and
12469
+ * tokens for pixels the model pools away.
12470
+ */
12471
+ var NC_CONFIRM_MIN_TIMEOUT_MS = 1e3;
12472
+ var NC_CONFIRM_MAX_TIMEOUT_MS = 2e4;
12473
+ var NC_CONFIRM_DEFAULT_TIMEOUT_MS = 8e3;
12474
+ var NC_CONFIRM_DEFAULT_MAX_IMAGE_PX = 448;
12475
+ /** Comparison the model's COUNT must satisfy for the notification to fire. */
12476
+ var NcConfirmExpectSchema = z.object({
12477
+ op: z.enum([
12478
+ ">=",
12479
+ ">",
12480
+ "<=",
12481
+ "<",
12482
+ "=="
12483
+ ]),
12484
+ count: z.number().int().min(0).max(1e3)
12485
+ });
12486
+ /**
12487
+ * AI CONFIRM — a vision model looks at the picture this notification is about
12488
+ * to ship and says whether it agrees with the rule.
12489
+ *
12490
+ * It runs AFTER the attachments resolve, deliberately: the crop JUDGED is the
12491
+ * crop SHIPPED (D52). A verdict about a different pixel rectangle than the one
12492
+ * on the operator's phone is not a verdict about this notification.
12493
+ *
12494
+ * FAIL-OPEN is the only safe default. A gate that cannot reach its model, or
12495
+ * whose model is cold, must not silence a camera — so `onTimeout: 'fire'` is
12496
+ * the default and every fail-open is COUNTED, because a gate that always fails
12497
+ * open looks in the log exactly like a gate that works.
12498
+ *
12499
+ * Every field is `.optional()` rather than relied on as a Zod default at the
12500
+ * runtime seam: a Zod default does NOT run on the addon→addon cap path (three
12501
+ * production failures in one day), so the gate reads absent as the constant
12502
+ * above rather than trusting a parse it may never have seen.
12503
+ */
12504
+ var NcConfirmSchema = z.object({
12505
+ /** Off unless asked for. An absent `confirm` and `enabled:false` are the
12506
+ * same thing, and both mean "deliver exactly as before". */
12507
+ enabled: z.boolean().default(false),
12508
+ /** Explicit vision profile; absent = the `purpose:'vision'` cluster default. */
12509
+ profileId: z.string().optional(),
12510
+ /**
12511
+ * The operator's question, in his own words. Absent = a question derived
12512
+ * from the rule (its class and its expectation).
12513
+ *
12514
+ * NEVER composed with text READ OUT OF THE FRAME. The model reads OSD
12515
+ * banners, signage and plates as instructions if you let them reach the
12516
+ * prompt — proven live — so the authoritative contract stays in the system
12517
+ * turn and only rule-authored words land here.
12518
+ */
12519
+ prompt: z.string().max(1e3).optional(),
12520
+ /** Fire only when the model's count satisfies this. Absent = the model's
12521
+ * own boolean verdict decides. */
12522
+ expect: NcConfirmExpectSchema.optional(),
12523
+ timeoutMs: z.number().int().min(NC_CONFIRM_MIN_TIMEOUT_MS).max(NC_CONFIRM_MAX_TIMEOUT_MS).default(NC_CONFIRM_DEFAULT_TIMEOUT_MS),
12524
+ /** What a timeout / unreachable model MEANS. `fire` (default) = fail-open. */
12525
+ onTimeout: z.enum(["fire", "suppress"]).default("fire"),
12526
+ /** Longest edge the judged image is downscaled to before it is sent. */
12527
+ maxImagePx: z.number().int().min(64).max(2048).default(448)
12528
+ });
12298
12529
  /** Client-supplied rule fields (server stamps id/createdBy/createdAt/updatedAt). */
12299
12530
  var NcRuleInputSchema = z.object({
12300
12531
  name: z.string().min(1).max(200),
@@ -12355,7 +12586,13 @@ var NcRuleInputSchema = z.object({
12355
12586
  * `{ cap: 'alarm-panel', method: 'arm', args: { mode: 'away' } }`, the same
12356
12587
  * shape as every other actuation.
12357
12588
  */
12358
- actions: NcRuleActionsSchema.optional()
12589
+ actions: NcRuleActionsSchema.optional(),
12590
+ /**
12591
+ * AI CONFIRM — see {@link NcConfirmSchema}. `.optional()`, never defaulted:
12592
+ * a rule that predates the gate must keep delivering byte-for-byte as it
12593
+ * did, and absent is the only way to say that without a migration.
12594
+ */
12595
+ confirm: NcConfirmSchema.optional()
12359
12596
  });
12360
12597
  /**
12361
12598
  * Partial patch for `updateRule` — any subset of the input fields, plus the
@@ -12366,7 +12603,37 @@ var NcRuleInputSchema = z.object({
12366
12603
  * still flow through `nc.setRuleTargetEnabled` (owner-checked), never a raw
12367
12604
  * `updateRule` patch.
12368
12605
  */
12369
- var NcRulePatchSchema = NcRuleInputSchema.partial().extend({ disabledTargetIds: z.array(z.string()).optional() });
12606
+ var NcRulePatchSchema = NcRuleInputSchema.partial().extend({
12607
+ disabledTargetIds: z.array(z.string()).optional(),
12608
+ /**
12609
+ * `.partial()` DOES NOT REMOVE A FIELD'S `.default()`.
12610
+ *
12611
+ * It makes the key optional to SUPPLY; the parse still materialises the
12612
+ * default when the key is absent. And `NcRuleStore.update` merges with
12613
+ * `{ ...existing, ...patch }`, so a materialised key OVERWRITES the stored
12614
+ * one — which made every partial edit destructive:
12615
+ *
12616
+ * nc.updateRule({ throttle }) → conditions reset to `{}`
12617
+ * nc.setRuleTargetEnabled(...) → conditions reset to `{}`
12618
+ * setEnabled(ruleId, false) → conditions reset to `{}`
12619
+ *
12620
+ * A rule scoped to one camera and one zone silently became a rule that
12621
+ * matches EVERY event on EVERY camera, and lost its `media` policy
12622
+ * (zoneCrop / gif / clip / frame) and its `priority` at the same time. Seen
12623
+ * live on 2026-08-12: a rule scoped to device 617 fired on 590 and 615
12624
+ * within a minute of a two-field patch.
12625
+ *
12626
+ * So every defaulted field is re-declared here WITHOUT its default. The
12627
+ * inner defaults still apply when the caller DOES send the key — `{}` for
12628
+ * conditions remains a real instruction ("clear them") — and only the
12629
+ * absent key is now genuinely absent.
12630
+ */
12631
+ enabled: z.boolean().optional(),
12632
+ conditions: NcConditionsSchema.optional(),
12633
+ media: NcMediaPolicySchema.optional(),
12634
+ throttle: NcThrottleSchema.optional(),
12635
+ priority: z.number().int().min(1).max(5).optional()
12636
+ });
12370
12637
  /** A persisted rule. */
12371
12638
  var NcRuleSchema = NcRuleInputSchema.extend({
12372
12639
  id: z.string(),
@@ -12479,12 +12746,20 @@ var NC_CONDITION_CATALOG = [
12479
12746
  valueType: "systemEvent",
12480
12747
  options: [
12481
12748
  {
12482
- value: "camera-online",
12483
- label: "Camera online"
12749
+ value: "device-online",
12750
+ label: "Device online"
12751
+ },
12752
+ {
12753
+ value: "device-offline",
12754
+ label: "Device offline"
12484
12755
  },
12485
12756
  {
12486
- value: "camera-offline",
12487
- label: "Camera offline"
12757
+ value: "device-disabled",
12758
+ label: "Device switched off"
12759
+ },
12760
+ {
12761
+ value: "device-enabled",
12762
+ label: "Device switched on"
12488
12763
  },
12489
12764
  {
12490
12765
  value: "stream-online",
@@ -12509,12 +12784,24 @@ var NC_CONDITION_CATALOG = [
12509
12784
  {
12510
12785
  value: "server-update-available",
12511
12786
  label: "Server update available"
12787
+ },
12788
+ {
12789
+ value: "alarm-triggered",
12790
+ label: "Alarm triggered"
12791
+ },
12792
+ {
12793
+ value: "alarm-armed",
12794
+ label: "Alarm armed"
12795
+ },
12796
+ {
12797
+ value: "alarm-disarmed",
12798
+ label: "Alarm disarmed"
12512
12799
  }
12513
12800
  ],
12514
12801
  operator: "in",
12515
12802
  appliesTo: ["system-event"],
12516
12803
  phase: "P1",
12517
- description: "Infrastructure and update events. Optionally narrow camera/stream events by device, node events by node id, and addon updates by package name."
12804
+ description: "Infrastructure and update events. Device liveness covers EVERY device type — narrow it by device type (cameras only, say) and/or by device, node events by node id, and addon updates by package name."
12518
12805
  },
12519
12806
  {
12520
12807
  id: "devices",
@@ -13044,6 +13331,25 @@ var NcAlarmSettingsPatchSchema = NcAlarmSettingsSchema.partial();
13044
13331
  * Never authored, never stored — see `alarm-mode-coverage.ts` for why a stored
13045
13332
  * copy would lie the first time a rule is disabled.
13046
13333
  */
13334
+ /**
13335
+ * Why a device a mode NAMES is nonetheless not armed by it.
13336
+ *
13337
+ * Each value is an existing authority, never a new flag (D62): `muted` is the
13338
+ * per-camera notification switch the Notification Center already owns,
13339
+ * `detection-off` is the device's own detection binding being inactive, and
13340
+ * `offline` is the device manager's liveness. A fourth reason would mean a
13341
+ * fourth authority, and inventing one here is how a panel starts disagreeing
13342
+ * with the switches the operator actually used.
13343
+ */
13344
+ var NcAlarmSkipReasonSchema = z.enum([
13345
+ "muted",
13346
+ "detection-off",
13347
+ "offline"
13348
+ ]);
13349
+ var NcAlarmSkippedDeviceSchema = z.object({
13350
+ deviceId: z.number().int(),
13351
+ reason: NcAlarmSkipReasonSchema
13352
+ });
13047
13353
  var NcAlarmModeCoverageSchema = z.object({
13048
13354
  mode: AlarmArmModeSchema,
13049
13355
  /** Enabled rules gated on `armed_<mode>`. Zero means the mode does nothing. */
@@ -13051,7 +13357,18 @@ var NcAlarmModeCoverageSchema = z.object({
13051
13357
  /** At least one covering rule has no device scope, so the mode covers all. */
13052
13358
  allDevices: z.boolean(),
13053
13359
  /** Ids named by the covering rules. A SUBSET when `allDevices` is true. */
13054
- deviceIds: z.array(z.number().int())
13360
+ deviceIds: z.array(z.number().int()),
13361
+ /**
13362
+ * Devices this mode NAMES but cannot actually arm, each with the switch that
13363
+ * excludes it.
13364
+ *
13365
+ * "Away armed — 12 cameras" is a promise, and a muted camera among those
13366
+ * twelve makes it false in exactly the way nobody notices until an incident.
13367
+ * Defaulted to `[]` so a coverage answer computed before this field existed
13368
+ * still parses as "nothing known to be skipped" rather than failing the whole
13369
+ * alarm tab.
13370
+ */
13371
+ skippedDevices: z.array(NcAlarmSkippedDeviceSchema).default([])
13055
13372
  });
13056
13373
  var NcAlarmConfigSchema = z.object({
13057
13374
  /**
@@ -25620,7 +25937,19 @@ var RecordingManifestSchema = z.object({
25620
25937
  * profiles/subtrees/locations on this node). */
25621
25938
  var RecordingDeviceUsageSchema = z.object({
25622
25939
  deviceId: z.number(),
25623
- usedBytes: z.number()
25940
+ usedBytes: z.number(),
25941
+ /**
25942
+ * Start of this camera's OLDEST indexed segment, across every profile and
25943
+ * location — the "Oldest footage" column in Recordings → Storage, and the
25944
+ * only honest answer to "is retention actually holding?" per camera.
25945
+ *
25946
+ * `null` = the camera has no footage. OPTIONAL because a recorder that
25947
+ * predates this field omits it entirely, and a hub whose types carry the
25948
+ * field must keep validating that older provider's payload: the framework
25949
+ * (types) and the addon ship on different trains, and the addon is usually
25950
+ * the later of the two.
25951
+ */
25952
+ oldestMs: z.number().nullable().optional()
25624
25953
  });
25625
25954
  /** Recording storage usage + capacity for one storage location. */
25626
25955
  var RecordingLocationUsageSchema = z.object({
@@ -25648,6 +25977,57 @@ var RecordingStorageUsageSchema = z.object({
25648
25977
  locations: z.array(RecordingLocationUsageSchema)
25649
25978
  });
25650
25979
  /**
25980
+ * The OPERATOR-ARMED half of multi-location recordings (D116).
25981
+ *
25982
+ * The placement plan decides where NEW writes go and moves nothing. A rebalance
25983
+ * is the operator asking for the EXISTING archive to be brought into line with
25984
+ * that plan: one relocate job per (camera, profile) pile that sits on the wrong
25985
+ * location, run FIFO behind the single-flight mover.
25986
+ *
25987
+ * `plan…` and `start…` return the SAME shape deliberately — what the operator
25988
+ * confirms is exactly what gets enqueued, and `jobIds` is the only difference
25989
+ * (empty on the plan).
25990
+ */
25991
+ var RecordingRebalanceMoveSchema = z.object({
25992
+ deviceId: z.number(),
25993
+ profile: z.string(),
25994
+ fromLocationId: z.string(),
25995
+ toLocationId: z.string(),
25996
+ bytes: z.number(),
25997
+ files: z.number().int()
25998
+ });
25999
+ /** Why a pile that is out of place is staying there. Every refusal is
26000
+ * reported: a rebalance that silently drops a camera reads exactly like one
26001
+ * that had nothing to do. */
26002
+ var RecordingRebalanceSkipReasonSchema = z.enum([
26003
+ "unassigned",
26004
+ "target-not-writable",
26005
+ "below-threshold",
26006
+ "no-headroom"
26007
+ ]);
26008
+ var RecordingRebalanceSkipSchema = z.object({
26009
+ deviceId: z.number(),
26010
+ profile: z.string(),
26011
+ fromLocationId: z.string(),
26012
+ /** The location the plan wants; null when the camera has no assignment. */
26013
+ toLocationId: z.string().nullable(),
26014
+ bytes: z.number(),
26015
+ reason: RecordingRebalanceSkipReasonSchema
26016
+ });
26017
+ var RecordingRebalancePlanSchema = z.object({
26018
+ moves: z.array(RecordingRebalanceMoveSchema),
26019
+ skipped: z.array(RecordingRebalanceSkipSchema),
26020
+ bytesToMove: z.number(),
26021
+ /** Relocate job ids enqueued. Always empty for the plan (dry-run) call. */
26022
+ jobIds: z.array(z.string())
26023
+ });
26024
+ var RecordingRebalanceInputSchema = z.object({
26025
+ /** Copy throttle in MB/s (default 40) — a rebalance is a background chore. */
26026
+ throttleMbps: z.number().min(1).max(1e3).optional(),
26027
+ /** Ignore piles smaller than this (default 1 GB). */
26028
+ minMoveGb: z.number().min(0).optional()
26029
+ });
26030
+ /**
25651
26031
  * Result of locating footage at a wall-clock instant for one device/profile.
25652
26032
  * `segment` carries the covering segment's window; `gap` reports the forward
25653
26033
  * nearest covered edge (`null` past the end of footage / when none exists)
@@ -25891,6 +26271,36 @@ var recordingCapability = {
25891
26271
  cancelStorageMigrationMove: method(z.object({ jobId: z.string() }), z.object({ cancelled: z.boolean() }), {
25892
26272
  kind: "mutation",
25893
26273
  auth: "admin"
26274
+ }),
26275
+ /**
26276
+ * Move footage between locations — the OPERATOR's mover, scoped to one
26277
+ * camera (and optionally to specific profiles) rather than a whole disk.
26278
+ * Queued FIFO behind the single-flight engine, so arming several is safe.
26279
+ */
26280
+ relocateFootage: method(RelocateFootageInputSchema, z.object({ jobId: z.string() }), {
26281
+ kind: "mutation",
26282
+ auth: "admin"
26283
+ }),
26284
+ /** Every relocate job this recorder knows about, newest first (in RAM: the
26285
+ * move is resumable, so a lost list costs nothing but the display). */
26286
+ listRelocateJobs: method(z.object({}), z.array(RelocateJobSchema).readonly(), {
26287
+ kind: "query",
26288
+ auth: "admin"
26289
+ }),
26290
+ /** Cancel a running or queued relocate job. A queued job never runs. */
26291
+ cancelRelocateJob: method(z.object({ jobId: z.string() }), z.object({ cancelled: z.boolean() }), {
26292
+ kind: "mutation",
26293
+ auth: "admin"
26294
+ }),
26295
+ /** What a rebalance WOULD move, and what it would refuse. Moves nothing. */
26296
+ planStorageRebalance: method(RecordingRebalanceInputSchema, RecordingRebalancePlanSchema, {
26297
+ kind: "query",
26298
+ auth: "admin"
26299
+ }),
26300
+ /** Arm the rebalance: enqueue one relocate job per planned move. */
26301
+ startStorageRebalance: method(RecordingRebalanceInputSchema, RecordingRebalancePlanSchema, {
26302
+ kind: "mutation",
26303
+ auth: "admin"
25894
26304
  })
25895
26305
  }
25896
26306
  };
@@ -25913,13 +26323,24 @@ var recordingCapability = {
25913
26323
  /** Playback-speed multiplier for the render (1 = realtime). */
25914
26324
  var ExportSpeedSchema = z.number().min(.25).max(32);
25915
26325
  /**
25916
- * One dense interval, in SECONDS FROM THE EXPORT'S OWN `fromMs`.
26326
+ * One dense interval, in WALL-CLOCK SECONDS FROM THE EXPORT'S OWN `fromMs`.
26327
+ *
26328
+ * **Wall clock, not ffmpeg's `t`** — and the recorder translates. A caller
26329
+ * derives these bounds from things that happened at a TIME (a track's
26330
+ * `firstSeen`), while `t` runs over the source playlist: the concatenation of
26331
+ * every segment present for the range, with each recording GAP removed. The
26332
+ * two agree only on a window that recorded without one interruption, and only
26333
+ * the render side knows the segments, so the translation lives there
26334
+ * (`export-dense-map.ts`, addon-pipeline).
25917
26335
  *
25918
- * Relative and not absolute epoch on purpose: the renderer's frame-select
25919
- * expression sees ffmpeg's `t`, which starts at 0 for the export's source
25920
- * playlist. Handing it absolute epochs would make every call site responsible
25921
- * for the same subtraction, and the one that forgot would emit a filter that
25922
- * selects nothing silently, as a uniform timelapse.
26336
+ * It was not always so. These seconds were fed to `between(t,…)` verbatim, and
26337
+ * on a 10 h window holding 29,393 s of footage every range landed late by the
26338
+ * gap accumulated before it up to 6,607 s, well past EOF. Nothing matched,
26339
+ * the video was a uniform timelapse, and the log line reported the five ranges
26340
+ * that had been ASKED for (2026-08-13, export `57d14363`, camera 615).
26341
+ *
26342
+ * Relative and not absolute epoch, because an absolute epoch would make every
26343
+ * call site responsible for the same subtraction.
25923
26344
  */
25924
26345
  var ExportDenseRangeSchema = z.object({
25925
26346
  fromSec: z.number().nonnegative(),
@@ -35838,6 +36259,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
35838
36259
  addonId: null,
35839
36260
  access: "create"
35840
36261
  },
36262
+ "recording.cancelRelocateJob": {
36263
+ capName: "recording",
36264
+ capScope: "system",
36265
+ addonId: null,
36266
+ access: "create"
36267
+ },
35841
36268
  "recording.cancelStorageMigrationMove": {
35842
36269
  capName: "recording",
35843
36270
  capScope: "system",
@@ -35892,6 +36319,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
35892
36319
  addonId: null,
35893
36320
  access: "view"
35894
36321
  },
36322
+ "recording.listRelocateJobs": {
36323
+ capName: "recording",
36324
+ capScope: "system",
36325
+ addonId: null,
36326
+ access: "view"
36327
+ },
35895
36328
  "recording.locateSegment": {
35896
36329
  capName: "recording",
35897
36330
  capScope: "system",
@@ -35904,6 +36337,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
35904
36337
  addonId: null,
35905
36338
  access: "create"
35906
36339
  },
36340
+ "recording.planStorageRebalance": {
36341
+ capName: "recording",
36342
+ capScope: "system",
36343
+ addonId: null,
36344
+ access: "view"
36345
+ },
35907
36346
  "recording.pruneFootage": {
35908
36347
  capName: "recording",
35909
36348
  capScope: "system",
@@ -35928,6 +36367,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
35928
36367
  addonId: null,
35929
36368
  access: "create"
35930
36369
  },
36370
+ "recording.relocateFootage": {
36371
+ capName: "recording",
36372
+ capScope: "system",
36373
+ addonId: null,
36374
+ access: "create"
36375
+ },
35931
36376
  "recording.renderClip": {
35932
36377
  capName: "recording",
35933
36378
  capScope: "system",
@@ -35964,6 +36409,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
35964
36409
  addonId: null,
35965
36410
  access: "create"
35966
36411
  },
36412
+ "recording.startStorageRebalance": {
36413
+ capName: "recording",
36414
+ capScope: "system",
36415
+ addonId: null,
36416
+ access: "create"
36417
+ },
35967
36418
  "recordingExport.cancelExport": {
35968
36419
  capName: "recording-export",
35969
36420
  capScope: "system",
@@ -38131,7 +38582,12 @@ function createSystemProxy(api) {
38131
38582
  refreshStorageLocationsForMigration: (input) => dispatch("recording", "refreshStorageLocationsForMigration", "mutation", input),
38132
38583
  startStorageMigrationMove: (input) => dispatch("recording", "startStorageMigrationMove", "mutation", input),
38133
38584
  getStorageMigrationMoveStatus: (input) => dispatch("recording", "getStorageMigrationMoveStatus", "query", input),
38134
- cancelStorageMigrationMove: (input) => dispatch("recording", "cancelStorageMigrationMove", "mutation", input)
38585
+ cancelStorageMigrationMove: (input) => dispatch("recording", "cancelStorageMigrationMove", "mutation", input),
38586
+ relocateFootage: (input) => dispatch("recording", "relocateFootage", "mutation", input),
38587
+ listRelocateJobs: (input) => dispatch("recording", "listRelocateJobs", "query", input),
38588
+ cancelRelocateJob: (input) => dispatch("recording", "cancelRelocateJob", "mutation", input),
38589
+ planStorageRebalance: (input) => dispatch("recording", "planStorageRebalance", "query", input),
38590
+ startStorageRebalance: (input) => dispatch("recording", "startStorageRebalance", "mutation", input)
38135
38591
  },
38136
38592
  recordingExport: {
38137
38593
  getExport: (input) => dispatch("recordingExport", "getExport", "query", input),
@@ -38693,6 +39149,111 @@ var FramerateField = z.number().int().min(1).max(60);
38693
39149
  var TargetsField = z.array(NcRuleTargetSchema).min(1);
38694
39150
  var PriorityField = z.number().int().min(1).max(5);
38695
39151
  /**
39152
+ * Floor on any dense cadence, seconds — the recording's own frame interval.
39153
+ *
39154
+ * Declared here because it bounds BOTH the rule field and the renderer's
39155
+ * derivation, and two copies of a floor are two floors that can drift.
39156
+ */
39157
+ var TIMELAPSE_DENSE_FLOOR_SEC = .1;
39158
+ /**
39159
+ * Explicit override of the DENSE sampling cadence, seconds.
39160
+ *
39161
+ * Absent ⇒ derived as `max(1s, cadenceSec / 30)` — a 30 s base samples every
39162
+ * 1 s inside a detection range. (It was `base / 10` until 2026-08-12, which
39163
+ * made that same base 3 s and rendered a person pass as two frames.)
39164
+ *
39165
+ * THE ARITHMETIC. A detection range of `rangeSec` seconds sampled every
39166
+ * `denseCadenceSec` and played at `framerate` occupies
39167
+ *
39168
+ * outputSeconds = (rangeSec / denseCadenceSec) / framerate
39169
+ *
39170
+ * so a 7 s pass at 1 s / 12 fps is 0.58 s of video, and at 0.5 s it is 1.17 s.
39171
+ * Halving this field doubles the frames INSIDE ranges only — the base cadence,
39172
+ * and therefore the length of a quiet night, does not move.
39173
+ *
39174
+ * Floored at {@link TIMELAPSE_DENSE_FLOOR_SEC}: asking for frames faster than
39175
+ * the recording has them returns the same frames, requested twice. Must be
39176
+ * STRICTLY smaller than `cadenceSec` — a dense rate that is not denser renders
39177
+ * a uniform video the operator believes is two-rate — and upsert refuses it
39178
+ * rather than letting the export cap reject the render hours after the window.
39179
+ */
39180
+ var DenseCadenceSecField = z.number().min(TIMELAPSE_DENSE_FLOOR_SEC).max(3600);
39181
+ /**
39182
+ * Minimum seconds of OUTPUT video each detection range must occupy.
39183
+ *
39184
+ * The operator-facing form of the arithmetic above: instead of solving for a
39185
+ * cadence, state the dwell and let the renderer solve. `minDwellSec: 1` on a
39186
+ * 30 s base at 12 fps turns a 7 s pass into a full second of video by sampling
39187
+ * that range every ~583 ms.
39188
+ *
39189
+ * ONE CADENCE SERVES EVERY RANGE. `ExportDenseSchema.everyMs` is global — the
39190
+ * ranges are terms of a single ffmpeg `select` expression that cannot vary rate
39191
+ * per term — so the MOST DEMANDING (shortest) range sets the rate and longer
39192
+ * ranges are sampled denser than they need. Per-range cadences require a cap
39193
+ * schema change and are the tracked follow-up.
39194
+ *
39195
+ * A range too short to reach the dwell even at {@link TIMELAPSE_DENSE_FLOOR_SEC}
39196
+ * is rendered with every frame that EXISTS and no more: the guarantee is capped
39197
+ * by real footage, never met by duplicating frames into motion that never
39198
+ * happened.
39199
+ */
39200
+ var MinDwellSecField = z.number().min(0).max(60);
39201
+ /**
39202
+ * Caption burned into the notification's preview frame.
39203
+ *
39204
+ * Same `{{var}}` vocabulary as {@link TimelapseTemplateSchema} (`camera`,
39205
+ * `rule`, `from`, `to`) and rendered by the SAME renderer — a second
39206
+ * templating dialect for one field would be a second thing to explain.
39207
+ *
39208
+ * Absent ⇒ {@link DEFAULT_TIMELAPSE_PREVIEW_TEXT}. An EMPTY STRING is the
39209
+ * operator saying "the frame, no caption" — a distinct, reachable answer, and
39210
+ * the reason this is not `.min(1)`.
39211
+ */
39212
+ var PreviewTextField = z.string().max(200);
39213
+ /**
39214
+ * Whether the notification's preview is a STILL or a short animation.
39215
+ *
39216
+ * The operator's ask, verbatim: *"inviato come gif o video (come per le altre
39217
+ * rule)"* — his Scrypted advanced-notifier has a `gifRule`, and a ten-hour
39218
+ * night reads better as three seconds of motion than as one frame of it. Both
39219
+ * modes get the SAME treatment (blurred frame, large centred title); `'gif'`
39220
+ * simply applies it to a dozen frames sampled across the render and assembles
39221
+ * them.
39222
+ *
39223
+ * `'image'` is the default and stays the default: a GIF costs a dozen ffmpeg
39224
+ * seeks and a palette pass, and no rule that never asked for one should start
39225
+ * paying that on the deploy that shipped it.
39226
+ *
39227
+ * A GIF that cannot be assembled DEGRADES to the still — never to nothing.
39228
+ */
39229
+ var PreviewModeField = z.enum(["image", "gif"]);
39230
+ /**
39231
+ * Which detection classes the notification reports counts for.
39232
+ *
39233
+ * The counts come from the tracks the render ALREADY fetched for its dense-range
39234
+ * plan — no second query — aggregated per class. Absent or empty means "every
39235
+ * class the window actually contained", which is what an operator who never
39236
+ * opened the field wants; a list narrows it (`['person']` on a driveway that
39237
+ * counts cars all night).
39238
+ *
39239
+ * Class names are the tracker's own (`person`, `vehicle`, `animal`, `package`,
39240
+ * …). An unknown name simply never matches and reports nothing — it is not an
39241
+ * error, because a rule may legitimately name a class this camera's model does
39242
+ * not emit.
39243
+ *
39244
+ * The counts are exposed to {@link TimelapseTemplateSchema} as:
39245
+ * - `{{detections}}` — total over the reported classes
39246
+ * - `{{detectionSummary}}` — `2 persone, 1 veicolo`
39247
+ * - `{{count_person}}` / `{{count_vehicle}}` / `{{count_animal}}` / … —
39248
+ * one per class, `count_` + the class name
39249
+ *
39250
+ * With NO custom body template the summary is appended to the derived body, and
39251
+ * only when the total is non-zero: a nightly `0 rilevamenti` is a line nobody
39252
+ * reads. With a custom template the operator owns every word — nothing is
39253
+ * appended, so `{{detectionSummary}}` is how he asks for it.
39254
+ */
39255
+ var ReportClassesField = z.array(z.string().min(1).max(40)).max(20);
39256
+ /**
38696
39257
  * Client-supplied timelapse-rule fields. The server stamps id / createdBy /
38697
39258
  * createdAt / updatedAt / ownerUserId / lastGeneratedAt — none of them appear
38698
39259
  * here (see the ownership note above).
@@ -38712,13 +39273,42 @@ var TimelapseRuleInputSchema = z.object({
38712
39273
  cadenceSec: CadenceSecField.default(15),
38713
39274
  /** Output frames per second of the assembled mp4 (predecessor parity). */
38714
39275
  framerate: FramerateField.default(10),
39276
+ /**
39277
+ * Explicit dense cadence — see {@link DenseCadenceSecField}. Absent ⇒ derived
39278
+ * as `max(1s, cadenceSec / 30)`, which is what every rule written before this
39279
+ * field gets.
39280
+ */
39281
+ denseCadenceSec: DenseCadenceSecField.optional(),
39282
+ /** Output-seconds guarantee per detection range — see {@link MinDwellSecField}. */
39283
+ minDwellSec: MinDwellSecField.optional(),
38715
39284
  /** `notification-output` targets the finished video/thumbnail is sent to. */
38716
39285
  targets: TargetsField,
38717
39286
  template: TimelapseTemplateSchema.optional(),
39287
+ /**
39288
+ * Caption on the notification's PREVIEW FRAME — see {@link PreviewTextField}
39289
+ * and {@link DEFAULT_TIMELAPSE_PREVIEW_TEXT}.
39290
+ *
39291
+ * Deliberately NOT part of {@link TimelapseTemplateSchema}: that object is
39292
+ * the notification's title/body, and clearing it (`template: null`) must not
39293
+ * silently clear the caption too.
39294
+ */
39295
+ previewText: PreviewTextField.optional(),
39296
+ /** Still or animation — see {@link PreviewModeField}. */
39297
+ previewMode: PreviewModeField.default("image"),
39298
+ /** Classes the notification counts — see {@link ReportClassesField}. */
39299
+ reportClasses: ReportClassesField.optional(),
38718
39300
  /** Canonical notification priority ordinal (1..5); per-target overridable. */
38719
39301
  priority: PriorityField.default(3)
38720
39302
  });
38721
39303
  /**
39304
+ * The caption a rule that never set one gets.
39305
+ *
39306
+ * Rendered through the ordinary `{{var}}` pass at delivery, so a rule created
39307
+ * before this field existed still reads "Timelapse Videocamera ingresso" and
39308
+ * not the literal braces.
39309
+ */
39310
+ var DEFAULT_TIMELAPSE_PREVIEW_TEXT = "Timelapse {{camera}}";
39311
+ /**
38722
39312
  * Partial patch for an update — any subset of the INPUT fields, with NO
38723
39313
  * defaults (an absent key means "leave unchanged", never "reset to default").
38724
39314
  * Provenance and ownership are absent by construction: a patch can rename or
@@ -38741,8 +39331,13 @@ var TimelapseRulePatchSchema = z.object({
38741
39331
  schedule: NcScheduleSchema.optional(),
38742
39332
  cadenceSec: CadenceSecField.optional(),
38743
39333
  framerate: FramerateField.optional(),
39334
+ denseCadenceSec: DenseCadenceSecField.optional(),
39335
+ minDwellSec: MinDwellSecField.optional(),
38744
39336
  targets: TargetsField.optional(),
38745
39337
  template: TimelapseTemplateSchema.nullable().optional(),
39338
+ previewText: PreviewTextField.optional(),
39339
+ previewMode: PreviewModeField.optional(),
39340
+ reportClasses: ReportClassesField.optional(),
38746
39341
  priority: PriorityField.optional()
38747
39342
  });
38748
39343
  /** A persisted timelapse rule. */
@@ -38783,6 +39378,26 @@ var TimelapseRuleSchema = TimelapseRuleInputSchema.extend({
38783
39378
  updatedAt: z.number()
38784
39379
  });
38785
39380
  /**
39381
+ * Refuse a dense cadence that is not denser than the base.
39382
+ *
39383
+ * Called at UPSERT, on the MERGED rule — a patch that lowers `cadenceSec`
39384
+ * alone can invalidate a `denseCadenceSec` set months earlier, so checking the
39385
+ * patch in isolation would let the bad pair through.
39386
+ *
39387
+ * Refusing here and not at render time is the whole point: `ExportTimelapseSchema`
39388
+ * also rejects the pair, but it does so when the window has already closed and
39389
+ * the footage is being cut — the operator learns at 06:05 that last night was
39390
+ * never going to render, and a closed window does not come back. This turns
39391
+ * that into a failed edit he can see and correct.
39392
+ *
39393
+ * @throws Error naming both numbers, so the message is actionable in a toast.
39394
+ */
39395
+ function assertTimelapseCadences(pair) {
39396
+ const dense = pair.denseCadenceSec;
39397
+ if (dense === void 0) return;
39398
+ if (dense >= pair.cadenceSec) throw new Error(`denseCadenceSec (${dense}s) must be strictly smaller than cadenceSec (${pair.cadenceSec}s) — a dense cadence that is not denser renders a uniform timelapse`);
39399
+ }
39400
+ /**
38786
39401
  * The last successful generation for ONE camera of a rule, epoch-ms.
38787
39402
  *
38788
39403
  * The per-device map wins; a rule with no map falls back to the rule-wide
@@ -38998,8 +39613,8 @@ function slideInsideFrame(rect, frameWidth, frameHeight) {
38998
39613
  //#endregion
38999
39614
  //#region src/pipeline/native-lease.ts
39000
39615
  /**
39001
- * THE native-frame **lease** knobs — TTL, RAM budget and demand window for the
39002
- * decode worker's native-resolution frame retention.
39616
+ * THE native-frame **lease** knobs — hold depth, RAM budget, demand window and
39617
+ * subject-tile budget for the decode worker's native-resolution retention.
39003
39618
  *
39004
39619
  * ## Why they live here and not in the addon that reads them
39005
39620
  *
@@ -39015,20 +39630,25 @@ function slideInsideFrame(rect, frameWidth, frameHeight) {
39015
39630
  * The lease is a per-decode-worker RAM window. Its purpose — the late
39016
39631
  * cross-process native crop landing on a full-resolution frame rather than the
39017
39632
  * ≤640 detection fallback — is a property of the PIPELINE, not of a node's
39018
- * hardware: a per-node TTL would mean the same camera produces different crop
39633
+ * hardware: a per-node window would mean the same camera produces different crop
39019
39634
  * quality depending on which node the balancer placed it on, and nobody could
39020
39635
  * tell that from the stored media. Node-level RAM pressure is already handled
39021
39636
  * by the per-session budget ceiling, which is itself one of these knobs.
39022
39637
  *
39023
39638
  * ## What each knob costs
39024
39639
  *
39025
- * A retained frame is a full NATIVE-resolution copy in system RAM. With the
39640
+ * A HELD frame is a full NATIVE-resolution copy in system RAM. With the
39026
39641
  * default pinned-RGB24 lease path (`CAMSTACK_SESSION_PINNED_RGB_CROP`, on):
39027
39642
  * 4K ≈ 24.9 MB/frame, 1080p ≈ 6.2 MB/frame. On the YUV420P path (flag off, and
39028
39643
  * for software-decoded sessions): 4K ≈ 12.4 MB, 1080p ≈ 3.1 MB. Worst-case
39029
- * resident RAM for ONE busy camera frameBytes × deliveredFps × ttlSeconds,
39030
- * clamped by the budget ceiling. See `docs/design/decode-path.md` "Lease
39031
- * admission" for what actually gets admitted.
39644
+ * resident RAM for ONE busy camera is now `frameBytes × holdFrames`, clamped by
39645
+ * the budget ceiling bounded by a COUNT because a held frame is waiting for
39646
+ * one specific event (its own detection result), not for a clock.
39647
+ *
39648
+ * A TILE is one subject at native resolution, JPEG-encoded: ~60-120 KB on 4K,
39649
+ * and nothing at all on a frame that detected nothing. That is the asymmetry
39650
+ * this whole shape exists for — see
39651
+ * `docs/design/2026-08-13-native-lease-two-tier-redesign.md`.
39032
39652
  */
39033
39653
  /**
39034
39654
  * Store identity of the lease knobs in `pipeline-orchestrator`'s GLOBAL
@@ -39036,10 +39656,11 @@ function slideInsideFrame(rect, frameWidth, frameHeight) {
39036
39656
  * the reader can walk every section instead of trusting the section id.
39037
39657
  */
39038
39658
  var NATIVE_LEASE_SECTION_ID = "native-lease";
39039
- var NATIVE_LEASE_TTL_KEY = "nativeLeaseTtlMs";
39659
+ var NATIVE_LEASE_HOLD_KEY = "nativeLeaseHoldFrames";
39040
39660
  var NATIVE_LEASE_BUDGET_KEY = "nativeLeaseBudgetMb";
39041
39661
  var NATIVE_LEASE_ACTIVITY_KEY = "nativeLeaseActivityMs";
39042
39662
  var NATIVE_LEASE_ADMISSION_KEY = "nativeLeaseAdmission";
39663
+ var NATIVE_LEASE_TILE_BUDGET_KEY = "nativeTileBudgetMb";
39043
39664
  /**
39044
39665
  * WHICH delivered frames the decode worker retains a native copy of.
39045
39666
  *
@@ -39066,25 +39687,32 @@ var NativeLeaseAdmissionSchema = z.enum(["all", "inferred"]);
39066
39687
  */
39067
39688
  var NativeLeaseSettingsSchema = z.object({
39068
39689
  /**
39069
- * How long a retained native frame is served before it counts as a miss.
39690
+ * How many delivered frames the worker HOLDS at once, waiting for each one's
39691
+ * detection result.
39070
39692
  *
39071
- * Must cover the FULL late-crop horizon: detection inference + the
39072
- * cross-process inference-result hop to hub post-analysis + tracking + the
39073
- * tRPC crop round-trip back. Below ~500 ms the busiest cameras' subject crops
39074
- * outrun it and fall back to the ≤640 detection frame; above ~3 s the resident
39075
- * RAM per busy camera grows linearly with no measured hit-rate gain.
39693
+ * This replaced a TTL on 2026-08-13, and the replacement is the whole point:
39694
+ * a time window was never related to the event the pixels were waiting for.
39695
+ * A held frame now lives from delivery until the runner has its `FrameResult`
39696
+ * at which moment the runner cuts the subject tiles it actually wanted and
39697
+ * releases the frame. The bound exists only so a runner that stops answering
39698
+ * cannot pin RAM: above it the OLDEST held frame is dropped and counted.
39699
+ *
39700
+ * Sizing: the steady state is `inferenceLatency × deliveredFps`, measured at
39701
+ * 40-160 ms × ≤25 fps = 1-4 frames. The default leaves headroom for a hiccup
39702
+ * without ever approaching the old resident set (43 frames × 24.9 MB at 4K).
39703
+ * Raising it does not buy hit rate — it buys tolerance for a slow runner, and
39704
+ * `holdOverflow` on the metrics line is what says you need it.
39076
39705
  */
39077
- ttlMs: z.number().int().min(250).max(1e4),
39706
+ holdFrames: z.number().int().min(1).max(64),
39078
39707
  /**
39079
39708
  * Hard per-decode-worker RAM ceiling for retained native frames, in MB.
39080
39709
  *
39081
- * Intended as a SAFETY ceiling with the TTL as the effective cap — but check
39082
- * which one is actually binding before reasoning from that. At the shipped
39083
- * 1024 MB and a 2 800 ms TTL, a 4K camera hits the CEILING first (~43 frames
39084
- * at ~24 MB each) and the TTL never gets to expire anything; `leaseMb` /
39085
- * `leaseFrames` on the metrics line say which. When the ceiling binds, a
39086
- * change that admits fewer frames buys retention WINDOW at constant RAM
39087
- * rather than giving RAM back — lower this knob if RAM is what you wanted.
39710
+ * Since 2026-08-13 this is a SAFETY ceiling and nothing else: `holdFrames`
39711
+ * is what decides how much is held, and the ceiling is the number above which
39712
+ * something is wrong. Before that it was the effective cap at 1024 MB with
39713
+ * a 2 800 ms TTL a 4K camera sat pinned at `leaseMb:1020, leaseFrames:43`
39714
+ * with the TTL expiring nothing, which is exactly the confusion the hold
39715
+ * removes. `leaseMb` / `leaseFrames` still say what is resident.
39088
39716
  * `0` DISABLES the lease entirely and falls the worker back to the tiny
39089
39717
  * leak-prone GPU surface ring (~85% crop miss; that is what the lease exists
39090
39718
  * to replace).
@@ -39110,25 +39738,47 @@ var NativeLeaseSettingsSchema = z.object({
39110
39738
  * there is the signal that some caller names frames outside the inference set
39111
39739
  * and that this must go back to `all`.
39112
39740
  */
39113
- admission: NativeLeaseAdmissionSchema
39741
+ admission: NativeLeaseAdmissionSchema,
39742
+ /**
39743
+ * RAM ceiling per decode worker, in MB, for the SUBJECT TILES — the
39744
+ * compressed native crops the worker cuts at the moment a frame's detection
39745
+ * result arrives, and keeps long after the frame itself is freed.
39746
+ *
39747
+ * This is the knob that replaced the old retention window, and it buys about
39748
+ * three orders of magnitude more of it: a tile is one subject at native
39749
+ * resolution, JPEG-encoded (~60-120 KB on a 4K person), against ~24.9 MB for
39750
+ * the frame it was cut from. A frame on which nothing was detected costs
39751
+ * nothing at all, which is the real change — the old lease paid per FRAME and
39752
+ * was interrogated per SUBJECT.
39753
+ *
39754
+ * `0` DISABLES tiles, leaving only the hold window and the ≤640 RAM
39755
+ * fallback — i.e. the pre-2026-08-13 miss profile. Set it there only to
39756
+ * reproduce that.
39757
+ */
39758
+ tileBudgetMb: z.number().int().min(0).max(1024)
39114
39759
  });
39115
39760
  /**
39116
- * The values in force when the operator has set nothing — byte-for-byte the
39117
- * constants the decode worker shipped with as env-var defaults, so making these
39118
- * settings changed no behaviour on the day it landed.
39761
+ * The values in force when the operator has set nothing.
39762
+ *
39763
+ * `budgetMb` stays at 1024 on the day the hold landed, deliberately: it stopped
39764
+ * being the retention window and became the OOM ceiling, and lowering a ceiling
39765
+ * in the same change that redefines it would make a regression and a retune
39766
+ * indistinguishable. Cut it once `tileHits` / `holdOverflow` have been read on
39767
+ * live traffic.
39119
39768
  */
39120
39769
  var DEFAULT_NATIVE_LEASE_SETTINGS = {
39121
- ttlMs: 1200,
39770
+ holdFrames: 8,
39122
39771
  budgetMb: 1024,
39123
39772
  activityMs: 15e3,
39773
+ tileBudgetMb: 64,
39124
39774
  admission: "inferred"
39125
39775
  };
39126
39776
  /** Slider bounds for the operator-facing knobs (orchestrator settings UI). */
39127
- var NATIVE_LEASE_TTL_FIELD = {
39128
- min: 250,
39129
- max: 1e4,
39130
- step: 50,
39131
- default: DEFAULT_NATIVE_LEASE_SETTINGS.ttlMs
39777
+ var NATIVE_LEASE_HOLD_FIELD = {
39778
+ min: 1,
39779
+ max: 64,
39780
+ step: 1,
39781
+ default: DEFAULT_NATIVE_LEASE_SETTINGS.holdFrames
39132
39782
  };
39133
39783
  var NATIVE_LEASE_BUDGET_FIELD = {
39134
39784
  min: 0,
@@ -39142,6 +39792,12 @@ var NATIVE_LEASE_ACTIVITY_FIELD = {
39142
39792
  step: 1e3,
39143
39793
  default: DEFAULT_NATIVE_LEASE_SETTINGS.activityMs
39144
39794
  };
39795
+ var NATIVE_LEASE_TILE_BUDGET_FIELD = {
39796
+ min: 0,
39797
+ max: 1024,
39798
+ step: 16,
39799
+ default: DEFAULT_NATIVE_LEASE_SETTINGS.tileBudgetMb
39800
+ };
39145
39801
  /** Select options for the admission knob (orchestrator settings UI). */
39146
39802
  var NATIVE_LEASE_ADMISSION_FIELD = {
39147
39803
  options: [{
@@ -39161,7 +39817,7 @@ var NATIVE_LEASE_ADMISSION_FIELD = {
39161
39817
  * precedence being true and being a lie. `addon-settings.getGlobalSettings`
39162
39818
  * returns a HYDRATED payload, and `hydrateField` fills an unstored field with
39163
39819
  * the schema's own `default` (verified live on the hub: a cluster that has never
39164
- * opened the form still reports `nativeLeaseTtlMs = 1200`). A reader that took
39820
+ * opened the form still reports `nativeLeaseHoldFrames = 8`). A reader that took
39165
39821
  * that at face value would report all three knobs as "set" on every cluster on
39166
39822
  * the day this shipped, permanently retiring the `CAMSTACK_SESSION_NATIVE_LEASE_*`
39167
39823
  * emergency override that the precedence promises. There is no raw-store read on
@@ -39195,25 +39851,28 @@ function readAdmissionKnob(raw) {
39195
39851
  * {@link readKnob} for why the default counts as unset.
39196
39852
  */
39197
39853
  function readNativeLeaseOverride(config) {
39198
- const ttlMs = readKnob("ttlMs", config[NATIVE_LEASE_TTL_KEY]);
39854
+ const holdFrames = readKnob("holdFrames", config[NATIVE_LEASE_HOLD_KEY]);
39199
39855
  const budgetMb = readKnob("budgetMb", config[NATIVE_LEASE_BUDGET_KEY]);
39200
39856
  const activityMs = readKnob("activityMs", config[NATIVE_LEASE_ACTIVITY_KEY]);
39201
39857
  const admission = readAdmissionKnob(config[NATIVE_LEASE_ADMISSION_KEY]);
39858
+ const tileBudgetMb = readKnob("tileBudgetMb", config[NATIVE_LEASE_TILE_BUDGET_KEY]);
39202
39859
  return {
39203
- ...ttlMs === null ? {} : { ttlMs },
39860
+ ...holdFrames === null ? {} : { holdFrames },
39204
39861
  ...budgetMb === null ? {} : { budgetMb },
39205
39862
  ...activityMs === null ? {} : { activityMs },
39206
- ...admission === null ? {} : { admission }
39863
+ ...admission === null ? {} : { admission },
39864
+ ...tileBudgetMb === null ? {} : { tileBudgetMb }
39207
39865
  };
39208
39866
  }
39209
39867
  function isHydratedField(entry) {
39210
39868
  return typeof entry === "object" && entry !== null && "key" in entry;
39211
39869
  }
39212
39870
  var LEASE_KEYS = [
39213
- NATIVE_LEASE_TTL_KEY,
39871
+ NATIVE_LEASE_HOLD_KEY,
39214
39872
  NATIVE_LEASE_BUDGET_KEY,
39215
39873
  NATIVE_LEASE_ACTIVITY_KEY,
39216
- NATIVE_LEASE_ADMISSION_KEY
39874
+ NATIVE_LEASE_ADMISSION_KEY,
39875
+ NATIVE_LEASE_TILE_BUDGET_KEY
39217
39876
  ];
39218
39877
  /**
39219
39878
  * Extract the operator's lease overrides from an
@@ -40545,4 +41204,4 @@ function enumerateInferenceDevices(hw) {
40545
41204
  return out;
40546
41205
  }
40547
41206
  //#endregion
40548
- export { ACCESSORY_LABEL, ALEXA_EGRESS_PROFILE, ALL_CAPABILITY_DEFINITIONS, APPLE_SA_TO_MACRO, AUDIO_ANALYSIS_CAP_NAME, AUDIO_BACKEND_CHOICES, AUDIO_MACRO_LABELS, AUDIO_PRESETS, AccessoriesStatusSchema, AccessoryKind, AddBrokerInputSchema, AddonAutoUpdateSchema, AddonListItemSchema, AddonPageDeclarationSchema, AddonPageInfoSchema, AdoptInputSchema as AdoptionAdoptInputSchema, AdoptResultSchema as AdoptionAdoptResultSchema, AdoptionCandidateResultSchema, AdoptionFilterSchema, GetCandidateInputSchema as AdoptionGetCandidateInputSchema, AdoptionJobSchema, AdoptionJobStateSchema, ListCandidatesInputSchema as AdoptionListCandidatesInputSchema, ListCandidatesOutputSchema as AdoptionListCandidatesOutputSchema, AdoptionOutcomeSchema, ReleaseInputSchema as AdoptionReleaseInputSchema, AdoptionStatusSchema, AgentLoadSummarySchema, AirQualitySensorStatusSchema, AlarmArmModeSchema, AlarmPanelStatusSchema, AlarmStateSchema, AlertSchema, AlertSeveritySchema, AlertSourceSchema, AlertStatusSchema, AmbientLightSensorStatusSchema, ApiKeyRecordSchema, ApiKeySummarySchema, ArchiveEntrySchema, ArchiveManifestSchema, AttachmentMediaTypeSchema, AttachmentSchema, AudioAnalysisResultSchema, AudioAnalysisSettingsSchema, AudioChunkInputSchema, AudioClassSummarySchema, AudioClassificationLabelSchema, AudioClassificationResultSchema, AudioCodecInfoSchema, AudioDecodeSessionConfigSchema, AudioEncodeSchema, AudioEncodeSessionConfigSchema, AudioEncodedChunkSchema, AudioEventSchema, AudioLevelSchema, AudioMetricsHistoryPointSchema, AudioMetricsHistorySchema, AudioMetricsSnapshotSchema, AudioPcmChunkSchema, AuthResultSchema, AutoUpdateSettingsSchema, AutomationActionSchema, AutomationConditionOperatorSchema, AutomationConditionSchema, AutomationControlStatusSchema, AutomationRecipeSchema, AutomationTriggerSchema, AvailableIntegrationTypeSchema, BACKEND_TO_FORMAT, BASE_LIVE_EGRESS_PROFILE, BATTERY_DEVICE_PROFILE, BacklightModeSchema, BackupDestinationInfoSchema, BackupEntrySchema, BaseAddon, BaseDevice, BaseDeviceProvider, BatteryStatusSchema, BinaryStatusSchema, BoundingBoxSchema, BrightnessStatusSchema, AddInputSchema as BrokerAddInputSchema, BrokerAudioClientSchema, BrokerClientsSchema, BrokerConnectionDetailsSchema, BrokerConsumerAttributionSchema, BrokerConsumerKindSchema, BrokerDecodedClientSchema, BrokerEncodedClientSchema, GetStateInputSchema as BrokerGetStateInputSchema, BrokerInfoSchema, BrokerProviderInfoSchema, PublishInputSchema as BrokerPublishInputSchema, RegistryStatusSchema as BrokerRegistryStatusSchema, BrokerRtspClientSchema, BrokerStatsSchema, BrokerStatusEnum, BrokerStatusSchema, SubscribeInputSchema as BrokerSubscribeInputSchema, SubscribeResultSchema as BrokerSubscribeResultSchema, TestConnectionResultSchema as BrokerTestConnectionResultSchema, UnsubscribeInputSchema as BrokerUnsubscribeInputSchema, CAMERA_SWITCH_CATALOG, CAMERA_SWITCH_ORDER, CAM_PROFILE_ORDER, CAPABILITY_NAMES, CAPABILITY_ROUTER_KEYS, CAP_NAMES_WITH_STATUS, CAP_NODE_PIN_CONTEXT_KEY, CAP_PROVIDER_KIND_MAP, COCO_80_LABELS, COCO_TO_MACRO, CONNECTION_TEST_TIMEOUT_MS, CORE_BLOCKS_ADDON_ID, CORE_BLOCK_ADDON_PREFIX, CamProfileSchema, CamStreamDescriptorSchema, CamStreamKindSchema, CamStreamResolutionSchema, CameraAssignmentStatusSchema, CameraAudioStatusSchema, CameraBrokerProfileSchema, CameraBrokerStatusSchema, CameraCredentialsSchema, CameraCredentialsStatusSchema, CameraDecoderShmSchema, CameraDecoderStatusSchema, CameraDetectionPhaseSchema, CameraDetectionProvisioningSchema, CameraDetectionProvisioningStateSchema, CameraDetectionStatusSchema, CameraMetricsSchema, CameraMetricsWithDeviceIdSchema, CameraMotionStatusSchema, CameraRecordingModeSchema, CameraRecordingStatusSchema, CameraSourceStatusSchema, CameraSourceStreamSchema, CameraStatusDegradationReasonSchema, CameraStatusDegradationSchema, CameraStatusSchema, CameraStatusStageSchema, CameraStreamSchema, CameraSwitchAuthoritySchema, CameraSwitchGroupSchema, CameraSwitchIdSchema, CameraSwitchSchema, CameraSwitchUnavailableReasonSchema, CandidateQueryFilterSchema, CapScopeSchema, CapabilityBindingsSchema, CarbonMonoxideStatusSchema, ChargingStatus, ClientNetworkStatsSchema, ClimateControlStatusSchema, ClipPlaybackSchema, ClipSchema, ClusterAddonNodeDeploymentSchema, ClusterAddonStatusEntrySchema, CollectionColumnSchema, CollectionIndexSchema, ColorStatusSchema, ConfigEntrySchema, ConfigSectionWithValuesSchema, ConfigTabDeclarationSchema, ConnectionTestDescriptorSchema, ConnectionTestInputSchema, ConnectionTestOutcomeSchema, ConnectivityStatusSchema, ConsumableItemSchema, ConsumablesStatusSchema, ContactStatusSchema, ControlKindSchema, ControlStatusSchema, ConvertArtifactSchema, ConvertResultSchema, ConvertTargetSchema, CoreBlockCompileResultSchema, CoreBlockInputSchema, CoreBlockPlacementSchema, CoreBlockSchema, CoreBlockStatusSchema, CoverStateSchema, CoverStatusSchema, CreateApiKeyInputSchema, CreateApiKeyResultSchema, CreateIntegrationInputSchema, CreateScopedTokenInputSchema, CreateScopedTokenResultSchema, CreateUserInputSchema, CustomActionInputSchema, CustomModelDescriptorSchema, DATAPLANE_SECRET_HEADER, DECLARED_DEVICE_SWEEP_LIMIT, DECLARED_INTEGRATION_FIXED_KEY, DEFAULT_ADDON_PLACEMENT, DEFAULT_AUDIO_ANALYZER_CONFIG, DEFAULT_DECODER_HWACCEL_CONFIG, DEFAULT_DETAIL_CROP_CONVENTION, DEFAULT_EVENTS_BAND_BUFFER_SEC, DEFAULT_EVENT_COLOR, DEFAULT_FEATURES, DEFAULT_NATIVE_LEASE_SETTINGS, DEFAULT_RETENTION, DEFAULT_SCRUB_THUMBNAIL_PRESET, DETAIL_CROP_PADDING_FIELD, DETAIL_CROP_PADDING_KEY, DETAIL_CROP_SECTION_ID, DETAIL_CROP_SQUARE_KEY, DETECTION_PIPELINE_CAP_NAME, DEVICE_BACKEND_TO_FORMAT, DEVICE_CAP_NAMES, DEVICE_PROFILES, DEVICE_SCOPED_CAPS, DEVICE_SETTINGS_CONTRIBUTION_METHODS, DEVICE_STATE_READERS, DEVICE_STATUS_METHOD, DEVICE_TYPE_CONTROL_KIND, DEVICE_TYPE_INFO, EngineInfoSchema as DataStoreEngineInfoSchema, DayNightModeSchema, DayNightOptionsSchema, DayNightSettingsPatchSchema, DayNightStatusSchema, DeclaredDevices, DecodedAudioChunkSchema, DecodedFrameSchema, DecoderSessionConfigSchema, DecoderStatsSchema, DeleteIntegrationResultSchema, DetailCropConventionSchema, DetectionSourceSchema, DeviceCodeSeveritySchema, DeviceConfig, DeviceDiscoveryStatusSchema, ExposeInputSchema as DeviceExportExposeInputSchema, DeviceExportStatusSchema, UnexposeInputSchema as DeviceExportUnexposeInputSchema, DeviceFeature, DeviceInfoSchema, DeviceNetworkStatsSchema, DeviceRole, DeviceRuntimeState, DeviceStatusSchema, DeviceType, DiscoveredChildDeviceSchema, DiscoveredChildStatusSchema, DiscoveredDeviceSchema, DiscoveredTargetSchema, DisposerChain, DoorbellPressEventSchema, DoorbellStatusSchema, EVENTFUL_CAP_NAMES, EVENT_KIND_BY_CAP, EVENT_PAD_MS, EVENT_TAXONOMY, EXPORT_DENSE_MAX_RANGES, EXPRESSION_BUILTINS, EXPRESSION_BUILTIN_NAMES, EXPRESSION_COMPILE_CACHE_CAPACITY, EXPRESSION_IDENTIFIER_RE, EXPRESSION_INJECTED_NOW, EgressEncodeSchema, EgressRateControlSchema, EgressTranscodeRequestSchema, EgressTranscodeSchema, ElementConfigStore, EmbeddingInfoSchema, EmbeddingResultSchema, EncodeProfileSchema, EncodedPacketSchema, EnrichedWidgetMetadataSchema, EnumSensorDateTimeFormatSchema, EnumSensorStatusSchema, EventCategory, EventEmitterStatusSchema, EventFireSchema, EventItemSchema, EventKindCategorySchema, EventKindDescriptorSchema, EventKindIconSchema, EventKindSchema, EventKindsForDeviceSchema, EventMediaArtifactSchema, EventMediaCoverageSchema, EventMediaKindSchema, EventMediaProductionSchema, EventSourceType, ExportBytesSchema, ExportDenseRangeSchema, ExportDenseSchema, ExportDownloadSchema, ExportOptionsSchema, ExportRecordSchema, ExportSetupFieldSchema, ExportSetupSchema, ExportSpeedSchema, ExportStateSchema, ExportTimelapseSchema, ExposedDeviceSchema, ExposureModeSchema, ExpressionBindingSourceSchema, ExpressionEvalError, ExpressionFieldBindingSchema, ExpressionGlobalBindingSchema, ExpressionLiteralBindingSchema, ExpressionParseError, ExpressionSourceSchema, FanControlStatusSchema, FanDirectionSchema, FeatureManifestSchema, FeatureProbeStatusSchema, FloodStatusSchema, Fmp4BoxSplitter, FrameHandleFormatSchema, FrameHandleSchema, FrameInputSchema, GasStatusSchema, GetStreamWithCodecInputSchema, GlobalMetricsSchema, HAP_AUDIO_BASE, HAP_AUDIO_BITRATE_KBPS, HAP_AUDIO_VBV_KBITS, HAP_KEYFRAME_INTERVAL_SEC, HF_BASE_URL, HF_REPO, HWACCEL_OPTIONS, HealthStatusSchema, HistoryPointSchema, HistoryResolutionEnum, HumidifierStatusSchema, HumiditySensorStatusSchema, HvacModeSchema, ImageContractSchema, ImageContractStateSchema, ImageRotateSchema, ImageSettingsOptionsSchema, ImageSettingsPatchSchema, ImageSettingsStatusSchema, ImageStatusSchema, IngestOwnerSchema, InstalledPackageSchema, IntegrationLiteSchema, IntegrationWithStateSchema, IntercomAbilitySchema, IntercomStatusSchema, KNOWN_CAP_NAMES, KeyEventSchema, LOG_LEVEL_RANK, LabelAttributionSchema, LabelDefinitionSchema, LabelTierSchema, LawnMowerActivitySchema, LawnMowerControlStatusSchema, LinkedDeviceSchema, LinkedDevicesModeSchema, LlmDefaultSchema, LlmDefaultSelectorSchema, LlmErrorCodeSchema, LlmGenerateBaseInputSchema, LlmGenerateErrSchema, LlmGenerateOkSchema, LlmGenerateResultSchema, LlmImageSchema, LlmNodeModelSchema, LlmProfileKindDescriptorSchema, LlmProfileKindSchema, LlmProfileSchema, LlmRuntimeCompleteInputSchema, LlmRuntimeDiskUsageSchema, LlmRuntimeNodeSchema, LlmRuntimeStatusSchema, LlmUsageRollupSchema, LlmUsageSchema, LocateSegmentResultSchema, LocationStatSchema, LockControlStatusSchema, LockStateSchema, LogEntrySchema, LogLevelSchema, LogStreamEntrySchema, LoginMethodContributionSchema, LoginStageEnum, MACRO_LABELS, MAX_CONDITION_DEPTH, MAX_CONDITION_LEAVES, MAX_EXPRESSION_AST_NODES, MAX_EXPRESSION_BINDINGS, MAX_EXPRESSION_CALL_ARGS, MAX_EXPRESSION_EVAL_STEPS, MAX_EXPRESSION_SOURCE_LENGTH, METHOD_ACCESS_MAP, MODEL_FORMATS, MOTION_TRIGGER_FEATURE, ManagedModelCatalogEntrySchema, ManagedModelRefSchema, ManagedRuntimeConfigSchema, MaskGridDimsSchema, MaskGridShapeSchema, MaskLineShapeSchema, MaskPointSchema, MaskPolygonShapeSchema, MaskPolygonVerticesSchema, MaskRectShapeSchema, MaskShapeKindSchema, MaskShapeSchema, MediaFileInfoSchema, MediaFileSchema, MediaPlayerRepeatSchema, MediaPlayerStateSchema, MediaPlayerStatusSchema, MeshPeerSchema, MeshStatusSchema, MethodAccessSchema, ModelCatalogEntrySchema, ModelConvertInputSchema, ModelConvertMetadataSchema, ModelDistributeInputSchema, ModelDistributeResultSchema, ModelExtraFileSchema, ModelFormatEntrySchema, ModelFormatsSchema, ModelSubstitutionSchema, ModelVariantGroupSchema, MotionAnalysisResultSchema, MotionEventSchema, MotionOnMotionChangedDataSchema, MotionRegionSchema, MotionSourceEnum, MotionSourcesSchema, MotionStatusSchema, MotionTriggerRuntimeStateSchema, MotionTriggerStatusSchema, MotionZoneOptionsSchema, MotionZonePatchSchema, MotionZoneRegionSchema, MotionZoneStatusSchema, StatusSchema as MqttBrokerStatusSchema, MutationFilterSchema, NATIVE_LEASE_ACTIVITY_FIELD, NATIVE_LEASE_ACTIVITY_KEY, NATIVE_LEASE_ADMISSION_FIELD, NATIVE_LEASE_ADMISSION_KEY, NATIVE_LEASE_BUDGET_FIELD, NATIVE_LEASE_BUDGET_KEY, NATIVE_LEASE_SECTION_ID, NATIVE_LEASE_TTL_FIELD, NATIVE_LEASE_TTL_KEY, NC_BASE_CONDITION_KEYS, NC_CONDITION_CATALOG, NC_HISTORY_LIMIT_DEFAULT, NC_HISTORY_LIMIT_MAX, NC_MAX_PER_TRACK_IMMEDIATE, NC_SNOOZE_MAX_MINUTES, NC_TAXONOMY, NativeCropBboxSchema, NativeCropRefSchema, NativeCropResultSchema, NativeDetectionSchema, NativeLeaseAdmissionSchema, NativeLeaseSettingsSchema, NativeObjectClassEnum, NativeObjectDetectionRuntimeStateSchema, NativeObjectDetectionStatusSchema, NcAlarmConfigSchema, NcAlarmModeCoverageSchema, NcAlarmSettingsPatchSchema, NcAlarmSettingsSchema, NcConditionDescriptorSchema, NcConditionsSchema, NcCrossingSchema, NcDeliverySchema, NcDeviceStateConditionSchema, NcHistoryEntrySchema, NcHistoryFilterSchema, NcHistoryRecordKindSchema, NcHistoryStatusSchema, NcHistorySubjectSchema, NcMediaFrameSchema, NcMediaPolicySchema, NcOccupancyConditionSchema, NcPlateMatcherSchema, NcRuleActionSchema, NcRuleActionSequenceSchema, NcRuleActionsSchema, NcRuleInputSchema, NcRuleNotificationButtonSchema, NcRulePatchSchema, NcRuleSchema, NcRuleTargetSchema, NcScheduleSchema, NcScheduleWindowSchema, NcSnoozeInputSchema, NcSnoozeSchema, NcSnoozeScopeSchema, NcSnoozeSuppressedSchema, NcSystemEventConditionSchema, NcSystemEventKindSchema, NcTaxonomyEntrySchema, NcTaxonomySchema, NcTestResultSchema, NcThrottleGranularitySchema, NcThrottleSchema, NcZoneConditionSchema, NetworkAccessStatusSchema, NetworkAddressSchema, NetworkEndpointSchema, NotificationActionIconSchema, NotificationActionSchema, NotificationFormatSchema, NotificationSchema, NotifierStatusSchema, NumericSensorStatusSchema, OPS_LOG_DEFAULT_LIMIT, OPS_LOG_RING_DEFAULT_MAX, OauthIntegrationDescriptorSchema, ObjectEventSchema, OpsLogDomainSchema, OpsLogEntrySchema, OpsLogOpSchema, OpsLogQueryInputSchema, OpsLogReasonSchema, OrchestratorMetricsSchema, OsdOverlayKindEnum, OsdOverlayPatchSchema, OsdOverlaySchema, OsdPositionEnum, OsdRenderOutcomeEnum, OsdRenderResultSchema, OsdSlotBindingSchema, OsdSlotViewSchema, OsdSourceOptionSchema, OsdSourceSchema, OsdSourceValueTypeEnum, OsdStatusSchema, PET_FEEDER_MANUAL_FEED_MAX, PET_FEEDER_MANUAL_FEED_MIN, PIPELINE_FLOW_CAPABILITY_NAMES, PIPELINE_OWNER_CAPABILITY_NAMES, PRIVACY_MASK_CAP_NAME, PROVIDER_KIND_CAP_NAMES, PYTHON_SCRIPT, PackageUpdateSchema, PackageVersionInfoSchema, PasskeyLoginMethodSchema, PasskeySummarySchema, PcmSampleFormatSchema, PerScopeBreakdownSchema, PetFeederStatusSchema, PickStreamPreferencesSchema, PickStreamRequirementsSchema, PickedCamStreamSchema, PipelineAssignmentSchema, PipelineDefaultStepSchema, PipelineEngineChoiceSchema, PipelineRunResultBridge, PipelineStepInputSchema, PipelineValidationIssueSchema, PipelineValidationResultSchema, PlaceholderReasonSchema, PolygonPointSchema, PowerMeterStatusSchema, PresenceStatusSchema, PressureSensorStatusSchema, PrivacyMaskOptionsSchema, PrivacyMaskPatchSchema, PrivacyMaskRegionSchema, PrivacyMaskShapeSchema, PrivacyMaskStatusSchema, ProfileRtspEntrySchema, ProfileSlotSchema, ProfileSlotStatusSchema, ProviderStatusSchema, PtzAutotrackRuntimeStateSchema, PtzAutotrackSettingsSchema, PtzAutotrackStatusSchema, PtzAutotrackTargetOptionSchema, PtzMoveCommandSchema, PtzOptionsSchema, PtzPositionSchema, PtzPresetSchema, PtzStatusSchema, QueryFilterSchema, RATE_CONTROL_RELAXED, RATE_CONTROL_TIGHT, REACHABILITY_FAILURES_TO_OFFLINE, REACHABILITY_POLL_INTERVAL_MS, REACHABILITY_PROBE_TIMEOUT_MS, RECOGNITION_TYPES, RECORDING_EXPORT_MAX_READ_BYTES, RESERVED_BINDING_NAMES, RUNTIME_DEFAULTS, RUNTIME_TO_FORMAT, RawStateResultSchema, ReadGopBytesResultSchema, ReadSegmentBytesResultSchema, ReadinessRegistry, ReadinessTimeoutError, RecentTracksPageSchema, RecentTracksQueryInput, RecordingAvailabilitySchema, RecordingBandModeSchema, RecordingBandSchema, RecordingBandTriggersSchema, RecordingConfigSchema, RecordingDaysSchema, RecordingDeviceUsageSchema, RecordingLocationUsageSchema, RecordingManifestSchema, RecordingRangeSchema, RecordingRetentionSchema, RecordingStatusSchema, RecordingStorageModeSchema, RecordingStorageUsageSchema, RecordingTriggersSchema, RecordingWeekdaySchema, RedirectLoginMethodSchema, RelocateFootageClassSchema, RelocateFootageInputSchema, RelocateJobSchema, RelocateJobStateSchema, RelocateMediaInputSchema, RenderedAsSchema, ReportMotionInputSchema, RetrainAnnotationDraftSchema, RetrainAnnotationKindSchema, RetrainAnnotationSchema, RetrainAnnotationSourceSchema, RetrainAssistResultSchema, RetrainAssistSubjectSchema, RetrainCopyRefusalSchema, RetrainFrameCandidateSchema, RetrainFrameListSchema, RetrainFrameSchema, RetrainFrameSelectionSchema, RetrainMacroClassSchema, RetrainStatusSchema, RetrainTrackSchema, RetrainTransitionResultSchema, RingBuffer, RtpSourceSchema, RtspRestreamEntrySchema, RunnerCameraConfigSchema, RunnerCameraDeviceUIFields, RunnerFrameSourceSchema, RunnerInferenceDeviceSchema, RunnerLocalLoadSchema, RunnerLocalMetricsSchema, SCOPE_PRESETS, SCRUB_THUMBNAIL_PRESETS, SCRUB_THUMBNAIL_PRESET_LABELS, SCRUB_THUMBNAIL_PRESET_ORDER, SENSOR_FEATURES, SENSOR_MAP, SOURCE_INFO_METADATA_KEY, STREAM_PROFILE_META, STREAM_QUALITY_LABELS, SUB_DETECTION_TYPES, SYSTEM_CAP_NAMES, SceneCheckSchema, SceneConditionSchema, SceneMonitorSchema, SceneMonitorStateSchema, SceneMonitorStatusSchema, SceneReferenceSchema, ScopedTokenSchema, ScopedTokenSummarySchema, ScoredObjectEventSchema, ScriptRunnerStatusSchema, ScrubThumbnailPresetSchema, SearchResultSchema, SendEmailInputSchema, SendEmailResultSchema, SendResultSchema, SensorEventSchema, ServerBootModeSchema, ServerPackageStatusSchema, ServerRollbackInfoSchema, ServerUpdateActionResultSchema, ServerUpdateCheckResultSchema, ServerUpdateStateSchema, SettingsPatchSchema, SettingsRecordSchema, SettingsSchemaWithValuesSchema, SettingsUpdateResultSchema, ShmRingStatsSchema, SmokeStatusSchema, SmtpStatusSchema, SnapshotImageSchema, SourceInfoSchema, SpatialDetectionSchema, SsoBridgeClaimsSchema, StartEmbeddedInputSchema, StationaryObjectSchema, AbortUploadInputSchema as StorageAbortUploadInputSchema, BeginDownloadInputSchema as StorageBeginDownloadInputSchema, BeginDownloadResultSchema as StorageBeginDownloadResultSchema, BeginUploadInputSchema as StorageBeginUploadInputSchema, BeginUploadResultSchema as StorageBeginUploadResultSchema, EndDownloadInputSchema as StorageEndDownloadInputSchema, FinalizeUploadInputSchema as StorageFinalizeUploadInputSchema, StorageLocationDeclarationSchema, StorageLocationRefSchema, StorageLocationSchema, StorageLocationTypeSchema, StorageMigrationClassSchema, StorageMigrationDestinationsSchema, StorageMigrationFootageMoveInputSchema, StorageMigrationInputSchema, StorageMigrationJobSchema, StorageMigrationLeaseInputSchema, StorageMigrationMediaMoveInputSchema, StorageMigrationMoveSchema, StorageMigrationParticipantSchema, StorageMigrationPhaseSchema, StorageMigrationPlanSchema, ProviderInfoSchema as StorageProviderInfoSchema, ReadChunkInputSchema as StorageReadChunkInputSchema, TestLocationResultSchema as StorageTestLocationResultSchema, WriteChunkInputSchema as StorageWriteChunkInputSchema, StreamCodecSchema, StreamFormatSchema, StreamNetworkStatsSchema, StreamParamsOptionsSchema, StreamParamsStatusSchema, StreamProfileConfigSchema, StreamProfileOptionsSchema, StreamProfilePatchSchema, StreamProfileSchema, StreamSourceEntrySchema, StreamSourceSchema, SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, SubscribeFramesInputSchema, SubscribeFramesResultSchema, SwitchStatusSchema, SystemMetricsSchema, SystemMirror, TAXONOMY_COLORS, TIMEZONES, TRANSCODE_DOWN_MAX_BITRATE_KBPS, TRANSCODE_DOWN_MAX_HEIGHT, TamperStatusSchema, TankStatusSchema, TargetKindCapsSchema, TargetKindLevelSchema, TargetKindSchema, TargetSchema, TemperatureSensorStatusSchema, TerminalInstanceInfoSchema, TerminalLegacyCameraSchema, TerminalOutputBatchSchema, TerminalOutputEventSchema, TerminalProfileInfoSchema, TerminalSessionInfoSchema, TestConnectionResultSchema$1 as TestConnectionResultSchema, TestConnectionStatusEnum, TestResultSchema, TimelapseRuleInputSchema, TimelapseRulePatchSchema, TimelapseRuleSchema, TimelapseTemplateSchema, ToastSchema, TokenScopeSchema, TopologyNodeSchema, TopologyProcessSchema, TopologyServiceSchema, TrackCascadeCountsSchema, TrackEnvelopeSchema, TrackFlagsPatchSchema, TrackFlagsSchema, TrackProjectionSchema, TrackSchema, TrackSourceSchema, TrackStateSchema, TrackZoneFilterSchema, TrackedDetectionSchema, TrainingExportDeviceTotalsSchema, TrainingExportSummarySchema, TurnServerSchema, UNIT_TABLE, BrokerInfoSchema$1 as UnifiedBrokerInfoSchema, UnitConversionError, UpdateIntegrationInputSchema, UpdateStatusSchema, UpdateUserInputSchema, UserRecordSchema, UserSummarySchema, VacuumControlStatusSchema, VacuumStateSchema, ValveStateSchema, ValveStatusSchema, VectorDeclareIndexInputSchema, VectorDeleteByFilterInputSchema, VectorDeleteInputSchema, VectorDeleteResultSchema, VectorFilterSchema, VectorGetInputSchema, VectorGetResultSchema, VectorItemSchema, VectorMatchSchema, VectorMetadataSchema, VectorMetricSchema, VectorQueryInputSchema, VectorQueryResultSchema, VectorStatsInputSchema, VectorStatsResultSchema, VectorUpsertInputSchema, VectorUpsertResultSchema, VibrationStatusSchema, VideoEncodeSchema, WEBRTC_EGRESS_PROFILE, WELL_KNOWN_TABS, WELL_KNOWN_TAB_MAP, WaterHeaterStatusSchema, WeatherStatusSchema, WebrtcStreamChoiceSchema, WebrtcStreamTargetSchema, WhiteBalanceModeSchema, WidgetHostEnum, WidgetLoginMethodSchema, WidgetMetadataSchema, WidgetRemoteSchema, WidgetSizeEnum, YAMNET_TO_MACRO, ZoneCrossingDirectionSchema, ZoneCrossingSchema, ZoneKindEnum, ZoneRuleModeEnum, ZoneRuleSchema, ZoneRuleStageEnum, ZoneRulesArraySchema, ZoneSchema, ZoneScopeBreakdownSchema, accessoriesCapability, accessoryStableId, addonPagesCapability, addonPagesSourceCapability, addonRoutesCapability, addonSettingsCapability, addonWidgetsCapability, addonWidgetsSourceCapability, addonsCapability, adminUiCapability, airQualitySensorCapability, alarmPanelCapability, alertsCapability, ambientLightSensorCapability, asBoolean, asJsonArray, asJsonObject, asNumber, asString, audioAnalysisCapability, audioAnalyzerCapability, audioCodecCapability, audioMetricsCapability, audioPlanFromEncodeProfile, authProviderCapability, autoAssignProfiles, automationControlCapability, backupCapability, bareAddonId, batteryCapability, bestLocationMatch, binaryCapability, bindAddonActions, brightnessCapability, brokerCapability, buildAddonRouteProvider, buildAudioArgs, buildEventKindDescriptor, buildFfmpegArgs, buildInputArgs, buildModelVariantGroups, buildNcTaxonomy, buildStreamParamsConfigSchema, buildVideoArgs, buttonCapability, cameraCredentialsCapability, cameraPipelineConfigCapability, cameraStreamsCapability, canConvertUnit, canonicalEgressPlan, carbonMonoxideCapability, cellsToRects, classifyBearerPrincipal, classifyStream, classifyStreams, climateControlCapability, collectHydratedFieldEntries, collectHydratedFieldValues, colorCapability, colorForKind, compileExpression, compileExpressionSafe, composeSwitchedOff, conditionDepth, connectionTestCapability, connectivityCapability, consumablesCapability, contactCapability, controlCapability, convertUnit, coreBlockAddonId, coreBlockIdFromAddonId, coreBlocksCapability, cosineSimilarity, countConditionLeaves, coverCapability, createDeviceProxy, createDurableState, createEvent, createExpressionScope, createHwAccelCache, createLazyTrpcSource, createMirrorSource, createRuntimeStateBridge, createSliceHandle, createSystemProxy, customAction, customModelRegistryCapability, dataStoreProviderCapability, dayNightCapability, declarationOwnerNodeId, decodeVectorBase64, decoderCapability, defaultDeviceFor, defineCustomActions, deriveCameraSwitches, deriveDetailCropRect, deriveRecordingMode, describeModelVariant, detectionPipelineCapability, deviceAdoptionCapability, deviceBackendToFormat, deviceCustomAction, deviceDiscoveryCapability, deviceExportCapability, deviceManagerCapability, deviceMatchesProfile, deviceOpsCapability, deviceProviderCapability, deviceStateCapability, deviceStatusCapability, doorbellCapability, egressTranscodeSharingKey, egressTransportFromRequest, embeddingEncoderCapability, emitDownForOwnedCaps, emitReadiness, encodeProfileFromStreamShape, encodeVectorBase64, enumSensorCapability, enumerateInferenceDevices, enumerateItemArrayFields, enumerateSchemaFields, errMsg, evaluateAst, evaluateExpressionSource, evaluateZoneRules, event, eventEmitterCapability, eventsCapability, expandCapMethods, extractNestedAddonId, extractSourceInfoFromMetadata, faceGalleryCapability, fanControlCapability, featureProbeCapability, filesystemBrowseCapability, findTimezone, floodCapability, formatForBackend, formatForRuntime, gasCapability, generateAutomationBlock, getAudioMacroClassIds, getByPath, getCapsByProviderKind, getTaxonomyEntry, hasMotionTrigger, hfModelUrl, htmlToText, humidifierCapability, humiditySensorCapability, hydrateSchema, imageCapability, imageSettingsCapability, integrationsCapability, intercomCapability, invocationFromEncodeProfile, isAgentOnlyPlacement, isArrayOutputSchema, isBaseConditionKey, isCollectionArrayMethod, isDeployableToAgent, isDeviceConfigCap, isDeviceScopedCap, isEvent, isNode, isObjectInput, isSameAddonId, isScheduleActive, isSoftwareDecode, isVoidInput, jobKindSchema, kebabToCamel, knownValues, lawnMowerControlCapability, lifecycleJobSchema, lifecycleJobScopeSchema, lifecycleJobStateSchema, lifecycleTaskSchema, llmCapability, llmRuntimeCapability, localNetworkCapability, locationSimilarity, lockControlCapability, logBannerArgs, logDestinationCapability, logLevelAtMost, loginMethodCapability, looseSchema, makeProfileBrokerId, makeSourceBrokerId, mapAudioLabelToMacro, markdownToHtmlLite, markdownToText, maskUrlCredentials, mediaPlayerCapability, mergeSourceInfo, meshNetworkCapability, method, methodAccessForHttpMethod, metricsProviderCapability, modelConvertCapability, modelDistributorCapability, modelFormatForRuntime, motionCapability, motionDetectionCapability, motionTriggerCapability, motionZonesCapability, mqttBrokerCapability, nativeObjectDetectionCapability, networkAccessCapability, networkQualityCapability, nodePin, nodesCapability, normalizeAddonInitResult, normalizeUnit, notificationOutputCapability, notificationRulesCapability, notifierCapability, numericSensorCapability, oauthIntegrationCapability, objectInputDeclaresAddonId, osdCapability, osdManagerCapability, parseCameraStreamConfig, parseExpression, parseJsonArray, parseJsonObject, parseJsonUnknown, parseProfileBrokerId, parseStreamParamsFormPatch, petFeederCapability, pickAccessoryControl, pickDetailCropConvention, pickNativeLeaseOverride, pickPreferredRtspEntry, pickVideoEncoder, pickerForCondition, pipelineAnalyticsCapability, pipelineExecutorCapability, pipelineOrchestratorCapability, pipelineRunnerCapability, plateGalleryCapability, platformProbeCapability, powerMeterCapability, prepareNotification, presenceCapability, pressureSensorCapability, principalMayReachAddon, privacyMaskCapability, procedureAuthKey, ptzAutotrackCapability, ptzCapability, pythonScriptForBackend, readDetailCropConvention, readDeviceStateFrom, readNativeLeaseOverride, readNodePin, readTimelapseGeneratedAt, readinessKey, rebootCapability, recordingCapability, recordingExportCapability, rectsToCells, requiresPython, resolveAddonExecution, resolveAddonGroup, resolveAddonPlacement, resolveAddonRuntime, resolveCapMount, resolveDetectionRuntime, resolveDeviceControlKind, resolveDeviceProfile, resolveEgressDecodeHwAccel, resolveFormat, resolveHydratedFieldValue, resolveModelFormat, resolveMutate, resolveRunnerId, resolveScrubThumbnailGeometry, resolveVariantModelId, runInferenceStep, runtimeDevices, sceneMonitorCapability, scopeKey, scopesAllowAddon, scopesAllowDeviceCap, scoreRuntimes, scriptRunnerCapability, selectAssignedProfileSlots, serverManagementCapability, setByPath, settingsStoreCapability, sleep, sleepCancellable, smokeCapability, smtpProviderCapability, snapshotCapability, ssoBridgeCapability, startReachabilityPoll, stateVocabularyFor, storageCapability, storageEvictableCapability, storageMigrationCapability, storageProviderCapability, streamBrokerCapability, streamCatalogCapability, streamParamsCapability, streamPixels, streamQualityLabel, subKindsOf, summarisePrivacyAudio, supportedRuntimes, switchCapability, switchedOffIds, synthesizeSourceInfo, systemCapability, tamperCapability, taskLogEntrySchema, taskPhaseSchema, taskTargetSchema, temperatureSensorCapability, terminalSessionCapability, textToHtml, toDeviceSummary, toExpressionValue, toNodeId, toStreamSourceEntry, toastCapability, tokenize, transcodeBody, tryConvertUnit, turnProviderCapability, unitDimension, unitsForDimension, updateCapability, userManagementCapability, userPasskeysCapability, vacuumControlCapability, validateExpressionSource, validateRecipeBounds, valveCapability, vectorDimFromBase64, vectorStoreCapability, vibrationCapability, videoclipsCapability, viewerUiCapability, waterHeaterCapability, weatherCapability, webrtcClientHintsSchema, webrtcSessionCapability, wiringAddonHealthSchema, wiringHealthSnapshotSchema, wiringNodeHealthSchema, wiringProbeKindSchema, wiringProbeResultSchema, zodEntriesToConfigUI, zoneAnalyticsCapability, zoneRulesCapability, zonesCapability };
41207
+ export { ACCESSORY_LABEL, ALEXA_EGRESS_PROFILE, ALL_CAPABILITY_DEFINITIONS, APPLE_SA_TO_MACRO, AUDIO_ANALYSIS_CAP_NAME, AUDIO_BACKEND_CHOICES, AUDIO_MACRO_LABELS, AUDIO_PRESETS, AccessoriesStatusSchema, AccessoryKind, AddBrokerInputSchema, AddonAutoUpdateSchema, AddonListItemSchema, AddonPageDeclarationSchema, AddonPageInfoSchema, AdoptInputSchema as AdoptionAdoptInputSchema, AdoptResultSchema as AdoptionAdoptResultSchema, AdoptionCandidateResultSchema, AdoptionFilterSchema, GetCandidateInputSchema as AdoptionGetCandidateInputSchema, AdoptionJobSchema, AdoptionJobStateSchema, ListCandidatesInputSchema as AdoptionListCandidatesInputSchema, ListCandidatesOutputSchema as AdoptionListCandidatesOutputSchema, AdoptionOutcomeSchema, ReleaseInputSchema as AdoptionReleaseInputSchema, AdoptionStatusSchema, AgentLoadSummarySchema, AirQualitySensorStatusSchema, AlarmArmModeSchema, AlarmPanelStatusSchema, AlarmStateSchema, AlertSchema, AlertSeveritySchema, AlertSourceSchema, AlertStatusSchema, AmbientLightSensorStatusSchema, ApiKeyRecordSchema, ApiKeySummarySchema, ArchiveEntrySchema, ArchiveManifestSchema, AttachmentMediaTypeSchema, AttachmentSchema, AudioAnalysisResultSchema, AudioAnalysisSettingsSchema, AudioChunkInputSchema, AudioClassSummarySchema, AudioClassificationLabelSchema, AudioClassificationResultSchema, AudioCodecInfoSchema, AudioDecodeSessionConfigSchema, AudioEncodeSchema, AudioEncodeSessionConfigSchema, AudioEncodedChunkSchema, AudioEventSchema, AudioLevelSchema, AudioMetricsHistoryPointSchema, AudioMetricsHistorySchema, AudioMetricsSnapshotSchema, AudioPcmChunkSchema, AuthResultSchema, AutoUpdateSettingsSchema, AutomationActionSchema, AutomationConditionOperatorSchema, AutomationConditionSchema, AutomationControlStatusSchema, AutomationRecipeSchema, AutomationTriggerSchema, AvailableIntegrationTypeSchema, BACKEND_TO_FORMAT, BASE_LIVE_EGRESS_PROFILE, BATTERY_DEVICE_PROFILE, BacklightModeSchema, BackupDestinationInfoSchema, BackupEntrySchema, BaseAddon, BaseDevice, BaseDeviceProvider, BatteryStatusSchema, BinaryStatusSchema, BoundingBoxSchema, BrightnessStatusSchema, AddInputSchema as BrokerAddInputSchema, BrokerAudioClientSchema, BrokerClientsSchema, BrokerConnectionDetailsSchema, BrokerConsumerAttributionSchema, BrokerConsumerKindSchema, BrokerDecodedClientSchema, BrokerEncodedClientSchema, GetStateInputSchema as BrokerGetStateInputSchema, BrokerInfoSchema, BrokerProviderInfoSchema, PublishInputSchema as BrokerPublishInputSchema, RegistryStatusSchema as BrokerRegistryStatusSchema, BrokerRtspClientSchema, BrokerStatsSchema, BrokerStatusEnum, BrokerStatusSchema, SubscribeInputSchema as BrokerSubscribeInputSchema, SubscribeResultSchema as BrokerSubscribeResultSchema, TestConnectionResultSchema as BrokerTestConnectionResultSchema, UnsubscribeInputSchema as BrokerUnsubscribeInputSchema, CAMERA_SWITCH_CATALOG, CAMERA_SWITCH_ORDER, CAM_PROFILE_ORDER, CAPABILITY_NAMES, CAPABILITY_ROUTER_KEYS, CAP_NAMES_WITH_STATUS, CAP_NODE_PIN_CONTEXT_KEY, CAP_PROVIDER_KIND_MAP, COCO_80_LABELS, COCO_TO_MACRO, CONNECTION_TEST_TIMEOUT_MS, CORE_BLOCKS_ADDON_ID, CORE_BLOCK_ADDON_PREFIX, CamProfileSchema, CamStreamDescriptorSchema, CamStreamKindSchema, CamStreamResolutionSchema, CameraAssignmentStatusSchema, CameraAudioStatusSchema, CameraBrokerProfileSchema, CameraBrokerStatusSchema, CameraCredentialsSchema, CameraCredentialsStatusSchema, CameraDecoderShmSchema, CameraDecoderStatusSchema, CameraDetectionPhaseSchema, CameraDetectionProvisioningSchema, CameraDetectionProvisioningStateSchema, CameraDetectionStatusSchema, CameraMetricsSchema, CameraMetricsWithDeviceIdSchema, CameraMotionStatusSchema, CameraRecordingModeSchema, CameraRecordingStatusSchema, CameraSourceStatusSchema, CameraSourceStreamSchema, CameraStatusDegradationReasonSchema, CameraStatusDegradationSchema, CameraStatusSchema, CameraStatusStageSchema, CameraStreamSchema, CameraSwitchAuthoritySchema, CameraSwitchGroupSchema, CameraSwitchIdSchema, CameraSwitchSchema, CameraSwitchUnavailableReasonSchema, CandidateQueryFilterSchema, CapScopeSchema, CapabilityBindingsSchema, CarbonMonoxideStatusSchema, ChargingStatus, ClientNetworkStatsSchema, ClimateControlStatusSchema, ClipPlaybackSchema, ClipSchema, ClusterAddonNodeDeploymentSchema, ClusterAddonStatusEntrySchema, CollectionColumnSchema, CollectionIndexSchema, ColorStatusSchema, ConfigEntrySchema, ConfigSectionWithValuesSchema, ConfigTabDeclarationSchema, ConnectionTestDescriptorSchema, ConnectionTestInputSchema, ConnectionTestOutcomeSchema, ConnectivityStatusSchema, ConsumableItemSchema, ConsumablesStatusSchema, ContactStatusSchema, ControlKindSchema, ControlStatusSchema, ConvertArtifactSchema, ConvertResultSchema, ConvertTargetSchema, CoreBlockCompileResultSchema, CoreBlockInputSchema, CoreBlockPlacementSchema, CoreBlockSchema, CoreBlockStatusSchema, CoverStateSchema, CoverStatusSchema, CreateApiKeyInputSchema, CreateApiKeyResultSchema, CreateIntegrationInputSchema, CreateScopedTokenInputSchema, CreateScopedTokenResultSchema, CreateUserInputSchema, CustomActionInputSchema, CustomModelDescriptorSchema, DATAPLANE_SECRET_HEADER, DECLARED_DEVICE_SWEEP_LIMIT, DECLARED_INTEGRATION_FIXED_KEY, DEFAULT_ADDON_PLACEMENT, DEFAULT_AUDIO_ANALYZER_CONFIG, DEFAULT_DECODER_HWACCEL_CONFIG, DEFAULT_DETAIL_CROP_CONVENTION, DEFAULT_EVENTS_BAND_BUFFER_SEC, DEFAULT_EVENT_COLOR, DEFAULT_FEATURES, DEFAULT_NATIVE_LEASE_SETTINGS, DEFAULT_RETENTION, DEFAULT_SCRUB_THUMBNAIL_PRESET, DEFAULT_TIMELAPSE_PREVIEW_TEXT, DETAIL_CROP_PADDING_FIELD, DETAIL_CROP_PADDING_KEY, DETAIL_CROP_SECTION_ID, DETAIL_CROP_SQUARE_KEY, DETECTION_PIPELINE_CAP_NAME, DEVICE_BACKEND_TO_FORMAT, DEVICE_CAP_NAMES, DEVICE_PROFILES, DEVICE_SCOPED_CAPS, DEVICE_SETTINGS_CONTRIBUTION_METHODS, DEVICE_STATE_READERS, DEVICE_STATUS_METHOD, DEVICE_TYPE_CONTROL_KIND, DEVICE_TYPE_INFO, EngineInfoSchema as DataStoreEngineInfoSchema, DayNightModeSchema, DayNightOptionsSchema, DayNightSettingsPatchSchema, DayNightStatusSchema, DeclaredDevices, DecodedAudioChunkSchema, DecodedFrameSchema, DecoderSessionConfigSchema, DecoderStatsSchema, DeleteIntegrationResultSchema, DetailCropConventionSchema, DetectionSourceSchema, DeviceCodeSeveritySchema, DeviceConfig, DeviceDiscoveryStatusSchema, ExposeInputSchema as DeviceExportExposeInputSchema, DeviceExportStatusSchema, UnexposeInputSchema as DeviceExportUnexposeInputSchema, DeviceFeature, DeviceInfoSchema, DeviceNetworkStatsSchema, DeviceRole, DeviceRuntimeState, DeviceStatusSchema, DeviceType, DiscoveredChildDeviceSchema, DiscoveredChildStatusSchema, DiscoveredDeviceSchema, DiscoveredTargetSchema, DisposerChain, DoorbellPressEventSchema, DoorbellStatusSchema, EVENTFUL_CAP_NAMES, EVENT_KIND_BY_CAP, EVENT_PAD_MS, EVENT_TAXONOMY, EXPORT_DENSE_MAX_RANGES, EXPRESSION_BUILTINS, EXPRESSION_BUILTIN_NAMES, EXPRESSION_COMPILE_CACHE_CAPACITY, EXPRESSION_IDENTIFIER_RE, EXPRESSION_INJECTED_NOW, EgressEncodeSchema, EgressRateControlSchema, EgressTranscodeRequestSchema, EgressTranscodeSchema, ElementConfigStore, EmbeddingInfoSchema, EmbeddingResultSchema, EncodeProfileSchema, EncodedPacketSchema, EnrichedWidgetMetadataSchema, EnumSensorDateTimeFormatSchema, EnumSensorStatusSchema, EventCategory, EventEmitterStatusSchema, EventFireSchema, EventItemSchema, EventKindCategorySchema, EventKindDescriptorSchema, EventKindIconSchema, EventKindSchema, EventKindsForDeviceSchema, EventMediaArtifactSchema, EventMediaCoverageSchema, EventMediaKindSchema, EventMediaProductionSchema, EventSourceType, ExportBytesSchema, ExportDenseRangeSchema, ExportDenseSchema, ExportDownloadSchema, ExportOptionsSchema, ExportRecordSchema, ExportSetupFieldSchema, ExportSetupSchema, ExportSpeedSchema, ExportStateSchema, ExportTimelapseSchema, ExposedDeviceSchema, ExposureModeSchema, ExpressionBindingSourceSchema, ExpressionEvalError, ExpressionFieldBindingSchema, ExpressionGlobalBindingSchema, ExpressionLiteralBindingSchema, ExpressionParseError, ExpressionSourceSchema, FanControlStatusSchema, FanDirectionSchema, FeatureManifestSchema, FeatureProbeStatusSchema, FloodStatusSchema, Fmp4BoxSplitter, FrameHandleFormatSchema, FrameHandleSchema, FrameInputSchema, GasStatusSchema, GetStreamWithCodecInputSchema, GlobalMetricsSchema, HAP_AUDIO_BASE, HAP_AUDIO_BITRATE_KBPS, HAP_AUDIO_VBV_KBITS, HAP_KEYFRAME_INTERVAL_SEC, HF_BASE_URL, HF_REPO, HWACCEL_OPTIONS, HealthStatusSchema, HistoryPointSchema, HistoryResolutionEnum, HumidifierStatusSchema, HumiditySensorStatusSchema, HvacModeSchema, ImageContractSchema, ImageContractStateSchema, ImageRotateSchema, ImageSettingsOptionsSchema, ImageSettingsPatchSchema, ImageSettingsStatusSchema, ImageStatusSchema, IngestOwnerSchema, InstalledPackageSchema, IntegrationLiteSchema, IntegrationWithStateSchema, IntercomAbilitySchema, IntercomStatusSchema, KNOWN_CAP_NAMES, KeyEventSchema, LOG_LEVEL_RANK, LabelAttributionSchema, LabelDefinitionSchema, LabelTierSchema, LawnMowerActivitySchema, LawnMowerControlStatusSchema, LinkedDeviceSchema, LinkedDevicesModeSchema, LlmDefaultSchema, LlmDefaultSelectorSchema, LlmErrorCodeSchema, LlmGenerateBaseInputSchema, LlmGenerateErrSchema, LlmGenerateOkSchema, LlmGenerateResultSchema, LlmImageSchema, LlmNodeModelSchema, LlmProfileKindDescriptorSchema, LlmProfileKindSchema, LlmProfileSchema, LlmRuntimeCompleteInputSchema, LlmRuntimeDiskUsageSchema, LlmRuntimeNodeSchema, LlmRuntimeStatusSchema, LlmUsageRollupSchema, LlmUsageSchema, LocateSegmentResultSchema, LocationStatSchema, LockControlStatusSchema, LockStateSchema, LogEntrySchema, LogLevelSchema, LogStreamEntrySchema, LoginMethodContributionSchema, LoginStageEnum, MACRO_LABELS, MAX_CONDITION_DEPTH, MAX_CONDITION_LEAVES, MAX_EXPRESSION_AST_NODES, MAX_EXPRESSION_BINDINGS, MAX_EXPRESSION_CALL_ARGS, MAX_EXPRESSION_EVAL_STEPS, MAX_EXPRESSION_SOURCE_LENGTH, METHOD_ACCESS_MAP, MODEL_FORMATS, MOTION_TRIGGER_FEATURE, ManagedModelCatalogEntrySchema, ManagedModelRefSchema, ManagedRuntimeConfigSchema, MaskGridDimsSchema, MaskGridShapeSchema, MaskLineShapeSchema, MaskPointSchema, MaskPolygonShapeSchema, MaskPolygonVerticesSchema, MaskRectShapeSchema, MaskShapeKindSchema, MaskShapeSchema, MediaFileInfoSchema, MediaFileSchema, MediaPlayerRepeatSchema, MediaPlayerStateSchema, MediaPlayerStatusSchema, MeshPeerSchema, MeshStatusSchema, MethodAccessSchema, ModelCatalogEntrySchema, ModelConvertInputSchema, ModelConvertMetadataSchema, ModelDistributeInputSchema, ModelDistributeResultSchema, ModelExtraFileSchema, ModelFormatEntrySchema, ModelFormatsSchema, ModelSubstitutionSchema, ModelVariantGroupSchema, MotionAnalysisResultSchema, MotionEventSchema, MotionOnMotionChangedDataSchema, MotionRegionSchema, MotionSourceEnum, MotionSourcesSchema, MotionStatusSchema, MotionTriggerRuntimeStateSchema, MotionTriggerStatusSchema, MotionZoneOptionsSchema, MotionZonePatchSchema, MotionZoneRegionSchema, MotionZoneStatusSchema, StatusSchema as MqttBrokerStatusSchema, MutationFilterSchema, NATIVE_LEASE_ACTIVITY_FIELD, NATIVE_LEASE_ACTIVITY_KEY, NATIVE_LEASE_ADMISSION_FIELD, NATIVE_LEASE_ADMISSION_KEY, NATIVE_LEASE_BUDGET_FIELD, NATIVE_LEASE_BUDGET_KEY, NATIVE_LEASE_HOLD_FIELD, NATIVE_LEASE_HOLD_KEY, NATIVE_LEASE_SECTION_ID, NATIVE_LEASE_TILE_BUDGET_FIELD, NATIVE_LEASE_TILE_BUDGET_KEY, NC_ALARM_SYSTEM_EVENT_KINDS, NC_AUDIO_DBFS_FLOOR, NC_AUTHORABLE_SYSTEM_EVENT_KINDS, NC_BASE_CONDITION_KEYS, NC_CONDITION_CATALOG, NC_CONFIRM_DEFAULT_MAX_IMAGE_PX, NC_CONFIRM_DEFAULT_TIMEOUT_MS, NC_CONFIRM_MAX_TIMEOUT_MS, NC_CONFIRM_MIN_TIMEOUT_MS, NC_HISTORY_LIMIT_DEFAULT, NC_HISTORY_LIMIT_MAX, NC_MAX_PER_TRACK_IMMEDIATE, NC_SNOOZE_MAX_MINUTES, NC_TAXONOMY, NativeCropBboxSchema, NativeCropRefSchema, NativeCropResultSchema, NativeDetectionSchema, NativeLeaseAdmissionSchema, NativeLeaseSettingsSchema, NativeObjectClassEnum, NativeObjectDetectionRuntimeStateSchema, NativeObjectDetectionStatusSchema, NcAlarmConfigSchema, NcAlarmModeCoverageSchema, NcAlarmSettingsPatchSchema, NcAlarmSettingsSchema, NcAlarmSkipReasonSchema, NcAlarmSkippedDeviceSchema, NcAudioConditionSchema, NcConditionDescriptorSchema, NcConditionsSchema, NcConfirmExpectSchema, NcConfirmSchema, NcCrossingSchema, NcDeliverySchema, NcDeviceStateConditionSchema, NcHistoryEntrySchema, NcHistoryFilterSchema, NcHistoryRecordKindSchema, NcHistoryStatusSchema, NcHistorySubjectSchema, NcMediaFrameSchema, NcMediaPolicySchema, NcOccupancyConditionSchema, NcPlateMatcherSchema, NcRuleActionSchema, NcRuleActionSequenceSchema, NcRuleActionsSchema, NcRuleInputSchema, NcRuleNotificationButtonSchema, NcRulePatchSchema, NcRuleSchema, NcRuleTargetSchema, NcScheduleSchema, NcScheduleWindowSchema, NcSnoozeInputSchema, NcSnoozeSchema, NcSnoozeScopeSchema, NcSnoozeSuppressedSchema, NcSystemEventConditionSchema, NcSystemEventKindSchema, NcTaxonomyEntrySchema, NcTaxonomySchema, NcTestResultSchema, NcThrottleGranularitySchema, NcThrottleSchema, NcZoneConditionSchema, NetworkAccessStatusSchema, NetworkAddressSchema, NetworkEndpointSchema, NotificationActionIconSchema, NotificationActionSchema, NotificationFormatSchema, NotificationSchema, NotifierStatusSchema, NumericSensorStatusSchema, OPS_LOG_DEFAULT_LIMIT, OPS_LOG_RING_DEFAULT_MAX, OauthIntegrationDescriptorSchema, ObjectEventSchema, OpsLogDomainSchema, OpsLogEntrySchema, OpsLogOpSchema, OpsLogQueryInputSchema, OpsLogReasonSchema, OrchestratorMetricsSchema, OsdOverlayKindEnum, OsdOverlayPatchSchema, OsdOverlaySchema, OsdPositionEnum, OsdRenderOutcomeEnum, OsdRenderResultSchema, OsdSlotBindingSchema, OsdSlotViewSchema, OsdSourceOptionSchema, OsdSourceSchema, OsdSourceValueTypeEnum, OsdStatusSchema, PET_FEEDER_MANUAL_FEED_MAX, PET_FEEDER_MANUAL_FEED_MIN, PIPELINE_FLOW_CAPABILITY_NAMES, PIPELINE_OWNER_CAPABILITY_NAMES, PRIVACY_MASK_CAP_NAME, PROVIDER_KIND_CAP_NAMES, PYTHON_SCRIPT, PackageUpdateSchema, PackageVersionInfoSchema, PasskeyLoginMethodSchema, PasskeySummarySchema, PcmSampleFormatSchema, PerScopeBreakdownSchema, PetFeederStatusSchema, PickStreamPreferencesSchema, PickStreamRequirementsSchema, PickedCamStreamSchema, PipelineAssignmentSchema, PipelineDefaultStepSchema, PipelineEngineChoiceSchema, PipelineRunResultBridge, PipelineStepInputSchema, PipelineValidationIssueSchema, PipelineValidationResultSchema, PlaceholderReasonSchema, PolygonPointSchema, PowerMeterStatusSchema, PresenceStatusSchema, PressureSensorStatusSchema, PrivacyMaskOptionsSchema, PrivacyMaskPatchSchema, PrivacyMaskRegionSchema, PrivacyMaskShapeSchema, PrivacyMaskStatusSchema, ProfileRtspEntrySchema, ProfileSlotSchema, ProfileSlotStatusSchema, ProviderStatusSchema, PtzAutotrackRuntimeStateSchema, PtzAutotrackSettingsSchema, PtzAutotrackStatusSchema, PtzAutotrackTargetOptionSchema, PtzMoveCommandSchema, PtzOptionsSchema, PtzPositionSchema, PtzPresetSchema, PtzStatusSchema, QueryFilterSchema, RATE_CONTROL_RELAXED, RATE_CONTROL_TIGHT, REACHABILITY_FAILURES_TO_OFFLINE, REACHABILITY_POLL_INTERVAL_MS, REACHABILITY_PROBE_TIMEOUT_MS, RECOGNITION_TYPES, RECORDING_EXPORT_MAX_READ_BYTES, RESERVED_BINDING_NAMES, RUNTIME_DEFAULTS, RUNTIME_TO_FORMAT, RawStateResultSchema, ReadGopBytesResultSchema, ReadSegmentBytesResultSchema, ReadinessRegistry, ReadinessTimeoutError, RecentTracksPageSchema, RecentTracksQueryInput, RecordingAvailabilitySchema, RecordingBandModeSchema, RecordingBandSchema, RecordingBandTriggersSchema, RecordingConfigSchema, RecordingDaysSchema, RecordingDeviceUsageSchema, RecordingLocationUsageSchema, RecordingManifestSchema, RecordingRangeSchema, RecordingRebalanceInputSchema, RecordingRebalanceMoveSchema, RecordingRebalancePlanSchema, RecordingRebalanceSkipReasonSchema, RecordingRebalanceSkipSchema, RecordingRetentionSchema, RecordingStatusSchema, RecordingStorageModeSchema, RecordingStorageUsageSchema, RecordingTriggersSchema, RecordingWeekdaySchema, RedirectLoginMethodSchema, RelocateFootageClassSchema, RelocateFootageInputSchema, RelocateJobSchema, RelocateJobStateSchema, RelocateMediaInputSchema, RenderedAsSchema, ReportMotionInputSchema, RetrainAnnotationDraftSchema, RetrainAnnotationKindSchema, RetrainAnnotationSchema, RetrainAnnotationSourceSchema, RetrainAssistResultSchema, RetrainAssistSubjectSchema, RetrainCopyRefusalSchema, RetrainFrameCandidateSchema, RetrainFrameListSchema, RetrainFrameSchema, RetrainFrameSelectionSchema, RetrainMacroClassSchema, RetrainStatusSchema, RetrainTrackSchema, RetrainTransitionResultSchema, RingBuffer, RtpSourceSchema, RtspRestreamEntrySchema, RunnerCameraConfigSchema, RunnerCameraDeviceUIFields, RunnerFrameSourceSchema, RunnerInferenceDeviceSchema, RunnerLocalLoadSchema, RunnerLocalMetricsSchema, SCOPE_PRESETS, SCRUB_THUMBNAIL_PRESETS, SCRUB_THUMBNAIL_PRESET_LABELS, SCRUB_THUMBNAIL_PRESET_ORDER, SENSOR_FEATURES, SENSOR_MAP, SOURCE_INFO_METADATA_KEY, STREAM_PROFILE_META, STREAM_QUALITY_LABELS, SUB_DETECTION_TYPES, SYSTEM_CAP_NAMES, SceneCheckSchema, SceneConditionSchema, SceneMonitorSchema, SceneMonitorStateSchema, SceneMonitorStatusSchema, SceneReferenceSchema, ScopedTokenSchema, ScopedTokenSummarySchema, ScoredObjectEventSchema, ScriptRunnerStatusSchema, ScrubThumbnailPresetSchema, SearchResultSchema, SendEmailInputSchema, SendEmailResultSchema, SendResultSchema, SensorEventSchema, ServerBootModeSchema, ServerPackageStatusSchema, ServerRollbackInfoSchema, ServerUpdateActionResultSchema, ServerUpdateCheckResultSchema, ServerUpdateStateSchema, SettingsPatchSchema, SettingsRecordSchema, SettingsSchemaWithValuesSchema, SettingsUpdateResultSchema, ShmRingStatsSchema, SmokeStatusSchema, SmtpStatusSchema, SnapshotImageSchema, SourceInfoSchema, SpatialDetectionSchema, SsoBridgeClaimsSchema, StartEmbeddedInputSchema, StationaryObjectSchema, AbortUploadInputSchema as StorageAbortUploadInputSchema, BeginDownloadInputSchema as StorageBeginDownloadInputSchema, BeginDownloadResultSchema as StorageBeginDownloadResultSchema, BeginUploadInputSchema as StorageBeginUploadInputSchema, BeginUploadResultSchema as StorageBeginUploadResultSchema, EndDownloadInputSchema as StorageEndDownloadInputSchema, FinalizeUploadInputSchema as StorageFinalizeUploadInputSchema, StorageLocationDeclarationSchema, StorageLocationRefSchema, StorageLocationSchema, StorageLocationTypeSchema, StorageMigrationClassSchema, StorageMigrationDestinationsSchema, StorageMigrationFootageMoveInputSchema, StorageMigrationInputSchema, StorageMigrationJobSchema, StorageMigrationLeaseInputSchema, StorageMigrationMediaMoveInputSchema, StorageMigrationMoveSchema, StorageMigrationParticipantSchema, StorageMigrationPhaseSchema, StorageMigrationPlanSchema, ProviderInfoSchema as StorageProviderInfoSchema, ReadChunkInputSchema as StorageReadChunkInputSchema, TestLocationResultSchema as StorageTestLocationResultSchema, WriteChunkInputSchema as StorageWriteChunkInputSchema, StreamCodecSchema, StreamFormatSchema, StreamNetworkStatsSchema, StreamParamsOptionsSchema, StreamParamsStatusSchema, StreamProfileConfigSchema, StreamProfileOptionsSchema, StreamProfilePatchSchema, StreamProfileSchema, StreamSourceEntrySchema, StreamSourceSchema, SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, SubscribeFramesInputSchema, SubscribeFramesResultSchema, SwitchStatusSchema, SystemMetricsSchema, SystemMirror, TAXONOMY_COLORS, TIMELAPSE_DENSE_FLOOR_SEC, TIMEZONES, TRANSCODE_DOWN_MAX_BITRATE_KBPS, TRANSCODE_DOWN_MAX_HEIGHT, TamperStatusSchema, TankStatusSchema, TargetKindCapsSchema, TargetKindLevelSchema, TargetKindSchema, TargetSchema, TemperatureSensorStatusSchema, TerminalInstanceInfoSchema, TerminalLegacyCameraSchema, TerminalOutputBatchSchema, TerminalOutputEventSchema, TerminalProfileInfoSchema, TerminalSessionInfoSchema, TestConnectionResultSchema$1 as TestConnectionResultSchema, TestConnectionStatusEnum, TestResultSchema, TimelapseRuleInputSchema, TimelapseRulePatchSchema, TimelapseRuleSchema, TimelapseTemplateSchema, ToastSchema, TokenScopeSchema, TopologyNodeSchema, TopologyProcessSchema, TopologyServiceSchema, TrackCascadeCountsSchema, TrackEnvelopeSchema, TrackFlagsPatchSchema, TrackFlagsSchema, TrackProjectionSchema, TrackSchema, TrackSourceSchema, TrackStateSchema, TrackZoneFilterSchema, TrackedDetectionSchema, TrainingExportDeviceTotalsSchema, TrainingExportSummarySchema, TurnServerSchema, UNIT_TABLE, BrokerInfoSchema$1 as UnifiedBrokerInfoSchema, UnitConversionError, UpdateIntegrationInputSchema, UpdateStatusSchema, UpdateUserInputSchema, UserRecordSchema, UserSummarySchema, VacuumControlStatusSchema, VacuumStateSchema, ValveStateSchema, ValveStatusSchema, VectorDeclareIndexInputSchema, VectorDeleteByFilterInputSchema, VectorDeleteInputSchema, VectorDeleteResultSchema, VectorFilterSchema, VectorGetInputSchema, VectorGetResultSchema, VectorItemSchema, VectorMatchSchema, VectorMetadataSchema, VectorMetricSchema, VectorQueryInputSchema, VectorQueryResultSchema, VectorStatsInputSchema, VectorStatsResultSchema, VectorUpsertInputSchema, VectorUpsertResultSchema, VibrationStatusSchema, VideoEncodeSchema, WEBRTC_EGRESS_PROFILE, WELL_KNOWN_TABS, WELL_KNOWN_TAB_MAP, WaterHeaterStatusSchema, WeatherStatusSchema, WebrtcStreamChoiceSchema, WebrtcStreamTargetSchema, WhiteBalanceModeSchema, WidgetHostEnum, WidgetLoginMethodSchema, WidgetMetadataSchema, WidgetRemoteSchema, WidgetSizeEnum, YAMNET_TO_MACRO, ZoneCrossingDirectionSchema, ZoneCrossingSchema, ZoneKindEnum, ZoneRuleModeEnum, ZoneRuleSchema, ZoneRuleStageEnum, ZoneRulesArraySchema, ZoneSchema, ZoneScopeBreakdownSchema, accessoriesCapability, accessoryStableId, addonPagesCapability, addonPagesSourceCapability, addonRoutesCapability, addonSettingsCapability, addonWidgetsCapability, addonWidgetsSourceCapability, addonsCapability, adminUiCapability, airQualitySensorCapability, alarmPanelCapability, alertsCapability, ambientLightSensorCapability, asBoolean, asJsonArray, asJsonObject, asNumber, asString, assertTimelapseCadences, audioAnalysisCapability, audioAnalyzerCapability, audioCodecCapability, audioMetricsCapability, audioPlanFromEncodeProfile, authProviderCapability, autoAssignProfiles, automationControlCapability, backupCapability, bareAddonId, batteryCapability, bestLocationMatch, binaryCapability, bindAddonActions, brightnessCapability, brokerCapability, buildAddonRouteProvider, buildAudioArgs, buildEventKindDescriptor, buildFfmpegArgs, buildInputArgs, buildModelVariantGroups, buildNcTaxonomy, buildStreamParamsConfigSchema, buildVideoArgs, buttonCapability, cameraCredentialsCapability, cameraPipelineConfigCapability, cameraStreamsCapability, canConvertUnit, canonicalEgressPlan, carbonMonoxideCapability, cellsToRects, classifyBearerPrincipal, classifyStream, classifyStreams, climateControlCapability, collectHydratedFieldEntries, collectHydratedFieldValues, colorCapability, colorForKind, compileExpression, compileExpressionSafe, composeSwitchedOff, conditionDepth, connectionTestCapability, connectivityCapability, consumablesCapability, contactCapability, controlCapability, convertUnit, coreBlockAddonId, coreBlockIdFromAddonId, coreBlocksCapability, cosineSimilarity, countConditionLeaves, coverCapability, createDeviceProxy, createDurableState, createEvent, createExpressionScope, createHwAccelCache, createLazyTrpcSource, createMirrorSource, createRuntimeStateBridge, createSliceHandle, createSystemProxy, customAction, customModelRegistryCapability, dataStoreProviderCapability, dayNightCapability, declarationOwnerNodeId, decodeVectorBase64, decoderCapability, defaultDeviceFor, defineCustomActions, deriveCameraSwitches, deriveDetailCropRect, deriveRecordingMode, describeModelVariant, detectionPipelineCapability, deviceAdoptionCapability, deviceBackendToFormat, deviceCustomAction, deviceDiscoveryCapability, deviceExportCapability, deviceManagerCapability, deviceMatchesProfile, deviceOpsCapability, deviceProviderCapability, deviceStateCapability, deviceStatusCapability, doorbellCapability, egressTranscodeSharingKey, egressTransportFromRequest, embeddingEncoderCapability, emitDownForOwnedCaps, emitReadiness, encodeProfileFromStreamShape, encodeVectorBase64, enumSensorCapability, enumerateInferenceDevices, enumerateItemArrayFields, enumerateSchemaFields, errMsg, evaluateAst, evaluateExpressionSource, evaluateZoneRules, event, eventEmitterCapability, eventsCapability, expandCapMethods, extractNestedAddonId, extractSourceInfoFromMetadata, faceGalleryCapability, fanControlCapability, featureProbeCapability, filesystemBrowseCapability, findTimezone, floodCapability, formatForBackend, formatForRuntime, gasCapability, generateAutomationBlock, getAudioMacroClassIds, getByPath, getCapsByProviderKind, getTaxonomyEntry, hasMotionTrigger, hfModelUrl, htmlToText, humidifierCapability, humiditySensorCapability, hydrateSchema, imageCapability, imageSettingsCapability, integrationsCapability, intercomCapability, invocationFromEncodeProfile, isAgentOnlyPlacement, isArrayOutputSchema, isBaseConditionKey, isCollectionArrayMethod, isDeployableToAgent, isDeviceConfigCap, isDeviceScopedCap, isEvent, isIsolatedBuiltin, isNode, isObjectInput, isSameAddonId, isScheduleActive, isSoftwareDecode, isVoidInput, jobKindSchema, kebabToCamel, knownValues, lawnMowerControlCapability, lifecycleJobSchema, lifecycleJobScopeSchema, lifecycleJobStateSchema, lifecycleTaskSchema, llmCapability, llmRuntimeCapability, localNetworkCapability, locationSimilarity, lockControlCapability, logBannerArgs, logDestinationCapability, logLevelAtMost, loginMethodCapability, looseSchema, makeProfileBrokerId, makeSourceBrokerId, mapAudioLabelToMacro, markdownToHtmlLite, markdownToText, maskUrlCredentials, mediaPlayerCapability, mergeSourceInfo, meshNetworkCapability, method, methodAccessForHttpMethod, metricsProviderCapability, modelConvertCapability, modelDistributorCapability, modelFormatForRuntime, motionCapability, motionDetectionCapability, motionTriggerCapability, motionZonesCapability, mqttBrokerCapability, nativeObjectDetectionCapability, networkAccessCapability, networkQualityCapability, nodePin, nodesCapability, normalizeAddonInitResult, normalizeUnit, notificationOutputCapability, notificationRulesCapability, notifierCapability, numericSensorCapability, oauthIntegrationCapability, objectInputDeclaresAddonId, osdCapability, osdManagerCapability, parseCameraStreamConfig, parseExpression, parseJsonArray, parseJsonObject, parseJsonUnknown, parseProfileBrokerId, parseStreamParamsFormPatch, petFeederCapability, pickAccessoryControl, pickDetailCropConvention, pickNativeLeaseOverride, pickPreferredRtspEntry, pickVideoEncoder, pickerForCondition, pipelineAnalyticsCapability, pipelineExecutorCapability, pipelineOrchestratorCapability, pipelineRunnerCapability, plateGalleryCapability, platformProbeCapability, powerMeterCapability, prepareNotification, presenceCapability, pressureSensorCapability, principalMayReachAddon, privacyMaskCapability, procedureAuthKey, ptzAutotrackCapability, ptzCapability, pythonScriptForBackend, readDetailCropConvention, readDeviceStateFrom, readNativeLeaseOverride, readNodePin, readTimelapseGeneratedAt, readinessKey, rebootCapability, recordingCapability, recordingExportCapability, rectsToCells, requiresPython, resolveAddonExecution, resolveAddonGroup, resolveAddonPlacement, resolveAddonRuntime, resolveCapMount, resolveDetectionRuntime, resolveDeviceControlKind, resolveDeviceProfile, resolveEgressDecodeHwAccel, resolveFormat, resolveHydratedFieldValue, resolveModelFormat, resolveMutate, resolveRunnerId, resolveScrubThumbnailGeometry, resolveVariantModelId, runInferenceStep, runtimeDevices, sceneMonitorCapability, scopeKey, scopesAllowAddon, scopesAllowDeviceCap, scoreRuntimes, scriptRunnerCapability, selectAssignedProfileSlots, serverManagementCapability, setByPath, settingsStoreCapability, sleep, sleepCancellable, smokeCapability, smtpProviderCapability, snapshotCapability, ssoBridgeCapability, startReachabilityPoll, stateVocabularyFor, storageCapability, storageEvictableCapability, storageMigrationCapability, storageProviderCapability, streamBrokerCapability, streamCatalogCapability, streamParamsCapability, streamPixels, streamQualityLabel, subKindsOf, summarisePrivacyAudio, supportedRuntimes, switchCapability, switchedOffIds, synthesizeSourceInfo, systemCapability, tamperCapability, taskLogEntrySchema, taskPhaseSchema, taskTargetSchema, temperatureSensorCapability, terminalSessionCapability, textToHtml, toDeviceSummary, toExpressionValue, toNodeId, toStreamSourceEntry, toastCapability, tokenize, transcodeBody, tryConvertUnit, turnProviderCapability, unitDimension, unitsForDimension, updateCapability, userManagementCapability, userPasskeysCapability, vacuumControlCapability, validateExpressionSource, validateRecipeBounds, valveCapability, vectorDimFromBase64, vectorStoreCapability, vibrationCapability, videoclipsCapability, viewerUiCapability, waterHeaterCapability, weatherCapability, webrtcClientHintsSchema, webrtcSessionCapability, wiringAddonHealthSchema, wiringHealthSnapshotSchema, wiringNodeHealthSchema, wiringProbeKindSchema, wiringProbeResultSchema, zodEntriesToConfigUI, zoneAnalyticsCapability, zoneRulesCapability, zonesCapability };