@camstack/addon-model-studio 1.1.182 → 1.1.184

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-DB-47cOo.mjs → MotionZonesSettings-CLIRob-J.mjs} +2 -2
  2. package/dist/{PrivacyMaskSettings-BIzb0D_0.mjs → PrivacyMaskSettings-exV6L1j_.mjs} +4 -4
  3. package/dist/{SceneMonitorEditor-IaL6eXRr.mjs → SceneMonitorEditor-icoLBztR.mjs} +3 -3
  4. package/dist/_stub.js +14 -14
  5. package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-CsOTOHLQ.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-DQxc1RfH.mjs} +3 -3
  6. package/dist/_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-D3PT9fEx.mjs +26 -0
  7. package/dist/{hostInit-Bl24UlY4.mjs → hostInit-C9yJIB1e.mjs} +2 -2
  8. package/dist/model-studio.addon.js +313 -202
  9. package/dist/model-studio.addon.mjs +313 -202
  10. package/dist/{player-overlays-CISEjNtj.mjs → player-overlays-DwfCWVUG.mjs} +1 -1
  11. package/dist/remoteEntry.js +1 -1
  12. package/dist/{responsive-CUot36ya.mjs → responsive-BRO7smWV.mjs} +1 -1
  13. package/dist/{scene-monitor-copy-J64_2zC1.mjs → scene-monitor-copy--wZxxF0G.mjs} +1 -1
  14. package/dist/{square-CDSkPKBQ.mjs → square-BfZLUXuN.mjs} +1 -1
  15. package/dist/{trash-2-C1NZwuGu.mjs → trash-2-0kWm0Lcw.mjs} +1 -1
  16. package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-DcHcLEYl.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-JOrjSbrc.mjs} +1 -1
  17. package/package.json +1 -1
  18. package/dist/_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-BmwlvTun.mjs +0 -26
