@camstack/addon-admin-ui 1.2.693 → 1.2.695

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 (109) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/assets/{AccessSection-BTyH6Uq_.js → AccessSection-BGFxzhHc.js} +1 -1
  3. package/dist/assets/Addons-rtK8axjz.js +5 -0
  4. package/dist/assets/{AdminPage-DHZrZAII.js → AdminPage-6rshkflD.js} +1 -1
  5. package/dist/assets/{AdminSectionedPage-3Jh0qbF0.js → AdminSectionedPage-CdZpQexK.js} +1 -1
  6. package/dist/assets/AiProfiles-B5muXY5m.js +3 -0
  7. package/dist/assets/Archive-BMaCecAn.js +1 -0
  8. package/dist/assets/{BootstrapSettingsForm-DhCX-aLg.js → BootstrapSettingsForm--vmJY8y7.js} +1 -1
  9. package/dist/assets/{Build-DY6Kzxeg.js → Build-CWXuOjNe.js} +4 -4
  10. package/dist/assets/{Calendars-C8ofmzzq.js → Calendars-DcPssCx7.js} +1 -1
  11. package/dist/assets/Cluster-BhzyIV6O.js +1 -0
  12. package/dist/assets/{CompositionBlockEditor-Br6RqkCB.js → CompositionBlockEditor-COFl9yQh.js} +2 -2
  13. package/dist/assets/{CompositionEditorPage-15ZoqacB.js → CompositionEditorPage-BmTxu03T.js} +1 -1
  14. package/dist/assets/Data-CcqSeh2h.js +2 -0
  15. package/dist/assets/DeviceDetail-CbNst4tP.js +1 -0
  16. package/dist/assets/{Devices-WxmPKN4U.js → Devices-BSVSYasX.js} +1 -1
  17. package/dist/assets/{EmbedDevicePage-8R3q6IQn.js → EmbedDevicePage-7rRLDW3p.js} +1 -1
  18. package/dist/assets/{EmbedPlayerPage-GnCekJoU.js → EmbedPlayerPage-BBzeRX2d.js} +1 -1
  19. package/dist/assets/History-DHeoS2Kt.js +1 -0
  20. package/dist/assets/Identity-Duz3hf3w.js +1 -0
  21. package/dist/assets/InstancesTable-DMBgl-Tw.js +1 -0
  22. package/dist/assets/IntegrationDetail-n3IgcFcp.js +1 -0
  23. package/dist/assets/{Integrations-DvJiMePt.js → Integrations-CEeiHe1k.js} +2 -2
  24. package/dist/assets/Integrations-Dg_xl49k.js +1 -0
  25. package/dist/assets/Library-DQ_wgv0I.js +1 -0
  26. package/dist/assets/Locations-C7X5_Xs0.js +3 -0
  27. package/dist/assets/{Logs-Qs13Mwb4.js → Logs-CZzKlgP-.js} +1 -1
  28. package/dist/assets/{MaskShapeCanvas-Dj-FghGr.js → MaskShapeCanvas-i_Iv1KNy.js} +1 -1
  29. package/dist/assets/{MotionZonesSettings-DbgeWC2L.js → MotionZonesSettings-Bw2-3ufZ.js} +1 -1
  30. package/dist/assets/MyAccess-Dw_Tblo-.js +2 -0
  31. package/dist/assets/{Network-C3KG_FSW.js → Network-B04FxTU0.js} +1 -1
  32. package/dist/assets/{NewExportModal-Dy3oNUAO.js → NewExportModal-BLa-tqcX.js} +1 -1
  33. package/dist/assets/{NodeAddonsSettingsPanel-DdbuZ3Yi.js → NodeAddonsSettingsPanel-CVu4j6BL.js} +1 -1
  34. package/dist/assets/Notifications-BCRVU9kb.js +1 -0
  35. package/dist/assets/{PanelContent-BMrwHYf4.js → PanelContent-BkvykeO7.js} +1 -1
  36. package/dist/assets/{Pipeline-BYpUtJpZ.js → Pipeline-DwMwVp3_.js} +1 -1
  37. package/dist/assets/{PrivacyMaskSettings-BWDEhn0S.js → PrivacyMaskSettings-BxOKyH1n.js} +1 -1
  38. package/dist/assets/{SceneMonitorEditor-df7cZ311.js → SceneMonitorEditor-C1uHnYFS.js} +1 -1
  39. package/dist/assets/{SessionsList-Bjhwy-7x.js → SessionsList-CoEhyLQh.js} +2 -2
  40. package/dist/assets/{Showroom-DCb25_tl.js → Showroom-9kVzdIya.js} +1 -1
  41. package/dist/assets/{StorageLocationsTable-D29oGl9n.js → StorageLocationsTable-D2ZADdHk.js} +1 -1
  42. package/dist/assets/System-RFQ29LCt.js +2 -0
  43. package/dist/assets/TemplateEditorDialog-C7gnpBYn.js +1 -0
  44. package/dist/assets/{Terminal-8cb4qrcL.js → Terminal-DitYavmi.js} +4 -4
  45. package/dist/assets/{TrainingProviders-DiSjJ4vy.js → TrainingProviders-DMWT82OP.js} +1 -1
  46. package/dist/assets/{Viewer-JA89uHB4.js → Viewer-SWfkPzOa.js} +1 -1
  47. package/dist/assets/{_virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-CaJo1z-X.js → _virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-BkawZQN9.js} +1 -1
  48. package/dist/assets/{action-draft-80EQEtaM.js → action-draft-yLNYKNjp.js} +1 -1
  49. package/dist/assets/{ai-page.helpers-DDnyI4U7.js → ai-page.helpers-BckFcRJ5.js} +1 -1
  50. package/dist/assets/{assignment-candidates-5H8d1AOa.js → assignment-candidates-CdlD3txc.js} +1 -1
  51. package/dist/assets/{authed-media-Cu0gpTLP.js → authed-media-CtJpHR0J.js} +1 -1
  52. package/dist/assets/{board-model-D56hE08L.js → board-model-BZBm4HOa.js} +1 -1
  53. package/dist/assets/{camera-block-model-CCoPnK76.js → camera-block-model-D9B-PVTV.js} +1 -1
  54. package/dist/assets/client-MSk00Qty.js +1120 -0
  55. package/dist/assets/{command-vocab-5-fsG014.js → command-vocab-BUiglkI_.js} +1 -1
  56. package/dist/assets/{device-detail-iMuwFcWs.js → device-detail-Ck1CQQDD.js} +1 -1
  57. package/dist/assets/{device-integration-icon-qHQjeL9y.js → device-integration-icon-AyILHcPh.js} +1 -1
  58. package/dist/assets/device-picker-model-C8b99Cdl.js +1 -0
  59. package/dist/assets/{dist-C5ZYqtm3.js → dist-Cb9vnz09.js} +1 -1
  60. package/dist/assets/dist-Cwb_si_L.js +1120 -0
  61. package/dist/assets/{format-BkMEj2-U.js → format-BtpezAH4.js} +1 -1
  62. package/dist/assets/{hostInit-DNeMlxxp.js → hostInit-BOghgK6B.js} +1 -1
  63. package/dist/assets/i18n-CFfN2jss.js +1 -0
  64. package/dist/assets/{icons-CyWLWtXs.js → icons-JB5dxRTR.js} +1 -1
  65. package/dist/assets/{index-Bz3Pl5tG.css → index-Cdqk-EuE.css} +1 -1
  66. package/dist/assets/index-DMtVByrH.js +6 -0
  67. package/dist/assets/{linked-devices-model-CI7wpAm-.js → linked-devices-model-COsUceIA.js} +1 -1
  68. package/dist/assets/{mf-entry-bootstrap-0-c51fcd96.js → mf-entry-bootstrap-0-f92c3da1.js} +2 -2
  69. package/dist/assets/mount-C8b99Cdl.js +1 -0
  70. package/dist/assets/{notification-rule-status-CObTJD-i.js → notification-rule-status-Dp2Kfduw.js} +1 -1
  71. package/dist/assets/{player-overlays-ugkkFXtV.js → player-overlays-B0euBMgD.js} +1 -1
  72. package/dist/assets/remoteEntry-C8MNr-Ir.js +1 -0
  73. package/dist/assets/src-VP2CTMP8.js +279 -0
  74. package/dist/assets/{sso-popup-BRNSJ3u5.js → sso-popup-CxbOOUhY.js} +1 -1
  75. package/dist/assets/{step-inspector-model-BkoSviyf.js → step-inspector-model-DkIG_2Qc.js} +1 -1
  76. package/dist/assets/{use-scenes-feed-bbgFxJ_U.js → use-scenes-feed-DyPKYL04.js} +1 -1
  77. package/dist/assets/{useAdminDeviceRemoval-Ia1zPolI.js → useAdminDeviceRemoval-gBk-4hVR.js} +1 -1
  78. package/dist/assets/useEventInvalidation-C8b99Cdl.js +1 -0
  79. package/dist/assets/{useNodeUrlSelection-BQ2MYP7C.js → useNodeUrlSelection-BvbXoMeL.js} +1 -1
  80. package/dist/assets/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-BWXQZsum.js → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-Bwt1NZjv.js} +2 -2
  81. package/dist/index.html +9 -9
  82. package/dist/server/addon.js +223 -60
  83. package/package.json +2 -2
  84. package/dist/assets/Addons-VJhgqhzH.js +0 -5
  85. package/dist/assets/AiProfiles-Dle37tWQ.js +0 -3
  86. package/dist/assets/Archive-SdeDPpcj.js +0 -1
  87. package/dist/assets/Cluster-JhBKuQrD.js +0 -1
  88. package/dist/assets/Data-B5ocdjeC.js +0 -2
  89. package/dist/assets/DeviceDetail-CFZv3c_f.js +0 -1
  90. package/dist/assets/History-BtkXJRVt.js +0 -1
  91. package/dist/assets/Identity-BCgp4vmD.js +0 -1
  92. package/dist/assets/InstancesTable-C81CknSI.js +0 -1
  93. package/dist/assets/IntegrationDetail-D-YgdyLl.js +0 -1
  94. package/dist/assets/Integrations-DNAuezUf.js +0 -1
  95. package/dist/assets/Library-DhRQQIcQ.js +0 -1
  96. package/dist/assets/Locations-CzTWySjI.js +0 -3
  97. package/dist/assets/MyAccess-WIF20bV3.js +0 -2
  98. package/dist/assets/Notifications-Bqde3sni.js +0 -1
  99. package/dist/assets/System-Bz2RLf9j.js +0 -1
  100. package/dist/assets/TemplateEditorDialog-C0r2EnJJ.js +0 -1
  101. package/dist/assets/client-B3h-2G71.js +0 -1120
  102. package/dist/assets/device-picker-model-DY4G4-U0.js +0 -1
  103. package/dist/assets/dist-Bt80qYnQ.js +0 -1120
  104. package/dist/assets/i18n-BwW8nRaE.js +0 -1
  105. package/dist/assets/index-D_vdUQKv.js +0 -6
  106. package/dist/assets/mount-DY4G4-U0.js +0 -1
  107. package/dist/assets/remoteEntry-CjuAs5ha.js +0 -1
  108. package/dist/assets/src-DeDx2fDl.js +0 -279
  109. package/dist/assets/useEventInvalidation-DY4G4-U0.js +0 -1
