@camstack/addon-model-studio 1.1.74 → 1.1.75

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/_stub.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "./virtualExposes-CWSi4E_g.mjs";
2
- import "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-DRwAHUXj.mjs";
2
+ import "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-BkRXiy8C.mjs";
3
3
  import { _ as e, c as t, d as n, h as r, i, l as a, m as o, p as s, r as c, t as l, u, y as d } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare__react__loadShare__.js-DJDHChgO.mjs";
4
4
  import { a as f, i as p, o as m, r as h, s as g } from "./responsive-CsZzLxQN.mjs";
5
5
  import { c as _, l as v, u as y } from "./use-device-snapshot-D1SZB3O6.mjs";
@@ -1,9 +1,9 @@
1
- import "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-DRwAHUXj.mjs";
1
+ import "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-BkRXiy8C.mjs";
2
2
  //#region \0virtual:mf-localSharedImportMap:__mfe_internal__addon_model_studio_page
3
3
  var e = {
4
4
  "@camstack/sdk": {
5
5
  name: "@camstack/sdk",
6
- version: "1.2.55",
6
+ version: "1.2.56",
7
7
  scope: ["default"],
8
8
  loaded: !1,
9
9
  from: "addon_model_studio_page",
@@ -18,7 +18,7 @@ var e = {
18
18
  },
19
19
  "@camstack/types": {
20
20
  name: "@camstack/types",
21
- version: "1.2.135",
21
+ version: "1.2.136",
22
22
  scope: ["default"],
23
23
  loaded: !1,
24
24
  from: "addon_model_studio_page",
@@ -33,7 +33,7 @@ var e = {
33
33
  },
34
34
  "@camstack/ui-library": {
35
35
  name: "@camstack/ui-library",
36
- version: "1.2.101",
36
+ version: "1.2.102",
37
37
  scope: ["default"],
38
38
  loaded: !1,
39
39
  from: "addon_model_studio_page",
@@ -36,7 +36,7 @@ async function r() {
36
36
  }
37
37
  },
38
38
  "@camstack/types": {
39
- version: "1.2.135",
39
+ version: "1.2.136",
40
40
  scope: "default",
41
41
  shareConfig: {
42
42
  singleton: !0,
@@ -45,7 +45,7 @@ async function r() {
45
45
  }
46
46
  },
47
47
  "@camstack/sdk": {
48
- version: "1.2.55",
48
+ version: "1.2.56",
49
49
  scope: "default",
50
50
  shareConfig: {
51
51
  singleton: !0,
@@ -81,7 +81,7 @@ async function r() {
81
81
  }
82
82
  },
83
83
  "@camstack/ui-library": {
84
- version: "1.2.101",
84
+ version: "1.2.102",
85
85
  scope: "default",
86
86
  shareConfig: {
87
87
  singleton: !0,
@@ -8285,7 +8285,8 @@ var OpsLogReasonSchema = _enum([
8285
8285
  "quota",
8286
8286
  "manual",
8287
8287
  "operator",
8288
- "maintenance"
8288
+ "maintenance",
8289
+ "orphaned-device"
8289
8290
  ]);
8290
8291
  /** One audit row, shared verbatim by both domains. */
8291
8292
  var OpsLogEntrySchema = object({
@@ -13372,10 +13373,39 @@ var DevicePersistConfigPayloadSchema = object({
13372
13373
  deviceId: number(),
13373
13374
  data: record(string(), unknown())
13374
13375
  });
13376
+ /** What a migration actually did, per switch. `unreachable` is a first-class
13377
+ * answer: a camera that could not be asked is not a camera that was silenced. */
13378
+ var MigrateSwitchOutcomeSchema = _enum([
13379
+ "off",
13380
+ "on",
13381
+ "not-offered",
13382
+ "unreachable"
13383
+ ]);
13384
+ var MigrateSwitchReportSchema = object({
13385
+ deviceId: number(),
13386
+ switchId: CameraSwitchIdSchema,
13387
+ outcome: MigrateSwitchOutcomeSchema,
13388
+ detail: string().optional()
13389
+ });
13390
+ var MigrateDeviceResultSchema = object({
13391
+ sourceId: number(),
13392
+ targetId: number(),
13393
+ switches: array(MigrateSwitchReportSchema).readonly(),
13394
+ /** Switches that could NOT be turned off on the source. Empty is the only
13395
+ * value meaning the replaced hardware is quiet. */
13396
+ sourceStillLive: array(CameraSwitchIdSchema).readonly(),
13397
+ swapped: boolean()
13398
+ });
13375
13399
  method(object({
13376
13400
  addonId: string(),
13377
13401
  stableId: string()
13378
- }), object({ id: number() }), { kind: "mutation" }), method(DeviceRegisterPayloadSchema, _void(), { kind: "mutation" }), method(DeviceRemovePayloadSchema, _void(), { kind: "mutation" }), method(DevicePersistConfigPayloadSchema, _void(), { kind: "mutation" }), method(object({ deviceId: number() }), record(string(), unknown())), method(object({ deviceId: number() }), record(string(), unknown())), method(object({ deviceId: number() }), DeviceMetaSchema.nullable()), method(object({
13402
+ }), object({ id: number() }), { kind: "mutation" }), method(object({
13403
+ sourceId: number(),
13404
+ targetId: number()
13405
+ }), MigrateDeviceResultSchema, {
13406
+ kind: "mutation",
13407
+ auth: "admin"
13408
+ }), method(DeviceRegisterPayloadSchema, _void(), { kind: "mutation" }), method(DeviceRemovePayloadSchema, _void(), { kind: "mutation" }), method(DevicePersistConfigPayloadSchema, _void(), { kind: "mutation" }), method(object({ deviceId: number() }), record(string(), unknown())), method(object({ deviceId: number() }), record(string(), unknown())), method(object({ deviceId: number() }), DeviceMetaSchema.nullable()), method(object({
13379
13409
  deviceId: number(),
13380
13410
  name: string()
13381
13411
  }), _void(), {
@@ -30884,6 +30914,12 @@ Object.freeze({
30884
30914
  addonId: null,
30885
30915
  access: "view"
30886
30916
  },
30917
+ "deviceManager.migrateDevice": {
30918
+ capName: "device-manager",
30919
+ capScope: "system",
30920
+ addonId: null,
30921
+ access: "create"
30922
+ },
30887
30923
  "deviceManager.persistConfig": {
30888
30924
  capName: "device-manager",
30889
30925
  capScope: "system",
@@ -8264,7 +8264,8 @@ var OpsLogReasonSchema = _enum([
8264
8264
  "quota",
8265
8265
  "manual",
8266
8266
  "operator",
8267
- "maintenance"
8267
+ "maintenance",
8268
+ "orphaned-device"
8268
8269
  ]);
8269
8270
  /** One audit row, shared verbatim by both domains. */
8270
8271
  var OpsLogEntrySchema = object({
@@ -13351,10 +13352,39 @@ var DevicePersistConfigPayloadSchema = object({
13351
13352
  deviceId: number(),
13352
13353
  data: record(string(), unknown())
13353
13354
  });
13355
+ /** What a migration actually did, per switch. `unreachable` is a first-class
13356
+ * answer: a camera that could not be asked is not a camera that was silenced. */
13357
+ var MigrateSwitchOutcomeSchema = _enum([
13358
+ "off",
13359
+ "on",
13360
+ "not-offered",
13361
+ "unreachable"
13362
+ ]);
13363
+ var MigrateSwitchReportSchema = object({
13364
+ deviceId: number(),
13365
+ switchId: CameraSwitchIdSchema,
13366
+ outcome: MigrateSwitchOutcomeSchema,
13367
+ detail: string().optional()
13368
+ });
13369
+ var MigrateDeviceResultSchema = object({
13370
+ sourceId: number(),
13371
+ targetId: number(),
13372
+ switches: array(MigrateSwitchReportSchema).readonly(),
13373
+ /** Switches that could NOT be turned off on the source. Empty is the only
13374
+ * value meaning the replaced hardware is quiet. */
13375
+ sourceStillLive: array(CameraSwitchIdSchema).readonly(),
13376
+ swapped: boolean()
13377
+ });
13354
13378
  method(object({
13355
13379
  addonId: string(),
13356
13380
  stableId: string()
13357
- }), object({ id: number() }), { kind: "mutation" }), method(DeviceRegisterPayloadSchema, _void(), { kind: "mutation" }), method(DeviceRemovePayloadSchema, _void(), { kind: "mutation" }), method(DevicePersistConfigPayloadSchema, _void(), { kind: "mutation" }), method(object({ deviceId: number() }), record(string(), unknown())), method(object({ deviceId: number() }), record(string(), unknown())), method(object({ deviceId: number() }), DeviceMetaSchema.nullable()), method(object({
13381
+ }), object({ id: number() }), { kind: "mutation" }), method(object({
13382
+ sourceId: number(),
13383
+ targetId: number()
13384
+ }), MigrateDeviceResultSchema, {
13385
+ kind: "mutation",
13386
+ auth: "admin"
13387
+ }), method(DeviceRegisterPayloadSchema, _void(), { kind: "mutation" }), method(DeviceRemovePayloadSchema, _void(), { kind: "mutation" }), method(DevicePersistConfigPayloadSchema, _void(), { kind: "mutation" }), method(object({ deviceId: number() }), record(string(), unknown())), method(object({ deviceId: number() }), record(string(), unknown())), method(object({ deviceId: number() }), DeviceMetaSchema.nullable()), method(object({
13358
13388
  deviceId: number(),
13359
13389
  name: string()
13360
13390
  }), _void(), {
@@ -30863,6 +30893,12 @@ Object.freeze({
30863
30893
  addonId: null,
30864
30894
  access: "view"
30865
30895
  },
30896
+ "deviceManager.migrateDevice": {
30897
+ capName: "device-manager",
30898
+ capScope: "system",
30899
+ addonId: null,
30900
+ access: "create"
30901
+ },
30866
30902
  "deviceManager.persistConfig": {
30867
30903
  capName: "device-manager",
30868
30904
  capScope: "system",
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-DRwAHUXj.mjs";
1
+ import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-BkRXiy8C.mjs";
2
2
  export { t as get, e as init };
@@ -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-4xffZxSk.mjs")).catch((e) => {
2756
+ return tr ||= rr(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-DwIubxFq.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.1.74",
3
+ "version": "1.1.75",
4
4
  "description": "Custom detection model registry, conversion & distribution for CamStack",
5
5
  "keywords": [
6
6
  "camstack",