@camstack/server 1.2.893 → 1.2.895

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 (99) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/api/core/api-catalog.js +93 -0
  3. package/dist/api/core/api-catalog.router.js +74 -0
  4. package/dist/api/trpc/generated-cap-mounts.js +3 -1
  5. package/dist/api/trpc/generated-cap-routers.js +1528 -1499
  6. package/dist/api/trpc/trpc.middleware.js +17 -0
  7. package/dist/api/trpc/trpc.router.js +10 -3
  8. package/package.json +27 -13
  9. package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
  10. package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
  11. package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
  12. package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
  13. package/system/dist/builtins/alerts/alerts.addon.js +1 -1
  14. package/system/dist/builtins/alerts/alerts.addon.mjs +1 -1
  15. package/system/dist/builtins/autotrack/index.js +1 -1
  16. package/system/dist/builtins/autotrack/index.mjs +1 -1
  17. package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
  18. package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
  19. package/system/dist/builtins/calendars/calendars.addon.js +1 -1
  20. package/system/dist/builtins/calendars/calendars.addon.mjs +1 -1
  21. package/system/dist/builtins/camera-grid/index.js +1 -1
  22. package/system/dist/builtins/camera-grid/index.mjs +1 -1
  23. package/system/dist/builtins/composer/composer.addon.js +5 -5
  24. package/system/dist/builtins/composer/composer.addon.mjs +5 -5
  25. package/system/dist/builtins/composer/graft-host.d.ts +1 -1
  26. package/system/dist/builtins/console-logging/index.js +1 -1
  27. package/system/dist/builtins/console-logging/index.mjs +1 -1
  28. package/system/dist/builtins/core-blocks/core-blocks.addon.js +3 -3
  29. package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +3 -3
  30. package/system/dist/builtins/device-history/device-history.addon.js +2 -2
  31. package/system/dist/builtins/device-history/device-history.addon.mjs +2 -2
  32. package/system/dist/builtins/device-manager/device-manager.addon.js +79 -8
  33. package/system/dist/builtins/device-manager/device-manager.addon.mjs +79 -8
  34. package/system/dist/builtins/device-manager/device-provider-context.d.ts +5 -0
  35. package/system/dist/builtins/device-manager/device-state-mirror.d.ts +10 -0
  36. package/system/dist/builtins/device-manager/runtime-state-persist-gate.d.ts +20 -1
  37. package/system/dist/builtins/hub-forwarder/index.js +1 -1
  38. package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
  39. package/system/dist/builtins/keychain/index.js +4 -4
  40. package/system/dist/builtins/keychain/index.mjs +4 -4
  41. package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
  42. package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
  43. package/system/dist/builtins/local-auth/local-auth.addon.js +2 -2
  44. package/system/dist/builtins/local-auth/local-auth.addon.mjs +2 -2
  45. package/system/dist/builtins/local-network/local-network.addon.js +3 -3
  46. package/system/dist/builtins/local-network/local-network.addon.mjs +3 -3
  47. package/system/dist/builtins/loki-logging/index.js +1 -1
  48. package/system/dist/builtins/loki-logging/index.mjs +1 -1
  49. package/system/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
  50. package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
  51. package/system/dist/builtins/platform-probe/index.js +1 -1
  52. package/system/dist/builtins/platform-probe/index.mjs +1 -1
  53. package/system/dist/builtins/record-entries/index.js +1 -1
  54. package/system/dist/builtins/record-entries/index.mjs +1 -1
  55. package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
  56. package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
  57. package/system/dist/builtins/snapshot/index.js +14 -12
  58. package/system/dist/builtins/snapshot/index.mjs +14 -12
  59. package/system/dist/builtins/snapshot/snapshot.addon.d.ts +6 -4
  60. package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
  61. package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
  62. package/system/dist/builtins/sqlite-storage/index.js +1 -1
  63. package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
  64. package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +3 -3
  65. package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +3 -3
  66. package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
  67. package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
  68. package/system/dist/builtins/system-config/system-config.addon.js +3 -3
  69. package/system/dist/builtins/system-config/system-config.addon.mjs +284 -284
  70. package/system/dist/builtins/winston-logging/index.js +1 -1
  71. package/system/dist/builtins/winston-logging/index.mjs +1 -1
  72. package/system/dist/{capture-engine-mZ2J-GD6.js → capture-engine-BgIjQWh6.js} +1 -1
  73. package/system/dist/{capture-engine-CIVKm_jN.mjs → capture-engine-DPn6JaPc.mjs} +1 -1
  74. package/system/dist/{composition-sources-bJP8_Z2o.mjs → composition-sources-B0rdPm85.mjs} +1 -1
  75. package/system/dist/{composition-sources-CGP5ZUYo.js → composition-sources-Bec_hQMM.js} +1 -1
  76. package/system/dist/{constants-BD8oSQro.js → constants-CsYMak6g.js} +1 -1
  77. package/system/dist/{constants-w-6vvTPp.mjs → constants-DsQsO8PD.mjs} +1 -1
  78. package/system/dist/{device-ca-CXxnQaff.js → device-ca-BeK8EI_7.js} +1 -1
  79. package/system/dist/{device-ca-DE_oetBE.mjs → device-ca-BuDqRFZd.mjs} +1 -1
  80. package/system/dist/{dist-B2-Uflhy.js → dist-CHC8tlB1.js} +351 -110
  81. package/system/dist/{dist-Be8yFd71.mjs → dist-DiknL6UU.mjs} +334 -99
  82. package/system/dist/file-host-worker.js +1 -1
  83. package/system/dist/file-host-worker.mjs +1 -1
  84. package/system/dist/{hub-identity-BjYvJU_v.js → hub-identity-BM26oLpK.js} +1 -1
  85. package/system/dist/{hub-identity-C3g7b58L.mjs → hub-identity-Dt-mbtkY.mjs} +1 -1
  86. package/system/dist/{hub-mdns-ciao-BRfv9GfW.js → hub-mdns-ciao-BDgSHCPM.js} +2 -2
  87. package/system/dist/{hub-mdns-ciao-v6X_SbWl.mjs → hub-mdns-ciao-CHq7b1FX.mjs} +2 -2
  88. package/system/dist/index.js +8 -8
  89. package/system/dist/index.mjs +8 -8
  90. package/system/dist/kernel/status-overlay.d.ts +1 -1
  91. package/system/dist/{legacy-integration-rows-door-DG35DG06.mjs → legacy-integration-rows-door-1WauJNCy.mjs} +1 -1
  92. package/system/dist/{legacy-integration-rows-door-B0q34gh3.js → legacy-integration-rows-door-BYJa0xPI.js} +1 -1
  93. package/system/dist/{rename-composition-block-LEbZ4oZE.mjs → rename-composition-block-BOoAElGp.mjs} +1 -1
  94. package/system/dist/{rename-composition-block-DNte3Cs9.js → rename-composition-block-fMaUic9d.js} +1 -1
  95. package/system/dist/{restore-archive-DpFPheMK.js → restore-archive-CeZV08vh.js} +1 -1
  96. package/system/dist/{restore-archive--4ENkU5f.mjs → restore-archive-DZDV10KN.mjs} +82 -82
  97. package/system/dist/{wal-maintenance-DQVDhuVJ.mjs → wal-maintenance-CekT_qH6.mjs} +0 -0
  98. package/system/dist/{wal-maintenance-BWUJktqT.js → wal-maintenance-CmCCUKZO.js} +0 -0
  99. package/system/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
2
  import "node:crypto";
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";
@@ -1302,7 +1298,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
1302
1298
  */
1303
1299
  var COMPOSED_DEVICE_STABLE_ID_PREFIX = "composed-";
1304
1300
  //#endregion
1305
- //#region ../types/dist/sleep-D6Pih0Qt.mjs
1301
+ //#region ../types/dist/sleep-BT1bLgPq.mjs
1306
1302
  /**
1307
1303
  * The audio chunk plane's byte format, and the ONE expansion from a coded
1308
1304
  * window to float samples (D455).
@@ -13492,6 +13488,14 @@ var CAP_VOCABULARY_BY_NAME = {
13492
13488
  icon: "refresh-cw"
13493
13489
  }]
13494
13490
  },
13491
+ "resync": {
13492
+ scope: "device",
13493
+ noun: {
13494
+ en: "Re-sync",
13495
+ it: "Risincronizzazione"
13496
+ },
13497
+ notOperatorFacing: { resync: "device adoption — re-aligning a device with its source is an onboarding step, not an automation action" }
13498
+ },
13495
13499
  "recording": {
13496
13500
  scope: "device",
13497
13501
  noun: {
@@ -15503,7 +15507,6 @@ var CAP_VOCABULARY_BY_NAME = {
15503
15507
  en: "Battery",
15504
15508
  it: "Batteria"
15505
15509
  },
15506
- notOperatorFacing: { wakeForStream: "a stream consumer wakes a sleeping camera to watch it; an automation that wants footage asks for the footage" },
15507
15510
  state: [
15508
15511
  {
15509
15512
  kind: "numeric",
@@ -15613,6 +15616,14 @@ var CAP_VOCABULARY_BY_NAME = {
15613
15616
  icon: "moon"
15614
15617
  }]
15615
15618
  },
15619
+ "low-power-sleep": {
15620
+ scope: "device",
15621
+ noun: {
15622
+ en: "Low-power sleep",
15623
+ it: "Sospensione a basso consumo"
15624
+ },
15625
+ notOperatorFacing: { wakeUp: "a stream consumer wakes a sleeping camera to watch it; an automation that wants footage asks for the footage" }
15626
+ },
15616
15627
  "network-link": {
15617
15628
  scope: "device",
15618
15629
  noun: {
@@ -16828,6 +16839,7 @@ var CAP_NAMES = Object.freeze([
16828
16839
  "log-channels",
16829
16840
  "log-destination",
16830
16841
  "login-method",
16842
+ "low-power-sleep",
16831
16843
  "media-player",
16832
16844
  "mesh-network",
16833
16845
  "meter",
@@ -16881,6 +16893,7 @@ var CAP_NAMES = Object.freeze([
16881
16893
  "records",
16882
16894
  "remote",
16883
16895
  "remote-layout-components",
16896
+ "resync",
16884
16897
  "running-state",
16885
16898
  "scene-monitor",
16886
16899
  "schedulers",
@@ -16984,7 +16997,7 @@ Object.freeze({
16984
16997
  ]
16985
16998
  },
16986
16999
  {
16987
- "path": "requiresCode",
17000
+ "path": "codeRequired",
16988
17001
  "valueType": "boolean"
16989
17002
  }
16990
17003
  ],
@@ -18052,7 +18065,24 @@ Object.freeze({
18052
18065
  "jammed",
18053
18066
  "door-open"
18054
18067
  ]
18068
+ }, {
18069
+ "path": "codeRequired",
18070
+ "valueType": "boolean"
18055
18071
  }],
18072
+ "low-power-sleep": [
18073
+ {
18074
+ "path": "sleeping",
18075
+ "valueType": "boolean"
18076
+ },
18077
+ {
18078
+ "path": "lastContactAt",
18079
+ "valueType": "number"
18080
+ },
18081
+ {
18082
+ "path": "lastUpdated",
18083
+ "valueType": "number"
18084
+ }
18085
+ ],
18056
18086
  "media-player": [
18057
18087
  {
18058
18088
  "path": "state",
@@ -19361,7 +19391,7 @@ function sleep(ms) {
19361
19391
  return new Promise((resolve) => setTimeout(resolve, Math.max(0, ms)));
19362
19392
  }
19363
19393
  //#endregion
19364
- //#region ../types/dist/implemented-methods-u7ddjc-_.mjs
19394
+ //#region ../types/dist/implemented-methods-k3KProJd.mjs
19365
19395
  var AUDIO_ENCODER_BY_CODEC = {
19366
19396
  opus: "libopus",
19367
19397
  aac: "aac",
@@ -48256,6 +48286,68 @@ z.object({
48256
48286
  /** Namespaces the client listed that no longer exist. */
