@camstack/addon-osd-manager 0.1.236 → 0.1.238

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 +6978 -6349
  6. package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-BPgZSZ-3.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-0ArFGpGl.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-iQV7js-A.mjs → hostInit-BdkaT5Cp.mjs} +3 -3
  11. package/dist/index.js +199 -5
  12. package/dist/index.mjs +199 -5
  13. package/dist/player-overlays-B4efNR1A.mjs +44 -0
  14. package/dist/remoteEntry.js +1 -1
  15. package/dist/{responsive-BP2NYfOi.mjs → responsive-CvSyX7h3.mjs} +35 -35
  16. package/dist/scene-monitor-copy-QAemI7ef.mjs +227 -0
  17. package/dist/{square-BHCEqr7g.mjs → square-BG-oZkZc.mjs} +1 -1
  18. package/dist/{trash-2-BGZFyowm.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-Ch_9U0JF.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-CnEfWp78.mjs} +1 -1
  21. package/package.json +1 -1
  22. package/dist/MotionZonesSettings--WB2aUGD.mjs +0 -310
  23. package/dist/PrivacyMaskSettings-TGecGZ1J.mjs +0 -377
  24. package/dist/SceneMonitorEditor-Cq3bsqmJ.mjs +0 -831
  25. package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DVHQfCvU.mjs +0 -26
  26. package/dist/player-overlays-D0twFHMl.mjs +0 -44
  27. package/dist/scene-monitor-copy-DYchveQT.mjs +0 -187
@@ -36,7 +36,7 @@ async function r() {
36
36
  }
37
37
  },
38
38
  "@camstack/types": {
39
- version: "1.2.372",
39
+ version: "1.2.374",
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.290",
84
+ version: "1.2.292",
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
  *
@@ -12156,6 +12176,8 @@ var ConvertResultSchema = object({
12156
12176
  })).readonly()
12157
12177
  });
12158
12178
  _enum(["new-session", "step-up"]);
12179
+ /** The languages the hub's app landing pages are written in (D858). */
12180
+ var AppPageLangSchema = _enum(["en", "it"]);
12159
12181
  /** How a native app starts one login method (D858), as `auth.listLoginMethods` reports it. */
