@camstack/addon-admin-ui 1.2.652 → 1.2.654

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 (133) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/assets/Addons-DQgD_v95.js +5 -0
  3. package/dist/assets/{AdminPage-2H7qegiH.js → AdminPage-CK-MkPlu.js} +1 -1
  4. package/dist/assets/AdminSectionedPage-OhQI2qXm.js +1 -0
  5. package/dist/assets/AiProfiles-Djyyj23M.js +3 -0
  6. package/dist/assets/{BootstrapSettingsForm-DJLxKYKT.js → BootstrapSettingsForm-DKhGcnmJ.js} +1 -1
  7. package/dist/assets/Build-Cf3MOxUN.js +40 -0
  8. package/dist/assets/Calendars-j1BCsAq6.js +1 -0
  9. package/dist/assets/{CameraGrids-7RfsBtg8.js → CameraGrids-OnERcK30.js} +1 -1
  10. package/dist/assets/Cluster-CgLlyPaD.js +1 -0
  11. package/dist/assets/CompositionBlockEditor-BEMdmU_i.js +2 -0
  12. package/dist/assets/{CompositionEditorPage-BdKITJdB.js → CompositionEditorPage-Cmw79l07.js} +1 -1
  13. package/dist/assets/Data-m0300B8d.js +2 -0
  14. package/dist/assets/DeviceDetail-DiMmIGM8.js +2 -0
  15. package/dist/assets/{Devices-B4o5FkKs.js → Devices-DSam6qvr.js} +1 -1
  16. package/dist/assets/EmbedDevicePage-Cl1Kgkk_.js +1 -0
  17. package/dist/assets/{EmbedPlayerPage-DROVGJUa.js → EmbedPlayerPage-DsTHw1Kb.js} +1 -1
  18. package/dist/assets/History-CkFf0U-x.js +1 -0
  19. package/dist/assets/Identity-4ET53nEl.js +1 -0
  20. package/dist/assets/InstancesTable-GFnxaz8g.js +1 -0
  21. package/dist/assets/IntegrationDetail-CjK9pgiF.js +1 -0
  22. package/dist/assets/IntegrationWizard-DYsJKt8F.js +1 -0
  23. package/dist/assets/Integrations-Bvh7023p.js +1 -0
  24. package/dist/assets/{Integrations-Dx5lzGGq.js → Integrations-CZyvmitI.js} +2 -2
  25. package/dist/assets/Library-DPIx7qxk.js +1 -0
  26. package/dist/assets/Locations-SMSlu8LX.js +3 -0
  27. package/dist/assets/{Logs-BCSHF0Hz.js → Logs-CTmPbz9A.js} +1 -1
  28. package/dist/assets/{MaskShapeCanvas-g7yAssct.js → MaskShapeCanvas-Ca2DbsYa.js} +1 -1
  29. package/dist/assets/{MotionZonesSettings-BvqGObrA.js → MotionZonesSettings-8hC3v_-y.js} +1 -1
  30. package/dist/assets/MyAccess-C2AUJs9o.js +2 -0
  31. package/dist/assets/Network-C9Qk_IUD.js +1 -0
  32. package/dist/assets/{NodeAddonsSettingsPanel-DwqvYEao.js → NodeAddonsSettingsPanel-C8WWXhDN.js} +2 -2
  33. package/dist/assets/Notifications-DArKD3gT.js +1 -0
  34. package/dist/assets/Pipeline-D9MKELnZ.js +1 -0
  35. package/dist/assets/{PrivacyMaskSettings-C43hww2R.js → PrivacyMaskSettings-CXeCHxqT.js} +1 -1
  36. package/dist/assets/Recordings-DUcSFOaR.js +1 -0
  37. package/dist/assets/{RemoteGrid-Dv8u1cRv.js → RemoteGrid-DN94_B3Z.js} +1 -1
  38. package/dist/assets/{ScanSubnetEditor-lUmamDRT.js → ScanSubnetEditor-CPEt25Mk.js} +1 -1
  39. package/dist/assets/SceneMonitorEditor-COY1fmSc.js +1 -0
  40. package/dist/assets/SessionsList-CIvnpq6T.js +2 -0
  41. package/dist/assets/{Showroom-YNNYBt4x.js → Showroom-BY6ET01S.js} +1 -1
  42. package/dist/assets/StorageLocationsTable-DUzHqFdY.js +1 -0
  43. package/dist/assets/System-o4YL_E1y.js +1 -0
  44. package/dist/assets/Templates-Db5XZbLd.js +1 -0
  45. package/dist/assets/{Terminal-CdDnVDQl.js → Terminal-BqQdTFoW.js} +4 -4
  46. package/dist/assets/{TrainingProviders-DJ09cRpJ.js → TrainingProviders-BNK55Stf.js} +1 -1
  47. package/dist/assets/{Viewer-UkANt4yY.js → Viewer-prFahoJ4.js} +1 -1
  48. package/dist/assets/{_virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-Brm6yYA2.js → _virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-uMRky5qp.js} +1 -1
  49. package/dist/assets/action-draft-CRqBDk2Z.js +1 -0
  50. package/dist/assets/{ai-page.helpers-D6ZZMriu.js → ai-page.helpers-maEFMpek.js} +1 -1
  51. package/dist/assets/{assignment-candidates-D-v7rj2f.js → assignment-candidates-CV89DgoD.js} +1 -1
  52. package/dist/assets/{authed-media-CYJ67W1F.js → authed-media-C1aAE5s_.js} +1 -1
  53. package/dist/assets/{board-model-Bk9dOlXr.js → board-model-D0jdm48D.js} +1 -1
  54. package/dist/assets/client-B4n8NMWW.js +1115 -0
  55. package/dist/assets/command-vocab-DkNXUg4Q.js +1 -0
  56. package/dist/assets/create-composition-CHCu4Z4K.js +1 -0
  57. package/dist/assets/device-detail-BCUJLFIL.js +1 -0
  58. package/dist/assets/{device-integration-icon-96PtuBb0.js → device-integration-icon-C1x0kvP3.js} +1 -1
  59. package/dist/assets/device-picker-model-DRcQHVyk.js +1 -0
  60. package/dist/assets/{dist-Dur6bHcC.js → dist-D6T4RfRg.js} +1 -1
  61. package/dist/assets/dist-D_CJWYmG.js +1115 -0
  62. package/dist/assets/{format-BxjElxwq.js → format-oZ7KZtah.js} +1 -1
  63. package/dist/assets/{hostInit-BopdhKYk.js → hostInit-BML2LnRL.js} +1 -1
  64. package/dist/assets/i18n-DfJLU041.js +1 -0
  65. package/dist/assets/icons-CGidwIaF.js +1 -0
  66. package/dist/assets/index-DAjN0K_c.js +4 -0
  67. package/dist/assets/index-DHx7H0Qb.css +2 -0
  68. package/dist/assets/{linked-devices-model-Bb6B3YVg.js → linked-devices-model-CcWs3olU.js} +1 -1
  69. package/dist/assets/{mf-entry-bootstrap-0-207caf94.js → mf-entry-bootstrap-0-29d74208.js} +2 -2
  70. package/dist/assets/mount-DRcQHVyk.js +1 -0
  71. package/dist/assets/{notification-rule-status-DEk79oDE.js → notification-rule-status-Cm6fEOJj.js} +1 -1
  72. package/dist/assets/player-overlays-C90g2D8G.js +1 -0
  73. package/dist/assets/remoteEntry-CfgZ7Hz2.js +1 -0
  74. package/dist/assets/src-8V-UKpNs.js +263 -0
  75. package/dist/assets/{step-inspector-model-Ce7VAyE-.js → step-inspector-model-asfGndKZ.js} +1 -1
  76. package/dist/assets/{video-De6y5yax.js → terminal-BSZfUawf.js} +1 -1
  77. package/dist/assets/{use-scenes-feed-0Xrve4u9.js → use-scenes-feed-BXvQ_0on.js} +1 -1
  78. package/dist/assets/{use-stationary-objects-DY7wIMD2.js → use-stationary-objects-lg2p95kD.js} +1 -1
  79. package/dist/assets/{useAdminDeviceRemoval-CPedVydD.js → useAdminDeviceRemoval-dJ5nhVNy.js} +1 -1
  80. package/dist/assets/useEventInvalidation-DRcQHVyk.js +1 -0
  81. package/dist/assets/{useNodeUrlSelection-CIiBKiPN.js → useNodeUrlSelection-qXaxaGxG.js} +1 -1
  82. package/dist/assets/useTemplateSave-DHubKBD-.js +1 -0
  83. package/dist/assets/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-CMPo2XXm.js → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-DJ50nHy2.js} +2 -2
  84. package/dist/index.html +9 -9
  85. package/dist/server/addon.js +536 -347
  86. package/package.json +2 -2
  87. package/dist/assets/Addons-DFygon8k.js +0 -5
  88. package/dist/assets/AdminSectionedPage-CWRY6TXK.js +0 -1
  89. package/dist/assets/AiProfiles-Ct9zcHWG.js +0 -3
  90. package/dist/assets/Build-_MNk-gsH.js +0 -40
  91. package/dist/assets/Calendars-BrFMMXU3.js +0 -1
  92. package/dist/assets/Cluster-qdUn0ZWi.js +0 -1
  93. package/dist/assets/CompositionBlockEditor-tW-fi9fY.js +0 -2
  94. package/dist/assets/Data-Dq99cYIc.js +0 -2
  95. package/dist/assets/DeviceDetail-DZKwQsDf.js +0 -2
  96. package/dist/assets/EmbedDevicePage-BCz48kwT.js +0 -1
  97. package/dist/assets/History-DjSpw_q0.js +0 -1
  98. package/dist/assets/Identity-DRR4EhOw.js +0 -1
  99. package/dist/assets/InstancesTable-fZ0yNacw.js +0 -1
  100. package/dist/assets/IntegrationDetail-BWYrpCeb.js +0 -1
  101. package/dist/assets/IntegrationWizard-DyIJiQjm.js +0 -1
  102. package/dist/assets/Integrations-BzdMNme3.js +0 -1
  103. package/dist/assets/Library-kH7Xd3gC.js +0 -1
  104. package/dist/assets/Locations-CPNRVIjp.js +0 -3
  105. package/dist/assets/MyAccess-Bfdi856H.js +0 -2
  106. package/dist/assets/Network-CmZhSVsi.js +0 -1
  107. package/dist/assets/Notifications-DA1lIKUt.js +0 -1
  108. package/dist/assets/Pipeline-r-8l7hZO.js +0 -1
  109. package/dist/assets/Recordings-B50SML_Q.js +0 -1
  110. package/dist/assets/SceneMonitorEditor-DA76cNih.js +0 -1
  111. package/dist/assets/SessionsList-CSmzdfK6.js +0 -2
  112. package/dist/assets/StorageLocationsTable-CIQLMsJC.js +0 -1
  113. package/dist/assets/System-r539bm4J.js +0 -1
  114. package/dist/assets/Templates-B6Nl1xgU.js +0 -1
  115. package/dist/assets/action-draft-B0YtvIK8.js +0 -1
  116. package/dist/assets/bell-off-ChsIJ9tx.js +0 -1
  117. package/dist/assets/client-CxoliObn.js +0 -1114
  118. package/dist/assets/command-vocab-Xm353Fi-.js +0 -1
  119. package/dist/assets/create-composition-BEPdO8PM.js +0 -1
  120. package/dist/assets/device-detail-DUYt5dz3.js +0 -1
  121. package/dist/assets/device-picker-model-CIZB_MPl.js +0 -1
  122. package/dist/assets/dist-_n5SMWsj.js +0 -1114
  123. package/dist/assets/i18n-C__Kv-sS.js +0 -1
  124. package/dist/assets/icons-Djs5qMrO.js +0 -1
  125. package/dist/assets/index-SyR6jUqA.css +0 -2
  126. package/dist/assets/index-hhTXvvOB.js +0 -4
  127. package/dist/assets/mount-CIZB_MPl.js +0 -1
  128. package/dist/assets/player-overlays-DilQz9uf.js +0 -1
  129. package/dist/assets/remoteEntry-PV_ZlxYI.js +0 -1
  130. package/dist/assets/settings-2-BIrKVPOG.js +0 -1
  131. package/dist/assets/src-BgJM3bf_.js +0 -252
  132. package/dist/assets/useEventInvalidation-CIZB_MPl.js +0 -1
  133. package/dist/assets/useTemplateSave-Cfew9nvB.js +0 -1
