@camstack/addon-admin-ui 1.2.628 → 1.2.629

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 +6 -0
  2. package/dist/assets/{Addons-DYXP9Vml.js → Addons-DXODyv5I.js} +1 -1
  3. package/dist/assets/{AdminPage-D8jyd8NK.js → AdminPage--nOshaiL.js} +1 -1
  4. package/dist/assets/{AdminSectionedPage-BVfSxBNr.js → AdminSectionedPage-CIxyIGLX.js} +1 -1
  5. package/dist/assets/{AiProfiles-cx0x2sbl.js → AiProfiles-5gKlF5SA.js} +1 -1
  6. package/dist/assets/{Authentication-C15V7E8r.js → Authentication-hzo-rlN7.js} +1 -1
  7. package/dist/assets/Build-C9z1NeWg.js +39 -0
  8. package/dist/assets/{Calendars-BwAVxLT1.js → Calendars-FrpYAxLI.js} +1 -1
  9. package/dist/assets/{CameraGrids-DZskmHW3.js → CameraGrids-CRFHej8A.js} +1 -1
  10. package/dist/assets/{Cluster-B1_BYrrA.js → Cluster-BDWxBTf5.js} +1 -1
  11. package/dist/assets/CompositionBlockEditor-B8wPHPMS.js +2 -0
  12. package/dist/assets/{CompositionEditorPage-ewhTgbIT.js → CompositionEditorPage-87qNps97.js} +1 -1
  13. package/dist/assets/{Data-CRPjnR7i.js → Data-DHZySEHF.js} +1 -1
  14. package/dist/assets/DeviceDetail-C7gs8bGQ.js +2 -0
  15. package/dist/assets/{DeviceDoActionFields-C5X74bZ6.js → DeviceDoActionFields-BxRnVrO0.js} +1 -1
  16. package/dist/assets/{Devices-BZZZzZZt.js → Devices-pzVR6haD.js} +1 -1
  17. package/dist/assets/{EmbedPlayerPage-B7SerkXI.js → EmbedPlayerPage-C9s2VJTu.js} +1 -1
  18. package/dist/assets/{History-CB2UV29J.js → History-7hRpKxjf.js} +1 -1
  19. package/dist/assets/{Identity-FncxI-3k.js → Identity-B8icd7-t.js} +1 -1
  20. package/dist/assets/{InstanceSwitchCell-DL1wNRqw.js → InstanceSwitchCell-cco16r-2.js} +1 -1
  21. package/dist/assets/{InstancesTable-C9lW5ahJ.js → InstancesTable-YMZL4Hv9.js} +1 -1
  22. package/dist/assets/{IntegrationDetail-CRgTh0vI.js → IntegrationDetail-RzwMA2qX.js} +1 -1
  23. package/dist/assets/{IntegrationHub-itremyka.js → IntegrationHub-BKA8gHDZ.js} +1 -1
  24. package/dist/assets/{Integrations-Doe4DOLd.js → Integrations-DbQdu6YA.js} +1 -1
  25. package/dist/assets/{Integrations-CKsDYSo_.js → Integrations-DywBpzUX.js} +1 -1
  26. package/dist/assets/{Library-DZAOkZl5.js → Library-VR7dDYD8.js} +1 -1
  27. package/dist/assets/{Locations-BWYHqMs1.js → Locations-EYikOuy9.js} +2 -2
  28. package/dist/assets/{Logs-BtV5zfyp.js → Logs-CqVLnKoJ.js} +1 -1
  29. package/dist/assets/{MaskShapeCanvas-C5NPlFTZ.js → MaskShapeCanvas-t6MTg7DW.js} +1 -1
  30. package/dist/assets/{MotionZonesSettings-DBiJiDpA.js → MotionZonesSettings-Ce_0AnwA.js} +1 -1
  31. package/dist/assets/{MyAccess-Dn6aOrRH.js → MyAccess-CVkqSF20.js} +1 -1
  32. package/dist/assets/{Network-Bb5q027q.js → Network-C2DL0ybE.js} +1 -1
  33. package/dist/assets/{NodeAddonsSettingsPanel-B2CB5Cql.js → NodeAddonsSettingsPanel-BsRs7nSX.js} +1 -1
  34. package/dist/assets/Notifications-Ddo6djcY.js +1 -0
  35. package/dist/assets/{Pipeline-DGVG0VZc.js → Pipeline-BbXwqXcj.js} +1 -1
  36. package/dist/assets/{PrivacyMaskSettings-Cxcz6fqW.js → PrivacyMaskSettings-CQRTBLfQ.js} +1 -1
  37. package/dist/assets/{Recordings-DwBtl1P7.js → Recordings-FnSOlCqT.js} +1 -1
  38. package/dist/assets/{ScanSubnetEditor-Om5o0_fX.js → ScanSubnetEditor-Ci-X_MzU.js} +1 -1
  39. package/dist/assets/{SceneMonitorEditor-C3Ht01Y_.js → SceneMonitorEditor-1UIxobVK.js} +1 -1
  40. package/dist/assets/{SessionsList-CLJLWiDV.js → SessionsList-DkapSn12.js} +1 -1
  41. package/dist/assets/{Showroom-DHls8MSr.js → Showroom-BFVXwm8r.js} +1 -1
  42. package/dist/assets/{StorageLocationsTable-Ch3ABRRX.js → StorageLocationsTable-Cl3MSocN.js} +1 -1
  43. package/dist/assets/{System-DTVt3mqw.js → System-CTp2guOh.js} +1 -1
  44. package/dist/assets/{Templates-DSIFW4Sg.js → Templates-DZgrywI-.js} +1 -1
  45. package/dist/assets/{Terminal-DtQsE9UM.js → Terminal-C8n4HiiB.js} +1 -1
  46. package/dist/assets/{TrainingProviders-d3o_ZKQJ.js → TrainingProviders-BHszicEt.js} +1 -1
  47. package/dist/assets/{Viewer-630uaAn-.js → Viewer-D7bkozpi.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-Cs4KAbIo.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-Dr2xsoZM.js} +1 -1
  51. package/dist/assets/{assignment-candidates-Bg8uFhC2.js → assignment-candidates-M9WlDXc2.js} +1 -1
  52. package/dist/assets/{authed-media-Bf-hw8ZZ.js → authed-media-DZVZANhe.js} +1 -1
  53. package/dist/assets/{bell-off-Bpmfs7A4.js → bell-off-CChqeOx6.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-C-tRxuSn.js} +1 -1
  56. package/dist/assets/{calendar-clock-DztRh5OG.js → calendar-clock-BapEo3bQ.js} +1 -1
  57. package/dist/assets/{circle-arrow-up-CZgLptGX.js → circle-arrow-up-C-k8_6Du.js} +1 -1
  58. package/dist/assets/circle-slash-DRCv7Ven.js +1 -0
  59. package/dist/assets/client-D9JNvTKB.js +839 -0
  60. package/dist/assets/create-composition-mEvB2TiR.js +2 -0
  61. package/dist/assets/crop-Dw4PFyYQ.js +1 -0
  62. package/dist/assets/{database-zap-D5EwGo_g.js → database-zap-CM-osYT7.js} +1 -1
  63. package/dist/assets/{device-integration-icon-C4Qf-4Rd.js → device-integration-icon-DERlaAcW.js} +1 -1
  64. package/dist/assets/device-picker-model-DW_BwbBH.js +1 -0
  65. package/dist/assets/dist-BsRpfwIu.js +839 -0
  66. package/dist/assets/{dist-COIeUAeS.js → dist-CUMaXJDx.js} +1 -1
  67. package/dist/assets/{eraser-CrZ4yaiD.js → eraser-Bi88apXp.js} +1 -1
  68. package/dist/assets/{file-up-CCndGa8K.js → file-up-D5Tl1D4a.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-UvINP8cA.js} +1 -1
  71. package/dist/assets/{hostInit-KnMePivw.js → hostInit-DghBW5p6.js} +1 -1
  72. package/dist/assets/i18n-BslHm0aZ.js +1 -0
  73. package/dist/assets/icons-DmMPiBYd.js +1 -0
  74. package/dist/assets/{index-DCQq1ksG.js → index-2c1CGZrj.js} +3 -3
  75. package/dist/assets/{key-DlDr1x_1.js → key-qrcMkMMV.js} +1 -1
  76. package/dist/assets/{key-square-Dg-fQSMX.js → key-square-BZ4jnI9l.js} +1 -1
  77. package/dist/assets/{layers-qknQ4SI0.js → layers-Di5jzSuk.js} +1 -1
  78. package/dist/assets/{link-2-off-ClQoCkvl.js → link-2-off-CHTFpXLN.js} +1 -1
  79. package/dist/assets/{linked-devices-model-BxDwmRW0.js → linked-devices-model-DIM4rt7c.js} +1 -1
  80. package/dist/assets/{list-ordered-DK6yrsuq.js → list-ordered-BrXvIamS.js} +1 -1
  81. package/dist/assets/{memory-stick-4bgTdR1n.js → memory-stick-SsoFJudU.js} +1 -1
  82. package/dist/assets/{message-square-plus-Bv2lcMzp.js → message-square-plus-CatGSxYy.js} +1 -1
  83. package/dist/assets/{mf-entry-bootstrap-0-9a11aec7.js → mf-entry-bootstrap-0-47655283.js} +2 -2
  84. package/dist/assets/{mic-off-CwdWl1x4.js → mic-off-SHZW-v-M.js} +1 -1
  85. package/dist/assets/{monitor-off-Ccscg8YU.js → monitor-off-CtwV9eDP.js} +1 -1
  86. package/dist/assets/{monitor-smartphone-C8BeBYyf.js → monitor-smartphone-CmuZkW4P.js} +1 -1
  87. package/dist/assets/mount-DW_BwbBH.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-CZ2UPwFU.js} +1 -1
  90. package/dist/assets/remoteEntry-woQ7bkv3.js +1 -0
  91. package/dist/assets/{ruler-CH-94_uK.js → ruler-BZYez5zJ.js} +1 -1
  92. package/dist/assets/{scan-eye-D_sweDOa.js → scan-eye-BBUUAOIH.js} +1 -1
  93. package/dist/assets/{scissors-DPQ0H7Hw.js → scissors-DJFJfUvr.js} +1 -1
  94. package/dist/assets/{search-x-Bcr_N2Jd.js → search-x-CD7RPOCs.js} +1 -1
  95. package/dist/assets/{send-dBvBmsQA.js → send-DhrMYPlJ.js} +1 -1
  96. package/dist/assets/{settings-2-CUqyfTbY.js → settings-2-DRSQGPYz.js} +1 -1
  97. package/dist/assets/{shapes-1kA4AD87.js → shapes-CDn__a11.js} +1 -1
  98. package/dist/assets/{sigma--1BGzaqj.js → sigma-CroJASnI.js} +1 -1
  99. package/dist/assets/src-CnKWzfeC.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-D5-dT0fB.js} +1 -1
  102. package/dist/assets/{table-2-CilKmwQl.js → table-2-BxwWIn-y.js} +1 -1
  103. package/dist/assets/{timer-reset-D4i4Gq1v.js → timer-reset-ClRhcxmM.js} +1 -1
  104. package/dist/assets/ungroup-B7tPeNP_.js +1 -0
  105. package/dist/assets/{unlink-D4LV8ueN.js → unlink-CxpPjhkv.js} +1 -1
  106. package/dist/assets/{usb-CReSdVpL.js → usb-Bx-Cjevg.js} +1 -1
  107. package/dist/assets/{use-device-bound-caps-D1IKyog8.js → use-device-bound-caps-DIVrJIkK.js} +1 -1
  108. package/dist/assets/{use-scenes-feed-Ch0tafaX.js → use-scenes-feed-cfkeiUa4.js} +1 -1
  109. package/dist/assets/{use-stationary-objects-YYdmB4ug.js → use-stationary-objects-D9eVs3S4.js} +1 -1
  110. package/dist/assets/{useAdminDeviceRemoval-BFZd48u8.js → useAdminDeviceRemoval-whFm_6Fi.js} +1 -1
  111. package/dist/assets/useEventInvalidation-DW_BwbBH.js +1 -0
  112. package/dist/assets/{useNodeUrlSelection-DuUq732x.js → useNodeUrlSelection-qEkQhjp0.js} +1 -1
  113. package/dist/assets/useTemplateSave-BvYfXEvn.js +1 -0
  114. package/dist/assets/user-round-4-MOpEZk.js +1 -0
  115. package/dist/assets/{user-x-o0ouhQrV.js → user-x-BU8cPU0S.js} +1 -1
  116. package/dist/assets/variable-cuI5gx_W.js +1 -0
  117. package/dist/assets/{video-Cifrbvwj.js → video-ChuXnPSj.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_-a6KiaeUW.js} +2 -2
  119. package/dist/index.html +9 -9
  120. package/dist/server/addon.js +149 -15
  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