12160
12182
  var AppLoginPathSchema = discriminatedUnion("kind", [object({ kind: literal("native") }), object({
12161
12183
  kind: literal("browser"),
@@ -12669,7 +12691,9 @@ var ConfigTabDeclarationSchema = object({
12669
12691
  var ConfigSectionWithValuesSchema = object({
12670
12692
  id: string(),
12671
12693
  title: string(),
12694
+ titleKey: string().optional(),
12672
12695
  description: string().optional(),
12696
+ descriptionKey: string().optional(),
12673
12697
  style: _enum(["card", "accordion"]).optional(),
12674
12698
  defaultCollapsed: boolean().optional(),
12675
12699
  columns: union([
@@ -15895,6 +15919,9 @@ method(object({
15895
15919
  }), method(object({ refs: RefListSchema }), KeychainResolveResultSchema, { auth: "admin" }), method(object({ refs: RefListSchema }), object({ deleted: number().int() }), {
15896
15920
  kind: "mutation",
15897
15921
  auth: "admin"
15922
+ }), method(object({ deviceId: number().int() }), object({ refs: array(string()).readonly() }), {
15923
+ kind: "mutation",
15924
+ auth: "admin"
15898
15925
  }), method(object({}), array(KeychainSecretMetaSchema).readonly(), { auth: "admin" }), method(object({}), KeychainStateSchema, { auth: "admin" });
15899
15926
  /**
15900
15927
  * device-history — the ONE mechanism for numeric history (D850).
@@ -37343,6 +37370,38 @@ var DeviceRegisterPayloadSchema = object({
37343
37370
  * omits it and the keyword backstop applies. */
37344
37371
  secretConfigPaths: array(string()).optional()
37345
37372
  });
37373
+ /** One deleted device, kept by device-manager so an addon that missed the
37374
+ * deletion can still learn of it (D865). Written by the delete path ONLY. */
37375
+ var DeviceTombstoneSchema = object({
37376
+ deviceId: number().int().positive(),
37377
+ /** Epoch ms the device was deleted. */
37378
+ deletedAt: number(),
37379
+ /** The addon that owned the device when it was deleted. */
37380
+ providerAddonId: string()
37381
+ });
37382
+ /** Data held for one device that device-manager no longer knows. */
37383
+ var OrphanDeviceDataSchema = object({
37384
+ deviceId: number().int().positive(),
37385
+ /** Rows/files per store (`<addonId>:<store>`). */
37386
+ stores: record(string(), number().int().nonnegative())
37387
+ });
37388
+ var CleanupDeletedDevicesResultSchema = object({
37389
+ /**
37390
+ * `skipped` — the absence check could not be trusted (a device-list read
37391
+ * failed or the two reads disagreed); nothing was listed or deleted.
37392
+ * `dry-run` — `devices` is what a confirmed run would delete.
37393
+ * `cleaned` — `devices` is what was deleted.
37394
+ */
37395
+ status: _enum([
37396
+ "skipped",
37397
+ "dry-run",
37398
+ "cleaned"
37399
+ ]),
37400
+ reason: string().nullable(),
37401
+ devices: array(OrphanDeviceDataSchema),
37402
+ /** Implementers that could not be asked (their stores are not in `devices`). */
37403
+ unreachable: array(string())
37404
+ });
37346
37405
  var DeviceRemovePayloadSchema = object({ deviceId: number() });
37347
37406
  var DevicePersistConfigPayloadSchema = object({
37348
37407
  deviceId: number(),
@@ -37581,6 +37640,9 @@ method(object({
37581
37640
  }), method(object({ deviceId: number() }), object({ success: literal(true) }), {
37582
37641
  kind: "mutation",
37583
37642
  auth: "admin"
37643
+ }), method(object({ sinceMs: number() }), array(DeviceTombstoneSchema).readonly(), { auth: "admin" }), method(object({ confirm: boolean() }), CleanupDeletedDevicesResultSchema, {
37644
+ kind: "mutation",
37645
+ auth: "admin"
37584
37646
  }), method(object({ integrationId: string() }), object({ removed: number() }), {
37585
37647
  kind: "mutation",
37586
37648
  auth: "admin"
@@ -38043,6 +38105,72 @@ method(object({
38043
38105
  auth: "admin"
38044
38106
  });
38045
38107
  /**
38108
+ * `device-removal-hook` — the reliable way an addon learns a device was DELETED,
38109
+ * so it can delete what it keeps for that device (D865).
38110
+ *
38111
+ * ## Why an event was not enough
38112
+ *
38113
+ * `DeviceUnregistered` is telemetry and may be dropped (D8, D11). An addon that
38114
+ * hung its per-device clean-up on it left durable garbage whenever the event was
38115
+ * lost, the addon was down, or it was restarting at that moment — footage,
38116
+ * analytics rows and settings of device 4483 outlived the device. Loss of this
38117
+ * signal corrupts durable state, so it travels by RPC with a recorded fact
38118
+ * behind it (D8: "if loss would corrupt durable state, use RPC plus a reconcile").
38119
+ *
38120
+ * ## The three pieces
38121
+ *
38122
+ * 1. device-manager records a TOMBSTONE per deleted device
38123
+ * (`deviceManager.listDeletedSince`). The tombstone is written by the delete
38124
+ * path only — a device that is unregistered, offline or whose provider is
38125
+ * restarting is NOT deleted and gets none.
38126
+ * 2. After a delete, device-manager calls `onDeviceRemoved` on EVERY provider of
38127
+ * this collection, one by one, with bounded retries, logged.
38128
+ * 3. An implementer that was down asks `deviceManager.listDeletedSince` at start
38129
+ * (and periodically) and runs its own `onDeviceRemoved` for each tombstone it
38130
+ * may have missed. Reconcile is driven by tombstones, never by "the device is
38131
+ * not in the current list": a failed or partial list read must not destroy data.
38132
+ *
38133
+ * ## Contract for an implementer
38134
+ *
38135
+ * - **Idempotent.** It is called again by a retry, by a reconcile and by the
38136
+ * admin cleanup of data that predates tombstones. A device with nothing left
38137
+ * answers zero counts.
38138
+ * - **One key per store** in `counts`, deleted rows/files per store, so the log
38139
+ * line and the admin dry run can say where the data was.
38140
+ * - **Training datasets are NOT device data** and are never deleted by a hook.
38141
+ * - **Per-device SETTINGS are not hooked.** Configuration lives in the standard
38142
+ * per-device store (`ctx.settings.*DeviceStore`), which device-manager clears
38143
+ * for every addon centrally at delete time. This hook is for device DATA
38144
+ * that is not settings: footage, event media, analytics rows, history.
38145
+ * - A provider that cannot tell is allowed to throw; the caller retries it.
38146
+ *
38147
+ * `listDeviceData` is the read side of the admin "Clean data of deleted devices"
38148
+ * action: which device ids this addon holds data for, and how much per store. It
38149
+ * never deletes. device-manager decides which of those ids are absent from the
38150
+ * fleet, from TWO consistent reads of the device list (D49).
38151
+ */
38152
+ /** What a hook is told about the deletion. */
38153
+ var DeviceRemovedInputSchema = object({
38154
+ deviceId: number().int().positive(),
38155
+ /** Epoch ms the device was deleted (the tombstone's `deletedAt`). */
38156
+ deletedAt: number(),
38157
+ /** The addon that owned the device, as device-manager last knew it. */
38158
+ providerAddonId: string()
38159
+ });
38160
+ /** Rows/files/refs deleted, per store this implementer owns. */
38161
+ var DeviceRemovedResultSchema = object({ counts: record(string(), number().int().nonnegative()) });
38162
+ /** One (store, device) pair an implementer holds data for. */
38163
+ var DeviceDataEntrySchema = object({
38164
+ store: string(),
38165
+ deviceId: number().int().positive(),
38166
+ /** Rows (or files) held for the device in the store. */
38167
+ count: number().int().nonnegative()
38168
+ });
38169
+ method(DeviceRemovedInputSchema, DeviceRemovedResultSchema, {
38170
+ kind: "mutation",
38171
+ auth: "admin"
38172
+ }), method(_void(), array(DeviceDataEntrySchema).readonly(), { auth: "admin" });
38173
+ /**
38046
38174
  * `failure-contribution` — the capability an addon reports its OWN losses
38047
38175
  * through, per camera, with the denominator attached. It stores nothing.
38048
38176
  *
@@ -50171,7 +50299,9 @@ var SsoBridgeClaimsSchema = object({
50171
50299
  codeChallenge: string(),
50172
50300
  state: string(),
50173
50301
  purpose: _enum(["new-session", "step-up"]),
50174
- redirect: string()
50302
+ redirect: string(),
50303
+ /** The page language the app asked for (D858); the confirm page speaks it. */
50304
+ lang: _enum(["en", "it"]).optional()
50175
50305
  }).optional()
50176
50306
  });
50177
50307
  method(object({
@@ -59597,6 +59727,21 @@ DeviceType.Switch, DeviceType.Siren, DeviceType.Light, method(object({
59597
59727
  on: boolean(),
59598
59728
  lastChangedAt: number()
59599
59729
  });
59730
+ /** C0 controls, DEL and the C1 range: none of them belongs in a name. */
59731
+ function hasControlCharacter(value) {
59732
+ for (const char of value) {
59733
+ const code = char.codePointAt(0) ?? 0;
59734
+ if (code <= 31 || code >= 127 && code <= 159) return true;
59735
+ }
59736
+ return false;
59737
+ }
59738
+ string().transform((value) => value.trim()).pipe(string().min(1, "The server name cannot be empty").max(48, `The server name is at most 48 characters`).refine((value) => !hasControlCharacter(value), { message: "The server name cannot contain control characters" }));
59739
+ /** What every reader gets: the name to show, and whether the hub chose it itself. */
59740
+ var ServerNameInfoSchema = object({
59741
+ name: string(),
59742
+ /** `true` when nobody named the hub: `name` is the machine hostname. */
59743
+ isDefault: boolean()
59744
+ });
59600
59745
  /**
59601
59746
  * system — system-scoped singleton capability exposing hub-level
59602
59747
  * health, feature flags, network interface enumeration, and the
@@ -59626,6 +59771,12 @@ var FeatureManifestSchema = object({
59626
59771
  backup: boolean(),
59627
59772
  repl: boolean()
59628
59773
  });
59774
+ /**
59775
+ * `system.info`: the feature flags plus the hub's human name (D861). The name is
59776
+ * `{ name, isDefault }` — `isDefault: true` means nobody named the hub and `name`
59777
+ * is the machine hostname.
59778
+ */
59779
+ var SystemInfoSchema = FeatureManifestSchema.extend({ serverName: ServerNameInfoSchema });
59629
59780
  var HealthStatusSchema = object({
59630
59781
  status: literal("ok"),
59631
59782
  uptime: number()
@@ -60098,7 +60249,7 @@ var LoggingSettingsStateSchema = object({
60098
60249
  opsLogRetentionDays: number().int().min(0),
60099
60250
  persisted: boolean()
60100
60251
  });
60101
- method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), method(_void(), FeatureManifestSchema), method(_void(), array(NetworkAddressSchema).readonly()), method(_void(), unknown().nullable(), { auth: "admin" }), method(record(string(), unknown()), _null(), {
60252
+ method(_void(), SystemInfoSchema), method(_void(), HealthStatusSchema), method(_void(), FeatureManifestSchema), method(_void(), array(NetworkAddressSchema).readonly()), method(_void(), unknown().nullable(), { auth: "admin" }), method(record(string(), unknown()), _null(), {
60102
60253
  kind: "mutation",
60103
60254
  auth: "admin"
60104
60255
  }), method(_void(), _void(), {
@@ -63465,6 +63616,12 @@ Object.freeze({
63465
63616
  addonId: null,
63466
63617
  access: "create"
63467
63618
  },
63619
+ "deviceManager.cleanupDeletedDevicesData": {
63620
+ capName: "device-manager",
63621
+ capScope: "system",
63622
+ addonId: null,
63623
+ access: "create"
63624
+ },
63468
63625
  "deviceManager.createDevice": {
63469
63626
  capName: "device-manager",
63470
63627
  capScope: "system",
@@ -63645,6 +63802,12 @@ Object.freeze({
63645
63802
  addonId: null,
63646
63803
  access: "view"
63647
63804
  },
63805
+ "deviceManager.listDeletedSince": {
63806
+ capName: "device-manager",
63807
+ capScope: "system",
63808
+ addonId: null,
63809
+ access: "view"
63810
+ },
63648
63811
  "deviceManager.listDeviceIdsByCaps": {
63649
63812
  capName: "device-manager",
63650
63813
  capScope: "system",
@@ -64053,6 +64216,18 @@ Object.freeze({
64053
64216
  addonId: null,
64054
64217
  access: "create"
64055
64218
  },
64219
+ "deviceRemovalHook.listDeviceData": {
64220
+ capName: "device-removal-hook",
64221
+ capScope: "system",
64222
+ addonId: null,
64223
+ access: "view"
64224
+ },
64225
+ "deviceRemovalHook.onDeviceRemoved": {
64226
+ capName: "device-removal-hook",
64227
+ capScope: "system",
64228
+ addonId: null,
64229
+ access: "create"
64230
+ },
64056
64231
  "deviceState.claimFields": {
64057
64232
  capName: "device-state",
64058
64233
  capScope: "system",
@@ -64485,6 +64660,12 @@ Object.freeze({
64485
64660
  addonId: null,
64486
64661
  access: "delete"
64487
64662
  },
64663
+ "keychain.deleteDeviceScope": {
64664
+ capName: "keychain",
64665
+ capScope: "system",
64666
+ addonId: null,
64667
+ access: "delete"
64668
+ },
64488
64669
  "keychain.getState": {
64489
64670
  capName: "keychain",
64490
64671
  capScope: "system",
@@ -70497,6 +70678,11 @@ Object.freeze({
70497
70678
  form: "single",
70498
70679
  optional: false
70499
70680
  }],
70681
+ "deviceRemovalHook.onDeviceRemoved": [{
70682
+ name: "deviceId",
70683
+ form: "single",
70684
+ optional: false
70685
+ }],
70500
70686
  "deviceState.claimFields": [{
70501
70687
  name: "deviceId",
70502
70688
  form: "single",
@@ -70686,6 +70872,11 @@ Object.freeze({
70686
70872
  form: "single",
70687
70873
  optional: false
70688
70874
  }],
70875
+ "keychain.deleteDeviceScope": [{
70876
+ name: "deviceId",
70877
+ form: "single",
70878
+ optional: false
70879
+ }],
70689
70880
  "lawnMowerControl.dock": [{
70690
70881
  name: "deviceId",
70691
70882
  form: "single",
@@ -73114,6 +73305,8 @@ new Set([
73114
73305
  "audio-tools",
73115
73306
  "audio-silence"
73116
73307
  ]);
73308
+ AppPageLangSchema.options;
73309
+ record(string().min(1), string());
73117
73310
  /**
73118
73311
  * TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
73119
73312
  *
@@ -74489,6 +74682,7 @@ Object.freeze({
74489
74682
  "device-export": ["listExposedDevices", "listSupportedDeviceKinds"],
74490
74683
  "device-extension": ["listSlots", "listSources"],
74491
74684
  "device-provider": ["discoverDevices", "getDevices"],
74685
+ "device-removal-hook": ["listDeviceData"],
74492
74686
  "failure-contribution": ["list"],
74493
74687
  "llm": [
74494
74688
  "getDefaults",