@camstack/addon-osd-manager 0.1.237 → 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 +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-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-axhhtI5J.mjs → hostInit-BdkaT5Cp.mjs} +3 -3
  11. package/dist/index.js +174 -4
  12. package/dist/index.mjs +174 -4
  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-CnEfWp78.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.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.291",
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,7 +12176,8 @@ var ConvertResultSchema = object({
12156
12176
  })).readonly()
12157
12177
  });
12158
12178
  _enum(["new-session", "step-up"]);
12159
- _enum(["en", "it"]);
12179
+ /** The languages the hub's app landing pages are written in (D858). */
12180
+ var AppPageLangSchema = _enum(["en", "it"]);
12160
12181
  /** How a native app starts one login method (D858), as `auth.listLoginMethods` reports it. */
12161
12182
  var AppLoginPathSchema = discriminatedUnion("kind", [object({ kind: literal("native") }), object({
12162
12183
  kind: literal("browser"),
@@ -12670,7 +12691,9 @@ var ConfigTabDeclarationSchema = object({
12670
12691
  var ConfigSectionWithValuesSchema = object({
12671
12692
  id: string(),
12672
12693
  title: string(),
12694
+ titleKey: string().optional(),
12673
12695
  description: string().optional(),
12696
+ descriptionKey: string().optional(),
12674
12697
  style: _enum(["card", "accordion"]).optional(),
12675
12698
  defaultCollapsed: boolean().optional(),
12676
12699
  columns: union([
@@ -15896,6 +15919,9 @@ method(object({
15896
15919
  }), method(object({ refs: RefListSchema }), KeychainResolveResultSchema, { auth: "admin" }), method(object({ refs: RefListSchema }), object({ deleted: number().int() }), {
15897
15920
  kind: "mutation",
15898
15921
  auth: "admin"
15922
+ }), method(object({ deviceId: number().int() }), object({ refs: array(string()).readonly() }), {
15923
+ kind: "mutation",
15924
+ auth: "admin"
15899
15925
  }), method(object({}), array(KeychainSecretMetaSchema).readonly(), { auth: "admin" }), method(object({}), KeychainStateSchema, { auth: "admin" });
15900
15926
  /**
15901
15927
  * device-history — the ONE mechanism for numeric history (D850).
@@ -37344,6 +37370,38 @@ var DeviceRegisterPayloadSchema = object({
37344
37370
  * omits it and the keyword backstop applies. */
37345
37371
  secretConfigPaths: array(string()).optional()
37346
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
+ });
37347
37405
  var DeviceRemovePayloadSchema = object({ deviceId: number() });
37348
37406
  var DevicePersistConfigPayloadSchema = object({
37349
37407
  deviceId: number(),
@@ -37582,6 +37640,9 @@ method(object({
37582
37640
  }), method(object({ deviceId: number() }), object({ success: literal(true) }), {
37583
37641
  kind: "mutation",
37584
37642
  auth: "admin"
37643
+ }), method(object({ sinceMs: number() }), array(DeviceTombstoneSchema).readonly(), { auth: "admin" }), method(object({ confirm: boolean() }), CleanupDeletedDevicesResultSchema, {
37644
+ kind: "mutation",
37645
+ auth: "admin"
37585
37646
  }), method(object({ integrationId: string() }), object({ removed: number() }), {
37586
37647
  kind: "mutation",
37587
37648
  auth: "admin"
@@ -38044,6 +38105,72 @@ method(object({
38044
38105
  auth: "admin"
38045
38106
  });
38046
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
+ /**
38047
38174
  * `failure-contribution` — the capability an addon reports its OWN losses
38048
38175
  * through, per camera, with the denominator attached. It stores nothing.
38049
38176
  *
@@ -63489,6 +63616,12 @@ Object.freeze({
63489
63616
  addonId: null,
63490
63617
  access: "create"
63491
63618
  },
63619
+ "deviceManager.cleanupDeletedDevicesData": {
63620
+ capName: "device-manager",
63621
+ capScope: "system",
63622
+ addonId: null,
63623
+ access: "create"
63624
+ },
63492
63625
  "deviceManager.createDevice": {
63493
63626
  capName: "device-manager",
63494
63627
  capScope: "system",
@@ -63669,6 +63802,12 @@ Object.freeze({
63669
63802
  addonId: null,
63670
63803
  access: "view"
63671
63804
  },
63805
+ "deviceManager.listDeletedSince": {
63806
+ capName: "device-manager",
63807
+ capScope: "system",
63808
+ addonId: null,
63809
+ access: "view"
63810
+ },
63672
63811
  "deviceManager.listDeviceIdsByCaps": {
63673
63812
  capName: "device-manager",
63674
63813
  capScope: "system",
@@ -64077,6 +64216,18 @@ Object.freeze({
64077
64216
  addonId: null,
64078
64217
  access: "create"
64079
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
+ },
64080
64231
  "deviceState.claimFields": {
64081
64232
  capName: "device-state",
64082
64233
  capScope: "system",
@@ -64509,6 +64660,12 @@ Object.freeze({
64509
64660
  addonId: null,
64510
64661
  access: "delete"
64511
64662
  },
64663
+ "keychain.deleteDeviceScope": {
64664
+ capName: "keychain",
64665
+ capScope: "system",
64666
+ addonId: null,
64667
+ access: "delete"
64668
+ },
64512
64669
  "keychain.getState": {
64513
64670
  capName: "keychain",
64514
64671
  capScope: "system",
@@ -70521,6 +70678,11 @@ Object.freeze({
70521
70678
  form: "single",
70522
70679
  optional: false
70523
70680
  }],
70681
+ "deviceRemovalHook.onDeviceRemoved": [{
70682
+ name: "deviceId",
70683
+ form: "single",
70684
+ optional: false
70685
+ }],
70524
70686
  "deviceState.claimFields": [{
70525
70687
  name: "deviceId",
70526
70688
  form: "single",
@@ -70710,6 +70872,11 @@ Object.freeze({
70710
70872
  form: "single",
70711
70873
  optional: false
70712
70874
  }],
70875
+ "keychain.deleteDeviceScope": [{
70876
+ name: "deviceId",
70877
+ form: "single",
70878
+ optional: false
70879
+ }],
70713
70880
  "lawnMowerControl.dock": [{
70714
70881
  name: "deviceId",
70715
70882
  form: "single",
@@ -73138,6 +73305,8 @@ new Set([
73138
73305
  "audio-tools",
73139
73306
  "audio-silence"
73140
73307
  ]);
73308
+ AppPageLangSchema.options;
73309
+ record(string().min(1), string());
73141
73310
  /**
73142
73311
  * TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
73143
73312
  *
@@ -74513,6 +74682,7 @@ Object.freeze({
74513
74682
  "device-export": ["listExposedDevices", "listSupportedDeviceKinds"],
74514
74683
  "device-extension": ["listSlots", "listSources"],
74515
74684
  "device-provider": ["discoverDevices", "getDevices"],
74685
+ "device-removal-hook": ["listDeviceData"],
74516
74686
  "failure-contribution": ["list"],
74517
74687
  "llm": [
74518
74688
  "getDefaults",
package/dist/index.mjs CHANGED
@@ -5386,7 +5386,7 @@ var ZodIssueCode = {
5386
5386
  var ZodFirstPartyTypeKind;
5387
5387
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5388
5388
  //#endregion
5389
- //#region ../types/dist/sleep-DAX0-2v9.mjs
5389
+ //#region ../types/dist/sleep-DRqxtc0C.mjs
5390
5390
  /**
5391
5391
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5392
5392
  * window to float samples (D455).
@@ -8154,8 +8154,12 @@ method(object({ deviceId: number() }), array(StreamSourceEntrySchema)), method(o
8154
8154
  kind: "mutation",
8155
8155
  auth: "admin"
8156
8156
  }), method(object({ deviceId: number() }), unknown().nullable()), method(object({ deviceId: number() }), RawStateResultSchema.nullable(), { auth: "protected" });
8157
+ object({
8158
+ code: string().regex(/^[a-z][a-z0-9-]*(\.[a-z0-9-]+)+$/),
8159
+ params: record(string(), union([string(), number()])).optional()
8160
+ });
8157
8161
  //#endregion
8158
- //#region ../types/dist/err-msg-DX6i_MY4.mjs
8162
+ //#region ../types/dist/err-msg-DLerKiVO.mjs
8159
8163
  var DeviceType = /* @__PURE__ */ function(DeviceType) {
8160
8164
  DeviceType["Camera"] = "camera";
8161
8165
  DeviceType["Hub"] = "hub";
@@ -8405,6 +8409,22 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
8405
8409
  DeviceRole["Nightvision"] = "nightvision";
8406
8410
  DeviceRole["PrivacyMask"] = "privacy-mask";
8407
8411
  DeviceRole["Doorbell"] = "doorbell";
8412
+ /** Interior blind / shade / roller blind. HA `device_class: blind|shade`. */
8413
+ DeviceRole["CoverBlind"] = "cover-blind";
8414
+ /** Exterior roller shutter. HA `device_class: shutter`; Homematic BROLL. */
8415
+ DeviceRole["CoverShutter"] = "cover-shutter";
8416
+ /** Exterior awning. HA `device_class: awning`. */
8417
+ DeviceRole["CoverAwning"] = "cover-awning";
8418
+ /** Curtain / drape. HA `device_class: curtain`. */
8419
+ DeviceRole["CoverCurtain"] = "cover-curtain";
8420
+ /** Garage door. HA `device_class: garage`. A security actuator: exports gate it. */
8421
+ DeviceRole["CoverGarage"] = "cover-garage";
8422
+ /** Gate. HA `device_class: gate`. A security actuator: exports gate it. */
8423
+ DeviceRole["CoverGate"] = "cover-gate";
8424
+ /** Door. HA `device_class: door`. A security actuator: exports gate it. */
8425
+ DeviceRole["CoverDoor"] = "cover-door";
8426
+ /** Window. HA `device_class: window`. */
8427
+ DeviceRole["CoverWindow"] = "cover-window";
8408
8428
  /** Virtual HA toggle (input_boolean.*) — distinguishable from a
8409
8429
  * real Switch device for UI rendering / export adapters. */
8410
8430
  DeviceRole["BinaryHelper"] = "binary-helper";
@@ -8475,7 +8495,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
8475
8495
  return DeviceRole;
8476
8496
  }({});
8477
8497
  //#endregion
8478
- //#region ../types/dist/composition-C-WpVYTX.mjs
8498
+ //#region ../types/dist/composition-EQ9Ok0Ee.mjs
8479
8499
  /**
8480
8500
  * The ffmpeg build every CamStack node downloads, per platform and arch.
8481
8501
  *
@@ -12152,7 +12172,8 @@ var ConvertResultSchema = object({
12152
12172
  })).readonly()
12153
12173
  });
12154
12174
  _enum(["new-session", "step-up"]);
12155
- _enum(["en", "it"]);
12175
+ /** The languages the hub's app landing pages are written in (D858). */
12176
+ var AppPageLangSchema = _enum(["en", "it"]);
12156
12177
  /** How a native app starts one login method (D858), as `auth.listLoginMethods` reports it. */
12157
12178
  var AppLoginPathSchema = discriminatedUnion("kind", [object({ kind: literal("native") }), object({
12158
12179
  kind: literal("browser"),
@@ -12666,7 +12687,9 @@ var ConfigTabDeclarationSchema = object({
12666
12687
  var ConfigSectionWithValuesSchema = object({
12667
12688
  id: string(),
12668
12689
  title: string(),
12690
+ titleKey: string().optional(),
12669
12691
  description: string().optional(),
12692
+ descriptionKey: string().optional(),
12670
12693
  style: _enum(["card", "accordion"]).optional(),
12671
12694
  defaultCollapsed: boolean().optional(),
12672
12695
  columns: union([
@@ -15892,6 +15915,9 @@ method(object({
15892
15915
  }), method(object({ refs: RefListSchema }), KeychainResolveResultSchema, { auth: "admin" }), method(object({ refs: RefListSchema }), object({ deleted: number().int() }), {
15893
15916
  kind: "mutation",
15894
15917
  auth: "admin"
15918
+ }), method(object({ deviceId: number().int() }), object({ refs: array(string()).readonly() }), {
15919
+ kind: "mutation",
15920
+ auth: "admin"
15895
15921
  }), method(object({}), array(KeychainSecretMetaSchema).readonly(), { auth: "admin" }), method(object({}), KeychainStateSchema, { auth: "admin" });
15896
15922
  /**
15897
15923
  * device-history — the ONE mechanism for numeric history (D850).
@@ -37340,6 +37366,38 @@ var DeviceRegisterPayloadSchema = object({
37340
37366
  * omits it and the keyword backstop applies. */
37341
37367
  secretConfigPaths: array(string()).optional()
37342
37368
  });
37369
+ /** One deleted device, kept by device-manager so an addon that missed the
37370
+ * deletion can still learn of it (D865). Written by the delete path ONLY. */
37371
+ var DeviceTombstoneSchema = object({
37372
+ deviceId: number().int().positive(),
37373
+ /** Epoch ms the device was deleted. */
37374
+ deletedAt: number(),
37375
+ /** The addon that owned the device when it was deleted. */
37376
+ providerAddonId: string()
37377
+ });
37378
+ /** Data held for one device that device-manager no longer knows. */
37379
+ var OrphanDeviceDataSchema = object({
37380
+ deviceId: number().int().positive(),
37381
+ /** Rows/files per store (`<addonId>:<store>`). */
37382
+ stores: record(string(), number().int().nonnegative())
37383
+ });
37384
+ var CleanupDeletedDevicesResultSchema = object({
37385
+ /**
37386
+ * `skipped` — the absence check could not be trusted (a device-list read
37387
+ * failed or the two reads disagreed); nothing was listed or deleted.
37388
+ * `dry-run` — `devices` is what a confirmed run would delete.
37389
+ * `cleaned` — `devices` is what was deleted.
37390
+ */
37391
+ status: _enum([
37392
+ "skipped",
37393
+ "dry-run",
37394
+ "cleaned"
37395
+ ]),
37396
+ reason: string().nullable(),
37397
+ devices: array(OrphanDeviceDataSchema),
37398
+ /** Implementers that could not be asked (their stores are not in `devices`). */
37399
+ unreachable: array(string())
37400
+ });
37343
37401
  var DeviceRemovePayloadSchema = object({ deviceId: number() });
37344
37402
  var DevicePersistConfigPayloadSchema = object({
37345
37403
  deviceId: number(),
@@ -37578,6 +37636,9 @@ method(object({
37578
37636
  }), method(object({ deviceId: number() }), object({ success: literal(true) }), {
37579
37637
  kind: "mutation",
37580
37638
  auth: "admin"
37639
+ }), method(object({ sinceMs: number() }), array(DeviceTombstoneSchema).readonly(), { auth: "admin" }), method(object({ confirm: boolean() }), CleanupDeletedDevicesResultSchema, {
37640
+ kind: "mutation",
37641
+ auth: "admin"
37581
37642
  }), method(object({ integrationId: string() }), object({ removed: number() }), {
37582
37643
  kind: "mutation",
37583
37644
  auth: "admin"
@@ -38040,6 +38101,72 @@ method(object({
38040
38101
  auth: "admin"
38041
38102
  });
38042
38103
  /**
38104
+ * `device-removal-hook` — the reliable way an addon learns a device was DELETED,
38105
+ * so it can delete what it keeps for that device (D865).
38106
+ *
38107
+ * ## Why an event was not enough
38108
+ *
38109
+ * `DeviceUnregistered` is telemetry and may be dropped (D8, D11). An addon that
38110
+ * hung its per-device clean-up on it left durable garbage whenever the event was
38111
+ * lost, the addon was down, or it was restarting at that moment — footage,
38112
+ * analytics rows and settings of device 4483 outlived the device. Loss of this
38113
+ * signal corrupts durable state, so it travels by RPC with a recorded fact
38114
+ * behind it (D8: "if loss would corrupt durable state, use RPC plus a reconcile").
38115
+ *
38116
+ * ## The three pieces
38117
+ *
38118
+ * 1. device-manager records a TOMBSTONE per deleted device
38119
+ * (`deviceManager.listDeletedSince`). The tombstone is written by the delete
38120
+ * path only — a device that is unregistered, offline or whose provider is
38121
+ * restarting is NOT deleted and gets none.
38122
+ * 2. After a delete, device-manager calls `onDeviceRemoved` on EVERY provider of
38123
+ * this collection, one by one, with bounded retries, logged.
38124
+ * 3. An implementer that was down asks `deviceManager.listDeletedSince` at start
38125
+ * (and periodically) and runs its own `onDeviceRemoved` for each tombstone it
38126
+ * may have missed. Reconcile is driven by tombstones, never by "the device is
38127
+ * not in the current list": a failed or partial list read must not destroy data.
38128
+ *
38129
+ * ## Contract for an implementer
38130
+ *
38131
+ * - **Idempotent.** It is called again by a retry, by a reconcile and by the
38132
+ * admin cleanup of data that predates tombstones. A device with nothing left
38133
+ * answers zero counts.
38134
+ * - **One key per store** in `counts`, deleted rows/files per store, so the log
38135
+ * line and the admin dry run can say where the data was.
38136
+ * - **Training datasets are NOT device data** and are never deleted by a hook.
38137
+ * - **Per-device SETTINGS are not hooked.** Configuration lives in the standard
38138
+ * per-device store (`ctx.settings.*DeviceStore`), which device-manager clears
38139
+ * for every addon centrally at delete time. This hook is for device DATA
38140
+ * that is not settings: footage, event media, analytics rows, history.
38141
+ * - A provider that cannot tell is allowed to throw; the caller retries it.
38142
+ *
38143
+ * `listDeviceData` is the read side of the admin "Clean data of deleted devices"
38144
+ * action: which device ids this addon holds data for, and how much per store. It
38145
+ * never deletes. device-manager decides which of those ids are absent from the
38146
+ * fleet, from TWO consistent reads of the device list (D49).
38147
+ */
38148
+ /** What a hook is told about the deletion. */
38149
+ var DeviceRemovedInputSchema = object({
38150
+ deviceId: number().int().positive(),
38151
+ /** Epoch ms the device was deleted (the tombstone's `deletedAt`). */
38152
+ deletedAt: number(),
38153
+ /** The addon that owned the device, as device-manager last knew it. */
38154
+ providerAddonId: string()
38155
+ });
38156
+ /** Rows/files/refs deleted, per store this implementer owns. */
38157
+ var DeviceRemovedResultSchema = object({ counts: record(string(), number().int().nonnegative()) });
38158
+ /** One (store, device) pair an implementer holds data for. */
38159
+ var DeviceDataEntrySchema = object({
38160
+ store: string(),
38161
+ deviceId: number().int().positive(),
38162
+ /** Rows (or files) held for the device in the store. */
38163
+ count: number().int().nonnegative()
38164
+ });
38165
+ method(DeviceRemovedInputSchema, DeviceRemovedResultSchema, {
38166
+ kind: "mutation",
38167
+ auth: "admin"
38168
+ }), method(_void(), array(DeviceDataEntrySchema).readonly(), { auth: "admin" });
38169
+ /**
38043
38170
  * `failure-contribution` — the capability an addon reports its OWN losses
38044
38171
  * through, per camera, with the denominator attached. It stores nothing.
38045
38172
  *
@@ -63485,6 +63612,12 @@ Object.freeze({
63485
63612
  addonId: null,
63486
63613
  access: "create"
63487
63614
  },
63615
+ "deviceManager.cleanupDeletedDevicesData": {
63616
+ capName: "device-manager",
63617
+ capScope: "system",
63618
+ addonId: null,
63619
+ access: "create"
63620
+ },
63488
63621
  "deviceManager.createDevice": {
63489
63622
  capName: "device-manager",
63490
63623
  capScope: "system",
@@ -63665,6 +63798,12 @@ Object.freeze({
63665
63798
  addonId: null,
63666
63799
  access: "view"
63667
63800
  },
63801
+ "deviceManager.listDeletedSince": {
63802
+ capName: "device-manager",
63803
+ capScope: "system",
63804
+ addonId: null,
63805
+ access: "view"
63806
+ },
63668
63807
  "deviceManager.listDeviceIdsByCaps": {
63669
63808
  capName: "device-manager",
63670
63809
  capScope: "system",
@@ -64073,6 +64212,18 @@ Object.freeze({
64073
64212
  addonId: null,
64074
64213
  access: "create"
64075
64214
  },
64215
+ "deviceRemovalHook.listDeviceData": {
64216
+ capName: "device-removal-hook",
64217
+ capScope: "system",
64218
+ addonId: null,
64219
+ access: "view"
64220
+ },
64221
+ "deviceRemovalHook.onDeviceRemoved": {
64222
+ capName: "device-removal-hook",
64223
+ capScope: "system",
64224
+ addonId: null,
64225
+ access: "create"
64226
+ },
64076
64227
  "deviceState.claimFields": {
64077
64228
  capName: "device-state",
64078
64229
  capScope: "system",
@@ -64505,6 +64656,12 @@ Object.freeze({
64505
64656
  addonId: null,
64506
64657
  access: "delete"
64507
64658
  },
64659
+ "keychain.deleteDeviceScope": {
64660
+ capName: "keychain",
64661
+ capScope: "system",
64662
+ addonId: null,
64663
+ access: "delete"
64664
+ },
64508
64665
  "keychain.getState": {
64509
64666
  capName: "keychain",
64510
64667
  capScope: "system",
@@ -70517,6 +70674,11 @@ Object.freeze({
70517
70674
  form: "single",
70518
70675
  optional: false
70519
70676
  }],
70677
+ "deviceRemovalHook.onDeviceRemoved": [{
70678
+ name: "deviceId",
70679
+ form: "single",
70680
+ optional: false
70681
+ }],
70520
70682
  "deviceState.claimFields": [{
70521
70683
  name: "deviceId",
70522
70684
  form: "single",
@@ -70706,6 +70868,11 @@ Object.freeze({
70706
70868
  form: "single",
70707
70869
  optional: false
70708
70870
  }],
70871
+ "keychain.deleteDeviceScope": [{
70872
+ name: "deviceId",
70873
+ form: "single",
70874
+ optional: false
70875
+ }],
70709
70876
  "lawnMowerControl.dock": [{
70710
70877
  name: "deviceId",
70711
70878
  form: "single",
@@ -73134,6 +73301,8 @@ new Set([
73134
73301
  "audio-tools",
73135
73302
  "audio-silence"
73136
73303
  ]);
73304
+ AppPageLangSchema.options;
73305
+ record(string().min(1), string());
73137
73306
  /**
73138
73307
  * TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
73139
73308
  *
@@ -74509,6 +74678,7 @@ Object.freeze({
74509
74678
  "device-export": ["listExposedDevices", "listSupportedDeviceKinds"],
74510
74679
  "device-extension": ["listSlots", "listSources"],
74511
74680
  "device-provider": ["discoverDevices", "getDevices"],
74681
+ "device-removal-hook": ["listDeviceData"],
74512
74682
  "failure-contribution": ["list"],
74513
74683
  "llm": [
74514
74684
  "getDefaults",
@@ -0,0 +1,44 @@
1
+ import { S as e, d as t, u as n, v as r } from "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react__loadShare__.js-C-pbjC7c.mjs";
2
+ import { n as i, r as a, t as o } from "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-DalfdIDw.mjs";
3
+ import { c as s, l as c } from "./responsive-CvSyX7h3.mjs";
4
+ var l = c("chevron-down", [["path", {
5
+ d: "m6 9 6 6 6-6",
6
+ key: "qrunsl"
7
+ }]]), u = c("chevron-right", [["path", {
8
+ d: "m9 18 6-6-6-6",
9
+ key: "mthhwq"
10
+ }]]);
11
+ //#endregion
12
+ //#region ../ui-library/src/composites/widget-panel.tsx
13
+ e();
14
+ function d({ title: e, icon: t, headerRight: n, collapsible: s = !1, defaultOpen: c = !0, bodyClassName: d = "p-3", children: f }) {
15
+ let [p, m] = r(c), h = !s || p, g = /* @__PURE__ */ a(o, { children: [/* @__PURE__ */ a("span", {
16
+ className: "flex items-center gap-2 text-xs font-semibold uppercase tracking-wider text-foreground",
17
+ children: [t, e]
18
+ }), s ? i(p ? l : u, { className: "h-3.5 w-3.5 text-foreground-subtle" }) : n] }), _ = `px-4 py-2 flex items-center justify-between ${h ? "border-b border-border" : ""}`;
19
+ return /* @__PURE__ */ a("div", {
20
+ className: "rounded-lg border border-border bg-surface overflow-hidden",
21
+ children: [s ? /* @__PURE__ */ i("button", {
22
+ type: "button",
23
+ onClick: () => m((e) => !e),
24
+ className: `w-full text-left ${_}`,
25
+ children: g
26
+ }) : /* @__PURE__ */ i("div", {
27
+ className: _,
28
+ children: g
29
+ }), h ? /* @__PURE__ */ i("div", {
30
+ className: d,
31
+ children: f
32
+ }) : null]
33
+ });
34
+ }
35
+ e(), s("camstack:player-overlays-state", null);
36
+ var f = s("camstack:player-overlays-actions", null);
37
+ function p(e) {
38
+ let r = n(f);
39
+ t(() => {
40
+ if (!(!r || !e)) return r.setLayer(e), () => r.removeLayer(e.id);
41
+ }, [r, e]);
42
+ }
43
+ //#endregion
44
+ export { l as i, d as n, u as r, p as t };
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-Cz3C_9Hg.mjs";
1
+ import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-CnEfWp78.mjs";
2
2
  export { t as get, e as init };