@camstack/addon-model-studio 1.1.261 → 1.1.263

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 (27) hide show
  1. package/dist/{MaskShapeCanvas-DBaZffFb.mjs → MaskShapeCanvas-CrWutXSb.mjs} +2330 -2329
  2. package/dist/MotionZonesSettings-DtoUJxd6.mjs +309 -0
  3. package/dist/PrivacyMaskSettings-Bd5lL0CO.mjs +368 -0
  4. package/dist/SceneMonitorEditor-BG0CBUrr.mjs +846 -0
  5. package/dist/_stub.js +9125 -7988
  6. package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-BLNkyVNp.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-DANjfgEB.mjs} +4 -4
  7. package/dist/_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DlW3IlLM.mjs +26 -0
  8. package/dist/{_virtual_mf___mfe_internal__addon_model_studio_page__loadShare__react__loadShare__.js-CHL8loOl.mjs → _virtual_mf___mfe_internal__addon_model_studio_page__loadShare__react__loadShare__.js-DMBKVIH7.mjs} +1 -1
  9. package/dist/addon-model-studio.css +1 -1
  10. package/dist/{hostInit-D8GpjpEa.mjs → hostInit-DE_6Mq5X.mjs} +3 -3
  11. package/dist/model-studio.addon.js +204 -11
  12. package/dist/model-studio.addon.mjs +204 -11
  13. package/dist/player-overlays-DXeDukPC.mjs +44 -0
  14. package/dist/remoteEntry.js +1 -1
  15. package/dist/{responsive-DkEyuaY7.mjs → responsive-D9Bo78lO.mjs} +35 -35
  16. package/dist/scene-monitor-copy-CQr7egaT.mjs +227 -0
  17. package/dist/{square-BuUmfUsp.mjs → square-d__poSpa.mjs} +1 -1
  18. package/dist/{trash-2-CVLNpvpf.mjs → trash-2-C0XdoZQu.mjs} +1 -1
  19. package/dist/ui-text-BqZa5BNK.mjs +34 -0
  20. package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-B7QpttUx.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-CxkFEexB.mjs} +1 -1
  21. package/package.json +1 -1
  22. package/dist/MotionZonesSettings-hiAo2-5o.mjs +0 -310
  23. package/dist/PrivacyMaskSettings-BdJJ1m-Z.mjs +0 -377
  24. package/dist/SceneMonitorEditor-hfPKGf8z.mjs +0 -831
  25. package/dist/_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-CEZAcVSS.mjs +0 -26
  26. package/dist/player-overlays-D2zkUA6J.mjs +0 -44
  27. package/dist/scene-monitor-copy-CLdYZqAD.mjs +0 -187
@@ -36,7 +36,7 @@ async function r() {
36
36
  }
37
37
  },
