@camstack/addon-model-studio 1.0.6 → 1.0.8

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 (16) hide show
  1. package/dist/{MotionZonesSettings-B8ishTpw.mjs → MotionZonesSettings-CxaT6RNw.mjs} +1 -1
  2. package/dist/{PrivacyMaskSettings-P06be0E2.mjs → PrivacyMaskSettings-DFIf92LX.mjs} +2 -2
  3. package/dist/_stub.js +166 -16
  4. package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-DBPjrt6E.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-Df7bWXWY.mjs} +4 -4
  5. package/dist/_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-GnB4e4nr.mjs +26 -0
  6. package/dist/{_virtual_mf___mfe_internal__addon_model_studio_page__loadShare__react_mf_2_dom__loadShare__.js-Dh0QbaoP.mjs → _virtual_mf___mfe_internal__addon_model_studio_page__loadShare__react_mf_2_dom__loadShare__.js-C8Ar0nzL.mjs} +7 -8
  7. package/dist/addon-model-studio.css +1 -1
  8. package/dist/{hostInit-KAAsyb1E.mjs → hostInit-DwPSkEWE.mjs} +3 -3
  9. package/dist/model-studio.addon.js +99 -24
  10. package/dist/model-studio.addon.mjs +99 -24
  11. package/dist/{player-overlays-CeF0YjKF.mjs → player-overlays-BWT6XlBa.mjs} +1 -1
  12. package/dist/remoteEntry.js +1 -1
  13. package/dist/{trash-2-Ct7_ZXVk.mjs → trash-2-gN_j7tTg.mjs} +1 -1
  14. package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-DZsV52ti.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-BpayjjIF.mjs} +1 -1
  15. package/package.json +1 -1
  16. package/dist/_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-cUKFrqHE.mjs +0 -26
@@ -4661,7 +4661,7 @@ function _instanceof(cls, params = {}) {
4661
4661
  return inst;
4662
4662
  }
4663
4663
  //#endregion
4664
- //#region ../types/dist/sleep-NOH4yRwj.mjs
4664
+ //#region ../types/dist/sleep-DVmKHFGi.mjs
4665
4665
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4666
4666
  EventCategory["SystemBoot"] = "system.boot";
4667
4667
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -6461,6 +6461,17 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
6461
6461
  DeviceRole["HumiditySensor"] = "humidity-sensor";
6462
6462
  DeviceRole["AmbientLightSensor"] = "ambient-light-sensor";
6463
6463
  DeviceRole["PressureSensor"] = "pressure-sensor";
6464
+ /** Wind speed or direction (weather-station `wind-sensor` cap). */
6465
+ DeviceRole["WindSensor"] = "wind-sensor";
6466
+ /** Rain accumulation or rate (weather-station `rain-sensor` cap). */
6467
+ DeviceRole["RainSensor"] = "rain-sensor";
6468
+ /** UV index (weather-station `uv-sensor` cap). */
6469
+ DeviceRole["UvSensor"] = "uv-sensor";
6470
+ /** Solar irradiance W/m² (weather-station `solar-radiation-sensor` cap).
6471
+ * Distinct from AmbientLightSensor (lux). */
6472
+ DeviceRole["SolarRadiationSensor"] = "solar-radiation-sensor";
6473
+ /** Soil moisture % (garden/weather `soil-moisture-sensor` cap). */
6474
+ DeviceRole["SoilMoistureSensor"] = "soil-moisture-sensor";
6464
6475
  DeviceRole["PowerSensor"] = "power-sensor";
6465
6476
  DeviceRole["EnergySensor"] = "energy-sensor";
6466
6477
  DeviceRole["VoltageSensor"] = "voltage-sensor";
@@ -9010,18 +9021,47 @@ object({
9010
9021
  lastUpdated: number().nullable()
9011
9022
  });
9012
9023
  DeviceType.Image;
9024
+ /**
9025
+ * Robotic lawn-mower cap. Models HA `lawn_mower.*` entities — anything
9026
+ * with a mowing lifecycle plus a dock action.
9027
+ *
9028
+ * Activity follows HA's canonical lawn-mower lifecycle: `idle` /
9029
+ * `mowing` / `paused` / `docked` / `error`. `batteryLevel` (0..100) is
9030
+ * nullable — some mowers don't report a battery percentage.
9031
+ *
9032
+ * `startMowing` begins a mowing run, `pause` halts it in place, and
9033
+ * `dock` sends the mower back to its charging station.
9034
+ */
9035
+ var LawnMowerActivitySchema = _enum([
9036
+ "idle",
9037
+ "mowing",
9038
+ "paused",
9039
+ "docked",
9040
+ "error"
9041
+ ]);
9042
+ /** Severity of the current device/error code — info (status), warning, error. */
9043
+ var DeviceCodeSeveritySchema = _enum([
9044
+ "info",
9045
+ "warning",
9046
+ "error"
9047
+ ]);
9013
9048
  object({
9014
9049
  /** Lifecycle activity of the mower. */
9015
- activity: _enum([
9016
- "idle",
9017
- "mowing",
9018
- "paused",
9019
- "docked",
9020
- "error"
9021
- ]),
9050
+ activity: LawnMowerActivitySchema,
9022
9051
  /** 0..100 battery percentage. Null when the device has no battery
9023
9052
  * reading. */
9024
9053
  batteryLevel: number().min(0).max(100).nullable(),
9054
+ /** 0..100 mowing-completion percentage of the current task, or null when no
9055
+ * task is active / progress is unavailable. */
9056
+ progressPercent: number().min(0).max(100).nullable(),
9057
+ /** Current device/event code (dynamic — mostly status, sometimes an error),
9058
+ * or null when unknown. */
9059
+ currentCode: number().nullable(),
9060
+ /** Human label for {@link currentCode}, or null when undecodable. */
9061
+ currentCodeLabel: string().nullable(),
9062
+ /** Severity of {@link currentCode}. `error` (and often `warning`) warrants UI
9063
+ * attention; `info` is normal status. */
9064
+ severity: DeviceCodeSeveritySchema,
9025
9065
  /** Ms epoch when the slice was last updated. */
9026
9066
  lastChangedAt: number()
9027
9067
  });
@@ -10596,6 +10636,7 @@ var VacuumStateSchema = _enum([
10596
10636
  "paused",
10597
10637
  "returning",
10598
10638
  "docked",
10639
+ "drying",
10599
10640
  "error"
10600
10641
  ]);
10601
10642
  /**
@@ -10634,6 +10675,12 @@ object({
10634
10675
  detergent: TankStatusSchema.nullable(),
10635
10676
  /** Dust bin. Null when the hardware has no dust bin. */
10636
10677
  dustBin: TankStatusSchema.nullable(),
10678
+ /** 0..100 cleaning-completion percentage of the current task, or null. */
10679
+ progressPercent: number().min(0).max(100).nullable(),
10680
+ /** Current error code (0 / null = no error). */
10681
+ errorCode: number().nullable(),
10682
+ /** Human label for {@link errorCode}, or null when none / undecodable. */
10683
+ errorLabel: string().nullable(),
10637
10684
  /** Ms epoch when the slice was last updated. */
