@camstack/addon-osd-manager 0.1.147 → 0.1.148

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 (18) hide show
  1. package/dist/{MotionZonesSettings-Cl9gZOV7.mjs → MotionZonesSettings-BE9WUdRt.mjs} +2 -2
  2. package/dist/{PrivacyMaskSettings-CmjVGh1h.mjs → PrivacyMaskSettings-DS9QMvLQ.mjs} +4 -4
  3. package/dist/{SceneMonitorEditor-Dax82W7l.mjs → SceneMonitorEditor-Dp9VUno1.mjs} +3 -3
  4. package/dist/_stub.js +10 -10
  5. package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-DCyAXIPW.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-BrVYU0wm.mjs} +3 -3
  6. package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-CCyGyV4m.mjs +26 -0
  7. package/dist/{hostInit-DxFYPF2F.mjs → hostInit-5x_5PqnW.mjs} +2 -2
  8. package/dist/index.js +136 -166
  9. package/dist/index.mjs +136 -166
  10. package/dist/{player-overlays-BuQ-2VK8.mjs → player-overlays-BF0CGxFK.mjs} +1 -1
  11. package/dist/remoteEntry.js +1 -1
  12. package/dist/{responsive-BichBHK9.mjs → responsive-COf1R73i.mjs} +1 -1
  13. package/dist/{scene-monitor-copy-QX-VgNUL.mjs → scene-monitor-copy-D_ksge64.mjs} +1 -1
  14. package/dist/{square-DMng_M2f.mjs → square-D6ZZGuyC.mjs} +1 -1
  15. package/dist/{trash-2-DNfdpYqK.mjs → trash-2-B-TzfoNr.mjs} +1 -1
  16. package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-BNtu7hef.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-Cq_qaEBf.mjs} +1 -1
  17. package/package.json +1 -1
  18. package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-Dmev7UC0.mjs +0 -26