48257
48287
  deleted: z.array(PreferenceNamespaceSchema)
48258
48288
  });
48289
+ /**
48290
+ * The wire shapes of `apiCatalog.*` — the API explorer's data (planning#595).
48291
+ *
48292
+ * One entry per tRPC method the hub serves, capability and core routes alike,
48293
+ * read off the live router by the hub (never a hand-written list).
48294
+ */
48295
+ var ApiProcedureKindSchema = z.enum([
48296
+ "query",
48297
+ "mutation",
48298
+ "subscription"
48299
+ ]);
48300
+ /** The gate a method runs behind. */
48301
+ var ApiProcedureTierSchema = z.enum([
48302
+ "public",
48303
+ "protected",
48304
+ "admin"
48305
+ ]);
48306
+ /** The token scope a capability route is matched against (its `METHOD_ACCESS_MAP` row). */
48307
+ var ApiCatalogScopeSchema = z.object({
48308
+ capName: z.string(),
48309
+ capScope: z.enum(["device", "system"]),
48310
+ access: z.enum([
48311
+ "view",
48312
+ "create",
48313
+ "delete"
48314
+ ]),
48315
+ role: z.string()
48316
+ });
48317
+ var ApiCatalogEntrySchema = z.object({
48318
+ /** `<router>.<method>` — the tRPC path. */
48319
+ path: z.string(),
48320
+ router: z.string(),
48321
+ method: z.string(),
48322
+ kind: ApiProcedureKindSchema,
48323
+ tier: ApiProcedureTierSchema,
48324
+ source: z.enum(["capability", "core"]),
48325
+ /** `null` on a core route: it needs authentication only (plus admin where its tier says so). */
48326
+ scope: ApiCatalogScopeSchema.nullable(),
48327
+ hasInput: z.boolean()
48328
+ });
48329
+ /**
48330
+ * May the CALLER call a method. The list has no input, so a method reached
48331
+ * only through a device grant is `per-device`: the real call is allowed or
48332
+ * refused on the device its input names.
48333
+ */
48334
+ var ApiCallableSchema = z.enum([
48335
+ "yes",
48336
+ "no",
48337
+ "per-device"
48338
+ ]);
48339
+ var ApiCatalogMethodSchema = ApiCatalogEntrySchema.extend({ callable: ApiCallableSchema });
48340
+ z.object({ methods: z.array(ApiCatalogMethodSchema) });
48341
+ /** A JSON Schema document, as the explorer receives it. */
48342
+ var JsonSchemaDocumentSchema = z.record(z.string(), z.unknown());
48343
+ z.object({
48344
+ path: z.string(),
48345
+ hasInput: z.boolean(),
48346
+ /** The INPUT JSON schema (what the caller sends); `null` without input or when it could not be produced. */
48347
+ schema: JsonSchemaDocumentSchema.nullable(),
48348
+ /** Why no schema could be produced (a non-Zod parser, an unrepresentable type). */
48349
+ error: z.string().nullable()
48350
+ });
48259
48351
  z.enum(["new-session", "step-up"]);
48260
48352
  /** The languages the hub's app landing pages are written in (D858). */
48261
48353
  var AppPageLangSchema = z.enum(["en", "it"]);