@@ -1,6 +1,6 @@
1
1
  import path from "node:path";
2
2
  import { fileURLToPath } from "node:url";
3
- //#region ../types/dist/event-category-Hwx_JSCU.mjs
3
+ //#region ../types/dist/event-category-CY27-fF0.mjs
4
4
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
5
5
  EventCategory["SystemBoot"] = "system.boot";
6
6
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -500,7 +500,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
500
500
  */
501
501
  EventCategory["NetworkLinkOnStatusChanged"] = "network-link.onStatusChanged";
502
502
  /**
503
- * Emitted by the battery cap provider WHEN `wakeForStream` enters the
503
+ * Emitted by the battery cap provider WHEN `wakeUp` enters the
504
504
  * "wake in progress" window — between the Baichuan wake-up issue and
505
505
  * the camera's first dialed-back RTP packet. The stream-broker
506
506
  * manager subscribes to flip the per-broker placeholder reason to
@@ -832,7 +832,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
832
832
  return EventCategory;
833
833
  }({});
834
834
  //#endregion
835
- //#region ../types/dist/composed-stable-id-BBL71oUQ.mjs
835
+ //#region ../types/dist/composed-stable-id-BNTaDZEh.mjs
836
836
  /**
837
837
  import { errMsg } from '@camstack/types'
838
838
  * Extract a human-readable message from an unknown error value.
@@ -971,12 +971,19 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
971
971
  return DeviceType;
972
972
  }({});
973
973
  var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
974
+ /** The device reports a battery reading (the `battery` cap). Says nothing about sleep. */
974
975
  DeviceFeature["BatteryOperated"] = "battery-operated";
