@camstack/addon-osd-manager 0.1.237 → 0.1.239

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-CU-mFCnh.mjs → MaskShapeCanvas-BFhkWNJD.mjs} +2330 -2329
  2. package/dist/MotionZonesSettings-BU-acK9Z.mjs +309 -0
  3. package/dist/PrivacyMaskSettings-DMXiC1dM.mjs +368 -0
  4. package/dist/SceneMonitorEditor-ePI2t_wT.mjs +846 -0
  5. package/dist/_stub.js +6969 -6346
  6. package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-jEKBdGBv.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-CNlBultD.mjs} +4 -4
  7. package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DkfPNoLU.mjs +26 -0
  8. package/dist/{_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react__loadShare__.js-BbmIfQSr.mjs → _virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react__loadShare__.js-C-pbjC7c.mjs} +1 -1
  9. package/dist/addon-osd-manager.css +1 -1
  10. package/dist/{hostInit-axhhtI5J.mjs → hostInit-CTiW6F1s.mjs} +3 -3
  11. package/dist/index.js +199 -9
  12. package/dist/index.mjs +199 -9
  13. package/dist/player-overlays-B4efNR1A.mjs +44 -0
  14. package/dist/remoteEntry.js +1 -1
  15. package/dist/{responsive-BhiSaPOR.mjs → responsive-CvSyX7h3.mjs} +35 -35
  16. package/dist/scene-monitor-copy-QAemI7ef.mjs +227 -0
  17. package/dist/{square--YygXCVY.mjs → square-BG-oZkZc.mjs} +1 -1
  18. package/dist/{trash-2-C74NEbN7.mjs → trash-2-DvemWMy7.mjs} +1 -1
  19. package/dist/ui-text-BitwQ50T.mjs +34 -0
  20. package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-Cz3C_9Hg.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-CbjSvUsn.mjs} +1 -1
  21. package/package.json +1 -1
  22. package/dist/MotionZonesSettings-7Vbym3TT.mjs +0 -310
  23. package/dist/PrivacyMaskSettings-wnU8Ju8m.mjs +0 -377
  24. package/dist/SceneMonitorEditor-vGtrP-cH.mjs +0 -831
  25. package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-BereOozp.mjs +0 -26
  26. package/dist/player-overlays-Bl7_5BCk.mjs +0 -44
  27. package/dist/scene-monitor-copy-Dkm9sS_o.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,
