@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.mjs CHANGED
@@ -2,7 +2,7 @@ import { createHash, randomUUID } from "node:crypto";
2
2
  import fs from "node:fs";
3
3
  import path from "node:path";
4
4
  import { fileURLToPath } from "node:url";
5
- //#region ../types/dist/event-category-Hwx_JSCU.mjs
5
+ //#region ../types/dist/event-category-CY27-fF0.mjs
6
6
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
7
7
  EventCategory["SystemBoot"] = "system.boot";
8
8
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -502,7 +502,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
502
502
  */
503
503
  EventCategory["NetworkLinkOnStatusChanged"] = "network-link.onStatusChanged";
504
504
  /**
505
- * Emitted by the battery cap provider WHEN `wakeForStream` enters the
505
+ * Emitted by the battery cap provider WHEN `wakeUp` enters the
506
506
  * "wake in progress" window — between the Baichuan wake-up issue and
507
507
  * the camera's first dialed-back RTP packet. The stream-broker
508
508
  * manager subscribes to flip the per-broker placeholder reason to
@@ -834,7 +834,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
834
834
  return EventCategory;
835
835
  }({});
836
836
  //#endregion
837
- //#region ../types/dist/composed-stable-id-BBL71oUQ.mjs
837
+ //#region ../types/dist/composed-stable-id-BNTaDZEh.mjs
838
838
  /**
839
839
  import { errMsg } from '@camstack/types'
840
840
  * Extract a human-readable message from an unknown error value.
@@ -973,12 +973,19 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
973
973
  return DeviceType;
974
974
  }({});
975
975
  var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
976
+ /** The device reports a battery reading (the `battery` cap). Says nothing about sleep. */
976
977
  DeviceFeature["BatteryOperated"] = "battery-operated";
978
+ /**
979
+ * The device goes into low-power sleep and must be WOKEN before it streams
980
+ * (the `low-power-sleep` cap, `wakeUp`). A battery reading alone is
981
+ * not this: a battery sensor reports charge and never sleeps (#459, Q2).
982
+ */
983
+ DeviceFeature["Sleeps"] = "sleeps";
977
984
  DeviceFeature["Rebootable"] = "rebootable";
978
985
  /**
979
986
  * Device supports an on-demand re-sync of its derived spec with its
980
- * upstream source — drives the generic Re-sync button. The owning
981
- * provider implements the action via the `device-adoption.resync` cap.
987
+ * upstream source — drives the generic Re-sync button. Present when the
988
+ * device has the `resync` cap bound (#459, Q6).
982
989
  */
983
990
  DeviceFeature["Resyncable"] = "resyncable";
984
991
  DeviceFeature["NativeSnapshot"] = "native-snapshot";
@@ -1062,9 +1069,6 @@ var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
1062
1069
  DeviceFeature["FanDirection"] = "fan-direction";
1063
1070
  /** Fan exposes an oscillation toggle. */
1064
1071
  DeviceFeature["FanOscillating"] = "fan-oscillating";
1065
- /** Lock requires a PIN code on lock/unlock. Gates the code-entry
1066
- * field on the UI lock-controls panel. */
1067
- DeviceFeature["LockPinRequired"] = "lock-pin-required";
1068
1072
  /** Lock supports a latch-release ("open door") action distinct from
1069
1073
  * unlock. Mirrors HA `LockEntityFeature.OPEN` (bit 1) in
1070
1074
  * `supported_features`. Gates the Open Door button in the UI. */
@@ -1095,8 +1099,6 @@ var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
1095
1099
  DeviceFeature["MediaPlayerChannelStep"] = "media-player-channel-step";
1096
1100
  /** Media player exposes power on / off. */
1097
1101
  DeviceFeature["MediaPlayerPower"] = "media-player-power";
1098
- /** Alarm panel requires a PIN code on arm/disarm. */
1099
- DeviceFeature["AlarmPinRequired"] = "alarm-pin-required";
1100
1102
  /** Presence device carries GPS coordinates (lat/lng/accuracy) in
1101
1103
  * addition to a textual location. */
1102
1104
  DeviceFeature["PresenceGps"] = "presence-gps";
