@camstack/server 1.2.823 → 1.2.825

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.
Files changed (104) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/api/trpc/generated-cap-routers.js +0 -45
  3. package/package.json +10 -10
  4. package/system/dist/addon-runner.js +24 -2
  5. package/system/dist/addon-runner.mjs +25 -3
  6. package/system/dist/addon-utils.d.ts +1 -0
  7. package/system/dist/addon-utils.js +2 -0
  8. package/system/dist/addon-utils.mjs +3 -2
  9. package/system/dist/{agent-https-Df53Fvk1.js → agent-https-B2nqARmj.js} +1 -1
  10. package/system/dist/{agent-https-CDl7mB_F.mjs → agent-https-BBO2OtNH.mjs} +1 -1
  11. package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
  12. package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +4 -4
  13. package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
  14. package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +5 -5
  15. package/system/dist/builtins/alerts/alerts.addon.js +1 -1
  16. package/system/dist/builtins/alerts/alerts.addon.mjs +3 -3
  17. package/system/dist/builtins/autotrack/index.js +1 -1
  18. package/system/dist/builtins/autotrack/index.mjs +1 -1
  19. package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
  20. package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +5 -5
  21. package/system/dist/builtins/calendars/calendars.addon.js +1 -1
  22. package/system/dist/builtins/calendars/calendars.addon.mjs +1 -1
  23. package/system/dist/builtins/camera-grid/index.js +1 -1
  24. package/system/dist/builtins/camera-grid/index.mjs +1 -1
  25. package/system/dist/builtins/composer/composer.addon.js +4 -4
  26. package/system/dist/builtins/composer/composer.addon.mjs +4 -4
  27. package/system/dist/builtins/console-logging/index.js +1 -1
  28. package/system/dist/builtins/console-logging/index.mjs +1 -1
  29. package/system/dist/builtins/core-blocks/actions-service.d.ts +8 -0
  30. package/system/dist/builtins/core-blocks/core-blocks.addon.js +78 -22
  31. package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +79 -23
  32. package/system/dist/builtins/core-blocks/record-kinds.d.ts +1 -0
  33. package/system/dist/builtins/device-history/device-history.addon.js +2 -2
  34. package/system/dist/builtins/device-history/device-history.addon.mjs +2 -2
  35. package/system/dist/builtins/device-manager/device-manager.addon.js +8 -3
  36. package/system/dist/builtins/device-manager/device-manager.addon.mjs +8 -3
  37. package/system/dist/builtins/hub-forwarder/index.js +1 -1
  38. package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
  39. package/system/dist/builtins/keychain/index.js +4 -4
  40. package/system/dist/builtins/keychain/index.mjs +4 -4
  41. package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
  42. package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
  43. package/system/dist/builtins/local-auth/local-auth.addon.js +2 -2
  44. package/system/dist/builtins/local-auth/local-auth.addon.mjs +5 -5
  45. package/system/dist/builtins/local-network/local-network.addon.js +2 -2
  46. package/system/dist/builtins/local-network/local-network.addon.mjs +2 -2
  47. package/system/dist/builtins/loki-logging/index.js +1 -1
  48. package/system/dist/builtins/loki-logging/index.mjs +1 -1
  49. package/system/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
  50. package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +10 -10
  51. package/system/dist/builtins/platform-probe/index.js +1 -1
  52. package/system/dist/builtins/platform-probe/index.mjs +10 -10
  53. package/system/dist/builtins/record-entries/index.js +1 -1
  54. package/system/dist/builtins/record-entries/index.mjs +1 -1
  55. package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
  56. package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
  57. package/system/dist/builtins/snapshot/index.js +1 -1
  58. package/system/dist/builtins/snapshot/index.mjs +1 -1
  59. package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
  60. package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +20 -20
  61. package/system/dist/builtins/sqlite-storage/index.js +1 -1
  62. package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
  63. package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +3 -3
  64. package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +3 -3
  65. package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
  66. package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
  67. package/system/dist/builtins/system-config/system-config.addon.js +3 -3
  68. package/system/dist/builtins/system-config/system-config.addon.mjs +115 -115
  69. package/system/dist/builtins/winston-logging/index.js +1 -1
  70. package/system/dist/builtins/winston-logging/index.mjs +1 -1
  71. package/system/dist/cap-call-scope-8eiugfLl.js +46 -0
  72. package/system/dist/cap-call-scope-Bic6Ekfw.mjs +30 -0
  73. package/system/dist/{capture-engine-D_GQBgrZ.mjs → capture-engine-C-rHYVFq.mjs} +1 -1
  74. package/system/dist/{capture-engine-C0Z5rwCO.js → capture-engine-DP4HbT3W.js} +1 -1
  75. package/system/dist/{composition-sources-mx-2yCDv.mjs → composition-sources-CL9JFN4y.mjs} +1 -1
  76. package/system/dist/{composition-sources-DIZx3mW3.js → composition-sources-CM9c_jAj.js} +1 -1
  77. package/system/dist/{constants-BQlx9HDp.mjs → constants-DzGFnCKZ.mjs} +1 -1
  78. package/system/dist/{constants-CAOcKiWT.js → constants-jk7JccZ0.js} +1 -1
  79. package/system/dist/{coral-accelerators-BW3OcrLD.mjs → coral-accelerators-DBlgWB8k.mjs} +6 -6
  80. package/system/dist/{custom-action-registry-N7flBDwT.mjs → custom-action-registry-B9zFBNVa.mjs} +37 -37
  81. package/system/dist/{device-ca-93LsCF_Q.js → device-ca-B7_R5WJh.js} +1 -1
  82. package/system/dist/{device-ca-CK6GTnNh.mjs → device-ca-DZ_OQiCc.mjs} +1 -1
  83. package/system/dist/{dist-BQiyo22b.mjs → dist-BgRMQHuL.mjs} +97 -160
  84. package/system/dist/{dist-izXDzt4g.js → dist-BpTL3uNe.js} +108 -159
  85. package/system/dist/file-host-worker.js +1 -1
  86. package/system/dist/file-host-worker.mjs +1 -1
  87. package/system/dist/{hub-mdns-ciao-srpOrqIP.mjs → hub-mdns-ciao-DIcBingB.mjs} +2 -2
  88. package/system/dist/{hub-mdns-ciao-Dt_tgvol.js → hub-mdns-ciao-DPUaYAD3.js} +2 -2
  89. package/system/dist/index.d.ts +1 -0
  90. package/system/dist/index.js +47 -29
  91. package/system/dist/index.mjs +257 -242
  92. package/system/dist/kernel/cap-call-scope.d.ts +10 -0
  93. package/system/dist/kernel/transport/cap-route-resolver.d.ts +27 -1
  94. package/system/dist/kernel/transport/child-cap-protocol.d.ts +1 -1
  95. package/system/dist/kernel/transport/parent-unowned-call.d.ts +0 -11
  96. package/system/dist/{legacy-integration-rows-door-wu2GWY6U.mjs → legacy-integration-rows-door-1GnkpMgH.mjs} +1 -1
  97. package/system/dist/{legacy-integration-rows-door-BH43eDu6.js → legacy-integration-rows-door-DYNePgj4.js} +1 -1
  98. package/system/dist/{rename-composition-block-CH6ZoSJA.mjs → rename-composition-block-Cp0_nwAI.mjs} +1 -1
  99. package/system/dist/{rename-composition-block-6oLQVzft.js → rename-composition-block-Dn2z4fnA.js} +1 -1
  100. package/system/dist/{restore-archive-C4rR2SYV.mjs → restore-archive-B3FEpUfz.mjs} +94 -94
  101. package/system/dist/{restore-archive-DpZ2PbLN.js → restore-archive-BGa5pdp9.js} +1 -1
  102. package/system/dist/{wal-maintenance-CNfp0HHX.mjs → wal-maintenance-BLWLlVfF.mjs} +0 -0
  103. package/system/dist/{wal-maintenance-DAA2qJja.js → wal-maintenance-GWFxnSnE.js} +0 -0
  104. package/system/package.json +1 -1
