@camstack/addon-pipeline-orchestrator 1.2.698 → 1.2.699

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.
package/dist/index.js CHANGED
@@ -30,7 +30,7 @@ node_fs = __toESM(node_fs);
30
30
  let node_path = require("node:path");
31
31
  node_path = __toESM(node_path);
32
32
  let node_url = require("node:url");
33
- //#region ../types/dist/event-category-Hwx_JSCU.mjs
33
+ //#region ../types/dist/event-category-CY27-fF0.mjs
34
34
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
35
35
  EventCategory["SystemBoot"] = "system.boot";
36
36
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -530,7 +530,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
530
530
  */
531
531
  EventCategory["NetworkLinkOnStatusChanged"] = "network-link.onStatusChanged";
532
532
  /**
533
- * Emitted by the battery cap provider WHEN `wakeForStream` enters the
533
+ * Emitted by the battery cap provider WHEN `wakeUp` enters the
534
534
  * "wake in progress" window — between the Baichuan wake-up issue and
535
535
  * the camera's first dialed-back RTP packet. The stream-broker
536
536
  * manager subscribes to flip the per-broker placeholder reason to
@@ -862,7 +862,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
862
862
  return EventCategory;
863
863
  }({});
864
864
  //#endregion
865
- //#region ../types/dist/composed-stable-id-BBL71oUQ.mjs
865
+ //#region ../types/dist/composed-stable-id-BNTaDZEh.mjs
866
866
  /**
867
867
  import { errMsg } from '@camstack/types'
868
868
  * Extract a human-readable message from an unknown error value.
@@ -1001,12 +1001,19 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
1001
1001
  return DeviceType;
1002
1002
  }({});
1003
1003
  var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
1004
+ /** The device reports a battery reading (the `battery` cap). Says nothing about sleep. */
1004
1005
  DeviceFeature["BatteryOperated"] = "battery-operated";
1006
+ /**
1007
+ * The device goes into low-power sleep and must be WOKEN before it streams
1008
+ * (the `low-power-sleep` cap, `wakeUp`). A battery reading alone is
1009
+ * not this: a battery sensor reports charge and never sleeps (#459, Q2).
1010
+ */
1011
+ DeviceFeature["Sleeps"] = "sleeps";
1005
1012
  DeviceFeature["Rebootable"] = "rebootable";
1006
1013
  /**
1007
1014
  * Device supports an on-demand re-sync of its derived spec with its
1008
- * upstream source — drives the generic Re-sync button. The owning
1009
- * provider implements the action via the `device-adoption.resync` cap.
1015
+ * upstream source — drives the generic Re-sync button. Present when the
1016
+ * device has the `resync` cap bound (#459, Q6).
1010
1017
  */
1011
1018
  DeviceFeature["Resyncable"] = "resyncable";
1012
1019
  DeviceFeature["NativeSnapshot"] = "native-snapshot";
@@ -1090,9 +1097,6 @@ var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
1090
1097
  DeviceFeature["FanDirection"] = "fan-direction";
1091
1098
  /** Fan exposes an oscillation toggle. */
1092
1099
  DeviceFeature["FanOscillating"] = "fan-oscillating";
1093
- /** Lock requires a PIN code on lock/unlock. Gates the code-entry
1094
- * field on the UI lock-controls panel. */
1095
- DeviceFeature["LockPinRequired"] = "lock-pin-required";
1096
1100
  /** Lock supports a latch-release ("open door") action distinct from
1097
1101
  * unlock. Mirrors HA `LockEntityFeature.OPEN` (bit 1) in
1098
1102
  * `supported_features`. Gates the Open Door button in the UI. */
@@ -1123,8 +1127,6 @@ var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
1123
1127
  DeviceFeature["MediaPlayerChannelStep"] = "media-player-channel-step";
1124
1128
  /** Media player exposes power on / off. */
1125
1129
  DeviceFeature["MediaPlayerPower"] = "media-player-power";
1126
- /** Alarm panel requires a PIN code on arm/disarm. */
1127
- DeviceFeature["AlarmPinRequired"] = "alarm-pin-required";
1128
1130
  /** Presence device carries GPS coordinates (lat/lng/accuracy) in
1129
1131
  * addition to a textual location. */