10638
10685
  lastChangedAt: number()
10639
10686
  });
@@ -12096,17 +12143,32 @@ var ReleaseInputSchema = object({
12096
12143
  * the parent cascades into every accessory. */
12097
12144
  camDeviceId: number().int().nonnegative()
12098
12145
  });
12099
- var ResyncInputSchema = object({
12100
- /** Parent CamStack device id of an adopted device. The provider resolves its
12101
- * source (integration/broker + native id) and re-aligns the device's
12102
- * structural spec (type/role/capabilities/units) with the live mapping,
12103
- * rebuilding any child whose class changed while preserving operator edits. */
12104
- camDeviceId: number().int().nonnegative() });
12146
+ var ResyncInputSchema = object({
12147
+ /** Parent CamStack device id of an adopted device. The provider resolves its
12148
+ * source (integration/broker + native id) and re-aligns the device's
12149
+ * structural spec (type/role/capabilities/units) with the live mapping,
12150
+ * rebuilding any child whose class changed while preserving operator edits. */
12151
+ camDeviceId: number().int().nonnegative(),
12152
+ /** "Resync from zero" (#19). When true, the kernel PURGES every accessory
12153
+ * child of `camDeviceId` BEFORE the provider re-derives the device, so the
12154
+ * children are rebuilt fresh from source — correct names, coords, and units —
12155
+ * instead of being preserved by the incremental reconcile. Use to recover from
12156
+ * legacy generic/placeholder names that the normal name-precedence keeps frozen
12157
+ * (the operator's explicit reset). Push-driven integrations (no-op resync)
12158
+ * rebuild on their next snapshot; pull/command integrations rebuild in `resync`.
12159
+ * Operator edits on the PARENT (its name, layout, primary-child pick) survive —
12160
+ * only the children are torn down. Omitted/false ⇒ the normal incremental
12161
+ * re-sync that preserves children. */
12162
+ resetToSource: boolean().optional()
12163
+ });
12105
12164
  var ResyncResultSchema = object({
12106
12165
  /** True when the persisted spec actually changed (children may have been rebuilt). */
12107
12166
  changed: boolean(),
12108
12167
  /** Number of child devices rebuilt into a new class by this re-sync. */
12109
- rebuiltChildren: number().int().nonnegative()
12168
+ rebuiltChildren: number().int().nonnegative(),
12169
+ /** Number of accessory children torn down by a `resetToSource` purge before the
12170
+ * provider re-derived the device. 0/absent for a normal incremental re-sync. */
12171
+ removedChildren: number().int().nonnegative().optional()
12110
12172
  });
