@camstack/addon-admin-ui 1.2.628 → 1.2.630

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 (140) hide show
  1. package/CHANGELOG.md +12 -6
  2. package/dist/assets/{Addons-DYXP9Vml.js → Addons-BPGXuKqn.js} +1 -1
  3. package/dist/assets/{AdminPage-D8jyd8NK.js → AdminPage-jW6IDTUf.js} +1 -1
  4. package/dist/assets/{AdminSectionedPage-BVfSxBNr.js → AdminSectionedPage-f8fGddbQ.js} +1 -1
  5. package/dist/assets/{AiProfiles-cx0x2sbl.js → AiProfiles-CIdJO-TD.js} +1 -1
  6. package/dist/assets/{Authentication-C15V7E8r.js → Authentication-B8-hv1JE.js} +1 -1
  7. package/dist/assets/Build-0FsPVo2P.js +39 -0
  8. package/dist/assets/{Calendars-BwAVxLT1.js → Calendars-DGQfucVm.js} +1 -1
  9. package/dist/assets/{CameraGrids-DZskmHW3.js → CameraGrids-CqSKWP-r.js} +1 -1
  10. package/dist/assets/{Cluster-B1_BYrrA.js → Cluster-BIJyBTTf.js} +1 -1
  11. package/dist/assets/CompositionBlockEditor-CW5DAeUs.js +2 -0
  12. package/dist/assets/{CompositionEditorPage-ewhTgbIT.js → CompositionEditorPage-DdOX4bAI.js} +1 -1
  13. package/dist/assets/{Data-CRPjnR7i.js → Data-D58GSELK.js} +1 -1
  14. package/dist/assets/DeviceDetail-BkpmSnL4.js +2 -0
  15. package/dist/assets/{DeviceDoActionFields-C5X74bZ6.js → DeviceDoActionFields-Ctyt40C4.js} +1 -1
  16. package/dist/assets/{Devices-BZZZzZZt.js → Devices-Bj3juAG-.js} +1 -1
  17. package/dist/assets/{EmbedPlayerPage-B7SerkXI.js → EmbedPlayerPage-DLSmtcv2.js} +1 -1
  18. package/dist/assets/{History-CB2UV29J.js → History-DKFMd0pT.js} +1 -1
  19. package/dist/assets/{Identity-FncxI-3k.js → Identity-CvEEcPSv.js} +1 -1
  20. package/dist/assets/{InstanceSwitchCell-DL1wNRqw.js → InstanceSwitchCell-OBG8GAAT.js} +1 -1
  21. package/dist/assets/{InstancesTable-C9lW5ahJ.js → InstancesTable-DbKNEkch.js} +1 -1
  22. package/dist/assets/{IntegrationDetail-CRgTh0vI.js → IntegrationDetail-BnrTyomp.js} +1 -1
  23. package/dist/assets/{IntegrationHub-itremyka.js → IntegrationHub-BGyuGwSJ.js} +1 -1
  24. package/dist/assets/{Integrations-Doe4DOLd.js → Integrations-Bfjwk3oQ.js} +1 -1
  25. package/dist/assets/{Integrations-CKsDYSo_.js → Integrations-n7echpSK.js} +1 -1
  26. package/dist/assets/{Library-DZAOkZl5.js → Library-BbRB8NQE.js} +1 -1
  27. package/dist/assets/{Locations-BWYHqMs1.js → Locations-9x_-rSAt.js} +1 -1
  28. package/dist/assets/{Logs-BtV5zfyp.js → Logs-_tKPP15u.js} +1 -1
  29. package/dist/assets/{MaskShapeCanvas-C5NPlFTZ.js → MaskShapeCanvas-CVaLlNDu.js} +1 -1
  30. package/dist/assets/{MotionZonesSettings-DBiJiDpA.js → MotionZonesSettings-GFDvOaPr.js} +1 -1
  31. package/dist/assets/{MyAccess-Dn6aOrRH.js → MyAccess-B-u_E545.js} +1 -1
  32. package/dist/assets/{Network-Bb5q027q.js → Network-DFw9fYvt.js} +1 -1
  33. package/dist/assets/{NodeAddonsSettingsPanel-B2CB5Cql.js → NodeAddonsSettingsPanel-BNCeWOXe.js} +1 -1
  34. package/dist/assets/Notifications-CdPO0iWF.js +1 -0
  35. package/dist/assets/{Pipeline-DGVG0VZc.js → Pipeline-CHm2AQv8.js} +1 -1
  36. package/dist/assets/{PrivacyMaskSettings-Cxcz6fqW.js → PrivacyMaskSettings-DqZ9UPD6.js} +1 -1
  37. package/dist/assets/{Recordings-DwBtl1P7.js → Recordings-BK7UHyqX.js} +1 -1
  38. package/dist/assets/{ScanSubnetEditor-Om5o0_fX.js → ScanSubnetEditor-ozmT3RiV.js} +1 -1
  39. package/dist/assets/{SceneMonitorEditor-C3Ht01Y_.js → SceneMonitorEditor-DDH5_fqB.js} +1 -1
  40. package/dist/assets/{SessionsList-CLJLWiDV.js → SessionsList-NCp0Ne73.js} +1 -1
  41. package/dist/assets/{Showroom-DHls8MSr.js → Showroom-B7NOB1ED.js} +1 -1
  42. package/dist/assets/{StorageLocationsTable-Ch3ABRRX.js → StorageLocationsTable-BOoJHvC_.js} +1 -1
  43. package/dist/assets/{System-DTVt3mqw.js → System-6CUPshkX.js} +1 -1
  44. package/dist/assets/{Templates-DSIFW4Sg.js → Templates-CbglBYmV.js} +1 -1
  45. package/dist/assets/{Terminal-DtQsE9UM.js → Terminal-DOVgd8BS.js} +1 -1
  46. package/dist/assets/{TrainingProviders-d3o_ZKQJ.js → TrainingProviders-BnLTHaLi.js} +1 -1
  47. package/dist/assets/{Viewer-630uaAn-.js → Viewer-DUnhgz8U.js} +1 -1
  48. package/dist/assets/{_virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-CCci1-8S.js → _virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-CmuxKzRL.js} +1 -1
  49. package/dist/assets/{ai-page.helpers-DYP6h9NO.js → ai-page.helpers-rRn5Dnkg.js} +1 -1
  50. package/dist/assets/{archive-JrYGCSml.js → archive-D8MArnbG.js} +1 -1
  51. package/dist/assets/{assignment-candidates-Bg8uFhC2.js → assignment-candidates-Dnb1VfY4.js} +1 -1
  52. package/dist/assets/{authed-media-Bf-hw8ZZ.js → authed-media-9xcpfhXC.js} +1 -1
  53. package/dist/assets/{bell-off-Bpmfs7A4.js → bell-off-ENcL_pd-.js} +1 -1
  54. package/dist/assets/{board-model-C4Q-Tf8g.js → board-model-GGSgQppc.js} +1 -1
  55. package/dist/assets/{boxes-li1RD5xe.js → boxes-CY55z6Ff.js} +1 -1
  56. package/dist/assets/{calendar-clock-DztRh5OG.js → calendar-clock-CkAnjODE.js} +1 -1
  57. package/dist/assets/{circle-arrow-up-CZgLptGX.js → circle-arrow-up-7gnRqxkx.js} +1 -1
  58. package/dist/assets/circle-slash-DSDcJE7U.js +1 -0
  59. package/dist/assets/client-BH6SJ4dQ.js +839 -0
  60. package/dist/assets/create-composition-C8Q_K5CP.js +2 -0
  61. package/dist/assets/crop-VCeKRhl3.js +1 -0
  62. package/dist/assets/{database-zap-D5EwGo_g.js → database-zap-BFdfAbfh.js} +1 -1
  63. package/dist/assets/{device-integration-icon-C4Qf-4Rd.js → device-integration-icon-hB_qJ4LX.js} +1 -1
  64. package/dist/assets/device-picker-model-ib8rRrH4.js +1 -0
  65. package/dist/assets/{dist-COIeUAeS.js → dist-P-pOuOgg.js} +1 -1
  66. package/dist/assets/dist-iBKsH9PQ.js +839 -0
  67. package/dist/assets/{eraser-CrZ4yaiD.js → eraser-CzP_4y13.js} +1 -1
  68. package/dist/assets/{file-up-CCndGa8K.js → file-up-BsyWA4t-.js} +1 -1
  69. package/dist/assets/{format-vZthOBDI.js → format-DEEo-r4V.js} +1 -1
  70. package/dist/assets/{hard-drive-download-BOts87eq.js → hard-drive-download-DC7u8rmQ.js} +1 -1
  71. package/dist/assets/{hostInit-KnMePivw.js → hostInit-C0wqD-Kv.js} +1 -1
  72. package/dist/assets/i18n-BslHm0aZ.js +1 -0
  73. package/dist/assets/icons-BWbyg3wC.js +1 -0
  74. package/dist/assets/{index-DCQq1ksG.js → index-DiGUzfG6.js} +3 -3
  75. package/dist/assets/{key-DlDr1x_1.js → key-DbnyV6ch.js} +1 -1
  76. package/dist/assets/{key-square-Dg-fQSMX.js → key-square-DzusqyCK.js} +1 -1
  77. package/dist/assets/{layers-qknQ4SI0.js → layers-C11xg7Mw.js} +1 -1
  78. package/dist/assets/{link-2-off-ClQoCkvl.js → link-2-off-DpcvRBs9.js} +1 -1
  79. package/dist/assets/{linked-devices-model-BxDwmRW0.js → linked-devices-model-DI0cLsYl.js} +1 -1
  80. package/dist/assets/{list-ordered-DK6yrsuq.js → list-ordered-bKiX6ntt.js} +1 -1
  81. package/dist/assets/{memory-stick-4bgTdR1n.js → memory-stick-D2cyx77e.js} +1 -1
  82. package/dist/assets/{message-square-plus-Bv2lcMzp.js → message-square-plus-CdJ0WtpV.js} +1 -1
  83. package/dist/assets/{mf-entry-bootstrap-0-9a11aec7.js → mf-entry-bootstrap-0-e0956738.js} +2 -2
  84. package/dist/assets/{mic-off-CwdWl1x4.js → mic-off-CnaWK1oj.js} +1 -1
  85. package/dist/assets/{monitor-off-Ccscg8YU.js → monitor-off-DxkJ0Gf-.js} +1 -1
  86. package/dist/assets/{monitor-smartphone-C8BeBYyf.js → monitor-smartphone-BKN2w_Yb.js} +1 -1
  87. package/dist/assets/mount-ib8rRrH4.js +1 -0
  88. package/dist/assets/{notification-rule-status-BrmTbrp9.js → notification-rule-status-We26Y6rE.js} +1 -1
  89. package/dist/assets/{player-overlays-BPvPXIk8.js → player-overlays-By97xFtJ.js} +1 -1
  90. package/dist/assets/remoteEntry-CO-0F-ly.js +1 -0
  91. package/dist/assets/{ruler-CH-94_uK.js → ruler-BpCYrjF_.js} +1 -1
  92. package/dist/assets/{scan-eye-D_sweDOa.js → scan-eye-D7X92RfU.js} +1 -1
  93. package/dist/assets/{scissors-DPQ0H7Hw.js → scissors-zxnX2diN.js} +1 -1
  94. package/dist/assets/{search-x-Bcr_N2Jd.js → search-x-MrIacxLz.js} +1 -1
  95. package/dist/assets/{send-dBvBmsQA.js → send-DFRLoWOh.js} +1 -1
  96. package/dist/assets/{settings-2-CUqyfTbY.js → settings-2-D2eOgrvG.js} +1 -1
  97. package/dist/assets/{shapes-1kA4AD87.js → shapes-BBlQIwot.js} +1 -1
  98. package/dist/assets/{sigma--1BGzaqj.js → sigma-ys9WIVBK.js} +1 -1
  99. package/dist/assets/src-DYsgso0a.js +169 -0
  100. package/dist/assets/{sso-popup-BGoesDjS.js → sso-popup-_MJHzwa1.js} +1 -1
  101. package/dist/assets/{step-inspector-model-XS8YChH9.js → step-inspector-model-CnQtYs5K.js} +1 -1
  102. package/dist/assets/{table-2-CilKmwQl.js → table-2-Dvlda_-j.js} +1 -1
  103. package/dist/assets/{timer-reset-D4i4Gq1v.js → timer-reset-YI0qCtUO.js} +1 -1
  104. package/dist/assets/ungroup-D0l55r1N.js +1 -0
  105. package/dist/assets/{unlink-D4LV8ueN.js → unlink-oV2v874Q.js} +1 -1
  106. package/dist/assets/{usb-CReSdVpL.js → usb-BPo5IU4J.js} +1 -1
  107. package/dist/assets/{use-device-bound-caps-D1IKyog8.js → use-device-bound-caps-DyUQjTtX.js} +1 -1
  108. package/dist/assets/{use-scenes-feed-Ch0tafaX.js → use-scenes-feed-B3p8nBta.js} +1 -1
  109. package/dist/assets/{use-stationary-objects-YYdmB4ug.js → use-stationary-objects-CD9yR5iw.js} +1 -1
  110. package/dist/assets/{useAdminDeviceRemoval-BFZd48u8.js → useAdminDeviceRemoval-BJFjxBC1.js} +1 -1
  111. package/dist/assets/useEventInvalidation-ib8rRrH4.js +1 -0
  112. package/dist/assets/{useNodeUrlSelection-DuUq732x.js → useNodeUrlSelection-BJUJbpFS.js} +1 -1
  113. package/dist/assets/useTemplateSave-gsMZ3x0j.js +1 -0
  114. package/dist/assets/user-round-Cy7oCHwq.js +1 -0
  115. package/dist/assets/{user-x-o0ouhQrV.js → user-x-BATyaO5S.js} +1 -1
  116. package/dist/assets/variable-CRCycAGa.js +1 -0
  117. package/dist/assets/{video-Cifrbvwj.js → video-GbTFZB7V.js} +1 -1
  118. package/dist/assets/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-ET0QdTsB.js → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-BT612bVv.js} +2 -2
  119. package/dist/index.html +9 -9
  120. package/dist/server/addon.js +182 -31
  121. package/package.json +2 -2
  122. package/dist/assets/Build-goVTGENZ.js +0 -39
  123. package/dist/assets/CompositionBlockEditor-BXmpBbjk.js +0 -2
  124. package/dist/assets/DeviceDetail-B5-2vX2l.js +0 -2
  125. package/dist/assets/Notifications-B96nhFZS.js +0 -1
  126. package/dist/assets/circle-slash-xZwqd0BU.js +0 -1
  127. package/dist/assets/client-BGa0ynTX.js +0 -809
  128. package/dist/assets/create-composition-D8ndL58S.js +0 -2
  129. package/dist/assets/crop-BoVOvHci.js +0 -1
  130. package/dist/assets/device-picker-model-LnwJcnrH.js +0 -1
  131. package/dist/assets/dist-ClneX5Rj.js +0 -809
  132. package/dist/assets/i18n-CKtnf08g.js +0 -1
  133. package/dist/assets/icons-DzRQ57dB.js +0 -1
  134. package/dist/assets/mount-LnwJcnrH.js +0 -1
  135. package/dist/assets/remoteEntry-Bfe_8orj.js +0 -1
  136. package/dist/assets/src-Bgosi05F.js +0 -169
  137. package/dist/assets/useEventInvalidation-LnwJcnrH.js +0 -1
  138. package/dist/assets/useTemplateSave-DB88BNeY.js +0 -1
  139. package/dist/assets/user-round-DeoBP4Ew.js +0 -1
  140. package/dist/assets/variable-BER3ndF7.js +0 -1