package/dist/index.js CHANGED
@@ -5390,7 +5390,7 @@ var ZodIssueCode = {
5390
5390
  var ZodFirstPartyTypeKind;
5391
5391
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5392
5392
  //#endregion
5393
- //#region ../types/dist/sleep-DAX0-2v9.mjs
5393
+ //#region ../types/dist/sleep-DRqxtc0C.mjs
5394
5394
  /**
5395
5395
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5396
5396
  * window to float samples (D455).
@@ -8158,8 +8158,12 @@ method(object({ deviceId: number() }), array(StreamSourceEntrySchema)), method(o
8158
8158
  kind: "mutation",
8159
8159
  auth: "admin"
8160
8160
  }), method(object({ deviceId: number() }), unknown().nullable()), method(object({ deviceId: number() }), RawStateResultSchema.nullable(), { auth: "protected" });
8161
+ object({
8162
+ code: string().regex(/^[a-z][a-z0-9-]*(\.[a-z0-9-]+)+$/),
8163
+ params: record(string(), union([string(), number()])).optional()
8164
+ });
8161
8165
  //#endregion
8162
- //#region ../types/dist/err-msg-DX6i_MY4.mjs
8166
+ //#region ../types/dist/err-msg-DLerKiVO.mjs
8163
8167
  var DeviceType = /* @__PURE__ */ function(DeviceType) {
8164
8168
  DeviceType["Camera"] = "camera";
8165
8169
  DeviceType["Hub"] = "hub";
@@ -8409,6 +8413,22 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
8409
8413
  DeviceRole["Nightvision"] = "nightvision";
8410
8414
  DeviceRole["PrivacyMask"] = "privacy-mask";
8411
8415
  DeviceRole["Doorbell"] = "doorbell";
8416
+ /** Interior blind / shade / roller blind. HA `device_class: blind|shade`. */
8417
+ DeviceRole["CoverBlind"] = "cover-blind";
8418
+ /** Exterior roller shutter. HA `device_class: shutter`; Homematic BROLL. */
8419
+ DeviceRole["CoverShutter"] = "cover-shutter";
8420
+ /** Exterior awning. HA `device_class: awning`. */
8421
+ DeviceRole["CoverAwning"] = "cover-awning";
8422
+ /** Curtain / drape. HA `device_class: curtain`. */
8423
+ DeviceRole["CoverCurtain"] = "cover-curtain";
8424
+ /** Garage door. HA `device_class: garage`. A security actuator: exports gate it. */
8425
+ DeviceRole["CoverGarage"] = "cover-garage";
8426
+ /** Gate. HA `device_class: gate`. A security actuator: exports gate it. */
8427
+ DeviceRole["CoverGate"] = "cover-gate";
8428
+ /** Door. HA `device_class: door`. A security actuator: exports gate it. */
8429
+ DeviceRole["CoverDoor"] = "cover-door";
8430
+ /** Window. HA `device_class: window`. */
8431
+ DeviceRole["CoverWindow"] = "cover-window";
8412
8432
  /** Virtual HA toggle (input_boolean.*) — distinguishable from a
8413
8433
  * real Switch device for UI rendering / export adapters. */
8414
8434
  DeviceRole["BinaryHelper"] = "binary-helper";
@@ -8479,7 +8499,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
8479
8499
  return DeviceRole;
8480
8500
  }({});
8481
8501
  //#endregion
8482
- //#region ../types/dist/composition-C-WpVYTX.mjs
8502
+ //#region ../types/dist/composition-EQ9Ok0Ee.mjs
8483
8503
  /**
8484
8504
  * The ffmpeg build every CamStack node downloads, per platform and arch.
8485
8505
  *
@@ -11683,11 +11703,10 @@ var ClipModelMetaSchema = object({
11683
11703
  /**
11684
11704
  * The `vector-store` index this model's vectors live in. ONE feature space
11685
11705
  * per index: two models share an index only when their vectors are ranked
11686
- * against each other, which for CLIP means never across families. MobileCLIP
11687
- * S1 and S2 share `object-clip` for history (separated by the row's
11688
- * `modelId`); any other model gets its own.
11706
+ * against each other, which for CLIP means never across families. Every
11707
+ * model gets its own.
11689
11708
  */
11690
- vectorIndex: string().regex(/^object-clip(-[a-z0-9][a-z0-9-]*)?$/),
11709
+ vectorIndex: string().regex(/^object-clip-[a-z0-9][a-z0-9-]*$/),
11691
11710
  /**
11692
11711
  * The text encoder's tokenizer, a declared SIBLING file of its onnx. The name
11693
11712
  * must be unique per tokenizer: every model's siblings land in ONE flat
@@ -12156,7 +12175,8 @@ var ConvertResultSchema = object({
12156
12175
  })).readonly()
12157
12176
  });
12158
12177
  _enum(["new-session", "step-up"]);
12159
- _enum(["en", "it"]);
12178
+ /** The languages the hub's app landing pages are written in (D858). */
12179
+ var AppPageLangSchema = _enum(["en", "it"]);
12160
12180
  /** How a native app starts one login method (D858), as `auth.listLoginMethods` reports it. */
12161
12181
  var AppLoginPathSchema = discriminatedUnion("kind", [object({ kind: literal("native") }), object({
12162
12182
  kind: literal("browser"),
@@ -12670,7 +12690,9 @@ var ConfigTabDeclarationSchema = object({
12670
12690
  var ConfigSectionWithValuesSchema = object({
12671
12691
  id: string(),
12672
12692
  title: string(),
12693
+ titleKey: string().optional(),
12673
12694
  description: string().optional(),
12695
+ descriptionKey: string().optional(),
12674
12696
  style: _enum(["card", "accordion"]).optional(),
12675
12697
  defaultCollapsed: boolean().optional(),
12676
12698
  columns: union([
@@ -15896,6 +15918,9 @@ method(object({
15896
15918
  }), method(object({ refs: RefListSchema }), KeychainResolveResultSchema, { auth: "admin" }), method(object({ refs: RefListSchema }), object({ deleted: number().int() }), {
15897
15919
  kind: "mutation",
15898
15920
  auth: "admin"
15921
+ }), method(object({ deviceId: number().int() }), object({ refs: array(string()).readonly() }), {
15922
+ kind: "mutation",
15923
+ auth: "admin"
15899
15924
  }), method(object({}), array(KeychainSecretMetaSchema).readonly(), { auth: "admin" }), method(object({}), KeychainStateSchema, { auth: "admin" });
15900
15925
  /**
15901
15926
  * device-history — the ONE mechanism for numeric history (D850).
@@ -37344,6 +37369,38 @@ var DeviceRegisterPayloadSchema = object({
37344
37369
  * omits it and the keyword backstop applies. */
37345
37370
  secretConfigPaths: array(string()).optional()
37346
37371
  });
37372
+ /** One deleted device, kept by device-manager so an addon that missed the
37373
+ * deletion can still learn of it (D865). Written by the delete path ONLY. */
37374
+ var DeviceTombstoneSchema = object({
37375
+ deviceId: number().int().positive(),
37376
+ /** Epoch ms the device was deleted. */
37377
+ deletedAt: number(),
37378
+ /** The addon that owned the device when it was deleted. */
37379
+ providerAddonId: string()
37380
+ });
37381
+ /** Data held for one device that device-manager no longer knows. */
37382
+ var OrphanDeviceDataSchema = object({
37383
+ deviceId: number().int().positive(),
37384
+ /** Rows/files per store (`<addonId>:<store>`). */
37385
+ stores: record(string(), number().int().nonnegative())
37386
+ });
37387
+ var CleanupDeletedDevicesResultSchema = object({
37388
+ /**
37389
+ * `skipped` — the absence check could not be trusted (a device-list read
37390
+ * failed or the two reads disagreed); nothing was listed or deleted.
37391
+ * `dry-run` — `devices` is what a confirmed run would delete.
37392
+ * `cleaned` — `devices` is what was deleted.
37393
+ */
37394
+ status: _enum([
37395
+ "skipped",
37396
+ "dry-run",
37397
+ "cleaned"
37398
+ ]),
37399
+ reason: string().nullable(),
37400
+ devices: array(OrphanDeviceDataSchema),
37401
+ /** Implementers that could not be asked (their stores are not in `devices`). */
37402
+ unreachable: array(string())
37403
+ });
37347
37404
  var DeviceRemovePayloadSchema = object({ deviceId: number() });
37348
37405
  var DevicePersistConfigPayloadSchema = object({
37349
37406
  deviceId: number(),
@@ -37582,6 +37639,9 @@ method(object({
37582
37639
  }), method(object({ deviceId: number() }), object({ success: literal(true) }), {
37583
37640
  kind: "mutation",
37584
37641
  auth: "admin"
37642
+ }), method(object({ sinceMs: number() }), array(DeviceTombstoneSchema).readonly(), { auth: "admin" }), method(object({ confirm: boolean() }), CleanupDeletedDevicesResultSchema, {
37643
+ kind: "mutation",
37644
+ auth: "admin"
37585
37645
  }), method(object({ integrationId: string() }), object({ removed: number() }), {
37586
37646
  kind: "mutation",
37587
37647
  auth: "admin"
@@ -38044,6 +38104,72 @@ method(object({
38044
38104
  auth: "admin"
38045
38105
  });
38046
38106
  /**
38107
+ * `device-removal-hook` — the reliable way an addon learns a device was DELETED,
38108
+ * so it can delete what it keeps for that device (D865).
38109
+ *
38110
+ * ## Why an event was not enough
38111
+ *
38112
+ * `DeviceUnregistered` is telemetry and may be dropped (D8, D11). An addon that
38113
+ * hung its per-device clean-up on it left durable garbage whenever the event was
38114
+ * lost, the addon was down, or it was restarting at that moment — footage,
38115
+ * analytics rows and settings of device 4483 outlived the device. Loss of this
38116
+ * signal corrupts durable state, so it travels by RPC with a recorded fact
38117
+ * behind it (D8: "if loss would corrupt durable state, use RPC plus a reconcile").
38118
+ *
38119
+ * ## The three pieces
38120
+ *
38121
+ * 1. device-manager records a TOMBSTONE per deleted device
38122
+ * (`deviceManager.listDeletedSince`). The tombstone is written by the delete
38123
+ * path only — a device that is unregistered, offline or whose provider is
38124
+ * restarting is NOT deleted and gets none.
38125
+ * 2. After a delete, device-manager calls `onDeviceRemoved` on EVERY provider of
38126
+ * this collection, one by one, with bounded retries, logged.
38127
+ * 3. An implementer that was down asks `deviceManager.listDeletedSince` at start
38128
+ * (and periodically) and runs its own `onDeviceRemoved` for each tombstone it
38129
+ * may have missed. Reconcile is driven by tombstones, never by "the device is
38130
+ * not in the current list": a failed or partial list read must not destroy data.
38131
+ *
38132
+ * ## Contract for an implementer
38133
+ *
38134
+ * - **Idempotent.** It is called again by a retry, by a reconcile and by the
38135
+ * admin cleanup of data that predates tombstones. A device with nothing left
38136
+ * answers zero counts.
38137
+ * - **One key per store** in `counts`, deleted rows/files per store, so the log
38138
+ * line and the admin dry run can say where the data was.
38139
+ * - **Training datasets are NOT device data** and are never deleted by a hook.
38140
+ * - **Per-device SETTINGS are not hooked.** Configuration lives in the standard
38141
+ * per-device store (`ctx.settings.*DeviceStore`), which device-manager clears
38142
+ * for every addon centrally at delete time. This hook is for device DATA
38143
+ * that is not settings: footage, event media, analytics rows, history.
38144
+ * - A provider that cannot tell is allowed to throw; the caller retries it.
38145
+ *
38146
+ * `listDeviceData` is the read side of the admin "Clean data of deleted devices"
38147
+ * action: which device ids this addon holds data for, and how much per store. It
38148
+ * never deletes. device-manager decides which of those ids are absent from the
38149
+ * fleet, from TWO consistent reads of the device list (D49).
38150
+ */
38151
+ /** What a hook is told about the deletion. */
38152
+ var DeviceRemovedInputSchema = object({
38153
+ deviceId: number().int().positive(),
38154
+ /** Epoch ms the device was deleted (the tombstone's `deletedAt`). */
38155
+ deletedAt: number(),
38156
+ /** The addon that owned the device, as device-manager last knew it. */
38157
+ providerAddonId: string()
38158
+ });
38159
+ /** Rows/files/refs deleted, per store this implementer owns. */
38160
+ var DeviceRemovedResultSchema = object({ counts: record(string(), number().int().nonnegative()) });
38161
+ /** One (store, device) pair an implementer holds data for. */
38162
+ var DeviceDataEntrySchema = object({
38163
+ store: string(),
38164
+ deviceId: number().int().positive(),
38165
+ /** Rows (or files) held for the device in the store. */
38166
+ count: number().int().nonnegative()
38167
+ });
38168
+ method(DeviceRemovedInputSchema, DeviceRemovedResultSchema, {
38169
+ kind: "mutation",
38170
+ auth: "admin"
38171
+ }), method(_void(), array(DeviceDataEntrySchema).readonly(), { auth: "admin" });
38172
+ /**
38047
38173
  * `failure-contribution` — the capability an addon reports its OWN losses
38048
38174
  * through, per camera, with the denominator attached. It stores nothing.
38049
38175
  *
@@ -55131,7 +55257,19 @@ var TlsStatusSchema = object({
55131
55257
  sans: array(string()),
55132
55258
  caCertPem: string().nullable(),
55133
55259
  reissueError: string().nullable(),
55134
- restartRequired: boolean()
55260
+ restartRequired: boolean(),
55261
+ /** An uploaded certificate is served but no CA is kept for it and it is not publicly signed (D873). */
55262
+ caMissing: boolean(),
55263
+ /** Does the hub's own generated CA carry a critical name constraint? `null` while it has none. */
55264
+ localCaConstrained: boolean().nullable(),
55265
+ /** ISO time the generated CA was replaced by a constrained one; devices must re-download it. */
55266
+ caReplacedAt: string().nullable(),
55267
+ /** The uploaded certificate kept on disk, selectable again after "Revert to generated". */
55268
+ storedUpload: object({
55269
+ leafFingerprintSha256: string(),
55270
+ validTo: string(),
55271
+ hasCa: boolean()
55272
+ }).nullable()
55135
55273
  });
55136
55274
  method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
55137
55275
  /**
@@ -55187,6 +55325,9 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
55187
55325
  }), method(_void(), object({ pem: string() })), method(_void(), TlsStatusSchema, {
55188
55326
  kind: "mutation",
55189
55327
  auth: "admin"
55328
+ }), method(_void(), TlsStatusSchema, {
55329
+ kind: "mutation",
55330
+ auth: "admin"
55190
55331
  });
55191
55332
  object({
55192
55333
  /** Lifecycle state of the lock. `jammed` means the motor reported
@@ -63489,6 +63630,12 @@ Object.freeze({
63489
63630
  addonId: null,
63490
63631
  access: "create"
63491
63632
  },
63633
+ "deviceManager.cleanupDeletedDevicesData": {
63634
+ capName: "device-manager",
63635
+ capScope: "system",
63636
+ addonId: null,
63637
+ access: "create"
63638
+ },
63492
63639
  "deviceManager.createDevice": {
63493
63640
  capName: "device-manager",
63494
63641
  capScope: "system",
@@ -63669,6 +63816,12 @@ Object.freeze({
63669
63816
  addonId: null,
63670
63817
  access: "view"
63671
63818
  },
63819
+ "deviceManager.listDeletedSince": {
63820
+ capName: "device-manager",
63821
+ capScope: "system",
63822
+ addonId: null,
63823
+ access: "view"
63824
+ },
63672
63825
  "deviceManager.listDeviceIdsByCaps": {
63673
63826
  capName: "device-manager",
63674
63827
  capScope: "system",
@@ -64077,6 +64230,18 @@ Object.freeze({
64077
64230
  addonId: null,
64078
64231
  access: "create"
64079
64232
  },
64233
+ "deviceRemovalHook.listDeviceData": {
64234
+ capName: "device-removal-hook",
64235
+ capScope: "system",
64236
+ addonId: null,
64237
+ access: "view"
64238
+ },
64239
+ "deviceRemovalHook.onDeviceRemoved": {
64240
+ capName: "device-removal-hook",
64241
+ capScope: "system",
64242
+ addonId: null,
64243
+ access: "create"
64244
+ },
64080
64245
  "deviceState.claimFields": {
64081
64246
  capName: "device-state",
64082
64247
  capScope: "system",
@@ -64509,6 +64674,12 @@ Object.freeze({
64509
64674
  addonId: null,
64510
64675
  access: "delete"
64511
64676
  },
64677
+ "keychain.deleteDeviceScope": {
64678
+ capName: "keychain",
64679
+ capScope: "system",
64680
+ addonId: null,
64681
+ access: "delete"
64682
+ },
64512
64683
  "keychain.getState": {
64513
64684
  capName: "keychain",
64514
64685
  capScope: "system",
@@ -64947,6 +65118,12 @@ Object.freeze({
64947
65118
  addonId: null,
64948
65119
  access: "create"
64949
65120
  },
65121
+ "localNetwork.useStoredUploadedCertificate": {
65122
+ capName: "local-network",
65123
+ capScope: "system",
65124
+ addonId: null,
65125
+ access: "create"
65126
+ },
64950
65127
  "lockControl.getStatus": {
64951
65128
  capName: "lock-control",
64952
65129
  capScope: "device",
@@ -70521,6 +70698,11 @@ Object.freeze({
70521
70698
  form: "single",
70522
70699
  optional: false
70523
70700
  }],
70701
+ "deviceRemovalHook.onDeviceRemoved": [{
70702
+ name: "deviceId",
70703
+ form: "single",
70704
+ optional: false
70705
+ }],
70524
70706
  "deviceState.claimFields": [{
70525
70707
  name: "deviceId",
70526
70708
  form: "single",
@@ -70710,6 +70892,11 @@ Object.freeze({
70710
70892
  form: "single",
70711
70893
  optional: false
70712
70894
  }],
70895
+ "keychain.deleteDeviceScope": [{
70896
+ name: "deviceId",
70897
+ form: "single",
70898
+ optional: false
70899
+ }],
70713
70900
  "lawnMowerControl.dock": [{
70714
70901
  name: "deviceId",
70715
70902
  form: "single",
@@ -73138,6 +73325,8 @@ new Set([
73138
73325
  "audio-tools",
73139
73326
  "audio-silence"
73140
73327
  ]);
73328
+ AppPageLangSchema.options;
73329
+ record(string().min(1), string());
73141
73330
  /**
73142
73331
  * TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
73143
73332
  *
@@ -74513,6 +74702,7 @@ Object.freeze({
74513
74702
  "device-export": ["listExposedDevices", "listSupportedDeviceKinds"],
74514
74703
  "device-extension": ["listSlots", "listSources"],
74515
74704
  "device-provider": ["discoverDevices", "getDevices"],
74705
+ "device-removal-hook": ["listDeviceData"],
74516
74706
  "failure-contribution": ["list"],
74517
74707
  "llm": [
74518
74708
  "getDefaults",