@camstack/addon-pipeline-orchestrator 1.2.697 → 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.
Files changed (34) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/assets/viewer/.viewer-current-files.json +2 -2
  3. package/assets/viewer/.viewer-version +1 -1
  4. package/assets/viewer/_expo/static/js/web/{__common-d05d309dfc1da7aa67be4811345c637a.js → __common-a6bde3683e394fb2ae1d1f3863a6eb7d.js} +1808 -1808
  5. package/assets/viewer/_expo/static/js/web/{index-b6e43ad70bba4755703ae796dd342145.js → index-ee0bf28c465ece9931c68b6ab152ed6d.js} +2 -2
  6. package/assets/viewer/index.html +1 -1
  7. package/dist/_stub.js +2 -2
  8. package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_orchestrator_widgets-Dmr2FtiT.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_orchestrator_widgets-c8s_uO5h.mjs} +2 -2
  9. package/dist/_virtual_mf___mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-BBKuY-ao.mjs +26 -0
  10. package/dist/_virtual_mf___mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-BNU5yzDq.mjs +26 -0
  11. package/dist/{hostInit-C-CrLIdU.mjs → hostInit-DwQByiWN.mjs} +2 -2
  12. package/dist/index.js +296 -60
  13. package/dist/index.mjs +296 -60
  14. package/dist/remoteEntry.js +1 -1
  15. package/package.json +2 -2
  16. package/assets/viewer/_expo/static/js/web/Clipboard-f8d33827722c67231c0f3e943187b860.js +0 -8
  17. package/assets/viewer/_expo/static/js/web/Haptics-c5244c1dcf8c7205b3f29f9dedcea737.js +0 -3
  18. package/assets/viewer/_expo/static/js/web/[id]-2936f0ceb519c608356d6bb0aa38bff0.js +0 -5
  19. package/assets/viewer/_expo/static/js/web/[id]-a07763130008d6afb9c87339076f0a85.js +0 -7
  20. package/assets/viewer/_expo/static/js/web/[section]-ba0034177f07b5b63dd9a31904a00712.js +0 -28
  21. package/assets/viewer/_expo/static/js/web/_layout-581a52978fa1311503776af0c14687cc.js +0 -24
  22. package/assets/viewer/_expo/static/js/web/add-server-e45cff3a08d70f0a2a2cec6141c77b54.js +0 -2
  23. package/assets/viewer/_expo/static/js/web/alarm-4b509936b3ecd963968f48a93501cd82.js +0 -1
  24. package/assets/viewer/_expo/static/js/web/cameras-51bf05da16e2313259dc7792791cdd4c.js +0 -27
  25. package/assets/viewer/_expo/static/js/web/connect-327d2b5dd190f3128536d70c2e53771e.js +0 -2
  26. package/assets/viewer/_expo/static/js/web/enroll-9950c0edd504ce2a7ad944606133b3fe.js +0 -19
  27. package/assets/viewer/_expo/static/js/web/index-0704c474cc350bebc53d2cc44926172b.js +0 -2
  28. package/assets/viewer/_expo/static/js/web/index-207cbd4982c7bc23aee652901fd9aea3.js +0 -4
  29. package/assets/viewer/_expo/static/js/web/index-584c99c3ea5809b9510c2a059b797620.js +0 -1
  30. package/assets/viewer/_expo/static/js/web/new-d1471125dcc9908db257df81230fc3b6.js +0 -2
  31. package/assets/viewer/_expo/static/js/web/settings-2f4222e958cff063de7f51df1363324f.js +0 -23
  32. package/assets/viewer/_expo/static/js/web/sign-in-2f0e3d85d47993564bd6f37f66ce6781.js +0 -38
  33. package/dist/_virtual_mf___mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DMRY0wfC.mjs +0 -26
  34. package/dist/_virtual_mf___mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-C-4CsZgC.mjs +0 -26
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;
@@ -60038,6 +60122,69 @@ var DeviceIdentifiersSchema = object({
60038
60122
  hostname: HostnameEntrySchema.optional(),
60039
60123
  ip: IpEntrySchema.optional()
60040
60124
  }).strict();