package/dist/index.js CHANGED
@@ -5373,7 +5373,7 @@ var ZodIssueCode = {
5373
5373
  var ZodFirstPartyTypeKind;
5374
5374
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5375
5375
  //#endregion
5376
- //#region ../types/dist/sleep-DlrgY4Qb.mjs
5376
+ //#region ../types/dist/sleep-C-v96WpE.mjs
5377
5377
  /**
5378
5378
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5379
5379
  * window to float samples (D455).
@@ -8320,7 +8320,6 @@ var CompositionSchema = object({
8320
8320
  });
8321
8321
  new Set([
8322
8322
  "track",
8323
- "summary",
8324
8323
  "face",
8325
8324
  "identity",
8326
8325
  "plate",
@@ -23404,6 +23403,102 @@ var oauthIntegrationCapability = {
23404
23403
  getDescriptor: method(_void(), OauthIntegrationDescriptorSchema, { auth: "admin" }) }
23405
23404
  };
23406
23405
  /**
23406
+ * What started a camera's onboard motion (D672). `camera` is the camera's own
23407
+ * firmware; `sensor` is a device the operator ATTACHED to it. Absent on the
23408
+ * wire means the camera: only the camera-sensors bridge ever says `sensor`.
23409
+ */
23410
+ var MotionTriggeredBySchema = discriminatedUnion("kind", [object({ kind: literal("camera") }), object({
23411
+ kind: literal("sensor"),
23412
+ deviceId: number().int().positive()
23413
+ })]);
23414
+ Object.freeze({ kind: "camera" });
23415
+ var CameraSensorRefSchema = object({
23416
+ addonId: string().min(1),
23417
+ stableId: string().min(1)
23418
+ });
23419
+ function cameraSensorRefKey(ref) {
23420
+ return `${ref.addonId}/${ref.stableId}`;
23421
+ }
23422
+ /** CS-1 accepts exactly one mode; CS-2 (D673) widens it to confirm / replace. */
23423
+ var CameraSensorsModeSchema = _enum(["in-addition"]);
23424
+ object({
23425
+ mode: CameraSensorsModeSchema,
23426
+ sensors: array(CameraSensorRefSchema).min(1).max(8)
23427
+ }).superRefine((value, ctx) => {
23428
+ const seen = /* @__PURE__ */ new Set();
23429
+ value.sensors.forEach((ref, index) => {
23430
+ const key = cameraSensorRefKey(ref);
23431
+ if (seen.has(key)) ctx.addIssue({
23432
+ code: "custom",
23433
+ path: ["sensors", index],
23434
+ message: `duplicate camera sensor ${key}`
23435
+ });
23436
+ seen.add(key);
23437
+ });
23438
+ });
23439
+ var RefFields = {
23440
+ addonId: string(),
23441
+ stableId: string()
23442
+ };
23443
+ var CameraSensorAttachmentSchema = discriminatedUnion("state", [
23444
+ object({
23445
+ ...RefFields,
23446
+ state: literal("ready"),
23447
+ deviceId: number(),
23448
+ name: string(),
23449
+ caps: array(string()).readonly()
23450
+ }),
23451
+ object({
23452
+ ...RefFields,
23453
+ state: literal("offline"),
23454
+ deviceId: number(),
23455
+ name: string(),
23456
+ reason: _enum(["offline", "disabled"])
23457
+ }),
23458
+ object({
23459
+ ...RefFields,
23460
+ state: literal("missing"),
23461
+ reason: string()
23462
+ }),
23463
+ object({
23464
+ ...RefFields,
23465
+ state: literal("unsupported"),
23466
+ deviceId: number(),
23467
+ name: string(),
23468
+ reason: string()
23469
+ }),
23470
+ object({
23471
+ ...RefFields,
23472
+ state: literal("unreadable"),
23473
+ reason: string()
23474
+ })
23475
+ ]);
23476
+ /**
23477
+ * Why a configured camera forwards NOTHING from its sensors, however ready they
23478
+ * are (D672): it does not list `onboard` in `motionSources` (attaching a sensor
23479
+ * does not add it), or it has no active detection config at all (the bridge
23480
+ * reads the active config). Absent = forwarded, or an older node that does not
23481
+ * say.
23482
+ */
23483
+ var CameraSensorsNotForwardedSchema = _enum(["onboard-not-listed", "no-active-detection"]);
23484
+ var CameraSensorsStatusSchema = discriminatedUnion("state", [
23485
+ object({ state: literal("not-configured") }),
23486
+ object({
23487
+ state: literal("unreadable"),
23488
+ reason: string()
23489
+ }),
23490
+ object({
23491
+ state: literal("configured"),
23492
+ mode: CameraSensorsModeSchema,
23493
+ sensors: array(CameraSensorAttachmentSchema).readonly(),
23494
+ notForwarded: CameraSensorsNotForwardedSchema.optional()
23495
+ })
23496
+ ]);
23497
+ Object.freeze({
23498
+ state: "unreadable",
23499
+ reason: "camera sensor mappings not loaded"
23500
+ });
23501
+ /**
23407
23502
  * A model choice has a SCOPE, and a scope change has a workflow.
23408
23503
  *
23409
23504
  * ## The two scopes
@@ -24152,6 +24247,12 @@ var MotionEventSchema = object({
24152
24247
  /** Populated by B5 (recording playback URL for this event). */
24153
24248
  mediaUrl: string().optional(),
24154
24249
  /**
24250
+ * The FIRST trigger of an `onboard` episode, written once at open (D672).
24251
+ * Absent = not recorded (a row written before D672, or an analyzer /
24252
+ * device-activity episode) — never read as "the camera" (D393).
24253
+ */
24254
+ triggeredBy: MotionTriggeredBySchema.optional(),
24255
+ /**
24155
24256
  * One row per motion EPISODE, not one per push (D475). `null` while the
24156
24257
  * episode is still open — a further rising edge extends it in place rather
24157
24258
  * than inserting a new row. Set once, at close, to `lastOnAt - startedAt`
@@ -24645,131 +24746,6 @@ var RecentTracksQueryInput = object({
24645
24746
  /** See {@link ExcludeSourcesDoc}. */
24646
24747
  excludeSources: array(TrackSourceSchema).optional()
24647
24748
  });