12111
12173
  method(object({ integrationId: string() }), object({ filters: array(AdoptionFilterSchema) }), { auth: "admin" }), method(ListCandidatesInputSchema, ListCandidatesOutputSchema, { auth: "admin" }), method(GetCandidateInputSchema, DiscoveredChildDeviceSchema.nullable(), { auth: "admin" }), method(object({ integrationId: string() }), AdoptionStatusSchema, {
12112
12174
  kind: "mutation",
@@ -13823,6 +13885,11 @@ var DeviceMetaSchema = object({
13823
13885
  addonId: string(),
13824
13886
  type: string(),
13825
13887
  name: string(),
13888
+ /** True once an operator explicitly renamed the device via `setName`. Drives
13889
+ * reconcile name-precedence (preserve operator name vs adopt fresh provider
13890
+ * name). Absent ⇒ treated as user-named (PRESERVE) for legacy rows. See
13891
+ * `DeviceMeta.userNamed`. */
13892
+ userNamed: boolean().optional(),
13826
13893
  location: string().nullable(),
13827
13894
  disabled: boolean(),
13828
13895
  parentDeviceId: number().nullable(),
@@ -14133,6 +14200,9 @@ method(object({
14133
14200
  }), method(ReleaseInputSchema.extend({ addonId: string() }), _void(), {
14134
14201
  kind: "mutation",
14135
14202
  auth: "admin"
14203
+ }), method(ResyncInputSchema, ResyncResultSchema, {
14204
+ kind: "mutation",
14205
+ auth: "admin"
14136
14206
  }), method(object({
14137
14207
  deviceId: number(),
14138
14208
  key: string(),
@@ -17895,6 +17965,12 @@ Object.freeze({
17895
17965
  addonId: null,
17896
17966
  access: "create"
17897
17967
  },
17968
+ "deviceManager.adoptionResync": {
17969
+ capName: "device-manager",
17970
+ capScope: "system",
17971
+ addonId: null,
17972
+ access: "create"
17973
+ },
17898
17974
  "deviceManager.allocateDeviceId": {
17899
17975
  capName: "device-manager",
17900
17976
  capScope: "system",
@@ -21313,7 +21389,7 @@ async function recommendConvertNode(input, deps) {
21313
21389
  reason: verdict.reason,
21314
21390
  supported: verdict.ok
21315
21391
  };
21316
- }))).sort((a, b) => Number(b.supported) - Number(a.supported));
21392
+ }))).toSorted((a, b) => Number(b.supported) - Number(a.supported));
21317
21393
  }
21318
21394
  async function convertModel(input, deps) {
21319
21395
  let nodeId = input.targetNodeId;
@@ -21348,7 +21424,7 @@ var ConvertProgressSchema = object({
21348
21424
  var ConvertResultLineSchema = object({ result: object({ artifacts: array(ConvertArtifactSchema) }) });
21349
21425
  function buildEntry(metadata, artifacts) {
21350
21426
  const formats = {};
21351
- const bestOv = artifacts.filter((a) => a.format === "openvino").sort((a, b) => {
21427
+ const bestOv = artifacts.filter((a) => a.format === "openvino").toSorted((a, b) => {
21352
21428
  if (a.precision === "int8") return -1;
21353
21429
  if (b.precision === "int8") return 1;
21354
21430
  return 0;
@@ -21498,36 +21574,35 @@ var ModelStudioAddon = class extends BaseAddon {
21498
21574
  super({});
21499
21575
  }
21500
21576
  makeConvertDeps() {
21501
- const self = this;
21502
21577
  return {
21503
- modelsDir: () => self.resolveModelsDir(),
21578
+ modelsDir: () => this.resolveModelsDir(),
21504
21579
  pythonPath: async () => {
21505
- const py = await self.ctx.deps.ensurePython();
21580
+ const py = await this.ctx.deps.ensurePython();
21506
21581
  if (py === null) throw new Error("model-convert: Python runtime unavailable on this node");
21507
21582
  return py;
21508
21583
  },
21509
21584
  ensureRequirements: async () => {
21510
21585
  const pythonDir = resolveAddonPythonDir();
21511
- await self.ctx.deps.installPythonRequirements(node_path.default.join(pythonDir, "requirements.txt"));
21586
+ await this.ctx.deps.installPythonRequirements(node_path.default.join(pythonDir, "requirements.txt"));
21512
21587
  },
21513
21588
  downloadOnnx: async (url, destDir, modelId) => {
21514
21589
  const filename = `camstack-${modelId}.onnx`;
21515
21590
  return downloadFile(url, node_path.default.join(destDir, filename));
21516
21591
  },
21517
21592
  writeJob: async (job) => {
21518
- const tmpDir = self.ctx.dataDir ?? node_os.default.tmpdir();
21593
+ const tmpDir = this.ctx.dataDir ?? node_os.default.tmpdir();
21519
21594
  const jobPath = node_path.default.join(tmpDir, `model-convert-job-${node_crypto.default.randomUUID()}.json`);
21520
21595
  await node_fs.default.promises.writeFile(jobPath, JSON.stringify(job), "utf8");
21521
21596
  return jobPath;
21522
21597
  },
21523
21598
  runConvert: spawnRunConvert,
21524
21599
  onProgress: (p, sessionId) => {
21525
- self.ctx.eventBus.emit({
21600
+ this.ctx.eventBus.emit({
21526
21601
  id: node_crypto.default.randomUUID(),
21527
21602
  timestamp: /* @__PURE__ */ new Date(),
21528
21603
  source: {
21529
21604
  type: "addon",
21530
- id: self.id
21605
+ id: this.id
21531
21606
  },
21532
21607
  category: EventCategory.ModelConvertProgress,
21533
21608
  data: {
@@ -4638,7 +4638,7 @@ function _instanceof(cls, params = {}) {
4638
4638
  return inst;
4639
4639
  }
4640
4640
  //#endregion
4641
- //#region ../types/dist/sleep-NOH4yRwj.mjs
4641
+ //#region ../types/dist/sleep-DVmKHFGi.mjs
4642
4642
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4643
4643
  EventCategory["SystemBoot"] = "system.boot";
4644
4644
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -6438,6 +6438,17 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
6438
6438
  DeviceRole["HumiditySensor"] = "humidity-sensor";
6439
6439
  DeviceRole["AmbientLightSensor"] = "ambient-light-sensor";
6440
6440
  DeviceRole["PressureSensor"] = "pressure-sensor";
6441
+ /** Wind speed or direction (weather-station `wind-sensor` cap). */
6442
+ DeviceRole["WindSensor"] = "wind-sensor";
6443
+ /** Rain accumulation or rate (weather-station `rain-sensor` cap). */
6444
+ DeviceRole["RainSensor"] = "rain-sensor";
6445
+ /** UV index (weather-station `uv-sensor` cap). */
6446
+ DeviceRole["UvSensor"] = "uv-sensor";
6447
+ /** Solar irradiance W/m² (weather-station `solar-radiation-sensor` cap).
6448
+ * Distinct from AmbientLightSensor (lux). */
6449
+ DeviceRole["SolarRadiationSensor"] = "solar-radiation-sensor";
6450
+ /** Soil moisture % (garden/weather `soil-moisture-sensor` cap). */
6451
+ DeviceRole["SoilMoistureSensor"] = "soil-moisture-sensor";
6441
6452
  DeviceRole["PowerSensor"] = "power-sensor";
6442
6453
  DeviceRole["EnergySensor"] = "energy-sensor";
6443
6454
  DeviceRole["VoltageSensor"] = "voltage-sensor";
@@ -8987,18 +8998,47 @@ object({
8987
8998
  lastUpdated: number().nullable()
8988
8999
  });
8989
9000
  DeviceType.Image;
9001
+ /**
9002
+ * Robotic lawn-mower cap. Models HA `lawn_mower.*` entities — anything
9003
+ * with a mowing lifecycle plus a dock action.
9004
+ *
9005
+ * Activity follows HA's canonical lawn-mower lifecycle: `idle` /
9006
+ * `mowing` / `paused` / `docked` / `error`. `batteryLevel` (0..100) is
9007
+ * nullable — some mowers don't report a battery percentage.
9008
+ *
9009
+ * `startMowing` begins a mowing run, `pause` halts it in place, and
9010
+ * `dock` sends the mower back to its charging station.
9011
+ */
9012
+ var LawnMowerActivitySchema = _enum([
9013
+ "idle",
9014
+ "mowing",
9015
+ "paused",
9016
+ "docked",
9017
+ "error"
9018
+ ]);
9019
+ /** Severity of the current device/error code — info (status), warning, error. */
9020
+ var DeviceCodeSeveritySchema = _enum([
9021
+ "info",
9022
+ "warning",
9023
+ "error"
9024
+ ]);
8990
9025
  object({
8991
9026
  /** Lifecycle activity of the mower. */
8992
- activity: _enum([
8993
- "idle",
8994
- "mowing",
8995
- "paused",
8996
- "docked",
8997
- "error"
8998
- ]),
9027
+ activity: LawnMowerActivitySchema,
8999
9028
  /** 0..100 battery percentage. Null when the device has no battery
9000
9029
  * reading. */
9001
9030
  batteryLevel: number().min(0).max(100).nullable(),
9031
+ /** 0..100 mowing-completion percentage of the current task, or null when no
9032
+ * task is active / progress is unavailable. */
9033
+ progressPercent: number().min(0).max(100).nullable(),
9034
+ /** Current device/event code (dynamic — mostly status, sometimes an error),
9035
+ * or null when unknown. */
9036
+ currentCode: number().nullable(),
9037
+ /** Human label for {@link currentCode}, or null when undecodable. */
9038
+ currentCodeLabel: string().nullable(),
9039
+ /** Severity of {@link currentCode}. `error` (and often `warning`) warrants UI
9040
+ * attention; `info` is normal status. */
9041
+ severity: DeviceCodeSeveritySchema,
9002
9042
  /** Ms epoch when the slice was last updated. */
9003
9043
  lastChangedAt: number()
9004
9044
  });
@@ -10573,6 +10613,7 @@ var VacuumStateSchema = _enum([
10573
10613
  "paused",
10574
10614
  "returning",
10575
10615
  "docked",
10616
+ "drying",
10576
10617
  "error"
10577
10618
  ]);
10578
10619
  /**
@@ -10611,6 +10652,12 @@ object({
10611
10652
  detergent: TankStatusSchema.nullable(),
10612
10653
  /** Dust bin. Null when the hardware has no dust bin. */
10613
10654
  dustBin: TankStatusSchema.nullable(),
10655
+ /** 0..100 cleaning-completion percentage of the current task, or null. */
10656
+ progressPercent: number().min(0).max(100).nullable(),
10657
+ /** Current error code (0 / null = no error). */
10658
+ errorCode: number().nullable(),
10659
+ /** Human label for {@link errorCode}, or null when none / undecodable. */
10660
+ errorLabel: string().nullable(),
10614
10661
  /** Ms epoch when the slice was last updated. */
10615
10662
  lastChangedAt: number()
10616
10663
  });
@@ -12073,17 +12120,32 @@ var ReleaseInputSchema = object({
12073
12120
  * the parent cascades into every accessory. */
12074
12121
  camDeviceId: number().int().nonnegative()
12075
12122
  });
12076
- var ResyncInputSchema = object({
12077
- /** Parent CamStack device id of an adopted device. The provider resolves its
12078
- * source (integration/broker + native id) and re-aligns the device's
12079
- * structural spec (type/role/capabilities/units) with the live mapping,
12080
- * rebuilding any child whose class changed while preserving operator edits. */
12081
- camDeviceId: number().int().nonnegative() });
12123
+ var ResyncInputSchema = object({
12124
+ /** Parent CamStack device id of an adopted device. The provider resolves its
12125
+ * source (integration/broker + native id) and re-aligns the device's
12126
+ * structural spec (type/role/capabilities/units) with the live mapping,
12127
+ * rebuilding any child whose class changed while preserving operator edits. */
12128
+ camDeviceId: number().int().nonnegative(),
12129
+ /** "Resync from zero" (#19). When true, the kernel PURGES every accessory
12130
+ * child of `camDeviceId` BEFORE the provider re-derives the device, so the
12131
+ * children are rebuilt fresh from source — correct names, coords, and units —
12132
+ * instead of being preserved by the incremental reconcile. Use to recover from
12133
+ * legacy generic/placeholder names that the normal name-precedence keeps frozen
12134
+ * (the operator's explicit reset). Push-driven integrations (no-op resync)
12135
+ * rebuild on their next snapshot; pull/command integrations rebuild in `resync`.
12136
+ * Operator edits on the PARENT (its name, layout, primary-child pick) survive —
12137
+ * only the children are torn down. Omitted/false ⇒ the normal incremental
12138
+ * re-sync that preserves children. */
12139
+ resetToSource: boolean().optional()
12140
+ });
12082
12141
  var ResyncResultSchema = object({
12083
12142
  /** True when the persisted spec actually changed (children may have been rebuilt). */
12084
12143
  changed: boolean(),
12085
12144
  /** Number of child devices rebuilt into a new class by this re-sync. */
12086
- rebuiltChildren: number().int().nonnegative()
12145
+ rebuiltChildren: number().int().nonnegative(),
12146
+ /** Number of accessory children torn down by a `resetToSource` purge before the
12147
+ * provider re-derived the device. 0/absent for a normal incremental re-sync. */
12148
+ removedChildren: number().int().nonnegative().optional()
12087
12149
  });
12088
12150
  method(object({ integrationId: string() }), object({ filters: array(AdoptionFilterSchema) }), { auth: "admin" }), method(ListCandidatesInputSchema, ListCandidatesOutputSchema, { auth: "admin" }), method(GetCandidateInputSchema, DiscoveredChildDeviceSchema.nullable(), { auth: "admin" }), method(object({ integrationId: string() }), AdoptionStatusSchema, {
12089
12151
  kind: "mutation",
@@ -13800,6 +13862,11 @@ var DeviceMetaSchema = object({
13800
13862
  addonId: string(),
13801
13863
  type: string(),
13802
13864
  name: string(),
13865
+ /** True once an operator explicitly renamed the device via `setName`. Drives
13866
+ * reconcile name-precedence (preserve operator name vs adopt fresh provider
13867
+ * name). Absent ⇒ treated as user-named (PRESERVE) for legacy rows. See
13868
+ * `DeviceMeta.userNamed`. */
13869
+ userNamed: boolean().optional(),
13803
13870
  location: string().nullable(),
13804
13871
  disabled: boolean(),
13805
13872
  parentDeviceId: number().nullable(),
@@ -14110,6 +14177,9 @@ method(object({
14110
14177
  }), method(ReleaseInputSchema.extend({ addonId: string() }), _void(), {
14111
14178
  kind: "mutation",
14112
14179
  auth: "admin"
14180
+ }), method(ResyncInputSchema, ResyncResultSchema, {
14181
+ kind: "mutation",
14182
+ auth: "admin"
14113
14183
  }), method(object({
14114
14184
  deviceId: number(),
14115
14185
  key: string(),
@@ -17872,6 +17942,12 @@ Object.freeze({
17872
17942
  addonId: null,
17873
17943
  access: "create"
17874
17944
  },
17945
+ "deviceManager.adoptionResync": {
17946
+ capName: "device-manager",
17947
+ capScope: "system",
17948
+ addonId: null,
17949
+ access: "create"
17950
+ },
17875
17951
  "deviceManager.allocateDeviceId": {
17876
17952
  capName: "device-manager",
17877
17953
  capScope: "system",
@@ -21290,7 +21366,7 @@ async function recommendConvertNode(input, deps) {
21290
21366
  reason: verdict.reason,
21291
21367
  supported: verdict.ok
21292
21368
  };
21293
- }))).sort((a, b) => Number(b.supported) - Number(a.supported));
21369
+ }))).toSorted((a, b) => Number(b.supported) - Number(a.supported));
21294
21370
  }
21295
21371
  async function convertModel(input, deps) {
21296
21372
  let nodeId = input.targetNodeId;
@@ -21325,7 +21401,7 @@ var ConvertProgressSchema = object({
21325
21401
  var ConvertResultLineSchema = object({ result: object({ artifacts: array(ConvertArtifactSchema) }) });
21326
21402
  function buildEntry(metadata, artifacts) {
21327
21403
  const formats = {};
21328
- const bestOv = artifacts.filter((a) => a.format === "openvino").sort((a, b) => {
21404
+ const bestOv = artifacts.filter((a) => a.format === "openvino").toSorted((a, b) => {
21329
21405
  if (a.precision === "int8") return -1;
21330
21406
  if (b.precision === "int8") return 1;
21331
21407
  return 0;
@@ -21475,36 +21551,35 @@ var ModelStudioAddon = class extends BaseAddon {
21475
21551
  super({});
21476
21552
  }
21477
21553
  makeConvertDeps() {
21478
- const self = this;
21479
21554
  return {
21480
- modelsDir: () => self.resolveModelsDir(),
21555
+ modelsDir: () => this.resolveModelsDir(),
21481
21556
  pythonPath: async () => {
21482
- const py = await self.ctx.deps.ensurePython();
21557
+ const py = await this.ctx.deps.ensurePython();
21483
21558
  if (py === null) throw new Error("model-convert: Python runtime unavailable on this node");
21484
21559
  return py;
21485
21560
  },
21486
21561
  ensureRequirements: async () => {
21487
21562
  const pythonDir = resolveAddonPythonDir();
21488
- await self.ctx.deps.installPythonRequirements(path.join(pythonDir, "requirements.txt"));
21563
+ await this.ctx.deps.installPythonRequirements(path.join(pythonDir, "requirements.txt"));
21489
21564
  },
21490
21565
  downloadOnnx: async (url, destDir, modelId) => {
21491
21566
  const filename = `camstack-${modelId}.onnx`;
21492
21567
  return downloadFile(url, path.join(destDir, filename));
21493
21568
  },
21494
21569
  writeJob: async (job) => {
21495
- const tmpDir = self.ctx.dataDir ?? os.tmpdir();
21570
+ const tmpDir = this.ctx.dataDir ?? os.tmpdir();
21496
21571
  const jobPath = path.join(tmpDir, `model-convert-job-${crypto$1.randomUUID()}.json`);
21497
21572
  await fs.promises.writeFile(jobPath, JSON.stringify(job), "utf8");
21498
21573
  return jobPath;
21499
21574
  },
21500
21575
  runConvert: spawnRunConvert,
21501
21576
  onProgress: (p, sessionId) => {
21502
- self.ctx.eventBus.emit({
21577
+ this.ctx.eventBus.emit({
21503
21578
  id: crypto$1.randomUUID(),
21504
21579
  timestamp: /* @__PURE__ */ new Date(),
21505
21580
  source: {
21506
21581
  type: "addon",
21507
- id: self.id
21582
+ id: this.id
21508
21583
  },
21509
21584
  category: EventCategory.ModelConvertProgress,
21510
21585
  data: {
@@ -1,6 +1,6 @@
1
1
  import { c as e, g as t, h as n, l as r, n as i, p as a, r as o, t as s, u as c, y as l } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare__react__loadShare__.js-DJDHChgO.mjs";
2
2
  import { n as u, r as d, t as f } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-ds_Ehzaa.mjs";
3
- import { c as p } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-cUKFrqHE.mjs";
3
+ import { c as p } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-GnB4e4nr.mjs";
4
4
  //#region ../ui-library/src/lib/cap-error.ts
5
5
  function m(e) {
6
6
  if (typeof e != "object" || !e) return null;
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-DZsV52ti.mjs";
1
+ import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-BpayjjIF.mjs";
2
2
  export { t as get, e as init };
@@ -1,4 +1,4 @@
1
- import { s as e } from "./player-overlays-CeF0YjKF.mjs";
1
+ import { s as e } from "./player-overlays-BWT6XlBa.mjs";
2
2
  var t = e("eye-off", [
3
3
  ["path", {
4
4
  d: "M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",
@@ -2753,7 +2753,7 @@ async function rr(e) {
2753
2753
  }
2754
2754
  }
2755
2755
  async function ir() {
2756
- return tr ||= rr(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-DBPjrt6E.mjs")).catch((e) => {
2756
+ return tr ||= rr(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-Df7bWXWY.mjs")).catch((e) => {
2757
2757
  throw tr = void 0, e;
2758
2758
  }), tr;
2759
2759
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-model-studio",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "Custom detection model registry, conversion & distribution for CamStack",
5
5
  "keywords": [
6
6
  "camstack",
@@ -1,26 +0,0 @@
1
- //#region \0virtual:mf:__mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js
2
- var e = "__mf_init__virtual:mf:__mfe_internal__addon_model_studio_page__mf_v__runtimeInit__mf_v__.js__", t = globalThis[e];
3
- if (!t) {
4
- let n, r, i = new Promise((e, t) => {
5
- n = e, r = t;
6
- });
7
- t = globalThis[e] = {
8
- initPromise: i,
9
- initResolve: n,
10
- initReject: r
11
- };
12
- }
13
- var n = t.initPromise, r = "__mf_module_cache__";
14
- globalThis[r] ||= {
15
- share: {},
16
- remote: {}
17
- }, globalThis[r].share ||= {}, globalThis[r].remote ||= {};
18
- var i = globalThis[r], a, o, s, c, l, u, d, f, p = (e) => {
19
- e.ACCESSORY_LABEL, a = e.ALL_CAPABILITY_DEFINITIONS, e.APPLE_SA_TO_MACRO, e.AUDIO_BACKEND_CHOICES, e.AUDIO_MACRO_LABELS, e.AccessoriesStatusSchema, e.AccessoryKind, e.AddBrokerInputSchema, e.AddonAutoUpdateSchema, e.AddonListItemSchema, e.AddonPageDeclarationSchema, e.AddonPageInfoSchema, e.AdoptionAdoptInputSchema, e.AdoptionAdoptResultSchema, e.AdoptionFilterSchema, e.AdoptionGetCandidateInputSchema, e.AdoptionListCandidatesInputSchema, e.AdoptionListCandidatesOutputSchema, e.AdoptionReleaseInputSchema, e.AdoptionStatusSchema, e.AgentLoadSummarySchema, e.AirQualitySensorStatusSchema, e.AlarmArmModeSchema, e.AlarmPanelStatusSchema, e.AlarmStateSchema, e.AlertSchema, e.AlertSeveritySchema, e.AlertSourceSchema, e.AlertStatusSchema, e.AmbientLightSensorStatusSchema, e.ApiKeyRecordSchema, e.ApiKeySummarySchema, e.ArchiveEntrySchema, e.ArchiveManifestSchema, e.AudioAnalysisResultSchema, e.AudioAnalysisSettingsSchema, e.AudioChunkInputSchema, e.AudioClassSummarySchema, e.AudioClassificationLabelSchema, e.AudioClassificationResultSchema, e.AudioCodecInfoSchema, e.AudioDecodeSessionConfigSchema, e.AudioEncodeSchema, e.AudioEncodeSessionConfigSchema, e.AudioEncodedChunkSchema, e.AudioEventSchema, e.AudioLevelSchema, e.AudioMetricsHistoryPointSchema, e.AudioMetricsHistorySchema, e.AudioMetricsSnapshotSchema, e.AudioPcmChunkSchema, e.AuthResultSchema, e.AutoUpdateSettingsSchema, e.AutomationControlStatusSchema, e.AvailableIntegrationTypeSchema, e.BACKEND_TO_FORMAT, e.BATTERY_DEVICE_PROFILE, e.BackupDestinationInfoSchema, e.BackupEntrySchema, e.BaseAddon, e.BaseDevice, e.BaseDeviceProvider, e.BatteryStatusSchema, e.BinaryStatusSchema, e.BoundingBoxSchema, e.BrightnessStatusSchema, e.BrokerAddInputSchema, e.BrokerAudioClientSchema, e.BrokerClientsSchema, e.BrokerConnectionDetailsSchema, e.BrokerConsumerAttributionSchema, e.BrokerConsumerKindSchema, e.BrokerDecodedClientSchema, e.BrokerEncodedClientSchema, e.BrokerGetStateInputSchema, e.BrokerInfoSchema, e.BrokerProviderInfoSchema, e.BrokerPublishInputSchema, e.BrokerRegistryStatusSchema, e.BrokerRtspClientSchema, e.BrokerStatsSchema, e.BrokerStatusEnum, e.BrokerStatusSchema, e.BrokerSubscribeInputSchema, e.BrokerSubscribeResultSchema, e.BrokerTestConnectionResultSchema, e.BrokerUnsubscribeInputSchema, e.CAM_PROFILE_ORDER, e.CAPABILITY_NAMES, e.CAPABILITY_ROUTER_KEYS, e.CAP_NAMES_WITH_STATUS, e.CAP_NODE_PIN_CONTEXT_KEY, e.CAP_PROVIDER_KIND_MAP, e.COCO_80_LABELS, e.COCO_TO_MACRO, e.CamProfileSchema, e.CamStreamDescriptorSchema, e.CamStreamKindSchema, e.CamStreamResolutionSchema, e.CameraAssignmentStatusSchema, e.CameraAudioStatusSchema, e.CameraBrokerProfileSchema, e.CameraBrokerStatusSchema, e.CameraCredentialsSchema, e.CameraCredentialsStatusSchema, e.CameraDecoderShmSchema, e.CameraDecoderStatusSchema, e.CameraDetectionPhaseSchema, e.CameraDetectionProvisioningSchema, e.CameraDetectionProvisioningStateSchema, e.CameraDetectionStatusSchema, e.CameraMetricsSchema, e.CameraMetricsWithDeviceIdSchema, e.CameraMotionStatusSchema, e.CameraRecordingModeSchema, e.CameraRecordingStatusSchema, e.CameraSourceStatusSchema, e.CameraSourceStreamSchema, e.CameraStatusSchema, e.CameraStreamSchema, e.CandidateQueryFilterSchema, e.CapScopeSchema, e.CapabilityBindingsSchema, e.CarbonMonoxideStatusSchema, e.ChargingStatus, e.ClientNetworkStatsSchema, e.ClimateControlStatusSchema, e.ClipPlaybackSchema, e.ClipSchema, e.ClusterAddonNodeDeploymentSchema, e.ClusterAddonStatusEntrySchema, e.CollectionColumnSchema, e.CollectionIndexSchema, e.ColorStatusSchema, e.ConfigEntrySchema, e.ConfigSectionWithValuesSchema, e.ConfigTabDeclarationSchema, e.ConnectivityStatusSchema, e.ConsumableItemSchema, e.ConsumablesStatusSchema, e.ContactStatusSchema, e.ControlKindSchema, e.ControlStatusSchema, e.ConvertArtifactSchema, e.ConvertResultSchema, e.ConvertTargetSchema, e.CoverStateSchema, e.CoverStatusSchema, e.CreateApiKeyInputSchema, e.CreateApiKeyResultSchema, e.CreateIntegrationInputSchema, e.CreateScopedTokenInputSchema, e.CreateScopedTokenResultSchema, e.CreateUserInputSchema, e.CustomActionInputSchema, e.CustomModelDescriptorSchema, e.DATAPLANE_SECRET_HEADER, e.DEFAULT_ADDON_PLACEMENT, e.DEFAULT_AUDIO_ANALYZER_CONFIG, e.DEFAULT_DECODER_HWACCEL_CONFIG, e.DEFAULT_FEATURES, e.DEFAULT_RETENTION, e.DEVICE_CAP_NAMES, e.DEVICE_PROFILES, e.DEVICE_SETTINGS_CONTRIBUTION_METHODS, e.DEVICE_STATUS_METHOD, e.DEVICE_TYPE_INFO, e.DecodedAudioChunkSchema, e.DecodedFrameSchema, e.DecoderAssignmentSchema, e.DecoderSessionConfigSchema, e.DecoderStatsSchema, e.DeleteIntegrationResultSchema, e.DetectionSourceSchema, e.DetectorOutputSchema, e.DeviceConfig, e.DeviceDiscoveryStatusSchema, e.DeviceExportExposeInputSchema, e.DeviceExportStatusSchema, e.DeviceExportUnexposeInputSchema, o = e.DeviceFeature, e.DeviceInfoSchema, e.DeviceNetworkStatsSchema, s = e.DeviceRole, e.DeviceRuntimeState, e.DeviceStatusSchema, c = e.DeviceType, e.DiscoveredChildDeviceSchema, e.DiscoveredChildStatusSchema, e.DiscoveredDeviceSchema, e.DisposerChain, e.DoorbellPressEventSchema, e.DoorbellStatusSchema, e.ElementConfigStore, e.EmbeddingInfoSchema, e.EmbeddingResultSchema, e.EncodeProfileSchema, e.EncodedPacketSchema, e.EnrichedWidgetMetadataSchema, e.EnumSensorDateTimeFormatSchema, e.EnumSensorStatusSchema, l = e.EventCategory, e.EventEmitterStatusSchema, e.EventFireSchema, e.EventItemSchema, e.EventKindSchema, e.EventSourceType, e.ExportSetupFieldSchema, e.ExportSetupSchema, u = e.ExposedDeviceSchema, e.ExposedResourceSchema, e.FanControlStatusSchema, e.FanDirectionSchema, e.FeatureManifestSchema, e.FeatureProbeStatusSchema, e.FloodStatusSchema, e.FrameHandleFormatSchema, e.FrameHandleSchema, e.FrameInputSchema, e.GasStatusSchema, e.GetStreamWithCodecInputSchema, e.GlobalMetricsSchema, e.HF_BASE_URL, e.HF_REPO, e.HWACCEL_OPTIONS, e.HealthStatusSchema, e.HistoryPointSchema, e.HistoryResolutionEnum, e.HumidifierStatusSchema, e.HumiditySensorStatusSchema, e.HvacModeSchema, e.ImageStatusSchema, e.InstalledPackageSchema, e.IntegrationLiteSchema, e.IntegrationWithStateSchema, e.IntercomAbilitySchema, e.IntercomStatusSchema, e.KNOWN_CAP_NAMES, e.LabelDefinitionSchema, e.LawnMowerActivitySchema, e.LawnMowerControlStatusSchema, e.LocateSegmentResultSchema, e.LocationStatSchema, e.LockControlStatusSchema, e.LockStateSchema, e.LogEntrySchema, e.LogLevelSchema, e.LogStreamEntrySchema, e.MACRO_LABELS, e.METHOD_ACCESS_MAP, e.MODEL_FORMATS, e.MaskGridDimsSchema, e.MaskGridShapeSchema, e.MaskLineShapeSchema, e.MaskPointSchema, e.MaskPolygonShapeSchema, e.MaskPolygonVerticesSchema, e.MaskRectShapeSchema, e.MaskShapeKindSchema, e.MaskShapeSchema, e.MediaFileSchema, e.MediaPlayerRepeatSchema, e.MediaPlayerStateSchema, e.MediaPlayerStatusSchema, e.MeshPeerSchema, e.MeshStatusSchema, e.MethodAccessSchema, e.ModelCatalogEntrySchema, e.ModelConvertInputSchema, e.ModelConvertMetadataSchema, e.ModelDistributeInputSchema, e.ModelDistributeResultSchema, e.ModelExtraFileSchema, e.ModelFormatEntrySchema, e.ModelFormatsSchema, e.MotionAnalysisResultSchema, e.MotionEventSchema, e.MotionOnMotionChangedDataSchema, e.MotionRegionSchema, e.MotionSourceEnum, e.MotionSourcesSchema, e.MotionStatusSchema, e.MotionTriggerRuntimeStateSchema, e.MotionTriggerStatusSchema, e.MotionZoneOptionsSchema, e.MotionZonePatchSchema, e.MotionZoneRegionSchema, e.MotionZoneStatusSchema, e.MqttBrokerStatusSchema, e.NativeDetectionSchema, e.NativeObjectClassEnum, e.NativeObjectDetectionRuntimeStateSchema, e.NativeObjectDetectionStatusSchema, e.NetworkAccessStatusSchema, e.NetworkAddressSchema, e.NetworkEndpointSchema, e.NotificationHistoryEntrySchema, e.NotificationRuleSchema, e.NotificationSchema, e.NotifierStatusSchema, e.NumericSensorStatusSchema, e.OauthIntegrationDescriptorSchema, e.ObjectEventSchema, e.OrchestratorMetricsSchema, e.OsdOverlayKindEnum, e.OsdOverlayPatchSchema, e.OsdOverlaySchema, e.OsdPositionEnum, e.OsdStatusSchema, e.PIPELINE_FLOW_CAPABILITY_NAMES, e.PIPELINE_OWNER_CAPABILITY_NAMES, e.PROVIDER_KIND_CAP_NAMES, e.PYTHON_SCRIPT, e.PackageUpdateSchema, e.PackageVersionInfoSchema, e.PasskeySummarySchema, e.PcmSampleFormatSchema, e.PerScopeBreakdownSchema, e.PickStreamPreferencesSchema, e.PickStreamRequirementsSchema, e.PickedCamStreamSchema, e.PipelineAssignmentSchema, e.PipelineDefaultStepSchema, e.PipelineEngineChoiceSchema, e.PipelineRunResultBridge, e.PipelineStepInputSchema, e.PlaceholderReasonSchema, e.PolygonPointSchema, e.PowerMeterStatusSchema, e.PresenceStatusSchema, e.PressureSensorStatusSchema, e.PrivacyMaskOptionsSchema, e.PrivacyMaskPatchSchema, e.PrivacyMaskRegionSchema, e.PrivacyMaskShapeSchema, e.PrivacyMaskStatusSchema, e.ProfileRtspEntrySchema, e.ProfileSlotSchema, e.ProfileSlotStatusSchema, e.ProviderStatusSchema, e.PtzAutotrackRuntimeStateSchema, e.PtzAutotrackSettingsSchema, e.PtzAutotrackStatusSchema, e.PtzAutotrackTargetOptionSchema, e.PtzMoveCommandSchema, e.PtzPositionSchema, e.PtzPresetSchema, e.PtzStatusSchema, e.QueryFilterSchema, e.RECOGNITION_TYPES, e.RUNTIME_DEFAULTS, e.RUNTIME_TO_FORMAT, e.RawStateResultSchema, e.ReadSegmentBytesResultSchema, e.ReadinessRegistry, e.ReadinessTimeoutError, e.RecordingAvailabilitySchema, e.RecordingBandModeSchema, e.RecordingBandSchema, e.RecordingBandTriggersSchema, e.RecordingConfigSchema, e.RecordingDaysSchema, e.RecordingDeviceUsageSchema, e.RecordingLocationUsageSchema, e.RecordingManifestSchema, e.RecordingModeSchema, e.RecordingRangeSchema, e.RecordingRetentionSchema, e.RecordingRuleSchema, e.RecordingScheduleSchema, e.RecordingStatusSchema, e.RecordingStorageModeSchema, e.RecordingStorageUsageSchema, e.RecordingTriggersSchema, e.RecordingWeekdaySchema, e.RegisteredStreamSchema, e.ReportMotionInputSchema, e.RingBuffer, e.RtpSourceSchema, e.RtspRestreamEntrySchema, e.RunnerCameraConfigSchema, e.RunnerCameraDeviceUIFields, e.RunnerLocalLoadSchema, e.RunnerLocalMetricsSchema, e.SCOPE_PRESETS, e.SOURCE_INFO_METADATA_KEY, e.STREAM_PROFILE_META, e.STREAM_QUALITY_LABELS, e.SUB_DETECTION_TYPES, e.SYSTEM_CAP_NAMES, e.ScopedTokenSchema, e.ScopedTokenSummarySchema, e.ScoredObjectEventSchema, e.ScriptRunnerStatusSchema, e.SearchResultSchema, e.SendEmailInputSchema, e.SendEmailResultSchema, e.SettingsPatchSchema, e.SettingsRecordSchema, e.SettingsSchemaWithValuesSchema, e.SettingsUpdateResultSchema, e.ShmRingStatsSchema, e.SmokeStatusSchema, e.SmtpStatusSchema, e.SnapshotImageSchema, d = e.SourceInfoSchema, e.SpatialDetectionSchema, e.SsoBridgeClaimsSchema, e.StartEmbeddedInputSchema, e.StorageAbortUploadInputSchema, e.StorageBeginDownloadInputSchema, e.StorageBeginDownloadResultSchema, e.StorageBeginUploadInputSchema, e.StorageBeginUploadResultSchema, e.StorageEndDownloadInputSchema, e.StorageFinalizeUploadInputSchema, e.StorageLocationDeclarationSchema, e.StorageLocationRefSchema, e.StorageLocationSchema, e.StorageLocationTypeSchema, e.StorageProviderInfoSchema, e.StorageReadChunkInputSchema, e.StorageTestLocationResultSchema, e.StorageWriteChunkInputSchema, e.StreamCodecSchema, e.StreamFormatSchema, e.StreamInfoSchema, e.StreamNetworkStatsSchema, e.StreamParamsOptionsSchema, e.StreamParamsStatusSchema, e.StreamProfileConfigSchema, e.StreamProfileOptionsSchema, e.StreamProfilePatchSchema, e.StreamProfileSchema, e.StreamSourceEntrySchema, e.StreamSourceSchema, e.SubscribeAudioChunksInputSchema, e.SubscribeAudioChunksResultSchema, e.SubscribeFramesInputSchema, e.SubscribeFramesResultSchema, e.SwitchStatusSchema, e.SystemMetricsSchema, e.SystemMirror, e.TIMEZONES, e.TamperStatusSchema, e.TankStatusSchema, e.TemperatureSensorStatusSchema, e.TestConnectionResultSchema, e.ToastSchema, e.TokenScopeSchema, e.TopologyNodeSchema, e.TopologyProcessSchema, e.TopologyServiceSchema, e.TrackSchema, e.TrackStateSchema, e.TrackedDetectionSchema, e.TurnServerSchema, e.UnifiedBrokerInfoSchema, e.UpdateIntegrationInputSchema, e.UpdateStatusSchema, e.UpdateUserInputSchema, e.UserRecordSchema, e.UserSummarySchema, e.VacuumControlStatusSchema, e.VacuumStateSchema, e.ValveStateSchema, e.ValveStatusSchema, e.VibrationStatusSchema, e.VideoEncodeSchema, e.WELL_KNOWN_TABS, e.WELL_KNOWN_TAB_MAP, e.WaterHeaterStatusSchema, e.WeatherStatusSchema, e.WebrtcStreamChoiceSchema, e.WebrtcStreamTargetSchema, e.WidgetHostEnum, e.WidgetMetadataSchema, e.WidgetRemoteSchema, e.WidgetSizeEnum, e.YAMNET_TO_MACRO, e.ZoneKindEnum, e.ZoneRuleModeEnum, e.ZoneRuleSchema, e.ZoneRuleStageEnum, e.ZoneRulesArraySchema, e.ZoneSchema, e.ZoneScopeBreakdownSchema, e.accessoriesCapability, e.accessoryStableId, e.addonPagesCapability, e.addonPagesSourceCapability, e.addonRoutesCapability, e.addonSettingsCapability, e.addonWidgetsCapability, e.addonWidgetsSourceCapability, e.addonsCapability, e.adminUiCapability, e.advancedNotifierCapability, e.airQualitySensorCapability, e.alarmPanelCapability, e.alertsCapability, e.ambientLightSensorCapability, e.applyTransform, e.asBoolean, e.asJsonArray, e.asJsonObject, e.asNumber, e.asString, e.audioAnalysisCapability, e.audioAnalyzerCapability, e.audioCodecCapability, e.audioMetricsCapability, e.authProviderCapability, e.autoAssignProfiles, e.automationControlCapability, e.backupCapability, e.batteryCapability, e.bestLocationMatch, e.binaryCapability, e.bindAddonActions, e.brightnessCapability, e.brokerCapability, e.buildAddonRouteProvider, e.buildStreamParamsConfigSchema, e.buttonCapability, e.cameraCredentialsCapability, e.cameraPipelineConfigCapability, e.cameraStreamsCapability, e.carbonMonoxideCapability, e.cellsToRects, e.classifyStream, e.classifyStreams, e.climateControlCapability, e.colorCapability, e.connectivityCapability, e.consumablesCapability, e.contactCapability, e.controlCapability, e.cosineSimilarity, e.coverCapability, f = e.createDeviceProxy, e.createDurableState, e.createEvent, e.createLazyTrpcSource, e.createMirrorSource, e.createRuntimeStateBridge, e.createSliceHandle, e.createSystemProxy, e.customAction, e.customModelRegistryCapability, e.decoderCapability, e.defaultDeviceFor, e.defineCustomActions, e.detectionPipelineCapability, e.deviceAdoptionCapability, e.deviceCustomAction, e.deviceDiscoveryCapability, e.deviceExportCapability, e.deviceManagerCapability, e.deviceMatchesProfile, e.deviceOpsCapability, e.deviceProviderCapability, e.deviceStateCapability, e.deviceStatusCapability, e.doorbellCapability, e.embeddingEncoderCapability, e.emitDownForOwnedCaps, e.emitReadiness, e.encodeProfileFromStreamShape, e.enumSensorCapability, e.enumerateSchemaFields, e.errMsg, e.evaluateZoneRules, e.event, e.eventEmitterCapability, e.eventsCapability, e.expandCapMethods, e.extractSourceInfoFromMetadata, e.faceGalleryCapability, e.fanControlCapability, e.featureProbeCapability, e.filesystemBrowseCapability, e.findTimezone, e.floodCapability, e.formatForBackend, e.formatForRuntime, e.frameworkSwapConfirmSchema, e.frameworkSwapPackageSchema, e.gasCapability, e.getAudioMacroClassIds, e.getByPath, e.getCapsByProviderKind, e.hfModelUrl, e.humidifierCapability, e.humiditySensorCapability, e.hydrateSchema, e.imageCapability, e.integrationsCapability, e.intercomCapability, e.isAgentOnlyPlacement, e.isDeployableToAgent, e.isDeviceConfigCap, e.isEvent, e.jobKindSchema, e.lawnMowerControlCapability, e.lifecycleJobSchema, e.lifecycleJobScopeSchema, e.lifecycleJobStateSchema, e.lifecycleTaskSchema, e.localNetworkCapability, e.locationSimilarity, e.lockControlCapability, e.logDestinationCapability, e.makeProfileBrokerId, e.makeSourceBrokerId, e.mapAudioLabelToMacro, e.maskUrlCredentials, e.mediaPlayerCapability, e.mergeSourceInfo, e.meshNetworkCapability, e.method, e.metricsProviderCapability, e.migrateConfigToBands, e.modelConvertCapability, e.modelDistributorCapability, e.modelFormatForRuntime, e.motionCapability, e.motionDetectionCapability, e.motionTriggerCapability, e.motionZonesCapability, e.mqttBrokerCapability, e.nativeObjectDetectionCapability, e.networkAccessCapability, e.networkQualityCapability, e.nodePin, e.nodesCapability, e.normalizeAddonInitResult, e.normalizeUnit, e.notificationOutputCapability, e.notifierCapability, e.numericSensorCapability, e.oauthIntegrationCapability, e.osdCapability, e.parseCameraStreamConfig, e.parseJsonArray, e.parseJsonObject, e.parseJsonUnknown, e.parseProfileBrokerId, e.parseStreamParamsFormPatch, e.pendingFrameworkSwapSchema, e.pickPreferredRtspEntry, e.pipelineAnalyticsCapability, e.pipelineExecutorCapability, e.pipelineOrchestratorCapability, e.pipelineRunnerCapability, e.plateGalleryCapability, e.platformProbeCapability, e.powerMeterCapability, e.presenceCapability, e.pressureSensorCapability, e.privacyMaskCapability, e.ptzAutotrackCapability, e.ptzCapability, e.pythonScriptForBackend, e.readNodePin, e.readinessKey, e.rebootCapability, e.recordingCapability, e.rectsToCells, e.requiresPython, e.resolveAddonExecution, e.resolveAddonGroup, e.resolveAddonPlacement, e.resolveAddonRuntime, e.resolveDetectionRuntime, e.resolveDeviceProfile, e.resolveModelFormat, e.resolveRunnerId, e.restreamerCapability, e.runInferenceStep, e.runtimeDevices, e.scopeKey, e.scoreRuntimes, e.scriptRunnerCapability, e.selectAssignedProfileSlots, e.setByPath, e.settingsStoreCapability, e.sleep, e.sleepCancellable, e.smokeCapability, e.smtpProviderCapability, e.snapshotCapability, e.snapshotProviderCapability, e.ssoBridgeCapability, e.storageCapability, e.storageEvictableCapability, e.storageProviderCapability, e.streamBrokerCapability, e.streamCatalogCapability, e.streamParamsCapability, e.streamPixels, e.streamQualityLabel, e.streamingEngineCapability, e.supportedRuntimes, e.switchCapability, e.synthesizeSourceInfo, e.systemCapability, e.tamperCapability, e.taskLogEntrySchema, e.taskPhaseSchema, e.taskTargetSchema, e.temperatureSensorCapability, e.toDeviceSummary, e.toStreamSourceEntry, e.toastCapability, e.turnProviderCapability, e.updateCapability, e.userManagementCapability, e.userPasskeysCapability, e.vacuumControlCapability, e.valveCapability, e.vibrationCapability, e.videoclipsCapability, e.waterHeaterCapability, e.weatherCapability, e.webrtcCapability, e.webrtcClientHintsSchema, e.webrtcSessionCapability, e.wiringAddonHealthSchema, e.wiringHealthSnapshotSchema, e.wiringNodeHealthSchema, e.wiringProbeKindSchema, e.wiringProbeResultSchema, e.zodEntriesToConfigUI, e.zoneAnalyticsCapability, e.zoneRulesCapability, e.zonesCapability, e.default;
20
- }, m = i.share["default:@camstack/types"];
21
- m === void 0 ? n.then(() => {
22
- if (m = i.share["default:@camstack/types"], m === void 0) throw Error("[Module Federation] Shared module @camstack/types was imported before federation bootstrap finished.");
23
- p(m);
24
- }) : p(m);
25
- //#endregion
26
- export { l as a, f as c, c as i, o as n, u as o, s as r, d as s, a as t };