@camstack/addon-pipeline-orchestrator 1.2.679 → 1.2.680
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/CHANGELOG.md +6 -0
- package/dist/_stub.js +2 -2
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_orchestrator_widgets-9T-BLrzk.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_orchestrator_widgets-BWnvPLO-.mjs} +2 -2
- package/dist/_virtual_mf___mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DdeKARA7.mjs +26 -0
- package/dist/_virtual_mf___mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-8zgS5KkE.mjs +26 -0
- package/dist/{hostInit-Be3j5KKd.mjs → hostInit-CnA8Kd3k.mjs} +2 -2
- package/dist/index.js +70 -174
- package/dist/index.mjs +70 -174
- package/dist/remoteEntry.js +1 -1
- package/package.json +2 -2
- package/dist/_virtual_mf___mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-OlQVUg-v.mjs +0 -26
- package/dist/_virtual_mf___mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-BYACFy7L.mjs +0 -26
package/dist/index.js
CHANGED
|
@@ -833,7 +833,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
833
833
|
return EventCategory;
|
|
834
834
|
}({});
|
|
835
835
|
//#endregion
|
|
836
|
-
//#region ../types/dist/composed-stable-id-
|
|
836
|
+
//#region ../types/dist/composed-stable-id-DFNyOFzz.mjs
|
|
837
837
|
/**
|
|
838
838
|
import { errMsg } from '@camstack/types'
|
|
839
839
|
* Extract a human-readable message from an unknown error value.
|
|
@@ -846,6 +846,7 @@ function errMsg$2(err) {
|
|
|
846
846
|
}
|
|
847
847
|
var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
848
848
|
DeviceType["Camera"] = "camera";
|
|
849
|
+
/** Legacy stored value, read only by the hub-to-integration migrations; no live device carries it. */
|
|
849
850
|
DeviceType["Hub"] = "hub";
|
|
850
851
|
DeviceType["Light"] = "light";
|
|
851
852
|
DeviceType["Siren"] = "siren";
|
|
@@ -6057,7 +6058,7 @@ var ZodIssueCode = {
|
|
|
6057
6058
|
var ZodFirstPartyTypeKind;
|
|
6058
6059
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
6059
6060
|
//#endregion
|
|
6060
|
-
//#region ../types/dist/sleep-
|
|
6061
|
+
//#region ../types/dist/sleep-D_NpiLFP.mjs
|
|
6061
6062
|
/**
|
|
6062
6063
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
6063
6064
|
* window to float samples (D455).
|
|
@@ -13819,10 +13820,6 @@ var CAMERA_CAP_VOCABULARY = {
|
|
|
13819
13820
|
scope: "device",
|
|
13820
13821
|
noun: t("Admin link", "Link di amministrazione")
|
|
13821
13822
|
},
|
|
13822
|
-
"device-discovery": {
|
|
13823
|
-
scope: "device",
|
|
13824
|
-
noun: t("Discovery", "Rilevamento dispositivi")
|
|
13825
|
-
},
|
|
13826
13823
|
"device-extension": {
|
|
13827
13824
|
scope: "device",
|
|
13828
13825
|
noun: t("Device extension", "Estensione del dispositivo")
|
|
@@ -15392,7 +15389,6 @@ var CAP_NAMES = Object.freeze([
|
|
|
15392
15389
|
"device-admin-link",
|
|
15393
15390
|
"device-adoption",
|
|
15394
15391
|
"device-credentials",
|
|
15395
|
-
"device-discovery",
|
|
15396
15392
|
"device-export",
|
|
15397
15393
|
"device-extension",
|
|
15398
15394
|
"device-history",
|
|
@@ -16014,13 +16010,6 @@ Object.freeze({
|
|
|
16014
16010
|
"valueType": "string"
|
|
16015
16011
|
}
|
|
16016
16012
|
],
|
|
16017
|
-
"device-discovery": [{
|
|
16018
|
-
"path": "lastDiscoveryAt",
|
|
16019
|
-
"valueType": "number"
|
|
16020
|
-
}, {
|
|
16021
|
-
"path": "lastError",
|
|
16022
|
-
"valueType": "string"
|
|
16023
|
-
}],
|
|
16024
16013
|
"device-export": [
|
|
16025
16014
|
{
|
|
16026
16015
|
"path": "linkState",
|
|
@@ -17496,7 +17485,7 @@ function sleep(ms) {
|
|
|
17496
17485
|
return new Promise((resolve) => setTimeout(resolve, Math.max(0, ms)));
|
|
17497
17486
|
}
|
|
17498
17487
|
//#endregion
|
|
17499
|
-
//#region ../types/dist/implemented-methods-
|
|
17488
|
+
//#region ../types/dist/implemented-methods-M5aguGon.mjs
|
|
17500
17489
|
/**
|
|
17501
17490
|
* The ffmpeg build every CamStack node downloads, per platform and arch.
|
|
17502
17491
|
*
|
|
@@ -45689,7 +45678,7 @@ object({
|
|
|
45689
45678
|
* is irrelevant; the array is treated as a set by consumers. */
|
|
45690
45679
|
hiddenChildIds: array(number$1()).readonly()
|
|
45691
45680
|
});
|
|
45692
|
-
DeviceType.Camera, DeviceType.
|
|
45681
|
+
DeviceType.Camera, DeviceType.Switch, DeviceType.Light, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Cover, DeviceType.Lock, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Generic, method(object({
|
|
45693
45682
|
deviceId: number$1().int().nonnegative(),
|
|
45694
45683
|
childDeviceId: number$1().int().nonnegative(),
|
|
45695
45684
|
hidden: boolean()
|
|
@@ -50384,7 +50373,7 @@ DeviceType.MediaPlayer, optionalMethod(deviceOnly, _void(), {
|
|
|
50384
50373
|
kind: "mutation",
|
|
50385
50374
|
auth: "protected"
|
|
50386
50375
|
});
|
|
50387
|
-
DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Thermostat, DeviceType.EventEmitter, DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Heater, DeviceType.Dryer, DeviceType.Gateway, DeviceType.HeatPump, DeviceType.Camera, DeviceType.Fan, DeviceType.Lock, DeviceType.Camera, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Gateway, DeviceType.
|
|
50376
|
+
DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Thermostat, DeviceType.EventEmitter, DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Heater, DeviceType.Dryer, DeviceType.Gateway, DeviceType.HeatPump, DeviceType.Camera, DeviceType.Fan, DeviceType.Lock, DeviceType.Camera, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Gateway, DeviceType.Camera, DeviceType.Sensor, DeviceType.MediaPlayer, DeviceType.Vacuum, DeviceType.Generic, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.PetFountain, DeviceType.Fan, DeviceType.Humidifier, DeviceType.Climate, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.MediaPlayer, DeviceType.WaterHeater, DeviceType.Humidifier, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.MediaPlayer;
|
|
50388
50377
|
var NUMBER = {
|
|
50389
50378
|
kind: "fixed",
|
|
50390
50379
|
result: ["number"]
|
|
@@ -51777,27 +51766,35 @@ var DeviceAdminLinkSchema = object({
|
|
|
51777
51766
|
});
|
|
51778
51767
|
method(object({ deviceId: number$1().int().nonnegative() }), DeviceAdminLinkSchema.nullable(), { auth: "admin" });
|
|
51779
51768
|
/**
|
|
51780
|
-
* device-
|
|
51781
|
-
*
|
|
51782
|
-
*
|
|
51783
|
-
*
|
|
51784
|
-
*
|
|
51785
|
-
*
|
|
51786
|
-
*
|
|
51787
|
-
*
|
|
51788
|
-
*
|
|
51789
|
-
*
|
|
51790
|
-
*
|
|
51791
|
-
*
|
|
51792
|
-
*
|
|
51793
|
-
*
|
|
51794
|
-
*
|
|
51795
|
-
*
|
|
51796
|
-
*
|
|
51797
|
-
|
|
51798
|
-
|
|
51799
|
-
*
|
|
51800
|
-
*
|
|
51769
|
+
* `device-adoption` — generic discovery + adoption surface,
|
|
51770
|
+
* system-scoped collection (one provider per integration addon), routed
|
|
51771
|
+
* by explicit `{ addonId }` on direct `deviceAdoption.*` calls — the same
|
|
51772
|
+
* pin model as `connection-test`. The admin UI keeps using
|
|
51773
|
+
* `deviceManager.adoption*` (which already threads `addonId`). The de-HA-ified
|
|
51774
|
+
* successor to `ha-discovery`:
|
|
51775
|
+
* keyed by `integrationId` (the addon resolves integrationId → broker
|
|
51776
|
+
* internally) rather than a connection-specific `brokerId`, and it
|
|
51777
|
+
* OWNS the shared `DiscoveredChildDevice` candidate type
|
|
51778
|
+
* (declared below) so a single shared adoption modal renders any integration's
|
|
51779
|
+
* candidate tree.
|
|
51780
|
+
*
|
|
51781
|
+
* UI flow (Integrations page → integration detail):
|
|
51782
|
+
* 1. `listCandidates({integrationId, page, pageSize, filter})` →
|
|
51783
|
+
* paginated candidate list, each row collapsed.
|
|
51784
|
+
* 2. User expands a row → `getCandidate({integrationId,
|
|
51785
|
+
* childNativeId})` returns the single candidate (with its nested
|
|
51786
|
+
* `children`) for the accordion render.
|
|
51787
|
+
* 3. User clicks "Adopt" on one or more candidates →
|
|
51788
|
+
* `adopt({integrationId, childNativeIds, perCandidate?})`
|
|
51789
|
+
* materialises one parent CamStack device per candidate plus its
|
|
51790
|
+
* accessory children. `perCandidate[childNativeId]` carries an
|
|
51791
|
+
* optional display-name override + a `hiddenChildIds` pre-hide set
|
|
51792
|
+
* (the parent's `accessories.hiddenChildIds` gates UI visibility).
|
|
51793
|
+
* 4. User clicks "Release" → `release({integrationId, camDeviceId})`
|
|
51794
|
+
* removes the parent + every child from the kernel registry.
|
|
51795
|
+
*/
|
|
51796
|
+
/**
|
|
51797
|
+
* Status enum for a discovered device. Generic enough for
|
|
51801
51798
|
* battery cams, awake cams, and unreachable cams alike.
|
|
51802
51799
|
*/
|
|
51803
51800
|
var DiscoveredChildStatusSchema = _enum([
|
|
@@ -51814,12 +51811,12 @@ var DiscoveredChildDeviceSchema = lazy(() => object({
|
|
|
51814
51811
|
/** DeviceType the child should be created with on adopt. */
|
|
51815
51812
|
type: _enum(DeviceType),
|
|
51816
51813
|
status: DiscoveredChildStatusSchema,
|
|
51817
|
-
/** Free-form integration-specific metadata surfaced in the
|
|
51814
|
+
/** Free-form integration-specific metadata surfaced in the adoption modal. */
|
|
51818
51815
|
metadata: object({
|
|
51819
51816
|
model: string().optional(),
|
|
51820
51817
|
serialNumber: string().optional(),
|
|
51821
51818
|
uid: string().optional(),
|
|
51822
|
-
/** Reolink: 0-based channel index inside the parent NVR
|
|
51819
|
+
/** Reolink: 0-based channel index inside the parent NVR. */
|
|
51823
51820
|
rtspChannel: number$1().int().nonnegative().optional(),
|
|
51824
51821
|
isBattery: boolean().optional(),
|
|
51825
51822
|
isDoorbell: boolean().optional(),
|
|
@@ -51835,86 +51832,24 @@ var DiscoveredChildDeviceSchema = lazy(() => object({
|
|
|
51835
51832
|
}).default({}),
|
|
51836
51833
|
/**
|
|
51837
51834
|
* `true` when the framework already created a child device for this
|
|
51838
|
-
* `childNativeId` under the current parent. The
|
|
51835
|
+
* `childNativeId` under the current parent. The adoption modal uses it to
|
|
51839
51836
|
* gate the Add/Remove button and surface the existing `deviceId`.
|
|
51840
51837
|
*/
|
|
51841
51838
|
alreadyAdopted: boolean(),
|
|
51842
51839
|
/** When `alreadyAdopted=true`, the framework-assigned child device id. */
|
|
51843
51840
|
adoptedDeviceId: number$1().int().nonnegative().nullable(),
|
|
51844
|
-
/** Capability names the candidate advertises — integrations populate,
|
|
51841
|
+
/** Capability names the candidate advertises — integrations populate, flat enumerations omit. */
|
|
51845
51842
|
capabilities: array(string()).readonly().optional(),
|
|
51846
|
-
/** Feature flags the candidate advertises — integrations populate,
|
|
51843
|
+
/** Feature flags the candidate advertises — integrations populate, flat enumerations omit. */
|
|
51847
51844
|
features: array(string()).readonly().optional(),
|
|
51848
51845
|
/** Upstream-system identity + rendering hints for the candidate. */
|
|
51849
51846
|
sourceInfo: SourceInfoSchema.optional(),
|
|
51850
|
-
/** Nested entity-children for accordion preview — integrations populate,
|
|
51847
|
+
/** Nested entity-children for accordion preview — integrations populate, flat enumerations omit. */
|
|
51851
51848
|
children: array(DiscoveredChildDeviceSchema).readonly().optional(),
|
|
51852
51849
|
/** `childNativeId` of the gateway candidate in the same list this device sits behind. */
|
|
51853
51850
|
parentStableId: string().optional()
|
|
51854
51851
|
}));
|
|
51855
51852
|
/**
|
|
51856
|
-
* Status block — populated by the integration after each
|
|
51857
|
-
* `refreshDiscovery` (or push-driven update). The runtime-state slice
|
|
51858
|
-
* is what the panel reads via the per-device proxy; `getStatus`
|
|
51859
|
-
* returns the same payload via the codegen'd auto-injection.
|
|
51860
|
-
*/
|
|
51861
|
-
var DeviceDiscoveryStatusSchema = object({
|
|
51862
|
-
discovered: array(DiscoveredChildDeviceSchema),
|
|
51863
|
-
/** Wall-clock ms of the last successful enumeration. */
|
|
51864
|
-
lastDiscoveryAt: number$1().int().nonnegative().nullable(),
|
|
51865
|
-
/** Last error surfaced from the source (rendered as a banner). */
|
|
51866
|
-
lastError: string().nullable()
|
|
51867
|
-
});
|
|
51868
|
-
DeviceType.Hub, DeviceDiscoveryStatusSchema.extend({ lastFetchedAt: number$1().int().nonnegative() }), method(object({ deviceId: number$1().int().nonnegative() }), array(DiscoveredChildDeviceSchema).readonly()), method(object({ deviceId: number$1().int().nonnegative() }), array(DiscoveredChildDeviceSchema).readonly(), {
|
|
51869
|
-
kind: "mutation",
|
|
51870
|
-
auth: "admin"
|
|
51871
|
-
}), method(object({
|
|
51872
|
-
deviceId: number$1().int().nonnegative(),
|
|
51873
|
-
childNativeId: string(),
|
|
51874
|
-
/** Optional override for the child's display name. */
|
|
51875
|
-
name: string().optional()
|
|
51876
|
-
}), object({
|
|
51877
|
-
deviceId: number$1().int().nonnegative(),
|
|
51878
|
-
stableId: string()
|
|
51879
|
-
}), {
|
|
51880
|
-
kind: "mutation",
|
|
51881
|
-
auth: "admin"
|
|
51882
|
-
}), method(object({
|
|
51883
|
-
deviceId: number$1().int().nonnegative(),
|
|
51884
|
-
childDeviceId: number$1().int().nonnegative()
|
|
51885
|
-
}), _void(), {
|
|
51886
|
-
kind: "mutation",
|
|
51887
|
-
auth: "admin"
|
|
51888
|
-
});
|
|
51889
|
-
/**
|
|
51890
|
-
* `device-adoption` — generic discovery + adoption surface,
|
|
51891
|
-
* system-scoped collection (one provider per integration addon), routed
|
|
51892
|
-
* by explicit `{ addonId }` on direct `deviceAdoption.*` calls — the same
|
|
51893
|
-
* pin model as `connection-test`. The admin UI keeps using
|
|
51894
|
-
* `deviceManager.adoption*` (which already threads `addonId`). The de-HA-ified
|
|
51895
|
-
* successor to `ha-discovery`:
|
|
51896
|
-
* keyed by `integrationId` (the addon resolves integrationId → broker
|
|
51897
|
-
* internally) rather than a connection-specific `brokerId`, and it
|
|
51898
|
-
* REUSES the shared `DiscoveredChildDevice` candidate type from
|
|
51899
|
-
* `device-discovery.cap.ts` so a single shared adoption panel renders
|
|
51900
|
-
* any integration's candidate tree.
|
|
51901
|
-
*
|
|
51902
|
-
* UI flow (Integrations page → integration detail):
|
|
51903
|
-
* 1. `listCandidates({integrationId, page, pageSize, filter})` →
|
|
51904
|
-
* paginated candidate list, each row collapsed.
|
|
51905
|
-
* 2. User expands a row → `getCandidate({integrationId,
|
|
51906
|
-
* childNativeId})` returns the single candidate (with its nested
|
|
51907
|
-
* `children`) for the accordion render.
|
|
51908
|
-
* 3. User clicks "Adopt" on one or more candidates →
|
|
51909
|
-
* `adopt({integrationId, childNativeIds, perCandidate?})`
|
|
51910
|
-
* materialises one parent CamStack device per candidate plus its
|
|
51911
|
-
* accessory children. `perCandidate[childNativeId]` carries an
|
|
51912
|
-
* optional display-name override + a `hiddenChildIds` pre-hide set
|
|
51913
|
-
* (the parent's `accessories.hiddenChildIds` gates UI visibility).
|
|
51914
|
-
* 4. User clicks "Release" → `release({integrationId, camDeviceId})`
|
|
51915
|
-
* removes the parent + every child from the kernel registry.
|
|
51916
|
-
*/
|
|
51917
|
-
/**
|
|
51918
51853
|
* Provider-declared discovery *granularity* filter (the keystone of the
|
|
51919
51854
|
* single-entity-import design). A provider advertises which discovery
|
|
51920
51855
|
* granularities it supports via `listCandidateFilters`; the operator picks
|
|
@@ -73038,7 +72973,7 @@ object({
|
|
|
73038
72973
|
offSeconds: number$1().int(),
|
|
73039
72974
|
lastFetchedAt: number$1()
|
|
73040
72975
|
});
|
|
73041
|
-
DeviceType.Gateway, DeviceType.
|
|
72976
|
+
DeviceType.Gateway, DeviceType.Camera, DeviceType.Sensor, DeviceType.MediaPlayer, DeviceType.Vacuum, DeviceType.Generic, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.PetFountain, DeviceType.Fan, DeviceType.Humidifier, DeviceType.Climate, DeviceType.WaterHeater;
|
|
73042
72977
|
var deviceInput$1 = object({ deviceId: number$1().int().nonnegative() });
|
|
73043
72978
|
systemMethod(deviceInput$1, PowerSourceInfoSchema, { auth: "protected" }), systemMethod(deviceInput$1, PowerSourceActionResultSchema, {
|
|
73044
72979
|
kind: "mutation",
|
|
@@ -85649,41 +85584,6 @@ Object.freeze({
|
|
|
85649
85584
|
access: "create",
|
|
85650
85585
|
role: "admin"
|
|
85651
85586
|
},
|
|
85652
|
-
"deviceDiscovery.adoptDevice": {
|
|
85653
|
-
capName: "device-discovery",
|
|
85654
|
-
capScope: "device",
|
|
85655
|
-
addonId: null,
|
|
85656
|
-
access: "create",
|
|
85657
|
-
role: "admin"
|
|
85658
|
-
},
|
|
85659
|
-
"deviceDiscovery.getStatus": {
|
|
85660
|
-
capName: "device-discovery",
|
|
85661
|
-
capScope: "device",
|
|
85662
|
-
addonId: null,
|
|
85663
|
-
access: "view",
|
|
85664
|
-
role: "viewer"
|
|
85665
|
-
},
|
|
85666
|
-
"deviceDiscovery.listDiscovered": {
|
|
85667
|
-
capName: "device-discovery",
|
|
85668
|
-
capScope: "device",
|
|
85669
|
-
addonId: null,
|
|
85670
|
-
access: "view",
|
|
85671
|
-
role: "viewer"
|
|
85672
|
-
},
|
|
85673
|
-
"deviceDiscovery.refreshDiscovery": {
|
|
85674
|
-
capName: "device-discovery",
|
|
85675
|
-
capScope: "device",
|
|
85676
|
-
addonId: null,
|
|
85677
|
-
access: "create",
|
|
85678
|
-
role: "admin"
|
|
85679
|
-
},
|
|
85680
|
-
"deviceDiscovery.releaseDevice": {
|
|
85681
|
-
capName: "device-discovery",
|
|
85682
|
-
capScope: "device",
|
|
85683
|
-
addonId: null,
|
|
85684
|
-
access: "create",
|
|
85685
|
-
role: "admin"
|
|
85686
|
-
},
|
|
85687
85587
|
"deviceExport.applyDeviceSettingsPatch": {
|
|
85688
85588
|
capName: "device-export",
|
|
85689
85589
|
capScope: "system",
|
|
@@ -94769,35 +94669,6 @@ Object.freeze({
|
|
|
94769
94669
|
form: "single",
|
|
94770
94670
|
optional: false
|
|
94771
94671
|
}],
|
|
94772
|
-
"deviceDiscovery.adoptDevice": [{
|
|
94773
|
-
name: "deviceId",
|
|
94774
|
-
form: "single",
|
|
94775
|
-
optional: false
|
|
94776
|
-
}],
|
|
94777
|
-
"deviceDiscovery.getStatus": [{
|
|
94778
|
-
name: "deviceId",
|
|
94779
|
-
form: "single",
|
|
94780
|
-
optional: false
|
|
94781
|
-
}],
|
|
94782
|
-
"deviceDiscovery.listDiscovered": [{
|
|
94783
|
-
name: "deviceId",
|
|
94784
|
-
form: "single",
|
|
94785
|
-
optional: false
|
|
94786
|
-
}],
|
|
94787
|
-
"deviceDiscovery.refreshDiscovery": [{
|
|
94788
|
-
name: "deviceId",
|
|
94789
|
-
form: "single",
|
|
94790
|
-
optional: false
|
|
94791
|
-
}],
|
|
94792
|
-
"deviceDiscovery.releaseDevice": [{
|
|
94793
|
-
name: "childDeviceId",
|
|
94794
|
-
form: "single",
|
|
94795
|
-
optional: false
|
|
94796
|
-
}, {
|
|
94797
|
-
name: "deviceId",
|
|
94798
|
-
form: "single",
|
|
94799
|
-
optional: false
|
|
94800
|
-
}],
|
|
94801
94672
|
"deviceExport.applyDeviceSettingsPatch": [{
|
|
94802
94673
|
name: "deviceId",
|
|
94803
94674
|
form: "single",
|
|
@@ -100181,8 +100052,8 @@ async function readRawKeys(read, addonId, keys) {
|
|
|
100181
100052
|
* `<addonId>:<deviceId>.cameraSettings` in `addon-device-settings`.
|
|
100182
100053
|
*
|
|
100183
100054
|
* Each entry is copied VERBATIM (the value of a row is the entry the map held), so a field the
|
|
100184
|
-
* schema does not know yet survives byte for byte. The map key
|
|
100185
|
-
* `
|
|
100055
|
+
* schema does not know yet survives byte for byte. The mover leaves the map key in place; the
|
|
100056
|
+
* catalogue's last step (`drop-moved-maps`) deletes it once all three movers are applied.
|
|
100186
100057
|
*
|
|
100187
100058
|
* A row that already exists is never overwritten: it was written by the build that reads rows,
|
|
100188
100059
|
* and a seed never overwrites. A plan that has nothing left to copy is empty, so a second run is
|
|
@@ -100275,7 +100146,8 @@ var DROP_BINDINGS_MIGRATION_FLAG_ID = "pipeline-orchestrator/2026-11-03-drop-bin
|
|
|
100275
100146
|
var NODE_BINDINGS_TO_NODE_ROWS_ID = "pipeline-orchestrator/2026-11-03-node-bindings-to-node-rows";
|
|
100276
100147
|
var AGENT_SETTINGS_TO_NODE_ROWS_ID = "pipeline-orchestrator/2026-11-03-agent-settings-to-node-rows";
|
|
100277
100148
|
var CAMERA_SETTINGS_TO_DEVICE_ROWS_ID = "pipeline-orchestrator/2026-11-03-camera-settings-to-device-rows";
|
|
100278
|
-
|
|
100149
|
+
var DROP_MOVED_MAPS_ID = "pipeline-orchestrator/2026-11-11-drop-moved-maps";
|
|
100150
|
+
/** The three id-keyed maps the movers copied into rows; nothing reads them. */
|
|
100279
100151
|
var NODE_BINDINGS_FIELD = "nodeBindings";
|
|
100280
100152
|
var AGENT_SETTINGS_FIELD = "agentSettings";
|
|
100281
100153
|
var CAMERA_SETTINGS_FIELD = "cameraSettings";
|
|
@@ -100357,6 +100229,30 @@ var ADDON_MIGRATIONS = [
|
|
|
100357
100229
|
fixtureMark: "a step toggle and a step setting of one camera"
|
|
100358
100230
|
},
|
|
100359
100231
|
plan: (ports) => planBlobToDeviceRows(PIPELINE_ORCHESTRATOR_ID, CAMERA_SETTINGS_FIELD, ports)
|
|
100232
|
+
},
|
|
100233
|
+
{
|
|
100234
|
+
meta: {
|
|
100235
|
+
id: DROP_MOVED_MAPS_ID,
|
|
100236
|
+
owner: PIPELINE_ORCHESTRATOR_ID,
|
|
100237
|
+
level: "addon-state",
|
|
100238
|
+
seq: 5,
|
|
100239
|
+
dependsOn: [
|
|
100240
|
+
NODE_BINDINGS_TO_NODE_ROWS_ID,
|
|
100241
|
+
AGENT_SETTINGS_TO_NODE_ROWS_ID,
|
|
100242
|
+
CAMERA_SETTINGS_TO_DEVICE_ROWS_ID
|
|
100243
|
+
],
|
|
100244
|
+
store: "settings",
|
|
100245
|
+
scope: "cluster",
|
|
100246
|
+
onFailure: "tolerate",
|
|
100247
|
+
bodyKind: "plan",
|
|
100248
|
+
description: "Delete the nodeBindings, agentSettings and cameraSettings maps once their rows are written",
|
|
100249
|
+
fixtureMark: "a marked field of each map, read back from the row its mover wrote"
|
|
100250
|
+
},
|
|
100251
|
+
plan: (ports) => planDropKeys(PIPELINE_ORCHESTRATOR_ID, [
|
|
100252
|
+
NODE_BINDINGS_FIELD,
|
|
100253
|
+
AGENT_SETTINGS_FIELD,
|
|
100254
|
+
CAMERA_SETTINGS_FIELD
|
|
100255
|
+
], ports)
|
|
100360
100256
|
}
|
|
100361
100257
|
];
|
|
100362
100258
|
var orchestratorRecordKinds = defineRecordKinds({
|