@@ -56739,9 +56831,8 @@ var airQualitySensorCapability = {
56739
56831
  * Many panels require a PIN code on arm / disarm — the optional
56740
56832
  * `code` field on the methods passes it through to the upstream
56741
56833
  * service; it's NEVER persisted in the runtime slice or any event
56742
- * payload. The presence of a required code is signalled by
56743
- * `DeviceFeature.AlarmPinRequired` so the UI gates a code-entry
56744
- * field without a slice fetch.
56834
+ * payload. Whether a code is required is the slice's `codeRequired`
56835
+ * (#459): `null` when the provider cannot tell (D393).
56745
56836
  *
56746
56837
  * `availableModes` mirrors HA's `supported_features`-derived arm
56747
56838
  * mode list — the UI renders only the buttons the panel accepts.
@@ -56780,9 +56871,13 @@ var AlarmPanelStatusSchema = z.object({
56780
56871
  /** Subset of arm modes the panel accepts. UI renders one button per
56781
56872
  * mode in this list. */
56782
56873
  availableModes: z.array(AlarmArmModeSchema),
56783
- /** Whether the panel requires a PIN on arm / disarm. Mirrors
56784
- * `DeviceFeature.AlarmPinRequired` for slice consumers. */
56785
- requiresCode: z.boolean(),
56874
+ /**
56875
+ * Whether the panel requires a PIN on arm / disarm (#459; the field was
56876
+ * `requiresCode`, and the `alarm-pin-required` device feature is gone).
56877
+ * `null` = the provider cannot tell (D393), never `false`. A slice restored
56878
+ * from before the rename is upgraded at boot by `restoredFieldRenames`.
56879
+ */
56880
+ codeRequired: z.boolean().nullable(),
56786
56881
  /** Ms epoch when the slice was last updated. */
56787
56882
  lastChangedAt: z.number()
56788
56883
  });
@@ -56839,7 +56934,7 @@ var alarmPanelCapability = {
56839
56934
  arm: method(z.object({
56840
56935
  deviceId: z.number().int().nonnegative(),
56841
56936
  mode: AlarmArmModeSchema,
56842
- /** Optional PIN code. Required when `requiresCode === true`.
56937
+ /** Optional PIN code. Required when `codeRequired === true`.
56843
56938
  * Passed through to the upstream service; never persisted. */
56844
56939
  code: z.string().min(1).optional()
56845
56940
  }), z.void(), {
@@ -56956,7 +57051,7 @@ var alarmPanelCapability = {
56956
57051
  /**
56957
57052
  * Runtime-state slice — mirrored by the kernel. UI panel reads the
56958
57053
  * full slice; renders an arm button per `availableModes` entry and
56959
- * a PIN field iff `requiresCode === true`.
57054
+ * a PIN field iff `codeRequired === true`.
56960
57055
  */
56961
57056
  runtimeState: AlarmPanelStatusSchema,
56962
57057
  /**
@@ -56967,6 +57062,13 @@ var alarmPanelCapability = {
56967
57062
  */
56968
57063
  durability: "restored",
56969
57064
  /**
57065
+ * A slice persisted before #459 carries `requiresCode`; the boot seed reads it
57066
+ * once into `codeRequired` (`restoredPart`), so no reader meets the old key,
57067
+ * and rewrites the row once without it (`seedMirrorFromRow`) — so this entry
57068
+ * can be dropped after every node has booted once on a release that has it.
57069
+ */
57070
+ restoredFieldRenames: { requiresCode: "codeRequired" },
57071
+ /**
56970
57072
  * History (D850): the panel's lifecycle state as an `enum` series —
56971
57073
  * change-only, no floor, so an `arming -> pending -> triggered` sequence of a
56972
57074
  * few seconds keeps every step. Who armed it stays in the events ledger.
@@ -58492,9 +58594,9 @@ var backupCapability = {
58492
58594
  vocabulary: { notOperatorFacing: "system backups — run and restored from the Backups page" }
58493
58595
  };
58494
58596
  /**
58495
- * Battery status snapshot. Emitted by providers whose device is
58496
- * battery-operated (cameras with `DeviceFeature.BatteryOperated`,
58497
- * future sensor/button accessories). Consumers build their own "low
58597
+ * Battery status snapshot. Emitted by providers whose device reports a
58598
+ * battery (`DeviceFeature.BatteryOperated`): battery cameras, sensors,
58599
+ * buttons. Whether the device SLEEPS is `low-power-sleep`, not this cap. Consumers build their own "low
58498
58600
  * battery" alerting on top — the cap deliberately does NOT enforce a
58499
58601
  * threshold.
58500
58602
  */
@@ -58651,47 +58753,12 @@ var batteryCapability = {
58651
58753
  deviceNative: true,
58652
58754
  mode: "singleton",
58653
58755
  deviceTypes: BATTERY_DEVICE_TYPES,
58654
- methods: {
58655
- /**
58656
- * Explicitly wake the camera from low-power sleep ahead of a
58657
- * streaming session start. Consumers that initiate a stream
58658
- * against a sleeping battery cam (HomeKit Secure Video, Alexa
58659
- * RTCSession, snapshot wrappers) call this with a short timeout
58660
- * before establishing the media pipeline — the broker's own
58661
- * passive wake-on-dial works but adds 5–7 seconds to first-frame,
58662
- * during which the consumer renders a black screen. Pre-waking
58663
- * compresses that gap.
58664
- *
58665
- * Returns `awoke: true` when the firmware acknowledged the wake
58666
- * before `timeoutMs`. Returns `awoke: false` when it timed out OR
58667
- * the cap surface is unavailable (no Baichuan / firmware
58668
- * channel); the caller should still attempt the stream — the
58669
- * passive broker wake remains as fallback.
58670
- */
58671
- wakeForStream: method(z.object({
58672
- deviceId: z.number(),
58673
- /** Bound on the wait. Sensible range 3000–10000ms. */
58674
- timeoutMs: z.number().int().min(500).max(3e4).default(8e3)
58675
- }), z.object({
58676
- awoke: z.boolean(),
58677
- durationMs: z.number()
58678
- }), {
58679
- kind: "mutation",
58680
- notOperatorFacing: "a stream consumer wakes a sleeping camera to watch it; an automation that wants footage asks for the footage"
58681
- }) },
58682
58756
  /**
58683
- * A composed provider (battery ADDED to a pet feeder or container that has
58684
- * no wake surface) answers `wakeForStream` with the same "unavailable"
58685
- * result the contract already defines above: "Returns `awoke: false` when
58686
- * … the cap surface is unavailable." (D663).
58757
+ * No methods: waking a sleeping camera is `low-power-sleep.wakeUp`
58758
+ * (#459, Q2). A battery reading says nothing about sleep — a battery sensor
58759
+ * reports charge and never needs waking.
58687
58760
  */
58688
- composedMethods: { wakeForStream: {
58689
- kind: "answer",
58690
- value: {
58691
- awoke: false,
58692
- durationMs: 0
58693
- }
58694
- } },
58761
+ methods: {},
58695
58762
  events: {
58696
58763
  /**
58697
58764
  * Emitted whenever the cached status changes (firmware push OR
@@ -66418,7 +66485,7 @@ function groupTemplate(id) {
66418
66485
  }
66419
66486
  /**
66420
66487
  * Cap history catalog, projected from every `*.cap.ts` `history` block.
66421
- * 47 caps with series (130 series), 39 caps answered `'none'`.
66488
+ * 47 caps with series (130 series), 40 caps answered `'none'`.
66422
66489
  * Field keys are `runtimeState` paths (`a.b` into fixed objects only).
66423
66490
  */
66424
66491
  var HISTORY_CATALOG = {
@@ -83402,8 +83469,8 @@ var localNetworkCapability = {
83402
83469
  * (workplace keypad locks, hospitality). The optional `code` field
83403
83470
  * on the methods passes it through to the upstream service — the
83404
83471
  * code is NEVER persisted in the runtime slice or any event payload.
83405
- * Locks that REQUIRE a code set `DeviceFeature.LockPinRequired` so
83406
- * the UI gates a code-entry field without a slice fetch.
83472
+ * Whether a lock REQUIRES a code is the slice's `codeRequired` (#459):
83473
+ * `true` / `false` when the provider knows, `null` when it does not (D393).
83407
83474
  *
83408
83475
  * Locks that support a latch-release ("open door") action advertise
83409
83476
  * `DeviceFeature.LockOpen`. The `open` method triggers the latch
@@ -83432,6 +83499,13 @@ var LockControlStatusSchema = z.object({
83432
83499
  /** Lifecycle state of the lock. `jammed` means the motor reported
83433
83500
  * failure to reach the target — operator intervention required. */
83434
83501
  state: LockStateSchema,
83502
+ /**
83503
+ * Whether lock / unlock need a PIN `code` (#459, replaces the
83504
+ * `lock-pin-required` device feature). `null` = the provider cannot tell
83505
+ * (D393) — never `false`. `.optional()` so a restored slice written before
83506
+ * the field still parses; readers treat absent exactly like `null`.
83507
+ */
83508
+ codeRequired: z.boolean().nullable().optional(),
83435
83509
  /** Ms epoch when the slice was last updated. */
83436
83510
  lastChangedAt: z.number()
83437
83511
  });
@@ -83956,6 +84030,90 @@ var loginMethodCapability = {
83956
84030
  vocabulary: { notOperatorFacing: NOT_A_DEVICE.IDENTITY }
83957
84031
  };
83958
84032
  /**
84033
+ * low-power-sleep — a device that goes into low-power sleep and must be WOKEN
84034
+ * before it streams (#459, Q2). A battery camera (Reolink Argus, a robot's
84035
+ * on-board camera) is one; a battery SENSOR is not: it reports charge on the
84036
+ * `battery` cap and never sleeps. The two meanings used to share
84037
+ * `DeviceFeature.BatteryOperated`; this cap is the one that answers "sleeps",
84038
+ * and `DeviceFeature.Sleeps` is derived from it being bound with
84039
+ * `wakeUp` implemented.
84040
+ *
84041
+ * The state is the sleep inputs (`deriveBatteryPresence`): whether the device
84042
+ * is asleep, and the last time it PROVED it was reachable. Read from this slice
84043
+ * by the stream broker (`readBatterySleepFacts`), the recorder
84044
+ * (`recordingWakeDeps`) and the snapshot builtin. The broker's per-device
84045
+ * mirror is still also fed by `BatteryOnStatusChanged` events.
84046
+ */
84047
+ var LowPowerSleepStatusSchema = z.object({
84048
+ /**
84049
+ * True while the firmware is in low-power mode. A provider MUST avoid polling
84050
+ * during sleep — a read wakes the device and drains charge.
84051
+ */
84052
+ sleeping: z.boolean().meta({ label: "Sleeping" }),
84053
+ /**
84054
+ * Ms epoch of the last time the device proved it was reachable, from
84055
+ * PASSIVE signals only (a completed round-trip, an observed wake, a push).
84056
+ * Absent = never since this slice was born. The only input that separates
84057
+ * "asleep" from "gone".
84058
+ */
84059
+ lastContactAt: z.number().optional(),
84060
+ /** Ms epoch of the last observation. */
84061
+ lastUpdated: z.number().meta(readingMeta("none"))
84062
+ });
84063
+ var lowPowerSleepCapability = {
84064
+ name: "low-power-sleep",
84065
+ scope: "device",
84066
+ deviceNative: true,
84067
+ mode: "singleton",
84068
+ deviceTypes: [DeviceType.Camera],
84069
+ methods: {
84070
+ /**
84071
+ * Explicitly wake the device from low-power sleep ahead of a streaming
84072
+ * session start. Consumers that initiate a stream against a sleeping
84073
+ * camera (wake-on-play, the recorder, HomeKit, Alexa, snapshot wrappers)
84074
+ * call this with a short timeout before establishing the media pipeline —
84075
+ * the broker's own passive wake-on-dial works but adds 5–7 seconds to
84076
+ * first-frame. Pre-waking compresses that gap.
84077
+ *
84078
+ * Returns `awoke: true` when the firmware acknowledged the wake before
84079
+ * `timeoutMs`, `awoke: false` when it timed out; the caller should still
84080
+ * attempt the stream — the passive broker wake remains as fallback.
84081
+ */
84082
+ wakeUp: method(z.object({
84083
+ deviceId: z.number(),
84084
+ /** Bound on the wait. Sensible range 3000–10000ms. */
84085
+ timeoutMs: z.number().int().min(500).max(3e4).default(8e3)
84086
+ }), z.object({
84087
+ awoke: z.boolean(),
84088
+ durationMs: z.number()
84089
+ }), {
84090
+ kind: "mutation",
84091
+ notOperatorFacing: "a stream consumer wakes a sleeping camera to watch it; an automation that wants footage asks for the footage"
84092
+ }) },
84093
+ status: {
84094
+ schema: LowPowerSleepStatusSchema,
84095
+ kind: "push",
84096
+ empty: {
84097
+ sleeping: false,
84098
+ lastUpdated: 0
84099
+ }
84100
+ },
84101
+ runtimeState: LowPowerSleepStatusSchema,
84102
+ /**
84103
+ * Runtime-state durability: **restored** — a sleeping camera may not report
84104
+ * for hours; the restored sleep inputs are the only thing the sleep gate and
84105
+ * the presence derivation have (the same argument as `battery`).
84106
+ */
84107
+ durability: "restored",
84108
+ /** History (D850): none — battery never recorded a sleep series either. */
84109
+ history: "none",
84110
+ volatileStateFields: ["lastUpdated"],
84111
+ vocabulary: {
84112
+ noun: t("Low-power sleep", "Sospensione a basso consumo"),
84113
+ order: 5245
84114
+ }
84115
+ };
84116
+ /**
83959
84117
  * mesh-network — collection cap for mesh-VPN providers.
83960
84118
  *
83961
84119
  * Different shape from `network-access` (public tunnels):
@@ -104763,6 +104921,42 @@ var remoteLayoutComponentsCapability = {
104763
104921
  methods: { listComponents: method(z.object({}), z.array(RemoteLayoutComponentSchema), { auth: "protected" }) },
104764
104922
  vocabulary: { notOperatorFacing: "the palette of the remote template editor — read-only data, never actuated" }
104765
104923
  };
104924
+ /**
104925
+ * resync — a device whose derived spec can be re-aligned on demand with its
104926
+ * upstream source (#459, Q6). Registered by the containers an integration
104927
+ * adopted; `DeviceFeature.Resyncable` (the generic Re-sync button) is derived
104928
+ * from it being bound with `resync` implemented.
104929
+ *
104930
+ * The work itself stays where it is: the owning addon's `device-adoption`
104931
+ * provider, reached through `deviceManager.adoptionResync` (which also owns
104932
+ * the "resync from zero" child purge). A provider answers this method by
104933
+ * asking for exactly that — see `resyncThroughAdoption`.
104934
+ */
104935
+ var ResyncDeviceInputSchema = z.object({
104936
+ deviceId: z.number().int().nonnegative(),
104937
+ /** "Resync from zero": purge the accessory children before re-deriving. */
104938
+ resetToSource: z.boolean().optional()
104939
+ });
104940
+ var resyncCapability = {
104941
+ name: "resync",
104942
+ scope: "device",
104943
+ deviceNative: true,
104944
+ mode: "singleton",
104945
+ deviceTypes: [
104946
+ DeviceType.Container,
104947
+ DeviceType.Workload,
104948
+ DeviceType.WeatherStation
104949
+ ],
104950
+ methods: { resync: method(ResyncDeviceInputSchema, ResyncResultSchema, {
104951
+ kind: "mutation",
104952
+ auth: "admin",
104953
+ notOperatorFacing: "device adoption — re-aligning a device with its source is an onboarding step, not an automation action"
104954
+ }) },
104955
+ vocabulary: {
104956
+ noun: t("Re-sync", "Risincronizzazione"),
104957
+ order: 3245
104958
+ }
104959
+ };
104766
104960
  var RUNNING_POWER_START_DELAY_MS = 3e4;
104767
104961
  var RUNNING_POWER_STOP_DELAY_MS = 18e4;
104768
104962
  /** What every type without its own row starts from. */
@@ -114110,6 +114304,7 @@ var ALL_CAPABILITY_DEFINITIONS = [
114110
114304
  logChannelsCapability,
114111
114305
  logDestinationCapability,
114112
114306
  loginMethodCapability,
114307
+ lowPowerSleepCapability,
114113
114308
  mediaPlayerCapability,
114114
114309
  meshNetworkCapability,
114115
114310
  meterCapability,
@@ -114163,6 +114358,7 @@ var ALL_CAPABILITY_DEFINITIONS = [
114163
114358
  recordsCapability,
114164
114359
  remoteCapability,
114165
114360
  remoteLayoutComponentsCapability,
114361
+ resyncCapability,
114166
114362
  runningStateCapability,
114167
114363
  sceneMonitorCapability,
114168
114364
  schedulersCapability,
@@ -117264,6 +117460,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
117264
117460
  irTransmitter: irTransmitterCapability,
117265
117461
  lawnMowerControl: lawnMowerControlCapability,
117266
117462
  lockControl: lockControlCapability,
117463
+ lowPowerSleep: lowPowerSleepCapability,
117267
117464
  mediaPlayer: mediaPlayerCapability,
117268
117465
  meter: meterCapability,
117269
117466
  motion: motionCapability,
@@ -118019,6 +118216,18 @@ function deriveBatteryPresence(input) {
118019
118216
  return input.nowMs - lastContactAt > budget ? "unreachable" : "sleeping";
118020
118217
  }
118021
118218
  /**
118219
+ * Does this device SLEEP and need waking before it streams (#459, Q2)?
118220
+ *
118221
+ * The one predicate every data-plane consumer asks (prebuffer, wake-on-play,
118222
+ * the recorder, sentry, the snapshot wrapper, the detection profile). It reads
118223
+ * `DeviceFeature.Sleeps`, derived from the `low-power-sleep` cap — never
118224
+ * `DeviceFeature.BatteryOperated`, which only says the device reports a
118225
+ * battery: a battery sensor reports charge and never sleeps.
118226
+ */
118227
+ function deviceSleeps(features) {
118228
+ return features.includes(DeviceFeature.Sleeps);
118229
+ }
118230
+ /**
118022
118231
  * WHICH child a container stands for — one definition, for every consumer.
118023
118232
  *
118024
118233
  * A CONTAINER device has no controllable surface of its own: it groups entity
@@ -118546,8 +118755,8 @@ var ALARM_MODES = [
118546
118755
  "vacation",
118547
118756
  "custom_bypass"
118548
118757
  ];
118549
- function alarmControls(state, modes, requiresCode) {
118550
- if (requiresCode) return [];
118758
+ function alarmControls(state, modes, codeRequired) {
118759
+ if (codeRequired) return [];
118551
118760
  const disarm = asAction(action("alarm.disarm", t("Disarm", "Disinserisci"), "shield-off", "alarm-panel", "disarm", {}, "primary"));
118552
118761
  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")));
118553
118762
  switch (state) {
@@ -118567,7 +118776,7 @@ var ACCESS_FAMILY_CONTRIBUTIONS = {
118567
118776
  const modes = slice === void 0 ? ALARM_MODES : slice.availableModes;
118568
118777
  return {
118569
118778
  reading: reading("alarm-panel", words?.state ?? "unknown", false, words?.title),
118570
- 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))],
118779
+ 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))],
118571
118780
  ...since === null || words === null ? {} : { facts: [fact("since", "clock", since, state === "triggered" ? "danger" : "muted")] },
118572
118781
  ...words === null ? {} : { tiles: {
118573
118782
  left: [{
@@ -123243,13 +123452,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
123243
123452
  access: "view",
123244
123453
  role: "viewer"
123245
123454
  },
123246
- "battery.wakeForStream": {
123247
- capName: "battery",
123248
- capScope: "device",
123249
- addonId: null,
123250
- access: "create",
123251
- role: "viewer"
123252
- },
123253
123455
  "binary.getStatus": {
123254
123456
  capName: "binary",
123255
123457
  capScope: "device",
@@ -126904,6 +127106,20 @@ var METHOD_ACCESS_MAP = Object.freeze({
126904
127106
  access: "view",
126905
127107
  role: "admin"
126906
127108
  },
127109
+ "lowPowerSleep.getStatus": {
127110
+ capName: "low-power-sleep",
127111
+ capScope: "device",
127112
+ addonId: null,
127113
+ access: "view",
127114
+ role: "viewer"
127115
+ },
127116
+ "lowPowerSleep.wakeUp": {
127117
+ capName: "low-power-sleep",
127118
+ capScope: "device",
127119
+ addonId: null,
127120
+ access: "create",
127121
+ role: "viewer"
127122
+ },
126907
127123
  "mediaPlayer.channelDown": {
126908
127124
  capName: "media-player",
126909
127125
  capScope: "device",
@@ -130579,6 +130795,13 @@ var METHOD_ACCESS_MAP = Object.freeze({
130579
130795
  access: "view",
130580
130796
  role: "admin"
130581
130797
  },
130798
+ "resync.resync": {
130799
+ capName: "resync",
130800
+ capScope: "device",
130801
+ addonId: null,
130802
+ access: "create",
130803
+ role: "admin"
130804
+ },
130582
130805
  "runningState.getStatus": {
130583
130806
  capName: "running-state",
130584
130807
  capScope: "device",
@@ -133052,7 +133275,7 @@ function deviceOffersActions(bindings, actionIds, mode = "any", deviceType) {
133052
133275
  const offered = new Set(actionsForDevice(bindings, deviceType).map((action) => action.id));
133053
133276
  return mode === "all" ? actionIds.every((id) => offered.has(id)) : actionIds.some((id) => offered.has(id));
133054
133277
  }
133055
- DeviceFeature.BatteryOperated;
133278
+ DeviceFeature.Sleeps;
133056
133279
  function bound(cap, methods = [], authority = "reported") {
133057
133280
  return {
133058
133281
  kind: "cap",
@@ -133070,13 +133293,13 @@ function reported(reason) {
133070
133293
  reason
133071
133294
  };
133072
133295
  }
133073
- var SLEEP_PENDING = "splits into a sleeping cap in a later phase of #459";
133074
133296
  var CAP_PENDING = "becomes a cap or is dropped in a later phase of #459";
133075
133297
  /** Exhaustive: a new `DeviceFeature` without a row does not compile. */
133076
133298
  var DEVICE_FEATURE_REQUIREMENTS = {
133077
- [DeviceFeature.BatteryOperated]: reported(SLEEP_PENDING),
133299
+ [DeviceFeature.BatteryOperated]: bound("battery"),
133300
+ [DeviceFeature.Sleeps]: derived("low-power-sleep", ["wakeUp"]),
133078
133301
  [DeviceFeature.Rebootable]: derived("reboot", ["reboot"]),
133079
- [DeviceFeature.Resyncable]: reported(CAP_PENDING),
133302
+ [DeviceFeature.Resyncable]: derived("resync", ["resync"]),
133080
133303
  [DeviceFeature.NativeSnapshot]: reported(CAP_PENDING),
133081
133304
  [DeviceFeature.DoorbellButton]: derived("doorbell"),
133082
133305
  [DeviceFeature.TwoWayAudio]: derived("intercom", [
@@ -133106,7 +133329,6 @@ var DEVICE_FEATURE_REQUIREMENTS = {
133106
133329
  [DeviceFeature.FanPreset]: bound("fan-control", ["setPreset"]),
133107
133330
  [DeviceFeature.FanDirection]: bound("fan-control", ["setDirection"]),
133108
133331
  [DeviceFeature.FanOscillating]: bound("fan-control", ["setOscillating"]),
133109
- [DeviceFeature.LockPinRequired]: reported(CAP_PENDING),
133110
133332
  [DeviceFeature.LockOpen]: bound("lock-control", ["open"]),
133111
133333
  [DeviceFeature.MediaPlayerSeek]: bound("media-player", ["seek"]),
133112
133334
  [DeviceFeature.MediaPlayerVolume]: bound("media-player", ["setVolume"]),
@@ -133121,7 +133343,6 @@ var DEVICE_FEATURE_REQUIREMENTS = {
133121
133343
  [DeviceFeature.MediaPlayerVolumeStep]: bound("media-player", ["volumeUp", "volumeDown"]),
133122
133344
  [DeviceFeature.MediaPlayerChannelStep]: bound("media-player", ["channelUp", "channelDown"]),
133123
133345
  [DeviceFeature.MediaPlayerPower]: bound("media-player", ["turnOn", "turnOff"]),
133124
- [DeviceFeature.AlarmPinRequired]: reported(CAP_PENDING),
133125
133346
  [DeviceFeature.PresenceGps]: reported(CAP_PENDING),
133126
133347
  [DeviceFeature.NotifierImage]: reported(CAP_PENDING),
133127
133348
  [DeviceFeature.NotifierPriority]: reported(CAP_PENDING),
@@ -133130,9 +133351,7 @@ var DEVICE_FEATURE_REQUIREMENTS = {
133130
133351
  [DeviceFeature.NotifierRecipients]: reported(CAP_PENDING),
133131
133352
  [DeviceFeature.ScriptVariables]: reported(CAP_PENDING),
133132
133353
  [DeviceFeature.AutomationSkipCondition]: reported(CAP_PENDING),
133133
- [DeviceFeature.VacuumHasMap]: reported(CAP_PENDING),
133134
133354
  [DeviceFeature.VacuumHasAi]: reported(CAP_PENDING),
133135
- [DeviceFeature.MowerHasMap]: reported(CAP_PENDING),
133136
133355
  [DeviceFeature.MowerHasTargetedMowing]: reported(CAP_PENDING),
133137
133356
  [DeviceFeature.Navigation]: derived("navigation"),
133138
133357
  [DeviceFeature.NetworkLink]: derived("network-link")
@@ -133321,6 +133540,7 @@ var CAP_NAMES_WITH_STATUS = [
133321
133540
  "intercom",
133322
133541
  "lawn-mower-control",
133323
133542
  "lock-control",
133543
+ "low-power-sleep",
133324
133544
  "media-player",
133325
133545
  "meter",
133326
133546
  "motion",
@@ -133515,11 +133735,6 @@ Object.freeze({
133515
133735
  form: "single",
133516
133736
  optional: false
133517
133737
  }],
133518
- "battery.wakeForStream": [{
133519
- name: "deviceId",
133520
- form: "single",
133521
- optional: false
133522
- }],
133523
133738
  "binary.getStatus": [{
133524
133739
  name: "deviceId",
133525
133740
  form: "single",
@@ -134703,6 +134918,16 @@ Object.freeze({
134703
134918
  form: "single",
134704
134919
  optional: true
134705
134920
  }],
134921
+ "lowPowerSleep.getStatus": [{
134922
+ name: "deviceId",
134923
+ form: "single",
134924
+ optional: false
134925
+ }],
134926
+ "lowPowerSleep.wakeUp": [{
134927
+ name: "deviceId",
134928
+ form: "single",
134929
+ optional: false
134930
+ }],
134706
134931
  "mediaPlayer.channelDown": [{
134707
134932
  name: "deviceId",
134708
134933
  form: "single",
@@ -135988,6 +136213,11 @@ Object.freeze({
135988
136213
  form: "single",
135989
136214
  optional: false
135990
136215
  }],
136216
+ "resync.resync": [{
136217
+ name: "deviceId",
136218
+ form: "single",
136219
+ optional: false
136220
+ }],
135991
136221
  "runningState.getStatus": [{
135992
136222
  name: "deviceId",
135993
136223
  form: "single",
@@ -136613,7 +136843,7 @@ Object.freeze({
136613
136843
  });
136614
136844
  /**
136615
136845
  * Per-cap runtime-state policy, projected from every `*.cap.ts` that declares
136616
- * `runtimeState`. 87 caps: 43 `restored`, 44 `session`.
136846
+ * `runtimeState`. 88 caps: 44 `restored`, 44 `session`.
136617
136847
  *
136618
136848
  * A cap absent from this map has no runtime-state slice at all. A cap PRESENT
136619
136849
  * with `durability: 'session'` has one and has decided not to keep it.
@@ -136625,7 +136855,8 @@ var RUNTIME_STATE_POLICY = {
136625
136855
  },
136626
136856
  "alarm-panel": {
136627
136857
  durability: "restored",
136628
- volatileFields: ["lastChangedAt"]
136858
+ volatileFields: ["lastChangedAt"],
136859
+ renamedFields: { requiresCode: "codeRequired" }
136629
136860
  },
136630
136861
  "ambient-light-sensor": {
136631
136862
  durability: "restored",
@@ -136792,6 +137023,10 @@ var RUNTIME_STATE_POLICY = {
136792
137023
  durability: "restored",
136793
137024
  volatileFields: ["lastChangedAt"]
136794
137025
  },
137026
+ "low-power-sleep": {
137027
+ durability: "restored",
137028
+ volatileFields: ["lastUpdated"]
137029
+ },
136795
137030
  "media-player": {
136796
137031
  durability: "session",
136797
137032
  volatileFields: []
@@ -139016,4 +139251,4 @@ function searchRank(rawQuery, fields) {
139016
139251
  return matchRank(label, keywords, (fields.identifiers ?? []).map(normalizeSearchText).filter((identifier) => identifier.length > 0), query) ?? fuzzyMatchRank(label, query) ?? bestFuzzy(keywords, query);
139017
139252
  }
139018
139253
  //#endregion
139019
- export { DEVICE_TEMPLATE_VALUES_CAP as $, reducePoints as $a, assertTransactScope as $c, localDateOf as $i, secretViewsOf as $l, builtinAutomationTemplate as $n, supportedRuntimes as $o, evaluateStepCondition as $r, implementedMethodsOf as $s, RECORDING_SOURCE_CAMSTACK_ADDON as $t, CatalogFileSchema as A, parseColorInput as Aa, RECORD_SWEEP_INTERVAL_MS as Ac, isAlertEpisodeOpen as Ai, isReadingQuantity as Al, actionWaitTotalMs as An, scopesAllowDeviceCap as Ao, databaseSnapshotCapability as Ar, DEFAULT_HISTORY_RETENTION as As, KEYCHAIN_RESET_TRIGGER_ACTOR as At, DEFAULT_HOLD_OVERRIDE as B, preconditionOf as Ba, RecordUniqueViolationError as Bc, isKernelDerivedFeature as Bi, normalizeNodeId as Bl, armRemovalReconcile as Bn, shortHostname as Bo, deviceExtensionCapability as Br, cloneStatefulExpressionMemory as Bs, MigrationMetaSchema as Bt, CATALOG_LANGS as C, normalizeTags as Ca, InvalidRecordError as Cc, hostEngineDevice as Ci, hydrateSchema as Cl, TemplateKindSchema as Cn, runFanOut as Co, coreBlockIdFromAddonId as Cr, withLocationMode as Cs, HISTORY_ITEM_CATALOG as Ct, CORE_BLOCK_ADDON_PREFIX as D, occurrenceOn as Da, RECORD_BATCH_MAX_BYTES as Dc, internalActionId as Di, isEvent as Dl, WORKLOAD_TRANSITION_CATEGORY as Dn, sameIdentifiers as Do, createDeviceExtensionProvider as Dr, COMPOSER_ADDON_ID as Ds, HvacModeSchema as Dt, CORE_BLOCKS_ADDON_ID as E, objectInputDeclaresRequiredDeviceId as Ea, RECORD_BATCH_MAX as Ec, integrationInstancesCapability as Ei, isDeviceConfigCap as El, UserRecordSchema as En, runtimeStatePolicyFor as Eo, coverCapability as Er, zoneOnlySite as Es, HostedWithdrawalGate as Et, DATABASE_SNAPSHOT_PARTIAL_SUFFIX as F, planComposition as Fa, ReadinessTimeoutError as Fc, isCollectionArrayMethod as Fi, isSecretRefOwnedBy as Fl, addonWidgetsCapability as Fn, settingsStoreCapability as Fo, defineExtensionSlotProvider as Fr, MINUTE_MS as Fs, MIGRATION_API_V1_METHODS as Ft, DEVICE_ID_FIELD as G, projectDeviceRow as Ga, UnindexedFilterError as Gc, isWorkloadSettled as Gi, readinessKey as Gl, batteryCapability as Gn, stableIdMapOf as Go, deviceRunsCapability as Gr, compositionSliceKey as Gs, PROPOSAL_MIN_SPAN_MS as Gt, DEVICE_ENROLLMENT_TTL_MS as H, problemsBlockSave as Ha, SECRET_CLEAR as Hc, isObjectInput as Hi, parseJsonObject as Hl, authProviderCapability as Hn, siteZoneKey as Ho, deviceManagerCapability as Hr, composedDeviceStableId as Hs, NetworkTunnelStartedDataSchema as Ht, DATABASE_SNAPSHOT_SUFFIX as I, platformProbeCapability as Ia, RecordIntegrationInstances as Ic, isCredentialTokenPayload as Ii, makeSecretMarker as Il, alertEpisodeId as In, settleDeviceFeatures as Io, deriveBatteryPresence as Ir, buildFfmpegArgs as Is, MINUTES_PER_DAY as It, DEVICE_SAN_USER_PREFIX as J, readRecipeLiteral as Ja, WELL_KNOWN_TAB_MAP as Jc, keychainCapability as Ji, resolveSecretMarkers as Jl, buildCapabilityLookup as Jn, storageMigrationCapability as Jo, deviceTransitionsCapability as Jr, disarmRoseMemory as Js, PowerSourceInfoSchema as Jt, DEVICE_NONCE_TTL_MS as K, proposeRunningThreshold as Ka, UnknownRecordKindError as Kc, kebabToCamel as Ki, recordSecretRef as Kl, brightnessCapability as Kn, storageAdminCapability as Ko, deviceStateCapability as Kr, compositionSourceKey as Ks, PackageRequiresSchema as Kt, DATABASE_SNAPSHOT_TIMEOUT_MS as L, powerSourceActuatorConflicts as La, RecordKindDeclarationSchema as Lc, isDefaultAppConnectionEndpoint as Li, mapSecretLeaves as Ll, alertEpisodePayload as Ln, sharedActuatorFeatures as Lo, describeComposableCaps as Lr, canonicalStoredBlockTarget as Ls, MOTION_CLOSE_AFTER_MS as Lt, ConsumableItemSchema as M, petFountainCapability as Ma, REMOVE_LEAF as Mc, isAppLinkBase as Mi, isSecretFieldView as Ml, addonIdOfActionId as Mn, searchRank as Mo, declaredSeriesKind as Mr, HISTORY_SLOW_MS as Ms, KeychainResetRecordSchema as Mt, CoreBlockSchema as N, petFountainWaterItem as Na, RUNTIME_DEFAULTS as Nc, isArrayOutputSchema as Ni, isSecretMarker as Nl, addonPagesCapability as Nn, seedInstanceOnce as No, decodeVectorBase64 as Nr, HOUR_MS as Ns, LOG_LEVEL_RANK as Nt, CREDENTIAL_TOKEN_AUDIENCE as O, orderMigrations as Oa, RECORD_DELETE_BATCH as Oc, interpolate as Oi, isInstanceEnabled as Ol, WorkloadStateSchema as On, schedulersCapability as Oo, customKeyOfRole as Or, CompositionSchema as Os, IDLE_ACTION_STATUS as Ot, CredentialTokenClaimsSchema as P, pickAppLinkHub as Pa, ReadinessRegistry as Pc, isBuiltinTemplateId as Pi, isSecretMarkerLike as Pl, addonSettingsCapability as Pn, selectEngineHostedBlocks as Po, defaultTagColorId as Pr, HelperMemberSchema as Ps, METHOD_ACCESS_MAP as Pt, DEVICE_TEMPLATE_THIS_ALIAS as Q, recordsCapability as Qa, asString$1 as Qc, lifecycleJobSchema as Qi, secretTreeFromSchema as Ql, buildStreamParamsConfigSchema as Qn, streamQualityLabel as Qo, evaluateCompositionField as Qr, historyRetentionFromSettings as Qs, QuantityUnitError as Qt, DATA_STORE_DATABASES as R, powerSourceCapability as Ra, RecordNotFoundError as Rc, isEmptyIdentifiers as Ri, nodeIdOfScopedKey as Rl, alertsCapability as Rn, sharedActuatorMethods as Ro, describeUnmet as Rr, canonicalStoredDeviceType as Rs, MediaPlayerStatusSchema as Rt, CAP_NAMES_WITH_STATUS as S, normalizeCoreBlockWrite as Sa, HISTORY_DEFAULT_MIN_INTERVAL_MS as Sc, heroLayoutCapability as Si, historyUnitFor as Sl, TagsFieldSchema as Sn, resolveTemplateRef as So, coreBlockComposition as Sr, withDefaultRunning as Ss, HISTORY_CATALOG as St, COMPOSER_RUNNER_ID as T, objectInputDeclaresAddonId as Ta, PlaintextSecretError as Tc, instanceCodeHash as Ti, isDebugChannelName as Tl, UNATTRIBUTED_BUCKET_KEY as Tn, runtimeFieldUnit as To, coreBlocksCapability as Tr, workloadTransition as Ts, HUB_MDNS_TXT_KEYS as Tt, DEVICE_HISTORY_ENERGY_KEY as U, procedureAuthKey as Ua, StoredRecordKindDeclarationSchema as Uc, isSameAddonId as Ui, parseJsonUnknown as Ul, backupCapability as Un, snapshotCapability as Uo, deviceOffersActions as Ur, compositionFeatureEnabled as Us, PET_FOUNTAIN_WATER_KEY as Ut, DERIVED_CAMERA_SILENCED_CAP_NAMES as V, prepareRecipeUnits as Va, RevConflictError as Vc, isLocationEnabled as Vi, normalizeSecretOwner as Vl, assertStepsOffered as Vn, siteFor as Vo, deviceHistoryCapability as Vr, composedDeviceRef as Vs, NcTaggedRuleKindSchema as Vt, DEVICE_IDENTIFIER_KEYS as W, processTimeZoneOr as Wa, TransactRefusedError as Wc, isVoidInput as Wi, parseSecretRef as Wl, bareAddonId as Wn, splitTranslationRef as Wo, deviceRemovalHookCapability as Wr, compositionItemFieldPath as Ws, PREFERENCES_MAX_VALUE_BYTES as Wt, DEVICE_TEMPLATE_MAX_LENGTH as X, reconcileReportedFeatures as Xa, asJsonObject as Xc, legacyModeOf as Xi, scopeKey as Xl, buildDeviceSignatureMessage as Xn, storageProviderCapability as Xo, enumerateItemArrayFields as Xr, evaluateStatistic as Xs, PreferenceNamespaceSchema as Xt, DEVICE_TEMPLATE_FILTERS as Y, readStoredRemoteConfig as Ya, actionEffect as Yc, legacyAutoLinkIds as Yi, ruleFireOfClaim as Yl, buildDeviceEnrollmentLink as Yn, storageOccupancyCapability as Yo, enumerateInferenceDevices as Yr, evaluateDerivative as Ys, PreferenceDeviceIdSchema as Yt, DEVICE_TEMPLATE_MAX_OUTPUT as Z, recordEntriesCapability as Za, asNumber as Zc, legacySweepDone as Zi, secretTreeFromPaths as Zl, buildHeroModel as Zn, streamCatalogCapability as Zo, enumerateSchemaFields as Zr, helperMembers as Zs, PreferenceValueSchema as Zt, BUILTIN_REMOTE_COMPONENTS as _, modeMayWrite as _a, DEVICE_STATUS_METHOD as _c, generateAutomationBlock as _i, entryBody as _l, StorageLocationModeSchema as _n, resolveMutate as _o, compositionFieldKey as _r, valveCapability as _s, FanDirectionSchema as _t, AGENT_MDNS_SERVICE_TYPE as a, logLevelAtMost as aa, openReset as ac, extractSourceInfoFromMetadata as ai, collectSecretMarkerRefs as al, RunningStateStatusSchema as an, renameInTags as ao, catalogueIssues as ar, templateCapability as as, DeviceStatusSchema as at, vocabActionIdFor as au, CAMERA_SWITCH_ORDER as b, nextTimeBoundaryInMs as ba, FilterRequiredError as bc, groupTemplate as bi, getDebugInterest as bl, TagNameSchema as bn, resolveRunnerId as bo, consumablesCapability as br, vectorStoreCapability as bs, FieldClaimSchema as bt, ActionError as c, mayWriteToLocation as ca, planStatisticTier as cc, fanOutTargets as ci, commandOrigin as cl, STREAM_PROFILE_META as cn, resolveActionVariables as co, checkTemplatePayload as cr, timedRunMaxIn as cs, EMPTY_AUTOMATION_STATE as ct, COMPOSED_DEVICE_STABLE_ID_PREFIX as cu, ActionTargetResolver as d, memoizePinnedFfmpeg as da, wattMillisecondsToKwh as dc, filesystemBrowseCapability as di, defineAddonMigrations as dl, SchedulerSchema as dn, resolveCoreBlockEntry as do, collectWhenMirrorSources as dr, toTimings as ds, ExportNameRefusedError as dt, DeviceType as du, localNetworkCapability as ea, integrateReading as ec, evaluateWhenTree as ei, assertValidDeclaration as el, REMOTE_MEDIA_COMMANDS as en, reexpandAutomationInstance as eo, calendarsCapability as er, sweepLegacyEngineRows as es, DEVICE_TOMBSTONE_RETENTION_MS as et, sleep as eu, ActionVariableSchema as f, mergeIdentifiers as fa, BaseAddon as fc, findChannelSource as fi, defineCustomActions as fl, ScopedTokenSchema as fn, resolveCoreBlockFiles as fo, colorCapability as fr, unmetRequirements as fs, FAN_CAPTURE_FIELDS as ft, errMsg as fu, BUILTIN_AUTOMATION_TEMPLATES as g, modeForSwitch as ga, DEVICE_SETTINGS_CONTRIBUTION_METHODS as gc, gbToBytes as gi, emitReadiness as gl, StorageCleanupJobSchema as gn, resolveMethodAuth as go, composerCapability as gr, validateSchedulerInput as gs, FanControlStatusSchema as gt, AutomationTemplatePayloadSchema as h, migrationsCapability as ha, DATAPLANE_SECRET_HEADER as hc, formatMinutes as hi, emitDownForOwnedCaps as hl, SsoBridgeClaimsSchema as hn, resolveLocationMode as ho, compileScalarOverride as hr, validateCustomAddress as hs, FIRST_LEVEL_MACRO_CLASSES as ht, ACTUATOR_TEMPLATE_IDS as i, logDestinationCapability as ia, nextLocalMidnight as ic, extractNestedAddonId as ii, collectSecretLeaves as il, RemoteLayoutPayloadSchema as in, removeFromTags as io, capUnitResolver as ir, tagsCapability as is, DeviceRunSchema as it, userError as iu, ConditionMirror as j, parseStreamParamsFormPatch as ja, REDACTED_SECRET as jc, isAlertEpisodeSeverity as ji, isSecretClear as jl, actionsCapability as jn, scoreRuntimes as jo, declarationOwnerNodeId as jr, HISTORY_FAST_MS as js, KeychainAuditEntrySchema as jt, CalendarPreferencesSchema as k, parseAcceleratorFactsJson as ka, RECORD_SECRET_COLLECTION_PREFIX as kc, isAddonInstanceId as ki, isKeychainStoredField as kl, actionSourceCapability as kn, scopesAllowAddon as ko, dataStoreProviderCapability as kr, DAY_MS as ks, INTERNAL_ACTION_PREFIX as kt, ActionMinDelaySecSchema as l, mediaPlayerCapability as la, statisticCadenceMs as lc, fanPresetsCapability as li, createEvent as ll, SWITCH_DEFAULT_OPTIONS as ln, resolveAppConnections as lo, climateControlCapability as lr, timedRunQuickRun as ls, EMPTY_REMOTE_ASSUMED_STATE as lt, DeviceFeature as lu, AutomationStateDocSchema as m, metricsProviderCapability as ma, CALLER_STAMPED_CAPABILITIES as mc, formatDeviceRevoker as mi, defineRecordKinds as ml, SetOscillationAxisInputSchema as mn, resolveHubAddressRoles as mo, compileHelper as mr, validateComposition as ms, FAN_OSCILLATION_AXIS_SETTABLE as mt, EventCategory as mu, ACTION_TARGET_INVALIDATION_EVENTS as n, lockControlCapability as na, isForwardInputRef as nc, expandContainer as ni, buildSecretRef as nl, RecordingStatusSchema as nn, remoteLayoutComponentsCapability as no, canonicalIconKey as nr, switchStateOfMode as ns, DeclaredDevices as nt, toSecretFieldView as nu, AGENT_MDNS_TXT_KEYS as o, looseSchema as oa, openStatistic as oc, fanAxisPath as oi, collectZodSecretPaths as ol, STORAGE_ACCESS_FALLBACK as on, replaceRecipeLiteral as oo, checkDeviceAlias as or, timedRunCapability as os, DeviceTombstoneSchema as ot, vocabCall as ou, AlertSchema as p, methodRefusal as pa, BatchTooLargeError as pc, foldSnapshotByFunction as pi, defineEntryKind as pl, ServerNameSchema as pn, resolveHeroLayout as po, compareVersions as pr, userManagementCapability as ps, FAN_OSCILLATION_AXES as pt, featuresOfBoundCaps as pu, DEVICE_SAN_CREDENTIAL_PREFIX as q, ptzAutotrackCapability as qa, VocabActionError as qc, keychainAdminCapability as qi, resolveCapMount as ql, buildActionSteps as qn, storageCapability as qo, deviceStatusCapability as qr, createStatefulExpressionMemory as qs, PetFountainStatusSchema as qt, ACTUATOR_METHODS as r, lockDoorLinkOfComposition as ra, isHistoryHelper as rc, expressionContainsBuiltinCall as ri, collectSecretConfigKeys as rl, RemoteAssumedStateSchema as rn, remoteSourceSteps as ro, canonicalStoredStepTargets as rr, tagKey as rs, DeviceIdentifiersSchema as rt, transformSecretWrite as ru, ALL_CAPABILITY_DEFINITIONS as s, mayReadLocation as sa, planResetTier as sc, fanControlCapability as si, commandEffect as sl, STORAGE_LOCATION_MODES as sn, replacedFieldKeys as so, checkRoleAddress as sr, timedRunLimitOf as ss, DiscoveryProposalBodySchema as st, withoutCallerStamp as su, ACTION_RUN_MAX_MS as t, locationIconKey as ta, isEngineHostedHelper as tc, evictionPolicyOfLocation as ti, auditedFields as tl, ROOT_BUCKET_KEY as tn, remoteCapability as to, cameraGridLayoutCapability as tr, switchCapability as ts, DataStoreDatabaseSchema as tt, toNodeId as tu, ActionStepSchema as u, mediaPlayerFeaturesOfRoles as ua, toExpressionValue as uc, featureForwards as ui, customAction as ul, SchedulerError as un, resolveBucketMs as uo, collectDeviceTemplates as ur, timedRunSeconds as us, EMPTY_REMOTE_CONFIG as ut, DeviceRole as uu, BaseDevice as v, motionCapability as va, DeclarationRefusedError as vc, generateDeviceAlias as vi, expandCapMethods as vl, StorageLocationTypeSchema as vn, resolveNotificationTapAddress as vo, compositionSourceRefs as vr, vectorDimFromBase64 as vs, FanPresetSchema as vt, COMPOSED_ITEM_FIXED_FIELDS as w, normalizeUnit as wa, NoCallerError as wc, identifierStrength as wi, isCommand as wl, TokenScopeSchema as wn, runSteps as wo, coreBlockSourceKind as wr, workloadCapability as ws, HUB_MDNS_SERVICE_TYPE as wt, CAMSTACK_APP_LINK_ORIGIN as x, normalizeActionUnits as xa, ForeignSecretMarkerError as xc, hasTimeLeaves as xi, historyItemFieldPath as xl, TagStyleSchema as xn, resolveStepArgs as xo, coreBlockAddonId as xr, weekdayOfLocalDate as xs, GroupCommandResultSchema as xt, BatteryStatusSchema as y, nextOccurrence as ya, DeviceTransitionSchema as yc, groupCommandsCapability as yi, formatSecretScope as yl, StorageMigrationJobSchema as yn, resolveRemoteSource as yo, compositionUnionReads as yr, vectorIndexDimConflictError as ys, FieldClaimModeSchema as yt, DAY_NAMES as z, powerSourceLinkOfComposition as za, RecordTooLargeError as zc, isInternalActionId as zi, nodePin as zl, appendTrace as zn, sharedColorModes as zo, deviceCredentialsCapability as zr, capAppliesToDeviceKind as zs, MigrationLedgerEntrySchema as zt };
139254
+ export { DEVICE_TOMBSTONE_RETENTION_MS as $, recordsCapability as $a, asString$1 as $c, localDateOf as $i, secretTreeFromSchema as $l, calendarsCapability as $n, streamQualityLabel as $o, evaluateStepCondition as $r, historyRetentionFromSettings as $s, RECORDING_SOURCE_CAMSTACK_ADDON as $t, ConditionMirror as A, parseAcceleratorFactsJson as Aa, RECORD_SECRET_COLLECTION_PREFIX as Ac, isAlertEpisodeOpen as Ai, isKeychainStoredField as Al, actionWaitTotalMs as An, scopesAllowAddon as Ao, declarationOwnerNodeId as Ar, DAY_MS as As, KeychainAuditEntrySchema as At, DERIVED_CAMERA_SILENCED_CAP_NAMES as B, powerSourceLinkOfComposition as Ba, RecordTooLargeError as Bc, isKernelDerivedFeature as Bi, nodePin as Bl, armRemovalReconcile as Bn, sharedColorModes as Bo, deviceHistoryCapability as Br, capAppliesToDeviceKind as Bs, MigrationMetaSchema as Bt, COMPOSED_ITEM_FIXED_FIELDS as C, normalizeCoreBlockWrite as Ca, HISTORY_DEFAULT_MIN_INTERVAL_MS as Cc, hostEngineDevice as Ci, historyUnitFor as Cl, TemplateKindSchema as Cn, resolveTemplateRef as Co, coreBlockSourceKind as Cr, withDefaultRunning as Cs, HUB_MDNS_SERVICE_TYPE as Ct, CREDENTIAL_TOKEN_AUDIENCE as D, objectInputDeclaresRequiredDeviceId as Da, RECORD_BATCH_MAX as Dc, internalActionId as Di, isDeviceConfigCap as Dl, WORKLOAD_TRANSITION_CATEGORY as Dn, runtimeStatePolicyFor as Do, customKeyOfRole as Dr, zoneOnlySite as Ds, IDLE_ACTION_STATUS as Dt, CORE_BLOCK_ADDON_PREFIX as E, objectInputDeclaresAddonId as Ea, PlaintextSecretError as Ec, integrationInstancesCapability as Ei, isDebugChannelName as El, UserRecordSchema as En, runtimeFieldUnit as Eo, createDeviceExtensionProvider as Er, workloadTransition as Es, HvacModeSchema as Et, DATABASE_SNAPSHOT_SUFFIX as F, pickAppLinkHub as Fa, ReadinessRegistry as Fc, isCollectionArrayMethod as Fi, isSecretMarkerLike as Fl, addonWidgetsCapability as Fn, selectEngineHostedBlocks as Fo, deriveBatteryPresence as Fr, HelperMemberSchema as Fs, MIGRATION_API_V1_METHODS as Ft, DEVICE_NONCE_TTL_MS as G, processTimeZoneOr as Ga, TransactRefusedError as Gc, isWorkloadSettled as Gi, parseSecretRef as Gl, brightnessCapability as Gn, splitTranslationRef as Go, deviceSleeps as Gr, compositionItemFieldPath as Gs, PROPOSAL_MIN_SPAN_MS as Gt, DEVICE_HISTORY_ENERGY_KEY as H, prepareRecipeUnits as Ha, RevConflictError as Hc, isObjectInput as Hi, normalizeSecretOwner as Hl, authProviderCapability as Hn, siteFor as Ho, deviceOffersActions as Hr, composedDeviceRef as Hs, NetworkTunnelStartedDataSchema as Ht, DATABASE_SNAPSHOT_TIMEOUT_MS as I, planComposition as Ia, ReadinessTimeoutError as Ic, isCredentialTokenPayload as Ii, isSecretRefOwnedBy as Il, alertEpisodeId as In, settingsStoreCapability as Io, describeComposableCaps as Ir, MINUTE_MS as Is, MINUTES_PER_DAY as It, DEVICE_TEMPLATE_FILTERS as J, ptzAutotrackCapability as Ja, VocabActionError as Jc, keychainCapability as Ji, resolveCapMount as Jl, buildDeviceEnrollmentLink as Jn, storageCapability as Jo, deviceTransitionsCapability as Jr, createStatefulExpressionMemory as Js, PowerSourceInfoSchema as Jt, DEVICE_SAN_CREDENTIAL_PREFIX as K, projectDeviceRow as Ka, UnindexedFilterError as Kc, kebabToCamel as Ki, readinessKey as Kl, buildActionSteps as Kn, stableIdMapOf as Ko, deviceStateCapability as Kr, compositionSliceKey as Ks, PackageRequiresSchema as Kt, DATA_STORE_DATABASES as L, platformProbeCapability as La, RecordIntegrationInstances as Lc, isDefaultAppConnectionEndpoint as Li, makeSecretMarker as Ll, alertEpisodePayload as Ln, settleDeviceFeatures as Lo, describeUnmet as Lr, buildFfmpegArgs as Ls, MOTION_CLOSE_AFTER_MS as Lt, CoreBlockSchema as M, parseStreamParamsFormPatch as Ma, REDACTED_SECRET as Mc, isAppLinkBase as Mi, isSecretClear as Ml, addonIdOfActionId as Mn, scoreRuntimes as Mo, decodeVectorBase64 as Mr, HISTORY_FAST_MS as Ms, LOG_LEVEL_RANK as Mt, CredentialTokenClaimsSchema as N, petFountainCapability as Na, REMOVE_LEAF as Nc, isArrayOutputSchema as Ni, isSecretFieldView as Nl, addonPagesCapability as Nn, searchRank as No, defaultTagColorId as Nr, HISTORY_SLOW_MS as Ns, LowPowerSleepStatusSchema as Nt, CalendarPreferencesSchema as O, occurrenceOn as Oa, RECORD_BATCH_MAX_BYTES as Oc, interpolate as Oi, isEvent as Ol, WorkloadStateSchema as On, sameIdentifiers as Oo, dataStoreProviderCapability as Or, COMPOSER_ADDON_ID as Os, INTERNAL_ACTION_PREFIX as Ot, DATABASE_SNAPSHOT_PARTIAL_SUFFIX as P, petFountainWaterItem as Pa, RUNTIME_DEFAULTS as Pc, isBuiltinTemplateId as Pi, isSecretMarker as Pl, addonSettingsCapability as Pn, seedInstanceOnce as Po, defineExtensionSlotProvider as Pr, HOUR_MS as Ps, METHOD_ACCESS_MAP as Pt, DEVICE_TEMPLATE_VALUES_CAP as Q, recordEntriesCapability as Qa, asNumber as Qc, lifecycleJobSchema as Qi, secretTreeFromPaths as Ql, builtinAutomationTemplate as Qn, streamCatalogCapability as Qo, evaluateCompositionField as Qr, helperMembers as Qs, QuantityUnitError as Qt, DAY_NAMES as R, powerSourceActuatorConflicts as Ra, RecordKindDeclarationSchema as Rc, isEmptyIdentifiers as Ri, mapSecretLeaves as Rl, alertsCapability as Rn, sharedActuatorFeatures as Ro, deviceCredentialsCapability as Rr, canonicalStoredBlockTarget as Rs, MediaPlayerStatusSchema as Rt, CATALOG_LANGS as S, normalizeActionUnits as Sa, ForeignSecretMarkerError as Sc, heroLayoutCapability as Si, historyItemFieldPath as Sl, TagsFieldSchema as Sn, resolveStepArgs as So, coreBlockIdFromAddonId as Sr, weekdayOfLocalDate as Ss, HISTORY_ITEM_CATALOG as St, CORE_BLOCKS_ADDON_ID as T, normalizeUnit as Ta, NoCallerError as Tc, instanceCodeHash as Ti, isCommand as Tl, UNATTRIBUTED_BUCKET_KEY as Tn, runSteps as To, coverCapability as Tr, workloadCapability as Ts, HostedWithdrawalGate as Tt, DEVICE_IDENTIFIER_KEYS as U, problemsBlockSave as Ua, SECRET_CLEAR as Uc, isSameAddonId as Ui, parseJsonObject as Ul, backupCapability as Un, siteZoneKey as Uo, deviceRemovalHookCapability as Ur, composedDeviceStableId as Us, PET_FOUNTAIN_WATER_KEY as Ut, DEVICE_ENROLLMENT_TTL_MS as V, preconditionOf as Va, RecordUniqueViolationError as Vc, isLocationEnabled as Vi, normalizeNodeId as Vl, assertStepsOffered as Vn, shortHostname as Vo, deviceManagerCapability as Vr, cloneStatefulExpressionMemory as Vs, NcTaggedRuleKindSchema as Vt, DEVICE_ID_FIELD as W, procedureAuthKey as Wa, StoredRecordKindDeclarationSchema as Wc, isVoidInput as Wi, parseJsonUnknown as Wl, bareAddonId as Wn, snapshotCapability as Wo, deviceRunsCapability as Wr, compositionFeatureEnabled as Ws, PREFERENCES_MAX_VALUE_BYTES as Wt, DEVICE_TEMPLATE_MAX_OUTPUT as X, readStoredRemoteConfig as Xa, actionEffect as Xc, legacyModeOf as Xi, ruleFireOfClaim as Xl, buildHeroModel as Xn, storageOccupancyCapability as Xo, enumerateItemArrayFields as Xr, evaluateDerivative as Xs, PreferenceNamespaceSchema as Xt, DEVICE_TEMPLATE_MAX_LENGTH as Y, readRecipeLiteral as Ya, WELL_KNOWN_TAB_MAP as Yc, legacyAutoLinkIds as Yi, resolveSecretMarkers as Yl, buildDeviceSignatureMessage as Yn, storageMigrationCapability as Yo, enumerateInferenceDevices as Yr, disarmRoseMemory as Ys, PreferenceDeviceIdSchema as Yt, DEVICE_TEMPLATE_THIS_ALIAS as Z, reconcileReportedFeatures as Za, asJsonObject as Zc, legacySweepDone as Zi, scopeKey as Zl, buildStreamParamsConfigSchema as Zn, storageProviderCapability as Zo, enumerateSchemaFields as Zr, evaluateStatistic as Zs, PreferenceValueSchema as Zt, BUILTIN_REMOTE_COMPONENTS as _, modeForSwitch as _a, DEVICE_SETTINGS_CONTRIBUTION_METHODS as _c, generateAutomationBlock as _i, emitReadiness as _l, StorageLocationModeSchema as _n, resolveMethodAuth as _o, compositionSourceRefs as _r, validateSchedulerInput as _s, FanPresetSchema as _t, AGENT_MDNS_SERVICE_TYPE as a, logLevelAtMost as aa, nextLocalMidnight as ac, extractSourceInfoFromMetadata as ai, collectSecretLeaves as al, RunningStateStatusSchema as an, removeFromTags as ao, checkDeviceAlias as ar, tagsCapability as as, DeviceTombstoneSchema as at, userError as au, CAMSTACK_APP_LINK_ORIGIN as b, nextOccurrence as ba, DeviceTransitionSchema as bc, groupTemplate as bi, formatSecretScope as bl, TagNameSchema as bn, resolveRemoteSource as bo, coreBlockAddonId as br, vectorIndexDimConflictError as bs, GroupCommandResultSchema as bt, ActionError as c, mayReadLocation as ca, planResetTier as cc, fanOutTargets as ci, commandEffect as cl, STREAM_PROFILE_META as cn, replacedFieldKeys as co, climateControlCapability as cr, timedRunLimitOf as cs, EMPTY_REMOTE_ASSUMED_STATE as ct, withoutCallerStamp as cu, ActionTargetResolver as d, mediaPlayerFeaturesOfRoles as da, toExpressionValue as dc, filesystemBrowseCapability as di, customAction as dl, SchedulerSchema as dn, resolveBucketMs as do, colorCapability as dr, timedRunSeconds as ds, FAN_CAPTURE_FIELDS as dt, DeviceRole as du, localNetworkCapability as ea, implementedMethodsOf as ec, evaluateWhenTree as ei, assertTransactScope as el, REMOTE_MEDIA_COMMANDS as en, reducePoints as eo, cameraGridLayoutCapability as er, supportedRuntimes as es, DataStoreDatabaseSchema as et, secretViewsOf as eu, ActionVariableSchema as f, memoizePinnedFfmpeg as fa, wattMillisecondsToKwh as fc, findChannelSource as fi, defineAddonMigrations as fl, ScopedTokenSchema as fn, resolveCoreBlockEntry as fo, compareVersions as fr, toTimings as fs, FAN_OSCILLATION_AXES as ft, DeviceType as fu, BUILTIN_AUTOMATION_TEMPLATES as g, migrationsCapability as ga, DATAPLANE_SECRET_HEADER as gc, gbToBytes as gi, emitDownForOwnedCaps as gl, StorageCleanupJobSchema as gn, resolveLocationMode as go, compositionFieldKey as gr, validateCustomAddress as gs, FanDirectionSchema as gt, AutomationTemplatePayloadSchema as h, metricsProviderCapability as ha, CALLER_STAMPED_CAPABILITIES as hc, formatMinutes as hi, defineRecordKinds as hl, SsoBridgeClaimsSchema as hn, resolveHubAddressRoles as ho, composerCapability as hr, validateComposition as hs, FanControlStatusSchema as ht, EventCategory as hu, ACTUATOR_TEMPLATE_IDS as i, logDestinationCapability as ia, isHistoryHelper as ic, extractNestedAddonId as ii, collectSecretConfigKeys as il, RemoteLayoutPayloadSchema as in, remoteSourceSteps as io, catalogueIssues as ir, tagKey as is, DeviceStatusSchema as it, transformSecretWrite as iu, ConsumableItemSchema as j, parseColorInput as ja, RECORD_SWEEP_INTERVAL_MS as jc, isAlertEpisodeSeverity as ji, isReadingQuantity as jl, actionsCapability as jn, scopesAllowDeviceCap as jo, declaredSeriesKind as jr, DEFAULT_HISTORY_RETENTION as js, KeychainResetRecordSchema as jt, CatalogFileSchema as k, orderMigrations as ka, RECORD_DELETE_BATCH as kc, isAddonInstanceId as ki, isInstanceEnabled as kl, actionSourceCapability as kn, schedulersCapability as ko, databaseSnapshotCapability as kr, CompositionSchema as ks, KEYCHAIN_RESET_TRIGGER_ACTOR as kt, ActionMinDelaySecSchema as l, mayWriteToLocation as la, planStatisticTier as lc, fanPresetsCapability as li, commandOrigin as ll, SWITCH_DEFAULT_OPTIONS as ln, resolveActionVariables as lo, collectDeviceTemplates as lr, timedRunMaxIn as ls, EMPTY_REMOTE_CONFIG as lt, COMPOSED_DEVICE_STABLE_ID_PREFIX as lu, AutomationStateDocSchema as m, methodRefusal as ma, BatchTooLargeError as mc, formatDeviceRevoker as mi, defineEntryKind as ml, SetOscillationAxisInputSchema as mn, resolveHeroLayout as mo, compileScalarOverride as mr, userManagementCapability as ms, FIRST_LEVEL_MACRO_CLASSES as mt, featuresOfBoundCaps as mu, ACTION_TARGET_INVALIDATION_EVENTS as n, lockControlCapability as na, isEngineHostedHelper as nc, expandContainer as ni, auditedFields as nl, RecordingStatusSchema as nn, remoteCapability as no, canonicalStoredStepTargets as nr, switchCapability as ns, DeviceIdentifiersSchema as nt, toNodeId as nu, AGENT_MDNS_TXT_KEYS as o, looseSchema as oa, openReset as oc, fanAxisPath as oi, collectSecretMarkerRefs as ol, STORAGE_ACCESS_FALLBACK as on, renameInTags as oo, checkRoleAddress as or, templateCapability as os, DiscoveryProposalBodySchema as ot, vocabActionIdFor as ou, AlertSchema as p, mergeIdentifiers as pa, BaseAddon as pc, foldSnapshotByFunction as pi, defineCustomActions as pl, ServerNameSchema as pn, resolveCoreBlockFiles as po, compileHelper as pr, unmetRequirements as ps, FAN_OSCILLATION_AXIS_SETTABLE as pt, errMsg as pu, DEVICE_SAN_USER_PREFIX as q, proposeRunningThreshold as qa, UnknownRecordKindError as qc, keychainAdminCapability as qi, recordSecretRef as ql, buildCapabilityLookup as qn, storageAdminCapability as qo, deviceStatusCapability as qr, compositionSourceKey as qs, PetFountainStatusSchema as qt, ACTUATOR_METHODS as r, lockDoorLinkOfComposition as ra, isForwardInputRef as rc, expressionContainsBuiltinCall as ri, buildSecretRef as rl, RemoteAssumedStateSchema as rn, remoteLayoutComponentsCapability as ro, capUnitResolver as rr, switchStateOfMode as rs, DeviceRunSchema as rt, toSecretFieldView as ru, ALL_CAPABILITY_DEFINITIONS as s, lowPowerSleepCapability as sa, openStatistic as sc, fanControlCapability as si, collectZodSecretPaths as sl, STORAGE_LOCATION_MODES as sn, replaceRecipeLiteral as so, checkTemplatePayload as sr, timedRunCapability as ss, EMPTY_AUTOMATION_STATE as st, vocabCall as su, ACTION_RUN_MAX_MS as t, locationIconKey as ta, integrateReading as tc, evictionPolicyOfLocation as ti, assertValidDeclaration as tl, ROOT_BUCKET_KEY as tn, reexpandAutomationInstance as to, canonicalIconKey as tr, sweepLegacyEngineRows as ts, DeclaredDevices as tt, sleep as tu, ActionStepSchema as u, mediaPlayerCapability as ua, statisticCadenceMs as uc, featureForwards as ui, createEvent as ul, SchedulerError as un, resolveAppConnections as uo, collectWhenMirrorSources as ur, timedRunQuickRun as us, ExportNameRefusedError as ut, DeviceFeature as uu, BaseDevice as v, modeMayWrite as va, DEVICE_STATUS_METHOD as vc, generateDeviceAlias as vi, entryBody as vl, StorageLocationTypeSchema as vn, resolveMutate as vo, compositionUnionReads as vr, valveCapability as vs, FieldClaimModeSchema as vt, COMPOSER_RUNNER_ID as w, normalizeTags as wa, InvalidRecordError as wc, identifierStrength as wi, hydrateSchema as wl, TokenScopeSchema as wn, runFanOut as wo, coreBlocksCapability as wr, withLocationMode as ws, HUB_MDNS_TXT_KEYS as wt, CAP_NAMES_WITH_STATUS as x, nextTimeBoundaryInMs as xa, FilterRequiredError as xc, hasTimeLeaves as xi, getDebugInterest as xl, TagStyleSchema as xn, resolveRunnerId as xo, coreBlockComposition as xr, vectorStoreCapability as xs, HISTORY_CATALOG as xt, CAMERA_SWITCH_ORDER as y, motionCapability as ya, DeclarationRefusedError as yc, groupCommandsCapability as yi, expandCapMethods as yl, StorageMigrationJobSchema as yn, resolveNotificationTapAddress as yo, consumablesCapability as yr, vectorDimFromBase64 as ys, FieldClaimSchema as yt, DEFAULT_HOLD_OVERRIDE as z, powerSourceCapability as za, RecordNotFoundError as zc, isInternalActionId as zi, nodeIdOfScopedKey as zl, appendTrace as zn, sharedActuatorMethods as zo, deviceExtensionCapability as zr, canonicalStoredDeviceType as zs, MigrationLedgerEntrySchema as zt };