@@ -43334,21 +43334,44 @@ var AutomationCapStepBaseSchema = object({
43334
43334
  */
43335
43335
  argUnits: record(string(), string().min(1)).optional()
43336
43336
  });
43337
- var AutomationCapStepSchema = AutomationCapStepBaseSchema.refine((step) => step.target !== void 0 || step.deviceId !== void 0, {
43337
+ /**
43338
+ * The steps an internal Action may contain: cap and wait, and nothing that can
43339
+ * call back into an Action — so an Action can never reach itself (no cycles).
43340
+ * This is the LEAF shape: no condition of its own.
43341
+ */
43342
+ var LeafActionStepSchema = discriminatedUnion("kind", [AutomationWaitStepSchema, AutomationCapStepBaseSchema.refine((step) => step.target !== void 0 || step.deviceId !== void 0, {
43338
43343
  message: "a cap step needs a target",
43339
43344
  path: ["target"]
43340
43345
  }).refine((step) => step.target?.kind !== "domain" || step.actionId !== void 0, {
43341
43346
  message: "a domain target needs the vocabulary action it applies to (actionId)",
43342
43347
  path: ["actionId"]
43343
- });
43348
+ })]);
43344
43349
  /**
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).
43350
+ * The optional guard of a step (#472): `if` is the ONE `when` tree (D980), read
43351
+ * on the state mirror when the step is reached; `else` runs when it is false.
43352
+ * An `else` holds leaf steps only — the nesting is bounded at ONE level, so a
43353
+ * branch can never grow a tree the trace has to draw.
43347
43354
  */
