@camstack/addon-osd-manager 0.1.147 → 0.1.149

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-B4cQcURa.mjs} +2 -2
  2. package/dist/{PrivacyMaskSettings-CmjVGh1h.mjs → PrivacyMaskSettings-Dv7f5TJH.mjs} +4 -4
  3. package/dist/{SceneMonitorEditor-Dax82W7l.mjs → SceneMonitorEditor-BH5IfvJF.mjs} +3 -3
  4. package/dist/_stub.js +11 -11
  5. package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-DCyAXIPW.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-CH1D8Zk8.mjs} +3 -3
  6. package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-BiGqIvMa.mjs +26 -0
  7. package/dist/{hostInit-DxFYPF2F.mjs → hostInit-Casu61cJ.mjs} +2 -2
  8. package/dist/index.js +315 -208
  9. package/dist/index.mjs +315 -208
  10. package/dist/{player-overlays-BuQ-2VK8.mjs → player-overlays-DUvUqw-5.mjs} +1 -1
  11. package/dist/remoteEntry.js +1 -1
  12. package/dist/{responsive-BichBHK9.mjs → responsive-BjVZKLm9.mjs} +1 -1
  13. package/dist/{scene-monitor-copy-QX-VgNUL.mjs → scene-monitor-copy-B3JnndNE.mjs} +1 -1
  14. package/dist/{square-DMng_M2f.mjs → square-Cl2KchnS.mjs} +1 -1
  15. package/dist/{trash-2-DNfdpYqK.mjs → trash-2-DTiky27H.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-D8jQU_Fl.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).
@@ -7514,7 +7514,59 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
7514
7514
  return DeviceRole;
7515
7515
  }({});
7516
7516
  //#endregion