60125
+ /**
60126
+ * Cross-integration identity candidates (planning#593, step 2 of D1059's epic).
60127
+ *
60128
+ * Two devices brought by DIFFERENT integrations that share provider-declared
60129
+ * identifiers ({@link DeviceIdentifiers}) are candidates for being the same
60130
+ * physical object. This module holds the answer's shape; the device-manager
60131
+ * keeps the index that finds the pairs and the ONE rule that grades a match
60132
+ * (`classifyIdentityMatch`, `device-identity-index.ts`).
60133
+ *
60134
+ * The rule (operator, planning#590):
60135
+ *
60136
+ * | Matched keys | Confidence |
60137
+ * | ---------------------------------------------- | ----------- |
60138
+ * | two strong KINDS (e.g. `mac` + `serial`) | `auto` |
60139
+ * | `mac` + `ip` | `auto` |
60140
+ * | exactly one strong kind | `proposal` |
60141
+ * | weak keys only (`hostname`, `ip`) | no candidate|
60142
+ *
60143
+ * Strength counts distinct KINDS, not values: two MACs of one device matching
60144
+ * the other's two MACs are still one kind of evidence, so a proposal. In doubt,
60145
+ * no match.
60146
+ *
60147
+ * Read-only: a candidate is NOT a link. Links are step 3.
60148
+ */
60149
+ var IdentityConfidenceSchema = _enum(["auto", "proposal"]);
60150
+ /** One identifier both devices declared, with the same normalised value. */
60151
+ var IdentityMatchedKeySchema = object({
60152
+ key: DeviceIdentifierKeySchema,
60153
+ value: string()
60154
+ });
60155
+ /** One side of a pair: the device and the integration that brought it. */
60156
+ var IdentityCandidateDeviceSchema = object({
60157
+ deviceId: number$1().int(),
60158
+ addonId: string(),
60159
+ /** The integration instance (`int_NNNN`) that adopted it; `null` when none was stamped. */
60160
+ integrationId: string().nullable()
60161
+ });
60162
+ /** Two devices of different integrations sharing at least one strong identifier. `a.deviceId < b.deviceId`. */
60163
+ var IdentityCandidatePairSchema = object({
60164
+ a: IdentityCandidateDeviceSchema,
60165
+ b: IdentityCandidateDeviceSchema,
60166
+ /** Every identifier the two share, weak ones included, ordered by key then value. */
60167
+ keys: array(IdentityMatchedKeySchema).readonly(),
60168
+ confidence: IdentityConfidenceSchema
60169
+ });
60170
+ /**
60171
+ * The answer of `device-manager.listIdentityCandidates`.
60172
+ *
60173
+ * - `unknown` — the index has not loaded yet: nothing can be said, and it is
60174
+ * NOT an empty list (D315).
60175
+ * - `answered` — `pairs` holds every candidate. `undeclaredDeviceIds` are the
60176
+ * devices with no identifiers on record: whether they match anything is
60177
+ * UNKNOWN, never "no match" (D393). A device absent from both lists declared
60178
+ * identifiers and matched nobody.
60179
+ */
60180
+ var IdentityCandidatesSchema = discriminatedUnion("status", [object({
60181
+ status: literal("unknown"),
60182
+ reason: string()
60183
+ }), object({
60184
+ status: literal("answered"),
60185
+ pairs: array(IdentityCandidatePairSchema).readonly(),
60186
+ undeclaredDeviceIds: array(number$1().int()).readonly()
60187
+ })]);
60041
60188
  var DeviceSearchRequiresSchema = object({
60042
60189
  /** Capability names the field wants a value of. Absent when the field wants actions only. */
60043
60190
  caps: array(string()).readonly().optional(),
@@ -60984,6 +61131,9 @@ method(object({
60984
61131
  }), _void(), {
60985
61132
  kind: "mutation",
60986
61133
  auth: "admin"
61134
+ }), method(object({}), IdentityCandidatesSchema, {
61135
+ kind: "query",
61136
+ auth: "admin"
60987
61137
  }), method(_void(), array(string())), method(object({ name: string() }), _void(), {
60988
61138
  kind: "mutation",
60989
61139
  auth: "admin"
@@ -68286,6 +68436,13 @@ var LockControlStatusSchema = object({
68286
68436
  "jammed",
68287
68437
  "door-open"
68288
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(),
68289
68446
  /** Ms epoch when the slice was last updated. */
68290
68447
  lastChangedAt: number$1()
68291
68448
  });
@@ -68632,6 +68789,33 @@ var LoginMethodContributionSchema = discriminatedUnion("kind", [
68632
68789
  })
68633
68790
  ]);
68634
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
+ });
68635
68819
  /**
68636
68820
  * mesh-network — collection cap for mesh-VPN providers.
68637
68821
  *
@@ -86079,6 +86263,27 @@ var RemoteLayoutComponentSchema = object({
86079
86263
  });
86080
86264
  });
86081
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
+ });
86082
86287
  DeviceType.MediaPlayer;
86083
86288
  var RunningStateSourceSchema = _enum(["native", "assigned"]);
86084
86289
  object({
@@ -92349,8 +92554,8 @@ var ALARM_MODES = [
92349
92554
  "vacation",
92350
92555
  "custom_bypass"
92351
92556
  ];
92352
- function alarmControls(state, modes, requiresCode) {
92353
- if (requiresCode) return [];
92557
+ function alarmControls(state, modes, codeRequired) {
92558
+ if (codeRequired) return [];
92354
92559
  const disarm = asAction(action("alarm.disarm", t("Disarm", "Disinserisci"), "shield-off", "alarm-panel", "disarm", {}, "primary"));
92355
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")));
92356
92561
  switch (state) {
@@ -92370,7 +92575,7 @@ var ACCESS_FAMILY_CONTRIBUTIONS = {
92370
92575
  const modes = slice === void 0 ? ALARM_MODES : slice.availableModes;
92371
92576
  return {
92372
92577
  reading: reading("alarm-panel", words?.state ?? "unknown", false, words?.title),
92373
- 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))],
92374
92579
  ...since === null || words === null ? {} : { facts: [fact("since", "clock", since, state === "triggered" ? "danger" : "muted")] },
92375
92580
  ...words === null ? {} : { tiles: {
92376
92581
  left: [{
@@ -95753,13 +95958,6 @@ Object.freeze({
95753
95958
  access: "view",
95754
95959
  role: "viewer"
95755
95960
  },
95756
- "battery.wakeForStream": {
95757
- capName: "battery",
95758
- capScope: "device",
95759
- addonId: null,
95760
- access: "create",
95761
- role: "viewer"
95762
- },
95763
95961
  "binary.getStatus": {
95764
95962
  capName: "binary",
95765
95963
  capScope: "device",
@@ -97286,6 +97484,13 @@ Object.freeze({
97286
97484
  access: "view",
97287
97485
  role: "admin"
97288
97486
  },
97487
+ "deviceManager.listIdentityCandidates": {
97488
+ capName: "device-manager",
97489
+ capScope: "system",
97490
+ addonId: null,
97491
+ access: "view",
97492
+ role: "admin"
97493
+ },
97289
97494
  "deviceManager.listLocationDescriptions": {
97290
97495
  capName: "device-manager",
97291
97496
  capScope: "system",
@@ -99407,6 +99612,20 @@ Object.freeze({
99407
99612
  access: "view",
99408
99613
  role: "admin"
99409
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
+ },
99410
99629
  "mediaPlayer.channelDown": {
99411
99630
  capName: "media-player",
99412
99631
  capScope: "device",
@@ -103082,6 +103301,13 @@ Object.freeze({
103082
103301
  access: "view",
103083
103302
  role: "admin"
103084
103303
  },
103304
+ "resync.resync": {
103305
+ capName: "resync",
103306
+ capScope: "device",
103307
+ addonId: null,
103308
+ access: "create",
103309
+ role: "admin"
103310
+ },
103085
103311
  "runningState.getStatus": {
103086
103312
  capName: "running-state",
103087
103313
  capScope: "device",
@@ -105491,7 +105717,7 @@ function deviceMatchesProfile(features, profile) {
105491
105717
  var DEVICE_PROFILES = [{
105492
105718
  id: "battery",
105493
105719
  label: "Battery-operated camera",
105494
- when: { hasFeature: DeviceFeature.BatteryOperated },
105720
+ when: { hasFeature: DeviceFeature.Sleeps },
105495
105721
  defaults: {
105496
105722
  audioMode: "disabled",
105497
105723
  detectionMode: "on-motion"
@@ -105517,11 +105743,11 @@ function bound(cap, methods = [], authority = "reported") {
105517
105743
  function derived(cap, methods = []) {
105518
105744
  return bound(cap, methods, "derived");
105519
105745
  }
105520
- 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", [
105521
105747
  "startTalkSession",
105522
105748
  "pushTalkAudio",
105523
105749
  "endTalkSession"
105524
- ]), 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");
105525
105751
  var ALL_FEATURES = Object.values(DeviceFeature);
105526
105752
  new Set(ALL_FEATURES);
105527
105753
  DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher;
@@ -105717,11 +105943,6 @@ Object.freeze({
105717
105943
  form: "single",
105718
105944
  optional: false
105719
105945
  }],
105720
- "battery.wakeForStream": [{
105721
- name: "deviceId",
105722
- form: "single",
105723
- optional: false
105724
- }],
105725
105946
  "binary.getStatus": [{
105726
105947
  name: "deviceId",
105727
105948
  form: "single",
@@ -106905,6 +107126,16 @@ Object.freeze({
106905
107126
  form: "single",
106906
107127
  optional: true
106907
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
+ }],
106908
107139
  "mediaPlayer.channelDown": [{
106909
107140
  name: "deviceId",
106910
107141
  form: "single",
@@ -108190,6 +108421,11 @@ Object.freeze({
108190
108421
  form: "single",
108191
108422
  optional: false
108192
108423
  }],
108424
+ "resync.resync": [{
108425
+ name: "deviceId",
108426
+ form: "single",
108427
+ optional: false
108428
+ }],
108193
108429
  "runningState.getStatus": [{
108194
108430
  name: "deviceId",
108195
108431
  form: "single",
@@ -119659,7 +119895,7 @@ function resolveDetectionSettings(input) {
119659
119895
  let defaulted;
119660
119896
  if (hasOnboardMotion) defaulted = ["onboard"];
119661
119897
  else if (hasActivitySignal) defaulted = [];
119662
- else if (profile && features.includes(DeviceFeature.BatteryOperated)) defaulted = [];
119898
+ else if (profile && features.includes(DeviceFeature.Sleeps)) defaulted = [];
119663
119899
  else defaulted = MotionSourcesSchema.parse(flat["motionSources"]);
119664
119900
  motionSources = hasActivitySignal ? [...defaulted, DEVICE_ACTIVITY_SOURCE] : defaulted;
119665
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-Dmr2FtiT.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.697",
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.892"
79
+ "server": ">=1.2.895"
80
80
  }
81
81
  },
82
82
  "files": [