1130
1132
  DeviceFeature["PresenceGps"] = "presence-gps";
@@ -1144,15 +1146,9 @@ var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
1144
1146
  /** Automation `trigger` accepts a skipCondition flag — fires the
1145
1147
  * automation's actions while bypassing its condition block. */
1146
1148
  DeviceFeature["AutomationSkipCondition"] = "automation-skip-condition";
1147
- /** Robot vacuum exposes a live cleaning map (image child). Gates the
1148
- * map tile in the vacuum UI. */
1149
- DeviceFeature["VacuumHasMap"] = "vacuum-has-map";
1150
1149
  /** Robot vacuum exposes AI obstacle-detection toggles. Gates the AI
1151
1150
  * switches group. */
1152
1151
  DeviceFeature["VacuumHasAi"] = "vacuum-has-ai";
1153
- /** Robot mower exposes a live mowing map (SVG image child). Gates the
1154
- * mower map tile. */
1155
- DeviceFeature["MowerHasMap"] = "mower-has-map";
1156
1152
  /** Robot mower exposes targeted mowing (all-area / zones / edges /
1157
1153
  * spots) — gates the Mow action + map selectors. */
1158
1154
  DeviceFeature["MowerHasTargetedMowing"] = "mower-has-targeted-mowing";
@@ -6140,7 +6136,7 @@ var ZodIssueCode = {
6140
6136
  var ZodFirstPartyTypeKind;
6141
6137
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
6142
6138
  //#endregion
6143
- //#region ../types/dist/sleep-D6Pih0Qt.mjs
6139
+ //#region ../types/dist/sleep-BT1bLgPq.mjs
6144
6140
  /**
6145
6141
  * The audio chunk plane's byte format, and the ONE expansion from a coded
6146
6142
  * window to float samples (D455).
@@ -17452,6 +17448,14 @@ var CAP_VOCABULARY_BY_NAME = {
17452
17448
  icon: "refresh-cw"
17453
17449
  }]
17454
17450
  },
17451
+ "resync": {
17452
+ scope: "device",
17453
+ noun: {
17454
+ en: "Re-sync",
17455
+ it: "Risincronizzazione"
17456
+ },
17457
+ notOperatorFacing: { resync: "device adoption — re-aligning a device with its source is an onboarding step, not an automation action" }
17458
+ },
17455
17459
  "recording": {
17456
17460
  scope: "device",
17457
17461
  noun: {
@@ -19463,7 +19467,6 @@ var CAP_VOCABULARY_BY_NAME = {
19463
19467
  en: "Battery",
19464
19468
  it: "Batteria"
19465
19469
  },
19466
- notOperatorFacing: { wakeForStream: "a stream consumer wakes a sleeping camera to watch it; an automation that wants footage asks for the footage" },
19467
19470
  state: [
19468
19471
  {
19469
19472
  kind: "numeric",
@@ -19573,6 +19576,14 @@ var CAP_VOCABULARY_BY_NAME = {
19573
19576
  icon: "moon"
19574
19577
  }]
19575
19578
  },
19579
+ "low-power-sleep": {
19580
+ scope: "device",
19581
+ noun: {
19582
+ en: "Low-power sleep",
19583
+ it: "Sospensione a basso consumo"
19584
+ },
19585
+ notOperatorFacing: { wakeUp: "a stream consumer wakes a sleeping camera to watch it; an automation that wants footage asks for the footage" }
19586
+ },
19576
19587
  "network-link": {
19577
19588
  scope: "device",
19578
19589
  noun: {
@@ -20557,6 +20568,7 @@ var CAP_NAMES = Object.freeze([
20557
20568
  "log-channels",
20558
20569
  "log-destination",
20559
20570
  "login-method",
20571
+ "low-power-sleep",
20560
20572
  "media-player",
20561
20573
  "mesh-network",
20562
20574
  "meter",
@@ -20610,6 +20622,7 @@ var CAP_NAMES = Object.freeze([
20610
20622
  "records",
20611
20623
  "remote",
20612
20624
  "remote-layout-components",
20625
+ "resync",
20613
20626
  "running-state",
20614
20627
  "scene-monitor",
20615
20628
  "schedulers",
@@ -20713,7 +20726,7 @@ Object.freeze({
20713
20726
  ]
20714
20727
  },
20715
20728
  {
20716
- "path": "requiresCode",
20729
+ "path": "codeRequired",
20717
20730
  "valueType": "boolean"
20718
20731
  }
20719
20732
  ],
@@ -21781,7 +21794,24 @@ Object.freeze({
21781
21794
  "jammed",
21782
21795
  "door-open"
21783
21796
  ]
21797
+ }, {
21798
+ "path": "codeRequired",
21799
+ "valueType": "boolean"
21784
21800
  }],
21801
+ "low-power-sleep": [
21802
+ {
21803
+ "path": "sleeping",
21804
+ "valueType": "boolean"
21805
+ },
21806
+ {
21807
+ "path": "lastContactAt",
21808
+ "valueType": "number"
21809
+ },
21810
+ {
21811
+ "path": "lastUpdated",
21812
+ "valueType": "number"
21813
+ }
21814
+ ],
21785
21815
  "media-player": [
21786
21816
  {
21787
21817
  "path": "state",
@@ -22975,7 +23005,7 @@ function sleep(ms) {
22975
23005
  return new Promise((resolve) => setTimeout(resolve, Math.max(0, ms)));
22976
23006
  }
22977
23007
  //#endregion
22978
- //#region ../types/dist/implemented-methods-u7ddjc-_.mjs
23008
+ //#region ../types/dist/implemented-methods-k3KProJd.mjs
22979
23009
  /**
22980
23010
  * The ffmpeg build every CamStack node downloads, per platform and arch.
22981
23011
  *
@@ -49744,6 +49774,67 @@ object({
49744
49774
  /** Namespaces the client listed that no longer exist. */
49745
49775
  deleted: array(PreferenceNamespaceSchema)
49746
49776
  });