43348
- var ActionStepSchema = discriminatedUnion("kind", [AutomationWaitStepSchema, AutomationCapStepSchema]);
43355
+ var stepGuardShape = {
43356
+ if: AutomationWhenSchema.optional(),
43357
+ else: array(LeafActionStepSchema).max(10).optional()
43358
+ };
43359
+ var elseNeedsIf = {
43360
+ message: "an else list needs the condition it is the other side of (if)",
43361
+ path: ["else"]
43362
+ };
43363
+ var GuardedWaitStepSchema = AutomationWaitStepSchema.extend(stepGuardShape).refine((step) => step.else === void 0 || step.if !== void 0, elseNeedsIf);
43364
+ var GuardedCapStepSchema = AutomationCapStepBaseSchema.extend(stepGuardShape).refine((step) => step.target !== void 0 || step.deviceId !== void 0, {
43365
+ message: "a cap step needs a target",
43366
+ path: ["target"]
43367
+ }).refine((step) => step.target?.kind !== "domain" || step.actionId !== void 0, {
43368
+ message: "a domain target needs the vocabulary action it applies to (actionId)",
43369
+ path: ["actionId"]
43370
+ }).refine((step) => step.else === void 0 || step.if !== void 0, elseNeedsIf);
43371
+ var ActionStepSchema = discriminatedUnion("kind", [GuardedWaitStepSchema, GuardedCapStepSchema]);
43349
43372
  var AutomationActionSchema = discriminatedUnion("kind", [
43350
- AutomationWaitStepSchema,
43351
- AutomationCapStepSchema,
43373
+ GuardedWaitStepSchema,
43374
+ GuardedCapStepSchema,
43352
43375
  object({
43353
43376
  kind: literal("action"),
43354
43377
  /** An entry of the `actions` surface (`internal:<uuid>` or `<addonId>:<localId>`). */
@@ -43728,7 +43751,7 @@ var StepDeviceTraceSchema = object({
43728
43751
  outcome: _enum(["ok", "error"]),
43729
43752
  message: string().optional()
43730
43753
  });
43731
- var AutomationStepTraceSchema = object({
43754
+ var StepTraceBaseSchema = object({
43732
43755
  /** `actions.<i>` */
43733
43756
  path: string().min(1),
43734
43757
  kind: string().min(1),
@@ -43747,15 +43770,35 @@ var AutomationStepTraceSchema = object({
43747
43770
  * is shown as {@link REDACTED_ARG}. Absent on traces written before it existed.
43748
43771
  */
43749
43772
  args: record(string(), TraceValueSchema).optional(),
43750
- /** `empty`: the target resolved to no device, so nothing was done — never silently `ok`. */
43773
+ /**
43774
+ * The device values a templated arg printed as `—`, one `ref: reason` each
43775
+ * (D1021): why a sentence says "—" where a number was expected. Bounded.
43776
+ */
43777
+ templates: array(string()).max(20).optional(),
43778
+ /**
43779
+ * What the step's own `if` read when the step was reached (#472): `true` the
43780
+ * step ran, `false` its `else` ran (or nothing did), `unknown` a state leaf
43781
+ * could not be read, so NEITHER side ran. Absent on an unguarded step.
43782
+ */
43783
+ condition: _enum([
43784
+ "true",
43785
+ "false",
43786
+ "unknown"
43787
+ ]).optional(),
43788
+ /** Why the condition read what it read, in the evaluator's own words. */
43789
+ conditionReason: string().optional(),
43790
+ /** `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
43791
  outcome: _enum([
43752
43792
  "ok",
43753
43793
  "error",
43754
43794
  "not-run",
43755
- "empty"
43795
+ "empty",
43796
+ "skipped"
43756
43797
  ]),
43757
43798
  message: string().optional()
43758
43799
  });
43800
+ /** A step trace; the `else` steps that ran are one level of the same shape (the nesting is bounded at one). */
43801
+ var AutomationStepTraceSchema = StepTraceBaseSchema.extend({ else: array(StepTraceBaseSchema).optional() });
43759
43802
  var AutomationRunTraceSchema = object({
43760
43803
  runId: string().min(1),
43761
43804
  startedAt: number$1(),
@@ -43931,6 +43974,7 @@ _enum([
43931
43974
  "invalid-variables",
43932
43975
  "invalid-steps",
43933
43976
  "not-linked",
43977
+ "template-scope",
43934
43978
  "busy"
43935
43979
  ]);
43936
43980
  object({
@@ -50369,6 +50413,43 @@ method(InstancePinSchema, DeviceExportStatusSchema), method(_void(), array(Expor
50369
50413
  auth: "admin"
50370
50414
  });
50371
50415
  var DeviceAliasSchema = string().max(64).regex(/^[a-z][a-z0-9_]*$/);
50416
+ var DeviceTemplateSchema = string().min(1).max(4096);
50417
+ var DeviceTemplateRefusalSchema = object({
50418
+ reason: _enum([
50419
+ "too-long",
50420
+ "syntax",
50421
+ "forbidden-syntax",
50422
+ "forbidden-member",
50423
+ "unknown-filter",
50424
+ "ambiguous-field",
50425
+ "busy",
50426
+ "budget-exceeded",
50427
+ "timeout",
50428
+ "output-too-large",
50429
+ "render-failed",
50430
+ "out-of-scope",
50431
+ "unavailable"
50432
+ ]),
50433
+ message: string()
50434
+ });
50435
+ var DeviceTemplateTraceEntrySchema = object({
50436
+ ref: string(),
50437
+ reason: _enum([
50438
+ "unknown-alias",
50439
+ "unknown-field",
50440
+ "no-field",
50441
+ "unavailable"
50442
+ ])
50443
+ });
50444
+ var DeviceTemplateRenderSchema = discriminatedUnion("ok", [object({
50445
+ ok: literal(true),
50446
+ text: string(),
50447
+ trace: array(DeviceTemplateTraceEntrySchema)
50448
+ }), object({
50449
+ ok: literal(false),
50450
+ refusal: DeviceTemplateRefusalSchema,
50451
+ trace: array(DeviceTemplateTraceEntrySchema)
50452
+ })]);
50372
50453
  /**
50373
50454
  * A SITE ZONE — a named part of the property that several locations belong to.
50374
50455
  *
@@ -51107,6 +51188,22 @@ method(object({
51107
51188
  kind: "mutation",
51108
51189
  auth: "admin"
51109
51190
  }), method(object({
51191
+ templates: array(DeviceTemplateSchema).max(64),
51192
+ allowedDeviceIds: array(number$1().int()).optional()
51193
+ }), object({ results: array(DeviceTemplateRenderSchema) }), { auth: "admin" }), method(object({
51194
+ templates: array(string()).max(64),
51195
+ allowedDeviceIds: array(number$1().int()).optional()
51196
+ }), object({ results: array(discriminatedUnion("ok", [object({
51197
+ ok: literal(true),
51198
+ aliases: array(object({
51199
+ alias: string(),
51200
+ deviceId: number$1().int().nullable(),
51201
+ allowed: boolean()
51202
+ }))
51203
+ }), object({
51204
+ ok: literal(false),
51205
+ refusal: DeviceTemplateRefusalSchema
51206
+ })])) }), { auth: "admin" }), method(object({
51110
51207
  deviceId: number$1(),
51111
51208
  location: string().nullable()
51112
51209
  }), _void(), {
@@ -54435,7 +54532,13 @@ var HeroTimedRunSlotSchema = object({
54435
54532
  activeUntil: number$1().nullable(),
54436
54533
  quickRun: TimedRunQuickRunSchema,
54437
54534
  run: HeroActionSchema,
54438
- cancel: HeroActionSchema
54535
+ cancel: HeroActionSchema,
54536
+ /**
54537
+ * Whole units left (the limit's unit, ceil). `null` while nothing is armed.
54538
+ * A number, not words: the row formats it, and a text here would not fit the
54539
+ * hero-layout declaration.
54540
+ */
54541
+ remaining: number$1().nullable()
54439
54542
  });
54440
54543
  var HeroPowerSupplySlotSchema = object({
54441
54544
  /** The plug's state; `null` = unknown, never off. */
@@ -54554,18 +54657,31 @@ var HeroModelSchema = object({
54554
54657
  * 4. a trailing fact (power, else battery, else consumables).
54555
54658
  *
54556
54659
  * Selection rules, all taken from the model:
54557
- * - ONE control is ever shown: the device's own power; else the FIRST control of
54660
+ * - the primary control is the device's own power; else the FIRST control of
54558
54661
  * the FIRST row that has any (a later row's control is never promoted). When
54559
54662
  * the model lists that part in `gated`, the row has no inline control: the
54560
54663
  * projection never falls through to another control the caller could use.
54664
+ * - a timed run, when the model carries the slot, sits beside that primary:
54665
+ * Run while idle, Stop while armed. Gating the slot hides the control.
54561
54666
  * - 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;
54667
+ * {@link ROW_STATUS_FACTS_MAX} facts, the trailing fact excluded, then the
54668
+ * time left on an armed timed run;
54563
54669
  * - the trailing fact is the first of power, battery, consumables.
54564
54670
  *
54565
54671
  * `projectDeviceRow` is pure and computes nothing: it selects from a
54566
54672
  * {@link HeroModel}. A row that needed a value the hero lacks would mean the
54567
54673
  * model is missing it, so the fix goes in the model.
54568
54674
  */
54675
+ /**
54676
+ * The row's timed-run control. `id` is `timed-run.run` while idle and
54677
+ * `timed-run.cancel` while armed; `duration` and `unit` are the one-tap run
54678
+ * a Run press starts.
54679
+ */
54680
+ var HeroRowTimedRunSchema = object({
54681
+ id: _enum(["timed-run.run", "timed-run.cancel"]),
54682
+ duration: number$1(),
54683
+ unit: _enum(["min", "s"])
54684
+ });
54569
54685
  var HeroRowModelSchema = object({
54570
54686
  deviceId: number$1().int(),
54571
54687
  name: string(),
@@ -54578,6 +54694,11 @@ var HeroRowModelSchema = object({
54578
54694
  statusLine: array(HeroTextSchema),
54579
54695
  /** `null` = the type has no inline control, or the caller may not act on it. */
54580
54696
  primary: HeroControlSchema.nullable(),
54697
+ /**
54698
+ * Beside `primary` when the device offers a timed run: Run while idle, Stop
54699
+ * while armed. `null` when there is no slot, or the caller may not act.
54700
+ */
54701
+ timedRun: HeroRowTimedRunSchema.nullable(),
54581
54702
  trailing: HeroFactSchema.nullable()
54582
54703
  });
54583
54704
  /**
@@ -81905,6 +82026,13 @@ Object.freeze({
81905
82026
  access: "create",
81906
82027
  role: "admin"
81907
82028
  },
82029
+ "deviceManager.checkDeviceTemplates": {
82030
+ capName: "device-manager",
82031
+ capScope: "system",
82032
+ addonId: null,
82033
+ access: "view",
82034
+ role: "admin"
82035
+ },
81908
82036
  "deviceManager.cleanupDeletedDevicesData": {
81909
82037
  capName: "device-manager",
81910
82038
  capScope: "system",
@@ -82304,6 +82432,13 @@ Object.freeze({
82304
82432
  access: "create",
82305
82433
  role: "admin"
82306
82434
  },
82435
+ "deviceManager.renderDeviceTemplates": {
82436
+ capName: "device-manager",
82437
+ capScope: "system",
82438
+ addonId: null,
82439
+ access: "view",
82440
+ role: "admin"
82441
+ },
82307
82442
  "deviceManager.reportDiscoveryObservations": {
82308
82443
  capName: "device-manager",
82309
82444
  capScope: "system",
@@ -90220,7 +90355,6 @@ function offered(received) {
90220
90355
  };
90221
90356
  }
90222
90357
  offered(HA_AS), withheld(HOMEKIT_REASON), withheld(ALEXA_REASON), withheld(GOOGLE_REASON), withheld(MATTER_REASON);
90223
- string().min(1).max(4096);
90224
90358
  Object.freeze({
90225
90359
  "accessories.getStatus": [{
90226
90360
  name: "deviceId",
@@ -94695,7 +94829,7 @@ var AdminUIAddon = class extends BaseAddon {
94695
94829
  capability: adminUiCapability,
94696
94830
  provider: {
94697
94831
  getStaticDir: async () => ({ staticDir: resolveAdminUiDistDir() }),
94698
- getVersion: async () => ({ version: "1.2.628" })
94832
+ getVersion: async () => ({ version: "1.2.629" })
94699
94833
  }
94700
94834
  }];
94701
94835
  }
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.629",
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.822"
54
54
  }
55
55
  },
56
56
  "scripts": {