@@ -1221,7 +1221,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
1221
1221
  */
1222
1222
  var COMPOSED_DEVICE_STABLE_ID_PREFIX = "composed-";
1223
1223
  //#endregion
1224
- //#region ../types/dist/sleep-B36hHDDz.mjs
1224
+ //#region ../types/dist/sleep-VrfKAAGN.mjs
1225
1225
  /**
1226
1226
  * The audio chunk plane's byte format, and the ONE expansion from a coded
1227
1227
  * window to float samples (D455).
@@ -5567,15 +5567,58 @@ function assertTransactScope(members) {
5567
5567
  if (missing.length > 0) throw new TransactRefusedError(`no-family: ${missing.map((m) => m.kind).join(", ")} declare no transactFamily; kinds that must agree through transact share one`);
5568
5568
  if (new Set(kinds.map((m) => m.declaration.transactFamily)).size > 1) throw new TransactRefusedError(`cross-family: the ops span more than one transactFamily (${kinds.map((m) => `${m.kind}=${String(m.declaration.transactFamily)}`).join(", ")})`);
5569
5569
  }
5570
- z.discriminatedUnion("kind", [z.object({
5571
- kind: z.literal("action"),
5572
- actionId: z.string(),
5573
- runId: z.string(),
5574
- automationId: z.string().optional()
5575
- }), z.object({
5576
- kind: z.literal("scheduler"),
5577
- schedulerId: z.string()
5578
- })]);
5570
+ /**
5571
+ * The match a notification rule fired on (D705). Carried as a command origin so an
5572
+ * Action the rule starts can press `alarm-panel.trigger` as that match, not as an
5573
+ * anonymous press (D735). The same fields a rule fire ref freezes.
5574
+ */
5575
+ var RuleFireOriginSchema = z.object({
5576
+ ruleId: z.string(),
5577
+ ruleName: z.string(),
5578
+ deviceId: z.number().int(),
5579
+ sourceDeviceId: z.number().int().optional(),
5580
+ recordId: z.string(),
5581
+ timestamp: z.number(),
5582
+ trackId: z.string().optional(),
5583
+ eventId: z.string().optional(),
5584
+ className: z.string().optional(),
5585
+ label: z.string().optional(),
5586
+ zones: z.array(z.string()).optional(),
5587
+ confidence: z.number().optional(),
5588
+ sensorChange: z.object({
5589
+ name: z.string(),
5590
+ kind: z.string(),
5591
+ state: z.string()
5592
+ }).optional(),
5593
+ extraStills: z.array(z.object({
5594
+ ownerId: z.string(),
5595
+ cameraId: z.number().int()
5596
+ })).optional()
5597
+ });
5598
+ z.discriminatedUnion("kind", [
5599
+ z.object({
5600
+ kind: z.literal("action"),
5601
+ actionId: z.string(),
5602
+ runId: z.string(),
5603
+ automationId: z.string().optional(),
5604
+ /** The rule fire that started this run, when one did (D705). */
5605
+ ruleFire: RuleFireOriginSchema.optional()
5606
+ }),
5607
+ z.object({
5608
+ kind: z.literal("scheduler"),
5609
+ schedulerId: z.string()
5610
+ }),
5611
+ z.object({
5612
+ kind: z.literal("rule"),
5613
+ fire: RuleFireOriginSchema
5614
+ })
5615
+ ]);
5616
+ /** The rule fire a claim carries, if it carries one. */
5617
+ function ruleFireOfClaim(claim) {
5618
+ if (claim === void 0) return void 0;
5619
+ if (claim.kind === "rule") return claim.fire;
5620
+ if (claim.kind === "action") return claim.ruleFire;
5621
+ }
5579
5622
  /**
5580
5623
  * One recorded device transition (D1022): a status field of a device went from
5581
5624
  * one value to another, with who or what asked for it.
@@ -43765,30 +43808,21 @@ function convertLegacyWhen(half) {
43765
43808
  * (instants) and state leaves (durations). It replaces the flat trigger list
43766
43809
  * plus the separate condition tree; the firing rule is in that file and in
43767
43810
  * ADR "one tree".
43768
- * - **Actions** — `NcRuleActionSchema`'s two steps, plus the `{kind:'code'}`
43769
- * fragment of §3.2.2. See {@link AutomationActionSchema} for the ONE place
43770
- * this had to diverge from "verbatim", and why.
43811
+ * - **Actions** — the `wait` and `cap` steps, plus the `{kind:'code'}`
43812
+ * fragment of §3.2.2. See {@link AutomationActionSchema}.
43771
43813
  *
43772
43814
  * A recipe stored in the old shape (`triggers` + `conditions`) still LOADS:
43773
43815
  * {@link AutomationRecipeSchema} (the parse-anywhere schema) converts it on parse. Nothing writes it.
43774
43816
  */
43775
43817
  /**
43776
- * One action step.
43818
+ * One action step: `wait`, or a `cap` call.
43777
43819
  *
43778
- * `wait` and `cap` are `NcRuleActionSchema`'s two members, kept structurally
43779
- * identical so `NcRuleActionRunner` runs them unchanged — its device-scope
43780
- * check, stop-at-first-failure and per-sequence throttle are the whole reason
43781
- * to reuse it, and none of them are re-implemented here.
43782
- *
43783
- * **The one divergence, and it is forced.** `NcRuleActionSchema.cap.deviceId` is
43784
- * a literal `z.number().int()`, and the NC runner's own `RunSequencesInput`
43785
- * documents its subject device as *"for the log tag, never for routing"*. So an
43786
- * NC action can never target the device that triggered it — which is fine for
43787
- * the NC (its rules already scope to a device) and fatal for an automation
43788
- * ("sound the siren of the camera that saw the person"). `deviceId` therefore
43789
- * also accepts `{ $var }`, resolved from the run's `vars` bag BEFORE the runner
43790
- * is called. The runner still receives a number and is untouched; the
43791
- * resolution is the recipe's job, not the runner's.
43820
+ * A cap step's target is who it acts on (D983: `devices`, a `domain`, or a
43821
+ * `{ $var }` resolved from the run's variables); the legacy `deviceId` is still
43822
+ * READ, never written. The step runner (`runSteps`) owns the device-scope
43823
+ * check, the stop-at-first-failure and the variable substitution, once, for
43824
+ * every caller — automations, Actions, and the notification centre, which runs
43825
+ * only Actions (planning#473).
43792
43826
  */