7517
- //#region ../types/dist/composition-BK-GTFYb.mjs
7517
+ //#region ../types/dist/composition-Dq42XWp0.mjs
7518
+ /**
7519
+ * The ffmpeg build every CamStack node downloads, per platform and arch.
7520
+ *
7521
+ * ## Why a download, on every node, including the container
7522
+ *
7523
+ * The version of ffmpeg used to be CODE: baked into the image, changeable only
7524
+ * by rebuilding and rolling it. Now it is DATA — this file states the release,
7525
+ * and a node that boots with a different one downloads it. Changing ffmpeg is a
7526
+ * framework bump, not an image rebuild.
7527
+ *
7528
+ * It also settles the licence question by removing it. FFmpeg's licence is
7529
+ * chosen at compile time: the core is LGPL 2.1+, `--enable-gpl` makes it GPL
7530
+ * (for x264/x265), `--enable-version3` makes that v3, and `--enable-nonfree`
7531
+ * makes the result undistributable. These are GPL v3 builds, and we do not
7532
+ * distribute them: the user's own node fetches the archive from the project
7533
+ * that publishes it, so we convey no GPL work and inherit none of the
7534
+ * obligations that come with conveying one. That is the whole reason the image
7535
+ * no longer installs ffmpeg at all — not a technical preference.
7536
+ *
7537
+ * ## Why jellyfin-ffmpeg
7538
+ *
7539
+ * One vendor covering linux-amd64, linux-arm64, darwin-arm64 and darwin-x64
7540
+ * from one release, with the widest hardware surface of anything maintained:
7541
+ * VAAPI, QSV, NVENC/NVDEC, AMF, Vulkan, OpenCL and DRM on amd64, plus Rockchip
7542
+ * MPP on arm64. It reaches the vendor libraries through dlopen trampolines,
7543
+ * so the binary is not linked against a driver stack it may not find.
7544
+ *
7545
+ * **What it still needs from the host, measured 2026-09-19.** On the Unraid
7546
+ * HOST, which has no libva, `-vaapi_device` aborts the process outright —
7547
+ * `implib-gen: libva-drm.so.2: failed to load library ... Assertion '0 &&
7548
+ * "Assertion in generated code"' failed`. Inside our container, which installs
7549
+ * libva plus the iHD driver, the same command encodes: verified end to end with
7550
+ * `testsrc → format=nv12,hwupload → h264_vaapi`. So the image drops ffmpeg and
7551
+ * KEEPS the Intel media stack; the drivers are the part a binary cannot bring.
7552
+ *
7553
+ * ## Why each artifact carries a checksum and a claim
7554
+ *
7555
+ * The download is now the only source, so `sha256` is verified before anything
7556
+ * is extracted — jellyfin publishes no checksums on its release assets, so
7557
+ * these are ours, taken at the version bump. And `expectedHwaccels` is what the
7558
+ * build is supposed to be able to do: a binary that probes short of its own
7559
+ * claim is a source that changed under us, which is precisely what went
7560
+ * unnoticed for months when a static build turned out to carry no VAAPI at all
7561
+ * (D536).
7562
+ */
7563
+ /** The pinned jellyfin-ffmpeg release. Changing this is the version change. */
7564
+ var FFMPEG_RELEASE = "8.1.2-5";
7565
+ var BASE = `https://github.com/jellyfin/jellyfin-ffmpeg/releases/download/v${FFMPEG_RELEASE}`;
7566
+ function portable(target) {
7567
+ return `${BASE}/jellyfin-ffmpeg_${FFMPEG_RELEASE}_portable_${target}-gpl.tar.xz`;
7568
+ }
7569
+ portable("linux64"), portable("linuxarm64"), portable("macarm64"), portable("mac64");
7518
7570
  /**
7519
7571
  * LA tabella "quale booleano di questo tipo di device conta come ALTO", e il
7520
7572
  * valutatore puro del suo FRONTE.
@@ -8320,7 +8372,6 @@ var CompositionSchema = object({
8320
8372
  });
8321
8373
  new Set([
8322
8374
  "track",
8323
- "summary",
8324
8375
  "face",
8325
8376
  "identity",
8326
8377
  "plate",
@@ -13852,6 +13903,70 @@ var CompositionBlockStateSchema = object({
13852
13903
  reason: string().optional(),
13853
13904
  fields: array(CompositionFieldStateSchema)
13854
13905
  });
13906
+ var NUMBER = {
13907
+ kind: "fixed",
13908
+ result: ["number"]
13909
+ };
13910
+ var BOOLEAN = {
13911
+ kind: "fixed",
13912
+ result: ["boolean"]
13913
+ };
13914
+ Object.freeze({
13915
+ min: NUMBER,
13916
+ max: NUMBER,
13917
+ abs: NUMBER,
13918
+ floor: NUMBER,
13919
+ ceil: NUMBER,
13920
+ sqrt: NUMBER,
13921
+ round: NUMBER,
13922
+ pow: NUMBER,
13923
+ clamp: NUMBER,
13924
+ avg: NUMBER,
13925
+ sum: NUMBER,
13926
+ age: NUMBER,
13927
+ convert: NUMBER,
13928
+ coalesce: { kind: "coalesce" },
13929
+ any: BOOLEAN,
13930
+ all: BOOLEAN,
13931
+ within: BOOLEAN,
13932
+ latest: {
13933
+ kind: "fixed",
13934
+ result: ["number", "null"]
13935
+ },
13936
+ number: {
13937
+ kind: "fixed",
13938
+ result: ["number", "null"]
13939
+ },
13940
+ rose: {
13941
+ kind: "fixed",
13942
+ result: ["number", "null"]
13943
+ },
13944
+ count: NUMBER
13945
+ });
13946
+ `${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
13947
+ /**
13948
+ * What a composition may BUILD on a device type (G2, D676): the caps a new
13949
+ * device of that type, or an existing one that lacks them, can be given. The
13950
+ * blockers are the validator's own refusal codes, and a spec compares this
13951
+ * listing with `planComposition` for every capability — the editor can never
13952
+ * offer a feature the save would refuse for the same reason.
13953
+ */
13954
+ var ComposableFieldSchema = object({
13955
+ path: string(),
13956
+ kind: CompositionFieldKindSchema,
13957
+ nullable: boolean(),
13958
+ required: boolean(),
13959
+ enumValues: array(string()).optional()
13960
+ });
13961
+ var ComposableCapabilitiesSchema = object({ caps: array(object({
13962
+ cap: string(),
13963
+ fields: array(ComposableFieldSchema),
13964
+ /** Present for an item-array cap (`consumables.items`). */
13965
+ itemArray: object({
13966
+ path: string(),
13967
+ keyField: string()
13968
+ }).optional()
13969
+ })) });
13855
13970
  /** Where a block runs. The operator chooses — a block driving a device on an
13856
13971
  * agent is the reason placement is not fixed to the hub. */