@@ -5921,7 +5921,7 @@ var ZodIssueCode = {
5921
5921
  var ZodFirstPartyTypeKind;
5922
5922
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5923
5923
  //#endregion
5924
- //#region ../types/dist/sleep-Czv-4wFH.mjs
5924
+ //#region ../types/dist/sleep-DyIxjZZt.mjs
5925
5925
  /**
5926
5926
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5927
5927
  * window to float samples (D455).
@@ -14316,6 +14316,32 @@ var CAP_VOCABULARY_BY_NAME = {
14316
14316
  ...SYSTEM_CAP_VOCABULARY
14317
14317
  };
14318
14318
  /**
14319
+ * Vocabulary actions by id (D983). An action step names a vocabulary action
14320
+ * (`cover.open`), never a raw cap method; this is the one lookup that turns the
14321
+ * id into its cap, method and effect — and a persisted legacy `cap` + `method`
14322
+ * pair back into the action id when exactly one action matches.
14323
+ */
14324
+ function buildIndex() {
14325
+ const byId = /* @__PURE__ */ new Map();
14326
+ for (const [cap, entry] of Object.entries(CAP_VOCABULARY_BY_NAME)) {
14327
+ if (entry.scope !== "device") continue;
14328
+ for (const action of entry.actions ?? []) byId.set(action.id, {
14329
+ cap,
14330
+ action
14331
+ });
14332
+ }
14333
+ return byId;
14334
+ }
14335
+ var index;
14336
+ function actionIndex() {
14337
+ index ??= buildIndex();
14338
+ return index;
14339
+ }
14340
+ /** The vocabulary action with this id, or `undefined`. */
14341
+ function findVocabAction(actionId) {
14342
+ return actionIndex().get(actionId);
14343
+ }
14344
+ /**
14319
14345
  * `addon-pages-source` — collection cap exposing per-provider raw page
14320
14346
  * declarations. Every addon that contributes a UI page registers a
14321
14347
  * provider here. The hub-side singleton aggregator (`addon-pages` cap,
@@ -43673,21 +43699,23 @@ function convertLegacyWhen(half) {
43673
43699
  * (instants) and state leaves (durations). It replaces the flat trigger list
43674
43700
  * plus the separate condition tree; the firing rule is in that file and in
43675
43701
  * ADR "one tree".
43676
- * - **Actions** — the `wait` and `cap` steps, plus the `{kind:'code'}`
43702
+ * - **Actions** — the `wait` and device `command` steps, plus the `{kind:'code'}`
43677
43703
  * fragment of §3.2.2. See {@link AutomationActionSchema}.
43678
43704
  *
43679
43705
  * A recipe stored in the old shape (`triggers` + `conditions`) still LOADS:
43680
43706
  * {@link AutomationRecipeSchema} (the parse-anywhere schema) converts it on parse. Nothing writes it.
43681
43707
  */
43682
43708
  /**
43683
- * One action step: `wait`, or a `cap` call.
43709
+ * One action step: `wait`, or a device `command`.
43684
43710
  *
43685
- * A cap step's target is who it acts on (D983: `devices`, a `domain`, or a
43686
- * `{ $var }` resolved from the run's variables); the legacy `deviceId` is still
43687
- * READ, never written. The step runner (`runSteps`) owns the device-scope
43688
- * check, the stop-at-first-failure and the variable substitution, once, for
43689
- * every caller — automations, Actions, and the notification centre, which runs
43690
- * only Actions (planning#473).
43711
+ * A command step names a VOCABULARY action (`cover.open`) and who it acts on
43712
+ * (D983: `devices`, a `domain`, or a `{ $var }` resolved from the run's
43713
+ * variables). It never names a cap method: the step runner turns the action
43714
+ * id into its cap + method through the vocabulary index when the step runs
43715
+ * (`vocabCall`), the one place that mapping happens. The step runner
43716
+ * (`runSteps`) owns the device-scope check, the stop-at-first-failure and the
43717
+ * variable substitution, once, for every caller — automations, Actions, and
43718
+ * the notification centre, which runs only Actions (planning#473).
43691
43719
  */
43692
43720
  /** The longest one `wait` step lasts. It is cut by a restart of the run and does not survive a hub restart. */
43693
43721
  var WAIT_MAX_SECONDS = 3600;
@@ -43696,39 +43724,22 @@ var AutomationWaitStepSchema = object({
43696
43724
  kind: literal("wait"),
43697
43725
  seconds: number$1().min(0).max(WAIT_MAX_SECONDS, WAIT_TOO_LONG)
43698
43726
  });
43699
- /** The legacy `deviceId` of a cap step: still READ, never written (D983). */
43700
- var LegacyStepDeviceSchema = union([
43701
- number$1().int(),
43702
- array(number$1().int()).min(1),
43703
- object({ $var: string().min(1) })
43704
- ]);
43705
43727
  /**
43706
- * The fields of a cap step, before the target rules are applied. Exported for
43707
- * a shape that is "a cap call, narrowed" (a remote-control binding is one
43708
- * device); a step is {@link AutomationCapStepSchema}.
43728
+ * The fields of a command step, before the vocabulary check. A step is
43729
+ * {@link AutomationCommandStepSchema}.
43709
43730
  */
43710
- var AutomationCapStepBaseSchema = object({
43711
- kind: literal("cap"),
43712
- /**
43713
- * The vocabulary action this step performs (`cover.open`). Required when
43714
- * `target` is a `domain` (the domain is "every device offering this
43715
- * action"); filled by {@link normalizeCapStep} for a legacy step whose
43716
- * cap + method match exactly one vocabulary action.
43717
- */
43718
- actionId: string().min(1).optional(),
43719
- /** WHO the step acts on. The only shape that is written. */
43720
- target: ActionTargetSchema.optional(),
43731
+ var AutomationCommandStepBaseSchema = object({
43732
+ kind: literal("command"),
43733
+ /** WHO the step acts on. */
43734
+ target: ActionTargetSchema,
43735
+ /** The vocabulary action this step performs (`cover.open`). */
43736
+ actionId: string().min(1),
43721
43737
  /**
43722
- * @deprecated The pre-D983 target: one device, several, or `{ $var }`.
43723
- * Still READ — {@link normalizeCapStep} maps it to `target` — and never
43724
- * written.
43738
+ * The values of the action's OPEN args (`position`, `presetId`); the args
43739
+ * the vocabulary bakes into the action are added when the step runs. Values
43740
+ * may carry `{{vars.x}}` slots, or be exactly `{ $var: 'name' }`, which
43741
+ * SUBSTITUTE and do not evaluate (§3.2.3).
43725
43742
  */
43726
- deviceId: LegacyStepDeviceSchema.optional(),
43727
- cap: string().min(1),
43728
- method: string().min(1),
43729
- /** Values may carry `{{vars.x}}` slots, or be exactly `{ $var: 'name' }`, which
43730
- * SUBSTITUTE and do not evaluate (§3.2.3). Anything beyond substitution is
43731
- * the expression leaf. */
43732
43743
  args: record(string(), unknown()).optional(),
43733
43744
  /**
43734
43745
  * The unit the person picked per arg (display only). `args` always hold the
@@ -43737,18 +43748,20 @@ var AutomationCapStepBaseSchema = object({
43737
43748
  */
43738
43749
  argUnits: record(string(), string().min(1)).optional()
43739
43750
  });
43751
+ /** The vocabulary check every command step passes: the action exists. */
43752
+ function refineKnownAction(step, ctx) {
43753
+ if (findVocabAction(step.actionId) === void 0) ctx.addIssue({
43754
+ code: "custom",
43755
+ message: `"${step.actionId}" is not a vocabulary action id`,
43756
+ path: ["actionId"]
43757
+ });
43758
+ }
43740
43759
  /**
43741
- * The steps an internal Action may contain: cap and wait, and nothing that can
43760
+ * The steps an internal Action may contain: command and wait, and nothing that can
43742
43761
  * call back into an Action — so an Action can never reach itself (no cycles).
43743
43762
  * This is the LEAF shape: no condition of its own.
43744
43763
  */
43745
- var LeafActionStepSchema = discriminatedUnion("kind", [AutomationWaitStepSchema, AutomationCapStepBaseSchema.refine((step) => step.target !== void 0 || step.deviceId !== void 0, {
43746
- message: "a cap step needs a target",
43747
- path: ["target"]
43748
- }).refine((step) => step.target?.kind !== "domain" || step.actionId !== void 0, {
43749
- message: "a domain target needs the vocabulary action it applies to (actionId)",
43750
- path: ["actionId"]
43751
- })]);
43764
+ var LeafActionStepSchema = discriminatedUnion("kind", [AutomationWaitStepSchema, AutomationCommandStepBaseSchema.superRefine(refineKnownAction)]);
43752
43765
  /**
43753
43766
  * The optional guard of a step (#472): `if` is the ONE `when` tree (D980), read
43754
43767
  * on the state mirror when the step is reached; `else` runs when it is false.
@@ -43769,13 +43782,7 @@ var GuardedWaitStepSchema = AutomationWaitStepSchema.extend(stepGuardShape).refi
43769
43782
  * same two step kinds an automation runs, minus a guard that reads the
43770
43783
  * automation's trigger, which such a list does not have.
43771
43784
  */
43772
- var ActionStepSchema = discriminatedUnion("kind", [GuardedWaitStepSchema, AutomationCapStepBaseSchema.extend(stepGuardShape).refine((step) => step.target !== void 0 || step.deviceId !== void 0, {
43773
- message: "a cap step needs a target",
43774
- path: ["target"]
43775
- }).refine((step) => step.target?.kind !== "domain" || step.actionId !== void 0, {
43776
- message: "a domain target needs the vocabulary action it applies to (actionId)",
43777
- path: ["actionId"]
43778
- }).refine((step) => step.else === void 0 || step.if !== void 0, elseNeedsIf)]).superRefine((step, ctx) => {
43785
+ var ActionStepSchema = discriminatedUnion("kind", [GuardedWaitStepSchema, AutomationCommandStepBaseSchema.extend(stepGuardShape).superRefine(refineKnownAction).refine((step) => step.else === void 0 || step.if !== void 0, elseNeedsIf)]).superRefine((step, ctx) => {
43779
43786
  if (step.if !== void 0 && hasTriggeredByLeaves(step.if)) ctx.addIssue({
43780
43787
  code: "custom",
43781
43788
  message: TRIGGERED_BY_NEEDS_AUTOMATION,
@@ -43790,17 +43797,11 @@ var ActionStepSchema = discriminatedUnion("kind", [GuardedWaitStepSchema, Automa
43790
43797
  var continueOnErrorShape = {
43791
43798
  /** A failure of this step is traced `failed-continued` and the next step runs. */
43792
43799
  continueOnError: literal(true).optional() };
43793
- /** An automation's cap step: the shared guarded cap step, plus `continueOnError`. */
43794
- var AutomationGuardedCapStepSchema = AutomationCapStepBaseSchema.extend({
43800
+ /** An automation's command step: the shared guarded command step, plus `continueOnError`. */
43801
+ var AutomationGuardedCommandStepSchema = AutomationCommandStepBaseSchema.extend({
43795
43802
  ...stepGuardShape,
43796
43803
  ...continueOnErrorShape
43797
- }).refine((step) => step.target !== void 0 || step.deviceId !== void 0, {
43798
- message: "a cap step needs a target",
43799
- path: ["target"]
43800
- }).refine((step) => step.target?.kind !== "domain" || step.actionId !== void 0, {
43801
- message: "a domain target needs the vocabulary action it applies to (actionId)",
43802
- path: ["actionId"]
43803
- }).refine((step) => step.else === void 0 || step.if !== void 0, elseNeedsIf);
43804
+ }).superRefine(refineKnownAction).refine((step) => step.else === void 0 || step.if !== void 0, elseNeedsIf);
43804
43805
  /** End the run here, on purpose. `reason` may carry `{{vars.x}}` slots. */
43805
43806
  var AutomationStopStepSchema = object({
43806
43807
  kind: literal("stop"),
@@ -43880,13 +43881,7 @@ function nestTooDeep(issue) {
43880
43881
  }
43881
43882
  var plainStepSchemas = [
43882
43883
  AutomationWaitStepSchema.strict(),
43883
- AutomationCapStepBaseSchema.extend(continueOnErrorShape).strict().refine((step) => step.target !== void 0 || step.deviceId !== void 0, {
43884
- message: "a cap step needs a target",
43885
- path: ["target"]
43886
- }).refine((step) => step.target?.kind !== "domain" || step.actionId !== void 0, {
43887
- message: "a domain target needs the vocabulary action it applies to (actionId)",
43888
- path: ["actionId"]
43889
- }),
43884
+ AutomationCommandStepBaseSchema.extend(continueOnErrorShape).strict().superRefine(refineKnownAction),
43890
43885
  AutomationStopStepSchema.omit({ if: true }).strict(),
43891
43886
  AutomationSetStepSchema.omit({ if: true }).strict(),
43892
43887
  AutomationRunActionStepSchema.strict()
@@ -43897,7 +43892,7 @@ var plainStepSchemas = [
43897
43892
  */
43898
43893
  var AutomationBranchStepSchema = discriminatedUnion("kind", plainStepSchemas, { error: nestTooDeep });
43899
43894
  /** A step that can run beside others: it writes no variable and does not end the run. */
43900
- var AutomationParallelMemberSchema = AutomationBranchStepSchema.refine((step) => step.kind === "cap" || step.kind === "action" || step.kind === "wait", "a parallel holds device commands, actions and waits only: a set or a stop beside other steps has no order");
43895
+ var AutomationParallelMemberSchema = AutomationBranchStepSchema.refine((step) => step.kind === "command" || step.kind === "action" || step.kind === "wait", "a parallel holds device commands, actions and waits only: a set or a stop beside other steps has no order");
43901
43896
  /**
43902
43897
  * Several steps at once (#500): all are started together and all are awaited.
43903
43898
  * A failure fails the run once the others finished, as in a sequence; a member
@@ -43977,7 +43972,7 @@ var AutomationBodyStepSchema = discriminatedUnion("kind", [
43977
43972
  var AutomationRepeatStepSchema = repeatSchemaOf(AutomationBodyStepSchema);
43978
43973
  var AutomationActionSchema = discriminatedUnion("kind", [
43979
43974
  GuardedWaitStepSchema,
43980
- AutomationGuardedCapStepSchema,
43975
+ AutomationGuardedCommandStepSchema,
43981
43976
  AutomationStopStepSchema,
43982
43977
  AutomationSetStepSchema,
43983
43978
  chooseSchemaOf(AutomationBodyStepSchema),
@@ -44048,86 +44043,6 @@ function convertLegacyRecipe(legacy) {
44048
44043
  };
44049
44044
  }
44050
44045
  var AutomationRecipeSchema = union([CurrentAutomationRecipeSchema, LegacyAutomationRecipeSchema.transform(convertLegacyRecipe)]);
44051
- var DETECTION_DESCRIPTIONS = {
44052
- deviceId: "the camera that saw it",
44053
- className: "what it saw",
44054
- trackId: "the track",
44055
- score: "how sure the detector was",
44056
- label: "the label it matched (a name, a plate), empty when none"
44057
- };
44058
- var STATIONARY_DESCRIPTIONS = {
44059
- deviceId: "the camera that saw it",
44060
- className: "what it saw",
44061
- zones: "the zones it is in",
44062
- phase: "appeared or departed",
44063
- entryId: "the stopped object"
44064
- };
44065
- var BECOMES_DESCRIPTIONS = {
44066
- deviceId: "the device that changed",
44067
- from: "the value before the change, empty when it is not known",
44068
- to: "the value it changed to"
44069
- };
44070
- /**
44071
- * A fire's payload is offered too, as `data.<path>` (`{{vars.data.channel}}`):
44072
- * those names depend on the device, so they are not in this list.
44073
- */
44074
- var FIRED_DESCRIPTIONS = {
44075
- deviceId: "the device that fired",
44076
- eventType: "the event, as the device names it",
44077
- sourceId: "the part of the device that fired (a button), empty when it names none",
44078
- eventKind: "the kind of press (press, long-press …), empty when the device declares none"
44079
- };
44080
- function describe$1(descriptions) {
44081
- return Object.entries(descriptions).map(([name, description]) => ({
44082
- name,
44083
- description
44084
- }));
44085
- }
44086
- describe$1(DETECTION_DESCRIPTIONS);
44087
- describe$1(STATIONARY_DESCRIPTIONS);
44088
- describe$1(FIRED_DESCRIPTIONS).map((v) => v.name === "deviceId" ? {
44089
- ...v,
44090
- hintKey: "firedDeviceId"
44091
- } : v);
44092
- describe$1(BECOMES_DESCRIPTIONS).map((v) => v.name === "deviceId" ? {
44093
- ...v,
44094
- hintKey: "becomesDeviceId"
44095
- } : v);
44096
- new Set(Object.values(COCO_TO_MACRO.mapping));
44097
- /**
44098
- * Generic stateless event emitter. Installed on a `DeviceType.EventEmitter`
44099
- * device. Carries the device's EXACT declared event vocabulary verbatim
44100
- * (NO normalization). Two shapes:
44101
- * - structured source (HA `event.*` entity) → `vocabulary` is the fixed
44102
- * declared set (e.g. press_short, press_long, …).
44103
- * - generic/legacy source (HA bus events, e.g. zha_event) → `vocabulary`
44104
- * is [] (open) and `lastEvent.data` carries the complex payload.
44105
- * `vocabulary` (D1044) names each event for a person and types it for a
44106
- * rule; `eventTypes` is its list of native tokens, kept for older readers.
44107
- * A fire names the part of the device it came from in `sourceId` when the
44108
- * vocabulary declares sources (a remote's buttons).
44109
- * `seq` is monotonic so two identical events still produce distinct slice writes.
44110
- */
44111
- var EventFireSchema = object({
44112
- deviceId: number$1(),
44113
- eventType: string(),
44114
- sourceId: string().optional(),
44115
- data: record(string(), unknown()).nullable(),
44116
- timestamp: number$1().meta(readingMeta("none")),
44117
- seq: number$1().meta(readingMeta("count"))
44118
- });
44119
- var EventEmitterStatusSchema = object({
44120
- eventTypes: array(string()),
44121
- /**
44122
- * Required of a provider by the type. A status written before the field
44123
- * existed still parses, as an empty vocabulary: read it through
44124
- * `readEventVocabulary`, which then answers with the plain tokens.
44125
- */
44126
- vocabulary: array(EventVocabularyEntrySchema).default([]),
44127
- lastEvent: EventFireSchema.nullable(),
44128
- eventCountSinceStart: number$1().meta(readingMeta("count"))
44129
- });
44130
- DeviceType.EventEmitter;
44131
44046
  /**
44132
44047
  * Schedulers (D983) — an entity that performs actions over the day.
44133
44048
  *
@@ -44526,6 +44441,86 @@ var AutomationStateDocSchema = object({
44526
44441
  lastRunStartedAt: number$1().nullable(),
44527
44442
  traces: array(AutomationRunTraceSchema)
44528
44443
  });
44444
+ var DETECTION_DESCRIPTIONS = {
44445
+ deviceId: "the camera that saw it",
44446
+ className: "what it saw",
44447
+ trackId: "the track",
44448
+ score: "how sure the detector was",
44449
+ label: "the label it matched (a name, a plate), empty when none"
44450
+ };
44451
+ var STATIONARY_DESCRIPTIONS = {
44452
+ deviceId: "the camera that saw it",
44453
+ className: "what it saw",
44454
+ zones: "the zones it is in",
44455
+ phase: "appeared or departed",
44456
+ entryId: "the stopped object"
44457
+ };
44458
+ var BECOMES_DESCRIPTIONS = {
44459
+ deviceId: "the device that changed",
44460
+ from: "the value before the change, empty when it is not known",
44461
+ to: "the value it changed to"
44462
+ };
44463
+ /**
44464
+ * A fire's payload is offered too, as `data.<path>` (`{{vars.data.channel}}`):
44465
+ * those names depend on the device, so they are not in this list.
44466
+ */
44467
+ var FIRED_DESCRIPTIONS = {
44468
+ deviceId: "the device that fired",
44469
+ eventType: "the event, as the device names it",
44470
+ sourceId: "the part of the device that fired (a button), empty when it names none",
44471
+ eventKind: "the kind of press (press, long-press …), empty when the device declares none"
44472
+ };
44473
+ function describe$1(descriptions) {
44474
+ return Object.entries(descriptions).map(([name, description]) => ({
44475
+ name,
44476
+ description
44477
+ }));
44478
+ }
44479
+ describe$1(DETECTION_DESCRIPTIONS);
44480
+ describe$1(STATIONARY_DESCRIPTIONS);
44481
+ describe$1(FIRED_DESCRIPTIONS).map((v) => v.name === "deviceId" ? {
44482
+ ...v,
44483
+ hintKey: "firedDeviceId"
44484
+ } : v);
44485
+ describe$1(BECOMES_DESCRIPTIONS).map((v) => v.name === "deviceId" ? {
44486
+ ...v,
44487
+ hintKey: "becomesDeviceId"
44488
+ } : v);
44489
+ new Set(Object.values(COCO_TO_MACRO.mapping));
44490
+ /**
44491
+ * Generic stateless event emitter. Installed on a `DeviceType.EventEmitter`
44492
+ * device. Carries the device's EXACT declared event vocabulary verbatim
44493
+ * (NO normalization). Two shapes:
44494
+ * - structured source (HA `event.*` entity) → `vocabulary` is the fixed
44495
+ * declared set (e.g. press_short, press_long, …).
44496
+ * - generic/legacy source (HA bus events, e.g. zha_event) → `vocabulary`
44497
+ * is [] (open) and `lastEvent.data` carries the complex payload.
44498
+ * `vocabulary` (D1044) names each event for a person and types it for a
44499
+ * rule; `eventTypes` is its list of native tokens, kept for older readers.
44500
+ * A fire names the part of the device it came from in `sourceId` when the
44501
+ * vocabulary declares sources (a remote's buttons).
44502
+ * `seq` is monotonic so two identical events still produce distinct slice writes.
44503
+ */
44504
+ var EventFireSchema = object({
44505
+ deviceId: number$1(),
44506
+ eventType: string(),
44507
+ sourceId: string().optional(),
44508
+ data: record(string(), unknown()).nullable(),
44509
+ timestamp: number$1().meta(readingMeta("none")),
44510
+ seq: number$1().meta(readingMeta("count"))
44511
+ });
44512
+ var EventEmitterStatusSchema = object({
44513
+ eventTypes: array(string()),
44514
+ /**
44515
+ * Required of a provider by the type. A status written before the field
44516
+ * existed still parses, as an empty vocabulary: read it through
44517
+ * `readEventVocabulary`, which then answers with the plain tokens.
44518
+ */
44519
+ vocabulary: array(EventVocabularyEntrySchema).default([]),
44520
+ lastEvent: EventFireSchema.nullable(),
44521
+ eventCountSinceStart: number$1().meta(readingMeta("count"))
44522
+ });
44523
+ DeviceType.EventEmitter;
44529
44524
  /**
44530
44525
  * Actions — named, runnable things an operator (or an automation) can start,
44531
44526
  * declared as LIST ENTRIES, never as devices.
@@ -44705,6 +44700,177 @@ var UnitWarningSchema = object({
44705
44700
  assumedUnit: string(),
44706
44701
  message: string()
44707
44702
  });
44703
+ /**
44704
+ * `device-export` — collection cap for addons that export camstack
44705
+ * devices to external ecosystems (HomeAssistant via MQTT discovery,
44706
+ * HomeKit/HAP, Alexa Smart Home, …).
44707
+ *
44708
+ * No `ecosystem` enum — the addon id identifies the export target.
44709
+ * Each addon owns its mapping logic in its own settings UI. The cap
44710
+ * exposes only the COMMON surface: link state, supported device
44711
+ * kinds (so the UI can filter the device picker), and per-device
44712
+ * expose/unexpose.
44713
+ *
44714
+ * INSTANCES. One export addon can serve several independent targets (a
44715
+ * HomeKit bridge, a Home Assistant broker). `listInstances` names them.
44716
+ * `instanceId` on a READ is optional: absent = the whole addon (linked if any
44717
+ * enabled instance is, `exposedDeviceCount` = distinct devices, `setup` = the
44718
+ * default instance's); present = that instance; an id the provider does not
44719
+ * serve is refused with `ExportInstanceUnknownError` (`export-instance-unknown`),
44720
+ * never answered empty. `instanceId` on a WRITE is REQUIRED: a membership
44721
+ * change always names the target it changes. A single-instance provider
44722
+ * accepts an absent id on a read or its own id, and refuses any other.
44723
+ */
44724
+ /** Which instance of an export addon a call addresses. Absent on a read = the whole addon. */
44725
+ var InstanceIdSchema$1 = string().min(1);
44726
+ var InstancePinSchema = object({ instanceId: InstanceIdSchema$1.optional() });
44727
+ /** One independent export target of an addon. */
44728
+ var ExportInstanceSchema = object({
44729
+ instanceId: InstanceIdSchema$1,
44730
+ name: string(),
44731
+ enabled: boolean(),
44732
+ kind: string().optional(),
44733
+ /**
44734
+ * What this instance's platform accepts as a device name, in one operator-facing sentence
44735
+ * (D1049). The derived "Name on <instance>" field shows it; absent = the field says nothing
44736
+ * about the rule.
44737
+ */
44738
+ nameRule: string().optional()
44739
+ });
44740
+ var LinkStateSchema = _enum([
44741
+ "unlinked",
44742
+ "linked",
44743
+ "error"
44744
+ ]);
44745
+ /**
44746
+ * A single label/value row surfaced in the export panel's "Setup"
44747
+ * section. Rendered with a copy-to-clipboard button. `secret: true`
44748
+ * rows are masked by default with a reveal toggle (client ids,
44749
+ * secrets, …).
44750
+ */
44751
+ var ExportSetupFieldSchema = object({
44752
+ label: string(),
44753
+ value: string(),
44754
+ /** Mask the value by default + render a reveal toggle (client id, secrets). */
44755
+ secret: boolean().optional()
44756
+ });
44757
+ /**
44758
+ * Generic, addon-agnostic pairing/account block. Any export addon can
44759
+ * surface a scannable QR, a set of copyable label/value rows, and a
44760
+ * free-form operator note — the `DeviceExportPanel` renders whatever
44761
+ * the provider supplies and skips the section entirely when `setup`
44762
+ * is unset.
44763
+ */
44764
+ var ExportSetupSchema = object({
44765
+ /** A string to render as a scannable QR — HAP `X-HM://…` URI, a pairing URL, etc. Omitted when there's nothing to scan. */
44766
+ qr: string().optional(),
44767
+ /** Label/value rows shown with a copy button (HAP setup code, OAuth URLs, client id, linked-account count, …). */
44768
+ fields: array(ExportSetupFieldSchema).readonly().optional(),
44769
+ /** Free-form operator instructions rendered above the fields. */
44770
+ note: string().optional()
44771
+ });
44772
+ var DeviceExportStatusSchema = object({
44773
+ linkState: LinkStateSchema,
44774
+ exposedDeviceCount: number$1(),
44775
+ error: string().optional(),
44776
+ /**
44777
+ * Optional pairing/account info the panel renders in a generic
44778
+ * "Setup" section. Addon-agnostic — the addon id identifies the
44779
+ * export target, never an `ecosystem` key here.
44780
+ */
44781
+ setup: ExportSetupSchema.optional()
44782
+ });
44783
+ var DeviceKindSchema = string();
44784
+ /**
44785
+ * EXPOSED NAME. What one instance calls a device on its platform, when it should not be the
44786
+ * device's own name. The exporter owns it: it is stored per instance in the exporter's per-device
44787
+ * store (D865), validated by the exporter against its platform's naming rules, and never reaches
44788
+ * the exported id — a rename updates the SAME device on the platform, never a second one.
44789
+ * Blank or `null` = the device's own name. A name the platform would refuse is refused with
44790
+ * `ExportNameRefusedError` (`export-name-refused`), whose message says why.
44791
+ */
44792
+ var ExposedDeviceSchema = object({
44793
+ deviceId: string(),
44794
+ exposedAs: string().optional(),
44795
+ /** The operator's name for this device on this instance; absent = the device's own name. */
44796
+ exposedName: string().optional(),
44797
+ capabilities: array(string()).optional()
44798
+ });
44799
+ var ExposeInputSchema = object({
44800
+ instanceId: InstanceIdSchema$1,
44801
+ deviceId: string(),
44802
+ capabilities: array(string()).optional(),
44803
+ /** Set the exposed name in the same call; absent = leave it as it is, blank/null = clear it. */
44804
+ exposedName: string().nullable().optional()
44805
+ });
44806
+ var SetExposedNameInputSchema = object({
44807
+ instanceId: InstanceIdSchema$1,
44808
+ deviceId: string(),
44809
+ /** Blank or null = the device's own name. */
44810
+ name: string().nullable(),
44811
+ /**
44812
+ * Validate only: refuse exactly as a real call would, write nothing. A caller saving several
44813
+ * names at once checks every one first, so one refusal writes none (D1049).
44814
+ */
44815
+ dryRun: boolean().optional()
44816
+ });
44817
+ var UnexposeInputSchema = object({
44818
+ instanceId: InstanceIdSchema$1,
44819
+ deviceId: string()
44820
+ });
44821
+ /**
44822
+ * What an exporter may expose besides devices (D968). An action and a
44823
+ * notification target are LIST ENTRIES, never devices (D954): they enter an
44824
+ * exporter's own selection, not the device registry.
44825
+ */
44826
+ var ExportEntityKindSchema = _enum([
44827
+ "device",
44828
+ "action",
44829
+ "notifier"
44830
+ ]);
44831
+ var ExportEntityRefSchema = discriminatedUnion("kind", [
44832
+ object({
44833
+ kind: literal("device"),
44834
+ deviceId: string()
44835
+ }),
44836
+ object({
44837
+ kind: literal("action"),
44838
+ actionId: string().min(1)
44839
+ }),
44840
+ object({
44841
+ kind: literal("notifier"),
44842
+ targetId: string().min(1)
44843
+ })
44844
+ ]);
44845
+ var ExposedEntitySchema = object({
44846
+ entity: ExportEntityRefSchema,
44847
+ exposedAs: string().optional()
44848
+ });
44849
+ var ExposeEntityInputSchema = object({
44850
+ instanceId: InstanceIdSchema$1,
44851
+ entity: ExportEntityRefSchema
44852
+ });
44853
+ var UnexposeEntityInputSchema = object({
44854
+ instanceId: InstanceIdSchema$1,
44855
+ entity: ExportEntityRefSchema
44856
+ });
44857
+ method(InstancePinSchema, DeviceExportStatusSchema), method(_void(), array(ExportInstanceSchema)), method(InstancePinSchema, array(DeviceKindSchema)), method(InstancePinSchema, array(ExposedDeviceSchema)), method(ExposeInputSchema, _void(), {
44858
+ kind: "mutation",
44859
+ auth: "admin"
44860
+ }), method(UnexposeInputSchema, _void(), {
44861
+ kind: "mutation",
44862
+ auth: "admin"
44863
+ }), method(SetExposedNameInputSchema, _void(), {
44864
+ kind: "mutation",
44865
+ auth: "admin"
44866
+ }), optionalMethod(_void(), array(ExportEntityKindSchema)), optionalMethod(InstancePinSchema, array(ExposedEntitySchema)), optionalMethod(ExposeEntityInputSchema, _void(), {
44867
+ kind: "mutation",
44868
+ auth: "admin"
44869
+ }), optionalMethod(UnexposeEntityInputSchema, _void(), {
44870
+ kind: "mutation",
44871
+ auth: "admin"
44872
+ });
44873
+ record(string(), string());
44708
44874
  _enum([
44709
44875
  "automation",
44710
44876
  "action",
@@ -51290,144 +51456,6 @@ method(object({
51290
51456
  kind: "mutation",
51291
51457
  auth: "admin"
51292
51458
  });
51293
- /**
51294
- * `device-export` — collection cap for addons that export camstack
51295
- * devices to external ecosystems (HomeAssistant via MQTT discovery,
51296
- * HomeKit/HAP, Alexa Smart Home, …).
51297
- *
51298
- * No `ecosystem` enum — the addon id identifies the export target.
51299
- * Each addon owns its mapping logic in its own settings UI. The cap
51300
- * exposes only the COMMON surface: link state, supported device
51301
- * kinds (so the UI can filter the device picker), and per-device
51302
- * expose/unexpose.
51303
- *
51304
- * INSTANCES. One export addon can serve several independent targets (a
51305
- * HomeKit bridge, a Home Assistant broker). `listInstances` names them.
51306
- * `instanceId` on a READ is optional: absent = the whole addon (linked if any
51307
- * enabled instance is, `exposedDeviceCount` = distinct devices, `setup` = the
51308
- * default instance's); present = that instance; an id the provider does not
51309
- * serve is refused with `ExportInstanceUnknownError` (`export-instance-unknown`),
51310
- * never answered empty. `instanceId` on a WRITE is REQUIRED: a membership
51311
- * change always names the target it changes. A single-instance provider
51312
- * accepts an absent id on a read or its own id, and refuses any other.
51313
- */
51314
- /** Which instance of an export addon a call addresses. Absent on a read = the whole addon. */
51315
- var InstanceIdSchema$1 = string().min(1);
51316
- var InstancePinSchema = object({ instanceId: InstanceIdSchema$1.optional() });
51317
- /** One independent export target of an addon. */
51318
- var ExportInstanceSchema = object({
51319
- instanceId: InstanceIdSchema$1,
51320
- name: string(),
51321
- enabled: boolean(),
51322
- kind: string().optional()
51323
- });
51324
- var LinkStateSchema = _enum([
51325
- "unlinked",
51326
- "linked",
51327
- "error"
51328
- ]);
51329
- /**
51330
- * A single label/value row surfaced in the export panel's "Setup"
51331
- * section. Rendered with a copy-to-clipboard button. `secret: true`
51332
- * rows are masked by default with a reveal toggle (client ids,
51333
- * secrets, …).
51334
- */
51335
- var ExportSetupFieldSchema = object({
51336
- label: string(),
51337
- value: string(),
51338
- /** Mask the value by default + render a reveal toggle (client id, secrets). */
51339
- secret: boolean().optional()
51340
- });
51341
- /**
51342
- * Generic, addon-agnostic pairing/account block. Any export addon can
51343
- * surface a scannable QR, a set of copyable label/value rows, and a
51344
- * free-form operator note — the `DeviceExportPanel` renders whatever
51345
- * the provider supplies and skips the section entirely when `setup`
51346
- * is unset.
51347
- */
51348
- var ExportSetupSchema = object({
51349
- /** A string to render as a scannable QR — HAP `X-HM://…` URI, a pairing URL, etc. Omitted when there's nothing to scan. */
51350
- qr: string().optional(),
51351
- /** Label/value rows shown with a copy button (HAP setup code, OAuth URLs, client id, linked-account count, …). */
51352
- fields: array(ExportSetupFieldSchema).readonly().optional(),
51353
- /** Free-form operator instructions rendered above the fields. */
51354
- note: string().optional()
51355
- });
51356
- var DeviceExportStatusSchema = object({
51357
- linkState: LinkStateSchema,
51358
- exposedDeviceCount: number$1(),
51359
- error: string().optional(),
51360
- /**
51361
- * Optional pairing/account info the panel renders in a generic
51362
- * "Setup" section. Addon-agnostic — the addon id identifies the
51363
- * export target, never an `ecosystem` key here.
51364
- */
51365
- setup: ExportSetupSchema.optional()
51366
- });
51367
- var DeviceKindSchema = string();
51368
- var ExposedDeviceSchema = object({
51369
- deviceId: string(),
51370
- exposedAs: string().optional(),
51371
- capabilities: array(string()).optional()
51372
- });
51373
- var ExposeInputSchema = object({
51374
- instanceId: InstanceIdSchema$1,
51375
- deviceId: string(),
51376
- capabilities: array(string()).optional()
51377
- });
51378
- var UnexposeInputSchema = object({
51379
- instanceId: InstanceIdSchema$1,
51380
- deviceId: string()
51381
- });
51382
- /**
51383
- * What an exporter may expose besides devices (D968). An action and a
51384
- * notification target are LIST ENTRIES, never devices (D954): they enter an
51385
- * exporter's own selection, not the device registry.
51386
- */
51387
- var ExportEntityKindSchema = _enum([
51388
- "device",
51389
- "action",
51390
- "notifier"
51391
- ]);
51392
- var ExportEntityRefSchema = discriminatedUnion("kind", [
51393
- object({
51394
- kind: literal("device"),
51395
- deviceId: string()
51396
- }),
51397
- object({
51398
- kind: literal("action"),
51399
- actionId: string().min(1)
51400
- }),
51401
- object({
51402
- kind: literal("notifier"),
51403
- targetId: string().min(1)
51404
- })
51405
- ]);
51406
- var ExposedEntitySchema = object({
51407
- entity: ExportEntityRefSchema,
51408
- exposedAs: string().optional()
51409
- });
51410
- var ExposeEntityInputSchema = object({
51411
- instanceId: InstanceIdSchema$1,
51412
- entity: ExportEntityRefSchema
51413
- });
51414
- var UnexposeEntityInputSchema = object({
51415
- instanceId: InstanceIdSchema$1,
51416
- entity: ExportEntityRefSchema
51417
- });
51418
- method(InstancePinSchema, DeviceExportStatusSchema), method(_void(), array(ExportInstanceSchema)), method(InstancePinSchema, array(DeviceKindSchema)), method(InstancePinSchema, array(ExposedDeviceSchema)), method(ExposeInputSchema, _void(), {
51419
- kind: "mutation",
51420
- auth: "admin"
51421
- }), method(UnexposeInputSchema, _void(), {
51422
- kind: "mutation",
51423
- auth: "admin"
51424
- }), optionalMethod(_void(), array(ExportEntityKindSchema)), optionalMethod(InstancePinSchema, array(ExposedEntitySchema)), optionalMethod(ExposeEntityInputSchema, _void(), {
51425
- kind: "mutation",
51426
- auth: "admin"
51427
- }), optionalMethod(UnexposeEntityInputSchema, _void(), {
51428
- kind: "mutation",
51429
- auth: "admin"
51430
- });
51431
51459
  var DeviceAliasSchema = string().max(64).regex(/^[a-z][a-z0-9_]*$/);
51432
51460
  var DeviceTemplateSchema = string().min(1).max(4096);
51433
51461
  /** One value a caller hands the renderer for `thisDevice`. */
@@ -55576,6 +55604,128 @@ var StateLookSchema = object({
55576
55604
  background: _enum(HERO_BACKGROUNDS),
55577
55605
  animation: HeroAnimationSchema
55578
55606
  });
55607
+ /** A string in both languages, as the cap vocabulary writes it (D920): no `t()` in the model. */
55608
+ var HeroTextSchema = object({
55609
+ en: string(),
55610
+ it: string()
55611
+ });
55612
+ /**
55613
+ * The ONE measurement a simple sensor shows (card wave, phase 1).
55614
+ *
55615
+ * A sensor that measures a single quantity (a temperature, a humidity, a power,
55616
+ * a contact, a text state) is drawn as that reading, once, big, inside a scene
55617
+ * whose motion says what the number means: heat rising when hot, flakes when
55618
+ * cold, a wire flowing at the speed of the power, a ring while a window is
55619
+ * open. Everything the card draws is decided here; a client only paints it.
55620
+ */
55621
+ var HERO_MEASUREMENT_QUANTITIES = [
55622
+ "temperature",
55623
+ "humidity",
55624
+ "power",
55625
+ "contact",
55626
+ "text"
55627
+ ];
55628
+ /** How a temperature reads to a person; drives the heat or the cold scene. */
55629
+ var HERO_MEASUREMENT_BANDS = [
55630
+ "hot",
55631
+ "mild",
55632
+ "cold"
55633
+ ];
55634
+ /** `updated` = the value was last read then ("2 min ago"); `changed` = it has held since then ("for 12 min"). */
55635
+ var HERO_MEASUREMENT_SINCE_KINDS = ["updated", "changed"];
55636
+ var HeroMeasurementReadingSchema = object({
55637
+ value: number$1(),
55638
+ quantity: ReadingQuantitySchema
55639
+ });
55640
+ var HeroMeasurementSchema = object({
55641
+ quantity: _enum(HERO_MEASUREMENT_QUANTITIES),
55642
+ reading: HeroMeasurementReadingSchema.nullable(),
55643
+ icon: IconKeySchema.nullable(),
55644
+ value: HeroTextSchema,
55645
+ unit: string().nullable(),
55646
+ band: _enum(HERO_MEASUREMENT_BANDS).nullable(),
55647
+ level: number$1().min(0).max(1).nullable(),
55648
+ word: HeroTextSchema,
55649
+ tone: _enum(HERO_TONES),
55650
+ since: number$1().nullable(),
55651
+ sinceKind: _enum(HERO_MEASUREMENT_SINCE_KINDS),
55652
+ historyKey: string().nullable()
55653
+ });
55654
+ var same$2 = (text) => t(text, text);
55655
+ var clamp01$1 = (n) => Math.min(1, Math.max(0, n));
55656
+ var trimmed = (n, digits) => String(Number(n.toFixed(digits)));
55657
+ function temperatureBand(celsius) {
55658
+ if (celsius < 12) return "cold";
55659
+ if (celsius > 28) return "hot";
55660
+ return "mild";
55661
+ }
55662
+ var BAND_WORD = {
55663
+ hot: t("Hot", "Caldo"),
55664
+ mild: t("Normal", "Normale"),
55665
+ cold: t("Cold", "Freddo")
55666
+ };
55667
+ var BAND_TONE = {
55668
+ hot: "warning",
55669
+ mild: "muted",
55670
+ cold: "info"
55671
+ };
55672
+ function temperatureMeasurement(celsius, since) {
55673
+ const band = temperatureBand(celsius);
55674
+ return {
55675
+ quantity: "temperature",
55676
+ reading: {
55677
+ value: celsius,
55678
+ quantity: "temperature"
55679
+ },
55680
+ icon: "thermometer",
55681
+ value: same$2(trimmed(celsius, 1)),
55682
+ unit: "°C",
55683
+ band,
55684
+ level: null,
55685
+ word: BAND_WORD[band],
55686
+ tone: BAND_TONE[band],
55687
+ since,
55688
+ sinceKind: "updated",
55689
+ historyKey: "cap:temperature-sensor.temperature"
55690
+ };
55691
+ }
55692
+ function humidityMeasurement(percent, since) {
55693
+ const dry = percent < 30;
55694
+ const humid = percent > 70;
55695
+ return {
55696
+ quantity: "humidity",
55697
+ reading: {
55698
+ value: percent,
55699
+ quantity: "humidity"
55700
+ },
55701
+ icon: "droplets",
55702
+ value: same$2(String(Math.round(percent))),
55703
+ unit: "%",
55704
+ band: null,
55705
+ level: clamp01$1(percent / 100),
55706
+ word: dry ? t("Dry", "Secco") : humid ? t("Humid", "Umido") : t("Normal", "Normale"),
55707
+ tone: dry || humid ? "warning" : "info",
55708
+ since,
55709
+ sinceKind: "updated",
55710
+ historyKey: "cap:humidity-sensor.humidity"
55711
+ };
55712
+ }
55713
+ function textMeasurement(text, since) {
55714
+ return {
55715
+ quantity: "text",
55716
+ reading: null,
55717
+ icon: null,
55718
+ value: same$2(text),
55719
+ unit: null,
55720
+ band: null,
55721
+ level: null,
55722
+ word: t("Changed", "Cambiato"),
55723
+ tone: "muted",
55724
+ since,
55725
+ sinceKind: "updated",
55726
+ historyKey: null
55727
+ };
55728
+ }
55579
55729
  /** The scene as the model carries it. `null` = the device did not say (never a guess). */
55580
55730
  var HeroSceneSchema = object({
55581
55731
  id: _enum([
@@ -55627,11 +55777,6 @@ var HeroSceneSchema = object({
55627
55777
  });
55628
55778
  DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.HeatPump, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer, DeviceType.Gateway;
55629
55779
  DeviceRole.Siren, DeviceRole.Floodlight, DeviceRole.Spotlight, DeviceRole.PirSensor, DeviceRole.Chime, DeviceRole.Autotrack, DeviceRole.Nightvision, DeviceRole.PrivacyMask, DeviceRole.Doorbell, DeviceRole.CoverBlind, DeviceRole.CoverShutter, DeviceRole.CoverAwning, DeviceRole.CoverCurtain, DeviceRole.CoverGarage, DeviceRole.CoverGate, DeviceRole.CoverDoor, DeviceRole.CoverWindow, DeviceRole.BinaryHelper, DeviceRole.Outlet, DeviceRole.SwitchHeater, DeviceRole.SwitchFan, DeviceRole.ClimateAc, DeviceRole.ClimateThermostat, DeviceRole.ClimateFloor, DeviceRole.ClimateRadiator, DeviceRole.ClimateHeater, DeviceRole.ClimateHeatPumpCircuit, DeviceRole.MotionSensor, DeviceRole.ContactSensor, DeviceRole.LeakSensor, DeviceRole.SmokeSensor, DeviceRole.COSensor, DeviceRole.GasSensor, DeviceRole.TamperSensor, DeviceRole.VibrationSensor, DeviceRole.ConnectivitySensor, DeviceRole.SoundSensor, DeviceRole.BinarySensor, DeviceRole.TemperatureSensor, DeviceRole.HumiditySensor, DeviceRole.AmbientLightSensor, DeviceRole.PressureSensor, DeviceRole.WindSensor, DeviceRole.RainSensor, DeviceRole.UvSensor, DeviceRole.SolarRadiationSensor, DeviceRole.SoilMoistureSensor, DeviceRole.PowerSensor, DeviceRole.EnergySensor, DeviceRole.VoltageSensor, DeviceRole.CurrentSensor, DeviceRole.AirQualitySensor, DeviceRole.BatterySensor, DeviceRole.NumericSensor, DeviceRole.EnumSensor, DeviceRole.DateTimeSensor, DeviceRole.GenericSensor, DeviceRole.NumericControl, DeviceRole.SelectControl, DeviceRole.TextControl, DeviceRole.DateTimeControl, DeviceRole.MobilePushNotifier, DeviceRole.MessagingNotifier, DeviceRole.EmailNotifier, DeviceRole.GenericNotifier, DeviceRole.IrTransmitter;
55630
- /** A string in both languages, as the cap vocabulary writes it (D920): no `t()` in the model. */
55631
- var HeroTextSchema = object({
55632
- en: string(),
55633
- it: string()
55634
- });
55635
55780
  var HeroRowIdSchema = _enum([
55636
55781
  "progress",
55637
55782
  "run-for",
@@ -55737,6 +55882,25 @@ var HeroControlSchema = discriminatedUnion("kind", [
55737
55882
  optionLabels: record(string(), HeroTextSchema).optional(),
55738
55883
  call: HeroCallSchema,
55739
55884
  valueArg: string()
55885
+ }),
55886
+ object({
55887
+ kind: literal("number"),
55888
+ id: string(),
55889
+ label: HeroTextSchema,
55890
+ value: number$1().nullable(),
55891
+ /** `null` = any number; the device rounds what it does not accept. */
55892
+ step: number$1().nullable(),
55893
+ unit: string(),
55894
+ call: HeroCallSchema,
55895
+ valueArg: string()
55896
+ }),
55897
+ object({
55898
+ kind: literal("text"),
55899
+ id: string(),
55900
+ label: HeroTextSchema,
55901
+ value: string().nullable(),
55902
+ call: HeroCallSchema,
55903
+ valueArg: string()
55740
55904
  })
55741
55905
  ]);
55742
55906
  /** Declared by its interface: a `z.infer` of one more icon union pushes the cap's inferred type past what the compiler can print. */
@@ -55938,6 +56102,11 @@ var HeroModelSchema = object({
55938
56102
  timedRun: HeroTimedRunSlotSchema.nullable(),
55939
56103
  powerSupply: HeroPowerSupplySlotSchema.nullable(),
55940
56104
  rows: array(HeroRowSchema),
56105
+ /**
56106
+ * The ONE measurement of a simple sensor, drawn once inside the scene in place of
56107
+ * the caption, tiles and value chips. Absent = the card draws as before.
56108
+ */
56109
+ measurement: HeroMeasurementSchema.optional(),
55941
56110
  /** Ids of parts that actuate the device, hidden from a session that may not act on it. */
55942
56111
  gated: array(string()),
55943
56112
  provenance: array(HeroProvenanceSchema)
@@ -56009,7 +56178,13 @@ var HeroRowModelSchema = object({
56009
56178
  * the call. Absent or empty = `primary` alone.
56010
56179
  */
56011
56180
  extras: array(HeroControlSchema).max(2).optional(),
56012
- trailing: HeroFactSchema.nullable()
56181
+ trailing: HeroFactSchema.nullable(),
56182
+ /**
56183
+ * The simple sensor's one reading (the hero's `measurement`): the row draws its value
56184
+ * at the right, the unit small, the quantity's icon in the mini-scene. Absent = an
56185
+ * older server or a device that is not a simple sensor: draw `trailing`.
56186
+ */
56187
+ measurement: HeroMeasurementSchema.optional()
56013
56188
  });
56014
56189
  new Set([
56015
56190
  "temperature",
@@ -73056,10 +73231,15 @@ var RecordingSignalStatusSchema = object({
73056
73231
  });
73057
73232
  RecordingSignalStatusSchema.extend({ lastFetchedAt: number$1() });
73058
73233
  DeviceType.Camera, method(object({ deviceId: number$1() }), RecordingSignalStatusSchema);
73059
- var RemoteBindingSchema = object({ action: AutomationCapStepBaseSchema.omit({
73060
- target: true,
73061
- actionId: true
73062
- }).extend({ deviceId: number$1().int().nonnegative() }) });
73234
+ var RemoteBindingSchema = object({ action: object({
73235
+ kind: literal("cap"),
73236
+ deviceId: number$1().int().nonnegative(),
73237
+ cap: string().min(1),
73238
+ method: string().min(1),
73239
+ args: record(string(), unknown()).optional(),
73240
+ /** The unit the person picked per arg (display only); `args` always hold the cap's own unit. */
73241
+ argUnits: record(string(), string().min(1)).optional()
73242
+ }) });
73063
73243
  var RemoteCustomButtonSchema = object({
73064
73244
  /** The slug after `custom:` in the role. */
73065
73245
  key: string().refine(isRemoteCustomKey, { message: "a lowercase slug" }),
@@ -78486,6 +78666,13 @@ function contribution(cap, schema, build) {
78486
78666
  }
78487
78667
  };
78488
78668
  }
78669
+ /** The fragment, carrying the cap's single measurement when it has one. */
78670
+ function measured(fragment, measurement) {
78671
+ return measurement === void 0 ? fragment : {
78672
+ ...fragment,
78673
+ measurement
78674
+ };
78675
+ }
78489
78676
  function action(id, label, icon, cap, method, args = {}, emphasis = "normal", confirm = null) {
78490
78677
  return {
78491
78678
  id,
@@ -79760,10 +79947,26 @@ var controlContribution = contribution("control", ControlStatusSchema, (slice, c
79760
79947
  };
79761
79948
  });
79762
79949
  var CONTROL_LABEL = t("Value", "Valore");
79763
- /** A number with known bounds is a slider, a choice a picker; text and dates stay read-only. */
79950
+ /**
79951
+ * A number with known bounds is a slider, one without a number field, a choice a picker,
79952
+ * free text a text field; a date stays read-only.
79953
+ */
79764
79954
  function controlRows(slice) {
79765
79955
  if (slice.kind === "numeric" && typeof slice.value === "number") {
79766
- if (slice.min === void 0 || slice.max === void 0) return [];
79956
+ if (slice.min === void 0 || slice.max === void 0) return [row$1("control", "sliders-horizontal", null, [{
79957
+ kind: "number",
79958
+ id: "control.value",
79959
+ label: CONTROL_LABEL,
79960
+ value: slice.value,
79961
+ step: slice.step ?? null,
79962
+ unit: "",
79963
+ call: {
79964
+ cap: "control",
79965
+ method: "setValue",
79966
+ args: { control: { kind: "numeric" } }
79967
+ },
79968
+ valueArg: "control.value"
79969
+ }])];
79767
79970
  return [row$1("control", "sliders-horizontal", null, [{
79768
79971
  kind: "slider",
79769
79972
  id: "control.value",
@@ -79794,6 +79997,18 @@ function controlRows(slice) {
79794
79997
  },
79795
79998
  valueArg: "control.value"
79796
79999
  }])];
80000
+ if (slice.kind === "text") return [row$1("control", "sliders-horizontal", null, [{
80001
+ kind: "text",
80002
+ id: "control.value",
80003
+ label: CONTROL_LABEL,
80004
+ value: typeof slice.value === "string" ? slice.value : null,
80005
+ call: {
80006
+ cap: "control",
80007
+ method: "setValue",
80008
+ args: { control: { kind: "text" } }
80009
+ },
80010
+ valueArg: "control.value"
80011
+ }])];
79797
80012
  return [];
79798
80013
  }
79799
80014
  var SENSORS_FAMILY_CONTRIBUTIONS = {
@@ -80149,15 +80364,15 @@ function sensorFragment(value, id, icon, en, it, text) {
80149
80364
  tiles: { right: [tile$1(en, it, text)] }
80150
80365
  };
80151
80366
  }
80152
- var temperatureContribution = contribution("temperature-sensor", TemperatureSensorStatusSchema, (slice) => sensorFragment(slice?.temperature ?? null, "temperature", "thermometer", "Temperature", "Temperatura", formatDegrees(slice?.temperature ?? 0)));
80153
- var humidityContribution = contribution("humidity-sensor", HumiditySensorStatusSchema, (slice) => sensorFragment(slice?.humidity ?? null, "humidity", "droplets", "Humidity", "Umidità", `${Math.round(slice?.humidity ?? 0)}%`));
80367
+ var temperatureContribution = contribution("temperature-sensor", TemperatureSensorStatusSchema, (slice) => measured(sensorFragment(slice?.temperature ?? null, "temperature", "thermometer", "Temperature", "Temperatura", formatDegrees(slice?.temperature ?? 0)), slice?.temperature == null ? void 0 : temperatureMeasurement(slice.temperature, slice.lastFetchedAt)));
80368
+ var humidityContribution = contribution("humidity-sensor", HumiditySensorStatusSchema, (slice) => measured(sensorFragment(slice?.humidity ?? null, "humidity", "droplets", "Humidity", "Umidità", `${Math.round(slice?.humidity ?? 0)}%`), slice?.humidity == null ? void 0 : humidityMeasurement(slice.humidity, slice.lastFetchedAt)));
80154
80369
  var pressureContribution = contribution("pressure-sensor", PressureSensorStatusSchema, (slice) => sensorFragment(slice?.pressure ?? null, "pressure", "gauge", "Pressure", "Pressione", `${Math.round(slice?.pressure ?? 0)} hPa`));
80155
80370
  var illuminanceContribution = contribution("ambient-light-sensor", AmbientLightSensorStatusSchema, (slice) => sensorFragment(slice?.illuminance ?? null, "illuminance", "sun", "Light", "Luce", `${Math.round(slice?.illuminance ?? 0)} lx`));
80156
80371
  var numericContribution = contribution("numeric-sensor", NumericSensorStatusSchema, (slice) => sensorFragment(slice?.value ?? null, "reading", "gauge", "Value", "Valore", String(Number((slice?.value ?? 0).toFixed(2)))));
80157
80372
  var enumContribution = contribution("enum-sensor", EnumSensorStatusSchema, (slice) => {
80158
80373
  if (slice === void 0 || slice.value === "") return { reading: reading("sensor", "unknown") };
80159
80374
  if (slice.timestamp === true) return { reading: reading("sensor", "on") };
80160
- return sensorFragment(slice.value, "reading", "gauge", "State", "Stato", slice.value);
80375
+ return measured(sensorFragment(slice.value, "reading", "gauge", "State", "Stato", slice.value), textMeasurement(slice.value, slice.lastFetchedAt));
80161
80376
  });
80162
80377
  /** Index bands: the headline of an air-quality sensor is a word, not a number. */
80163
80378
  function airQualityWord(aqi) {
@@ -83053,6 +83268,13 @@ Object.freeze({
83053
83268
  access: "view",
83054
83269
  role: "admin"
83055
83270
  },
83271
+ "deviceExport.setExposedName": {
83272
+ capName: "device-export",
83273
+ capScope: "system",
83274
+ addonId: null,
83275
+ access: "create",
83276
+ role: "admin"
83277
+ },
83056
83278
  "deviceExport.unexposeDevice": {
83057
83279
  capName: "device-export",
83058
83280
  capScope: "system",
@@ -91517,48 +91739,6 @@ Object.freeze({
91517
91739
  role: "admin"
91518
91740
  }
91519
91741
  });
91520
- /**
91521
- * "Do" actions an operator can pick for a device — presentation-free.
91522
- *
91523
- * The wire shape stays `{ cap, method, args }`. Since D920 this module no
91524
- * longer HOLDS a catalogue: {@link DEVICE_DO_ACTIONS} is a projection of the
91525
- * cap vocabulary (`cap-vocabulary/`), the one cap-keyed map of every action
91526
- * and trigger — so a picker built on this module and one built on
91527
- * `actionsForDevice` (the vocabulary resolver) can never disagree about what
91528
- * a device can do. Ids, baked args and the matching of saved steps are the
91529
- * vocabulary's; labels here are its English labels.
91530
- *
91531
- * Shared by the admin NC Sequences / rule Do editor and Automations; the
91532
- * viewer can reuse the same catalogue once its step editor catches up.
91533
- */
91534
- function openArgKind(offer) {
91535
- if (offer.kind === "number") return "number";
91536
- if (offer.kind === "dynamic" && offer.valueKind === "number") return "number";
91537
- if (offer.kind === "enum" && offer.values.every((v) => typeof v.value === "number")) return "number";
91538
- return "string";
91539
- }
91540
- function projectOpenArg(arg) {
91541
- return {
91542
- key: arg.key,
91543
- label: arg.label.en,
91544
- kind: openArgKind(arg.offer),
91545
- offer: arg.offer,
91546
- ...arg.optional === true ? { optional: true } : {}
91547
- };
91548
- }
91549
- function projectAction(cap, action) {
91550
- const open = action.openArgs ?? [];
91551
- return {
91552
- id: action.id,
91553
- label: action.label.en,
91554
- cap,
91555
- method: action.method,
91556
- args: action.args ?? {},
91557
- ...open.length > 0 ? { openArgs: open.map(projectOpenArg) } : {}
91558
- };
91559
- }
91560
- Object.entries(CAP_VOCABULARY_BY_NAME).flatMap(([cap, entry]) => entry.scope === "device" ? (entry.actions ?? []).map((a) => projectAction(cap, a)) : []);
91561
- DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.HeatPump, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer, DeviceType.Gateway;
91562
91742
  DeviceFeature.BatteryOperated;
91563
91743
  function bound(cap, methods = [], authority = "reported") {
91564
91744
  return {
@@ -95004,6 +95184,15 @@ function systemEventKindsOfFamily(family) {
95004
95184
  return NC_SYSTEM_EVENT_KIND_GROUP_SPECS.filter((g) => g.family === family).flatMap((g) => g.kinds);
95005
95185
  }
95006
95186
  NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
95187
+ new Set([
95188
+ "alarm.trigger",
95189
+ "alarm.disarm",
95190
+ "alarm.arm.home",
95191
+ "alarm.arm.away",
95192
+ "alarm.arm.night",
95193
+ "alarm.arm.vacation",
95194
+ "alarm.arm.custom_bypass"
95195
+ ]);
95007
95196
  /**
95008
95197
  * WHICH WAY A BOOLEAN SENSOR MOVED — read off the one slice a sensor event
95009
95198
  * persists (D640 "a sensor rule fires on the raise, the clear, or both").
@@ -96095,7 +96284,7 @@ var AdminUIAddon = class extends BaseAddon {
96095
96284
  capability: adminUiCapability,
96096
96285
  provider: {
96097
96286
  getStaticDir: async () => ({ staticDir: resolveAdminUiDistDir() }),
96098
- getVersion: async () => ({ version: "1.2.652" })
96287
+ getVersion: async () => ({ version: "1.2.654" })
96099
96288
  }
96100
96289
  }];
96101
96290
  }