@@ -5920,7 +5920,7 @@ var ZodIssueCode = {
5920
5920
  var ZodFirstPartyTypeKind;
5921
5921
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5922
5922
  //#endregion
5923
- //#region ../types/dist/sleep-DlrgY4Qb.mjs
5923
+ //#region ../types/dist/sleep-C-v96WpE.mjs
5924
5924
  /**
5925
5925
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5926
5926
  * window to float samples (D455).
@@ -8030,7 +8030,59 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
8030
8030
  return DeviceRole;
8031
8031
  }({});
8032
8032
  //#endregion
8033
- //#region ../types/dist/composition-BK-GTFYb.mjs
8033
+ //#region ../types/dist/composition-Dq42XWp0.mjs
8034
+ /**
8035
+ * The ffmpeg build every CamStack node downloads, per platform and arch.
8036
+ *
8037
+ * ## Why a download, on every node, including the container
8038
+ *
8039
+ * The version of ffmpeg used to be CODE: baked into the image, changeable only
8040
+ * by rebuilding and rolling it. Now it is DATA — this file states the release,
8041
+ * and a node that boots with a different one downloads it. Changing ffmpeg is a
8042
+ * framework bump, not an image rebuild.
8043
+ *
8044
+ * It also settles the licence question by removing it. FFmpeg's licence is
8045
+ * chosen at compile time: the core is LGPL 2.1+, `--enable-gpl` makes it GPL
8046
+ * (for x264/x265), `--enable-version3` makes that v3, and `--enable-nonfree`
8047
+ * makes the result undistributable. These are GPL v3 builds, and we do not
8048
+ * distribute them: the user's own node fetches the archive from the project
8049
+ * that publishes it, so we convey no GPL work and inherit none of the
8050
+ * obligations that come with conveying one. That is the whole reason the image
8051
+ * no longer installs ffmpeg at all — not a technical preference.
8052
+ *
8053
+ * ## Why jellyfin-ffmpeg
8054
+ *
8055
+ * One vendor covering linux-amd64, linux-arm64, darwin-arm64 and darwin-x64
8056
+ * from one release, with the widest hardware surface of anything maintained:
8057
+ * VAAPI, QSV, NVENC/NVDEC, AMF, Vulkan, OpenCL and DRM on amd64, plus Rockchip
8058
+ * MPP on arm64. It reaches the vendor libraries through dlopen trampolines,
8059
+ * so the binary is not linked against a driver stack it may not find.
8060
+ *
8061
+ * **What it still needs from the host, measured 2026-09-19.** On the Unraid
8062
+ * HOST, which has no libva, `-vaapi_device` aborts the process outright —
8063
+ * `implib-gen: libva-drm.so.2: failed to load library ... Assertion '0 &&
8064
+ * "Assertion in generated code"' failed`. Inside our container, which installs
8065
+ * libva plus the iHD driver, the same command encodes: verified end to end with
8066
+ * `testsrc → format=nv12,hwupload → h264_vaapi`. So the image drops ffmpeg and
8067
+ * KEEPS the Intel media stack; the drivers are the part a binary cannot bring.
8068
+ *
8069
+ * ## Why each artifact carries a checksum and a claim
8070
+ *
8071
+ * The download is now the only source, so `sha256` is verified before anything
8072
+ * is extracted — jellyfin publishes no checksums on its release assets, so
8073
+ * these are ours, taken at the version bump. And `expectedHwaccels` is what the
8074
+ * build is supposed to be able to do: a binary that probes short of its own
8075
+ * claim is a source that changed under us, which is precisely what went
8076
+ * unnoticed for months when a static build turned out to carry no VAAPI at all
8077
+ * (D536).
8078
+ */
8079
+ /** The pinned jellyfin-ffmpeg release. Changing this is the version change. */
8080
+ var FFMPEG_RELEASE = "8.1.2-5";
8081
+ var BASE = `https://github.com/jellyfin/jellyfin-ffmpeg/releases/download/v${FFMPEG_RELEASE}`;
8082
+ function portable(target) {
8083
+ return `${BASE}/jellyfin-ffmpeg_${FFMPEG_RELEASE}_portable_${target}-gpl.tar.xz`;
8084
+ }
8085
+ portable("linux64"), portable("linuxarm64"), portable("macarm64"), portable("mac64");
8034
8086
  /**
8035
8087
  * LA tabella "quale booleano di questo tipo di device conta come ALTO", e il
8036
8088
  * valutatore puro del suo FRONTE.
@@ -8834,7 +8886,6 @@ var CompositionSchema = object({
8834
8886
  });
8835
8887
  new Set([
8836
8888
  "track",
8837
- "summary",
8838
8889
  "face",
8839
8890
  "identity",
8840
8891
  "plate",
@@ -13608,6 +13659,70 @@ var CompositionBlockStateSchema = object({
13608
13659
  reason: string().optional(),
13609
13660
  fields: array(CompositionFieldStateSchema)
13610
13661
  });
13662
+ var NUMBER = {
13663
+ kind: "fixed",
13664
+ result: ["number"]
13665
+ };
13666
+ var BOOLEAN = {
13667
+ kind: "fixed",
13668
+ result: ["boolean"]
13669
+ };
13670
+ Object.freeze({
13671
+ min: NUMBER,
13672
+ max: NUMBER,
13673
+ abs: NUMBER,
13674
+ floor: NUMBER,
13675
+ ceil: NUMBER,
13676
+ sqrt: NUMBER,
13677
+ round: NUMBER,
13678
+ pow: NUMBER,
13679
+ clamp: NUMBER,
13680
+ avg: NUMBER,
13681
+ sum: NUMBER,
13682
+ age: NUMBER,
13683
+ convert: NUMBER,
13684
+ coalesce: { kind: "coalesce" },
13685
+ any: BOOLEAN,
13686
+ all: BOOLEAN,
13687
+ within: BOOLEAN,
13688
+ latest: {
13689
+ kind: "fixed",
13690
+ result: ["number", "null"]
13691
+ },
13692
+ number: {
13693
+ kind: "fixed",
13694
+ result: ["number", "null"]
13695
+ },
13696
+ rose: {
13697
+ kind: "fixed",
13698
+ result: ["number", "null"]
13699
+ },
13700
+ count: NUMBER
13701
+ });
13702
+ `${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
13703
+ /**
13704
+ * What a composition may BUILD on a device type (G2, D676): the caps a new
13705
+ * device of that type, or an existing one that lacks them, can be given. The
13706
+ * blockers are the validator's own refusal codes, and a spec compares this
13707
+ * listing with `planComposition` for every capability — the editor can never
13708
+ * offer a feature the save would refuse for the same reason.
13709
+ */
13710
+ var ComposableFieldSchema = object({
13711
+ path: string(),
13712
+ kind: CompositionFieldKindSchema,
13713
+ nullable: boolean(),
13714
+ required: boolean(),
13715
+ enumValues: array(string()).optional()
13716
+ });
13717
+ var ComposableCapabilitiesSchema = object({ caps: array(object({
13718
+ cap: string(),
13719
+ fields: array(ComposableFieldSchema),
13720
+ /** Present for an item-array cap (`consumables.items`). */
13721
+ itemArray: object({
13722
+ path: string(),
13723
+ keyField: string()
13724
+ }).optional()
13725
+ })) });
13611
13726
  /** Where a block runs. The operator chooses — a block driving a device on an
13612
13727
  * agent is the reason placement is not fixed to the hub. */
13613
13728
  var CoreBlockPlacementSchema = union([literal("hub"), string().min(1)]);
@@ -13772,7 +13887,7 @@ method(object({}), object({ blocks: array(CoreBlockSchema) }), { auth: "admin" }
13772
13887
  }), method(object({ blockId: string() }), CompositionGetReadSchema, { auth: "admin" }), method(object({}), CompositionListReadSchema, { auth: "admin" }), method(object({
13773
13888
  addonId: string().min(1),
13774
13889
  stableId: string().min(1)
13775
- }), CompositionCustomizationReadSchema, { auth: "admin" }), method(object({
13890
+ }), CompositionCustomizationReadSchema, { auth: "admin" }), method(object({ deviceType: _enum(DeviceType) }), ComposableCapabilitiesSchema, { auth: "admin" }), method(object({
13776
13891
  composition: CompositionSchema,
13777
13892
  blockId: string().optional()
13778
13893
  }), CompositionValidationSchema, {
@@ -20676,6 +20791,102 @@ var OauthIntegrationDescriptorSchema = object({
20676
20791
  });
20677
20792
  method(_void(), OauthIntegrationDescriptorSchema, { auth: "admin" });
20678
20793
  /**
20794
+ * What started a camera's onboard motion (D672). `camera` is the camera's own
20795
+ * firmware; `sensor` is a device the operator ATTACHED to it. Absent on the
20796
+ * wire means the camera: only the camera-sensors bridge ever says `sensor`.
20797
+ */
20798
+ var MotionTriggeredBySchema = discriminatedUnion("kind", [object({ kind: literal("camera") }), object({
20799
+ kind: literal("sensor"),
20800
+ deviceId: number().int().positive()
20801
+ })]);
20802
+ Object.freeze({ kind: "camera" });
20803
+ var CameraSensorRefSchema = object({
20804
+ addonId: string().min(1),
20805
+ stableId: string().min(1)
20806
+ });
20807
+ function cameraSensorRefKey(ref) {
20808
+ return `${ref.addonId}/${ref.stableId}`;
20809
+ }
20810
+ /** CS-1 accepts exactly one mode; CS-2 (D673) widens it to confirm / replace. */
20811
+ var CameraSensorsModeSchema = _enum(["in-addition"]);
20812
+ var CameraSensorsConfigSchema = object({
20813
+ mode: CameraSensorsModeSchema,
20814
+ sensors: array(CameraSensorRefSchema).min(1).max(8)
20815
+ }).superRefine((value, ctx) => {
20816
+ const seen = /* @__PURE__ */ new Set();
20817
+ value.sensors.forEach((ref, index) => {
20818
+ const key = cameraSensorRefKey(ref);
20819
+ if (seen.has(key)) ctx.addIssue({
20820
+ code: "custom",
20821
+ path: ["sensors", index],
20822
+ message: `duplicate camera sensor ${key}`
20823
+ });
20824
+ seen.add(key);
20825
+ });
20826
+ });
20827
+ var RefFields = {
20828
+ addonId: string(),
20829
+ stableId: string()
20830
+ };
20831
+ var CameraSensorAttachmentSchema = discriminatedUnion("state", [
20832
+ object({
20833
+ ...RefFields,
20834
+ state: literal("ready"),
20835
+ deviceId: number(),
20836
+ name: string(),
20837
+ caps: array(string()).readonly()
20838
+ }),
20839
+ object({
20840
+ ...RefFields,
20841
+ state: literal("offline"),
20842
+ deviceId: number(),
20843
+ name: string(),
20844
+ reason: _enum(["offline", "disabled"])
20845
+ }),
20846
+ object({
20847
+ ...RefFields,
20848
+ state: literal("missing"),
20849
+ reason: string()
20850
+ }),
20851
+ object({
20852
+ ...RefFields,
20853
+ state: literal("unsupported"),
20854
+ deviceId: number(),
20855
+ name: string(),
20856
+ reason: string()
20857
+ }),
20858
+ object({
20859
+ ...RefFields,
20860
+ state: literal("unreadable"),
20861
+ reason: string()
20862
+ })
20863
+ ]);
20864
+ /**
20865
+ * Why a configured camera forwards NOTHING from its sensors, however ready they
20866
+ * are (D672): it does not list `onboard` in `motionSources` (attaching a sensor
20867
+ * does not add it), or it has no active detection config at all (the bridge
20868
+ * reads the active config). Absent = forwarded, or an older node that does not
20869
+ * say.
20870
+ */
20871
+ var CameraSensorsNotForwardedSchema = _enum(["onboard-not-listed", "no-active-detection"]);
20872
+ var CameraSensorsStatusSchema = discriminatedUnion("state", [
20873
+ object({ state: literal("not-configured") }),
20874
+ object({
20875
+ state: literal("unreadable"),
20876
+ reason: string()
20877
+ }),
20878
+ object({
20879
+ state: literal("configured"),
20880
+ mode: CameraSensorsModeSchema,
20881
+ sensors: array(CameraSensorAttachmentSchema).readonly(),
20882
+ notForwarded: CameraSensorsNotForwardedSchema.optional()
20883
+ })
20884
+ ]);
20885
+ Object.freeze({
20886
+ state: "unreadable",
20887
+ reason: "camera sensor mappings not loaded"
20888
+ });
20889
+ /**
20679
20890
  * A model choice has a SCOPE, and a scope change has a workflow.
20680
20891
  *
20681
20892
  * ## The two scopes
@@ -21424,6 +21635,12 @@ var MotionEventSchema = object({
21424
21635
  /** Populated by B5 (recording playback URL for this event). */
21425
21636
  mediaUrl: string().optional(),
21426
21637
  /**
21638
+ * The FIRST trigger of an `onboard` episode, written once at open (D672).
21639
+ * Absent = not recorded (a row written before D672, or an analyzer /
21640
+ * device-activity episode) — never read as "the camera" (D393).
21641
+ */
21642
+ triggeredBy: MotionTriggeredBySchema.optional(),
21643
+ /**
21427
21644
  * One row per motion EPISODE, not one per push (D475). `null` while the
21428
21645
  * episode is still open — a further rising edge extends it in place rather
21429
21646
  * than inserting a new row. Set once, at close, to `lastOnAt - startedAt`
@@ -21582,6 +21799,21 @@ var ObjectEventSchema = object({
21582
21799
  keyFrameMediaId: number().int().optional(),
21583
21800
  /** Populated by B5 (recording playback URL for this event). */
21584
21801
  mediaUrl: string().optional(),
21802
+ /**
21803
+ * When the change this row records HAPPENED, epoch ms, when that is earlier
21804
+ * than {@link timestamp} and the producer could date it (D684).
21805
+ *
21806
+ * Set on a package PICK-UP row only: its `timestamp` is when the departure
21807
+ * was CONCLUDED — five minutes of unseen observed time after the parcel went
21808
+ * — and a notification's footage has to be cut around the pick-up, not the
21809
+ * empty doormat after it (D682). Stored so every path that rebuilds a
21810
+ * notification subject from the row (the boot reconcile, a dry-run) anchors
21811
+ * on the same instant the live hook did.
21812
+ *
21813
+ * `timestamp` keeps its meaning. Absent on every other row and on every
21814
+ * pick-up written before D684 — UNKNOWN, never 0 and never `timestamp`.
21815
+ */
21816
+ observedAt: number().optional(),
21585
21817
  /** The parent track's key-event importance [0,1], propagated to every object
21586
21818
  * event of the track (so an event row can be sorted by importance without a
21587
21819
  * track join). Absent on legacy rows / before the track was scored. */
@@ -21917,131 +22149,6 @@ var RecentTracksQueryInput = object({
21917
22149
  /** See {@link ExcludeSourcesDoc}. */
21918
22150
  excludeSources: array(TrackSourceSchema).optional()
21919
22151
  });
21920
- /**
21921
- * A Summary (D359): the per-camera session envelope that references tracks.
21922
- * `groupShotMediaId` is the media ROW id of its group shot (`ownerKind:
21923
- * 'summary'`, served by the event-media plane at `/m/<id>`), null until the
21924
- * first frame with a member visible has been materialised (D482 — it was the
21925
- * row's composite key, which embedded the owner and could name another table's
21926
- * row once event ids became per-table rowids).
21927
- */
21928
- var SummarySchema = object({
21929
- id: string(),
21930
- deviceId: number(),
21931
- openedAt: number(),
21932
- lastActiveAt: number(),
21933
- sealedAt: number().nullable(),
21934
- memberCount: number().int().nonnegative(),
21935
- groupShotMediaId: number().int().nullable()
21936
- });
21937
- var SummariesQueryInput = object({
21938
- deviceIds: array(number()).min(1),
21939
- since: number().optional(),
21940
- until: number().optional(),
21941
- limit: number().int().min(1).max(200).default(50),
21942
- /** The same member-wise filter {@link listRecentSummaries} takes — one
21943
- * meaning of "dog" on every summary surface. */
21944
- classes: array(string().min(1).max(60)).max(40).optional()
21945
- });
21946
- var SummaryDetailSchema = object({
21947
- summary: SummarySchema,
21948
- /** Members in absorption order, oldest join first. */
21949
- members: array(object({
21950
- trackId: string(),
21951
- /**
21952
- * The track's class at the time it JOINED, or `null` when it was unresolved
21953
- * and the track no longer exists to fill it.
21954
- *
21955
- * The join, not the latest opinion: class voting can re-decide a track's
21956
- * class afterwards, and a group's composition is the history of who came
21957
- * together. A consumer counts these to badge a thumbnail — "two people and a
21958
- * dog" — rather than being handed a second, denormalised tally that would
21959
- * drift from the members it claims to describe.
21960
- */
21961
- className: string().nullable(),
21962
- /** `primary` is the one member that carries the group's identity. */
21963
- role: _enum([
21964
- "primary",
21965
- "sibling",
21966
- "child"
21967
- ]).nullable(),
21968
- joinedAt: number(),
21969
- /** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
21970
- * at read time. Absent when nothing resolved, never an empty string. */
21971
- label: string().optional(),
21972
- /** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
21973
- * recognised nobody, and absent for a member whose track has been pruned —
21974
- * a thumbnail that names the wrong person is worse than one naming nobody. */
21975
- subLabel: string().optional()
21976
- })).readonly()
21977
- });
21978
- /**
21979
- * What a LIST of groups carries: the envelope plus what it is MADE OF.
21980
- *
21981
- * Coarse on purpose — the operator's rule is "only the rough data on the list,
21982
- * we extend when we notice we need more". Enough to draw the card ("two people
21983
- * and a dog") and no more. The MEMBERS, their names and the per-member links
21984
- * are on {@link getSummary}: shipping every member of every group so a client
21985
- * can count them turns a page of two hundred groups into a thousand records to
21986
- * draw two hundred badges.
21987
- */
21988
- var SummaryListItemSchema = object({
21989
- summary: SummarySchema,
21990
- /** Class counts, most numerous first; `className: null` is a member whose
21991
- * class never resolved, counted so the counts add up to `memberCount`. */
21992
- classes: array(object({
21993
- className: string().nullable(),
21994
- count: number().int().positive()
21995
- })).readonly()
21996
- });
21997
- var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
21998
- /**
21999
- * The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
22000
- *
22001
- * The reel on the cameras page and the Events gallery both ride a cursor, so a
22002
- * summaries feed that could only answer "the last N for these cameras"
22003
- * (`listSummaries`) would make groups available in the timeline and nowhere
22004
- * else. Two feeds with different ordering contracts would be two ideas of what
22005
- * "newest" means, on one screen.
22006
- */
22007
- var RecentSummariesQueryInput = object({
22008
- /** Devices to merge. An empty array yields an empty page. */
22009
- deviceIds: array(number()),
22010
- /** Window lower bound on `lastActiveAt` (inclusive). */
22011
- since: number().optional(),
22012
- /** Window upper bound on `lastActiveAt` (inclusive). */
22013
- until: number().optional(),
22014
- limit: number().int().min(1).max(500).default(100),
22015
- /** Opaque continuation cursor from a previous page's `nextCursor`. */
22016
- cursor: string().optional(),
22017
- /**
22018
- * Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
22019
- * deliberately the same name: the events filter tree emits one list of ticked
22020
- * taxonomy nodes, and a summaries feed that called it something else would
22021
- * make the operator's one filter component produce two shapes.
22022
- *
22023
- * A question about the MEMBERS: a group matches when ANY of them does. "Show
22024
- * me the arrivals with a dog" has to return the group of four people who had
22025
- * one with them; a filter on the group's own fields could only ever answer
22026
- * about its primary.
22027
- *
22028
- * Matched against all THREE tiers of a member — the class (`animal`), the
22029
- * sub-class (`dog`) and the instance (a name, a plate) — because which tier a
22030
- * ticked node lives on is the taxonomy's business, not the caller's. `dog` is
22031
- * an event kind in the tree and a tier-1 label on an `animal` track; a filter
22032
- * that read only the class would answer "animal" and never "dog".
22033
- *
22034
- * ABSENT or EMPTY means no filter — absent is not a selection of none.
22035
- */
22036
- classes: array(string().min(1).max(60)).max(40).optional()
22037
- });
22038
- var RecentSummariesPageSchema = object({
22039
- /** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
22040
- * {@link listSummaries} — one list shape, so a card renders the same
22041
- * whichever feed drew it. */
22042
- summaries: array(SummaryListItemSchema).readonly(),
22043
- nextCursor: string().nullable()
22044
- });
22045
22152
  var RecentTracksPageSchema = object({
22046
22153
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
22047
22154
  tracks: array(TrackSchema).readonly(),
@@ -22553,7 +22660,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
22553
22660
  classes: array(string()).optional(),
22554
22661
  /** See {@link ExcludeSourcesDoc}. */
22555
22662
  excludeSources: array(TrackSourceSchema).optional()
22556
- }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
22663
+ }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
22557
22664
  kind: "mutation",
22558
22665
  auth: "admin"
22559
22666
  }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({ deviceId: number() }), array(EventKindDescriptorSchema).readonly()), method(object({ deviceIds: array(number()).min(1).max(200) }), array(EventKindsForDeviceSchema).readonly()), method(object({
@@ -23733,6 +23840,23 @@ var MotionSourceEnum = _enum([
23733
23840
  */
23734
23841
  var MotionSourcesSchema = array(MotionSourceEnum);
23735
23842
  /**
23843
+ * The operator-facing name of each MOTION source (D672: `onboard` = the
23844
+ * camera's sensors — its own motion plus any sensor attached to it). The wire
23845
+ * value stays `onboard`; only the label changed. `detectionSources: 'onboard'`
23846
+ * ("Camera onboard AI") and the notification source filter keep their labels.
23847
+ */
23848
+ var MOTION_SOURCE_LABELS = {
23849
+ analyzer: "Frame-diff Analyzer (motion addon)",
23850
+ onboard: "Camera sensors",
23851
+ "device-activity": "Device activity (the device says it is working)"
23852
+ };
23853
+ /** The order the motion-source picker offers them in (not the enum's order). */
23854
+ var MOTION_SOURCE_PICKER_ORDER = [
23855
+ "analyzer",
23856
+ "onboard",
23857
+ "device-activity"
23858
+ ];
23859
+ /**
23736
23860
  * Which root detector a camera runs — EXACTLY ONE.
23737
23861
  *
23738
23862
  * Deliberately the SAME vocabulary post-analysis already tags every detection
@@ -24079,7 +24203,14 @@ var RunnerCameraConfigSchema = object({
24079
24203
  */
24080
24204
  inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
24081
24205
  });
24082
- 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;
24206
+ MOTION_SOURCE_PICKER_ORDER.map((value) => value === "onboard" ? {
24207
+ value,
24208
+ label: MOTION_SOURCE_LABELS[value],
24209
+ description: "The camera's own motion, plus any sensor attached to it"
24210
+ } : {
24211
+ value,
24212
+ label: MOTION_SOURCE_LABELS[value]
24213
+ }), 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;
24083
24214
  /**
24084
24215
  * Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
24085
24216
  * load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
@@ -24653,6 +24784,11 @@ var CameraStatusSchema = object({
24653
24784
  */
24654
24785
  switchedOff: array(CameraSwitchIdSchema).readonly(),
24655
24786
  /**
24787
+ * The camera's attached sensors (D672). Optional only for a status composed
24788
+ * by an orchestrator older than D672; this orchestrator always sets it.
24789
+ */
24790
+ cameraSensors: CameraSensorsStatusSchema.optional(),
24791
+ /**
24656
24792
  * Stages of the bounded fan-out that were CUT SHORT — a timeout or a
24657
24793
  * rejection — and whose block is therefore `null` because we could not
24658
24794
  * READ it, not because there is nothing there.
@@ -24745,6 +24881,28 @@ var NodeInferenceDevicesSchema = object({
24745
24881
  reachable: boolean(),
24746
24882
  devices: array(NodeInferenceDeviceSchema).readonly()
24747
24883
  });
24884
+ /**
24885
+ * Pipeline Orchestrator capability — global load balancer + camera dispatcher.
24886
+ *
24887
+ * Lives on the hub. Tracks the camera-to-agent assignment map, listens to
24888
+ * device lifecycle events, queries each runner's capacity + hardware
24889
+ * profile, and dispatches `attachCamera` / `detachCamera` cap calls to the
24890
+ * appropriate runner instances. Persists assignments via the multi-level
24891
+ * settings store so they survive hub restarts.
24892
+ *
24893
+ * Strictly the control plane: never sees a frame, never calls inference,
24894
+ * never drains queues. The runner does that work locally on each agent.
24895
+ */
24896
+ /**
24897
+ * The input of `setCameraSensors` (G5, D676): the ONE typed write path of a
24898
+ * camera's attached sensors (D672). `config: null` removes the attachment —
24899
+ * the camera reads `not-configured` again, never `unreadable`.
24900
+ */
24901
+ var SetCameraSensorsInputSchema = object({
24902
+ deviceId: number().int().nonnegative(),
24903
+ /** `null` removes the attachment: the camera goes back to `not-configured`. */
24904
+ config: CameraSensorsConfigSchema.nullable()
24905
+ });
24748
24906
  method(StorageMigrationLeaseInputSchema, object({ paused: literal(true) }), {
24749
24907
  kind: "mutation",
24750
24908
  auth: "admin"
@@ -24899,7 +25057,10 @@ method(StorageMigrationLeaseInputSchema, object({ paused: literal(true) }), {
24899
25057
  }), CameraSwitchGroupSchema, {
24900
25058
  kind: "mutation",
24901
25059
  auth: "admin"
24902
- }), method(object({ deviceId: number() }), CameraStatusSchema), method(object({ deviceIds: array(number()).optional() }), array(CameraStatusSchema).readonly()), method(_void(), DiskReconcileJobSchema, {
25060
+ }), method(object({ deviceId: number() }), CameraStatusSchema), method(object({ deviceIds: array(number()).optional() }), array(CameraStatusSchema).readonly()), method(SetCameraSensorsInputSchema, object({ success: literal(true) }), {
25061
+ kind: "mutation",
25062
+ auth: "admin"
25063
+ }), method(_void(), DiskReconcileJobSchema, {
24903
25064
  kind: "mutation",
24904
25065
  auth: "admin"
24905
25066
  }), method(_void(), DiskReconcileJobSchema, { auth: "admin" }), method(_void(), array(PipelineTemplateSchema).readonly()), method(object({
@@ -30724,7 +30885,9 @@ object({
30724
30885
  detected: boolean(),
30725
30886
  timestamp: number(),
30726
30887
  source: MotionSourceEnum,
30727
- regions: array(MotionRegionSchema).readonly().optional()
30888
+ regions: array(MotionRegionSchema).readonly().optional(),
30889
+ /** Who started it (D672). Absent = the camera itself. Only `onboard` carries `sensor`. */
30890
+ triggeredBy: MotionTriggeredBySchema.optional()
30728
30891
  });
30729
30892
  DeviceType.Camera, DeviceType.Sensor, method(object({ deviceId: number() }), boolean());
30730
30893
  object({
@@ -35798,47 +35961,6 @@ DeviceType.Camera, method(object({
35798
35961
  detection: array(ZoneRuleSchema).readonly(),
35799
35962
  package: array(ZoneRuleSchema).readonly()
35800
35963
  });
35801
- var NUMBER = {
35802
- kind: "fixed",
35803
- result: ["number"]
35804
- };
35805
- var BOOLEAN = {
35806
- kind: "fixed",
35807
- result: ["boolean"]
35808
- };
35809
- Object.freeze({
35810
- min: NUMBER,
35811
- max: NUMBER,
35812
- abs: NUMBER,
35813
- floor: NUMBER,
35814
- ceil: NUMBER,
35815
- sqrt: NUMBER,
35816
- round: NUMBER,
35817
- pow: NUMBER,
35818
- clamp: NUMBER,
35819
- avg: NUMBER,
35820
- sum: NUMBER,
35821
- age: NUMBER,
35822
- convert: NUMBER,
35823
- coalesce: { kind: "coalesce" },
35824
- any: BOOLEAN,
35825
- all: BOOLEAN,
35826
- within: BOOLEAN,
35827
- latest: {
35828
- kind: "fixed",
35829
- result: ["number", "null"]
35830
- },
35831
- number: {
35832
- kind: "fixed",
35833
- result: ["number", "null"]
35834
- },
35835
- rose: {
35836
- kind: "fixed",
35837
- result: ["number", "null"]
35838
- },
35839
- count: NUMBER
35840
- });
35841
- `${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
35842
35964
  /**
35843
35965
  * Accessory device helpers — shared across drivers.
35844
35966
  *
@@ -38261,6 +38383,12 @@ Object.freeze({
38261
38383
  addonId: null,
38262
38384
  access: "view"
38263
38385
  },
38386
+ "coreBlocks.listComposableCaps": {
38387
+ capName: "core-blocks",
38388
+ capScope: "system",
38389
+ addonId: null,
38390
+ access: "view"
38391
+ },
38264
38392
  "coreBlocks.listCompositions": {
38265
38393
  capName: "core-blocks",
38266
38394
  capScope: "system",
@@ -41231,12 +41359,6 @@ Object.freeze({
41231
41359
  addonId: null,
41232
41360
  access: "view"
41233
41361
  },
41234
- "pipelineAnalytics.getSummary": {
41235
- capName: "pipeline-analytics",
41236
- capScope: "device",
41237
- addonId: null,
41238
- access: "view"
41239
- },
41240
41362
  "pipelineAnalytics.getTrack": {
41241
41363
  capName: "pipeline-analytics",
41242
41364
  capScope: "device",
@@ -41297,12 +41419,6 @@ Object.freeze({
41297
41419
  addonId: null,
41298
41420
  access: "view"
41299
41421
  },
41300
- "pipelineAnalytics.listRecentSummaries": {
41301
- capName: "pipeline-analytics",
41302
- capScope: "device",
41303
- addonId: null,
41304
- access: "view"
41305
- },
41306
41422
  "pipelineAnalytics.listRecentTracks": {
41307
41423
  capName: "pipeline-analytics",
41308
41424
  capScope: "device",
@@ -41333,12 +41449,6 @@ Object.freeze({
41333
41449
  addonId: null,
41334
41450
  access: "view"
41335
41451
  },
41336
- "pipelineAnalytics.listSummaries": {
41337
- capName: "pipeline-analytics",
41338
- capScope: "device",
41339
- addonId: null,
41340
- access: "view"
41341
- },
41342
41452
  "pipelineAnalytics.listTrackMedia": {
41343
41453
  capName: "pipeline-analytics",
41344
41454
  capScope: "device",
@@ -41963,6 +42073,12 @@ Object.freeze({
41963
42073
  addonId: null,
41964
42074
  access: "create"
41965
42075
  },
42076
+ "pipelineOrchestrator.setCameraSensors": {
42077
+ capName: "pipeline-orchestrator",
42078
+ capScope: "system",
42079
+ addonId: null,
42080
+ access: "create"
42081
+ },
41966
42082
  "pipelineOrchestrator.setCameraStepOverride": {
41967
42083
  capName: "pipeline-orchestrator",
41968
42084
  capScope: "system",
@@ -45508,11 +45624,6 @@ Object.freeze({
45508
45624
  form: "single",
45509
45625
  optional: true
45510
45626
  }],
45511
- "pipelineAnalytics.listRecentSummaries": [{
45512
- name: "deviceIds",
45513
- form: "array",
45514
- optional: false
45515
- }],
45516
45627
  "pipelineAnalytics.listRecentTracks": [{
45517
45628
  name: "deviceIds",
45518
45629
  form: "array",
@@ -45523,11 +45634,6 @@ Object.freeze({
45523
45634
  form: "array",
45524
45635
  optional: true
45525
45636
  }],
45526
- "pipelineAnalytics.listSummaries": [{
45527
- name: "deviceIds",
45528
- form: "array",
45529
- optional: false
45530
- }],
45531
45637
  "pipelineAnalytics.listTrackMedia": [{
45532
45638
  name: "deviceId",
45533
45639
  form: "single",
@@ -45683,6 +45789,11 @@ Object.freeze({
45683
45789
  form: "single",
45684
45790
  optional: false
45685
45791
  }],
45792
+ "pipelineOrchestrator.setCameraSensors": [{
45793
+ name: "deviceId",
45794
+ form: "single",
45795
+ optional: false
45796
+ }],
45686
45797
  "pipelineOrchestrator.setCameraStepOverride": [{
45687
45798
  name: "deviceId",
45688
45799
  form: "single",
@@ -1,5 +1,5 @@
1
1
  import { h as e, l as t, u as n, y as r } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare__react__loadShare__.js-DJDHChgO.mjs";
2
- import { o as i, s as a } from "./responsive-CUot36ya.mjs";
2
+ import { o as i, s as a } from "./responsive-BRO7smWV.mjs";
3
3
  import { n as o, r as s, t as c } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-ds_Ehzaa.mjs";
4
4
  var l = a("chevron-down", [["path", {
5
5
  d: "m6 9 6 6 6-6",