24648
- /**
24649
- * A Summary (D359): the per-camera session envelope that references tracks.
24650
- * `groupShotMediaId` is the media ROW id of its group shot (`ownerKind:
24651
- * 'summary'`, served by the event-media plane at `/m/<id>`), null until the
24652
- * first frame with a member visible has been materialised (D482 — it was the
24653
- * row's composite key, which embedded the owner and could name another table's
24654
- * row once event ids became per-table rowids).
24655
- */
24656
- var SummarySchema = object({
24657
- id: string(),
24658
- deviceId: number(),
24659
- openedAt: number(),
24660
- lastActiveAt: number(),
24661
- sealedAt: number().nullable(),
24662
- memberCount: number().int().nonnegative(),
24663
- groupShotMediaId: number().int().nullable()
24664
- });
24665
- var SummariesQueryInput = object({
24666
- deviceIds: array(number()).min(1),
24667
- since: number().optional(),
24668
- until: number().optional(),
24669
- limit: number().int().min(1).max(200).default(50),
24670
- /** The same member-wise filter {@link listRecentSummaries} takes — one
24671
- * meaning of "dog" on every summary surface. */
24672
- classes: array(string().min(1).max(60)).max(40).optional()
24673
- });
24674
- var SummaryDetailSchema = object({
24675
- summary: SummarySchema,
24676
- /** Members in absorption order, oldest join first. */
24677
- members: array(object({
24678
- trackId: string(),
24679
- /**
24680
- * The track's class at the time it JOINED, or `null` when it was unresolved
24681
- * and the track no longer exists to fill it.
24682
- *
24683
- * The join, not the latest opinion: class voting can re-decide a track's
24684
- * class afterwards, and a group's composition is the history of who came
24685
- * together. A consumer counts these to badge a thumbnail — "two people and a
24686
- * dog" — rather than being handed a second, denormalised tally that would
24687
- * drift from the members it claims to describe.
24688
- */
24689
- className: string().nullable(),
24690
- /** `primary` is the one member that carries the group's identity. */
24691
- role: _enum([
24692
- "primary",
24693
- "sibling",
24694
- "child"
24695
- ]).nullable(),
24696
- joinedAt: number(),
24697
- /** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
24698
- * at read time. Absent when nothing resolved, never an empty string. */
24699
- label: string().optional(),
24700
- /** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
24701
- * recognised nobody, and absent for a member whose track has been pruned —
24702
- * a thumbnail that names the wrong person is worse than one naming nobody. */
24703
- subLabel: string().optional()
24704
- })).readonly()
24705
- });
24706
- /**
24707
- * What a LIST of groups carries: the envelope plus what it is MADE OF.
24708
- *
24709
- * Coarse on purpose — the operator's rule is "only the rough data on the list,
24710
- * we extend when we notice we need more". Enough to draw the card ("two people
24711
- * and a dog") and no more. The MEMBERS, their names and the per-member links
24712
- * are on {@link getSummary}: shipping every member of every group so a client
24713
- * can count them turns a page of two hundred groups into a thousand records to
24714
- * draw two hundred badges.
24715
- */
24716
- var SummaryListItemSchema = object({
24717
- summary: SummarySchema,
24718
- /** Class counts, most numerous first; `className: null` is a member whose
24719
- * class never resolved, counted so the counts add up to `memberCount`. */
24720
- classes: array(object({
24721
- className: string().nullable(),
24722
- count: number().int().positive()
24723
- })).readonly()
24724
- });
24725
- var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
24726
- /**
24727
- * The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
24728
- *
24729
- * The reel on the cameras page and the Events gallery both ride a cursor, so a
24730
- * summaries feed that could only answer "the last N for these cameras"
24731
- * (`listSummaries`) would make groups available in the timeline and nowhere
24732
- * else. Two feeds with different ordering contracts would be two ideas of what
24733
- * "newest" means, on one screen.
24734
- */
24735
- var RecentSummariesQueryInput = object({
24736
- /** Devices to merge. An empty array yields an empty page. */
24737
- deviceIds: array(number()),
24738
- /** Window lower bound on `lastActiveAt` (inclusive). */
24739
- since: number().optional(),
24740
- /** Window upper bound on `lastActiveAt` (inclusive). */
24741
- until: number().optional(),
24742
- limit: number().int().min(1).max(500).default(100),
24743
- /** Opaque continuation cursor from a previous page's `nextCursor`. */
24744
- cursor: string().optional(),
24745
- /**
24746
- * Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
24747
- * deliberately the same name: the events filter tree emits one list of ticked
24748
- * taxonomy nodes, and a summaries feed that called it something else would
24749
- * make the operator's one filter component produce two shapes.
24750
- *
24751
- * A question about the MEMBERS: a group matches when ANY of them does. "Show
24752
- * me the arrivals with a dog" has to return the group of four people who had
24753
- * one with them; a filter on the group's own fields could only ever answer
24754
- * about its primary.
24755
- *
24756
- * Matched against all THREE tiers of a member — the class (`animal`), the
24757
- * sub-class (`dog`) and the instance (a name, a plate) — because which tier a
24758
- * ticked node lives on is the taxonomy's business, not the caller's. `dog` is
24759
- * an event kind in the tree and a tier-1 label on an `animal` track; a filter
24760
- * that read only the class would answer "animal" and never "dog".
24761
- *
24762
- * ABSENT or EMPTY means no filter — absent is not a selection of none.
24763
- */
24764
- classes: array(string().min(1).max(60)).max(40).optional()
24765
- });
24766
- var RecentSummariesPageSchema = object({
24767
- /** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
24768
- * {@link listSummaries} — one list shape, so a card renders the same
24769
- * whichever feed drew it. */
24770
- summaries: array(SummaryListItemSchema).readonly(),
24771
- nextCursor: string().nullable()
24772
- });
24773
24749
  var RecentTracksPageSchema = object({
24774
24750
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
24775
24751
  tracks: array(TrackSchema).readonly(),
@@ -25307,15 +25283,6 @@ var pipelineAnalyticsCapability = {
25307
25283
  * are not included (same contract as `listTracks`).
25308
25284
  */
25309
25285
  listRecentTracks: method(RecentTracksQueryInput, RecentTracksPageSchema),
25310
- /** Newest first by `openedAt`, for a camera set, inside an optional window. */
25311
- listSummaries: method(SummariesQueryInput, SummariesPageSchema),
25312
- /**
25313
- * The PAGED feed — the reel and the Events gallery. Same cursor contract as
25314
- * {@link listRecentTracks}, so one screen cannot hold two ideas of newest.
25315
- */
25316
- listRecentSummaries: method(RecentSummariesQueryInput, RecentSummariesPageSchema),
25317
- /** One summary with its member track ids; `null` for an id nobody wrote. */
25318
- getSummary: method(object({ id: string() }), SummaryDetailSchema.nullable()),
25319
25286
  clearTracks: method(object({ deviceId: number() }), _void(), {
25320
25287
  kind: "mutation",
25321
25288
  auth: "admin"
@@ -27342,6 +27309,23 @@ var MotionSourceEnum = _enum([
27342
27309
  */
27343
27310
  var MotionSourcesSchema = array(MotionSourceEnum);
27344
27311
  /**
27312
+ * The operator-facing name of each MOTION source (D672: `onboard` = the
27313
+ * camera's sensors — its own motion plus any sensor attached to it). The wire
27314
+ * value stays `onboard`; only the label changed. `detectionSources: 'onboard'`
27315
+ * ("Camera onboard AI") and the notification source filter keep their labels.
27316
+ */
27317
+ var MOTION_SOURCE_LABELS = {
27318
+ analyzer: "Frame-diff Analyzer (motion addon)",
27319
+ onboard: "Camera sensors",
27320
+ "device-activity": "Device activity (the device says it is working)"
27321
+ };
27322
+ /** The order the motion-source picker offers them in (not the enum's order). */
27323
+ var MOTION_SOURCE_PICKER_ORDER = [
27324
+ "analyzer",
27325
+ "onboard",
27326
+ "device-activity"
27327
+ ];
27328
+ /**
27345
27329
  * Which root detector a camera runs — EXACTLY ONE.
27346
27330
  *
27347
27331
  * Deliberately the SAME vocabulary post-analysis already tags every detection
@@ -27688,7 +27672,14 @@ var RunnerCameraConfigSchema = object({
27688
27672
  */
27689
27673
  inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
27690
27674
  });
27691
- motionFpsField.min, motionFpsField.max, motionFpsField.step, motionFpsField.default, detectionFpsField.min, detectionFpsField.max, detectionFpsField.step, detectionFpsField.default, motionCooldownMsField.min, motionCooldownMsField.max, motionCooldownMsField.step, motionCooldownMsField.default, maxSessionHoldMsField.min, maxSessionHoldMsField.max, maxSessionHoldMsField.step, maxSessionHoldMsField.default, audioMotionWindowMsField.min, audioMotionWindowMsField.max, audioMotionWindowMsField.step, audioMotionWindowMsField.default, preRollInferenceFramesField.min, preRollInferenceFramesField.max, preRollInferenceFramesField.step, preRollInferenceFramesField.default, occupancyRecheckSecField.min, occupancyRecheckSecField.max, occupancyRecheckSecField.step, occupancyRecheckSecField.default, occupancyRecheckFramesField.min, occupancyRecheckFramesField.max, occupancyRecheckFramesField.step, occupancyRecheckFramesField.default;
27675
+ MOTION_SOURCE_PICKER_ORDER.map((value) => value === "onboard" ? {
27676
+ value,
27677
+ label: MOTION_SOURCE_LABELS[value],
27678
+ description: "The camera's own motion, plus any sensor attached to it"
27679
+ } : {
27680
+ value,
27681
+ label: MOTION_SOURCE_LABELS[value]
27682
+ }), motionFpsField.min, motionFpsField.max, motionFpsField.step, motionFpsField.default, detectionFpsField.min, detectionFpsField.max, detectionFpsField.step, detectionFpsField.default, motionCooldownMsField.min, motionCooldownMsField.max, motionCooldownMsField.step, motionCooldownMsField.default, maxSessionHoldMsField.min, maxSessionHoldMsField.max, maxSessionHoldMsField.step, maxSessionHoldMsField.default, audioMotionWindowMsField.min, audioMotionWindowMsField.max, audioMotionWindowMsField.step, audioMotionWindowMsField.default, preRollInferenceFramesField.min, preRollInferenceFramesField.max, preRollInferenceFramesField.step, preRollInferenceFramesField.default, occupancyRecheckSecField.min, occupancyRecheckSecField.max, occupancyRecheckSecField.step, occupancyRecheckSecField.default, occupancyRecheckFramesField.min, occupancyRecheckFramesField.max, occupancyRecheckFramesField.step, occupancyRecheckFramesField.default;
27692
27683
  /**
27693
27684
  * Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
27694
27685
  * load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
@@ -28454,6 +28445,11 @@ var CameraStatusSchema = object({
28454
28445
  */
28455
28446
  switchedOff: array(CameraSwitchIdSchema).readonly(),
28456
28447
  /**
28448
+ * The camera's attached sensors (D672). Optional only for a status composed
28449
+ * by an orchestrator older than D672; this orchestrator always sets it.
28450
+ */
28451
+ cameraSensors: CameraSensorsStatusSchema.optional(),
28452
+ /**
28457
28453
  * Stages of the bounded fan-out that were CUT SHORT — a timeout or a
28458
28454
  * rejection — and whose block is therefore `null` because we could not
28459
28455
  * READ it, not because there is nothing there.
@@ -37496,7 +37492,9 @@ var MotionOnMotionChangedDataSchema = object({
37496
37492
  detected: boolean(),
37497
37493
  timestamp: number(),
37498
37494
  source: MotionSourceEnum,
37499
- regions: array(MotionRegionSchema).readonly().optional()
37495
+ regions: array(MotionRegionSchema).readonly().optional(),
37496
+ /** Who started it (D672). Absent = the camera itself. Only `onboard` carries `sensor`. */
37497
+ triggeredBy: MotionTriggeredBySchema.optional()
37500
37498
  });
37501
37499
  var motionCapability = {
37502
37500
  name: "motion",
@@ -50422,12 +50420,6 @@ Object.freeze({
50422
50420
  addonId: null,
50423
50421
  access: "view"
50424
50422
  },
50425
- "pipelineAnalytics.getSummary": {
50426
- capName: "pipeline-analytics",
50427
- capScope: "device",
50428
- addonId: null,
50429
- access: "view"
50430
- },
50431
50423
  "pipelineAnalytics.getTrack": {
50432
50424
  capName: "pipeline-analytics",
50433
50425
  capScope: "device",
@@ -50488,12 +50480,6 @@ Object.freeze({
50488
50480
  addonId: null,
50489
50481
  access: "view"
50490
50482
  },
50491
- "pipelineAnalytics.listRecentSummaries": {
50492
- capName: "pipeline-analytics",
50493
- capScope: "device",
50494
- addonId: null,
50495
- access: "view"
50496
- },
50497
50483
  "pipelineAnalytics.listRecentTracks": {
50498
50484
  capName: "pipeline-analytics",
50499
50485
  capScope: "device",
@@ -50524,12 +50510,6 @@ Object.freeze({
50524
50510
  addonId: null,
50525
50511
  access: "view"
50526
50512
  },
50527
- "pipelineAnalytics.listSummaries": {
50528
- capName: "pipeline-analytics",
50529
- capScope: "device",
50530
- addonId: null,
50531
- access: "view"
50532
- },
50533
50513
  "pipelineAnalytics.listTrackMedia": {
50534
50514
  capName: "pipeline-analytics",
50535
50515
  capScope: "device",
@@ -54699,11 +54679,6 @@ Object.freeze({
54699
54679
  form: "single",
54700
54680
  optional: true
54701
54681
  }],
54702
- "pipelineAnalytics.listRecentSummaries": [{
54703
- name: "deviceIds",
54704
- form: "array",
54705
- optional: false
54706
- }],
54707
54682
  "pipelineAnalytics.listRecentTracks": [{
54708
54683
  name: "deviceIds",
54709
54684
  form: "array",
@@ -54714,11 +54689,6 @@ Object.freeze({
54714
54689
  form: "array",
54715
54690
  optional: true
54716
54691
  }],
54717
- "pipelineAnalytics.listSummaries": [{
54718
- name: "deviceIds",
54719
- form: "array",
54720
- optional: false
54721
- }],
54722
54692
  "pipelineAnalytics.listTrackMedia": [{
54723
54693
  name: "deviceId",
54724
54694
  form: "single",