49777
+ /**
49778
+ * The wire shapes of `apiCatalog.*` — the API explorer's data (planning#595).
49779
+ *
49780
+ * One entry per tRPC method the hub serves, capability and core routes alike,
49781
+ * read off the live router by the hub (never a hand-written list).
49782
+ */
49783
+ var ApiProcedureKindSchema = _enum([
49784
+ "query",
49785
+ "mutation",
49786
+ "subscription"
49787
+ ]);
49788
+ /** The gate a method runs behind. */
49789
+ var ApiProcedureTierSchema = _enum([
49790
+ "public",
49791
+ "protected",
49792
+ "admin"
49793
+ ]);
49794
+ /** The token scope a capability route is matched against (its `METHOD_ACCESS_MAP` row). */
49795
+ var ApiCatalogScopeSchema = object({
49796
+ capName: string(),
49797
+ capScope: _enum(["device", "system"]),
49798
+ access: _enum([
49799
+ "view",
49800
+ "create",
49801
+ "delete"
49802
+ ]),
49803
+ role: string()
49804
+ });
49805
+ var ApiCatalogEntrySchema = object({
49806
+ /** `<router>.<method>` — the tRPC path. */
49807
+ path: string(),
49808
+ router: string(),
49809
+ method: string(),
49810
+ kind: ApiProcedureKindSchema,
49811
+ tier: ApiProcedureTierSchema,
49812
+ source: _enum(["capability", "core"]),
49813
+ /** `null` on a core route: it needs authentication only (plus admin where its tier says so). */
49814
+ scope: ApiCatalogScopeSchema.nullable(),
49815
+ hasInput: boolean()
49816
+ });
49817
+ /**
49818
+ * May the CALLER call a method. The list has no input, so a method reached
49819
+ * only through a device grant is `per-device`: the real call is allowed or
49820
+ * refused on the device its input names.
49821
+ */
49822
+ var ApiCallableSchema = _enum([
49823
+ "yes",
49824
+ "no",
49825
+ "per-device"
49826
+ ]);
49827
+ object({ methods: array(ApiCatalogEntrySchema.extend({ callable: ApiCallableSchema })) });
49828
+ /** A JSON Schema document, as the explorer receives it. */
49829
+ var JsonSchemaDocumentSchema = record(string(), unknown());
49830
+ object({
49831
+ path: string(),
49832
+ hasInput: boolean(),
49833
+ /** The INPUT JSON schema (what the caller sends); `null` without input or when it could not be produced. */
49834
+ schema: JsonSchemaDocumentSchema.nullable(),
49835
+ /** Why no schema could be produced (a non-Zod parser, an unrepresentable type). */
49836
+ error: string().nullable()
49837
+ });
49747
49838
  _enum(["new-session", "step-up"]);