@@ -1116,15 +1118,9 @@ var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
1116
1118
  /** Automation `trigger` accepts a skipCondition flag — fires the
1117
1119
  * automation's actions while bypassing its condition block. */
1118
1120
  DeviceFeature["AutomationSkipCondition"] = "automation-skip-condition";
1119
- /** Robot vacuum exposes a live cleaning map (image child). Gates the
1120
- * map tile in the vacuum UI. */
1121
- DeviceFeature["VacuumHasMap"] = "vacuum-has-map";
1122
1121
  /** Robot vacuum exposes AI obstacle-detection toggles. Gates the AI
1123
1122
  * switches group. */
1124
1123
  DeviceFeature["VacuumHasAi"] = "vacuum-has-ai";
1125
- /** Robot mower exposes a live mowing map (SVG image child). Gates the
1126
- * mower map tile. */
1127
- DeviceFeature["MowerHasMap"] = "mower-has-map";
1128
1124
  /** Robot mower exposes targeted mowing (all-area / zones / edges /
1129
1125
  * spots) — gates the Mow action + map selectors. */
1130
1126
  DeviceFeature["MowerHasTargetedMowing"] = "mower-has-targeted-mowing";
@@ -6112,7 +6108,7 @@ var ZodIssueCode = {
6112
6108
  var ZodFirstPartyTypeKind;
6113
6109
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
6114
6110
  //#endregion
6115
- //#region ../types/dist/sleep-D6Pih0Qt.mjs
6111
+ //#region ../types/dist/sleep-BT1bLgPq.mjs
6116
6112
  /**
6117
6113
  * The audio chunk plane's byte format, and the ONE expansion from a coded
6118
6114
  * window to float samples (D455).
@@ -17424,6 +17420,14 @@ var CAP_VOCABULARY_BY_NAME = {
17424
17420
  icon: "refresh-cw"
17425
17421
  }]
17426
17422
  },
17423
+ "resync": {
17424
+ scope: "device",
17425
+ noun: {
17426
+ en: "Re-sync",
17427
+ it: "Risincronizzazione"
17428
+ },
17429
+ notOperatorFacing: { resync: "device adoption — re-aligning a device with its source is an onboarding step, not an automation action" }
17430
+ },
17427
17431
  "recording": {
17428
17432
  scope: "device",
17429
17433
  noun: {
@@ -19435,7 +19439,6 @@ var CAP_VOCABULARY_BY_NAME = {
19435
19439
  en: "Battery",
19436
19440
  it: "Batteria"
19437
19441
  },
19438
- notOperatorFacing: { wakeForStream: "a stream consumer wakes a sleeping camera to watch it; an automation that wants footage asks for the footage" },
19439
19442
  state: [
19440
19443
  {
19441
19444
  kind: "numeric",
@@ -19545,6 +19548,14 @@ var CAP_VOCABULARY_BY_NAME = {
19545
19548
  icon: "moon"
19546
19549
  }]
19547
19550
  },
19551
+ "low-power-sleep": {
19552
+ scope: "device",
19553
+ noun: {
19554
+ en: "Low-power sleep",
19555
+ it: "Sospensione a basso consumo"
19556
+ },
19557
+ notOperatorFacing: { wakeUp: "a stream consumer wakes a sleeping camera to watch it; an automation that wants footage asks for the footage" }
19558
+ },
19548
19559
  "network-link": {
19549
19560
  scope: "device",
19550
19561
  noun: {
@@ -20529,6 +20540,7 @@ var CAP_NAMES = Object.freeze([
20529
20540
  "log-channels",
20530
20541
  "log-destination",
20531
20542
  "login-method",
20543
+ "low-power-sleep",
20532
20544
  "media-player",
20533
20545
  "mesh-network",
20534
20546
  "meter",
@@ -20582,6 +20594,7 @@ var CAP_NAMES = Object.freeze([
20582
20594
  "records",
20583
20595
  "remote",
20584
20596
  "remote-layout-components",
20597
+ "resync",
20585
20598
  "running-state",
20586
20599
  "scene-monitor",
20587
20600
  "schedulers",
@@ -20685,7 +20698,7 @@ Object.freeze({
20685
20698
  ]
20686
20699
  },
20687
20700
  {
20688
- "path": "requiresCode",
20701
+ "path": "codeRequired",
20689
20702
  "valueType": "boolean"
20690
20703
  }
20691
20704
  ],
@@ -21753,7 +21766,24 @@ Object.freeze({
21753
21766
  "jammed",
21754
21767
  "door-open"
21755
21768
  ]
21769
+ }, {
21770
+ "path": "codeRequired",
21771
+ "valueType": "boolean"
21756
21772
  }],
21773
+ "low-power-sleep": [
21774
+ {
21775
+ "path": "sleeping",
21776
+ "valueType": "boolean"
21777
+ },
21778
+ {
21779
+ "path": "lastContactAt",
21780
+ "valueType": "number"
21781
+ },
21782
+ {
21783
+ "path": "lastUpdated",
21784
+ "valueType": "number"
21785
+ }
21786
+ ],
21757
21787
  "media-player": [
21758
21788
  {
21759
21789
  "path": "state",
@@ -22947,7 +22977,7 @@ function sleep(ms) {
22947
22977
  return new Promise((resolve) => setTimeout(resolve, Math.max(0, ms)));
22948
22978
  }
22949
22979
  //#endregion
22950
- //#region ../types/dist/implemented-methods-u7ddjc-_.mjs
22980
+ //#region ../types/dist/implemented-methods-k3KProJd.mjs
22951
22981
  /**
22952
22982
  * The ffmpeg build every CamStack node downloads, per platform and arch.
22953
22983
  *
@@ -49716,6 +49746,67 @@ object({
49716
49746
  /** Namespaces the client listed that no longer exist. */
49717
49747
  deleted: array(PreferenceNamespaceSchema)
49718
49748
  });
