@camstack/types 1.2.589 → 1.2.591

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 (48) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/addon.js +4 -4
  3. package/dist/addon.mjs +4 -4
  4. package/dist/capabilities/battery.cap.d.ts +7 -41
  5. package/dist/capabilities/index.d.ts +6 -2
  6. package/dist/capabilities/low-power-sleep.cap.d.ts +83 -0
  7. package/dist/capabilities/pipeline-executor.cap.d.ts +18 -2
  8. package/dist/capabilities/resync.cap.d.ts +40 -0
  9. package/dist/client.js +9 -4
  10. package/dist/client.mjs +9 -4
  11. package/dist/{composed-stable-id-Kt5VKzGZ.mjs → composed-stable-id-BNTaDZEh.mjs} +9 -8
  12. package/dist/{composed-stable-id-DDv-Og0u.js → composed-stable-id-BdeYe5dD.js} +9 -8
  13. package/dist/device/device-feature-requirements.d.ts +3 -4
  14. package/dist/device/device-profile.d.ts +1 -1
  15. package/dist/device/device-type.d.ts +9 -8
  16. package/dist/device/low-power-sleep.d.ts +19 -0
  17. package/dist/device/resync-through-adoption.d.ts +12 -0
  18. package/dist/enums/event-category.d.ts +1 -1
  19. package/dist/enums.js +1 -1
  20. package/dist/enums.mjs +1 -1
  21. package/dist/{event-category-CE_VCE2G.js → event-category-BKxXXxnV.js} +1 -1
  22. package/dist/{event-category-Hwx_JSCU.mjs → event-category-CY27-fF0.mjs} +1 -1
  23. package/dist/generated/addon-api.d.ts +37 -8
  24. package/dist/generated/addon-cap-facts.d.ts +1 -1
  25. package/dist/generated/cap-status-types.d.ts +3 -1
  26. package/dist/generated/cap-vocabulary.d.ts +1 -1
  27. package/dist/generated/capability-router-map.d.ts +8 -2
  28. package/dist/generated/device-local-state.d.ts +3 -0
  29. package/dist/generated/device-proxy.d.ts +5 -0
  30. package/dist/generated/device-scoped-caps.d.ts +1 -1
  31. package/dist/generated/history-catalog.d.ts +1 -1
  32. package/dist/generated/method-access-map.d.ts +1 -1
  33. package/dist/generated/method-device-selectors.d.ts +1 -1
  34. package/dist/generated/runtime-state-durability.d.ts +1 -1
  35. package/dist/{implemented-methods-CbdShcW1.js → implemented-methods-BarLh7tc.js} +1 -1
  36. package/dist/{implemented-methods-BiV3Y-40.mjs → implemented-methods-k3KProJd.mjs} +1 -1
  37. package/dist/index.d.ts +2 -0
  38. package/dist/index.js +273 -67
  39. package/dist/index.mjs +266 -68
  40. package/dist/interfaces/event-bus.d.ts +1 -1
  41. package/dist/interfaces/pipeline-executor-capability.d.ts +7 -0
  42. package/dist/node.js +2 -2
  43. package/dist/node.mjs +2 -2
  44. package/dist/pipeline/second-pass/small-subject-recovery.d.ts +4 -8
  45. package/dist/{sleep-CICYFVJf.js → sleep-BA_SIc0O.js} +47 -9
  46. package/dist/{sleep-CFN40XWx.mjs → sleep-BT1bLgPq.mjs} +47 -9
  47. package/dist/types/pipeline-step.d.ts +35 -1
  48. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_sleep = require("./sleep-CICYFVJf.js");
3
- const require_event_category = require("./event-category-CE_VCE2G.js");
4
- const require_composed_stable_id = require("./composed-stable-id-DDv-Og0u.js");
5
- const require_implemented_methods = require("./implemented-methods-CbdShcW1.js");
2
+ const require_sleep = require("./sleep-BA_SIc0O.js");
3
+ const require_event_category = require("./event-category-BKxXXxnV.js");
4
+ const require_composed_stable_id = require("./composed-stable-id-BdeYe5dD.js");
5
+ const require_implemented_methods = require("./implemented-methods-BarLh7tc.js");
6
6
  const require_node_color = require("./node-color.js");
7
7
  const require_convert = require("./convert-BI8iTXn6.js");
8
8
  const require_device_template_catalogue = require("./device-template-catalogue.js");