@@ -803,7 +803,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
803
803
  return EventCategory;
804
804
  }({});
805
805
  //#endregion
806
- //#region ../types/dist/device-type-DTTZKB2I.mjs
806
+ //#region ../types/dist/composed-stable-id-DLcPInGv.mjs
807
807
  /**
808
808
  import { errMsg } from '@camstack/types'
809
809
  * Extract a human-readable message from an unknown error value.
@@ -1205,6 +1205,12 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
1205
1205
  DeviceRole["IrTransmitter"] = "ir-transmitter";
1206
1206
  return DeviceRole;
1207
1207
  }({});
1208
+ /**
1209
+ * A composed device's stableId is this prefix plus the block id. Its own module,
1210
+ * free of zod, so the addon runner can read it through `@camstack/types/addon`
1211
+ * without loading the schema barrel (D28).
1212
+ */
1213
+ var COMPOSED_DEVICE_STABLE_ID_PREFIX = "composed-";
1208
1214
  //#endregion
1209
1215
  //#region ../../node_modules/zod/v4/core/core.js
1210
1216
  var _a$1;
@@ -5884,7 +5890,7 @@ var ZodIssueCode = {
5884
5890
  var ZodFirstPartyTypeKind;
5885
5891
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5886
5892
  //#endregion
5887
- //#region ../types/dist/sleep-DnVqHJc4.mjs
5893
+ //#region ../types/dist/sleep-B36hHDDz.mjs
5888
5894
  /**
5889
5895
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5890
5896
  * window to float samples (D455).
@@ -16460,7 +16466,7 @@ Object.freeze({
16460
16466
  }
16461
16467
  });
16462
16468
  //#endregion
16463
- //#region ../types/dist/composition-C6TZGqUb.mjs
16469
+ //#region ../types/dist/composition-BFJq1Y88.mjs
16464
16470
  /**
16465
16471
  * The ffmpeg build every CamStack node downloads, per platform and arch.
16466
16472
  *
@@ -17415,8 +17421,6 @@ var HelperSpecSchema = discriminatedUnion("kind", [
17415
17421
  source: HelperMemberSchema
17416
17422
  })
17417
17423
  ]);
17418
- /** A composed device's stableId is this prefix plus the block id. */
17419
- var COMPOSED_DEVICE_STABLE_ID_PREFIX = "composed-";
17420
17424
  /** Longest snippet a `code` source may carry (slice 4). */
17421
17425
  var MAX_COMPOSITION_CODE_LENGTH = 2e4;
17422
17426
  /** One field of one capability of one source device. */
@@ -43334,21 +43338,44 @@ var AutomationCapStepBaseSchema = object({
43334
43338
  */
43335
43339
  argUnits: record(string(), string().min(1)).optional()
43336
43340
  });
43337
- var AutomationCapStepSchema = AutomationCapStepBaseSchema.refine((step) => step.target !== void 0 || step.deviceId !== void 0, {
43341
+ /**
43342
+ * The steps an internal Action may contain: cap and wait, and nothing that can
43343
+ * call back into an Action — so an Action can never reach itself (no cycles).
43344
+ * This is the LEAF shape: no condition of its own.
43345
+ */
43346
+ var LeafActionStepSchema = discriminatedUnion("kind", [AutomationWaitStepSchema, AutomationCapStepBaseSchema.refine((step) => step.target !== void 0 || step.deviceId !== void 0, {
43338
43347
  message: "a cap step needs a target",
43339
43348
  path: ["target"]
43340
43349
  }).refine((step) => step.target?.kind !== "domain" || step.actionId !== void 0, {
43341
43350
  message: "a domain target needs the vocabulary action it applies to (actionId)",
43342
43351
  path: ["actionId"]
43343
- });
43352
+ })]);
43344
43353
  /**
43345
- * The steps an internal Action may contain: cap and wait, and nothing that can
43346
- * call back into an Action — so an Action can never reach itself (no cycles).
43354
+ * The optional guard of a step (#472): `if` is the ONE `when` tree (D980), read
43355
+ * on the state mirror when the step is reached; `else` runs when it is false.
43356
+ * An `else` holds leaf steps only — the nesting is bounded at ONE level, so a
43357
+ * branch can never grow a tree the trace has to draw.
43347
43358
  */
43348
- var ActionStepSchema = discriminatedUnion("kind", [AutomationWaitStepSchema, AutomationCapStepSchema]);
43359
+ var stepGuardShape = {
43360
+ if: AutomationWhenSchema.optional(),
43361
+ else: array(LeafActionStepSchema).max(10).optional()
43362
+ };
43363
+ var elseNeedsIf = {
43364
+ message: "an else list needs the condition it is the other side of (if)",
43365
+ path: ["else"]
43366
+ };
43367
+ var GuardedWaitStepSchema = AutomationWaitStepSchema.extend(stepGuardShape).refine((step) => step.else === void 0 || step.if !== void 0, elseNeedsIf);
43368
+ var GuardedCapStepSchema = AutomationCapStepBaseSchema.extend(stepGuardShape).refine((step) => step.target !== void 0 || step.deviceId !== void 0, {
43369
+ message: "a cap step needs a target",
43370
+ path: ["target"]
43371
+ }).refine((step) => step.target?.kind !== "domain" || step.actionId !== void 0, {
43372
+ message: "a domain target needs the vocabulary action it applies to (actionId)",
43373
+ path: ["actionId"]
43374
+ }).refine((step) => step.else === void 0 || step.if !== void 0, elseNeedsIf);
43375
+ var ActionStepSchema = discriminatedUnion("kind", [GuardedWaitStepSchema, GuardedCapStepSchema]);
43349
43376
  var AutomationActionSchema = discriminatedUnion("kind", [
43350
- AutomationWaitStepSchema,
43351
- AutomationCapStepSchema,
43377
+ GuardedWaitStepSchema,
43378
+ GuardedCapStepSchema,
43352
43379
  object({
43353
43380
  kind: literal("action"),
43354
43381
  /** An entry of the `actions` surface (`internal:<uuid>` or `<addonId>:<localId>`). */
@@ -43728,7 +43755,7 @@ var StepDeviceTraceSchema = object({
43728
43755
  outcome: _enum(["ok", "error"]),
43729
43756
  message: string().optional()
43730
43757
  });
43731
- var AutomationStepTraceSchema = object({
43758
+ var StepTraceBaseSchema = object({
43732
43759
  /** `actions.<i>` */
43733
43760
  path: string().min(1),
43734
43761
  kind: string().min(1),
@@ -43747,15 +43774,35 @@ var AutomationStepTraceSchema = object({
43747
43774
  * is shown as {@link REDACTED_ARG}. Absent on traces written before it existed.
43748
43775
  */
43749
43776
  args: record(string(), TraceValueSchema).optional(),
43750
- /** `empty`: the target resolved to no device, so nothing was done — never silently `ok`. */
43777
+ /**
43778
+ * The device values a templated arg printed as `—`, one `ref: reason` each
43779
+ * (D1021): why a sentence says "—" where a number was expected. Bounded.
43780
+ */
43781
+ templates: array(string()).max(20).optional(),
43782
+ /**
43783
+ * What the step's own `if` read when the step was reached (#472): `true` the
43784
+ * step ran, `false` its `else` ran (or nothing did), `unknown` a state leaf
43785
+ * could not be read, so NEITHER side ran. Absent on an unguarded step.
43786
+ */
43787
+ condition: _enum([
43788
+ "true",
43789
+ "false",
43790
+ "unknown"
43791
+ ]).optional(),
43792
+ /** Why the condition read what it read, in the evaluator's own words. */
43793
+ conditionReason: string().optional(),
43794
+ /** `empty`: the target resolved to no device, so nothing was done — never silently `ok`. `skipped`: its `if` was false (or unknown) and nothing ran in its place. */
43751
43795
  outcome: _enum([
43752
43796
  "ok",
43753
43797
  "error",
43754
43798
  "not-run",
43755
- "empty"
43799
+ "empty",
43800
+ "skipped"
43756
43801
  ]),
43757
43802
  message: string().optional()
43758
43803
  });
43804
+ /** A step trace; the `else` steps that ran are one level of the same shape (the nesting is bounded at one). */
43805
+ var AutomationStepTraceSchema = StepTraceBaseSchema.extend({ else: array(StepTraceBaseSchema).optional() });
43759
43806
  var AutomationRunTraceSchema = object({
43760
43807
  runId: string().min(1),
43761
43808
  startedAt: number$1(),
@@ -43931,6 +43978,7 @@ _enum([
43931
43978
  "invalid-variables",
43932
43979
  "invalid-steps",
43933
43980
  "not-linked",
43981
+ "template-scope",
43934
43982
  "busy"
43935
43983
  ]);
43936
43984
  object({
@@ -50369,6 +50417,43 @@ method(InstancePinSchema, DeviceExportStatusSchema), method(_void(), array(Expor
50369
50417
  auth: "admin"
50370
50418
  });
50371
50419
  var DeviceAliasSchema = string().max(64).regex(/^[a-z][a-z0-9_]*$/);
50420
+ var DeviceTemplateSchema = string().min(1).max(4096);
50421
+ var DeviceTemplateRefusalSchema = object({
50422
+ reason: _enum([
50423
+ "too-long",
50424
+ "syntax",
50425
+ "forbidden-syntax",
50426
+ "forbidden-member",
50427
+ "unknown-filter",
50428
+ "ambiguous-field",
50429
+ "busy",
50430
+ "budget-exceeded",
50431
+ "timeout",
50432
+ "output-too-large",
50433
+ "render-failed",
50434
+ "out-of-scope",
50435
+ "unavailable"
50436
+ ]),
50437
+ message: string()
50438
+ });
50439
+ var DeviceTemplateTraceEntrySchema = object({
50440
+ ref: string(),
50441
+ reason: _enum([
50442
+ "unknown-alias",
50443
+ "unknown-field",
50444
+ "no-field",
50445
+ "unavailable"
50446
+ ])
50447
+ });
50448
+ var DeviceTemplateRenderSchema = discriminatedUnion("ok", [object({
50449
+ ok: literal(true),
50450
+ text: string(),
50451
+ trace: array(DeviceTemplateTraceEntrySchema)
50452
+ }), object({
50453
+ ok: literal(false),
50454
+ refusal: DeviceTemplateRefusalSchema,
50455
+ trace: array(DeviceTemplateTraceEntrySchema)
50456
+ })]);
50372
50457
  /**
50373
50458
  * A SITE ZONE — a named part of the property that several locations belong to.
50374
50459
  *
@@ -51083,7 +51168,13 @@ method(object({
51083
51168
  auth: "admin"
51084
51169
  }), method(object({ deviceId: number$1() }), record(string(), unknown()), { auth: "admin" }), method(object({ deviceId: number$1() }), record(string(), unknown()), { auth: "admin" }), method(object({ deviceId: number$1() }), DeviceMetaSchema.nullable()), method(object({
51085
51170
  deviceId: number$1(),
51086
- name: string()
51171
+ name: string(),
51172
+ /**
51173
+ * Absent or true: an operator rename, which stamps `userNamed`.
51174
+ * False: the system copying a block name onto the device. That write
51175
+ * must not look like the operator's, or the next reconcile freezes it.
51176
+ */
51177
+ stampUserNamed: boolean().optional()
51087
51178
  }), _void(), {
51088
51179
  kind: "mutation",
51089
51180
  auth: "admin"
@@ -51107,6 +51198,22 @@ method(object({
51107
51198
  kind: "mutation",
51108
51199
  auth: "admin"
51109
51200
  }), method(object({
51201
+ templates: array(DeviceTemplateSchema).max(64),
51202
+ allowedDeviceIds: array(number$1().int()).optional()
51203
+ }), object({ results: array(DeviceTemplateRenderSchema) }), { auth: "admin" }), method(object({
51204
+ templates: array(string()).max(64),
51205
+ allowedDeviceIds: array(number$1().int()).optional()
51206
+ }), object({ results: array(discriminatedUnion("ok", [object({
51207
+ ok: literal(true),
51208
+ aliases: array(object({
51209
+ alias: string(),
51210
+ deviceId: number$1().int().nullable(),
51211
+ allowed: boolean()
51212
+ }))
51213
+ }), object({
51214
+ ok: literal(false),
51215
+ refusal: DeviceTemplateRefusalSchema
51216
+ })])) }), { auth: "admin" }), method(object({
51110
51217
  deviceId: number$1(),
51111
51218
  location: string().nullable()
51112
51219
  }), _void(), {
@@ -54435,7 +54542,13 @@ var HeroTimedRunSlotSchema = object({
54435
54542
  activeUntil: number$1().nullable(),
54436
54543
  quickRun: TimedRunQuickRunSchema,
54437
54544
  run: HeroActionSchema,
54438
- cancel: HeroActionSchema
54545
+ cancel: HeroActionSchema,
54546
+ /**
54547
+ * Whole units left (the limit's unit, ceil). `null` while nothing is armed.
54548
+ * A number, not words: the row formats it, and a text here would not fit the
54549
+ * hero-layout declaration.
54550
+ */
54551
+ remaining: number$1().nullable()
54439
54552
  });
54440
54553
  var HeroPowerSupplySlotSchema = object({
54441
54554
  /** The plug's state; `null` = unknown, never off. */
@@ -54554,18 +54667,31 @@ var HeroModelSchema = object({
54554
54667
  * 4. a trailing fact (power, else battery, else consumables).
54555
54668
  *
54556
54669
  * Selection rules, all taken from the model:
54557
- * - ONE control is ever shown: the device's own power; else the FIRST control of
54670
+ * - the primary control is the device's own power; else the FIRST control of
54558
54671
  * the FIRST row that has any (a later row's control is never promoted). When
54559
54672
  * the model lists that part in `gated`, the row has no inline control: the
54560
54673
  * projection never falls through to another control the caller could use.
54674
+ * - a timed run, when the model carries the slot, sits beside that primary:
54675
+ * Run while idle, Stop while armed. Gating the slot hides the control.
54561
54676
  * - the status line is the head (what plays, else the state) plus at most
54562
- * {@link ROW_STATUS_FACTS_MAX} facts, the trailing fact excluded;
54677
+ * {@link ROW_STATUS_FACTS_MAX} facts, the trailing fact excluded, then the
54678
+ * time left on an armed timed run;
54563
54679
  * - the trailing fact is the first of power, battery, consumables.
54564
54680
  *
54565
54681
  * `projectDeviceRow` is pure and computes nothing: it selects from a
54566
54682
  * {@link HeroModel}. A row that needed a value the hero lacks would mean the
54567
54683
  * model is missing it, so the fix goes in the model.
54568
54684
  */
54685
+ /**
54686
+ * The row's timed-run control. `id` is `timed-run.run` while idle and
54687
+ * `timed-run.cancel` while armed; `duration` and `unit` are the one-tap run
54688
+ * a Run press starts.
54689
+ */
54690
+ var HeroRowTimedRunSchema = object({
54691
+ id: _enum(["timed-run.run", "timed-run.cancel"]),
54692
+ duration: number$1(),
54693
+ unit: _enum(["min", "s"])
54694
+ });
54569
54695
  var HeroRowModelSchema = object({
54570
54696
  deviceId: number$1().int(),
54571
54697
  name: string(),
@@ -54578,6 +54704,11 @@ var HeroRowModelSchema = object({
54578
54704
  statusLine: array(HeroTextSchema),
54579
54705
  /** `null` = the type has no inline control, or the caller may not act on it. */
54580
54706
  primary: HeroControlSchema.nullable(),
54707
+ /**
54708
+ * Beside `primary` when the device offers a timed run: Run while idle, Stop
54709
+ * while armed. `null` when there is no slot, or the caller may not act.
54710
+ */
54711
+ timedRun: HeroRowTimedRunSchema.nullable(),
54581
54712
  trailing: HeroFactSchema.nullable()
54582
54713
  });
54583
54714
  /**
@@ -77094,6 +77225,7 @@ var AccessoryKind = {
77094
77225
  PrivacyMask: DeviceRole.PrivacyMask
77095
77226
  };
77096
77227
  AccessoryKind.Siren, AccessoryKind.Floodlight, AccessoryKind.Spotlight, AccessoryKind.PirSensor, AccessoryKind.Chime, AccessoryKind.Autotrack, AccessoryKind.Nightvision, AccessoryKind.PrivacyMask;
77228
+ DeviceType.HeatPump;
77097
77229
  DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.HeatPump, DeviceType.Camera, DeviceType.Hub, DeviceType.Switch, DeviceType.Siren, DeviceType.Light, DeviceType.Fan, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Heater, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer, DeviceType.Gateway;
77098
77230
  new Set(Object.values(DeviceType));
77099
77231
  /** Parses the raw slice with the cap's own schema; `undefined` when it does not parse. */
@@ -78840,7 +78972,7 @@ var CLIMATE_FAMILY_CONTRIBUTIONS = {
78840
78972
  /**
78841
78973
  * The heat pump's contribution to a hero (D1026): the compressor scene, every
78842
78974
  * circuit as a row with its own label and icon, the powers as pills (the
78843
- * instantaneous COP only when both powers are known) and a "System" group with
78975
+ * instantaneous COP is "—" when it cannot be computed) and a "System" group with
78844
78976
  * one selector per mode. Values and their limits come from the slice, which the
78845
78977
  * gateway filled: a selector with no allowed value is not drawn, a missing
78846
78978
  * reading is never a 0 (D393).
@@ -78912,9 +79044,22 @@ function circuitRow(circuit) {
78912
79044
  };
78913
79045
  }
78914
79046
  var kilowatts = (watts) => `${Number((watts / 1e3).toFixed(2))} kW`;
79047
+ /** A COP that cannot be computed is still the pill: "—", never an absent reading (D393). */
79048
+ function copPill(cop) {
79049
+ if (cop === null) return {
79050
+ icon: "gauge",
79051
+ text: t("Instantaneous COP —", "COP istantaneo —"),
79052
+ tone: "muted"
79053
+ };
79054
+ const text = String(Number(cop.toFixed(1)));
79055
+ return {
79056
+ icon: "gauge",
79057
+ text: t(`Instantaneous COP ${text}`, `COP istantaneo ${text}`),
79058
+ tone: "success"
79059
+ };
79060
+ }
78915
79061
  function powerPills(status) {
78916
79062
  const { thermalW, electricalW } = status.power;
78917
- const cop = heatPumpInstantCop(status.power);
78918
79063
  const pills = [];
78919
79064
  if (thermalW !== null) pills.push({
78920
79065
  icon: "flame",
@@ -78926,14 +79071,7 @@ function powerPills(status) {
78926
79071
  text: t(`Electrical ${kilowatts(electricalW)}`, `Elettrica ${kilowatts(electricalW)}`),
78927
79072
  tone: "muted"
78928
79073
  });
78929
- if (cop !== null) {
78930
- const text = String(Number(cop.toFixed(1)));
78931
- pills.push({
78932
- icon: "gauge",
78933
- text: t(`Instantaneous COP ${text}`, `COP istantaneo ${text}`),
78934
- tone: "success"
78935
- });
78936
- }
79074
+ pills.push(copPill(heatPumpInstantCop(status.power)));
78937
79075
  return pills;
78938
79076
  }
78939
79077
  /** The independent system modes, in the order the card draws them. */
@@ -81905,6 +82043,13 @@ Object.freeze({
81905
82043
  access: "create",
81906
82044
  role: "admin"
81907
82045
  },
82046
+ "deviceManager.checkDeviceTemplates": {
82047
+ capName: "device-manager",
82048
+ capScope: "system",
82049
+ addonId: null,
82050
+ access: "view",
82051
+ role: "admin"
82052
+ },
81908
82053
  "deviceManager.cleanupDeletedDevicesData": {
81909
82054
  capName: "device-manager",
81910
82055
  capScope: "system",
@@ -82304,6 +82449,13 @@ Object.freeze({
82304
82449
  access: "create",
82305
82450
  role: "admin"
82306
82451
  },
82452
+ "deviceManager.renderDeviceTemplates": {
82453
+ capName: "device-manager",
82454
+ capScope: "system",
82455
+ addonId: null,
82456
+ access: "view",
82457
+ role: "admin"
82458
+ },
82307
82459
  "deviceManager.reportDiscoveryObservations": {
82308
82460
  capName: "device-manager",
82309
82461
  capScope: "system",
@@ -90220,7 +90372,6 @@ function offered(received) {
90220
90372
  };
90221
90373
  }
90222
90374
  offered(HA_AS), withheld(HOMEKIT_REASON), withheld(ALEXA_REASON), withheld(GOOGLE_REASON), withheld(MATTER_REASON);
90223
- string().min(1).max(4096);
90224
90375
  Object.freeze({
90225
90376
  "accessories.getStatus": [{
90226
90377
  name: "deviceId",
@@ -94695,7 +94846,7 @@ var AdminUIAddon = class extends BaseAddon {
94695
94846
  capability: adminUiCapability,
94696
94847
  provider: {
94697
94848
  getStaticDir: async () => ({ staticDir: resolveAdminUiDistDir() }),
94698
- getVersion: async () => ({ version: "1.2.628" })
94849
+ getVersion: async () => ({ version: "1.2.630" })
94699
94850
  }
94700
94851
  }];
94701
94852
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-admin-ui",
3
- "version": "1.2.628",
3
+ "version": "1.2.630",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Admin UI — Vite frontend build and server-side addon",
@@ -50,7 +50,7 @@
50
50
  }
51
51
  ],
52
52
  "requires": {
53
- "server": ">=1.2.821"
53
+ "server": ">=1.2.823"
54
54
  }
55
55
  },
56
56
  "scripts": {