976
+ /**
977
+ * The device goes into low-power sleep and must be WOKEN before it streams
978
+ * (the `low-power-sleep` cap, `wakeUp`). A battery reading alone is
979
+ * not this: a battery sensor reports charge and never sleeps (#459, Q2).
980
+ */
981
+ DeviceFeature["Sleeps"] = "sleeps";
975
982
  DeviceFeature["Rebootable"] = "rebootable";
976
983
  /**
977
984
  * Device supports an on-demand re-sync of its derived spec with its
978
- * upstream source — drives the generic Re-sync button. The owning
979
- * provider implements the action via the `device-adoption.resync` cap.
985
+ * upstream source — drives the generic Re-sync button. Present when the
986
+ * device has the `resync` cap bound (#459, Q6).
980
987
  */
981
988
  DeviceFeature["Resyncable"] = "resyncable";
982
989
  DeviceFeature["NativeSnapshot"] = "native-snapshot";
@@ -1060,9 +1067,6 @@ var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
1060
1067
  DeviceFeature["FanDirection"] = "fan-direction";
1061
1068
  /** Fan exposes an oscillation toggle. */
1062
1069
  DeviceFeature["FanOscillating"] = "fan-oscillating";
1063
- /** Lock requires a PIN code on lock/unlock. Gates the code-entry
1064
- * field on the UI lock-controls panel. */
1065
- DeviceFeature["LockPinRequired"] = "lock-pin-required";
1066
1070
  /** Lock supports a latch-release ("open door") action distinct from
1067
1071
  * unlock. Mirrors HA `LockEntityFeature.OPEN` (bit 1) in
1068
1072
  * `supported_features`. Gates the Open Door button in the UI. */
@@ -1093,8 +1097,6 @@ var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
1093
1097
  DeviceFeature["MediaPlayerChannelStep"] = "media-player-channel-step";
1094
1098
  /** Media player exposes power on / off. */
1095
1099
  DeviceFeature["MediaPlayerPower"] = "media-player-power";
1096
- /** Alarm panel requires a PIN code on arm/disarm. */
1097
- DeviceFeature["AlarmPinRequired"] = "alarm-pin-required";
1098
1100
  /** Presence device carries GPS coordinates (lat/lng/accuracy) in
1099
1101
  * addition to a textual location. */
1100
1102
  DeviceFeature["PresenceGps"] = "presence-gps";
@@ -1114,15 +1116,9 @@ var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
1114
1116
  /** Automation `trigger` accepts a skipCondition flag — fires the
1115
1117
  * automation's actions while bypassing its condition block. */
1116
1118
  DeviceFeature["AutomationSkipCondition"] = "automation-skip-condition";
1117
- /** Robot vacuum exposes a live cleaning map (image child). Gates the
1118
- * map tile in the vacuum UI. */
1119
- DeviceFeature["VacuumHasMap"] = "vacuum-has-map";
1120
1119
  /** Robot vacuum exposes AI obstacle-detection toggles. Gates the AI
1121
1120
  * switches group. */
1122
1121
  DeviceFeature["VacuumHasAi"] = "vacuum-has-ai";
1123
- /** Robot mower exposes a live mowing map (SVG image child). Gates the
1124
- * mower map tile. */
1125
- DeviceFeature["MowerHasMap"] = "mower-has-map";
1126
1122
  /** Robot mower exposes targeted mowing (all-area / zones / edges /
1127
1123
  * spots) — gates the Mow action + map selectors. */
1128
1124
  DeviceFeature["MowerHasTargetedMowing"] = "mower-has-targeted-mowing";