49749
+ /**
49750
+ * The wire shapes of `apiCatalog.*` — the API explorer's data (planning#595).
49751
+ *
49752
+ * One entry per tRPC method the hub serves, capability and core routes alike,
49753
+ * read off the live router by the hub (never a hand-written list).
49754
+ */
49755
+ var ApiProcedureKindSchema = _enum([
49756
+ "query",
49757
+ "mutation",
49758
+ "subscription"
49759
+ ]);
49760
+ /** The gate a method runs behind. */
49761
+ var ApiProcedureTierSchema = _enum([
49762
+ "public",
49763
+ "protected",
49764
+ "admin"
49765
+ ]);
49766
+ /** The token scope a capability route is matched against (its `METHOD_ACCESS_MAP` row). */
49767
+ var ApiCatalogScopeSchema = object({
49768
+ capName: string(),
49769
+ capScope: _enum(["device", "system"]),
49770
+ access: _enum([
49771
+ "view",
49772
+ "create",
49773
+ "delete"
49774
+ ]),
49775
+ role: string()
49776
+ });
49777
+ var ApiCatalogEntrySchema = object({
49778
+ /** `<router>.<method>` — the tRPC path. */
49779
+ path: string(),
49780
+ router: string(),
49781
+ method: string(),
49782
+ kind: ApiProcedureKindSchema,
49783
+ tier: ApiProcedureTierSchema,
49784
+ source: _enum(["capability", "core"]),
49785
+ /** `null` on a core route: it needs authentication only (plus admin where its tier says so). */
49786
+ scope: ApiCatalogScopeSchema.nullable(),
49787
+ hasInput: boolean()
49788
+ });
49789
+ /**
49790
+ * May the CALLER call a method. The list has no input, so a method reached
49791
+ * only through a device grant is `per-device`: the real call is allowed or
49792
+ * refused on the device its input names.
49793
+ */
49794
+ var ApiCallableSchema = _enum([
49795
+ "yes",
49796
+ "no",
49797
+ "per-device"
49798
+ ]);
49799
+ object({ methods: array(ApiCatalogEntrySchema.extend({ callable: ApiCallableSchema })) });
49800
+ /** A JSON Schema document, as the explorer receives it. */
49801
+ var JsonSchemaDocumentSchema = record(string(), unknown());
49802
+ object({
49803
+ path: string(),
49804
+ hasInput: boolean(),
49805
+ /** The INPUT JSON schema (what the caller sends); `null` without input or when it could not be produced. */
49806
+ schema: JsonSchemaDocumentSchema.nullable(),
49807
+ /** Why no schema could be produced (a non-Zod parser, an unrepresentable type). */
49808
+ error: string().nullable()
49809
+ });
49719
49810
  _enum(["new-session", "step-up"]);