49748
49839
  /** The languages the hub's app landing pages are written in (D858). */
49749
49840
  var AppPageLangSchema = _enum(["en", "it"]);
@@ -53314,9 +53405,8 @@ DeviceType.Sensor;
53314
53405
  * Many panels require a PIN code on arm / disarm — the optional
53315
53406
  * `code` field on the methods passes it through to the upstream
53316
53407
  * service; it's NEVER persisted in the runtime slice or any event
53317
- * payload. The presence of a required code is signalled by
53318
- * `DeviceFeature.AlarmPinRequired` so the UI gates a code-entry
53319
- * field without a slice fetch.
53408
+ * payload. Whether a code is required is the slice's `codeRequired`
53409
+ * (#459): `null` when the provider cannot tell (D393).
53320
53410
  *
53321
53411
  * `availableModes` mirrors HA's `supported_features`-derived arm
53322
53412
  * mode list — the UI renders only the buttons the panel accepts.
@@ -53355,9 +53445,13 @@ var AlarmPanelStatusSchema = object({
53355
53445
  /** Subset of arm modes the panel accepts. UI renders one button per
53356
53446
  * mode in this list. */
53357
53447
  availableModes: array(AlarmArmModeSchema),
53358
- /** Whether the panel requires a PIN on arm / disarm. Mirrors
53359
- * `DeviceFeature.AlarmPinRequired` for slice consumers. */
53360
- requiresCode: boolean(),
53448
+ /**
53449
+ * Whether the panel requires a PIN on arm / disarm (#459; the field was
53450
+ * `requiresCode`, and the `alarm-pin-required` device feature is gone).
53451
+ * `null` = the provider cannot tell (D393), never `false`. A slice restored
53452
+ * from before the rename is upgraded at boot by `restoredFieldRenames`.
53453
+ */
53454
+ codeRequired: boolean().nullable(),
53361
53455
  /** Ms epoch when the slice was last updated. */
53362
53456
  lastChangedAt: number$1()
53363
53457
  });
@@ -53398,7 +53492,7 @@ DeviceType.AlarmPanel, method(object({ deviceId: number$1().int().nonnegative()
53398
53492
  }), method(object({
53399
53493
  deviceId: number$1().int().nonnegative(),
53400
53494
  mode: AlarmArmModeSchema,
53401
- /** Optional PIN code. Required when `requiresCode === true`.
53495
+ /** Optional PIN code. Required when `codeRequired === true`.
53402
53496
  * Passed through to the upstream service; never persisted. */
53403
53497
  code: string().min(1).optional()
53404
53498
  }), _void(), {
@@ -54500,9 +54594,9 @@ method(_void(), array(BackupDestinationInfoSchema).readonly(), { auth: "admin" }
54500
54594
  auth: "admin"
54501
54595
  });
54502
54596
  /**
54503
- * Battery status snapshot. Emitted by providers whose device is
54504
- * battery-operated (cameras with `DeviceFeature.BatteryOperated`,
54505
- * future sensor/button accessories). Consumers build their own "low
54597
+ * Battery status snapshot. Emitted by providers whose device reports a
54598
+ * battery (`DeviceFeature.BatteryOperated`): battery cameras, sensors,
54599
+ * buttons. Whether the device SLEEPS is `low-power-sleep`, not this cap. Consumers build their own "low
54506
54600
  * battery" alerting on top — the cap deliberately does NOT enforce a
54507
54601
  * threshold.
54508
54602
  */
@@ -54597,17 +54691,7 @@ var BatteryStatusSchema = object({
54597
54691
  binary: boolean().optional().meta({ label: "Binary indicator" })
54598
54692
  });
54599
54693
  DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Climate, DeviceType.EventEmitter;
54600
- method(object({
54601
- deviceId: number$1(),
54602
- /** Bound on the wait. Sensible range 3000–10000ms. */
54603
- timeoutMs: number$1().int().min(500).max(3e4).default(8e3)
54604
- }), object({
54605
- awoke: boolean(),
54606
- durationMs: number$1()
54607
- }), {
54608
- kind: "mutation",
54609
- notOperatorFacing: "a stream consumer wakes a sleeping camera to watch it; an automation that wants footage asks for the footage"
54610
- }), object({
54694
+ object({
54611
54695
  deviceId: number$1(),
54612
54696
  status: BatteryStatusSchema
54613
54697
  }), EventCategory.DeviceAwake, EventCategory.DeviceSleeping;
@@ -68380,6 +68464,13 @@ var LockControlStatusSchema = object({
68380
68464
  "jammed",
68381
68465
  "door-open"
68382
68466
  ]),
68467
+ /**
68468
+ * Whether lock / unlock need a PIN `code` (#459, replaces the
68469
+ * `lock-pin-required` device feature). `null` = the provider cannot tell
68470
+ * (D393) — never `false`. `.optional()` so a restored slice written before
68471
+ * the field still parses; readers treat absent exactly like `null`.
68472
+ */
68473
+ codeRequired: boolean().nullable().optional(),
68383
68474
  /** Ms epoch when the slice was last updated. */
68384
68475
  lastChangedAt: number$1()
68385
68476
  });
@@ -68726,6 +68817,33 @@ var LoginMethodContributionSchema = discriminatedUnion("kind", [
68726
68817
  })
68727
68818
  ]);
68728
68819
  method(_void(), array(LoginMethodContributionSchema).readonly()), NOT_A_DEVICE.IDENTITY;
68820
+ object({
68821
+ /**
68822
+ * True while the firmware is in low-power mode. A provider MUST avoid polling
68823
+ * during sleep — a read wakes the device and drains charge.
68824
+ */
68825
+ sleeping: boolean().meta({ label: "Sleeping" }),
68826
+ /**
68827
+ * Ms epoch of the last time the device proved it was reachable, from
68828
+ * PASSIVE signals only (a completed round-trip, an observed wake, a push).
68829
+ * Absent = never since this slice was born. The only input that separates
68830
+ * "asleep" from "gone".
68831
+ */
68832
+ lastContactAt: number$1().optional(),
68833
+ /** Ms epoch of the last observation. */
68834
+ lastUpdated: number$1().meta(readingMeta("none"))
68835
+ });
68836
+ DeviceType.Camera, method(object({
68837
+ deviceId: number$1(),
68838
+ /** Bound on the wait. Sensible range 3000–10000ms. */
68839
+ timeoutMs: number$1().int().min(500).max(3e4).default(8e3)
68840
+ }), object({
68841
+ awoke: boolean(),
68842
+ durationMs: number$1()
68843
+ }), {
68844
+ kind: "mutation",
68845
+ notOperatorFacing: "a stream consumer wakes a sleeping camera to watch it; an automation that wants footage asks for the footage"
68846
+ });
68729
68847
  /**
68730
68848
  * mesh-network — collection cap for mesh-VPN providers.
68731
68849
  *
@@ -86173,6 +86291,27 @@ var RemoteLayoutComponentSchema = object({
86173
86291
  });
86174
86292
  });
86175
86293
  method(object({}), array(RemoteLayoutComponentSchema), { auth: "protected" });
86294
+ /**
86295
+ * resync — a device whose derived spec can be re-aligned on demand with its
86296
+ * upstream source (#459, Q6). Registered by the containers an integration
86297
+ * adopted; `DeviceFeature.Resyncable` (the generic Re-sync button) is derived
86298
+ * from it being bound with `resync` implemented.
86299
+ *
86300
+ * The work itself stays where it is: the owning addon's `device-adoption`
86301
+ * provider, reached through `deviceManager.adoptionResync` (which also owns
86302
+ * the "resync from zero" child purge). A provider answers this method by
86303
+ * asking for exactly that — see `resyncThroughAdoption`.
86304
+ */
86305
+ var ResyncDeviceInputSchema = object({
86306
+ deviceId: number$1().int().nonnegative(),
86307
+ /** "Resync from zero": purge the accessory children before re-deriving. */
86308
+ resetToSource: boolean().optional()
86309
+ });
86310
+ DeviceType.Container, DeviceType.Workload, DeviceType.WeatherStation, method(ResyncDeviceInputSchema, ResyncResultSchema, {
86311
+ kind: "mutation",
86312
+ auth: "admin",
86313
+ notOperatorFacing: "device adoption — re-aligning a device with its source is an onboarding step, not an automation action"
86314
+ });
86176
86315
  DeviceType.MediaPlayer;
86177
86316
  var RunningStateSourceSchema = _enum(["native", "assigned"]);
86178
86317
  object({
@@ -92443,8 +92582,8 @@ var ALARM_MODES = [
92443
92582
  "vacation",
92444
92583
  "custom_bypass"
92445
92584
  ];
92446
- function alarmControls(state, modes, requiresCode) {
92447
- if (requiresCode) return [];
92585
+ function alarmControls(state, modes, codeRequired) {
92586
+ if (codeRequired) return [];
92448
92587
  const disarm = asAction(action("alarm.disarm", t("Disarm", "Disinserisci"), "shield-off", "alarm-panel", "disarm", {}, "primary"));
92449
92588
  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")));
92450
92589
  switch (state) {
@@ -92464,7 +92603,7 @@ var ACCESS_FAMILY_CONTRIBUTIONS = {
92464
92603
  const modes = slice === void 0 ? ALARM_MODES : slice.availableModes;
92465
92604
  return {
92466
92605
  reading: reading("alarm-panel", words?.state ?? "unknown", false, words?.title),
92467
- 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))],
92606
+ 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))],
92468
92607
  ...since === null || words === null ? {} : { facts: [fact("since", "clock", since, state === "triggered" ? "danger" : "muted")] },
92469
92608
  ...words === null ? {} : { tiles: {
92470
92609
  left: [{
@@ -95847,13 +95986,6 @@ Object.freeze({
95847
95986
  access: "view",
95848
95987
  role: "viewer"
95849
95988
  },
95850
- "battery.wakeForStream": {
95851
- capName: "battery",
95852
- capScope: "device",
95853
- addonId: null,
95854
- access: "create",
95855
- role: "viewer"
95856
- },
95857
95989
  "binary.getStatus": {
95858
95990
  capName: "binary",
95859
95991
  capScope: "device",
@@ -99508,6 +99640,20 @@ Object.freeze({
99508
99640
  access: "view",
99509
99641
  role: "admin"
99510
99642
  },
99643
+ "lowPowerSleep.getStatus": {
99644
+ capName: "low-power-sleep",
99645
+ capScope: "device",
99646
+ addonId: null,
99647
+ access: "view",
99648
+ role: "viewer"
99649
+ },
99650
+ "lowPowerSleep.wakeUp": {
99651
+ capName: "low-power-sleep",
99652
+ capScope: "device",
99653
+ addonId: null,
99654
+ access: "create",
99655
+ role: "viewer"
99656
+ },
99511
99657
  "mediaPlayer.channelDown": {
99512
99658
  capName: "media-player",
99513
99659
  capScope: "device",
@@ -103183,6 +103329,13 @@ Object.freeze({
103183
103329
  access: "view",
103184
103330
  role: "admin"
103185
103331
  },
103332
+ "resync.resync": {
103333
+ capName: "resync",
103334
+ capScope: "device",
103335
+ addonId: null,
103336
+ access: "create",
103337
+ role: "admin"
103338
+ },
103186
103339
  "runningState.getStatus": {
103187
103340
  capName: "running-state",
103188
103341
  capScope: "device",
@@ -105592,7 +105745,7 @@ function deviceMatchesProfile(features, profile) {
105592
105745
  var DEVICE_PROFILES = [{
105593
105746
  id: "battery",
105594
105747
  label: "Battery-operated camera",
105595
- when: { hasFeature: DeviceFeature.BatteryOperated },
105748
+ when: { hasFeature: DeviceFeature.Sleeps },
105596
105749
  defaults: {
105597
105750
  audioMode: "disabled",
105598
105751
  detectionMode: "on-motion"
@@ -105618,11 +105771,11 @@ function bound(cap, methods = [], authority = "reported") {
105618
105771
  function derived(cap, methods = []) {
105619
105772
  return bound(cap, methods, "derived");
105620
105773
  }
105621
- DeviceFeature.BatteryOperated, DeviceFeature.Rebootable, derived("reboot", ["reboot"]), DeviceFeature.Resyncable, DeviceFeature.NativeSnapshot, DeviceFeature.DoorbellButton, derived("doorbell"), DeviceFeature.TwoWayAudio, derived("intercom", [
105774
+ DeviceFeature.BatteryOperated, DeviceFeature.Sleeps, derived("low-power-sleep", ["wakeUp"]), DeviceFeature.Rebootable, derived("reboot", ["reboot"]), DeviceFeature.Resyncable, derived("resync", ["resync"]), DeviceFeature.NativeSnapshot, DeviceFeature.DoorbellButton, derived("doorbell"), DeviceFeature.TwoWayAudio, derived("intercom", [
105622
105775
  "startTalkSession",
105623
105776
  "pushTalkAudio",
105624
105777
  "endTalkSession"
105625
- ]), DeviceFeature.PanTiltZoom, derived("ptz"), DeviceFeature.PtzAutotrack, derived("ptz-autotrack"), DeviceFeature.MotionTrigger, derived("motion-trigger", ["setMotionTrigger"]), DeviceFeature.TimedRun, derived("timed-run", ["runFor"]), DeviceFeature.Switch, DeviceFeature.LightColorRgb, DeviceFeature.LightColorHsv, DeviceFeature.LightColorMired, DeviceFeature.ClimateDualSetpoint, DeviceFeature.ClimateHumidity, DeviceFeature.ClimateFanMode, DeviceFeature.ClimatePreset, DeviceFeature.ClimateSwingVertical, DeviceFeature.ClimateSwingHorizontal, DeviceFeature.CoverPositionable, DeviceFeature.CoverTilt, DeviceFeature.CoverStoppable, DeviceFeature.ValvePositionable, DeviceFeature.FanSpeed, DeviceFeature.FanPreset, DeviceFeature.FanDirection, DeviceFeature.FanOscillating, DeviceFeature.LockPinRequired, DeviceFeature.LockOpen, DeviceFeature.MediaPlayerSeek, DeviceFeature.MediaPlayerVolume, DeviceFeature.MediaPlayerMute, DeviceFeature.MediaPlayerShuffle, DeviceFeature.MediaPlayerRepeat, DeviceFeature.MediaPlayerSelectSource, DeviceFeature.MediaPlayerPlayMedia, DeviceFeature.MediaPlayerNext, DeviceFeature.MediaPlayerPrevious, DeviceFeature.MediaPlayerStop, DeviceFeature.MediaPlayerVolumeStep, DeviceFeature.MediaPlayerChannelStep, DeviceFeature.MediaPlayerPower, DeviceFeature.AlarmPinRequired, DeviceFeature.PresenceGps, DeviceFeature.NotifierImage, DeviceFeature.NotifierPriority, DeviceFeature.NotifierData, DeviceFeature.NotifierActions, DeviceFeature.NotifierRecipients, DeviceFeature.ScriptVariables, DeviceFeature.AutomationSkipCondition, DeviceFeature.VacuumHasMap, DeviceFeature.VacuumHasAi, DeviceFeature.MowerHasMap, DeviceFeature.MowerHasTargetedMowing, DeviceFeature.Navigation, derived("navigation"), DeviceFeature.NetworkLink, derived("network-link");
105778
+ ]), DeviceFeature.PanTiltZoom, derived("ptz"), DeviceFeature.PtzAutotrack, derived("ptz-autotrack"), DeviceFeature.MotionTrigger, derived("motion-trigger", ["setMotionTrigger"]), DeviceFeature.TimedRun, derived("timed-run", ["runFor"]), DeviceFeature.Switch, DeviceFeature.LightColorRgb, DeviceFeature.LightColorHsv, DeviceFeature.LightColorMired, DeviceFeature.ClimateDualSetpoint, DeviceFeature.ClimateHumidity, DeviceFeature.ClimateFanMode, DeviceFeature.ClimatePreset, DeviceFeature.ClimateSwingVertical, DeviceFeature.ClimateSwingHorizontal, DeviceFeature.CoverPositionable, DeviceFeature.CoverTilt, DeviceFeature.CoverStoppable, DeviceFeature.ValvePositionable, DeviceFeature.FanSpeed, DeviceFeature.FanPreset, DeviceFeature.FanDirection, DeviceFeature.FanOscillating, DeviceFeature.LockOpen, DeviceFeature.MediaPlayerSeek, DeviceFeature.MediaPlayerVolume, DeviceFeature.MediaPlayerMute, DeviceFeature.MediaPlayerShuffle, DeviceFeature.MediaPlayerRepeat, DeviceFeature.MediaPlayerSelectSource, DeviceFeature.MediaPlayerPlayMedia, DeviceFeature.MediaPlayerNext, DeviceFeature.MediaPlayerPrevious, DeviceFeature.MediaPlayerStop, DeviceFeature.MediaPlayerVolumeStep, DeviceFeature.MediaPlayerChannelStep, DeviceFeature.MediaPlayerPower, DeviceFeature.PresenceGps, DeviceFeature.NotifierImage, DeviceFeature.NotifierPriority, DeviceFeature.NotifierData, DeviceFeature.NotifierActions, DeviceFeature.NotifierRecipients, DeviceFeature.ScriptVariables, DeviceFeature.AutomationSkipCondition, DeviceFeature.VacuumHasAi, DeviceFeature.MowerHasTargetedMowing, DeviceFeature.Navigation, derived("navigation"), DeviceFeature.NetworkLink, derived("network-link");
105626
105779
  var ALL_FEATURES = Object.values(DeviceFeature);
105627
105780
  new Set(ALL_FEATURES);
105628
105781
  DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher;
@@ -105818,11 +105971,6 @@ Object.freeze({
105818
105971
  form: "single",
105819
105972
  optional: false
105820
105973
  }],
105821
- "battery.wakeForStream": [{
105822
- name: "deviceId",
105823
- form: "single",
105824
- optional: false
105825
- }],
105826
105974
  "binary.getStatus": [{
105827
105975
  name: "deviceId",
105828
105976
  form: "single",
@@ -107006,6 +107154,16 @@ Object.freeze({
107006
107154
  form: "single",
107007
107155
  optional: true
107008
107156
  }],
107157
+ "lowPowerSleep.getStatus": [{
107158
+ name: "deviceId",
107159
+ form: "single",
107160
+ optional: false
107161
+ }],
107162
+ "lowPowerSleep.wakeUp": [{
107163
+ name: "deviceId",
107164
+ form: "single",
107165
+ optional: false
107166
+ }],
107009
107167
  "mediaPlayer.channelDown": [{
107010
107168
  name: "deviceId",
107011
107169
  form: "single",
@@ -108291,6 +108449,11 @@ Object.freeze({
108291
108449
  form: "single",
108292
108450
  optional: false
108293
108451
  }],
108452
+ "resync.resync": [{
108453
+ name: "deviceId",
108454
+ form: "single",
108455
+ optional: false
108456
+ }],
108294
108457
  "runningState.getStatus": [{
108295
108458
  name: "deviceId",
108296
108459
  form: "single",
@@ -119760,7 +119923,7 @@ function resolveDetectionSettings(input) {
119760
119923
  let defaulted;
119761
119924
  if (hasOnboardMotion) defaulted = ["onboard"];
119762
119925
  else if (hasActivitySignal) defaulted = [];
119763
- else if (profile && features.includes(DeviceFeature.BatteryOperated)) defaulted = [];
119926
+ else if (profile && features.includes(DeviceFeature.Sleeps)) defaulted = [];
119764
119927
  else defaulted = MotionSourcesSchema.parse(flat["motionSources"]);
119765
119928
  motionSources = hasActivitySignal ? [...defaulted, DEVICE_ACTIVITY_SOURCE] : defaulted;
119766
119929
  }