@@ -5977,7 +5973,7 @@ var ZodIssueCode = {
5977
5973
  var ZodFirstPartyTypeKind;
5978
5974
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5979
5975
  //#endregion
5980
- //#region ../types/dist/sleep-D6Pih0Qt.mjs
5976
+ //#region ../types/dist/sleep-BT1bLgPq.mjs
5981
5977
  /**
5982
5978
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5983
5979
  * window to float samples (D455).
@@ -16583,6 +16579,14 @@ var CAP_VOCABULARY_BY_NAME = {
16583
16579
  icon: "refresh-cw"
16584
16580
  }]
16585
16581
  },
16582
+ "resync": {
16583
+ scope: "device",
16584
+ noun: {
16585
+ en: "Re-sync",
16586
+ it: "Risincronizzazione"
16587
+ },
16588
+ notOperatorFacing: { resync: "device adoption — re-aligning a device with its source is an onboarding step, not an automation action" }
16589
+ },
16586
16590
  "recording": {
16587
16591
  scope: "device",
16588
16592
  noun: {
@@ -18594,7 +18598,6 @@ var CAP_VOCABULARY_BY_NAME = {
18594
18598
  en: "Battery",
18595
18599
  it: "Batteria"
18596
18600
  },
18597
- notOperatorFacing: { wakeForStream: "a stream consumer wakes a sleeping camera to watch it; an automation that wants footage asks for the footage" },
18598
18601
  state: [
18599
18602
  {
18600
18603
  kind: "numeric",
@@ -18704,6 +18707,14 @@ var CAP_VOCABULARY_BY_NAME = {
18704
18707
  icon: "moon"
18705
18708
  }]
18706
18709
  },
18710
+ "low-power-sleep": {
18711
+ scope: "device",
18712
+ noun: {
18713
+ en: "Low-power sleep",
18714
+ it: "Sospensione a basso consumo"
18715
+ },
18716
+ notOperatorFacing: { wakeUp: "a stream consumer wakes a sleeping camera to watch it; an automation that wants footage asks for the footage" }
18717
+ },
18707
18718
  "network-link": {
18708
18719
  scope: "device",
18709
18720
  noun: {
@@ -19594,6 +19605,7 @@ var CAP_NAMES = Object.freeze([
19594
19605
  "log-channels",
19595
19606
  "log-destination",
19596
19607
  "login-method",
19608
+ "low-power-sleep",
19597
19609
  "media-player",
19598
19610
  "mesh-network",
19599
19611
  "meter",
@@ -19647,6 +19659,7 @@ var CAP_NAMES = Object.freeze([
19647
19659
  "records",
19648
19660
  "remote",
19649
19661
  "remote-layout-components",
19662
+ "resync",
19650
19663
  "running-state",
19651
19664
  "scene-monitor",
19652
19665
  "schedulers",
@@ -19750,7 +19763,7 @@ Object.freeze({
19750
19763
  ]
19751
19764
  },
19752
19765
  {
19753
- "path": "requiresCode",
19766
+ "path": "codeRequired",
19754
19767
  "valueType": "boolean"
19755
19768
  }
19756
19769
  ],
@@ -20818,7 +20831,24 @@ Object.freeze({
20818
20831
  "jammed",
20819
20832
  "door-open"
20820
20833
  ]
20834
+ }, {
20835
+ "path": "codeRequired",
20836
+ "valueType": "boolean"
20821
20837
  }],
20838
+ "low-power-sleep": [
20839
+ {
20840
+ "path": "sleeping",
20841
+ "valueType": "boolean"
20842
+ },
20843
+ {
20844
+ "path": "lastContactAt",
20845
+ "valueType": "number"
20846
+ },
20847
+ {
20848
+ "path": "lastUpdated",
20849
+ "valueType": "number"
20850
+ }
20851
+ ],
20822
20852
  "media-player": [
20823
20853
  {
20824
20854
  "path": "state",
@@ -21988,7 +22018,7 @@ Object.freeze({
21988
22018
  }
21989
22019
  });
21990
22020
  //#endregion
21991
- //#region ../types/dist/implemented-methods-u7ddjc-_.mjs
22021
+ //#region ../types/dist/implemented-methods-k3KProJd.mjs
21992
22022
  /**
21993
22023
  * The ffmpeg build every CamStack node downloads, per platform and arch.
21994
22024
  *
@@ -48267,6 +48297,67 @@ object({
48267
48297
  /** Namespaces the client listed that no longer exist. */
48268
48298
  deleted: array(PreferenceNamespaceSchema)
48269
48299
  });