49720
49811
  /** The languages the hub's app landing pages are written in (D858). */
49721
49812
  var AppPageLangSchema = _enum(["en", "it"]);
@@ -53286,9 +53377,8 @@ DeviceType.Sensor;
53286
53377
  * Many panels require a PIN code on arm / disarm — the optional
53287
53378
  * `code` field on the methods passes it through to the upstream
53288
53379
  * service; it's NEVER persisted in the runtime slice or any event
53289
- * payload. The presence of a required code is signalled by
53290
- * `DeviceFeature.AlarmPinRequired` so the UI gates a code-entry
53291
- * field without a slice fetch.
53380
+ * payload. Whether a code is required is the slice's `codeRequired`
53381
+ * (#459): `null` when the provider cannot tell (D393).
53292
53382
  *
53293
53383
  * `availableModes` mirrors HA's `supported_features`-derived arm
53294
53384
  * mode list — the UI renders only the buttons the panel accepts.
@@ -53327,9 +53417,13 @@ var AlarmPanelStatusSchema = object({
53327
53417
  /** Subset of arm modes the panel accepts. UI renders one button per
53328
53418
  * mode in this list. */
53329
53419
  availableModes: array(AlarmArmModeSchema),
53330
- /** Whether the panel requires a PIN on arm / disarm. Mirrors
53331
- * `DeviceFeature.AlarmPinRequired` for slice consumers. */
53332
- requiresCode: boolean(),
53420
+ /**
53421
+ * Whether the panel requires a PIN on arm / disarm (#459; the field was
53422
+ * `requiresCode`, and the `alarm-pin-required` device feature is gone).
53423
+ * `null` = the provider cannot tell (D393), never `false`. A slice restored
53424
+ * from before the rename is upgraded at boot by `restoredFieldRenames`.
53425
+ */
53426
+ codeRequired: boolean().nullable(),
53333
53427
  /** Ms epoch when the slice was last updated. */
53334
53428
  lastChangedAt: number$1()
53335
53429
  });
@@ -53370,7 +53464,7 @@ DeviceType.AlarmPanel, method(object({ deviceId: number$1().int().nonnegative()
53370
53464
  }), method(object({
53371
53465
  deviceId: number$1().int().nonnegative(),
53372
53466
  mode: AlarmArmModeSchema,
53373
- /** Optional PIN code. Required when `requiresCode === true`.
53467
+ /** Optional PIN code. Required when `codeRequired === true`.
53374
53468
  * Passed through to the upstream service; never persisted. */
53375
53469
  code: string().min(1).optional()
53376
53470
  }), _void(), {
@@ -54472,9 +54566,9 @@ method(_void(), array(BackupDestinationInfoSchema).readonly(), { auth: "admin" }
54472
54566
  auth: "admin"
54473
54567
  });
54474
54568
  /**
54475
- * Battery status snapshot. Emitted by providers whose device is
54476
- * battery-operated (cameras with `DeviceFeature.BatteryOperated`,
54477
- * future sensor/button accessories). Consumers build their own "low
54569
+ * Battery status snapshot. Emitted by providers whose device reports a
54570
+ * battery (`DeviceFeature.BatteryOperated`): battery cameras, sensors,
54571
+ * buttons. Whether the device SLEEPS is `low-power-sleep`, not this cap. Consumers build their own "low
54478
54572
  * battery" alerting on top — the cap deliberately does NOT enforce a
54479
54573
  * threshold.
54480
54574
  */
@@ -54569,17 +54663,7 @@ var BatteryStatusSchema = object({
54569
54663
  binary: boolean().optional().meta({ label: "Binary indicator" })
54570
54664
  });
54571
54665
  DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Climate, DeviceType.EventEmitter;
54572
- method(object({
54573
- deviceId: number$1(),
54574
- /** Bound on the wait. Sensible range 3000–10000ms. */
54575
- timeoutMs: number$1().int().min(500).max(3e4).default(8e3)
54576
- }), object({
54577
- awoke: boolean(),
54578
- durationMs: number$1()
54579
- }), {
54580
- kind: "mutation",
54581
- notOperatorFacing: "a stream consumer wakes a sleeping camera to watch it; an automation that wants footage asks for the footage"
54582
- }), object({
54666
+ object({
54583
54667
  deviceId: number$1(),
54584
54668
  status: BatteryStatusSchema
54585
54669
  }), EventCategory.DeviceAwake, EventCategory.DeviceSleeping;
@@ -68352,6 +68436,13 @@ var LockControlStatusSchema = object({
68352
68436
  "jammed",
68353
68437
  "door-open"
68354
68438
  ]),
68439
+ /**
68440
+ * Whether lock / unlock need a PIN `code` (#459, replaces the
68441
+ * `lock-pin-required` device feature). `null` = the provider cannot tell
68442
+ * (D393) — never `false`. `.optional()` so a restored slice written before
68443
+ * the field still parses; readers treat absent exactly like `null`.
68444
+ */
68445
+ codeRequired: boolean().nullable().optional(),
68355
68446
  /** Ms epoch when the slice was last updated. */
68356
68447
  lastChangedAt: number$1()
68357
68448
  });
@@ -68698,6 +68789,33 @@ var LoginMethodContributionSchema = discriminatedUnion("kind", [
68698
68789
  })
68699
68790
  ]);
68700
68791
  method(_void(), array(LoginMethodContributionSchema).readonly()), NOT_A_DEVICE.IDENTITY;
68792
+ object({
68793
+ /**
68794
+ * True while the firmware is in low-power mode. A provider MUST avoid polling
68795
+ * during sleep — a read wakes the device and drains charge.
68796
+ */
68797
+ sleeping: boolean().meta({ label: "Sleeping" }),
68798
+ /**
68799
+ * Ms epoch of the last time the device proved it was reachable, from
68800
+ * PASSIVE signals only (a completed round-trip, an observed wake, a push).
68801
+ * Absent = never since this slice was born. The only input that separates
68802
+ * "asleep" from "gone".
68803
+ */
68804
+ lastContactAt: number$1().optional(),
68805
+ /** Ms epoch of the last observation. */
68806
+ lastUpdated: number$1().meta(readingMeta("none"))
68807
+ });
68808
+ DeviceType.Camera, method(object({
68809
+ deviceId: number$1(),
68810
+ /** Bound on the wait. Sensible range 3000–10000ms. */
68811
+ timeoutMs: number$1().int().min(500).max(3e4).default(8e3)
68812
+ }), object({
68813
+ awoke: boolean(),
68814
+ durationMs: number$1()
68815
+ }), {
68816
+ kind: "mutation",
68817
+ notOperatorFacing: "a stream consumer wakes a sleeping camera to watch it; an automation that wants footage asks for the footage"
68818
+ });
68701
68819
  /**
68702
68820
  * mesh-network — collection cap for mesh-VPN providers.
68703
68821
  *
@@ -86145,6 +86263,27 @@ var RemoteLayoutComponentSchema = object({
86145
86263
  });
86146
86264
  });
86147
86265
  method(object({}), array(RemoteLayoutComponentSchema), { auth: "protected" });
86266
+ /**
86267
+ * resync — a device whose derived spec can be re-aligned on demand with its
86268
+ * upstream source (#459, Q6). Registered by the containers an integration
86269
+ * adopted; `DeviceFeature.Resyncable` (the generic Re-sync button) is derived
86270
+ * from it being bound with `resync` implemented.
86271
+ *
86272
+ * The work itself stays where it is: the owning addon's `device-adoption`
86273
+ * provider, reached through `deviceManager.adoptionResync` (which also owns
86274
+ * the "resync from zero" child purge). A provider answers this method by
86275
+ * asking for exactly that — see `resyncThroughAdoption`.
86276
+ */
86277
+ var ResyncDeviceInputSchema = object({
86278
+ deviceId: number$1().int().nonnegative(),
86279
+ /** "Resync from zero": purge the accessory children before re-deriving. */
86280
+ resetToSource: boolean().optional()
86281
+ });
86282
+ DeviceType.Container, DeviceType.Workload, DeviceType.WeatherStation, method(ResyncDeviceInputSchema, ResyncResultSchema, {
86283
+ kind: "mutation",
86284
+ auth: "admin",
86285
+ notOperatorFacing: "device adoption — re-aligning a device with its source is an onboarding step, not an automation action"
86286
+ });
86148
86287
  DeviceType.MediaPlayer;
86149
86288
  var RunningStateSourceSchema = _enum(["native", "assigned"]);
86150
86289
  object({
@@ -92415,8 +92554,8 @@ var ALARM_MODES = [
92415
92554
  "vacation",
92416
92555
  "custom_bypass"
92417
92556
  ];
92418
- function alarmControls(state, modes, requiresCode) {
92419
- if (requiresCode) return [];
92557
+ function alarmControls(state, modes, codeRequired) {
92558
+ if (codeRequired) return [];
92420
92559
  const disarm = asAction(action("alarm.disarm", t("Disarm", "Disinserisci"), "shield-off", "alarm-panel", "disarm", {}, "primary"));
92421
92560
  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")));
92422
92561
  switch (state) {
@@ -92436,7 +92575,7 @@ var ACCESS_FAMILY_CONTRIBUTIONS = {
92436
92575
  const modes = slice === void 0 ? ALARM_MODES : slice.availableModes;
92437
92576
  return {
92438
92577
  reading: reading("alarm-panel", words?.state ?? "unknown", false, words?.title),
92439
- 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))],
92578
+ 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))],
92440
92579
  ...since === null || words === null ? {} : { facts: [fact("since", "clock", since, state === "triggered" ? "danger" : "muted")] },
92441
92580
  ...words === null ? {} : { tiles: {
92442
92581
  left: [{
@@ -95819,13 +95958,6 @@ Object.freeze({
95819
95958
  access: "view",
95820
95959
  role: "viewer"
95821
95960
  },
95822
- "battery.wakeForStream": {
95823
- capName: "battery",
95824
- capScope: "device",
95825
- addonId: null,
95826
- access: "create",
95827
- role: "viewer"
95828
- },
95829
95961
  "binary.getStatus": {
95830
95962
  capName: "binary",
95831
95963
  capScope: "device",
@@ -99480,6 +99612,20 @@ Object.freeze({
99480
99612
  access: "view",
99481
99613
  role: "admin"
99482
99614
  },
99615
+ "lowPowerSleep.getStatus": {
99616
+ capName: "low-power-sleep",
99617
+ capScope: "device",
99618
+ addonId: null,
99619
+ access: "view",
99620
+ role: "viewer"
99621
+ },
99622
+ "lowPowerSleep.wakeUp": {
99623
+ capName: "low-power-sleep",
99624
+ capScope: "device",
99625
+ addonId: null,
99626
+ access: "create",
99627
+ role: "viewer"
99628
+ },
99483
99629
  "mediaPlayer.channelDown": {
99484
99630
  capName: "media-player",
99485
99631
  capScope: "device",
@@ -103155,6 +103301,13 @@ Object.freeze({
103155
103301
  access: "view",
103156
103302
  role: "admin"
103157
103303
  },
103304
+ "resync.resync": {
103305
+ capName: "resync",
103306
+ capScope: "device",
103307
+ addonId: null,
103308
+ access: "create",
103309
+ role: "admin"
103310
+ },
103158
103311
  "runningState.getStatus": {
103159
103312
  capName: "running-state",
103160
103313
  capScope: "device",
@@ -105564,7 +105717,7 @@ function deviceMatchesProfile(features, profile) {
105564
105717
  var DEVICE_PROFILES = [{
105565
105718
  id: "battery",
105566
105719
  label: "Battery-operated camera",
105567
- when: { hasFeature: DeviceFeature.BatteryOperated },
105720
+ when: { hasFeature: DeviceFeature.Sleeps },
105568
105721
  defaults: {
105569
105722
  audioMode: "disabled",
105570
105723
  detectionMode: "on-motion"
@@ -105590,11 +105743,11 @@ function bound(cap, methods = [], authority = "reported") {
105590
105743
  function derived(cap, methods = []) {
105591
105744
  return bound(cap, methods, "derived");
105592
105745
  }
105593
- DeviceFeature.BatteryOperated, DeviceFeature.Rebootable, derived("reboot", ["reboot"]), DeviceFeature.Resyncable, DeviceFeature.NativeSnapshot, DeviceFeature.DoorbellButton, derived("doorbell"), DeviceFeature.TwoWayAudio, derived("intercom", [
105746
+ 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", [
105594
105747
  "startTalkSession",
105595
105748
  "pushTalkAudio",
105596
105749
  "endTalkSession"
105597
- ]), 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");
105750
+ ]), 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");
105598
105751
  var ALL_FEATURES = Object.values(DeviceFeature);
105599
105752
  new Set(ALL_FEATURES);
105600
105753
  DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher;
@@ -105790,11 +105943,6 @@ Object.freeze({
105790
105943
  form: "single",
105791
105944
  optional: false
105792
105945
  }],
105793
- "battery.wakeForStream": [{
105794
- name: "deviceId",
105795
- form: "single",
105796
- optional: false
105797
- }],
105798
105946
  "binary.getStatus": [{
105799
105947
  name: "deviceId",
105800
105948
  form: "single",
@@ -106978,6 +107126,16 @@ Object.freeze({
106978
107126
  form: "single",
106979
107127
  optional: true
106980
107128
  }],
107129
+ "lowPowerSleep.getStatus": [{
107130
+ name: "deviceId",
107131
+ form: "single",
107132
+ optional: false
107133
+ }],
107134
+ "lowPowerSleep.wakeUp": [{
107135
+ name: "deviceId",
107136
+ form: "single",
107137
+ optional: false
107138
+ }],
106981
107139
  "mediaPlayer.channelDown": [{
106982
107140
  name: "deviceId",
106983
107141
  form: "single",
@@ -108263,6 +108421,11 @@ Object.freeze({
108263
108421
  form: "single",
108264
108422
  optional: false
108265
108423
  }],
108424
+ "resync.resync": [{
108425
+ name: "deviceId",
108426
+ form: "single",
108427
+ optional: false
108428
+ }],
108266
108429
  "runningState.getStatus": [{
108267
108430
  name: "deviceId",
108268
108431
  form: "single",
@@ -119732,7 +119895,7 @@ function resolveDetectionSettings(input) {
119732
119895
  let defaulted;
119733
119896
  if (hasOnboardMotion) defaulted = ["onboard"];
119734
119897
  else if (hasActivitySignal) defaulted = [];
119735
- else if (profile && features.includes(DeviceFeature.BatteryOperated)) defaulted = [];
119898
+ else if (profile && features.includes(DeviceFeature.Sleeps)) defaulted = [];
119736
119899
  else defaulted = MotionSourcesSchema.parse(flat["motionSources"]);
119737
119900
  motionSources = hasActivitySignal ? [...defaulted, DEVICE_ACTIVITY_SOURCE] : defaulted;
119738
119901
  }
@@ -30,7 +30,7 @@ async function d(e) {
30
30
  }
31
31
  }
32
32
  async function f() {
33
- return l ||= d(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_orchestrator_widgets-CtyEPRgs.mjs")).catch((e) => {
33
+ return l ||= d(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_orchestrator_widgets-c8s_uO5h.mjs")).catch((e) => {
34
34
  throw l = void 0, e;
35
35
  }), l;
36
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-pipeline-orchestrator",
3
- "version": "1.2.698",
3
+ "version": "1.2.699",
4
4
  "description": "Hub-side camera-to-agent load balancer — tracks runner capacity and dispatches attachCamera calls to the optimal pipeline-runner instance",
5
5
  "keywords": [
6
6
  "camstack",
@@ -76,7 +76,7 @@
76
76
  }
77
77
  ],
78
78
  "requires": {
79
- "server": ">=1.2.893"
79
+ "server": ">=1.2.895"
80
80
  }
81
81
  },
82
82
  "files": [