43793
43827
  var AutomationWaitStepSchema = z.object({
43794
43828
  kind: z.literal("wait"),
@@ -45118,6 +45152,8 @@ var IDLE_ACTION_STATUS = {
45118
45152
  lastRunAt: null,
45119
45153
  lastError: null
45120
45154
  };
45155
+ /** The throttle window of an action, in seconds; absent or 0 = no throttle. */
45156
+ var ActionMinDelaySecSchema = z.number().int().min(0).max(86400);
45121
45157
  var ActionEntrySchema = z.object({
45122
45158
  /** `internal:<uuid>` or `<addonId>:<localId>`. */
45123
45159
  id: z.string().min(3),
@@ -45130,6 +45166,14 @@ var ActionEntrySchema = z.object({
45130
45166
  /** Internal only: cap and wait steps. No action-in-action, so no cycles. */
45131
45167
  steps: z.array(ActionStepSchema).min(1).max(50).optional(),
45132
45168
  variables: z.array(ActionVariableSchema).max(20).optional(),
45169
+ /**
45170
+ * Internal only: the least time between two run STARTS. A run that begins
45171
+ * inside the window is skipped (`skipped-cooldown`), traced and logged. It
45172
+ * is an actuator's budget — "how often may this gate physically open" —
45173
+ * not a notification cooldown, and it is shared by every caller of the
45174
+ * action (two rules, a button, an automation).
45175
+ */
45176
+ minDelaySec: ActionMinDelaySecSchema.optional(),
45133
45177
  status: ActionStatusSchema
45134
45178
  }).superRefine((entry, ctx) => {
45135
45179
  if (entry.source === "internal") {
@@ -45160,7 +45204,8 @@ var ActionEntrySchema = z.object({
45160
45204
  var ActionInputSchema = z.object({
45161
45205
  name: z.string().min(1).max(120),
45162
45206
  steps: z.array(ActionStepSchema).min(1).max(50),
45163
- variables: z.array(ActionVariableSchema).max(20).optional()
45207
+ variables: z.array(ActionVariableSchema).max(20).optional(),
45208
+ minDelaySec: ActionMinDelaySecSchema.optional()
45164
45209
  });
45165
45210
  /** Who started a run. Absent = the operator pressed it. */
45166
45211
  var ActionRunOriginSchema = z.object({
@@ -78615,101 +78660,21 @@ var NcZoneConditionSchema = z.object({
78615
78660
  * membership lists are OR within the list (spec §2.3).
78616
78661
  */
78617
78662
  /**
78618
- * What a rule may actuate.
78619
- *
78620
- * **No hand-maintained allowlist** (operator decision, and the right one — a
78621
- * written list of methods is a third parallel map to keep aligned, and this
78622
- * repo has paid for those). The boundary instead comes from a property the
78623
- * capabilities already carry: an action may target only a **device-scoped**
78624
- * capability method.
78625
- *
78626
- * That is not decoration. A rule can be authored by a NON-ADMIN — personal
78627
- * rules are a supported flow — and the executor runs with the addon's
78628
- * privileges, so an unbounded action is an arbitrary RPC channel with a
78629
- * privilege escalation attached. Restricting to device scope excludes the
78630
- * system caps (`device-manager.removeDevice` and friends) by construction,
78631
- * costs nothing to maintain, and cannot rot: a cap that stops being
78632
- * device-scoped stops being actuatable in the same change.
78663
+ * What a rule or a button runs: an **Action** of the `actions` surface
78664
+ * (`internal:<uuid>` or an addon's), by id, and nothing else (planning#473).
78633
78665
  *
78634
- * The executor enforces it; {@link NcRuleActionSchema} carries the intent.
78666
+ * The notification centre has no step vocabulary of its own. The steps, the
78667
+ * device-scope boundary, the stop-at-first-failure, the throttle
78668
+ * (`minDelaySec`), the variables and the runs ledger all belong to the Action;
78669
+ * an operator edits them in ONE place (the Actions page) and a rule points at
78670
+ * the result. A rule can be authored by a non-admin (personal rules), which is
78671
+ * safe for the same reason: it can only name an Action an admin already wrote.
78635
78672
  */
78673
+ var NcActionIdSchema = z.string().min(1);
78674
+ /** Action ids one hook edge runs, in order. Capped so a slot never becomes a second editor. */
78675
+ var NcHookActionIdsSchema = z.array(NcActionIdSchema).max(4);
78636
78676
  /**
78637
- * One step of a sequence.
78638
- *
78639
- * `wait` is a first-class step rather than a property of the next action: it is
78640
- * what makes a sequence a SEQUENCE and not a list — "unlock, wait 5s, open"
78641
- * cannot be expressed otherwise.
78642
- */
78643
- var NcRuleActionSchema = z.discriminatedUnion("kind", [z.object({
78644
- kind: z.literal("wait"),
78645
- seconds: z.number().min(0).max(300)
78646
- }), z.object({
78647
- kind: z.literal("cap"),
78648
- /**
78649
- * WHO the step acts on (D983) — the only shape that is written. A sequence
78650
- * stored before D983 carries `deviceId`; the sequence store reads it as a
78651
- * `devices` target.
78652
- */
78653
- target: ActionTargetSchema.optional(),
78654
- /** The vocabulary action the step performs; required for a `domain` target. */
78655
- actionId: z.string().min(1).optional(),
78656
- /** @deprecated The pre-D983 single device. Read, never written. */
78657
- deviceId: z.number().int().optional(),
78658
- /** Capability name, e.g. `alarm-panel`. */
78659
- cap: z.string().min(1),
78660
- /** Method on it. The executor refuses a non-device-scoped cap. */
78661
- method: z.string().min(1),
78662
- /** Method arguments, minus `deviceId` (the executor injects it). */
78663
- args: z.record(z.string(), z.unknown()).optional()
78664
- }).refine((step) => step.target !== void 0 || step.deviceId !== void 0, {
78665
- message: "a cap step needs a target",
78666
- path: ["target"]
78667
- }).refine((step) => step.target?.kind !== "domain" || step.actionId !== void 0, {
78668
- message: "a domain target needs the vocabulary action it applies to (actionId)",
78669
- path: ["actionId"]
78670
- })]);
78671
- /**
78672
- * A named, ordered run of steps shared across rules, with its own throttle.
78673
- *
78674
- * Sequences live in the notification centre's sequence store — never inline on
78675
- * a rule. A rule binds to one by id ({@link NcActionBindingSchema}), and a
78676
- * button names one the same way. `minDelaySec` exists because a noisy rule
78677
- * otherwise hammers a physical actuator — the rule's own cooldown governs
78678
- * NOTIFICATIONS, which is a different budget from "how often may this gate
78679
- * actually open". The throttle key is the sequence id, so two rules sharing
78680
- * one sequence share its budget.
78681
- */
78682
- var NcSharedSequenceSchema = z.object({
78683
- id: z.string().min(1),
78684
- name: z.string().min(1).max(120),
78685
- minDelaySec: z.number().int().min(0).max(86400).optional(),
78686
- actions: z.array(NcRuleActionSchema).min(1)
78687
- });
78688
- /** Create / update body — the id is minted by the provider. */
78689
- var NcSharedSequenceInputSchema = z.object({
78690
- name: z.string().min(1).max(120),
78691
- minDelaySec: z.number().int().min(0).max(86400).optional(),
78692
- actions: z.array(NcRuleActionSchema).min(1)
78693
- });
78694
- /**
78695
- * What one hook slot may run: a shared sequence, or a single step authored
78696
- * inline ("Do").
78697
- *
78698
- * A button may ONLY name a sequence — a one-shot Do on a public callback would
78699
- * be a parallel actuation vocabulary with no throttle and no shared authoring
78700
- * surface.
78701
- */
78702
- var NcActionBindingSchema = z.discriminatedUnion("kind", [z.object({
78703
- kind: z.literal("sequence"),
78704
- sequenceId: z.string().min(1)
78705
- }), z.object({
78706
- kind: z.literal("do"),
78707
- action: NcRuleActionSchema
78708
- })]);
78709
- /** Bindings on one hook edge. Cap keeps a slot from becoming a second sequence editor. */
78710
- var NcHookBindingsSchema = z.array(NcActionBindingSchema).max(4);
78711
- /**
78712
- * One button carried by the notification, running a shared sequence on tap.
78677
+ * One button carried by the notification, running an Action on tap.
78713
78678
  *
78714
78679
  * **Read this before adding a button that does something physical.** The tap
78715
78680
  * arrives over a link that travelled through third-party infrastructure — ntfy,
@@ -78724,9 +78689,9 @@ var NcRuleNotificationButtonSchema = z.object({
78724
78689
  /** Stable id — travels in the callback and identifies the button in logs. */
78725
78690
  id: z.string().min(1).max(64),
78726
78691
  label: z.string().min(1).max(40),
78727
- /** Id of a shared sequence. The dispatcher drops a button whose sequence
78728
- * does not exist rather than minting a token for nothing. */
78729
- sequenceId: z.string().min(1),
78692
+ /** The Action the tap runs. The dispatcher drops a button whose Action does
78693
+ * not exist rather than minting a token for nothing. */
78694
+ actionId: NcActionIdSchema,
78730
78695
  icon: NotificationActionIconSchema.optional(),
78731
78696
  destructive: z.boolean().optional()
78732
78697
  });
@@ -78741,25 +78706,19 @@ var NcRuleNotificationButtonSchema = z.object({
78741
78706
  * leave). A delivery with no clear edge never produces this hook.
78742
78707
  */
78743
78708
  var NcRuleActionsSchema = z.object({
78744
- onActivation: NcHookBindingsSchema.optional(),
78745
- onDeactivation: NcHookBindingsSchema.optional(),
78709
+ onActivation: NcHookActionIdsSchema.optional(),
78710
+ onDeactivation: NcHookActionIdsSchema.optional(),
78746
78711
  /** Runs on a positive / raised match. */
78747
- onTrigger: NcHookBindingsSchema.optional(),
78712
+ onTrigger: NcHookActionIdsSchema.optional(),
78748
78713
  /** Runs on a clear / leave match, when the subject carries one. */
78749
- onTriggerOff: NcHookBindingsSchema.optional(),
78714
+ onTriggerOff: NcHookActionIdsSchema.optional(),
78750
78715
  /**
78751
- * Buttons the NOTIFICATION carries, each running one shared sequence when
78752
- * tapped. Deliberately a REFERENCE — a button that could define its own
78753
- * actions would be a parallel actuation vocabulary.
78716
+ * Buttons the NOTIFICATION carries, each running one Action when tapped.
78717
+ * Deliberately a REFERENCE — a button that could define its own steps would
78718
+ * be a parallel actuation vocabulary.
78754
78719
  */
78755
78720
  buttons: z.array(NcRuleNotificationButtonSchema).max(8).optional()
78756
78721
  });
78757
- z.object({
78758
- name: z.string().min(1).max(120),
78759
- enabled: z.boolean(),
78760
- minDelaySec: z.number().int().min(0).max(86400).optional(),
78761
- actions: z.array(NcRuleActionSchema).min(1)
78762
- });
78763
78722
  /**
78764
78723
  * "This rule applies only while `deviceId` is in one of `states`."
78765
78724
  *
@@ -80473,28 +80432,6 @@ var notificationRulesCapability = {
80473
80432
  auth: "admin"
80474
80433
  }),
80475
80434
  /**
80476
- * Shared action sequences — named step lists rules and buttons bind to by
80477
- * id. One store for the whole notification centre so two rules sharing a
80478
- * gate share its throttle too.
80479
- */
80480
- listSequences: method(z.object({}), z.object({ sequences: z.array(NcSharedSequenceSchema) }), { auth: "admin" }),
80481
- getSequence: method(z.object({ sequenceId: z.string().min(1) }), z.object({ sequence: NcSharedSequenceSchema.nullable() }), { auth: "admin" }),
80482
- createSequence: method(z.object({ sequence: NcSharedSequenceInputSchema }), z.object({ sequence: NcSharedSequenceSchema }), {
80483
- kind: "mutation",
80484
- auth: "admin"
80485
- }),
80486
- updateSequence: method(z.object({
80487
- sequenceId: z.string().min(1),
80488
- sequence: NcSharedSequenceInputSchema
80489
- }), z.object({ sequence: NcSharedSequenceSchema }), {
80490
- kind: "mutation",
80491
- auth: "admin"
80492
- }),
80493
- deleteSequence: method(z.object({ sequenceId: z.string().min(1) }), z.object({ success: z.literal(true) }), {
80494
- kind: "mutation",
80495
- auth: "admin"
80496
- }),
80497
- /**
80498
80435
  * WHAT THE RULES ACTUALLY ASK the stream broker to retain, per camera.
80499
80436
  *
80500
80437
  * The notification centre owns the rules, so it is the only thing that can
@@ -118519,4 +118456,4 @@ z.object({
118519
118456
  commands: z.record(z.string(), z.unknown())
118520
118457
  });
118521
118458
  //#endregion
118522
- export { DeviceStatusSchema as $, storageOccupancyCapability as $a, COMPOSED_DEVICE_STABLE_ID_PREFIX as $c, powerSourceCapability as $i, coreBlockAddonId as $n, openReset as $o, isAlertEpisodeSeverity as $r, collectZodSecretPaths as $s, SchedulerSchema as $t, ControlStatusSchema as A, resolveTemplateRef as Aa, mapSecretLeaves as Ac, metricsProviderCapability as Ai, buildCapabilityLookup as An, HISTORY_FAST_MS as Ao, evaluateWhenTree as Ar, RecordIntegrationInstances as As, MigrationMetaSchema as At, DEVICE_ENROLLMENT_TTL_MS as B, settingsStoreCapability as Ba, resolveCapMount as Bc, normalizeUnit as Bi, checkDeviceAlias as Bn, compositionItemFieldPath as Bo, findChannelSource as Br, UnknownRecordKindError as Bs, PreferenceValueSchema as Bt, CORE_BLOCKS_ADDON_ID as C, resolveLocationMode as Ca, isReadingQuantity as Cc, looseSchema as Ci, armRemovalReconcile as Cn, withDefaultRunning as Co, deviceStatusCapability as Cr, RECORD_SECRET_COLLECTION_PREFIX as Cs, LOG_LEVEL_RANK as Ct, CatalogFileSchema as D, resolveRemoteSource as Da, isSecretMarkerLike as Dc, mediaPlayerFeaturesOfRoles as Di, batteryCapability as Dn, CompositionSchema as Do, enumerateSchemaFields as Dr, RUNTIME_DEFAULTS as Ds, MOTION_CLOSE_AFTER_MS as Dt, CalendarPreferencesSchema as E, resolveNotificationTapAddress as Ea, isSecretMarker as Ec, mediaPlayerCapability as Ei, bareAddonId as En, COMPOSER_ADDON_ID as Eo, enumerateItemArrayFields as Er, REMOVE_LEAF as Es, MINUTES_PER_DAY as Et, DATABASE_SNAPSHOT_TIMEOUT_MS as F, schedulersCapability as Fa, parseJsonObject as Fc, nextOccurrence as Fi, calendarsCapability as Fn, buildFfmpegArgs as Fo, fanControlCapability as Fr, RevConflictError as Fs, PackageRequiresSchema as Ft, DEVICE_SAN_USER_PREFIX as G, siteFor as Ga, secretViewsOf as Gc, parseAcceleratorFactsJson as Gi, collectWhenMirrorSources as Gn, evaluateDerivative as Go, generateDeviceAlias as Gr, asString$1 as Gs, RecordingStatusSchema as Gt, DEVICE_ID_FIELD as H, sharedActuatorMethods as Ha, scopeKey as Hc, objectInputDeclaresRequiredDeviceId as Hi, checkTemplatePayload as Hn, compositionSourceKey as Ho, formatDeviceRevoker as Hr, actionEffect as Hs, RECORDING_SOURCE_CAMSTACK_ADDON as Ht, DATA_STORE_DATABASES as I, scopesAllowAddon as Ia, parseJsonUnknown as Ic, normalizeActionUnits as Ii, cameraGridLayoutCapability as In, cloneStatefulExpressionMemory as Io, fanOutTargets as Ir, SECRET_CLEAR as Is, PetFountainStatusSchema as It, DEVICE_TEMPLATE_MAX_OUTPUT as J, splitTranslationRef as Ja, toSecretFieldView as Jc, petFountainCapability as Ji, compileScalarOverride as Jn, historyRetentionFromSettings as Jo, heroLayoutCapability as Jr, auditedFields as Js, RunningStateStatusSchema as Jt, DEVICE_TEMPLATE_FILTERS as K, siteZoneKey as Ka, sleep as Kc, parseColorInput as Ki, colorCapability as Kn, evaluateStatistic as Ko, groupCommandsCapability as Kr, assertTransactScope as Ks, RemoteAssumedStateSchema as Kt, DAY_NAMES as L, scopesAllowDeviceCap as La, parseSecretRef as Lc, normalizeCapStep as Li, canonicalIconKey as Ln, composedDeviceRef as Lo, fanPresetsCapability as Lr, StoredRecordKindDeclarationSchema as Ls, PowerSourceInfoSchema as Lt, CredentialTokenClaimsSchema as M, runSteps as Ma, nodePin as Mc, modeForSwitch as Mi, buildDeviceSignatureMessage as Mn, HOUR_MS as Mo, expandContainer as Mr, RecordNotFoundError as Ms, PET_FOUNTAIN_WATER_KEY as Mt, DATABASE_SNAPSHOT_PARTIAL_SUFFIX as N, runtimeFieldUnit as Na, normalizeNodeId as Nc, modeMayWrite as Ni, buildHeroModel as Nn, HelperMemberSchema as No, expressionContainsBuiltinCall as Nr, RecordTooLargeError as Ns, PREFERENCES_MAX_VALUE_BYTES as Nt, ConditionMirror as O, resolveRunnerId as Oa, isSecretRefOwnedBy as Oc, memoizePinnedFfmpeg as Oi, brightnessCapability as On, DAY_MS as Oo, evaluateCompositionField as Or, ReadinessRegistry as Os, MediaPlayerStatusSchema as Ot, DATABASE_SNAPSHOT_SUFFIX as P, runtimeStatePolicyFor as Pa, normalizeSecretOwner as Pc, motionCapability as Pi, buildStreamParamsConfigSchema as Pn, MINUTE_MS as Po, extractNestedAddonId as Pr, RecordUniqueViolationError as Ps, PROPOSAL_MIN_SPAN_MS as Pt, DeviceRunSchema as Q, storageMigrationCapability as Qa, withoutCallerStamp as Qc, platformProbeCapability as Qi, consumablesCapability as Qn, nextLocalMidnight as Qo, isAlertEpisodeOpen as Qr, collectSecretMarkerRefs as Qs, SchedulerError as Qt, DEFAULT_HOLD_OVERRIDE as R, scoreRuntimes as Ra, readinessKey as Rc, normalizeCoreBlockWrite as Ri, capUnitResolver as Rn, composedDeviceStableId as Ro, featureForwards as Rr, TransactRefusedError as Rs, PreferenceDeviceIdSchema as Rt, COMPOSER_RUNNER_ID as S, resolveHubAddressRoles as Sa, isKeychainStoredField as Sc, logLevelAtMost as Si, appendTrace as Sn, weekdayOfLocalDate as So, deviceStateCapability as Sr, RECORD_DELETE_BATCH as Ss, KeychainResetRecordSchema as St, CREDENTIAL_TOKEN_AUDIENCE as T, resolveMutate as Ta, isSecretFieldView as Tc, mayWriteToLocation as Ti, backupCapability as Tn, zoneOnlySite as To, enumerateInferenceDevices as Tr, REDACTED_SECRET as Ts, MIGRATION_API_V1_METHODS as Tt, DEVICE_NONCE_TTL_MS as U, sharedColorModes as Ua, secretTreeFromPaths as Uc, occurrenceOn as Ui, climateControlCapability as Un, createStatefulExpressionMemory as Uo, formatMinutes as Ur, asJsonObject as Us, REMOTE_MEDIA_COMMANDS as Ut, DEVICE_HISTORY_ENERGY_KEY as V, sharedActuatorFeatures as Va, resolveSecretMarkers as Vc, objectInputDeclaresAddonId as Vi, checkRoleAddress as Vn, compositionSliceKey as Vo, foldSnapshotByFunction as Vr, WELL_KNOWN_TAB_MAP as Vs, QuantityUnitError as Vt, DEVICE_SAN_CREDENTIAL_PREFIX as W, shortHostname as Wa, secretTreeFromSchema as Wc, orderMigrations as Wi, collectDeviceTemplates as Wn, disarmRoseMemory as Wo, gbToBytes as Wr, asNumber as Ws, ROOT_BUCKET_KEY as Wt, DataStoreDatabaseSchema as X, storageAdminCapability as Xa, userError as Xc, pickAppLinkHub as Xi, compositionFieldKey as Xn, isForwardInputRef as Xo, internalActionId as Xr, collectSecretConfigKeys as Xs, STORAGE_LOCATION_MODES as Xt, DEVICE_TOMBSTONE_RETENTION_MS as Y, stableIdMapOf as Ya, transformSecretWrite as Yc, petFountainWaterItem as Yi, composerCapability as Yn, integrateReading as Yo, integrationInstancesCapability as Yr, buildSecretRef as Ys, STORAGE_ACCESS_FALLBACK as Yt, DeclaredDevices as Z, storageCapability as Za, vocabActionIdFor as Zc, planComposition as Zi, compositionSourceRefs as Zn, isHistoryHelper as Zo, interpolate as Zr, collectSecretLeaves as Zs, STREAM_PROFILE_META as Zt, CAMERA_SWITCH_ORDER as _, resolveAppConnections as _a, isCommand as _c, localNetworkCapability as _i, addonSettingsCapability as _n, validateSchedulerInput as _o, deviceExtensionCapability as _r, InvalidRecordError as _s, HvacModeSchema as _t, AGENT_MDNS_SERVICE_TYPE as a, projectDeviceRow as aa, defineCustomActions as ac, isInternalActionId as ai, EventCategory as al, StorageLocationTypeSchema as an, switchStateOfMode as ao, createDeviceExtensionProvider as ar, wattMillisecondsToKwh as as, FAN_CAPTURE_FIELDS as at, CATALOG_LANGS as b, resolveCoreBlockFiles as ba, isEvent as bc, lockDoorLinkOfComposition as bi, alertEpisodePayload as bn, vectorIndexDimConflictError as bo, deviceRemovalHookCapability as br, RECORD_BATCH_MAX as bs, KEYCHAIN_RESET_TRIGGER_ACTOR as bt, ActionError as c, readStoredRemoteConfig as ca, emitDownForOwnedCaps as cc, isSameAddonId as ci, TemplateKindSchema as cn, timedRunLimitOf as co, databaseSnapshotCapability as cr, CALLER_STAMPED_CAPABILITIES as cs, FanDirectionSchema as ct, ActionVariableSchema as d, reducePoints as da, expandCapMethods as dc, keychainAdminCapability as di, UserRecordSchema as dn, timedRunSeconds as do, decodeVectorBase64 as dr, DEVICE_STATUS_METHOD as ds, FieldClaimSchema as dt, powerSourceLinkOfComposition as ea, commandEffect as ec, isAppLinkBase as ei, DeviceFeature as el, ScopedTokenSchema as en, storageProviderCapability as eo, coreBlockComposition as er, openStatistic as es, DeviceTombstoneSchema as et, AlertSchema as f, remoteCapability as fa, formatSecretScope as fc, keychainCapability as fi, actionSourceCapability as fn, toTimings as fo, defineExtensionSlotProvider as fr, DeclarationRefusedError as fs, GroupCommandResultSchema as ft, BatteryStatusSchema as g, resolveActionVariables as ga, hydrateSchema as gc, localDateOf as gi, addonPagesCapability as gn, validateCustomAddress as go, deviceCredentialsCapability as gr, HISTORY_DEFAULT_MIN_INTERVAL_MS as gs, HUB_MDNS_TXT_KEYS as gt, BaseDevice as h, replacedFieldKeys as ha, historyUnitFor as hc, lifecycleJobSchema as hi, addonIdOfActionId as hn, validateComposition as ho, describeUnmet as hr, ForeignSecretMarkerError as hs, HUB_MDNS_SERVICE_TYPE as ht, ACTUATOR_TEMPLATE_IDS as i, processTimeZoneOr as ia, defineAddonMigrations as ic, isDefaultAppConnectionEndpoint as ii, featuresOfBoundCaps as il, StorageLocationModeSchema as in, switchCapability as io, coverCapability as ir, toExpressionValue as is, EMPTY_REMOTE_CONFIG as it, CoreBlockSchema as j, runFanOut as ja, nodeIdOfScopedKey as jc, migrationsCapability as ji, buildDeviceEnrollmentLink as jn, HISTORY_SLOW_MS as jo, evictionPolicyOfLocation as jr, RecordKindDeclarationSchema as js, NetworkTunnelStartedDataSchema as jt, ConsumableItemSchema as k, resolveStepArgs as ka, makeSecretMarker as kc, methodRefusal as ki, buildActionSteps as kn, DEFAULT_HISTORY_RETENTION as ko, evaluateStepCondition as kr, ReadinessTimeoutError as ks, MigrationLedgerEntrySchema as kt, ActionStepSchema as l, recordEntriesCapability as la, emitReadiness as lc, isVoidInput as li, TokenScopeSchema as ln, timedRunMaxIn as lo, declarationOwnerNodeId as lr, DATAPLANE_SECRET_HEADER as ls, FanPresetSchema as lt, BUILTIN_REMOTE_COMPONENTS as m, remoteSourceSteps as ma, historyItemFieldPath as mc, legacyModeOf as mi, actionsCapability as mn, userManagementCapability as mo, describeComposableCaps as mr, FilterRequiredError as ms, HISTORY_ITEM_CATALOG as mt, ACTION_TARGET_INVALIDATION_EVENTS as n, problemsBlockSave as na, createEvent as nc, isCollectionArrayMethod as ni, DeviceType as nl, SsoBridgeClaimsSchema as nn, streamQualityLabel as no, coreBlockSourceKind as nr, planStatisticTier as ns, EMPTY_AUTOMATION_STATE as nt, AGENT_MDNS_TXT_KEYS as o, proposeRunningThreshold as oa, defineEntryKind as oc, isLocationEnabled as oi, StorageMigrationJobSchema as on, templateCapability as oo, customKeyOfRole as or, BaseAddon as os, FIRST_LEVEL_MACRO_CLASSES as ot, AutomationStateDocSchema as p, remoteLayoutComponentsCapability as pa, getDebugInterest as pc, legacyAutoLinkIds as pi, actionWaitTotalMs as pn, unmetRequirements as po, deriveBatteryPresence as pr, DeviceTransitionSchema as ps, HISTORY_CATALOG as pt, DEVICE_TEMPLATE_MAX_LENGTH as q, snapshotCapability as qa, toNodeId as qc, parseStreamParamsFormPatch as qi, compareVersions as qn, helperMembers as qo, groupTemplate as qr, assertValidDeclaration as qs, RemoteLayoutPayloadSchema as qt, ACTUATOR_METHODS as r, procedureAuthKey as ra, customAction as rc, isCredentialTokenPayload as ri, errMsg as rl, StorageCleanupJobSchema as rn, supportedRuntimes as ro, coreBlocksCapability as rr, statisticCadenceMs as rs, EMPTY_REMOTE_ASSUMED_STATE as rt, ALL_CAPABILITY_DEFINITIONS as s, ptzAutotrackCapability as sa, defineRecordKinds as sc, isObjectInput as si, SwitchStatusSchema as sn, timedRunCapability as so, dataStoreProviderCapability as sr, BatchTooLargeError as ss, FanControlStatusSchema as st, ACTION_RUN_MAX_MS as t, preconditionOf as ta, commandOrigin as tc, isArrayOutputSchema as ti, DeviceRole as tl, ServerNameSchema as tn, streamCatalogCapability as to, coreBlockIdFromAddonId as tr, planResetTier as ts, DiscoveryProposalBodySchema as tt, ActionTargetResolver as u, recordsCapability as ua, entryBody as uc, kebabToCamel as ui, UNATTRIBUTED_BUCKET_KEY as un, timedRunQuickRun as uo, declaredSeriesKind as ur, DEVICE_SETTINGS_CONTRIBUTION_METHODS as us, FieldClaimModeSchema as ut, CAMSTACK_APP_LINK_ORIGIN as v, resolveBucketMs as va, isDebugChannelName as vc, locationIconKey as vi, addonWidgetsCapability as vn, valveCapability as vo, deviceHistoryCapability as vr, NoCallerError as vs, IDLE_ACTION_STATUS as vt, CORE_BLOCK_ADDON_PREFIX as w, resolveMethodAuth as wa, isSecretClear as wc, mayReadLocation as wi, authProviderCapability as wn, withLocationMode as wo, deviceTransitionsCapability as wr, RECORD_SWEEP_INTERVAL_MS as ws, METHOD_ACCESS_MAP as wt, COMPOSED_ITEM_FIXED_FIELDS as x, resolveHeroLayout as xa, isInstanceEnabled as xc, logDestinationCapability as xi, alertsCapability as xn, vectorStoreCapability as xo, deviceRunsCapability as xr, RECORD_BATCH_MAX_BYTES as xs, KeychainAuditEntrySchema as xt, CAP_NAMES_WITH_STATUS as y, resolveCoreBlockEntry as ya, isDeviceConfigCap as yc, lockControlCapability as yi, alertEpisodeId as yn, vectorDimFromBase64 as yo, deviceManagerCapability as yr, PlaintextSecretError as ys, INTERNAL_ACTION_PREFIX as yt, DERIVED_CAMERA_SILENCED_CAP_NAMES as z, seedInstanceOnce as za, recordSecretRef as zc, normalizeStepTargets as zi, catalogueIssues as zn, compositionFeatureEnabled as zo, filesystemBrowseCapability as zr, UnindexedFilterError as zs, PreferenceNamespaceSchema as zt };
118459
+ export { DeviceRunSchema as $, storageMigrationCapability as $a, vocabActionIdFor as $c, platformProbeCapability as $i, consumablesCapability as $n, nextLocalMidnight as $o, isAlertEpisodeOpen as $r, collectSecretMarkerRefs as $s, SchedulerError as $t, ConsumableItemSchema as A, resolveStepArgs as Aa, makeSecretMarker as Ac, methodRefusal as Ai, buildActionSteps as An, DEFAULT_HISTORY_RETENTION as Ao, evaluateStepCondition as Ar, ReadinessTimeoutError as As, MigrationLedgerEntrySchema as At, DERIVED_CAMERA_SILENCED_CAP_NAMES as B, seedInstanceOnce as Ba, recordSecretRef as Bc, normalizeStepTargets as Bi, catalogueIssues as Bn, compositionFeatureEnabled as Bo, filesystemBrowseCapability as Br, UnindexedFilterError as Bs, PreferenceNamespaceSchema as Bt, COMPOSER_RUNNER_ID as C, resolveHubAddressRoles as Ca, isKeychainStoredField as Cc, logLevelAtMost as Ci, appendTrace as Cn, weekdayOfLocalDate as Co, deviceStateCapability as Cr, RECORD_DELETE_BATCH as Cs, KeychainResetRecordSchema as Ct, CalendarPreferencesSchema as D, resolveNotificationTapAddress as Da, isSecretMarker as Dc, mediaPlayerCapability as Di, bareAddonId as Dn, COMPOSER_ADDON_ID as Do, enumerateItemArrayFields as Dr, REMOVE_LEAF as Ds, MINUTES_PER_DAY as Dt, CREDENTIAL_TOKEN_AUDIENCE as E, resolveMutate as Ea, isSecretFieldView as Ec, mayWriteToLocation as Ei, backupCapability as En, zoneOnlySite as Eo, enumerateInferenceDevices as Er, REDACTED_SECRET as Es, MIGRATION_API_V1_METHODS as Et, DATABASE_SNAPSHOT_SUFFIX as F, runtimeStatePolicyFor as Fa, normalizeSecretOwner as Fc, motionCapability as Fi, buildStreamParamsConfigSchema as Fn, MINUTE_MS as Fo, extractNestedAddonId as Fr, RecordUniqueViolationError as Fs, PROPOSAL_MIN_SPAN_MS as Ft, DEVICE_SAN_CREDENTIAL_PREFIX as G, shortHostname as Ga, secretTreeFromPaths as Gc, orderMigrations as Gi, collectDeviceTemplates as Gn, disarmRoseMemory as Go, gbToBytes as Gr, asNumber as Gs, ROOT_BUCKET_KEY as Gt, DEVICE_HISTORY_ENERGY_KEY as H, sharedActuatorFeatures as Ha, resolveSecretMarkers as Hc, objectInputDeclaresAddonId as Hi, checkRoleAddress as Hn, compositionSliceKey as Ho, foldSnapshotByFunction as Hr, WELL_KNOWN_TAB_MAP as Hs, QuantityUnitError as Ht, DATABASE_SNAPSHOT_TIMEOUT_MS as I, schedulersCapability as Ia, parseJsonObject as Ic, nextOccurrence as Ii, calendarsCapability as In, buildFfmpegArgs as Io, fanControlCapability as Ir, RevConflictError as Is, PackageRequiresSchema as It, DEVICE_TEMPLATE_MAX_LENGTH as J, snapshotCapability as Ja, sleep as Jc, parseStreamParamsFormPatch as Ji, compareVersions as Jn, helperMembers as Jo, groupTemplate as Jr, assertValidDeclaration as Js, RemoteLayoutPayloadSchema as Jt, DEVICE_SAN_USER_PREFIX as K, siteFor as Ka, secretTreeFromSchema as Kc, parseAcceleratorFactsJson as Ki, collectWhenMirrorSources as Kn, evaluateDerivative as Ko, generateDeviceAlias as Kr, asString$1 as Ks, RecordingStatusSchema as Kt, DATA_STORE_DATABASES as L, scopesAllowAddon as La, parseJsonUnknown as Lc, normalizeActionUnits as Li, cameraGridLayoutCapability as Ln, cloneStatefulExpressionMemory as Lo, fanOutTargets as Lr, SECRET_CLEAR as Ls, PetFountainStatusSchema as Lt, CoreBlockSchema as M, runFanOut as Ma, nodeIdOfScopedKey as Mc, migrationsCapability as Mi, buildDeviceEnrollmentLink as Mn, HISTORY_SLOW_MS as Mo, evictionPolicyOfLocation as Mr, RecordKindDeclarationSchema as Ms, NetworkTunnelStartedDataSchema as Mt, CredentialTokenClaimsSchema as N, runSteps as Na, nodePin as Nc, modeForSwitch as Ni, buildDeviceSignatureMessage as Nn, HOUR_MS as No, expandContainer as Nr, RecordNotFoundError as Ns, PET_FOUNTAIN_WATER_KEY as Nt, CatalogFileSchema as O, resolveRemoteSource as Oa, isSecretMarkerLike as Oc, mediaPlayerFeaturesOfRoles as Oi, batteryCapability as On, CompositionSchema as Oo, enumerateSchemaFields as Or, RUNTIME_DEFAULTS as Os, MOTION_CLOSE_AFTER_MS as Ot, DATABASE_SNAPSHOT_PARTIAL_SUFFIX as P, runtimeFieldUnit as Pa, normalizeNodeId as Pc, modeMayWrite as Pi, buildHeroModel as Pn, HelperMemberSchema as Po, expressionContainsBuiltinCall as Pr, RecordTooLargeError as Ps, PREFERENCES_MAX_VALUE_BYTES as Pt, DeclaredDevices as Q, storageCapability as Qa, userError as Qc, planComposition as Qi, compositionSourceRefs as Qn, isHistoryHelper as Qo, interpolate as Qr, collectSecretLeaves as Qs, STREAM_PROFILE_META as Qt, DAY_NAMES as R, scopesAllowDeviceCap as Ra, parseSecretRef as Rc, normalizeCapStep as Ri, canonicalIconKey as Rn, composedDeviceRef as Ro, fanPresetsCapability as Rr, StoredRecordKindDeclarationSchema as Rs, PowerSourceInfoSchema as Rt, COMPOSED_ITEM_FIXED_FIELDS as S, resolveHeroLayout as Sa, isInstanceEnabled as Sc, logDestinationCapability as Si, alertsCapability as Sn, vectorStoreCapability as So, deviceRunsCapability as Sr, RECORD_BATCH_MAX_BYTES as Ss, KeychainAuditEntrySchema as St, CORE_BLOCK_ADDON_PREFIX as T, resolveMethodAuth as Ta, isSecretClear as Tc, mayReadLocation as Ti, authProviderCapability as Tn, withLocationMode as To, deviceTransitionsCapability as Tr, RECORD_SWEEP_INTERVAL_MS as Ts, METHOD_ACCESS_MAP as Tt, DEVICE_ID_FIELD as U, sharedActuatorMethods as Ua, ruleFireOfClaim as Uc, objectInputDeclaresRequiredDeviceId as Ui, checkTemplatePayload as Un, compositionSourceKey as Uo, formatDeviceRevoker as Ur, actionEffect as Us, RECORDING_SOURCE_CAMSTACK_ADDON as Ut, DEVICE_ENROLLMENT_TTL_MS as V, settingsStoreCapability as Va, resolveCapMount as Vc, normalizeUnit as Vi, checkDeviceAlias as Vn, compositionItemFieldPath as Vo, findChannelSource as Vr, UnknownRecordKindError as Vs, PreferenceValueSchema as Vt, DEVICE_NONCE_TTL_MS as W, sharedColorModes as Wa, scopeKey as Wc, occurrenceOn as Wi, climateControlCapability as Wn, createStatefulExpressionMemory as Wo, formatMinutes as Wr, asJsonObject as Ws, REMOTE_MEDIA_COMMANDS as Wt, DEVICE_TOMBSTONE_RETENTION_MS as X, stableIdMapOf as Xa, toSecretFieldView as Xc, petFountainWaterItem as Xi, composerCapability as Xn, integrateReading as Xo, integrationInstancesCapability as Xr, buildSecretRef as Xs, STORAGE_ACCESS_FALLBACK as Xt, DEVICE_TEMPLATE_MAX_OUTPUT as Y, splitTranslationRef as Ya, toNodeId as Yc, petFountainCapability as Yi, compileScalarOverride as Yn, historyRetentionFromSettings as Yo, heroLayoutCapability as Yr, auditedFields as Ys, RunningStateStatusSchema as Yt, DataStoreDatabaseSchema as Z, storageAdminCapability as Za, transformSecretWrite as Zc, pickAppLinkHub as Zi, compositionFieldKey as Zn, isForwardInputRef as Zo, internalActionId as Zr, collectSecretConfigKeys as Zs, STORAGE_LOCATION_MODES as Zt, BatteryStatusSchema as _, resolveActionVariables as _a, hydrateSchema as _c, localDateOf as _i, addonPagesCapability as _n, validateCustomAddress as _o, deviceCredentialsCapability as _r, HISTORY_DEFAULT_MIN_INTERVAL_MS as _s, HUB_MDNS_TXT_KEYS as _t, AGENT_MDNS_SERVICE_TYPE as a, processTimeZoneOr as aa, defineAddonMigrations as ac, isDefaultAppConnectionEndpoint as ai, errMsg as al, StorageLocationModeSchema as an, switchCapability as ao, coverCapability as ar, toExpressionValue as as, EMPTY_REMOTE_CONFIG as at, CAP_NAMES_WITH_STATUS as b, resolveCoreBlockEntry as ba, isDeviceConfigCap as bc, lockControlCapability as bi, alertEpisodeId as bn, vectorDimFromBase64 as bo, deviceManagerCapability as br, PlaintextSecretError as bs, INTERNAL_ACTION_PREFIX as bt, ActionError as c, ptzAutotrackCapability as ca, defineRecordKinds as cc, isObjectInput as ci, SwitchStatusSchema as cn, timedRunCapability as co, dataStoreProviderCapability as cr, BatchTooLargeError as cs, FanControlStatusSchema as ct, ActionTargetResolver as d, recordsCapability as da, entryBody as dc, kebabToCamel as di, UNATTRIBUTED_BUCKET_KEY as dn, timedRunQuickRun as do, declaredSeriesKind as dr, DEVICE_SETTINGS_CONTRIBUTION_METHODS as ds, FieldClaimModeSchema as dt, powerSourceCapability as ea, collectZodSecretPaths as ec, isAlertEpisodeSeverity as ei, withoutCallerStamp as el, SchedulerSchema as en, storageOccupancyCapability as eo, coreBlockAddonId as er, openReset as es, DeviceStatusSchema as et, ActionVariableSchema as f, reducePoints as fa, expandCapMethods as fc, keychainAdminCapability as fi, UserRecordSchema as fn, timedRunSeconds as fo, decodeVectorBase64 as fr, DEVICE_STATUS_METHOD as fs, FieldClaimSchema as ft, BaseDevice as g, replacedFieldKeys as ga, historyUnitFor as gc, lifecycleJobSchema as gi, addonIdOfActionId as gn, validateComposition as go, describeUnmet as gr, ForeignSecretMarkerError as gs, HUB_MDNS_SERVICE_TYPE as gt, BUILTIN_REMOTE_COMPONENTS as h, remoteSourceSteps as ha, historyItemFieldPath as hc, legacyModeOf as hi, actionsCapability as hn, userManagementCapability as ho, describeComposableCaps as hr, FilterRequiredError as hs, HISTORY_ITEM_CATALOG as ht, ACTUATOR_TEMPLATE_IDS as i, procedureAuthKey as ia, customAction as ic, isCredentialTokenPayload as ii, DeviceType as il, StorageCleanupJobSchema as in, supportedRuntimes as io, coreBlocksCapability as ir, statisticCadenceMs as is, EMPTY_REMOTE_ASSUMED_STATE as it, ControlStatusSchema as j, resolveTemplateRef as ja, mapSecretLeaves as jc, metricsProviderCapability as ji, buildCapabilityLookup as jn, HISTORY_FAST_MS as jo, evaluateWhenTree as jr, RecordIntegrationInstances as js, MigrationMetaSchema as jt, ConditionMirror as k, resolveRunnerId as ka, isSecretRefOwnedBy as kc, memoizePinnedFfmpeg as ki, brightnessCapability as kn, DAY_MS as ko, evaluateCompositionField as kr, ReadinessRegistry as ks, MediaPlayerStatusSchema as kt, ActionMinDelaySecSchema as l, readStoredRemoteConfig as la, emitDownForOwnedCaps as lc, isSameAddonId as li, TemplateKindSchema as ln, timedRunLimitOf as lo, databaseSnapshotCapability as lr, CALLER_STAMPED_CAPABILITIES as ls, FanDirectionSchema as lt, AutomationStateDocSchema as m, remoteLayoutComponentsCapability as ma, getDebugInterest as mc, legacyAutoLinkIds as mi, actionWaitTotalMs as mn, unmetRequirements as mo, deriveBatteryPresence as mr, DeviceTransitionSchema as ms, HISTORY_CATALOG as mt, ACTION_TARGET_INVALIDATION_EVENTS as n, preconditionOf as na, commandOrigin as nc, isArrayOutputSchema as ni, DeviceFeature as nl, ServerNameSchema as nn, streamCatalogCapability as no, coreBlockIdFromAddonId as nr, planResetTier as ns, DiscoveryProposalBodySchema as nt, AGENT_MDNS_TXT_KEYS as o, projectDeviceRow as oa, defineCustomActions as oc, isInternalActionId as oi, featuresOfBoundCaps as ol, StorageLocationTypeSchema as on, switchStateOfMode as oo, createDeviceExtensionProvider as or, wattMillisecondsToKwh as os, FAN_CAPTURE_FIELDS as ot, AlertSchema as p, remoteCapability as pa, formatSecretScope as pc, keychainCapability as pi, actionSourceCapability as pn, toTimings as po, defineExtensionSlotProvider as pr, DeclarationRefusedError as ps, GroupCommandResultSchema as pt, DEVICE_TEMPLATE_FILTERS as q, siteZoneKey as qa, secretViewsOf as qc, parseColorInput as qi, colorCapability as qn, evaluateStatistic as qo, groupCommandsCapability as qr, assertTransactScope as qs, RemoteAssumedStateSchema as qt, ACTUATOR_METHODS as r, problemsBlockSave as ra, createEvent as rc, isCollectionArrayMethod as ri, DeviceRole as rl, SsoBridgeClaimsSchema as rn, streamQualityLabel as ro, coreBlockSourceKind as rr, planStatisticTier as rs, EMPTY_AUTOMATION_STATE as rt, ALL_CAPABILITY_DEFINITIONS as s, proposeRunningThreshold as sa, defineEntryKind as sc, isLocationEnabled as si, EventCategory as sl, StorageMigrationJobSchema as sn, templateCapability as so, customKeyOfRole as sr, BaseAddon as ss, FIRST_LEVEL_MACRO_CLASSES as st, ACTION_RUN_MAX_MS as t, powerSourceLinkOfComposition as ta, commandEffect as tc, isAppLinkBase as ti, COMPOSED_DEVICE_STABLE_ID_PREFIX as tl, ScopedTokenSchema as tn, storageProviderCapability as to, coreBlockComposition as tr, openStatistic as ts, DeviceTombstoneSchema as tt, ActionStepSchema as u, recordEntriesCapability as ua, emitReadiness as uc, isVoidInput as ui, TokenScopeSchema as un, timedRunMaxIn as uo, declarationOwnerNodeId as ur, DATAPLANE_SECRET_HEADER as us, FanPresetSchema as ut, CAMERA_SWITCH_ORDER as v, resolveAppConnections as va, isCommand as vc, localNetworkCapability as vi, addonSettingsCapability as vn, validateSchedulerInput as vo, deviceExtensionCapability as vr, InvalidRecordError as vs, HvacModeSchema as vt, CORE_BLOCKS_ADDON_ID as w, resolveLocationMode as wa, isReadingQuantity as wc, looseSchema as wi, armRemovalReconcile as wn, withDefaultRunning as wo, deviceStatusCapability as wr, RECORD_SECRET_COLLECTION_PREFIX as ws, LOG_LEVEL_RANK as wt, CATALOG_LANGS as x, resolveCoreBlockFiles as xa, isEvent as xc, lockDoorLinkOfComposition as xi, alertEpisodePayload as xn, vectorIndexDimConflictError as xo, deviceRemovalHookCapability as xr, RECORD_BATCH_MAX as xs, KEYCHAIN_RESET_TRIGGER_ACTOR as xt, CAMSTACK_APP_LINK_ORIGIN as y, resolveBucketMs as ya, isDebugChannelName as yc, locationIconKey as yi, addonWidgetsCapability as yn, valveCapability as yo, deviceHistoryCapability as yr, NoCallerError as ys, IDLE_ACTION_STATUS as yt, DEFAULT_HOLD_OVERRIDE as z, scoreRuntimes as za, readinessKey as zc, normalizeCoreBlockWrite as zi, capUnitResolver as zn, composedDeviceStableId as zo, featureForwards as zr, TransactRefusedError as zs, PreferenceDeviceIdSchema as zt };