38
38
  "@camstack/types": {
39
- version: "1.2.373",
39
+ version: "1.2.375",
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.131",
48
+ version: "1.2.132",
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.291",
84
+ version: "1.2.293",
85
85
  scope: "default",
86
86
  shareConfig: {
87
87
  singleton: !0,
@@ -5782,7 +5782,7 @@ var ZodIssueCode = {
5782
5782
  var ZodFirstPartyTypeKind;
5783
5783
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5784
5784
  //#endregion
5785
- //#region ../types/dist/sleep-DAX0-2v9.mjs
5785
+ //#region ../types/dist/sleep-DRqxtc0C.mjs
5786
5786
  /**
5787
5787
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5788
5788
  * window to float samples (D455).
@@ -8631,8 +8631,12 @@ method(object({ deviceId: number() }), array(StreamSourceEntrySchema)), method(o
8631
8631
  kind: "mutation",
8632
8632
  auth: "admin"
8633
8633
  }), method(object({ deviceId: number() }), unknown().nullable()), method(object({ deviceId: number() }), RawStateResultSchema.nullable(), { auth: "protected" });
8634
+ object({
8635
+ code: string().regex(/^[a-z][a-z0-9-]*(\.[a-z0-9-]+)+$/),
8636
+ params: record(string(), union([string(), number()])).optional()
8637
+ });
8634
8638
  //#endregion
8635
- //#region ../types/dist/err-msg-DX6i_MY4.mjs
8639
+ //#region ../types/dist/err-msg-DLerKiVO.mjs
8636
8640
  var DeviceType = /* @__PURE__ */ function(DeviceType) {
8637
8641
  DeviceType["Camera"] = "camera";
8638
8642
  DeviceType["Hub"] = "hub";
@@ -8882,6 +8886,22 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
8882
8886
  DeviceRole["Nightvision"] = "nightvision";
8883
8887
  DeviceRole["PrivacyMask"] = "privacy-mask";
8884
8888
  DeviceRole["Doorbell"] = "doorbell";
8889
+ /** Interior blind / shade / roller blind. HA `device_class: blind|shade`. */
8890
+ DeviceRole["CoverBlind"] = "cover-blind";
8891
+ /** Exterior roller shutter. HA `device_class: shutter`; Homematic BROLL. */
8892
+ DeviceRole["CoverShutter"] = "cover-shutter";
8893
+ /** Exterior awning. HA `device_class: awning`. */
8894
+ DeviceRole["CoverAwning"] = "cover-awning";
8895
+ /** Curtain / drape. HA `device_class: curtain`. */
8896
+ DeviceRole["CoverCurtain"] = "cover-curtain";
8897
+ /** Garage door. HA `device_class: garage`. A security actuator: exports gate it. */
8898
+ DeviceRole["CoverGarage"] = "cover-garage";
8899
+ /** Gate. HA `device_class: gate`. A security actuator: exports gate it. */
8900
+ DeviceRole["CoverGate"] = "cover-gate";
8901
+ /** Door. HA `device_class: door`. A security actuator: exports gate it. */
8902
+ DeviceRole["CoverDoor"] = "cover-door";
8903
+ /** Window. HA `device_class: window`. */
8904
+ DeviceRole["CoverWindow"] = "cover-window";
8885
8905
  /** Virtual HA toggle (input_boolean.*) — distinguishable from a
8886
8906
  * real Switch device for UI rendering / export adapters. */
8887
8907
  DeviceRole["BinaryHelper"] = "binary-helper";
@@ -8952,7 +8972,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
8952
8972
  return DeviceRole;
8953
8973
  }({});
8954
8974
  //#endregion
8955
- //#region ../types/dist/composition-C-WpVYTX.mjs
8975
+ //#region ../types/dist/composition-EQ9Ok0Ee.mjs
8956
8976
  /**
8957
8977
  * The ffmpeg build every CamStack node downloads, per platform and arch.
8958
8978
  *
@@ -12156,11 +12176,10 @@ var ClipModelMetaSchema = object({
12156
12176
  /**
12157
12177
  * The `vector-store` index this model's vectors live in. ONE feature space
12158
12178
  * per index: two models share an index only when their vectors are ranked
12159
- * against each other, which for CLIP means never across families. MobileCLIP
12160
- * S1 and S2 share `object-clip` for history (separated by the row's
12161
- * `modelId`); any other model gets its own.
12179
+ * against each other, which for CLIP means never across families. Every
12180
+ * model gets its own.
12162
12181
  */
12163
- vectorIndex: string().regex(/^object-clip(-[a-z0-9][a-z0-9-]*)?$/),
12182
+ vectorIndex: string().regex(/^object-clip-[a-z0-9][a-z0-9-]*$/),
12164
12183
  /**
12165
12184
  * The text encoder's tokenizer, a declared SIBLING file of its onnx. The name
12166
12185
  * must be unique per tokenizer: every model's siblings land in ONE flat
@@ -12768,7 +12787,8 @@ var ConvertResultSchema = object({
12768
12787
  artifacts: array(ConvertArtifactSchema).readonly()
12769
12788
  });
12770
12789
  _enum(["new-session", "step-up"]);
12771
- _enum(["en", "it"]);
12790
+ /** The languages the hub's app landing pages are written in (D858). */
12791
+ var AppPageLangSchema = _enum(["en", "it"]);
12772
12792
  /** How a native app starts one login method (D858), as `auth.listLoginMethods` reports it. */
12773
12793
  var AppLoginPathSchema = discriminatedUnion("kind", [object({ kind: literal("native") }), object({
12774
12794
  kind: literal("browser"),
@@ -13282,7 +13302,9 @@ var ConfigTabDeclarationSchema = object({
13282
13302
  var ConfigSectionWithValuesSchema = object({
13283
13303
  id: string(),
13284
13304
  title: string(),
13305
+ titleKey: string().optional(),
13285
13306
  description: string().optional(),
13307
+ descriptionKey: string().optional(),
13286
13308
  style: _enum(["card", "accordion"]).optional(),
13287
13309
  defaultCollapsed: boolean().optional(),
13288
13310
  columns: union([
@@ -16536,6 +16558,9 @@ method(object({
16536
16558
  }), method(object({ refs: RefListSchema }), KeychainResolveResultSchema, { auth: "admin" }), method(object({ refs: RefListSchema }), object({ deleted: number().int() }), {
16537
16559
  kind: "mutation",
16538
16560
  auth: "admin"
16561
+ }), method(object({ deviceId: number().int() }), object({ refs: array(string()).readonly() }), {
16562
+ kind: "mutation",
16563
+ auth: "admin"
16539
16564
  }), method(object({}), array(KeychainSecretMetaSchema).readonly(), { auth: "admin" }), method(object({}), KeychainStateSchema, { auth: "admin" });
16540
16565
  /**
16541
16566
  * device-history — the ONE mechanism for numeric history (D850).
@@ -37939,6 +37964,38 @@ var DeviceRegisterPayloadSchema = object({
37939
37964
  * omits it and the keyword backstop applies. */
37940
37965
  secretConfigPaths: array(string()).optional()
37941
37966
  });
37967
+ /** One deleted device, kept by device-manager so an addon that missed the
37968
+ * deletion can still learn of it (D865). Written by the delete path ONLY. */
37969
+ var DeviceTombstoneSchema = object({
37970
+ deviceId: number().int().positive(),
37971
+ /** Epoch ms the device was deleted. */
37972
+ deletedAt: number(),
37973
+ /** The addon that owned the device when it was deleted. */
37974
+ providerAddonId: string()
37975
+ });
37976
+ /** Data held for one device that device-manager no longer knows. */
37977
+ var OrphanDeviceDataSchema = object({
37978
+ deviceId: number().int().positive(),
37979
+ /** Rows/files per store (`<addonId>:<store>`). */
37980
+ stores: record(string(), number().int().nonnegative())
37981
+ });
37982
+ var CleanupDeletedDevicesResultSchema = object({
37983
+ /**
37984
+ * `skipped` — the absence check could not be trusted (a device-list read
37985
+ * failed or the two reads disagreed); nothing was listed or deleted.
37986
+ * `dry-run` — `devices` is what a confirmed run would delete.
37987
+ * `cleaned` — `devices` is what was deleted.
37988
+ */
37989
+ status: _enum([
37990
+ "skipped",
37991
+ "dry-run",
37992
+ "cleaned"
37993
+ ]),
37994
+ reason: string().nullable(),
37995
+ devices: array(OrphanDeviceDataSchema),
37996
+ /** Implementers that could not be asked (their stores are not in `devices`). */
37997
+ unreachable: array(string())
37998
+ });
37942
37999
  var DeviceRemovePayloadSchema = object({ deviceId: number() });
37943
38000
  var DevicePersistConfigPayloadSchema = object({
37944
38001
  deviceId: number(),
@@ -38177,6 +38234,9 @@ method(object({
38177
38234
  }), method(object({ deviceId: number() }), object({ success: literal(true) }), {
38178
38235
  kind: "mutation",
38179
38236
  auth: "admin"
38237
+ }), method(object({ sinceMs: number() }), array(DeviceTombstoneSchema).readonly(), { auth: "admin" }), method(object({ confirm: boolean() }), CleanupDeletedDevicesResultSchema, {
38238
+ kind: "mutation",
38239
+ auth: "admin"
38180
38240
  }), method(object({ integrationId: string() }), object({ removed: number() }), {
38181
38241
  kind: "mutation",
38182
38242
  auth: "admin"
@@ -38639,6 +38699,72 @@ method(object({
38639
38699
  auth: "admin"
38640
38700
  });
38641
38701
  /**
38702
+ * `device-removal-hook` — the reliable way an addon learns a device was DELETED,
38703
+ * so it can delete what it keeps for that device (D865).
38704
+ *
38705
+ * ## Why an event was not enough
38706
+ *
38707
+ * `DeviceUnregistered` is telemetry and may be dropped (D8, D11). An addon that
38708
+ * hung its per-device clean-up on it left durable garbage whenever the event was
38709
+ * lost, the addon was down, or it was restarting at that moment — footage,
38710
+ * analytics rows and settings of device 4483 outlived the device. Loss of this
38711
+ * signal corrupts durable state, so it travels by RPC with a recorded fact
38712
+ * behind it (D8: "if loss would corrupt durable state, use RPC plus a reconcile").
38713
+ *
38714
+ * ## The three pieces
38715
+ *
38716
+ * 1. device-manager records a TOMBSTONE per deleted device
38717
+ * (`deviceManager.listDeletedSince`). The tombstone is written by the delete
38718
+ * path only — a device that is unregistered, offline or whose provider is
38719
+ * restarting is NOT deleted and gets none.
38720
+ * 2. After a delete, device-manager calls `onDeviceRemoved` on EVERY provider of
38721
+ * this collection, one by one, with bounded retries, logged.
38722
+ * 3. An implementer that was down asks `deviceManager.listDeletedSince` at start
38723
+ * (and periodically) and runs its own `onDeviceRemoved` for each tombstone it
38724
+ * may have missed. Reconcile is driven by tombstones, never by "the device is
38725
+ * not in the current list": a failed or partial list read must not destroy data.
38726
+ *
38727
+ * ## Contract for an implementer
38728
+ *
38729
+ * - **Idempotent.** It is called again by a retry, by a reconcile and by the
38730
+ * admin cleanup of data that predates tombstones. A device with nothing left
38731
+ * answers zero counts.
38732
+ * - **One key per store** in `counts`, deleted rows/files per store, so the log
38733
+ * line and the admin dry run can say where the data was.
38734
+ * - **Training datasets are NOT device data** and are never deleted by a hook.
38735
+ * - **Per-device SETTINGS are not hooked.** Configuration lives in the standard
38736
+ * per-device store (`ctx.settings.*DeviceStore`), which device-manager clears
38737
+ * for every addon centrally at delete time. This hook is for device DATA
38738
+ * that is not settings: footage, event media, analytics rows, history.
38739
+ * - A provider that cannot tell is allowed to throw; the caller retries it.
38740
+ *
38741
+ * `listDeviceData` is the read side of the admin "Clean data of deleted devices"
38742
+ * action: which device ids this addon holds data for, and how much per store. It
38743
+ * never deletes. device-manager decides which of those ids are absent from the
38744
+ * fleet, from TWO consistent reads of the device list (D49).
38745
+ */
38746
+ /** What a hook is told about the deletion. */
38747
+ var DeviceRemovedInputSchema = object({
38748
+ deviceId: number().int().positive(),
38749
+ /** Epoch ms the device was deleted (the tombstone's `deletedAt`). */
38750
+ deletedAt: number(),
38751
+ /** The addon that owned the device, as device-manager last knew it. */
38752
+ providerAddonId: string()
38753
+ });
38754
+ /** Rows/files/refs deleted, per store this implementer owns. */
38755
+ var DeviceRemovedResultSchema = object({ counts: record(string(), number().int().nonnegative()) });
38756
+ /** One (store, device) pair an implementer holds data for. */
38757
+ var DeviceDataEntrySchema = object({
38758
+ store: string(),
38759
+ deviceId: number().int().positive(),
38760
+ /** Rows (or files) held for the device in the store. */
38761
+ count: number().int().nonnegative()
38762
+ });
38763
+ method(DeviceRemovedInputSchema, DeviceRemovedResultSchema, {
38764
+ kind: "mutation",
38765
+ auth: "admin"
38766
+ }), method(_void(), array(DeviceDataEntrySchema).readonly(), { auth: "admin" });
38767
+ /**
38642
38768
  * `failure-contribution` — the capability an addon reports its OWN losses
38643
38769
  * through, per camera, with the denominator attached. It stores nothing.
38644
38770
  *
@@ -55164,7 +55290,19 @@ var TlsStatusSchema = object({
55164
55290
  sans: array(string()),
55165
55291
  caCertPem: string().nullable(),
55166
55292
  reissueError: string().nullable(),
55167
- restartRequired: boolean()
55293
+ restartRequired: boolean(),
55294
+ /** An uploaded certificate is served but no CA is kept for it and it is not publicly signed (D873). */
55295
+ caMissing: boolean(),
55296
+ /** Does the hub's own generated CA carry a critical name constraint? `null` while it has none. */
55297
+ localCaConstrained: boolean().nullable(),
55298
+ /** ISO time the generated CA was replaced by a constrained one; devices must re-download it. */
55299
+ caReplacedAt: string().nullable(),
55300
+ /** The uploaded certificate kept on disk, selectable again after "Revert to generated". */
55301
+ storedUpload: object({
55302
+ leafFingerprintSha256: string(),
55303
+ validTo: string(),
55304
+ hasCa: boolean()
55305
+ }).nullable()
55168
55306
  });
55169
55307
  method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
55170
55308
  /**
@@ -55220,6 +55358,9 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
55220
55358
  }), method(_void(), object({ pem: string() })), method(_void(), TlsStatusSchema, {
55221
55359
  kind: "mutation",
55222
55360
  auth: "admin"
55361
+ }), method(_void(), TlsStatusSchema, {
55362
+ kind: "mutation",
55363
+ auth: "admin"
55223
55364
  });
55224
55365
  object({
55225
55366
  /** Lifecycle state of the lock. `jammed` means the motor reported
@@ -63242,6 +63383,12 @@ Object.freeze({
63242
63383
  addonId: null,
63243
63384
  access: "create"
63244
63385
  },
63386
+ "deviceManager.cleanupDeletedDevicesData": {
63387
+ capName: "device-manager",
63388
+ capScope: "system",
63389
+ addonId: null,
63390
+ access: "create"
63391
+ },
63245
63392
  "deviceManager.createDevice": {
63246
63393
  capName: "device-manager",
63247
63394
  capScope: "system",
@@ -63422,6 +63569,12 @@ Object.freeze({
63422
63569
  addonId: null,
63423
63570
  access: "view"
63424
63571
  },
63572
+ "deviceManager.listDeletedSince": {
63573
+ capName: "device-manager",
63574
+ capScope: "system",
63575
+ addonId: null,
63576
+ access: "view"
63577
+ },
63425
63578
  "deviceManager.listDeviceIdsByCaps": {
63426
63579
  capName: "device-manager",
63427
63580
  capScope: "system",
@@ -63830,6 +63983,18 @@ Object.freeze({
63830
63983
  addonId: null,
63831
63984
  access: "create"
63832
63985
  },
63986
+ "deviceRemovalHook.listDeviceData": {
63987
+ capName: "device-removal-hook",
63988
+ capScope: "system",
63989
+ addonId: null,
63990
+ access: "view"
63991
+ },
63992
+ "deviceRemovalHook.onDeviceRemoved": {
63993
+ capName: "device-removal-hook",
63994
+ capScope: "system",
63995
+ addonId: null,
63996
+ access: "create"
63997
+ },
63833
63998
  "deviceState.claimFields": {
63834
63999
  capName: "device-state",
63835
64000
  capScope: "system",
@@ -64262,6 +64427,12 @@ Object.freeze({
64262
64427
  addonId: null,
64263
64428
  access: "delete"
64264
64429
  },
64430
+ "keychain.deleteDeviceScope": {
64431
+ capName: "keychain",
64432
+ capScope: "system",
64433
+ addonId: null,
64434
+ access: "delete"
64435
+ },
64265
64436
  "keychain.getState": {
64266
64437
  capName: "keychain",
64267
64438
  capScope: "system",
@@ -64700,6 +64871,12 @@ Object.freeze({
64700
64871
  addonId: null,
64701
64872
  access: "create"
64702
64873
  },
64874
+ "localNetwork.useStoredUploadedCertificate": {
64875
+ capName: "local-network",
64876
+ capScope: "system",
64877
+ addonId: null,
64878
+ access: "create"
64879
+ },
64703
64880
  "lockControl.getStatus": {
64704
64881
  capName: "lock-control",
64705
64882
  capScope: "device",
@@ -70274,6 +70451,11 @@ Object.freeze({
70274
70451
  form: "single",
70275
70452
  optional: false
70276
70453
  }],
70454
+ "deviceRemovalHook.onDeviceRemoved": [{
70455
+ name: "deviceId",
70456
+ form: "single",
70457
+ optional: false
70458
+ }],
70277
70459
  "deviceState.claimFields": [{
70278
70460
  name: "deviceId",
70279
70461
  form: "single",
@@ -70463,6 +70645,11 @@ Object.freeze({
70463
70645
  form: "single",
70464
70646
  optional: false
70465
70647
  }],
70648
+ "keychain.deleteDeviceScope": [{
70649
+ name: "deviceId",
70650
+ form: "single",
70651
+ optional: false
70652
+ }],
70466
70653
  "lawnMowerControl.dock": [{
70467
70654
  name: "deviceId",
70468
70655
  form: "single",
@@ -72811,6 +72998,8 @@ new Set([
72811
72998
  "audio-tools",
72812
72999
  "audio-silence"
72813
73000
  ]);
73001
+ AppPageLangSchema.options;
73002
+ record(string().min(1), string());
72814
73003
  /**
72815
73004
  * TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
72816
73005
  *
@@ -73361,11 +73550,15 @@ function parseDisplayName(raw) {
73361
73550
  if (name.length === 0) return { kind: "reset" };
73362
73551
  if (CONTROL_CHARS.test(name)) return {
73363
73552
  kind: "invalid",
73364
- reason: "The name contains control characters."
73553
+ reason: "The name contains control characters.",
73554
+ code: "control",
73555
+ length: name.length
73365
73556
  };
73366
73557
  if (name.length > 80) return {
73367
73558
  kind: "invalid",
73368
- reason: `The name is ${name.length} characters long; the limit is 80.`
73559
+ reason: `The name is ${name.length} characters long; the limit is 80.`,
73560
+ code: "too-long",
73561
+ length: name.length
73369
73562
  };
73370
73563
  return {
73371
73564
  kind: "set",