13857
13972
  var CoreBlockPlacementSchema = union([literal("hub"), string().min(1)]);
@@ -14082,6 +14197,14 @@ var coreBlocksCapability = {
14082
14197
  stableId: string().min(1)
14083
14198
  }), CompositionCustomizationReadSchema, { auth: "admin" }),
14084
14199
  /**
14200
+ * The capabilities a composition may BUILD on a device of `deviceType`
14201
+ * (a new device, or added to an existing one), with their fields — the
14202
+ * editor's feature list and the presets' availability (G2, D676). Built
14203
+ * from the validator's own blockers; a replace of a BOUND cap is not
14204
+ * listed here (the device's bindings say what it has).
14205
+ */
14206
+ listComposableCaps: method(object({ deviceType: _enum(DeviceType) }), ComposableCapabilitiesSchema, { auth: "admin" }),
14207
+ /**
14085
14208
  * Validate without saving — the same verdict the save reaches. A mutation
14086
14209
  * for its body size; it writes nothing, so its access is `view`.
14087
14210
  */
@@ -23404,6 +23527,102 @@ var oauthIntegrationCapability = {
23404
23527
  getDescriptor: method(_void(), OauthIntegrationDescriptorSchema, { auth: "admin" }) }
23405
23528
  };
23406
23529
  /**
23530
+ * What started a camera's onboard motion (D672). `camera` is the camera's own
23531
+ * firmware; `sensor` is a device the operator ATTACHED to it. Absent on the
23532
+ * wire means the camera: only the camera-sensors bridge ever says `sensor`.
23533
+ */
23534
+ var MotionTriggeredBySchema = discriminatedUnion("kind", [object({ kind: literal("camera") }), object({
23535
+ kind: literal("sensor"),
23536
+ deviceId: number().int().positive()
23537
+ })]);
23538
+ Object.freeze({ kind: "camera" });
23539
+ var CameraSensorRefSchema = object({
23540
+ addonId: string().min(1),
23541
+ stableId: string().min(1)
23542
+ });
23543
+ function cameraSensorRefKey(ref) {
23544
+ return `${ref.addonId}/${ref.stableId}`;
23545
+ }
23546
+ /** CS-1 accepts exactly one mode; CS-2 (D673) widens it to confirm / replace. */
23547
+ var CameraSensorsModeSchema = _enum(["in-addition"]);
23548
+ var CameraSensorsConfigSchema = object({
23549
+ mode: CameraSensorsModeSchema,
23550
+ sensors: array(CameraSensorRefSchema).min(1).max(8)
23551
+ }).superRefine((value, ctx) => {
23552
+ const seen = /* @__PURE__ */ new Set();
23553
+ value.sensors.forEach((ref, index) => {
23554
+ const key = cameraSensorRefKey(ref);
23555
+ if (seen.has(key)) ctx.addIssue({
23556
+ code: "custom",
23557
+ path: ["sensors", index],
23558
+ message: `duplicate camera sensor ${key}`
23559
+ });
23560
+ seen.add(key);
23561
+ });
23562
+ });
23563
+ var RefFields = {
23564
+ addonId: string(),
23565
+ stableId: string()
23566
+ };
23567
+ var CameraSensorAttachmentSchema = discriminatedUnion("state", [
23568
+ object({
23569
+ ...RefFields,
23570
+ state: literal("ready"),
23571
+ deviceId: number(),
23572
+ name: string(),
23573
+ caps: array(string()).readonly()
23574
+ }),
23575
+ object({
23576
+ ...RefFields,
23577
+ state: literal("offline"),
23578
+ deviceId: number(),
23579
+ name: string(),
23580
+ reason: _enum(["offline", "disabled"])
23581
+ }),
23582
+ object({
23583
+ ...RefFields,
23584
+ state: literal("missing"),
23585
+ reason: string()
23586
+ }),
23587
+ object({
23588
+ ...RefFields,
23589
+ state: literal("unsupported"),
23590
+ deviceId: number(),
23591
+ name: string(),
23592
+ reason: string()
23593
+ }),
23594
+ object({
23595
+ ...RefFields,
23596
+ state: literal("unreadable"),
23597
+ reason: string()
23598
+ })
23599
+ ]);
23600
+ /**
23601
+ * Why a configured camera forwards NOTHING from its sensors, however ready they
23602
+ * are (D672): it does not list `onboard` in `motionSources` (attaching a sensor
23603
+ * does not add it), or it has no active detection config at all (the bridge
23604
+ * reads the active config). Absent = forwarded, or an older node that does not
23605
+ * say.
23606
+ */
23607
+ var CameraSensorsNotForwardedSchema = _enum(["onboard-not-listed", "no-active-detection"]);
23608
+ var CameraSensorsStatusSchema = discriminatedUnion("state", [
23609
+ object({ state: literal("not-configured") }),
23610
+ object({
23611
+ state: literal("unreadable"),
23612
+ reason: string()
23613
+ }),
23614
+ object({
23615
+ state: literal("configured"),
23616
+ mode: CameraSensorsModeSchema,
23617
+ sensors: array(CameraSensorAttachmentSchema).readonly(),
23618
+ notForwarded: CameraSensorsNotForwardedSchema.optional()
23619
+ })
23620
+ ]);
23621
+ Object.freeze({
23622
+ state: "unreadable",
23623
+ reason: "camera sensor mappings not loaded"
23624
+ });
23625
+ /**
23407
23626
  * A model choice has a SCOPE, and a scope change has a workflow.
23408
23627
  *
23409
23628
  * ## The two scopes
@@ -24152,6 +24371,12 @@ var MotionEventSchema = object({
24152
24371
  /** Populated by B5 (recording playback URL for this event). */