@@ -43428,9 +43428,9 @@ var backupCapability = {
43428
43428
  //#endregion
43429
43429
  //#region src/capabilities/battery.cap.ts
43430
43430
  /**
43431
- * Battery status snapshot. Emitted by providers whose device is
43432
- * battery-operated (cameras with `DeviceFeature.BatteryOperated`,
43433
- * future sensor/button accessories). Consumers build their own "low
43431
+ * Battery status snapshot. Emitted by providers whose device reports a
43432
+ * battery (`DeviceFeature.BatteryOperated`): battery cameras, sensors,
43433
+ * buttons. Whether the device SLEEPS is `low-power-sleep`, not this cap. Consumers build their own "low
43434
43434
  * battery" alerting on top — the cap deliberately does NOT enforce a
43435
43435
  * threshold.
43436
43436
  */
@@ -43587,47 +43587,12 @@ var batteryCapability = {
43587
43587
  deviceNative: true,
43588
43588
  mode: "singleton",
43589
43589
  deviceTypes: BATTERY_DEVICE_TYPES,
43590
- methods: {
43591
43590
  /**
43592
- * Explicitly wake the camera from low-power sleep ahead of a
43593
- * streaming session start. Consumers that initiate a stream
43594
- * against a sleeping battery cam (HomeKit Secure Video, Alexa
43595
- * RTCSession, snapshot wrappers) call this with a short timeout
43596
- * before establishing the media pipeline — the broker's own
43597
- * passive wake-on-dial works but adds 5–7 seconds to first-frame,
43598
- * during which the consumer renders a black screen. Pre-waking
43599
- * compresses that gap.
43600
- *
43601
- * Returns `awoke: true` when the firmware acknowledged the wake
43602
- * before `timeoutMs`. Returns `awoke: false` when it timed out OR
43603
- * the cap surface is unavailable (no Baichuan / firmware
43604
- * channel); the caller should still attempt the stream — the
43605
- * passive broker wake remains as fallback.
43591
+ * No methods: waking a sleeping camera is `low-power-sleep.wakeUp`
43592
+ * (#459, Q2). A battery reading says nothing about sleep — a battery sensor
43593
+ * reports charge and never needs waking.
43606
43594
  */
43607
- wakeForStream: require_sleep.method(zod.z.object({
43608
- deviceId: zod.z.number(),
43609
- /** Bound on the wait. Sensible range 3000–10000ms. */
43610
- timeoutMs: zod.z.number().int().min(500).max(3e4).default(8e3)
43611
- }), zod.z.object({
43612
- awoke: zod.z.boolean(),
43613
- durationMs: zod.z.number()
43614
- }), {
43615
- kind: "mutation",
43616
- notOperatorFacing: "a stream consumer wakes a sleeping camera to watch it; an automation that wants footage asks for the footage"
43617
- }) },
43618
- /**
43619
- * A composed provider (battery ADDED to a pet feeder or container that has
43620
- * no wake surface) answers `wakeForStream` with the same "unavailable"
43621
- * result the contract already defines above: "Returns `awoke: false` when
43622
- * … the cap surface is unavailable." (D663).
43623
- */
43624
- composedMethods: { wakeForStream: {
43625
- kind: "answer",
43626
- value: {
43627
- awoke: false,
43628
- durationMs: 0
43629
- }
43630
- } },
43595
+ methods: {},
43631
43596
  events: {
43632
43597
  /**
43633
43598
  * Emitted whenever the cached status changes (firmware push OR
@@ -51529,7 +51494,7 @@ function groupTemplate(id) {
51529
51494
  //#region src/generated/history-catalog.ts
51530
51495
  /**
51531
51496
  * Cap history catalog, projected from every `*.cap.ts` `history` block.
51532
- * 47 caps with series (130 series), 39 caps answered `'none'`.
51497
+ * 47 caps with series (130 series), 40 caps answered `'none'`.
51533
51498
  * Field keys are `runtimeState` paths (`a.b` into fixed objects only).
51534
51499
  */
51535
51500
  var HISTORY_CATALOG = {
@@ -52318,6 +52283,7 @@ var HISTORY_NONE_CAPS = [
52318
52283
  "image-settings",
52319
52284
  "intercom",
52320
52285
  "ir-transmitter",
52286
+ "low-power-sleep",
52321
52287
  "motion-trigger",
52322
52288
  "motion-zones",
52323
52289
  "native-object-detection",
@@ -70536,6 +70502,92 @@ var loginMethodCapability = {
70536
70502
  vocabulary: { notOperatorFacing: require_sleep.NOT_A_DEVICE.IDENTITY }
70537
70503
  };
70538
70504
  //#endregion
70505
+ //#region src/capabilities/low-power-sleep.cap.ts
70506
+ /**
70507
+ * low-power-sleep — a device that goes into low-power sleep and must be WOKEN
70508
+ * before it streams (#459, Q2). A battery camera (Reolink Argus, a robot's
70509
+ * on-board camera) is one; a battery SENSOR is not: it reports charge on the
70510
+ * `battery` cap and never sleeps. The two meanings used to share
70511
+ * `DeviceFeature.BatteryOperated`; this cap is the one that answers "sleeps",
70512
+ * and `DeviceFeature.Sleeps` is derived from it being bound with
70513
+ * `wakeUp` implemented.
70514
+ *
70515
+ * The state is the sleep inputs (`deriveBatteryPresence`): whether the device
70516
+ * is asleep, and the last time it PROVED it was reachable. Read from this slice
70517
+ * by the stream broker (`readBatterySleepFacts`), the recorder
70518
+ * (`recordingWakeDeps`) and the snapshot builtin. The broker's per-device
70519
+ * mirror is still also fed by `BatteryOnStatusChanged` events.
70520
+ */
70521
+ var LowPowerSleepStatusSchema = zod.z.object({
70522
+ /**
70523
+ * True while the firmware is in low-power mode. A provider MUST avoid polling
70524
+ * during sleep — a read wakes the device and drains charge.
70525
+ */
70526
+ sleeping: zod.z.boolean().meta({ label: "Sleeping" }),
70527
+ /**
70528
+ * Ms epoch of the last time the device proved it was reachable, from
70529
+ * PASSIVE signals only (a completed round-trip, an observed wake, a push).
70530
+ * Absent = never since this slice was born. The only input that separates
70531
+ * "asleep" from "gone".
70532
+ */
70533
+ lastContactAt: zod.z.number().optional(),
70534
+ /** Ms epoch of the last observation. */
70535
+ lastUpdated: zod.z.number().meta(require_sleep.readingMeta("none"))
70536
+ });
70537
+ var lowPowerSleepCapability = {
70538
+ name: "low-power-sleep",
70539
+ scope: "device",
70540
+ deviceNative: true,
70541
+ mode: "singleton",
70542
+ deviceTypes: [require_composed_stable_id.DeviceType.Camera],
70543
+ methods: {
70544
+ /**
70545
+ * Explicitly wake the device from low-power sleep ahead of a streaming
70546
+ * session start. Consumers that initiate a stream against a sleeping
70547
+ * camera (wake-on-play, the recorder, HomeKit, Alexa, snapshot wrappers)
70548
+ * call this with a short timeout before establishing the media pipeline —
70549
+ * the broker's own passive wake-on-dial works but adds 5–7 seconds to
70550
+ * first-frame. Pre-waking compresses that gap.
70551
+ *
70552
+ * Returns `awoke: true` when the firmware acknowledged the wake before
70553
+ * `timeoutMs`, `awoke: false` when it timed out; the caller should still
70554
+ * attempt the stream — the passive broker wake remains as fallback.
70555
+ */
70556
+ wakeUp: require_sleep.method(zod.z.object({
70557
+ deviceId: zod.z.number(),
70558
+ /** Bound on the wait. Sensible range 3000–10000ms. */
70559
+ timeoutMs: zod.z.number().int().min(500).max(3e4).default(8e3)
70560
+ }), zod.z.object({
70561
+ awoke: zod.z.boolean(),
70562
+ durationMs: zod.z.number()
70563
+ }), {
70564
+ kind: "mutation",
70565
+ notOperatorFacing: "a stream consumer wakes a sleeping camera to watch it; an automation that wants footage asks for the footage"
70566
+ }) },
70567
+ status: {
70568
+ schema: LowPowerSleepStatusSchema,
70569
+ kind: "push",
70570
+ empty: {
70571
+ sleeping: false,
70572
+ lastUpdated: 0
70573
+ }
70574
+ },
70575
+ runtimeState: LowPowerSleepStatusSchema,
70576
+ /**
70577
+ * Runtime-state durability: **restored** — a sleeping camera may not report
70578
+ * for hours; the restored sleep inputs are the only thing the sleep gate and
70579
+ * the presence derivation have (the same argument as `battery`).
70580
+ */
70581
+ durability: "restored",
70582
+ /** History (D850): none — battery never recorded a sleep series either. */
70583
+ history: "none",
70584
+ volatileStateFields: ["lastUpdated"],
70585
+ vocabulary: {
70586
+ noun: require_sleep.t("Low-power sleep", "Sospensione a basso consumo"),
70587
+ order: 5245
70588
+ }
70589
+ };
70590
+ //#endregion
70539
70591
  //#region src/capabilities/mesh-network.cap.ts
70540
70592
  /**
70541
70593
  * mesh-network — collection cap for mesh-VPN providers.
@@ -76063,6 +76115,16 @@ var pipelineAnalyticsCapability = {
76063
76115
  //#endregion
76064
76116
  //#region src/capabilities/pipeline-executor.cap.ts
76065
76117
  /**
76118
+ * A rectangle as a fraction of a frame, `[0, 1]` on both axes — the wire shape
76119
+ * of `NormalizedRect` (which is derived from it).
76120
+ */
76121
+ var NormalizedRectSchema = zod.z.object({
76122
+ x: zod.z.number(),
76123
+ y: zod.z.number(),
76124
+ w: zod.z.number(),
76125
+ h: zod.z.number()
76126
+ });
76127
+ /**
76066
76128
  * A root model's boxes standing in for one crop-kind step's own inference
76067
76129
  * (D730) — see `runPipeline.suppliedRoot`.
76068
76130
  */
@@ -76569,7 +76631,16 @@ var pipelineExecutorCapability = {
76569
76631
  * reader) run on them through their own crop policy. Boxes are in the
76570
76632
  * PIXELS of the image this call carries. Absent ⇒ the root step runs.
76571
76633
  */
76572
- suppliedRoot: SuppliedRootOutputSchema.optional()
76634
+ suppliedRoot: SuppliedRootOutputSchema.optional(),
76635
+ /**
76636
+ * The motion analyzer's merged subjects (D394) for this camera, fresh,
76637
+ * normalised to the frame (0..1). Feeds the motion-guided root crop
76638
+ * (D1060): the executor picks per frame whether the object-detection
76639
+ * root runs on the full frame or on a crop around them. Honoured only
76640
+ * on the live `frame` plane with a `frameRef`. Absent or empty ⇒ no
76641
+ * motion known ⇒ full frame.
76642
+ */
76643
+ motionRegions: zod.z.array(NormalizedRectSchema).optional()
76573
76644
  }), require_sleep.PipelineRunResultBridge, { kind: "mutation" }),
76574
76645
  /**
76575
76646
  * Batched run — N raw frames packed into one cap call. The provider
@@ -94435,6 +94506,44 @@ var remoteLayoutComponentsCapability = {
94435
94506
  vocabulary: { notOperatorFacing: "the palette of the remote template editor — read-only data, never actuated" }
94436
94507
  };
94437
94508
  //#endregion
94509
+ //#region src/capabilities/resync.cap.ts
94510
+ /**
94511
+ * resync — a device whose derived spec can be re-aligned on demand with its
94512
+ * upstream source (#459, Q6). Registered by the containers an integration
94513
+ * adopted; `DeviceFeature.Resyncable` (the generic Re-sync button) is derived
94514
+ * from it being bound with `resync` implemented.
94515
+ *
94516
+ * The work itself stays where it is: the owning addon's `device-adoption`
94517
+ * provider, reached through `deviceManager.adoptionResync` (which also owns
94518
+ * the "resync from zero" child purge). A provider answers this method by
94519
+ * asking for exactly that — see `resyncThroughAdoption`.
94520
+ */
94521
+ var ResyncDeviceInputSchema = zod.z.object({
94522
+ deviceId: zod.z.number().int().nonnegative(),
94523
+ /** "Resync from zero": purge the accessory children before re-deriving. */
94524
+ resetToSource: zod.z.boolean().optional()
94525
+ });
94526
+ var resyncCapability = {
94527
+ name: "resync",
94528
+ scope: "device",
94529
+ deviceNative: true,
94530
+ mode: "singleton",
94531
+ deviceTypes: [
94532
+ require_composed_stable_id.DeviceType.Container,
94533
+ require_composed_stable_id.DeviceType.Workload,
94534
+ require_composed_stable_id.DeviceType.WeatherStation
94535
+ ],
94536
+ methods: { resync: require_sleep.method(ResyncDeviceInputSchema, ResyncResultSchema, {
94537
+ kind: "mutation",
94538
+ auth: "admin",
94539
+ notOperatorFacing: "device adoption — re-aligning a device with its source is an onboarding step, not an automation action"
94540
+ }) },
94541
+ vocabulary: {
94542
+ noun: require_sleep.t("Re-sync", "Risincronizzazione"),
94543
+ order: 3245
94544
+ }
94545
+ };
94546
+ //#endregion
94438
94547
  //#region src/running-state/defaults.ts
94439
94548
  var RUNNING_POWER_THRESHOLD_WATTS = 5;
94440
94549
  /**
@@ -104290,6 +104399,7 @@ var CAPABILITY_NAMES = {
104290
104399
  logChannels: "log-channels",
104291
104400
  logDestination: "log-destination",
104292
104401
  loginMethod: "login-method",
104402
+ lowPowerSleep: "low-power-sleep",
104293
104403
  mediaPlayer: "media-player",
104294
104404
  meshNetwork: "mesh-network",
104295
104405
  meter: "meter",
@@ -104343,6 +104453,7 @@ var CAPABILITY_NAMES = {
104343
104453
  records: "records",
104344
104454
  remote: "remote",
104345
104455
  remoteLayoutComponents: "remote-layout-components",
104456
+ resync: "resync",
104346
104457
  runningState: "running-state",
104347
104458
  sceneMonitor: "scene-monitor",
104348
104459
  schedulers: "schedulers",
@@ -104828,6 +104939,10 @@ var CAPABILITY_ROUTER_KEYS = [
104828
104939
  key: "loginMethod",
104829
104940
  name: "login-method"
104830
104941
  },
104942
+ {
104943
+ key: "lowPowerSleep",
104944
+ name: "low-power-sleep"
104945
+ },
104831
104946
  {
104832
104947
  key: "mediaPlayer",
104833
104948
  name: "media-player"
@@ -105040,6 +105155,10 @@ var CAPABILITY_ROUTER_KEYS = [
105040
105155
  key: "remoteLayoutComponents",
105041
105156
  name: "remote-layout-components"
105042
105157
  },
105158
+ {
105159
+ key: "resync",
105160
+ name: "resync"
105161
+ },
105043
105162
  {
105044
105163
  key: "runningState",
105045
105164
  name: "running-state"
@@ -105359,6 +105478,7 @@ var ALL_CAPABILITY_DEFINITIONS = [
105359
105478
  logChannelsCapability,
105360
105479
  logDestinationCapability,
105361
105480
  loginMethodCapability,
105481
+ lowPowerSleepCapability,
105362
105482
  mediaPlayerCapability,
105363
105483
  meshNetworkCapability,
105364
105484
  meterCapability,
@@ -105412,6 +105532,7 @@ var ALL_CAPABILITY_DEFINITIONS = [
105412
105532
  recordsCapability,
105413
105533
  remoteCapability,
105414
105534
  remoteLayoutComponentsCapability,
105535
+ resyncCapability,
105415
105536
  runningStateCapability,
105416
105537
  sceneMonitorCapability,
105417
105538
  schedulersCapability,
@@ -113551,6 +113672,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
113551
113672
  irTransmitter: irTransmitterCapability,
113552
113673
  lawnMowerControl: lawnMowerControlCapability,
113553
113674
  lockControl: lockControlCapability,
113675
+ lowPowerSleep: lowPowerSleepCapability,
113554
113676
  mediaPlayer: mediaPlayerCapability,
113555
113677
  meter: meterCapability,
113556
113678
  motion: motionCapability,
@@ -115101,6 +115223,50 @@ function isBatteryPresenceFault(presence) {
115101
115223
  return presence === "unreachable";
115102
115224
  }
115103
115225
  //#endregion
115226
+ //#region src/device/low-power-sleep.ts
115227
+ /**
115228
+ * Does this device SLEEP and need waking before it streams (#459, Q2)?
115229
+ *
115230
+ * The one predicate every data-plane consumer asks (prebuffer, wake-on-play,
115231
+ * the recorder, sentry, the snapshot wrapper, the detection profile). It reads
115232
+ * `DeviceFeature.Sleeps`, derived from the `low-power-sleep` cap — never
115233
+ * `DeviceFeature.BatteryOperated`, which only says the device reports a
115234
+ * battery: a battery sensor reports charge and never sleeps.
115235
+ */
115236
+ function deviceSleeps(features) {
115237
+ return features.includes(require_composed_stable_id.DeviceFeature.Sleeps);
115238
+ }
115239
+ /**
115240
+ * The `low-power-sleep` slice a provider projects from the `battery` slice it
115241
+ * already keeps: the sleep inputs, nothing else. One fact, one writer — the
115242
+ * provider's battery bookkeeping stays the source until the sleep state gets
115243
+ * its own writer.
115244
+ */
115245
+ function sleepSliceOfBattery(status) {
115246
+ return {
115247
+ sleeping: status.sleeping,
115248
+ ...status.lastContactAt !== void 0 ? { lastContactAt: status.lastContactAt } : {},
115249
+ lastUpdated: status.lastUpdated
115250
+ };
115251
+ }
115252
+ //#endregion
115253
+ //#region src/device/resync-through-adoption.ts
115254
+ /**
115255
+ * The `resync` provider of an adopted container (#459, Q6): the work is the
115256
+ * owning addon's `device-adoption.resync`, reached through
115257
+ * `deviceManager.adoptionResync`, which also owns the "resync from zero" child
115258
+ * purge. Registering this is what makes `DeviceFeature.Resyncable` true.
115259
+ */
115260
+ function resyncThroughAdoption(deviceManager, ownDeviceId) {
115261
+ return { resync: async ({ deviceId, resetToSource }) => {
115262
+ if (deviceId !== ownDeviceId) throw new Error(`resync: deviceId mismatch, expected ${ownDeviceId}, got ${deviceId}`);
115263
+ return deviceManager.adoptionResync.mutate({
115264
+ camDeviceId: deviceId,
115265
+ ...resetToSource !== void 0 ? { resetToSource } : {}
115266
+ });
115267
+ } };
115268
+ }
115269
+ //#endregion
115104
115270
  //#region src/device/container-primary-child.ts
115105
115271
  /**
115106
115272
  * WHICH child a container stands for — one definition, for every consumer.
@@ -120809,13 +120975,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
120809
120975
  access: "view",
120810
120976
  role: "viewer"
120811
120977
  },
120812
- "battery.wakeForStream": {
120813
- capName: "battery",
120814
- capScope: "device",
120815
- addonId: null,
120816
- access: "create",
120817
- role: "viewer"
120818
- },
120819
120978
  "binary.getStatus": {
120820
120979
  capName: "binary",
120821
120980
  capScope: "device",
@@ -124470,6 +124629,20 @@ var METHOD_ACCESS_MAP = Object.freeze({
124470
124629
  access: "view",
124471
124630
  role: "admin"
124472
124631
  },
124632
+ "lowPowerSleep.getStatus": {
124633
+ capName: "low-power-sleep",
124634
+ capScope: "device",
124635
+ addonId: null,
124636
+ access: "view",
124637
+ role: "viewer"
124638
+ },
124639
+ "lowPowerSleep.wakeUp": {
124640
+ capName: "low-power-sleep",
124641
+ capScope: "device",
124642
+ addonId: null,
124643
+ access: "create",
124644
+ role: "viewer"
124645
+ },
124473
124646
  "mediaPlayer.channelDown": {
124474
124647
  capName: "media-player",
124475
124648
  capScope: "device",
@@ -128145,6 +128318,13 @@ var METHOD_ACCESS_MAP = Object.freeze({
128145
128318
  access: "view",
128146
128319
  role: "admin"
128147
128320
  },
128321
+ "resync.resync": {
128322
+ capName: "resync",
128323
+ capScope: "device",
128324
+ addonId: null,
128325
+ access: "create",
128326
+ role: "admin"
128327
+ },
128148
128328
  "runningState.getStatus": {
128149
128329
  capName: "running-state",
128150
128330
  capScope: "device",
@@ -130650,6 +130830,7 @@ var KNOWN_CAP_NAMES = [
130650
130830
  "log-channels",
130651
130831
  "log-destination",
130652
130832
  "login-method",
130833
+ "low-power-sleep",
130653
130834
  "media-player",
130654
130835
  "mesh-network",
130655
130836
  "meter",
@@ -130703,6 +130884,7 @@ var KNOWN_CAP_NAMES = [
130703
130884
  "records",
130704
130885
  "remote",
130705
130886
  "remote-layout-components",
130887
+ "resync",
130706
130888
  "running-state",
130707
130889
  "scene-monitor",
130708
130890
  "schedulers",
@@ -130812,6 +130994,7 @@ var DEVICE_CAP_NAMES = [
130812
130994
  "ir-transmitter",
130813
130995
  "lawn-mower-control",
130814
130996
  "lock-control",
130997
+ "low-power-sleep",
130815
130998
  "media-player",
130816
130999
  "meter",
130817
131000
  "motion",
@@ -130839,6 +131022,7 @@ var DEVICE_CAP_NAMES = [
130839
131022
  "recording",
130840
131023
  "recording-onboard",
130841
131024
  "recording-signal",
131025
+ "resync",
130842
131026
  "running-state",
130843
131027
  "scene-monitor",
130844
131028
  "script-runner",
@@ -131283,7 +131467,7 @@ function deviceMatchesProfile(features, profile) {
131283
131467
  var BATTERY_DEVICE_PROFILE = {
131284
131468
  id: "battery",
131285
131469
  label: "Battery-operated camera",
131286
- when: { hasFeature: require_composed_stable_id.DeviceFeature.BatteryOperated },
131470
+ when: { hasFeature: require_composed_stable_id.DeviceFeature.Sleeps },
131287
131471
  defaults: {
131288
131472
  audioMode: "disabled",
131289
131473
  detectionMode: "on-motion"
@@ -131322,13 +131506,13 @@ function reported(reason) {
131322
131506
  reason
131323
131507
  };
131324
131508
  }
131325
- var SLEEP_PENDING = "splits into a sleeping cap in a later phase of #459";
131326
131509
  var CAP_PENDING = "becomes a cap or is dropped in a later phase of #459";
131327
131510
  /** Exhaustive: a new `DeviceFeature` without a row does not compile. */
131328
131511
  var DEVICE_FEATURE_REQUIREMENTS = {
131329
- [require_composed_stable_id.DeviceFeature.BatteryOperated]: reported(SLEEP_PENDING),
131512
+ [require_composed_stable_id.DeviceFeature.BatteryOperated]: bound("battery"),
131513
+ [require_composed_stable_id.DeviceFeature.Sleeps]: derived("low-power-sleep", ["wakeUp"]),
131330
131514
  [require_composed_stable_id.DeviceFeature.Rebootable]: derived("reboot", ["reboot"]),
131331
- [require_composed_stable_id.DeviceFeature.Resyncable]: reported(CAP_PENDING),
131515
+ [require_composed_stable_id.DeviceFeature.Resyncable]: derived("resync", ["resync"]),
131332
131516
  [require_composed_stable_id.DeviceFeature.NativeSnapshot]: reported(CAP_PENDING),
131333
131517
  [require_composed_stable_id.DeviceFeature.DoorbellButton]: derived("doorbell"),
131334
131518
  [require_composed_stable_id.DeviceFeature.TwoWayAudio]: derived("intercom", [
@@ -131380,9 +131564,7 @@ var DEVICE_FEATURE_REQUIREMENTS = {
131380
131564
  [require_composed_stable_id.DeviceFeature.NotifierRecipients]: reported(CAP_PENDING),
131381
131565
  [require_composed_stable_id.DeviceFeature.ScriptVariables]: reported(CAP_PENDING),
131382
131566
  [require_composed_stable_id.DeviceFeature.AutomationSkipCondition]: reported(CAP_PENDING),
131383
- [require_composed_stable_id.DeviceFeature.VacuumHasMap]: reported(CAP_PENDING),
131384
131567
  [require_composed_stable_id.DeviceFeature.VacuumHasAi]: reported(CAP_PENDING),
131385
- [require_composed_stable_id.DeviceFeature.MowerHasMap]: reported(CAP_PENDING),
131386
131568
  [require_composed_stable_id.DeviceFeature.MowerHasTargetedMowing]: reported(CAP_PENDING),
131387
131569
  [require_composed_stable_id.DeviceFeature.Navigation]: derived("navigation"),
131388
131570
  [require_composed_stable_id.DeviceFeature.NetworkLink]: derived("network-link")
@@ -132984,6 +133166,7 @@ var CAP_NAMES_WITH_STATUS = [
132984
133166
  "intercom",
132985
133167
  "lawn-mower-control",
132986
133168
  "lock-control",
133169
+ "low-power-sleep",
132987
133170
  "media-player",
132988
133171
  "meter",
132989
133172
  "motion",
@@ -133180,11 +133363,6 @@ var METHOD_DEVICE_SELECTORS = Object.freeze({
133180
133363
  form: "single",
133181
133364
  optional: false
133182
133365
  }],
133183
- "battery.wakeForStream": [{
133184
- name: "deviceId",
133185
- form: "single",
133186
- optional: false
133187
- }],
133188
133366
  "binary.getStatus": [{
133189
133367
  name: "deviceId",
133190
133368
  form: "single",
@@ -134368,6 +134546,16 @@ var METHOD_DEVICE_SELECTORS = Object.freeze({
134368
134546
  form: "single",
134369
134547
  optional: true
134370
134548
  }],
134549
+ "lowPowerSleep.getStatus": [{
134550
+ name: "deviceId",
134551
+ form: "single",
134552
+ optional: false
134553
+ }],
134554
+ "lowPowerSleep.wakeUp": [{
134555
+ name: "deviceId",
134556
+ form: "single",
134557
+ optional: false
134558
+ }],
134371
134559
  "mediaPlayer.channelDown": [{
134372
134560
  name: "deviceId",
134373
134561
  form: "single",
@@ -135653,6 +135841,11 @@ var METHOD_DEVICE_SELECTORS = Object.freeze({
135653
135841
  form: "single",
135654
135842
  optional: false
135655
135843
  }],
135844
+ "resync.resync": [{
135845
+ name: "deviceId",
135846
+ form: "single",
135847
+ optional: false
135848
+ }],
135656
135849
  "runningState.getStatus": [{
135657
135850
  name: "deviceId",
135658
135851
  form: "single",
@@ -136505,7 +136698,7 @@ function getCapsByProviderKind(kind) {
136505
136698
  //#region src/generated/runtime-state-durability.ts
136506
136699
  /**
136507
136700
  * Per-cap runtime-state policy, projected from every `*.cap.ts` that declares
136508
- * `runtimeState`. 87 caps: 43 `restored`, 44 `session`.
136701
+ * `runtimeState`. 88 caps: 44 `restored`, 44 `session`.
136509
136702
  *
136510
136703
  * A cap absent from this map has no runtime-state slice at all. A cap PRESENT
136511
136704
  * with `durability: 'session'` has one and has decided not to keep it.
@@ -136685,6 +136878,10 @@ var RUNTIME_STATE_POLICY = {
136685
136878
  durability: "restored",
136686
136879
  volatileFields: ["lastChangedAt"]
136687
136880
  },
136881
+ "low-power-sleep": {
136882
+ durability: "restored",
136883
+ volatileFields: ["lastUpdated"]
136884
+ },
136688
136885
  "media-player": {
136689
136886
  durability: "session",
136690
136887
  volatileFields: []
@@ -136906,6 +137103,7 @@ var RESTORED_CAP_NAMES = [
136906
137103
  "image-settings",
136907
137104
  "ir-transmitter",
136908
137105
  "lock-control",
137106
+ "low-power-sleep",
136909
137107
  "meter",
136910
137108
  "motion-zones",
136911
137109
  "native-object-detection",
@@ -151867,6 +152065,7 @@ exports.LoggingSettingsPatchSchema = LoggingSettingsPatchSchema;
151867
152065
  exports.LoggingSettingsStateSchema = LoggingSettingsStateSchema;
151868
152066
  exports.LoginMethodContributionSchema = LoginMethodContributionSchema;
151869
152067
  exports.LoginStageEnum = LoginStageEnum;
152068
+ exports.LowPowerSleepStatusSchema = LowPowerSleepStatusSchema;
151870
152069
  exports.LtsBucketSchema = LtsBucketSchema;
151871
152070
  exports.MACRO_LABELS = MACRO_LABELS;
151872
152071
  exports.MASK_EMITTING_POSTPROCESSORS = MASK_EMITTING_POSTPROCESSORS;
@@ -152305,6 +152504,7 @@ exports.NodeHttpsStateSchema = NodeHttpsStateSchema;
152305
152504
  exports.NodeRecommendationSchema = NodeRecommendationSchema;
152306
152505
  exports.NodeRemovedInputSchema = NodeRemovedInputSchema;
152307
152506
  exports.NodeRemovedResultSchema = NodeRemovedResultSchema;
152507
+ exports.NormalizedRectSchema = NormalizedRectSchema;
152308
152508
  exports.NotificationActionIconSchema = NotificationActionIconSchema;
152309
152509
  exports.NotificationActionSchema = NotificationActionSchema;
152310
152510
  exports.NotificationFieldSchema = NotificationFieldSchema;
@@ -152709,6 +152909,7 @@ exports.RequestCensusProcedureSchema = RequestCensusProcedureSchema;
152709
152909
  exports.RequestCensusSnapshotSchema = RequestCensusSnapshotSchema;
152710
152910
  exports.RequestCensusStatusSchema = RequestCensusStatusSchema;
152711
152911
  exports.RequiredAddonUpdateSchema = RequiredAddonUpdateSchema;
152912
+ exports.ResyncDeviceInputSchema = ResyncDeviceInputSchema;
152712
152913
  exports.RetrainAnnotationDraftSchema = RetrainAnnotationDraftSchema;
152713
152914
  exports.RetrainAnnotationKindSchema = RetrainAnnotationKindSchema;
152714
152915
  exports.RetrainAnnotationSchema = RetrainAnnotationSchema;
@@ -153707,6 +153908,7 @@ exports.deviceRemovalHookCapability = deviceRemovalHookCapability;
153707
153908
  exports.deviceRoleIconKey = deviceRoleIconKey;
153708
153909
  exports.deviceRunsCapability = deviceRunsCapability;
153709
153910
  exports.deviceSelectorMatches = deviceSelectorMatches;
153911
+ exports.deviceSleeps = deviceSleeps;
153710
153912
  exports.deviceStateCapability = deviceStateCapability;
153711
153913
  exports.deviceStatusCapability = deviceStatusCapability;
153712
153914
  exports.deviceTemplateCallableBounds = require_device_template_catalogue.deviceTemplateCallableBounds;
@@ -154128,6 +154330,7 @@ exports.logDestinationCapability = logDestinationCapability;
154128
154330
  exports.logLevelAtMost = logLevelAtMost;
154129
154331
  exports.loginMethodCapability = loginMethodCapability;
154130
154332
  exports.looseSchema = looseSchema;
154333
+ exports.lowPowerSleepCapability = lowPowerSleepCapability;
154131
154334
  exports.makeInMemoryRecords = require_sleep.makeInMemoryRecords;
154132
154335
  exports.makeProfileBrokerId = require_sleep.makeProfileBrokerId;
154133
154336
  exports.makeSecretMarker = require_sleep.makeSecretMarker;
@@ -154519,6 +154722,8 @@ exports.resolveViewableDeviceIds = resolveViewableDeviceIds;
154519
154722
  exports.resolvedValues = require_sleep.resolvedValues;
154520
154723
  exports.resultCellKey = resultCellKey;
154521
154724
  exports.resultStandings = resultStandings;
154725
+ exports.resyncCapability = resyncCapability;
154726
+ exports.resyncThroughAdoption = resyncThroughAdoption;
154522
154727
  exports.retiredTargetsOver = retiredTargetsOver;
154523
154728
  exports.retrainBoxIou = retrainBoxIou;
154524
154729
  exports.retrainRevisionConflictMessage = retrainRevisionConflictMessage;
@@ -154640,6 +154845,7 @@ exports.siteZoneKey = siteZoneKey;
154640
154845
  exports.skipSignature = skipSignature;
154641
154846
  exports.sleep = require_sleep.sleep;
154642
154847
  exports.sleepCancellable = require_sleep.sleepCancellable;
154848
+ exports.sleepSliceOfBattery = sleepSliceOfBattery;
154643
154849
  exports.sliceActiveValue = require_implemented_methods.sliceActiveValue;
154644
154850
  exports.sliceCapOf = sliceCapOf;
154645
154851
  exports.sliceChangedAt = require_implemented_methods.sliceChangedAt;