48300
+ /**
48301
+ * The wire shapes of `apiCatalog.*` — the API explorer's data (planning#595).
48302
+ *
48303
+ * One entry per tRPC method the hub serves, capability and core routes alike,
48304
+ * read off the live router by the hub (never a hand-written list).
48305
+ */
48306
+ var ApiProcedureKindSchema = _enum([
48307
+ "query",
48308
+ "mutation",
48309
+ "subscription"
48310
+ ]);
48311
+ /** The gate a method runs behind. */
48312
+ var ApiProcedureTierSchema = _enum([
48313
+ "public",
48314
+ "protected",
48315
+ "admin"
48316
+ ]);
48317
+ /** The token scope a capability route is matched against (its `METHOD_ACCESS_MAP` row). */
48318
+ var ApiCatalogScopeSchema = object({
48319
+ capName: string(),
48320
+ capScope: _enum(["device", "system"]),
48321
+ access: _enum([
48322
+ "view",
48323
+ "create",
48324
+ "delete"
48325
+ ]),
48326
+ role: string()
48327
+ });
48328
+ var ApiCatalogEntrySchema = object({
48329
+ /** `<router>.<method>` — the tRPC path. */
48330
+ path: string(),
48331
+ router: string(),
48332
+ method: string(),
48333
+ kind: ApiProcedureKindSchema,
48334
+ tier: ApiProcedureTierSchema,
48335
+ source: _enum(["capability", "core"]),
48336
+ /** `null` on a core route: it needs authentication only (plus admin where its tier says so). */
48337
+ scope: ApiCatalogScopeSchema.nullable(),
48338
+ hasInput: boolean()
48339
+ });
48340
+ /**
48341
+ * May the CALLER call a method. The list has no input, so a method reached
48342
+ * only through a device grant is `per-device`: the real call is allowed or
48343
+ * refused on the device its input names.
48344
+ */
48345
+ var ApiCallableSchema = _enum([
48346
+ "yes",
48347
+ "no",
48348
+ "per-device"
48349
+ ]);
48350
+ object({ methods: array(ApiCatalogEntrySchema.extend({ callable: ApiCallableSchema })) });
48351
+ /** A JSON Schema document, as the explorer receives it. */
48352
+ var JsonSchemaDocumentSchema = record(string(), unknown());
48353
+ object({
48354
+ path: string(),
48355
+ hasInput: boolean(),
48356
+ /** The INPUT JSON schema (what the caller sends); `null` without input or when it could not be produced. */
48357
+ schema: JsonSchemaDocumentSchema.nullable(),
48358
+ /** Why no schema could be produced (a non-Zod parser, an unrepresentable type). */
48359
+ error: string().nullable()
48360
+ });
48270
48361
  _enum(["new-session", "step-up"]);
48271
48362
  /** The languages the hub's app landing pages are written in (D858). */
48272
48363
  var AppPageLangSchema = _enum(["en", "it"]);
@@ -51817,9 +51908,8 @@ DeviceType.Sensor;
51817
51908
  * Many panels require a PIN code on arm / disarm — the optional
51818
51909
  * `code` field on the methods passes it through to the upstream
51819
51910
  * service; it's NEVER persisted in the runtime slice or any event