24153
24372
  mediaUrl: string().optional(),
24154
24373
  /**
24374
+ * The FIRST trigger of an `onboard` episode, written once at open (D672).
24375
+ * Absent = not recorded (a row written before D672, or an analyzer /
24376
+ * device-activity episode) — never read as "the camera" (D393).
24377
+ */
24378
+ triggeredBy: MotionTriggeredBySchema.optional(),
24379
+ /**
24155
24380
  * One row per motion EPISODE, not one per push (D475). `null` while the
24156
24381
  * episode is still open — a further rising edge extends it in place rather
24157
24382
  * than inserting a new row. Set once, at close, to `lastOnAt - startedAt`
@@ -24310,6 +24535,21 @@ var ObjectEventSchema = object({
24310
24535
  keyFrameMediaId: number().int().optional(),
24311
24536
  /** Populated by B5 (recording playback URL for this event). */
24312
24537
  mediaUrl: string().optional(),
24538
+ /**
24539
+ * When the change this row records HAPPENED, epoch ms, when that is earlier
24540
+ * than {@link timestamp} and the producer could date it (D684).
24541
+ *
24542
+ * Set on a package PICK-UP row only: its `timestamp` is when the departure
24543
+ * was CONCLUDED — five minutes of unseen observed time after the parcel went
24544
+ * — and a notification's footage has to be cut around the pick-up, not the
24545
+ * empty doormat after it (D682). Stored so every path that rebuilds a
24546
+ * notification subject from the row (the boot reconcile, a dry-run) anchors
24547
+ * on the same instant the live hook did.
24548
+ *
24549
+ * `timestamp` keeps its meaning. Absent on every other row and on every
24550
+ * pick-up written before D684 — UNKNOWN, never 0 and never `timestamp`.
24551
+ */
24552
+ observedAt: number().optional(),
24313
24553
  /** The parent track's key-event importance [0,1], propagated to every object
24314
24554
  * event of the track (so an event row can be sorted by importance without a
24315
24555
  * track join). Absent on legacy rows / before the track was scored. */