51820
- * payload. The presence of a required code is signalled by
51821
- * `DeviceFeature.AlarmPinRequired` so the UI gates a code-entry
51822
- * field without a slice fetch.
51911
+ * payload. Whether a code is required is the slice's `codeRequired`
51912
+ * (#459): `null` when the provider cannot tell (D393).
51823
51913
  *
51824
51914
  * `availableModes` mirrors HA's `supported_features`-derived arm
51825
51915
  * mode list — the UI renders only the buttons the panel accepts.
@@ -51858,9 +51948,13 @@ var AlarmPanelStatusSchema = object({
51858
51948
  /** Subset of arm modes the panel accepts. UI renders one button per
51859
51949
  * mode in this list. */
51860
51950
  availableModes: array(AlarmArmModeSchema),
51861
- /** Whether the panel requires a PIN on arm / disarm. Mirrors
51862
- * `DeviceFeature.AlarmPinRequired` for slice consumers. */
51863
- requiresCode: boolean(),
51951
+ /**
51952
+ * Whether the panel requires a PIN on arm / disarm (#459; the field was
51953
+ * `requiresCode`, and the `alarm-pin-required` device feature is gone).
51954
+ * `null` = the provider cannot tell (D393), never `false`. A slice restored
51955
+ * from before the rename is upgraded at boot by `restoredFieldRenames`.
51956
+ */
51957
+ codeRequired: boolean().nullable(),
51864
51958
  /** Ms epoch when the slice was last updated. */
51865
51959
  lastChangedAt: number$1()
51866
51960
  });
@@ -51901,7 +51995,7 @@ DeviceType.AlarmPanel, method(object({ deviceId: number$1().int().nonnegative()
51901
51995
  }), method(object({
51902
51996
  deviceId: number$1().int().nonnegative(),
51903
51997
  mode: AlarmArmModeSchema,
51904
- /** Optional PIN code. Required when `requiresCode === true`.
51998
+ /** Optional PIN code. Required when `codeRequired === true`.
51905
51999
  * Passed through to the upstream service; never persisted. */
51906
52000
  code: string().min(1).optional()
51907
52001
  }), _void(), {
@@ -53003,9 +53097,9 @@ method(_void(), array(BackupDestinationInfoSchema).readonly(), { auth: "admin" }
53003
53097
  auth: "admin"
53004
53098
  });
53005
53099
  /**
53006
- * Battery status snapshot. Emitted by providers whose device is
53007
- * battery-operated (cameras with `DeviceFeature.BatteryOperated`,
53008
- * future sensor/button accessories). Consumers build their own "low
53100
+ * Battery status snapshot. Emitted by providers whose device reports a
53101
+ * battery (`DeviceFeature.BatteryOperated`): battery cameras, sensors,
53102
+ * buttons. Whether the device SLEEPS is `low-power-sleep`, not this cap. Consumers build their own "low
53009
53103
  * battery" alerting on top — the cap deliberately does NOT enforce a
53010
53104
  * threshold.
53011
53105
  */
@@ -53100,17 +53194,7 @@ var BatteryStatusSchema = object({
53100
53194
  binary: boolean().optional().meta({ label: "Binary indicator" })
53101
53195
  });
53102
53196
  DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Climate, DeviceType.EventEmitter;
53103
- method(object({
53104
- deviceId: number$1(),
53105
- /** Bound on the wait. Sensible range 3000–10000ms. */
53106
- timeoutMs: number$1().int().min(500).max(3e4).default(8e3)
53107
- }), object({
53108
- awoke: boolean(),
53109
- durationMs: number$1()
53110
- }), {
53111
- kind: "mutation",
53112
- notOperatorFacing: "a stream consumer wakes a sleeping camera to watch it; an automation that wants footage asks for the footage"
53113
- }), object({
53197
+ object({
53114
53198
  deviceId: number$1(),
53115
53199
  status: BatteryStatusSchema
53116
53200
  }), EventCategory.DeviceAwake, EventCategory.DeviceSleeping;
@@ -66563,6 +66647,13 @@ var LockControlStatusSchema = object({
66563
66647
  "jammed",
66564
66648
  "door-open"
66565
66649
  ]),
66650
+ /**
66651
+ * Whether lock / unlock need a PIN `code` (#459, replaces the
66652
+ * `lock-pin-required` device feature). `null` = the provider cannot tell
66653
+ * (D393) — never `false`. `.optional()` so a restored slice written before
66654
+ * the field still parses; readers treat absent exactly like `null`.
66655
+ */
66656
+ codeRequired: boolean().nullable().optional(),
66566
66657
  /** Ms epoch when the slice was last updated. */
66567
66658
  lastChangedAt: number$1()
66568
66659
  });
@@ -66909,6 +67000,33 @@ var LoginMethodContributionSchema = discriminatedUnion("kind", [
66909
67000
  })
66910
67001
  ]);
66911
67002
  method(_void(), array(LoginMethodContributionSchema).readonly()), NOT_A_DEVICE.IDENTITY;
67003
+ object({
67004
+ /**
67005
+ * True while the firmware is in low-power mode. A provider MUST avoid polling
67006
+ * during sleep — a read wakes the device and drains charge.
67007
+ */
67008
+ sleeping: boolean().meta({ label: "Sleeping" }),
67009
+ /**
67010
+ * Ms epoch of the last time the device proved it was reachable, from
67011
+ * PASSIVE signals only (a completed round-trip, an observed wake, a push).
67012
+ * Absent = never since this slice was born. The only input that separates
67013
+ * "asleep" from "gone".
67014
+ */
67015
+ lastContactAt: number$1().optional(),
67016
+ /** Ms epoch of the last observation. */
67017
+ lastUpdated: number$1().meta(readingMeta("none"))
67018
+ });
67019
+ DeviceType.Camera, method(object({
67020
+ deviceId: number$1(),
67021
+ /** Bound on the wait. Sensible range 3000–10000ms. */
67022
+ timeoutMs: number$1().int().min(500).max(3e4).default(8e3)
67023
+ }), object({
67024
+ awoke: boolean(),
67025
+ durationMs: number$1()
67026
+ }), {
67027
+ kind: "mutation",
67028
+ notOperatorFacing: "a stream consumer wakes a sleeping camera to watch it; an automation that wants footage asks for the footage"
67029
+ });
66912
67030
  /**
66913
67031
  * mesh-network — collection cap for mesh-VPN providers.
66914
67032
  *
@@ -82620,6 +82738,27 @@ var RemoteLayoutComponentSchema = object({
82620
82738
  });
82621
82739
  });
82622
82740
  method(object({}), array(RemoteLayoutComponentSchema), { auth: "protected" });
82741
+ /**
82742
+ * resync — a device whose derived spec can be re-aligned on demand with its
82743
+ * upstream source (#459, Q6). Registered by the containers an integration
82744
+ * adopted; `DeviceFeature.Resyncable` (the generic Re-sync button) is derived
82745
+ * from it being bound with `resync` implemented.
82746
+ *
82747
+ * The work itself stays where it is: the owning addon's `device-adoption`
82748
+ * provider, reached through `deviceManager.adoptionResync` (which also owns
82749
+ * the "resync from zero" child purge). A provider answers this method by
82750
+ * asking for exactly that — see `resyncThroughAdoption`.
82751
+ */
82752
+ var ResyncDeviceInputSchema = object({
82753
+ deviceId: number$1().int().nonnegative(),
82754
+ /** "Resync from zero": purge the accessory children before re-deriving. */
82755
+ resetToSource: boolean().optional()
82756
+ });
82757
+ DeviceType.Container, DeviceType.Workload, DeviceType.WeatherStation, method(ResyncDeviceInputSchema, ResyncResultSchema, {
82758
+ kind: "mutation",
82759
+ auth: "admin",
82760
+ notOperatorFacing: "device adoption — re-aligning a device with its source is an onboarding step, not an automation action"
82761
+ });
82623
82762
  DeviceType.MediaPlayer;
82624
82763
  var RunningStateSourceSchema = _enum(["native", "assigned"]);
82625
82764
  object({
@@ -88826,8 +88965,8 @@ var ALARM_MODES = [
88826
88965
  "vacation",
88827
88966
  "custom_bypass"
88828
88967
  ];
88829
- function alarmControls(state, modes, requiresCode) {
88830
- if (requiresCode) return [];
88968
+ function alarmControls(state, modes, codeRequired) {
88969
+ if (codeRequired) return [];
88831
88970
  const disarm = asAction(action("alarm.disarm", t("Disarm", "Disinserisci"), "shield-off", "alarm-panel", "disarm", {}, "primary"));
88832
88971
  const arm = (primaryFirst) => modes.map((mode, i) => asAction(action(`alarm.arm.${mode}`, ARM_LABELS[mode], "shield-check", "alarm-panel", "arm", { mode }, primaryFirst && i === 0 ? "primary" : "normal")));
88833
88972
  switch (state) {
@@ -88847,7 +88986,7 @@ var ACCESS_FAMILY_CONTRIBUTIONS = {
88847
88986
  const modes = slice === void 0 ? ALARM_MODES : slice.availableModes;
88848
88987
  return {
88849
88988
  reading: reading("alarm-panel", words?.state ?? "unknown", false, words?.title),
88850
- rows: [row$1("alarm", state === "triggered" ? "shield-alert" : state === "disarmed" ? "shield-off" : "shield-check", joinText([words?.title ?? NOT_REPORTED, since]), alarmControls(state, modes, slice?.requiresCode ?? false))],
88989
+ rows: [row$1("alarm", state === "triggered" ? "shield-alert" : state === "disarmed" ? "shield-off" : "shield-check", joinText([words?.title ?? NOT_REPORTED, since]), alarmControls(state, modes, slice?.codeRequired !== false))],
88851
88990
  ...since === null || words === null ? {} : { facts: [fact("since", "clock", since, state === "triggered" ? "danger" : "muted")] },
88852
88991
  ...words === null ? {} : { tiles: {
88853
88992
  left: [{
@@ -92230,13 +92369,6 @@ Object.freeze({
92230
92369
  access: "view",
92231
92370
  role: "viewer"
92232
92371
  },
92233
- "battery.wakeForStream": {
92234
- capName: "battery",
92235
- capScope: "device",
92236
- addonId: null,
92237
- access: "create",
92238
- role: "viewer"
92239
- },
92240
92372
  "binary.getStatus": {
92241
92373
  capName: "binary",
92242
92374
  capScope: "device",
@@ -95891,6 +96023,20 @@ Object.freeze({
95891
96023
  access: "view",
95892
96024
  role: "admin"
95893
96025
  },
96026
+ "lowPowerSleep.getStatus": {
96027
+ capName: "low-power-sleep",
96028
+ capScope: "device",
96029
+ addonId: null,
96030
+ access: "view",
96031
+ role: "viewer"
96032
+ },
96033
+ "lowPowerSleep.wakeUp": {
96034
+ capName: "low-power-sleep",
96035
+ capScope: "device",
96036
+ addonId: null,
96037
+ access: "create",
96038
+ role: "viewer"
96039
+ },
95894
96040
  "mediaPlayer.channelDown": {
95895
96041
  capName: "media-player",
95896
96042
  capScope: "device",
@@ -99566,6 +99712,13 @@ Object.freeze({
99566
99712
  access: "view",
99567
99713
  role: "admin"
99568
99714
  },
99715
+ "resync.resync": {
99716
+ capName: "resync",
99717
+ capScope: "device",
99718
+ addonId: null,
99719
+ access: "create",
99720
+ role: "admin"
99721
+ },
99569
99722
  "runningState.getStatus": {
99570
99723
  capName: "running-state",
99571
99724
  capScope: "device",
@@ -101961,7 +102114,7 @@ Object.freeze({
101961
102114
  role: "admin"
101962
102115
  }
101963
102116
  });
101964
- DeviceFeature.BatteryOperated;
102117
+ DeviceFeature.Sleeps;
101965
102118
  function bound(cap, methods = [], authority = "reported") {
101966
102119
  return {
101967
102120
  kind: "cap",
@@ -101973,11 +102126,11 @@ function bound(cap, methods = [], authority = "reported") {
101973
102126
  function derived(cap, methods = []) {
101974
102127
  return bound(cap, methods, "derived");
101975
102128
  }
101976
- DeviceFeature.BatteryOperated, DeviceFeature.Rebootable, derived("reboot", ["reboot"]), DeviceFeature.Resyncable, DeviceFeature.NativeSnapshot, DeviceFeature.DoorbellButton, derived("doorbell"), DeviceFeature.TwoWayAudio, derived("intercom", [
102129
+ DeviceFeature.BatteryOperated, DeviceFeature.Sleeps, derived("low-power-sleep", ["wakeUp"]), DeviceFeature.Rebootable, derived("reboot", ["reboot"]), DeviceFeature.Resyncable, derived("resync", ["resync"]), DeviceFeature.NativeSnapshot, DeviceFeature.DoorbellButton, derived("doorbell"), DeviceFeature.TwoWayAudio, derived("intercom", [
101977
102130
  "startTalkSession",
101978
102131
  "pushTalkAudio",
101979
102132
  "endTalkSession"
101980
- ]), DeviceFeature.PanTiltZoom, derived("ptz"), DeviceFeature.PtzAutotrack, derived("ptz-autotrack"), DeviceFeature.MotionTrigger, derived("motion-trigger", ["setMotionTrigger"]), DeviceFeature.TimedRun, derived("timed-run", ["runFor"]), DeviceFeature.Switch, DeviceFeature.LightColorRgb, DeviceFeature.LightColorHsv, DeviceFeature.LightColorMired, DeviceFeature.ClimateDualSetpoint, DeviceFeature.ClimateHumidity, DeviceFeature.ClimateFanMode, DeviceFeature.ClimatePreset, DeviceFeature.ClimateSwingVertical, DeviceFeature.ClimateSwingHorizontal, DeviceFeature.CoverPositionable, DeviceFeature.CoverTilt, DeviceFeature.CoverStoppable, DeviceFeature.ValvePositionable, DeviceFeature.FanSpeed, DeviceFeature.FanPreset, DeviceFeature.FanDirection, DeviceFeature.FanOscillating, DeviceFeature.LockPinRequired, DeviceFeature.LockOpen, DeviceFeature.MediaPlayerSeek, DeviceFeature.MediaPlayerVolume, DeviceFeature.MediaPlayerMute, DeviceFeature.MediaPlayerShuffle, DeviceFeature.MediaPlayerRepeat, DeviceFeature.MediaPlayerSelectSource, DeviceFeature.MediaPlayerPlayMedia, DeviceFeature.MediaPlayerNext, DeviceFeature.MediaPlayerPrevious, DeviceFeature.MediaPlayerStop, DeviceFeature.MediaPlayerVolumeStep, DeviceFeature.MediaPlayerChannelStep, DeviceFeature.MediaPlayerPower, DeviceFeature.AlarmPinRequired, DeviceFeature.PresenceGps, DeviceFeature.NotifierImage, DeviceFeature.NotifierPriority, DeviceFeature.NotifierData, DeviceFeature.NotifierActions, DeviceFeature.NotifierRecipients, DeviceFeature.ScriptVariables, DeviceFeature.AutomationSkipCondition, DeviceFeature.VacuumHasMap, DeviceFeature.VacuumHasAi, DeviceFeature.MowerHasMap, DeviceFeature.MowerHasTargetedMowing, DeviceFeature.Navigation, derived("navigation"), DeviceFeature.NetworkLink, derived("network-link");
102133
+ ]), DeviceFeature.PanTiltZoom, derived("ptz"), DeviceFeature.PtzAutotrack, derived("ptz-autotrack"), DeviceFeature.MotionTrigger, derived("motion-trigger", ["setMotionTrigger"]), DeviceFeature.TimedRun, derived("timed-run", ["runFor"]), DeviceFeature.Switch, DeviceFeature.LightColorRgb, DeviceFeature.LightColorHsv, DeviceFeature.LightColorMired, DeviceFeature.ClimateDualSetpoint, DeviceFeature.ClimateHumidity, DeviceFeature.ClimateFanMode, DeviceFeature.ClimatePreset, DeviceFeature.ClimateSwingVertical, DeviceFeature.ClimateSwingHorizontal, DeviceFeature.CoverPositionable, DeviceFeature.CoverTilt, DeviceFeature.CoverStoppable, DeviceFeature.ValvePositionable, DeviceFeature.FanSpeed, DeviceFeature.FanPreset, DeviceFeature.FanDirection, DeviceFeature.FanOscillating, DeviceFeature.LockOpen, DeviceFeature.MediaPlayerSeek, DeviceFeature.MediaPlayerVolume, DeviceFeature.MediaPlayerMute, DeviceFeature.MediaPlayerShuffle, DeviceFeature.MediaPlayerRepeat, DeviceFeature.MediaPlayerSelectSource, DeviceFeature.MediaPlayerPlayMedia, DeviceFeature.MediaPlayerNext, DeviceFeature.MediaPlayerPrevious, DeviceFeature.MediaPlayerStop, DeviceFeature.MediaPlayerVolumeStep, DeviceFeature.MediaPlayerChannelStep, DeviceFeature.MediaPlayerPower, DeviceFeature.PresenceGps, DeviceFeature.NotifierImage, DeviceFeature.NotifierPriority, DeviceFeature.NotifierData, DeviceFeature.NotifierActions, DeviceFeature.NotifierRecipients, DeviceFeature.ScriptVariables, DeviceFeature.AutomationSkipCondition, DeviceFeature.VacuumHasAi, DeviceFeature.MowerHasTargetedMowing, DeviceFeature.Navigation, derived("navigation"), DeviceFeature.NetworkLink, derived("network-link");
101981
102134
  var ALL_FEATURES = Object.values(DeviceFeature);
101982
102135
  new Set(ALL_FEATURES);
101983
102136
  DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher;
@@ -102173,11 +102326,6 @@ Object.freeze({
102173
102326
  form: "single",
102174
102327
  optional: false
102175
102328
  }],
102176
- "battery.wakeForStream": [{
102177
- name: "deviceId",
102178
- form: "single",
102179
- optional: false
102180
- }],
102181
102329
  "binary.getStatus": [{
102182
102330
  name: "deviceId",
102183
102331
  form: "single",
@@ -103361,6 +103509,16 @@ Object.freeze({
103361
103509
  form: "single",
103362
103510
  optional: true
103363
103511
  }],
103512
+ "lowPowerSleep.getStatus": [{
103513
+ name: "deviceId",
103514
+ form: "single",
103515
+ optional: false
103516
+ }],
103517
+ "lowPowerSleep.wakeUp": [{
103518
+ name: "deviceId",
103519
+ form: "single",
103520
+ optional: false
103521
+ }],
103364
103522
  "mediaPlayer.channelDown": [{
103365
103523
  name: "deviceId",
103366
103524
  form: "single",
@@ -104646,6 +104804,11 @@ Object.freeze({
104646
104804
  form: "single",
104647
104805
  optional: false
104648
104806
  }],
104807
+ "resync.resync": [{
104808
+ name: "deviceId",
104809
+ form: "single",
104810
+ optional: false
104811
+ }],
104649
104812
  "runningState.getStatus": [{
104650
104813
  name: "deviceId",
104651
104814
  form: "single",
@@ -106694,7 +106857,7 @@ var AdminUIAddon = class extends BaseAddon {
106694
106857
  capability: adminUiCapability,
106695
106858
  provider: {
106696
106859
  getStaticDir: async () => ({ staticDir: resolveAdminUiDistDir() }),
106697
- getVersion: async () => ({ version: "1.2.693" })
106860
+ getVersion: async () => ({ version: "1.2.695" })
106698
106861
  }
106699
106862
  }];
106700
106863
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-admin-ui",
3
- "version": "1.2.693",
3
+ "version": "1.2.695",
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.893"
53
+ "server": ">=1.2.895"
54
54
  }
55
55
  },
56
56
  "scripts": {