@@ -24645,131 +24885,6 @@ var RecentTracksQueryInput = object({
24645
24885
  /** See {@link ExcludeSourcesDoc}. */
24646
24886
  excludeSources: array(TrackSourceSchema).optional()
24647
24887
  });
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
24888
  var RecentTracksPageSchema = object({
24774
24889
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
24775
24890
  tracks: array(TrackSchema).readonly(),
@@ -25307,15 +25422,6 @@ var pipelineAnalyticsCapability = {
25307
25422
  * are not included (same contract as `listTracks`).
25308
25423
  */
25309
25424
  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
25425
  clearTracks: method(object({ deviceId: number() }), _void(), {
25320
25426
  kind: "mutation",
25321
25427
  auth: "admin"
@@ -27342,6 +27448,23 @@ var MotionSourceEnum = _enum([
27342
27448
  */
27343
27449
  var MotionSourcesSchema = array(MotionSourceEnum);
27344
27450
  /**
27451
+ * The operator-facing name of each MOTION source (D672: `onboard` = the
27452
+ * camera's sensors — its own motion plus any sensor attached to it). The wire
27453
+ * value stays `onboard`; only the label changed. `detectionSources: 'onboard'`
27454
+ * ("Camera onboard AI") and the notification source filter keep their labels.
27455
+ */
27456
+ var MOTION_SOURCE_LABELS = {
27457
+ analyzer: "Frame-diff Analyzer (motion addon)",
27458
+ onboard: "Camera sensors",
27459
+ "device-activity": "Device activity (the device says it is working)"
27460
+ };
27461
+ /** The order the motion-source picker offers them in (not the enum's order). */
27462
+ var MOTION_SOURCE_PICKER_ORDER = [
27463
+ "analyzer",
27464
+ "onboard",
27465
+ "device-activity"
27466
+ ];
27467
+ /**
27345
27468
  * Which root detector a camera runs — EXACTLY ONE.
27346
27469
  *
27347
27470
  * Deliberately the SAME vocabulary post-analysis already tags every detection
@@ -27688,7 +27811,14 @@ var RunnerCameraConfigSchema = object({
27688
27811
  */
27689
27812
  inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
27690
27813
  });
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;
27814
+ MOTION_SOURCE_PICKER_ORDER.map((value) => value === "onboard" ? {
27815
+ value,
27816
+ label: MOTION_SOURCE_LABELS[value],
27817
+ description: "The camera's own motion, plus any sensor attached to it"
27818
+ } : {
27819
+ value,
27820
+ label: MOTION_SOURCE_LABELS[value]
27821
+ }), 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
27822
  /**
27693
27823
  * Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
27694
27824
  * load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
@@ -28454,6 +28584,11 @@ var CameraStatusSchema = object({
28454
28584
  */
28455
28585
  switchedOff: array(CameraSwitchIdSchema).readonly(),
28456
28586
  /**
28587
+ * The camera's attached sensors (D672). Optional only for a status composed
28588
+ * by an orchestrator older than D672; this orchestrator always sets it.
28589
+ */
28590
+ cameraSensors: CameraSensorsStatusSchema.optional(),
28591
+ /**
28457
28592
  * Stages of the bounded fan-out that were CUT SHORT — a timeout or a
28458
28593
  * rejection — and whose block is therefore `null` because we could not
28459
28594
  * READ it, not because there is nothing there.
@@ -28558,6 +28693,16 @@ var NodeInferenceDevicesSchema = object({
28558
28693
  * Strictly the control plane: never sees a frame, never calls inference,
28559
28694
  * never drains queues. The runner does that work locally on each agent.
28560
28695
  */
28696
+ /**
28697
+ * The input of `setCameraSensors` (G5, D676): the ONE typed write path of a
28698
+ * camera's attached sensors (D672). `config: null` removes the attachment —
28699
+ * the camera reads `not-configured` again, never `unreadable`.
28700
+ */
28701
+ var SetCameraSensorsInputSchema = object({
28702
+ deviceId: number().int().nonnegative(),
28703
+ /** `null` removes the attachment: the camera goes back to `not-configured`. */
28704
+ config: CameraSensorsConfigSchema.nullable()
28705
+ });
28561
28706
  var pipelineOrchestratorCapability = {
28562
28707
  name: "pipeline-orchestrator",
28563
28708
  scope: "system",
@@ -29023,6 +29168,18 @@ var pipelineOrchestratorCapability = {
29023
29168
  */
29024
29169
  getCameraStatuses: method(object({ deviceIds: array(number()).optional() }), array(CameraStatusSchema).readonly()),
29025
29170
  /**
29171
+ * Attach sensors to a camera, or detach them with `config: null` (D672
29172
+ * configuration, G5/D676). Written to the orchestrator's per-device store
29173
+ * under the same key `applyDeviceSettingsPatch` writes, and announced as a
29174
+ * settings change so the camera-sensors bridge refreshes. Refused by name
29175
+ * — nothing written — for a device that cannot be read, does not exist,
29176
+ * is not a camera, or names itself as its own sensor.
29177
+ */
29178
+ setCameraSensors: method(SetCameraSensorsInputSchema, object({ success: literal(true) }), {
29179
+ kind: "mutation",
29180
+ auth: "admin"
29181
+ }),
29182
+ /**
29026
29183
  * Disk-wins fleet reconcile after a recordings wipe. Starts the walk in
29027
29184
  * the addon process and returns immediately with the job snapshot — the
29028
29185
  * work outlives the tRPC/UDS 60s timeout. Poll `getReconcileFromDiskStatus`.
@@ -37496,7 +37653,9 @@ var MotionOnMotionChangedDataSchema = object({
37496
37653
  detected: boolean(),
37497
37654
  timestamp: number(),
37498
37655
  source: MotionSourceEnum,
37499
- regions: array(MotionRegionSchema).readonly().optional()
37656
+ regions: array(MotionRegionSchema).readonly().optional(),
37657
+ /** Who started it (D672). Absent = the camera itself. Only `onboard` carries `sensor`. */
37658
+ triggeredBy: MotionTriggeredBySchema.optional()
37500
37659
  });
37501
37660
  var motionCapability = {
37502
37661
  name: "motion",
@@ -44763,47 +44922,6 @@ var zoneRulesCapability = {
44763
44922
  */
44764
44923
  durability: "restored"
44765
44924
  };
44766
- var NUMBER = {
44767
- kind: "fixed",
44768
- result: ["number"]
44769
- };
44770
- var BOOLEAN = {
44771
- kind: "fixed",
44772
- result: ["boolean"]
44773
- };
44774
- Object.freeze({
44775
- min: NUMBER,
44776
- max: NUMBER,
44777
- abs: NUMBER,
44778
- floor: NUMBER,
44779
- ceil: NUMBER,
44780
- sqrt: NUMBER,
44781
- round: NUMBER,
44782
- pow: NUMBER,
44783
- clamp: NUMBER,
44784
- avg: NUMBER,
44785
- sum: NUMBER,
44786
- age: NUMBER,
44787
- convert: NUMBER,
44788
- coalesce: { kind: "coalesce" },
44789
- any: BOOLEAN,
44790
- all: BOOLEAN,
44791
- within: BOOLEAN,
44792
- latest: {
44793
- kind: "fixed",
44794
- result: ["number", "null"]
44795
- },
44796
- number: {
44797
- kind: "fixed",
44798
- result: ["number", "null"]
44799
- },
44800
- rose: {
44801
- kind: "fixed",
44802
- result: ["number", "null"]
44803
- },
44804
- count: NUMBER
44805
- });
44806
- `${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
44807
44925
  /**
44808
44926
  * Most specific first. Extending this list is how a new device kind becomes
44809
44927
  * gateable; nothing else needs to change.
@@ -47452,6 +47570,12 @@ Object.freeze({
47452
47570
  addonId: null,
47453
47571
  access: "view"
47454
47572
  },
47573
+ "coreBlocks.listComposableCaps": {
47574
+ capName: "core-blocks",
47575
+ capScope: "system",
47576
+ addonId: null,
47577
+ access: "view"
47578
+ },
47455
47579
  "coreBlocks.listCompositions": {
47456
47580
  capName: "core-blocks",
47457
47581
  capScope: "system",
@@ -50422,12 +50546,6 @@ Object.freeze({
50422
50546
  addonId: null,
50423
50547
  access: "view"
50424
50548
  },
50425
- "pipelineAnalytics.getSummary": {
50426
- capName: "pipeline-analytics",
50427
- capScope: "device",
50428
- addonId: null,
50429
- access: "view"
50430
- },
50431
50549
  "pipelineAnalytics.getTrack": {
50432
50550
  capName: "pipeline-analytics",
50433
50551
  capScope: "device",
@@ -50488,12 +50606,6 @@ Object.freeze({
50488
50606
  addonId: null,
50489
50607
  access: "view"
50490
50608
  },
50491
- "pipelineAnalytics.listRecentSummaries": {
50492
- capName: "pipeline-analytics",
50493
- capScope: "device",
50494
- addonId: null,
50495
- access: "view"
50496
- },
50497
50609
  "pipelineAnalytics.listRecentTracks": {
50498
50610
  capName: "pipeline-analytics",
50499
50611
  capScope: "device",
@@ -50524,12 +50636,6 @@ Object.freeze({
50524
50636
  addonId: null,
50525
50637
  access: "view"
50526
50638
  },
50527
- "pipelineAnalytics.listSummaries": {
50528
- capName: "pipeline-analytics",
50529
- capScope: "device",
50530
- addonId: null,
50531
- access: "view"
50532
- },
50533
50639
  "pipelineAnalytics.listTrackMedia": {
50534
50640
  capName: "pipeline-analytics",
50535
50641
  capScope: "device",
@@ -51154,6 +51260,12 @@ Object.freeze({
51154
51260
  addonId: null,
51155
51261
  access: "create"
51156
51262
  },
51263
+ "pipelineOrchestrator.setCameraSensors": {
51264
+ capName: "pipeline-orchestrator",
51265
+ capScope: "system",
51266
+ addonId: null,
51267
+ access: "create"
51268
+ },
51157
51269
  "pipelineOrchestrator.setCameraStepOverride": {
51158
51270
  capName: "pipeline-orchestrator",
51159
51271
  capScope: "system",
@@ -54699,11 +54811,6 @@ Object.freeze({
54699
54811
  form: "single",
54700
54812
  optional: true
54701
54813
  }],
54702
- "pipelineAnalytics.listRecentSummaries": [{
54703
- name: "deviceIds",
54704
- form: "array",
54705
- optional: false
54706
- }],
54707
54814
  "pipelineAnalytics.listRecentTracks": [{
54708
54815
  name: "deviceIds",
54709
54816
  form: "array",
@@ -54714,11 +54821,6 @@ Object.freeze({
54714
54821
  form: "array",
54715
54822
  optional: true
54716
54823
  }],
54717
- "pipelineAnalytics.listSummaries": [{
54718
- name: "deviceIds",
54719
- form: "array",
54720
- optional: false
54721
- }],
54722
54824
  "pipelineAnalytics.listTrackMedia": [{
54723
54825
  name: "deviceId",
54724
54826
  form: "single",
@@ -54874,6 +54976,11 @@ Object.freeze({
54874
54976
  form: "single",
54875
54977
  optional: false
54876
54978
  }],
54979
+ "pipelineOrchestrator.setCameraSensors": [{
54980
+ name: "deviceId",
54981
+ form: "single",
54982
+ optional: false
54983
+ }],
54877
54984
  "pipelineOrchestrator.setCameraStepOverride": [{
54878
54985
  name: "deviceId",
54879
54986
  form: "single",