@camstack/addon-tailscale 1.2.117 → 1.2.119

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.
@@ -1,4 +1,32 @@
1
- //#region ../types/dist/event-category-BGmz_oxW.mjs
1
+ //#region \0rolldown/runtime.js
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
10
+ key = keys[i];
11
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
12
+ get: ((k) => from[k]).bind(null, key),
13
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
14
+ });
15
+ }
16
+ return to;
17
+ };
18
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
19
+ value: mod,
20
+ enumerable: true
21
+ }) : target, mod));
22
+ require("node:crypto");
23
+ let node_fs_promises = require("node:fs/promises");
24
+ node_fs_promises = __toESM(node_fs_promises);
25
+ let node_os = require("node:os");
26
+ node_os = __toESM(node_os);
27
+ let node_path = require("node:path");
28
+ node_path = __toESM(node_path);
29
+ //#region ../types/dist/event-category-B_0XEcLF.mjs
2
30
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
3
31
  EventCategory["SystemBoot"] = "system.boot";
4
32
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -499,15 +527,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
499
527
  EventCategory["AgentWsDisconnected"] = "agent.ws.disconnected";
500
528
  EventCategory["AgentBackupActivated"] = "agent.backup.activated";
501
529
  EventCategory["OrchestrationSettingsUpdated"] = "orchestration.settings-updated";
502
- /**
503
- * Per-agent hwaccel preference changed (user override set, cleared, or
504
- * re-probed). Observability event — decoders pull the current pref at
505
- * `createSession`, so running sessions keep their current backend until
506
- * they rotate naturally (camera add/remove, stream restart). Future
507
- * work can wire a listener in stream-broker that force-rotates live
508
- * sessions; for now this event powers logs + admin-UI toast feedback.
509
- */
510
- EventCategory["PipelineAgentHwaccelChanged"] = "pipeline.agent-hwaccel-changed";
511
530
  EventCategory["MotionAnalysis"] = "detection.motion-analysis";
512
531
  /** All raw motion zones from CCL before minArea filter — for UI debug overlay. */
513
532
  EventCategory["MotionZonesRaw"] = "detection.motion-zones-raw";
@@ -5378,7 +5397,7 @@ var ZodIssueCode = {
5378
5397
  var ZodFirstPartyTypeKind;
5379
5398
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5380
5399
  //#endregion
5381
- //#region ../types/dist/sleep-DXKLNFvA.mjs
5400
+ //#region ../types/dist/sleep-B0JG7-_F.mjs
5382
5401
  /**
5383
5402
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5384
5403
  * window to float samples (D455).
@@ -6744,32 +6763,12 @@ object({
6744
6763
  audioCodec: string().optional(),
6745
6764
  metadata: record(string(), unknown()).readonly().optional()
6746
6765
  });
6747
- var EncodedPacketSchema = object({
6748
- type: _enum(["video", "audio"]),
6749
- data: _instanceof(Uint8Array),
6750
- pts: number(),
6751
- dts: number(),
6752
- keyframe: boolean(),
6753
- codec: string()
6754
- });
6755
- var DecodedFrameSchema = object({
6756
- data: _instanceof(Uint8Array),
6757
- width: number(),
6758
- height: number(),
6759
- format: _enum([
6760
- "jpeg",
6761
- "rgb",
6762
- "bgr",
6763
- "yuv420",
6764
- "gray"
6765
- ]),
6766
- timestamp: number()
6767
- });
6768
6766
  /**
6769
6767
  * Wire schema for `FrameHandle` — a zero-pixel, serialisable reference to a
6770
6768
  * frame in a shared-memory ring (Phase 5 / D9). Mirrors the `FrameHandle` TS
6771
- * interface in `interfaces/frame-handle.ts` field-for-field so a decoder cap
6772
- * method (`pullHandles`) can carry handles over tRPC / Moleculer.
6769
+ * interface in `interfaces/frame-handle.ts` field-for-field so a cap method
6770
+ * (the runner's native-crop and pipeline-executor inputs) can carry handles
6771
+ * over tRPC / Moleculer.
6773
6772
  *
6774
6773
  * The `satisfies` assertion below pins this schema to the interface: if a
6775
6774
  * field is added to / removed from `FrameHandle` without a matching schema
@@ -6795,50 +6794,6 @@ var FrameHandleSchema = object({
6795
6794
  slotCount: number().int().positive()
6796
6795
  });
6797
6796
  /**
6798
- * Pixel format a frame-handle subscriber can request from the broker
6799
- * (Phase 5 / D9). The packed, raster subset of `FrameFormat` — the formats a
6800
- * `frameSink: 'shm'` decoder session can write into a `FrameRing` slot.
6801
- * `jpeg` is excluded: a variable-length stream is not a fixed-stride ring
6802
- * payload, and no decoded-frame consumer requests it over the shm plane.
6803
- */
6804
- var FrameHandleFormatSchema = _enum([
6805
- "rgb",
6806
- "bgr",
6807
- "yuv420",
6808
- "gray"
6809
- ]);
6810
- /**
6811
- * Input for `stream-broker.subscribeFrames` (Phase 5 / D9). A consumer asks the
6812
- * broker for a `FrameHandle` stream of one `format`; the broker maintains one
6813
- * shared-memory ring per `(brokerId, format)` actually requested, so a `gray`
6814
- * subscriber (motion) and an `rgb` subscriber (detection) each read the format
6815
- * they asked for with no broker-side conversion.
6816
- */
6817
- var SubscribeFramesInputSchema = object({
6818
- brokerId: string(),
6819
- format: FrameHandleFormatSchema,
6820
- /**
6821
- * Optional reader-side cadence hint in frames per second. The broker does
6822
- * NOT throttle — latest-wins ring reads drop frames implicitly for a slow
6823
- * consumer. The value is echoed back in `SubscribeFramesResult.maxFps` so
6824
- * the consumer can pace its own `pullFrameHandles` polling.
6825
- */
6826
- maxFps: number().positive().optional(),
6827
- /** Short caller-identity tag (`motion`, `detection`, …) for diagnostics. */
6828
- tag: string().optional()
6829
- });
6830
- /**
6831
- * Result of `stream-broker.subscribeFrames`. The consumer then polls
6832
- * `pullFrameHandles({ subscriptionId, maxCount })` and feeds each returned
6833
- * `FrameHandle` to a `FrameRingReader`.
6834
- */
6835
- var SubscribeFramesResultSchema = object({
6836
- /** Opaque id the consumer passes to `pullFrameHandles` / `unsubscribeFrames`. */
6837
- subscriptionId: string(),
6838
- /** Reader-side cadence hint (frames/s) — echoes `SubscribeFramesInput.maxFps`. */
6839
- maxFps: number().nonnegative()
6840
- });
6841
- /**
6842
6797
  * Wire schema for a decoded audio chunk (Phase 5 / D9). Mirrors the
6843
6798
  * `DecodedAudioChunk` TS interface in `interfaces/stream-broker.ts`: PCM
6844
6799
  * sample bytes plus the track parameters a consumer needs to interpret them.
@@ -6846,8 +6801,8 @@ var SubscribeFramesResultSchema = object({
6846
6801
  * Audio chunks are tiny (a ~500ms AudioCodecSession window is a few KB of
6847
6802
  * Float32 PCM), so unlike video frames they ship their bytes INLINE over
6848
6803
  * tRPC / Moleculer — no shared-memory plane. `data` is typed `Uint8Array`
6849
- * (the wire-serialisable supertype of `Buffer`) to match `DecodedFrameSchema`
6850
- * / `EncodedPacketSchema`'s precedent; a `Buffer` is assignable to it.
6804
+ * (the wire-serialisable supertype of `Buffer`); a `Buffer` is assignable to
6805
+ * it.
6851
6806
  */
6852
6807
  var AudioChunkFormatSchema = _enum(AUDIO_CHUNK_FORMATS);
6853
6808
  var DecodedAudioChunkSchema = object({
@@ -6865,11 +6820,10 @@ var DecodedAudioChunkSchema = object({
6865
6820
  format: AudioChunkFormatSchema.optional()
6866
6821
  });
6867
6822
  /**
6868
- * Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9). The
6869
- * handle-free, ship-bytes-inline analogue of `subscribeFrames`: a consumer
6870
- * asks the broker for the decoded audio-chunk stream of one broker; the
6871
- * broker keeps a per-subscription bounded FIFO queue the consumer drains via
6872
- * `pullAudioChunks`.
6823
+ * Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9). Audio ships
6824
+ * its bytes inline: a consumer asks the broker for the decoded audio-chunk
6825
+ * stream of one broker; the broker keeps a per-subscription bounded FIFO queue
6826
+ * the consumer drains via `pullAudioChunks`.
6873
6827
  */
6874
6828
  var SubscribeAudioChunksInputSchema = object({
6875
6829
  brokerId: string(),
@@ -6900,9 +6854,7 @@ var BrokerStatsSchema = object({
6900
6854
  "stopped"
6901
6855
  ]),
6902
6856
  inputFps: number(),
6903
- decodeFps: number(),
6904
6857
  encodedSubscribers: number(),
6905
- decodedSubscribers: number(),
6906
6858
  uptimeMs: number(),
6907
6859
  bitrateKbps: number(),
6908
6860
  idrIntervalMs: number(),
@@ -6915,14 +6867,6 @@ var BrokerStatsSchema = object({
6915
6867
  preBufferMs: number(),
6916
6868
  preBufferPackets: number(),
6917
6869
  /**
6918
- * Moleculer node id of the decoder provider currently servicing this
6919
- * stream's decoded subscribers. `null` until the deferred decoder is
6920
- * created (no decoded clients yet, or codec not detected). Surfaces the
6921
- * runtime decoder placement so the UI can show "Decoder: <agent>" without
6922
- * a separate cap call per broker.
6923
- */
6924
- decoderNodeId: string().nullable(),
6925
- /**
6926
6870
  * Detected audio track parameters from the RTSP DESCRIBE / SDP. `null`
6927
6871
  * when the stream has no audio track or the broker is in cold start.
6928
6872
  * `supported = false` means the codec was detected but the local
@@ -10278,70 +10222,6 @@ var StorageLocationDeclarationSchema = object({
10278
10222
  "backup"
10279
10223
  ]).optional()
10280
10224
  });
10281
- var DecoderStatsSchema = object({
10282
- inputFps: number(),
10283
- outputFps: number(),
10284
- avgDecodeTimeMs: number(),
10285
- droppedFrames: number(),
10286
- /**
10287
- * Pull-mode adaptive-fps telemetry (optional — only pull sessions run the
10288
- * lag-driven controller; push sessions omit these). `lagMs` is the EWMA of
10289
- * the decoder's real-time drift (rising = falling behind live); `adaptiveFps`
10290
- * is the current lag-throttled emit rate (≤ `effectiveFps` ceiling).
10291
- */
10292
- lagMs: number().optional(),
10293
- effectiveFps: number().optional(),
10294
- adaptiveFps: number().optional()
10295
- });
10296
- var DecoderSessionConfigSchema = object({
10297
- codec: string(),
10298
- maxFps: number().default(0),
10299
- outputFormat: _enum([
10300
- "jpeg",
10301
- "rgb",
10302
- "bgr",
10303
- "yuv420",
10304
- "gray"
10305
- ]).default("jpeg"),
10306
- scale: number().default(1),
10307
- width: number().optional(),
10308
- height: number().optional(),
10309
- /**
10310
- * Identifier of the camera this decoder session serves. Optional
10311
- * because the cap is generic (any caller could request decode), but
10312
- * stream-broker passes it so decoder logs include `deviceId` for
10313
- * per-camera filtering when diagnosing failures (e.g. node-av
10314
- * sendPacket errors on a single hung camera).
10315
- */
10316
- deviceId: number().int().nonnegative().optional(),
10317
- /**
10318
- * Free-form tag for log scoping. Stream-broker uses
10319
- * `broker:<deviceId>/<profile>`. Decoder session logger surfaces it
10320
- * on every line so `grep tag=broker:5/high` filters one camera
10321
- * profile cleanly.
10322
- */
10323
- tag: string().optional(),
10324
- /**
10325
- * Where the session delivers decoded frames (Phase 5 / D9):
10326
- *
10327
- * - `'callback'` (default) — the legacy pixel path: decoded frames are
10328
- * buffered as `DecodedFrame`s and drained via `pullFrames`.
10329
- * - `'shm'` — the shared-memory frame plane: decoded frames are written
10330
- * into an OS shared-memory ring and drained as zero-pixel
10331
- * `FrameHandle`s via `pullHandles`. A session is one mode or the
10332
- * other — `pullFrames` returns nothing for an `'shm'` session and
10333
- * `pullHandles` returns nothing for a `'callback'` session.
10334
- */
10335
- frameSink: _enum(["callback", "shm"]).default("callback"),
10336
- /**
10337
- * Per-camera decoder DEBUG facility. When `true`, a pull-mode session emits
10338
- * a throttled (~1Hz) structured `decoder debug` line (effective/adaptive fps,
10339
- * real-time lag, dropped-frame delta, avg decode time, hwaccel). Mirrors the
10340
- * stream-broker's `streamingDebug` gate — off by default so production logs
10341
- * stay quiet and the emit path pays zero per-frame cost when disabled.
10342
- */
10343
- debug: boolean().optional()
10344
- });
10345
10225
  /**
10346
10226
  * Per-component log CHANNELS — the gate a hot path consults, and the registry
10347
10227
  * an addon declares its channels in.
@@ -10484,6 +10364,26 @@ var ClipSearchStrictnessSchema = _enum([
10484
10364
  "balanced",
10485
10365
  "strict"
10486
10366
  ]);
10367
+ /** Steps whose effect a root label can BE. */
10368
+ var LABEL_SUPPLY_STEP_IDS = [
10369
+ "animal-classifier",
10370
+ "vehicle-classifier",
10371
+ "package-detection"
10372
+ ];
10373
+ /** Steps whose box a root detection can BE. */
10374
+ var CROP_SUPPLY_STEP_IDS = ["plate-detection", "face-detection"];
10375
+ /**
10376
+ * Steps whose per-detection MASK a root detection can carry (D737). The live
10377
+ * mask step is `segmentation` — a frame-plane refiner that runs its own model
10378
+ * once per detection crop. (`instance-segmentation` is a dormant step id that
10379
+ * no camera tree carries.)
10380
+ */
10381
+ var MASK_SUPPLY_STEP_IDS = ["segmentation"];
10382
+ [
10383
+ ...LABEL_SUPPLY_STEP_IDS,
10384
+ ...CROP_SUPPLY_STEP_IDS,
10385
+ ...MASK_SUPPLY_STEP_IDS
10386
+ ];
10487
10387
  var MODEL_FORMATS = [
10488
10388
  "onnx",
10489
10389
  "coreml",
@@ -10512,7 +10412,53 @@ var ModelFormatEntrySchema = object({
10512
10412
  /** Multi-file payload (directory members or sibling files). */
10513
10413
  files: array(string()).readonly().optional(),
10514
10414
  /** Runtime(s) that can use this format. If omitted, inferred from ModelFormat key */
10515
- runtimes: array(_enum(["python"])).readonly().optional()
10415
+ runtimes: array(_enum(["python"])).readonly().optional(),
10416
+ /**
10417
+ * Content revision of the artefact, for one hosted OFF the CamStack mirror.
10418
+ * A format on the mirror leaves it unset: its revision (the sha256 of its
10419
+ * weight file) comes from the downloader's generated table, kept in step
10420
+ * with the mirror by `scripts/check-hosted-model-revisions.ts` (D744). A
10421
+ * node records the revision it downloaded next to the file
10422
+ * (`<file>.revision`); a copy with no record or a different one is stale
10423
+ * unless its weight file hashes to the revision, and a stale copy is
10424
+ * downloaded again, the old one serving until the new one is complete. No
10425
+ * revision at all ⇒ a file on disk is current, whatever it holds (D743).
10426
+ */
10427
+ revision: string().min(1).optional()
10428
+ });
10429
+ /**
10430
+ * What a node holds for one (model, format) (D746). `current` is a complete
10431
+ * copy at its catalog revision — exactly what `downloaded: true` means.
10432
+ * `stale` is bytes on disk that are not (yet) proven current under D743/D744:
10433
+ * no or a different revision record, or a missing sibling. `missing` is no
10434
+ * copy. `downloaded` alone folds `stale` into "not downloaded", which hid
10435
+ * reclaimable bytes and a copy about to be replaced.
10436
+ */
10437
+ var ModelOnDiskStateSchema = _enum([
10438
+ "current",
10439
+ "stale",
10440
+ "missing"
10441
+ ]);
10442
+ /**
10443
+ * The numeric precision of one format's BUILD (D746) — reported only when the
10444
+ * build states it (file-name token, an INT8 variant, an EdgeTPU compile, a
10445
+ * CamStack Core ML export). Absent means "not stated", never "fp32".
10446
+ */
10447
+ var ModelFormatPrecisionSchema = _enum([
10448
+ "fp32",
10449
+ "fp16",
10450
+ "int8"
10451
+ ]);
10452
+ /**
10453
+ * One format of one model as a node's `pipelineExecutor.getSchema` reports it.
10454
+ * `onDisk` / `precision` are optional for version skew: a runner that predates
10455
+ * them omits them, and a reader falls back to `downloaded`.
10456
+ */
10457
+ var PipelineModelFormatStatusSchema = object({
10458
+ downloaded: boolean(),
10459
+ sizeMB: number(),
10460
+ onDisk: ModelOnDiskStateSchema.optional(),
10461
+ precision: ModelFormatPrecisionSchema.optional()
10516
10462
  });
10517
10463
  /**
10518
10464
  * Extra file that must be downloaded alongside the model (e.g., labels JSON, dict.txt).
@@ -10553,11 +10499,11 @@ var ModelVariantGroupSchema = object({
10553
10499
  /** Quantization axis. Omit ⇒ the fp32 base build. */
10554
10500
  precision: _enum(["fp32", "int8"]).optional(),
10555
10501
  /**
10556
- * Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
10557
- * latency-optimized export (e.g. ReLU-activation variant) — the slot the
10558
- * future performance variants plug into.
10502
+ * Training / latency-variant axis. Omit ⇒ the standard build. `test` marks
10503
+ * an alternate training of the same family (Scrypted `relu_test`); chip
10504
+ * label is "Test".
10559
10505
  */
10560
- optimization: _enum(["standard", "fast"]).optional(),
10506
+ optimization: _enum(["standard", "test"]).optional(),
10561
10507
  /**
10562
10508
  * Input-resolution axis (square input side, px). Omit ⇒ the family's native
10563
10509
  * resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
@@ -10580,9 +10526,10 @@ var ModelProviderIdSchema = _enum([
10580
10526
  * are per upstream. A persisted custom-model row written when this field was a
10581
10527
  * string still parses — the string is lifted into `{ weights }`.
10582
10528
  *
10583
- * Every licence surface (the admin "Models and licenses" page,
10584
- * `THIRD_PARTY_MODELS.md`, the Hugging Face model table) is GENERATED from
10585
- * these records by `scripts/gen-model-licenses.ts` (D661).
10529
+ * Every machine licence surface (`THIRD_PARTY_MODELS.md`, the Hugging Face
10530
+ * model table) is GENERATED from these records by
10531
+ * `scripts/gen-model-licenses.ts` (D661). Operator-facing docs live in
10532
+ * `camstack/docs` → `/docs/detection/models`.
10586
10533
  */
10587
10534
  var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { weights: value } : value, object({
10588
10535
  /** SPDX id of the WEIGHTS' terms, a `LicenseRef-*` for non-SPDX terms, or `UNKNOWN`. */
@@ -10615,6 +10562,46 @@ var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { wei
10615
10562
  /** True when the weights or their data forbid commercial use. */
10616
10563
  nonCommercial: boolean().optional()
10617
10564
  }));
10565
+ /**
10566
+ * One step a ROOT detector can supply from its own output (D730) — see
10567
+ * `ModelCatalogEntry.suppliesSteps`.
10568
+ *
10569
+ * - `label`: the root's raw class IS the step's answer. `labelToEffect` maps
10570
+ * the root's label to the step's vocabulary; `uncovered` is the vocabulary
10571
+ * the root cannot produce (shown as unavailable, never a blocker).
10572
+ * - `crop`: the root draws the box the step would have found (`license_plate`
10573
+ * for plate-detection, `face` for face-detection). The box becomes a detail
10574
+ * child of the `parentMacro` detection that contains it — never a track.
10575
+ * - `mask`: the root's decode emits an instance mask with every detection (a
10576
+ * YOLO26-seg root, D737) — the `segmentation` step's result, carried on the
10577
+ * detection in the shape that step produces. Derived from the model's
10578
+ * postprocessor on read, never stored by an import.
10579
+ */
10580
+ var RootStepSupplySchema = discriminatedUnion("kind", [
10581
+ object({
10582
+ kind: literal("label"),
10583
+ stepId: _enum(LABEL_SUPPLY_STEP_IDS),
10584
+ labelToEffect: record(string(), string()),
10585
+ uncovered: array(string()).readonly()
10586
+ }),
10587
+ object({
10588
+ kind: literal("crop"),
10589
+ stepId: _enum(CROP_SUPPLY_STEP_IDS),
10590
+ rootLabels: array(string()).readonly(),
10591
+ parentMacro: _enum(["vehicle", "person"]),
10592
+ childClass: _enum(["plate", "face"]),
10593
+ /**
10594
+ * The root's smaller input side, stamped on read by `rootSuppliesOf` from
10595
+ * the model entry — what a step's `minRootInputPx` gate judges. Never
10596
+ * stored by an import.
10597
+ */
10598
+ rootInputPx: number().int().positive().optional()
10599
+ }),
10600
+ object({
10601
+ kind: literal("mask"),
10602
+ stepId: _enum(MASK_SUPPLY_STEP_IDS)
10603
+ })
10604
+ ]);
10618
10605
  var ModelCatalogEntrySchema = object({
10619
10606
  id: string(),
10620
10607
  name: string(),
@@ -10680,6 +10667,35 @@ var ModelCatalogEntrySchema = object({
10680
10667
  */
10681
10668
  defaultConfidence: number().min(0).max(1).optional(),
10682
10669
  /**
10670
+ * Per-MODEL default of the per-class confidence floors (`minConfidence<Macro>`
10671
+ * on a detector step), keyed by macro class: `{ person: 0.45 }`. A class
10672
+ * absent here runs at the step slider's global default. The same row shape
10673
+ * the floor measurement produces (`model-floors.json`: modelId → floors), so
10674
+ * a measured table is copied in as-is. An operator override is bound to the
10675
+ * model it was made for and does not survive a model change (D738). A custom
10676
+ * / imported model may declare it; without it, the global defaults apply.
10677
+ */
10678
+ defaultClassFloors: record(string(), number().min(0).max(1)).optional(),
10679
+ /**
10680
+ * The inference precision this model's OpenVINO IR needs on an Intel GPU.
10681
+ * Absent ⇒ the device default (f16 on a GPU). Set to `'f32'` for an FP32 IR
10682
+ * that produces invalid output at f16 — measured 2026-10-07 for YOLO26
10683
+ * base IRs (`yolo26s`: 0 true / 146 false positives; `yolo26m*`: NaN
10684
+ * scores) on the Core Ultra iGPU and the N100. Threaded to the pool as
10685
+ * `PoolModelConfig.gpuInferencePrecision`; the pool sets
10686
+ * INFERENCE_PRECISION_HINT on a GPU only. Costs ~60% latency on the GPU.
10687
+ */
10688
+ gpuInferencePrecision: _enum(["f32", "f16"]).optional(),
10689
+ /**
10690
+ * ROOT detectors only: per supplied step (`animal-classifier`, …), the
10691
+ * minimum DETECTION score from which this root's own fine label (species,
10692
+ * vehicle type — D736 root supply) is taken (D741). Below it the detection
10693
+ * keeps its macro class without the fine label. `1` = never take it from
10694
+ * this root. Absent ⇒ no floor beyond the macro floor. The supplied step's
10695
+ * `minConfidence` slider, bound to the ROOT model, overrides it.
10696
+ */
10697
+ suppliedLabelFloors: record(string(), number().min(0).max(1)).optional(),
10698
+ /**
10683
10699
  * When true, the executor produces a landmark-aligned crop (similarity warp
10684
10700
  * onto the canonical template) before this step runs, instead of a plain
10685
10701
  * axis-aligned bbox crop. Required for face-recognition embedders (ArcFace):
@@ -10741,6 +10757,16 @@ var ModelCatalogEntrySchema = object({
10741
10757
  */
10742
10758
  classMap: DetectionCatalogClassMapSchema.optional(),
10743
10759
  /**
10760
+ * The pipeline steps this ROOT detector can supply from its own output
10761
+ * (D730): its labels name a step's effect (`deer` for `animal-classifier`)
10762
+ * or draw a step's box (`license_plate` for `plate-detection`). Computed at
10763
+ * import from THIS model's labelmap by `deriveRootSupplies`, never written
10764
+ * by hand and never assumed per family; a row without it is derived on read
10765
+ * (`rootSuppliesOf`). Whether a camera uses it is the step's own
10766
+ * `useRootModel` flag (`resolveRootSupply`).
10767
+ */
10768
+ suppliesSteps: array(RootStepSupplySchema).readonly().optional(),
10769
+ /**
10744
10770
  * The model's CLIP feature-space contract (text encoder, dimension, vector
10745
10771
  * index, token window, search floor) — see `clip-model.ts`. Present ONLY on a
10746
10772
  * CLIP image encoder; its absence is what "not a CLIP model" means to the
@@ -12342,13 +12368,6 @@ var BrokerRtspClientSchema = object({
12342
12368
  lastRtpAt: number(),
12343
12369
  bytesSent: number()
12344
12370
  });
12345
- var BrokerDecodedClientSchema = object({
12346
- tag: string(),
12347
- subscribedAt: number(),
12348
- maxFps: number(),
12349
- framesDelivered: number(),
12350
- framesDropped: number()
12351
- });
12352
12371
  var BrokerAudioClientSchema = object({
12353
12372
  tag: string(),
12354
12373
  subscribedAt: number(),
@@ -12440,7 +12459,6 @@ var BrokerEncodedClientSchema = object({
12440
12459
  });
12441
12460
  var BrokerClientsSchema = object({
12442
12461
  rtsp: array(BrokerRtspClientSchema).readonly(),
12443
- decoded: array(BrokerDecodedClientSchema).readonly(),
12444
12462
  audio: array(BrokerAudioClientSchema).readonly(),
12445
12463
  encoded: array(BrokerEncodedClientSchema).readonly(),
12446
12464
  pipeClients: number(),
@@ -12809,11 +12827,7 @@ method(object({
12809
12827
  auth: "admin"
12810
12828
  }), method(object({ brokerId: string() }), BrokerClientsSchema), method(object({
12811
12829
  brokerId: string(),
12812
- channel: _enum([
12813
- "rtsp",
12814
- "decoded",
12815
- "audio"
12816
- ]),
12830
+ channel: _enum(["rtsp", "audio"]),
12817
12831
  handle: string()
12818
12832
  }), object({ killed: boolean() }), {
12819
12833
  kind: "mutation",
@@ -12848,10 +12862,7 @@ method(object({
12848
12862
  }), method(SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, { kind: "mutation" }), method(object({
12849
12863
  subscriptionId: string(),
12850
12864
  maxCount: number().int().positive().default(8)
12851
- }), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(SubscribeFramesInputSchema, SubscribeFramesResultSchema, { kind: "mutation" }), method(object({
12852
- subscriptionId: string(),
12853
- maxCount: number().int().positive().default(4)
12854
- }), array(FrameHandleSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(object({
12865
+ }), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(object({
12855
12866
  brokerId: string(),
12856
12867
  seconds: number().min(0).max(30)
12857
12868
  }), _void(), {
@@ -14008,54 +14019,12 @@ id: union([string(), number()]) }), {
14008
14019
  kind: "mutation",
14009
14020
  auth: "admin"
14010
14021
  });
14011
- /**
14012
- * shm ring usage stats for a `frameSink: 'shm'` decoder session —
14013
- * exposed via `decoder.getShmStats` so downstream consumers can
14014
- * observe ring pressure (slot count, byte budget, hit/miss ratio).
14015
- */
14016
- var ShmRingStatsSchema = object({
14017
- sessionId: string(),
14018
- slotCount: number().int(),
14019
- slotByteLength: number().int(),
14020
- segmentBytes: number().int(),
14021
- budgetMb: number().int(),
14022
- framesWritten: number().int(),
14023
- getFrameHits: number().int(),
14024
- getFrameMisses: number().int()
14025
- });
14026
- method(object({ codec: string() }), boolean()), method(_void(), object({
14022
+ method(_void(), object({
14027
14023
  id: string(),
14028
14024
  name: string(),
14029
- isPullMode: boolean().optional(),
14030
- priority: number().optional(),
14031
14025
  hwaccel: string().optional(),
14032
14026
  probedBestHwaccel: string().optional()
14033
- })), method(DecoderSessionConfigSchema, object({
14034
- sessionId: string(),
14035
- nodeId: string()
14036
- })), method(object({ sessionId: string() }), _void()), method(object({
14037
- sessionId: string(),
14038
- packet: EncodedPacketSchema
14039
- }), _void()), method(object({
14040
- sessionId: string(),
14041
- url: string()
14042
- }), _void()), method(object({
14043
- sessionId: string(),
14044
- maxCount: number().default(1),
14045
- waitMs: number().optional()
14046
- }), array(DecodedFrameSchema)), method(object({
14047
- sessionId: string(),
14048
- maxCount: number().default(1),
14049
- waitMs: number().optional()
14050
- }), array(FrameHandleSchema)), method(object({ handle: FrameHandleSchema }), DecodedFrameSchema.nullable()), method(object({ sessionId: string() }), ShmRingStatsSchema.nullable()), method(object({
14051
- sessionId: string(),
14052
- config: DecoderSessionConfigSchema.partial()
14053
- }), _void()), method(object({ sessionId: string() }), DecoderStatsSchema), method(_void(), array(object({
14054
- sessionId: string(),
14055
- codec: string(),
14056
- outputFormat: string(),
14057
- createdAtMs: number()
14058
- })).readonly()), method(_void(), object({ backend: string() }), {
14027
+ })), method(_void(), object({ backend: string() }), {
14059
14028
  kind: "mutation",
14060
14029
  auth: "admin"
14061
14030
  });
@@ -14111,7 +14080,7 @@ DeviceType.Camera;
14111
14080
  * This matters here more than anywhere else in the repo, because every provider
14112
14081
  * that knows a device's host knows its PASSWORD too: `{ host, port, username,
14113
14082
  * password }` sit in one object on Hikvision, Amcrest, Reolink and ONVIF alike,
14114
- * and `http://admin:hunter2@192.168.x.x/` is a URL a browser accepts. The
14083
+ * and `http://admin:hunter2@192.168.60.139/` is a URL a browser accepts. The
14115
14084
  * camera's own page will ask for its own login. That is correct, and pre-
14116
14085
  * filling it is the operator's business, not ours.
14117
14086
  *
@@ -14867,6 +14836,10 @@ var DeviceInfoSchema = object({
14867
14836
  isCamera: boolean(),
14868
14837
  /** Current config values — serializable snapshot */
14869
14838
  config: record(string(), unknown()),
14839
+ /** Paths inside `config` the device's schema declares secret (D783) —
14840
+ * what the non-admin redaction withholds. Paths, never values. Absent
14841
+ * when the owning runner has not reported them. */
14842
+ secretConfigPaths: array(string()).optional(),
14870
14843
  /** Hardware + identity blob (manufacturer / model / firmware / sn /
14871
14844
  * uid / mac / …). Populated by drivers; editable via setMetadata. */
14872
14845
  metadata: record(string(), unknown()).nullable().optional(),
@@ -15072,7 +15045,13 @@ var DeviceRegisterPayloadSchema = object({
15072
15045
  * call (workers re-register on init), so probe-driven updates
15073
15046
  * (e.g. PTZ flag flipping after the abilities probe) propagate. */
15074
15047
  features: array(string()).optional(),
15075
- config: record(string(), unknown())
15048
+ config: record(string(), unknown()),
15049
+ /** Config paths the device's own schema DECLARES secret
15050
+ * (`.meta({ secret: true })` — dotted, `[]` for array items, e.g.
15051
+ * `connection.password`). Re-published on every register; the non-admin
15052
+ * redaction withholds them at any depth (D783). Optional: an older runner
15053
+ * omits it and the keyword backstop applies. */
15054
+ secretConfigPaths: array(string()).optional()
15076
15055
  });
15077
15056
  var DeviceRemovePayloadSchema = object({ deviceId: number() });
15078
15057
  var DevicePersistConfigPayloadSchema = object({
@@ -15899,6 +15878,12 @@ method(_void(), array(string()).readonly(), { auth: "admin" }), method(object({
15899
15878
  kind: "mutation",
15900
15879
  auth: "admin"
15901
15880
  });
15881
+ var HUB_ADDRESS_ROLES = [
15882
+ "appConnections",
15883
+ "notificationTaps",
15884
+ "internal",
15885
+ "publicEndpoint"
15886
+ ];
15902
15887
  /**
15903
15888
  * Transport bounds for AI capability methods.
15904
15889
  *
@@ -16725,7 +16710,14 @@ var LoginMethodContributionSchema = discriminatedUnion("kind", [
16725
16710
  icon: string().optional(),
16726
16711
  /** Addon-owned HTTP route the button navigates to (GET). */
16727
16712
  startUrl: string(),
16728
- stage: LoginStageEnum
16713
+ stage: LoginStageEnum,
16714
+ /**
16715
+ * The provider names an external identity a signed-in user can link to
16716
+ * their own account (D782): `auth.listLinkableProviders` /
16717
+ * `beginExternalLink` offer exactly the redirect methods that set this,
16718
+ * whatever their id. Absent / false — a login button only (magic-link).
16719
+ */
16720
+ linkable: boolean().optional()
16729
16721
  }),
16730
16722
  object({
16731
16723
  kind: literal("widget"),
@@ -17095,7 +17087,7 @@ method(object({
17095
17087
  timeoutMs: 6e5
17096
17088
  });
17097
17089
  method(object({
17098
- nodeId: string(),
17090
+ targetNodeId: string(),
17099
17091
  modelId: string(),
17100
17092
  format: _enum(MODEL_FORMATS),
17101
17093
  entry: ModelCatalogEntrySchema
@@ -18480,6 +18472,8 @@ var NcSystemEventKindSchema = _enum([
18480
18472
  "stream-offline",
18481
18473
  "node-online",
18482
18474
  "node-offline",
18475
+ "node-restarting",
18476
+ "node-updating",
18483
18477
  "node-inference-unavailable",
18484
18478
  "detection-blind",
18485
18479
  "addon-crash-loop",
@@ -19578,8 +19572,9 @@ var NcRuleSchema = NcRuleInputSchema.extend({
19578
19572
  disabledTargetIds: array(string()).default([])
19579
19573
  });
19580
19574
  /**
19581
- * The state-summary SECTIONS (D647 / D698): the D637 kind groups that report a
19582
- * still-true state. `backups-exports` and `alarm` are not sections — a completed
19575
+ * The state-summary SECTIONS (D647 / D698 / D708): the D637 kind groups that
19576
+ * report a still-true state. `addons` is the crash-looped addons only and
19577
+ * `addon-updates` the addons that are behind (D708 split them). `backups-exports` and `alarm` are not sections — a completed
19583
19578
  * job is not an open state, and the alarm stays instant.
19584
19579
  */
19585
19580
  var NcStateSummarySectionIdSchema = _enum([
@@ -19591,6 +19586,7 @@ var NcStateSummarySectionIdSchema = _enum([
19591
19586
  "detection-blind",
19592
19587
  "nodes",
19593
19588
  "addons",
19589
+ "addon-updates",
19594
19590
  "updates"
19595
19591
  ]);
19596
19592
  /** One section of a previewed state summary. `unavailable` = its state could not be read. */
@@ -20071,7 +20067,25 @@ var NcAlarmModeDelaysListSchema = array(object({
20071
20067
  * When this mode may be armed. Absent / null = always allowed (same as a
20072
20068
  * rule with no `schedule`). Evaluated with {@link isScheduleActive}.
20073
20069
  */
20074
- schedule: NcScheduleSchema.optional()
20070
+ schedule: NcScheduleSchema.optional(),
20071
+ /**
20072
+ * D706: while this mode's ENTRY DELAY runs, do the alarm rules' own pushes go out (as an
20073
+ * intrusion naming the locations)? Absent = false — the entry-delay notification is the
20074
+ * only one, and the matches ride the triggered notification's mosaic (D705).
20075
+ */
20076
+ notifyDuringEntryDelay: boolean().optional(),
20077
+ /**
20078
+ * D706: notify "watched again" when a sensor this arm bypassed closes and opens again.
20079
+ * Absent = false (logged, not sent). Even when true it is not sent when that same sensor
20080
+ * is the one that starts the entry delay — the entry-delay notification already names it.
20081
+ */
20082
+ notifySensorRewatched: boolean().optional(),
20083
+ /**
20084
+ * D735: notify "ignored" when a sensor this arm bypassed really MOVED while armed (its own
20085
+ * change time is after the arm) and set nothing off. Absent = false (logged, not sent). A
20086
+ * re-sync, a recovery from `unavailable` or a duplicate is never announced, switch or not.
20087
+ */
20088
+ notifySensorIgnored: boolean().optional()
20075
20089
  })).max(8).refine(uniqueModes, { message: "modeDelays: at most one entry per arm mode" });
20076
20090
  var NcAlarmModeDelaysEditListSchema = array(object({
20077
20091
  mode: AlarmArmModeSchema,
@@ -20080,7 +20094,13 @@ var NcAlarmModeDelaysEditListSchema = array(object({
20080
20094
  triggeredDurationSec: NcAlarmTriggeredSecSchema.nullable().optional(),
20081
20095
  postTriggeredAction: NcAlarmPostTriggeredActionSchema.nullable().optional(),
20082
20096
  /** Set a schedule, or `null` to clear (mode always allowed again). */
20083
- schedule: NcScheduleSchema.nullable().optional()
20097
+ schedule: NcScheduleSchema.nullable().optional(),
20098
+ /** D706: set the switch, or `null` to clear it (back to the default, false). */
20099
+ notifyDuringEntryDelay: boolean().nullable().optional(),
20100
+ /** D706: set the switch, or `null` to clear it (back to the default, false). */
20101
+ notifySensorRewatched: boolean().nullable().optional(),
20102
+ /** D735: set the switch, or `null` to clear it (back to the default, false). */
20103
+ notifySensorIgnored: boolean().nullable().optional()
20084
20104
  })).max(8).refine(uniqueModes, { message: "modeDelays: at most one edit per arm mode" });
20085
20105
  /** One switch of the alarm table: put ONE device on, or take it off, ONE mode's list. */
20086
20106
  var NcAlarmNonBlockingEditSchema = object({
@@ -21041,45 +21061,25 @@ Object.freeze(Object.fromEntries([{
21041
21061
  label: "Face recognition model",
21042
21062
  defaultModelId: "auraface-r100",
21043
21063
  indexName: "the enrolled face gallery",
21044
- options: [
21045
- {
21046
- id: "auraface-r100",
21047
- label: "AuraFace R100"
21048
- },
21049
- {
21050
- id: "arcface-r100",
21051
- label: "ArcFace (ResNet34)"
21052
- },
21053
- {
21054
- id: "inception-resnet-v1",
21055
- label: "Inception ResNet V1"
21056
- }
21057
- ]
21064
+ options: [{
21065
+ id: "auraface-r100",
21066
+ label: "AuraFace R100"
21067
+ }]
21058
21068
  }, {
21059
21069
  stepId: "clip-embedding",
21060
21070
  label: "Semantic search model",
21061
- defaultModelId: "mobileclip-s1",
21071
+ defaultModelId: "siglip2-b16-224",
21062
21072
  indexName: "the object semantic-search index",
21063
- options: [
21064
- {
21065
- id: "mobileclip-s1",
21066
- label: "MobileCLIP S1"
21067
- },
21068
- {
21069
- id: "mobileclip-s2",
21070
- label: "MobileCLIP S2"
21071
- },
21072
- {
21073
- id: "siglip2-b16-224",
21074
- label: "SigLIP2 B/16 (Apache-2.0)"
21075
- }
21076
- ]
21073
+ options: [{
21074
+ id: "siglip2-b16-224",
21075
+ label: "SigLIP2 B/16 (Apache-2.0)"
21076
+ }]
21077
21077
  }].map((s) => [s.stepId, s.defaultModelId])));
21078
21078
  var CLUSTER_STEP_SETTING_FIELDS = [{
21079
21079
  stepId: "face-embedding",
21080
21080
  key: "minLandmarkFaceSize",
21081
- label: "Min face size for recognition (detection px)",
21082
- description: "Refuse to embed a face smaller than this IN THE DETECTION FRAME. Applies to every node — the enrolled gallery is one index, and two admission floors would fill it from two policies. 0 disables the gate.",
21081
+ label: "Min face size to embed (detection-frame px)",
21082
+ description: "Faces smaller than this in the small frame the detector sees are not embedded, so they can never be recognised. Below it the face cannot be aligned reliably and a bad embedding matches everyone. Same value on every node. 0 = no limit.",
21083
21083
  type: "slider",
21084
21084
  min: 0,
21085
21085
  max: 64,
@@ -22131,7 +22131,13 @@ var RetrainFrameSchema = object({
22131
22131
  sizeBytes: number().int(),
22132
22132
  width: number().int(),
22133
22133
  height: number().int(),
22134
- copiedAt: number()
22134
+ copiedAt: number(),
22135
+ /** When the CAMERA captured the frame. Absent on a copy taken before D785. */
22136
+ capturedAt: number().optional(),
22137
+ /** The operator's "every subject in this frame is boxed". Detector
22138
+ * evaluation keeps only complete frames: an unboxed subject would count as
22139
+ * a false positive. */
22140
+ complete: boolean()
22135
22141
  });
22136
22142
  /** Why a copy-on-select could not be honoured — named, never a silent skip. */
22137
22143
  var RetrainCopyRefusalSchema = _enum([
@@ -22152,6 +22158,51 @@ var RetrainFrameListSchema = object({
22152
22158
  /** What the page pre-selects — the native key frame when one survives. */
22153
22159
  autoPickMediaId: number().int().optional()
22154
22160
  });
22161
+ /**
22162
+ * Which frames an annotated export carries. Every field narrows; an empty
22163
+ * filter is every annotated copy. A dataset VERSION is a frozen `frameIds`
22164
+ * list owned by whoever trains (the training orchestrator), so `frameIds` is
22165
+ * the primitive a version export uses; `batchId` re-selects what an earlier
22166
+ * export carried (`exportedInBatch`).
22167
+ */
22168
+ var RetrainExportFilterSchema = object({
22169
+ deviceIds: array(number()).optional(),
22170
+ frameIds: array(string()).max(2e4).optional(),
22171
+ batchId: string().optional(),
22172
+ /** Only frames the operator marked complete (all subjects boxed). */
22173
+ completeOnly: boolean().optional()
22174
+ });
22175
+ /**
22176
+ * `frames`: the full frame copies, boxes in `annotations.json`.
22177
+ * `crops`: additionally one JPEG per subject, cut with the runtime detail-crop
22178
+ * convention — the classifier layout.
22179
+ */
22180
+ var RetrainExportLayoutSchema = _enum(["frames", "crops"]);
22181
+ /**
22182
+ * Where `writeRetrainArchive` streams the tar: one HTTP request whose body is
22183
+ * the archive, sent chunk by chunk. Covers a presigned PUT and a provider
22184
+ * addon's data-plane upload route alike. Headers are sent verbatim and never
22185
+ * logged.
22186
+ */
22187
+ var RetrainArchiveTargetSchema = object({
22188
+ kind: literal("http"),
22189
+ method: _enum(["PUT", "POST"]),
22190
+ url: string().url(),
22191
+ headers: record(string(), string()).optional()
22192
+ });
22193
+ var RetrainArchiveResultSchema = object({
22194
+ batchId: string(),
22195
+ frames: number().int(),
22196
+ crops: number().int(),
22197
+ annotations: number().int(),
22198
+ /** Frames planned but not shipped (unreadable copy, path too long). */
22199
+ missing: number().int(),
22200
+ bytes: number().int(),
22201
+ /** sha256 of the exact bytes sent. */
22202
+ sha256: string(),
22203
+ /** The target's HTTP status. */
22204
+ status: number().int()
22205
+ });
22155
22206
  /** What the operator asked the assist to look for. */
22156
22207
  var RetrainAssistSubjectSchema = discriminatedUnion("kind", [object({
22157
22208
  kind: literal("package"),
@@ -22946,9 +22997,25 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
22946
22997
  }), RetrainTransitionResultSchema, {
22947
22998
  kind: "mutation",
22948
22999
  auth: "admin"
22949
- }), method(object({ deviceIds: array(number()).optional() }), object({ url: string() }), {
23000
+ }), method(RetrainExportFilterSchema.extend({ layout: RetrainExportLayoutSchema.optional() }), object({ url: string() }), {
22950
23001
  kind: "query",
22951
23002
  auth: "admin"
23003
+ }), method(object({
23004
+ deviceId: number(),
23005
+ trackId: string(),
23006
+ frameId: string(),
23007
+ complete: boolean()
23008
+ }), RetrainFrameSchema, {
23009
+ kind: "mutation",
23010
+ auth: "admin"
23011
+ }), method(object({
23012
+ filter: RetrainExportFilterSchema,
23013
+ layout: RetrainExportLayoutSchema,
23014
+ target: RetrainArchiveTargetSchema
23015
+ }), RetrainArchiveResultSchema, {
23016
+ kind: "mutation",
23017
+ auth: "admin",
23018
+ timeoutMs: 60 * 6e4
22952
23019
  }), method(object({
22953
23020
  /** Which of the three event tables owns the row. */
22954
23021
  ownerType: EventOwnerTypeSchema,
@@ -22999,6 +23066,34 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
22999
23066
  timestamp: number()
23000
23067
  });
23001
23068
  /**
23069
+ * A root model's boxes standing in for one crop-kind step's own inference
23070
+ * (D730) — see `runPipeline.suppliedRoot`.
23071
+ */
23072
+ var SuppliedRootOutputSchema = object({
23073
+ stepId: string(),
23074
+ /** The root model that drew the boxes — stamped on the result. */
23075
+ modelId: string(),
23076
+ detections: array(object({
23077
+ /** `[x1, y1, x2, y2]` in the pixels of the call's image. */
23078
+ bbox: tuple([
23079
+ number(),
23080
+ number(),
23081
+ number(),
23082
+ number()
23083
+ ]),
23084
+ score: number(),
23085
+ /**
23086
+ * Five facial landmarks in the same pixels — a face the step's own
23087
+ * detector already re-found inside a root face box (D730), so its
23088
+ * embedder child aligns it exactly as it aligns any detected face.
23089
+ */
23090
+ landmarks: array(object({
23091
+ x: number(),
23092
+ y: number()
23093
+ })).optional()
23094
+ })).min(1)
23095
+ });
23096
+ /**
23002
23097
  * Reference to the frame's retained NATIVE surface + the parent crop's placement
23003
23098
  * within the frame, so the executor can re-cut a leaf child ROI at native
23004
23099
  * resolution on the detail plane. See the `runPipeline` `nativeCropRef` field.
@@ -23046,7 +23141,7 @@ var FrameRefSchema = object({
23046
23141
  timestamp: number(),
23047
23142
  capturedAt: number().optional()
23048
23143
  });
23049
- var ModelFormatSchema$1 = _enum([
23144
+ var ModelFormatSchema$2 = _enum([
23050
23145
  "onnx",
23051
23146
  "coreml",
23052
23147
  "openvino",
@@ -23064,7 +23159,7 @@ var PipelineSlotSchema = _enum([
23064
23159
  var PipelineEngineChoiceSchema = object({
23065
23160
  runtime: literal("python"),
23066
23161
  backend: string(),
23067
- format: ModelFormatSchema$1,
23162
+ format: ModelFormatSchema$2,
23068
23163
  device: string().optional()
23069
23164
  });
23070
23165
  /**
@@ -23103,32 +23198,15 @@ var PipelineDefaultStepSchema = lazy(() => object({
23103
23198
  group: string().optional(),
23104
23199
  settings: record(string(), unknown()).optional()
23105
23200
  }));
23106
- var PipelineTemplateStepSchema = lazy(() => object({
23107
- addonId: string(),
23108
- enabled: boolean(),
23109
- modelId: string(),
23110
- children: array(PipelineTemplateStepSchema).readonly(),
23111
- settings: record(string(), unknown()).optional()
23112
- }));
23113
- var PipelineTemplateSchema$1 = object({
23114
- id: string(),
23115
- name: string(),
23116
- createdAt: string(),
23117
- updatedAt: string(),
23118
- engine: PipelineEngineChoiceSchema,
23119
- steps: array(PipelineTemplateStepSchema).readonly()
23120
- });
23121
23201
  var PipelineModelOptionSchema = object({
23122
23202
  id: string(),
23123
23203
  name: string(),
23124
- formats: record(string(), object({
23125
- downloaded: boolean(),
23126
- sizeMB: number()
23127
- })),
23204
+ formats: record(string(), PipelineModelFormatStatusSchema),
23128
23205
  group: ModelVariantGroupSchema.optional(),
23129
23206
  legacy: boolean().optional(),
23130
23207
  provider: ModelProviderIdSchema.optional(),
23131
- defaultConfidence: number().optional()
23208
+ defaultConfidence: number().optional(),
23209
+ suppliesSteps: array(RootStepSupplySchema).readonly().optional()
23132
23210
  });
23133
23211
  var ConfigFieldBridge = custom();
23134
23212
  var PipelineAddonSchemaSchema = object({
@@ -23290,6 +23368,22 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
23290
23368
  }), {
23291
23369
  kind: "mutation",
23292
23370
  auth: "admin"
23371
+ }), method(object({
23372
+ nodeId: string(),
23373
+ deviceIds: array(number()).readonly().optional(),
23374
+ dryRun: boolean()
23375
+ }), object({
23376
+ entries: array(object({
23377
+ deviceId: number(),
23378
+ keys: array(string()).readonly()
23379
+ })).readonly(),
23380
+ refused: array(object({
23381
+ deviceId: number(),
23382
+ reason: string()
23383
+ })).readonly()
23384
+ }), {
23385
+ kind: "mutation",
23386
+ auth: "admin"
23293
23387
  }), method(object({ nodeId: string() }), object({ unhealthy: array(object({
23294
23388
  /** `<backend>:<device>`, e.g. `openvino:gpu`. */
23295
23389
  deviceKey: string(),
@@ -23315,22 +23409,14 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
23315
23409
  }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(object({
23316
23410
  steps: array(PipelineStepInputSchema),
23317
23411
  deviceKey: string().optional()
23318
- }), PipelineValidationResultSchema), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
23319
- name: string(),
23320
- steps: array(PipelineTemplateStepSchema).readonly(),
23321
- engine: PipelineEngineChoiceSchema
23322
- }), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({
23323
- id: string(),
23324
- name: string().optional(),
23325
- steps: array(PipelineTemplateStepSchema).readonly().optional()
23326
- }), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({ id: string() }), _void(), { kind: "mutation" }), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string() }), ModelAvailabilityListBridge), method(object({
23412
+ }), PipelineValidationResultSchema), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string() }), ModelAvailabilityListBridge), method(object({
23327
23413
  addonId: string(),
23328
23414
  modelId: string(),
23329
- format: ModelFormatSchema$1
23415
+ format: ModelFormatSchema$2
23330
23416
  }), DownloadModelResultSchema, { kind: "mutation" }), method(object({
23331
23417
  addonId: string(),
23332
23418
  modelId: string(),
23333
- format: ModelFormatSchema$1
23419
+ format: ModelFormatSchema$2
23334
23420
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
23335
23421
  steps: array(PipelineStepInputSchema).min(1),
23336
23422
  frame: FrameInputSchema.optional(),
@@ -23396,7 +23482,16 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
23396
23482
  * `device-not-servable`), and nothing reaches the camera's live
23397
23483
  * trace stream. Absent ⇒ unchanged behaviour.
23398
23484
  */
23399
- replay: literal(true).optional()
23485
+ replay: literal(true).optional(),
23486
+ /**
23487
+ * Root-supplied detections for the tree's ROOT step (D730). Set by
23488
+ * `runDetailSubtree` when the camera's root model supplies a crop-kind
23489
+ * step (a Frigate+ `license_plate` for `plate-detection`): the step is
23490
+ * NOT inferred, these boxes are its output, and its children (the plate
23491
+ * reader) run on them through their own crop policy. Boxes are in the
23492
+ * PIXELS of the image this call carries. Absent ⇒ the root step runs.
23493
+ */
23494
+ suppliedRoot: SuppliedRootOutputSchema.optional()
23400
23495
  }), PipelineRunResultBridge, { kind: "mutation" }), method(object({
23401
23496
  steps: array(PipelineStepInputSchema).min(1),
23402
23497
  frames: array(FrameInputSchema).min(1).max(255),
@@ -23478,6 +23573,375 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
23478
23573
  filename: string().optional(),
23479
23574
  settings: record(string(), unknown()).optional()
23480
23575
  }), AudioTestResultSchema, { kind: "mutation" }), method(_void(), ConfigUISchemaNullableBridge);
23576
+ /**
23577
+ * The wire shapes of the Auto tune plan and apply (D745), used by the
23578
+ * `pipeline-orchestrator` cap. The recommender's own types
23579
+ * (`recommend.ts`) are the TS face of the same data; these
23580
+ * schemas are what crosses the cap boundary.
23581
+ */
23582
+ var ModelFormatSchema$1 = _enum(MODEL_FORMATS);
23583
+ /** The operator's range for it. */
23584
+ var MIN_SESSIONS_PER_DEVICE_RANGE = {
23585
+ min: 1,
23586
+ max: 8
23587
+ };
23588
+ var HardwareClassIdSchema = _enum([
23589
+ "intel-core-ultra",
23590
+ "intel-n-series",
23591
+ "apple-m-base",
23592
+ "apple-m-pro",
23593
+ "unknown"
23594
+ ]);
23595
+ var AcceleratorKindSchema = _enum([
23596
+ "intel-npu",
23597
+ "intel-igpu",
23598
+ "x86-cpu",
23599
+ "arm-cpu",
23600
+ "apple-ane",
23601
+ "coral"
23602
+ ]);
23603
+ var RecommendationReasonSchema = discriminatedUnion("kind", [
23604
+ object({
23605
+ kind: literal("capacity"),
23606
+ sessions: number(),
23607
+ minSessions: number()
23608
+ }),
23609
+ object({
23610
+ kind: literal("tie-faster"),
23611
+ over: string(),
23612
+ recallDelta: number()
23613
+ }),
23614
+ object({
23615
+ kind: literal("stepped-down"),
23616
+ from: string(),
23617
+ to: string(),
23618
+ limitedBy: string()
23619
+ }),
23620
+ object({
23621
+ kind: literal("no-fit-lightest"),
23622
+ sessions: number(),
23623
+ minSessions: number()
23624
+ }),
23625
+ object({
23626
+ kind: literal("derived-latency"),
23627
+ modelId: string()
23628
+ }),
23629
+ object({ kind: literal("cpu-device") }),
23630
+ object({ kind: literal("coral-untouched") }),
23631
+ object({ kind: literal("device-disabled") }),
23632
+ object({ kind: literal("device-unavailable") }),
23633
+ object({ kind: literal("node-offline") }),
23634
+ object({ kind: literal("no-hardware-facts") }),
23635
+ object({
23636
+ kind: literal("no-measured-data"),
23637
+ hardwareClass: HardwareClassIdSchema
23638
+ }),
23639
+ object({
23640
+ kind: literal("no-family-build"),
23641
+ format: ModelFormatSchema$1
23642
+ })
23643
+ ]);
23644
+ var DeviceModelChoiceSchema = object({
23645
+ modelId: string(),
23646
+ p50Ms: number(),
23647
+ fps: number(),
23648
+ measured: boolean(),
23649
+ /** Parallel sessions at the camera rate with the headroom kept free: ⌊fps × (1 − headroom) / camera fps⌋. */
23650
+ capacitySessions: number(),
23651
+ personRecall: number()
23652
+ });
23653
+ var DeviceRecommendationSchema = object({
23654
+ deviceKey: string(),
23655
+ accelerator: AcceleratorKindSchema.nullable(),
23656
+ enabled: boolean(),
23657
+ available: boolean(),
23658
+ chosen: DeviceModelChoiceSchema.nullable(),
23659
+ reasons: array(RecommendationReasonSchema).readonly()
23660
+ });
23661
+ var NodeRecommendationSchema = object({
23662
+ nodeId: string(),
23663
+ reachable: boolean(),
23664
+ hardwareClass: HardwareClassIdSchema.nullable(),
23665
+ cpuModel: string().nullable(),
23666
+ skipped: boolean(),
23667
+ acceleratorModelId: string().nullable(),
23668
+ devices: array(DeviceRecommendationSchema).readonly(),
23669
+ reasons: array(RecommendationReasonSchema).readonly()
23670
+ });
23671
+ var ModelPinChangeSchema = object({
23672
+ stepId: string(),
23673
+ before: string().nullable(),
23674
+ after: string().nullable()
23675
+ });
23676
+ var NodeDeviceChangeSchema = object({
23677
+ nodeId: string(),
23678
+ deviceKey: string(),
23679
+ madeExplicit: boolean(),
23680
+ modelPins: array(ModelPinChangeSchema).readonly(),
23681
+ thresholds: array(object({
23682
+ stepId: string(),
23683
+ keys: array(string()).readonly()
23684
+ })).readonly()
23685
+ });
23686
+ var CameraOverrideClearSchema = object({
23687
+ deviceId: number(),
23688
+ source: _enum(["step-override", "wholesale"]),
23689
+ nodeId: string(),
23690
+ deviceKey: string().nullable(),
23691
+ stepId: string(),
23692
+ modelIdBefore: string().nullable(),
23693
+ keys: array(string()).readonly()
23694
+ });
23695
+ var DetectorStoreClearSchema = object({
23696
+ deviceId: number(),
23697
+ keys: array(string()).readonly()
23698
+ });
23699
+ var AutoTuneWarningSchema = discriminatedUnion("kind", [
23700
+ object({
23701
+ kind: literal("detector-store-cluster-wide"),
23702
+ skippedNodes: array(string()).readonly()
23703
+ }),
23704
+ object({
23705
+ kind: literal("detector-store-unreadable"),
23706
+ error: string()
23707
+ }),
23708
+ object({
23709
+ kind: literal("coral-enabled"),
23710
+ nodeId: string(),
23711
+ deviceKey: string()
23712
+ })
23713
+ ]);
23714
+ var AutoTuneOptionsSchema = object({
23715
+ /** Share of each accelerator's throughput kept free (0.3–0.5). */
23716
+ headroom: number().min(.3).max(.5).default(.4),
23717
+ /**
23718
+ * The least number of parallel sessions every device must sustain at the
23719
+ * camera rate with the headroom kept free (D755). The most accurate model
23720
+ * that reaches it wins.
23721
+ */
23722
+ minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
23723
+ });
23724
+ var AutoTunePlanSchema = object({
23725
+ /** Hash of everything the apply will write — the apply refuses a different one. */
23726
+ planHash: string(),
23727
+ family: literal("yolov9"),
23728
+ headroom: number(),
23729
+ minSessionsPerDevice: number(),
23730
+ /** The detection rate a session is counted at (the fastest camera running the pipeline root). */
23731
+ cameraFps: number(),
23732
+ generatedAt: number(),
23733
+ nodes: array(NodeRecommendationSchema).readonly(),
23734
+ nodeChanges: array(NodeDeviceChangeSchema).readonly(),
23735
+ cameraClears: array(CameraOverrideClearSchema).readonly(),
23736
+ detectorStoreClears: array(DetectorStoreClearSchema).readonly(),
23737
+ warnings: array(AutoTuneWarningSchema).readonly()
23738
+ });
23739
+ var AutoTuneApplyInputSchema = object({
23740
+ planHash: string(),
23741
+ headroom: number().min(.3).max(.5).default(.4),
23742
+ minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
23743
+ });
23744
+ var AutoTunePhaseResultSchema = object({
23745
+ phase: _enum([
23746
+ "download",
23747
+ "camera-overrides",
23748
+ "detector-thresholds",
23749
+ "node-models",
23750
+ "redispatch"
23751
+ ]),
23752
+ ok: boolean(),
23753
+ detail: string()
23754
+ });
23755
+ var AutoTuneApplyResultSchema = discriminatedUnion("kind", [
23756
+ object({
23757
+ kind: literal("applied"),
23758
+ planHash: string(),
23759
+ phases: array(AutoTunePhaseResultSchema).readonly()
23760
+ }),
23761
+ object({
23762
+ kind: literal("aborted"),
23763
+ phases: array(AutoTunePhaseResultSchema).readonly()
23764
+ }),
23765
+ object({
23766
+ kind: literal("stale"),
23767
+ plan: AutoTunePlanSchema
23768
+ }),
23769
+ object({
23770
+ kind: literal("refused"),
23771
+ reason: _enum(["apply-in-progress"])
23772
+ })
23773
+ ]);
23774
+ /**
23775
+ * Wire shapes of the Load balancing surface (D748): the session placement
23776
+ * policy, the atomic share write, the observed placement statistics, the
23777
+ * hardware share suggestion and the stale device pins.
23778
+ */
23779
+ /**
23780
+ * How a new detection session picks its node and device.
23781
+ * - `least-loaded` — the historical rule: lowest `attached / weight`, a
23782
+ * constant node order at a tie (D37). An idle node always ties at 0, so a
23783
+ * weight only bites once a node already holds a session.
23784
+ * - `share` — the share of PARALLEL sessions is held to the weights, and a
23785
+ * full or drowning node yields to a free one (D748).
23786
+ */
23787
+ var SessionPlacementPolicySchema = _enum(["least-loaded", "share"]);
23788
+ var LoadBalancingSharesInputSchema = object({
23789
+ /** nodeId → share (> 0). A node left out keeps its weight. */
23790
+ nodes: record(string(), number().positive()).default({}),
23791
+ /** nodeId → deviceKey → share (> 0). A device left out keeps its weight. */
23792
+ devices: record(string(), record(string(), number().positive())).default({})
23793
+ });
23794
+ var PlacementStatsInputSchema = object({
23795
+ /** Window the observed shares are averaged over (default 1 h, max 24 h). */
23796
+ windowMs: number().int().min(6e4).max(1440 * 60 * 1e3).default(3600 * 1e3) });
23797
+ var PlacementDeviceStatsSchema = object({
23798
+ deviceKey: string(),
23799
+ /** Sessions running on this device now. */
23800
+ sessionsNow: number(),
23801
+ /** Sessions started on this device inside the window. */
23802
+ sessionsStarted: number(),
23803
+ /** Time-weighted share of the node's parallel sessions over the window (0–1); null = no session ran. */
23804
+ observedShare: number().nullable()
23805
+ });
23806
+ var PlacementNodeStatsSchema = object({
23807
+ nodeId: string(),
23808
+ sessionsNow: number(),
23809
+ sessionsStarted: number(),
23810
+ /** Time-weighted share of the cluster's parallel sessions over the window (0–1); null = none ran. */
23811
+ observedShare: number().nullable(),
23812
+ /** Most sessions this node ran at once inside the window. */
23813
+ peakSessions: number(),
23814
+ /** Sessions a share election handed elsewhere because this node was full or drowning. */
23815
+ yieldsAway: number(),
23816
+ devices: array(PlacementDeviceStatsSchema).readonly()
23817
+ });
23818
+ /** A camera's device pin that the session path cannot honour. */
23819
+ var StaleDevicePinSchema = object({
23820
+ deviceId: number(),
23821
+ deviceKey: string(),
23822
+ /** `disabled` — the key exists on some node but is not enabled anywhere; `absent` — no node has it. */
23823
+ reason: _enum(["disabled", "absent"])
23824
+ });
23825
+ var PlacementStatsSchema = object({
23826
+ policy: SessionPlacementPolicySchema,
23827
+ windowMs: number(),
23828
+ /** How much of the window was actually observed (the hub keeps it in memory). */
23829
+ observedForMs: number(),
23830
+ sessionsNow: number(),
23831
+ /** Most parallel sessions across the cluster inside the window. */
23832
+ clusterPeakSessions: number(),
23833
+ nodes: array(PlacementNodeStatsSchema).readonly(),
23834
+ stalePins: array(StaleDevicePinSchema).readonly()
23835
+ });
23836
+ /**
23837
+ * Where an automatic share's capacity comes from (D755).
23838
+ * - `hardware` — the static capacity of each device at its Auto tune model:
23839
+ * the measured latency table for the node's hardware class.
23840
+ * - `benchmark` — the node's own measured capacity (node benchmark results).
23841
+ * A node with no results falls back to `hardware`, and says so.
23842
+ */
23843
+ var CapacitySourceSchema = _enum(["hardware", "benchmark"]);
23844
+ /** Why a node under the `benchmark` source was sized from hardware instead. */
23845
+ var CapacityFallbackSchema = _enum(["no-benchmark-results", "partial-benchmark-results"]);
23846
+ var SuggestSharesInputSchema = object({
23847
+ headroom: number().min(.3).max(.5).default(.4),
23848
+ /** Default `hardware`. */
23849
+ source: CapacitySourceSchema.default("hardware")
23850
+ });
23851
+ var SuggestedDeviceShareSchema = object({
23852
+ deviceKey: string(),
23853
+ /** Share of the node (0–100, rounded). */
23854
+ share: number(),
23855
+ modelId: string().nullable(),
23856
+ /** Inferences per second at that model, from the measured table; null when sized by a benchmark. */
23857
+ fps: number().nullable(),
23858
+ /** False for a table cell derived from another chip; true for a measured cell or a benchmark. */
23859
+ measured: boolean(),
23860
+ /**
23861
+ * Advisory session cap: ⌊fps × (1 − headroom) / camera fps⌋ from the table,
23862
+ * or the benchmark's measured max sessions. Never enforced.
23863
+ */
23864
+ suggestedMaxSessions: number().nullable()
23865
+ });
23866
+ var SuggestedNodeShareSchema = object({
23867
+ nodeId: string(),
23868
+ /** Share of the cluster (0–100, rounded); null = node skipped (offline, unknown hardware). */
23869
+ share: number().nullable(),
23870
+ /** Parallel sessions the node sustains at the suggested models with the headroom kept free. */
23871
+ capacitySessions: number(),
23872
+ devices: array(SuggestedDeviceShareSchema).readonly(),
23873
+ skippedReason: string().nullable(),
23874
+ /** What this node's capacity was read from; null when the node is skipped. */
23875
+ capacitySource: CapacitySourceSchema.nullable(),
23876
+ /** Set when the `benchmark` source was asked for and this node used `hardware`. */
23877
+ capacityFallback: CapacityFallbackSchema.nullable()
23878
+ });
23879
+ var SuggestSharesResultSchema = object({
23880
+ headroom: number(),
23881
+ /** The source asked for; each node says what it actually used. */
23882
+ source: CapacitySourceSchema,
23883
+ /** Camera detection rate the capacity is counted in (the fastest camera's fps). */
23884
+ cameraFps: number(),
23885
+ /** The Auto tune capacity floor the models were picked at. */
23886
+ minSessionsPerDevice: number(),
23887
+ nodes: array(SuggestedNodeShareSchema).readonly()
23888
+ });
23889
+ /**
23890
+ * Where the node and device shares come from (D750, D755).
23891
+ * - `hardware` (default) — computed by the system from each node's static
23892
+ * capacity (its accelerators at their Auto tune models, from the measured
23893
+ * latency table), recomputed whenever a node or device joins, leaves, is
23894
+ * switched on or off, or changes model. No load input.
23895
+ * - `benchmark` — the same, from each node's measured capacity (node
23896
+ * benchmark results); a node without results falls back to `hardware`.
23897
+ * - `manual` — the operator's stored sliders.
23898
+ * Either way a node or device that cannot take sessions gives its share to
23899
+ * the others in proportion; the stored values are never rewritten for that.
23900
+ */
23901
+ var ShareSourceSchema = _enum([
23902
+ "hardware",
23903
+ "benchmark",
23904
+ "manual"
23905
+ ]);
23906
+ var SetShareSourceInputSchema = object({ source: ShareSourceSchema });
23907
+ object({
23908
+ nodes: record(string(), number()),
23909
+ devices: record(string(), record(string(), number()))
23910
+ });
23911
+ var EffectiveDeviceShareSchema = object({
23912
+ deviceKey: string(),
23913
+ /** Can take sessions now (enabled, available, can run the root). */
23914
+ eligible: boolean(),
23915
+ /** The share the source assigns, as a percentage of the node's devices. */
23916
+ configuredPct: number(),
23917
+ /** The share actually used, after an ineligible device's share went to the others. */
23918
+ effectivePct: number()
23919
+ });
23920
+ var EffectiveNodeShareSchema = object({
23921
+ nodeId: string(),
23922
+ eligible: boolean(),
23923
+ configuredPct: number(),
23924
+ effectivePct: number(),
23925
+ /** Automatic sources: what this node's share was computed from; null under `manual` or before the first answer. */
23926
+ capacitySource: CapacitySourceSchema.nullable(),
23927
+ /** Automatic `benchmark`: why this node used `hardware` instead. */
23928
+ capacityFallback: CapacityFallbackSchema.nullable(),
23929
+ devices: array(EffectiveDeviceShareSchema).readonly()
23930
+ });
23931
+ var EffectiveSharesSchema = object({
23932
+ source: ShareSourceSchema,
23933
+ policy: SessionPlacementPolicySchema,
23934
+ /** An automatic source with no computed answer yet: the stored sliders are used meanwhile. */
23935
+ autoPending: boolean(),
23936
+ /** When the automatic shares were last computed (ms epoch); null = never. */
23937
+ computedAt: number().nullable(),
23938
+ /** What made the system recompute them last. */
23939
+ trigger: string().nullable(),
23940
+ nodes: array(EffectiveNodeShareSchema).readonly(),
23941
+ /** The relative weights the election reads (before eligibility). */
23942
+ nodeWeights: record(string(), number()),
23943
+ deviceWeights: record(string(), record(string(), number()))
23944
+ });
23481
23945
  object({
23482
23946
  activeCameras: number(),
23483
23947
  throttledCameras: number(),
@@ -23921,6 +24385,22 @@ var MotionSourceEnum = _enum([
23921
24385
  "device-activity"
23922
24386
  ]);
23923
24387
  /**
24388
+ * What opened an on-motion detection SESSION: the motion source that passed the
24389
+ * camera's `motionSources` gate, and what raised it (the camera itself, or a
24390
+ * sensor the operator attached — D672). `sensorName` is the attached sensor's
24391
+ * device name as the orchestrator's camera-sensors resolution last read it;
24392
+ * absent when unknown or when the camera itself triggered.
24393
+ *
24394
+ * Carried on the session attach ONLY so the runner's `DetectionPhaseTransition`
24395
+ * can say what started the session (D672 rule 11, amended 2026-10-06). The
24396
+ * runner never decides anything on it.
24397
+ */
24398
+ var SessionTriggerSchema = object({
24399
+ source: MotionSourceEnum,
24400
+ triggeredBy: MotionTriggeredBySchema,
24401
+ sensorName: string().optional()
24402
+ });
24403
+ /**
23924
24404
  * List of motion sources active on a camera. Empty array is valid:
23925
24405
  * "no source" — happens for battery cams without firmware motion when
23926
24406
  * the operator hasn't opted into the SW analyzer (would hold the
@@ -24172,6 +24652,14 @@ var RunnerCameraConfigSchema = object({
24172
24652
  */
24173
24653
  motionSources: MotionSourcesSchema.default(["analyzer"]),
24174
24654
  /**
24655
+ * What opened this attach, on a SESSION attach only (see
24656
+ * {@link SessionTriggerSchema}). OPTIONAL with no default: absent on a
24657
+ * standing attach, an occupancy burst, a re-dispatch with no motion event
24658
+ * behind it, and every attach from an orchestrator older than the field — the
24659
+ * runner then names no source on the phase event.
24660
+ */
24661
+ sessionTrigger: SessionTriggerSchema.optional(),
24662
+ /**
24175
24663
  * WHICH root detector runs for this camera. The detection counterpart of
24176
24664
  * {@link motionSources}, same shape and same discipline: a per-camera list
24177
24665
  * of sources the system understands, vendor-agnostic, owned here.
@@ -24331,14 +24819,15 @@ var RunnerLocalLoadSchema = object({
24331
24819
  * Per-inference-device live load (multi-device C4). One entry per deviceKey
24332
24820
  * this runner currently has attached cameras on, so the orchestrator's second
24333
24821
  * `balance()` pass (over a node's devices) weights on real per-pool session
24334
- * counts. Empty on single-device / pre-multi-device runners. `queueDepthTotal`
24335
- * per device is 0 until the pool backlog gets a public accessor (follow-up).
24822
+ * counts. Empty on single-device / pre-multi-device runners. There is no
24823
+ * per-device queue depth: the inference pool's backlog has no accessor, and
24824
+ * a field that always read 0 was removed rather than shown as a measurement
24825
+ * (D762).
24336
24826
  */
24337
24827
  devices: array(object({
24338
24828
  deviceKey: string(),
24339
24829
  backend: string(),
24340
- attachedCameras: number(),
24341
- queueDepthTotal: number()
24830
+ attachedCameras: number()
24342
24831
  })).default([]),
24343
24832
  /** Hardware capability flags reported by this node. */
24344
24833
  hardware: object({
@@ -24474,7 +24963,22 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
24474
24963
  */
24475
24964
  cropJpeg: string().optional(),
24476
24965
  parent: DetailParentSchema,
24477
- steps: array(string()).optional()
24966
+ steps: array(string()).optional(),
24967
+ /**
24968
+ * The camera's root model already drew this step's boxes (D730): a
24969
+ * `license_plate` inside the parent vehicle. The named step is NOT
24970
+ * inferred — these FRAME-space boxes are its output — and its
24971
+ * requested children (the plate reader) run on them. Absent ⇒ every
24972
+ * requested step infers as before.
24973
+ */
24974
+ supplied: object({
24975
+ stepId: string(),
24976
+ modelId: string(),
24977
+ boxes: array(object({
24978
+ bbox: NativeCropBboxSchema,
24979
+ score: number()
24980
+ })).min(1)
24981
+ }).optional()
24478
24982
  }), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" }), method(object({
24479
24983
  /** Catalog step id, e.g. `clip-embedding`. */
24480
24984
  stepId: string(),
@@ -24537,14 +25041,6 @@ var CameraPipelineConfigSchema = object({
24537
25041
  settings: record(string(), unknown()).readonly().optional()
24538
25042
  }).nullable().optional()
24539
25043
  });
24540
- var PipelineTemplateSchema = object({
24541
- id: string(),
24542
- name: string(),
24543
- description: string().optional(),
24544
- config: CameraPipelineConfigSchema,
24545
- createdAt: string(),
24546
- updatedAt: string()
24547
- });
24548
25044
  var DeviceStepConfigSchema = object({
24549
25045
  modelId: string().optional(),
24550
25046
  settings: record(string(), unknown()).optional(),
@@ -24618,9 +25114,10 @@ var CameraStepOverridePatchSchema = object({
24618
25114
  modelId: string().optional(),
24619
25115
  settings: record(string(), unknown()).readonly().optional()
24620
25116
  });
25117
+ var CameraStepSettingsSchema = record(string(), record(string(), unknown()).readonly());
24621
25118
  var CameraPipelineSettingsSchema = object({
24622
- pinnedAgentNodeId: string().optional(),
24623
25119
  stepToggles: record(string(), boolean()).optional(),
25120
+ stepSettings: CameraStepSettingsSchema.optional(),
24624
25121
  stepOverridesByDevice: record(string(), record(string(), record(string(), CameraStepOverridePatchSchema))).optional(),
24625
25122
  pipelineByAgent: record(string(), CameraPipelineForAgentSchema).optional()
24626
25123
  });
@@ -24653,7 +25150,10 @@ var PipelineAssignmentSchema = object({
24653
25150
  });
24654
25151
  /**
24655
25152
  * Per-agent load summary surfaced to the load balancer + dashboards.
24656
- * Aggregated from each runner's `getLocalLoad` cap call.
25153
+ * Aggregated from each runner's `getLocalLoad` cap call. In the
25154
+ * `getAgentLoad` report, a single-device node's default-pool sessions (no
25155
+ * `deviceKey`) are credited to its one eligible device in `load.devices` —
25156
+ * the default pool IS that device (D745); the balancer's census stays raw.
24657
25157
  */
24658
25158
  var AgentLoadSummarySchema = object({
24659
25159
  nodeId: string(),
@@ -24742,26 +25242,27 @@ var CameraBrokerStatusSchema = object({
24742
25242
  width: number(),
24743
25243
  height: number(),
24744
25244
  subscribers: number(),
24745
- inFps: number(),
24746
- outFps: number()
25245
+ /**
25246
+ * Encoded packets/s the broker receives from the camera. null when the
25247
+ * broker's stats read failed — unknown, never 0 (a 0 here reads as a stall).
25248
+ * There is no output rate: decoding runs in the session decode workers, not
25249
+ * in the broker, so the broker's own decoded-frame rate is 0 on every live
25250
+ * camera and is not served (D758).
25251
+ */
25252
+ inFps: number().nullable()
24747
25253
  })).readonly(),
24748
25254
  webrtcSessions: number(),
24749
25255
  rtspRestream: boolean()
24750
25256
  });
24751
- /** Shared-memory ring statistics within the decoder block. */
24752
- var CameraDecoderShmSchema = object({
24753
- framesWritten: number(),
24754
- getFrameHits: number(),
24755
- getFrameMisses: number(),
24756
- budgetMb: number()
24757
- });
24758
- /** Decoder block — null when the decoder stage is unreachable or inactive. */
24759
- var CameraDecoderStatusSchema = object({
24760
- nodeId: string(),
24761
- formats: array(string()).readonly(),
24762
- sessionCount: number(),
24763
- shm: CameraDecoderShmSchema
24764
- });
25257
+ /**
25258
+ * Decoder block — WHERE decode runs (co-located with the detection node by
25259
+ * construction); null when the camera has no detection node. It carries no
25260
+ * frame counter: the shared-memory plane whose counters it used to serve is
25261
+ * gone, and those fields read 0 forever. Whether frames actually flow is read
25262
+ * from `detection.actualFps` (frames delivered to and processed by the
25263
+ * detector), never from a counter nothing feeds.
25264
+ */
25265
+ var CameraDecoderStatusSchema = object({ nodeId: string() });
24765
25266
  /** Motion block — null when motion detection is not active for this device. */
24766
25267
  var CameraMotionStatusSchema = object({
24767
25268
  enabled: boolean(),
@@ -25118,12 +25619,6 @@ method(object({
25118
25619
  }), object({ success: literal(true) }), {
25119
25620
  kind: "mutation",
25120
25621
  auth: "admin"
25121
- }), method(object({
25122
- agentNodeId: string(),
25123
- detectWeight: number().positive().nullable()
25124
- }), object({ success: literal(true) }), {
25125
- kind: "mutation",
25126
- auth: "admin"
25127
25622
  }), method(object({
25128
25623
  agentNodeId: string(),
25129
25624
  detect: boolean().nullable().optional(),
@@ -25165,6 +25660,15 @@ method(object({
25165
25660
  }), {
25166
25661
  kind: "mutation",
25167
25662
  auth: "admin"
25663
+ }), method(AutoTuneOptionsSchema, AutoTunePlanSchema, { auth: "admin" }), method(AutoTuneApplyInputSchema, AutoTuneApplyResultSchema, {
25664
+ kind: "mutation",
25665
+ auth: "admin"
25666
+ }), method(LoadBalancingSharesInputSchema, object({ success: literal(true) }), {
25667
+ kind: "mutation",
25668
+ auth: "admin"
25669
+ }), method(PlacementStatsInputSchema, PlacementStatsSchema, { auth: "admin" }), method(SuggestSharesInputSchema, SuggestSharesResultSchema, { auth: "admin" }), method(_void(), EffectiveSharesSchema, { auth: "admin" }), method(SetShareSourceInputSchema, object({ success: literal(true) }), {
25670
+ kind: "mutation",
25671
+ auth: "admin"
25168
25672
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
25169
25673
  deviceId: number(),
25170
25674
  addonId: string(),
@@ -25181,6 +25685,13 @@ method(object({
25181
25685
  }), object({ success: literal(true) }), {
25182
25686
  kind: "mutation",
25183
25687
  auth: "admin"
25688
+ }), method(object({
25689
+ deviceId: number(),
25690
+ addonId: string(),
25691
+ settings: record(string(), unknown()).nullable()
25692
+ }), object({ success: literal(true) }), {
25693
+ kind: "mutation",
25694
+ auth: "admin"
25184
25695
  }), method(object({
25185
25696
  deviceId: number(),
25186
25697
  agentNodeId: string(),
@@ -25204,25 +25715,7 @@ method(object({
25204
25715
  }), method(_void(), DiskReconcileJobSchema, {
25205
25716
  kind: "mutation",
25206
25717
  auth: "admin"
25207
- }), method(_void(), DiskReconcileJobSchema, { auth: "admin" }), method(_void(), array(PipelineTemplateSchema).readonly()), method(object({
25208
- name: string(),
25209
- description: string().optional(),
25210
- config: CameraPipelineConfigSchema
25211
- }), PipelineTemplateSchema, {
25212
- kind: "mutation",
25213
- auth: "admin"
25214
- }), method(object({
25215
- id: string(),
25216
- name: string().optional(),
25217
- description: string().optional(),
25218
- config: CameraPipelineConfigSchema.optional()
25219
- }), PipelineTemplateSchema, {
25220
- kind: "mutation",
25221
- auth: "admin"
25222
- }), method(object({ id: string() }), object({ success: literal(true) }), {
25223
- kind: "mutation",
25224
- auth: "admin"
25225
- });
25718
+ }), method(_void(), DiskReconcileJobSchema, { auth: "admin" });
25226
25719
  /**
25227
25720
  * Cap → event-kind mapping for the SENSOR / CONTROL cap families — the table
25228
25721
  * `pipeline-analytics.listEventKinds` uses to turn a linked device's bound
@@ -25812,7 +26305,19 @@ var SsoBridgeClaimsSchema = object({
25812
26305
  * editing a descriptor must not retroactively extend or shorten a link the
25813
26306
  * operator already consented to.
25814
26307
  */
25815
- refreshTtl: union([number().int().positive(), literal("never")]).optional()
26308
+ refreshTtl: union([number().int().positive(), literal("never")]).optional(),
26309
+ /**
26310
+ * Opaque handle of a hub-side LINK intent (D782). Set by an OIDC callback
26311
+ * that was started from a signed-in user's "Link" button: the finish then
26312
+ * links this identity to the intent's user instead of signing anyone in.
26313
+ * The handle carries no user id — the hub resolves it, single-use.
26314
+ */
26315
+ linkIntent: string().optional(),
26316
+ /**
26317
+ * Verified `iss` of the id_token behind an OIDC login bridge (D782). A
26318
+ * subject is unique only per issuer, so a link is bound to it.
26319
+ */
26320
+ issuer: string().optional()
25816
26321
  });
25817
26322
  method(object({
25818
26323
  claims: SsoBridgeClaimsSchema,
@@ -27442,8 +27947,6 @@ var WebrtcStreamChoiceSchema = object({
27442
27947
  ]).nullable(),
27443
27948
  /** Input FPS from the camera (null for adaptive). */
27444
27949
  inputFps: number().nullable(),
27445
- /** Decoded FPS (null for adaptive). */
27446
- decodeFps: number().nullable(),
27447
27950
  /** Bitrate in kbps (null for adaptive). */
27448
27951
  bitrateKbps: number().nullable()
27449
27952
  });
@@ -27720,7 +28223,22 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
27720
28223
  * field their hints were silently stripped by the schema and the
27721
28224
  * adaptive ladder started blind on the client's display size.
27722
28225
  */
27723
- hints: webrtcClientHintsSchema.optional()
28226
+ hints: webrtcClientHintsSchema.optional(),
28227
+ /**
28228
+ * Talk-back (D771): relay the PEER's audio to the device's speaker
28229
+ * through the `intercom` cap's push-talk triple. When `true` and the
28230
+ * offer lets the peer send audio, the answer's audio is `sendrecv`
28231
+ * and every inbound frame goes to `intercom.pushTalkAudio` for this
28232
+ * `deviceId`; absent/false answers `sendonly`, as for every viewer.
28233
+ *
28234
+ * TRUSTED-CALLER ONLY. Set by the Alexa export for an Echo on a camera
28235
+ * with `intercom`, when the linked user may control that camera. The
28236
+ * hub STRIPS it from every request-bound call (a browser), exactly as
28237
+ * it overwrites `relayOnly` — a viewer's talk permission is the
28238
+ * intercom cap's own surface (share tokens gate it there), and this
28239
+ * flag must not become a second door to the camera's speaker.
28240
+ */
28241
+ talkback: boolean().optional()
27724
28242
  }), object({
27725
28243
  sessionId: string(),
27726
28244
  sdpAnswer: string()
@@ -27775,6 +28293,14 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
27775
28293
  */
27776
28294
  alive: boolean()
27777
28295
  })), method(object({
28296
+ deviceId: number().int().nonnegative(),
28297
+ sessionId: string(),
28298
+ downlinkMbps: number().nonnegative()
28299
+ }), object({
28300
+ outcome: _enum(["switching", "held"]),
28301
+ tier: CamProfileSchema.nullable(),
28302
+ reason: string()
28303
+ }), { kind: "mutation" }), method(object({
27778
28304
  deviceId: number().int().nonnegative(),
27779
28305
  sessionId: string()
27780
28306
  }), WebrtcSessionDebugSchema, { kind: "query" });
@@ -28014,6 +28540,59 @@ var AddonAutoUpdateSchema = ChannelWithInheritSchema;
28014
28540
  var RestartAddonResultSchema = unknown();
28015
28541
  var InstallPackageResultSchema = unknown();
28016
28542
  var ReloadPackagesResultSchema = unknown();
28543
+ /**
28544
+ * What an uninstall did on ONE node.
28545
+ * - `uninstalled` — removed: runner(s) stopped, caps gone, code deleted.
28546
+ * - `not-installed` — the node did not have it (nothing to do).
28547
+ * - `refused` — protected / bootstrap package; nothing touched.
28548
+ * - `failed` — attempted and did not complete; `error` says why.
28549
+ * - `pending-reconnect` — the node is OFFLINE: its record was pruned so the
28550
+ * back-fill never returns the package, and the stale-addon sweep removes the
28551
+ * copy when the node registers again (only once the hub no longer has it).
28552
+ */
28553
+ var UninstallNodeOutcomeSchema = _enum([
28554
+ "uninstalled",
28555
+ "not-installed",
28556
+ "refused",
28557
+ "failed",
28558
+ "pending-reconnect"
28559
+ ]);
28560
+ var UninstallNodeResultSchema = object({
28561
+ nodeId: string(),
28562
+ outcome: UninstallNodeOutcomeSchema,
28563
+ error: string().optional(),
28564
+ addonIds: array(string()).readonly(),
28565
+ runnersStopped: array(string()).readonly(),
28566
+ warnings: array(string()).readonly()
28567
+ });
28568
+ var UninstallPackageResultSchema = object({
28569
+ /** Every targeted node ended `uninstalled`, `not-installed` or `pending-reconnect`. */
28570
+ success: boolean(),
28571
+ packageName: string(),
28572
+ results: array(UninstallNodeResultSchema).readonly()
28573
+ });
28574
+ /**
28575
+ * `unreachable` lists online agents whose status read FAILED — absence from
28576
+ * `installations` is only "not installed" for a node that answered (D315).
28577
+ */
28578
+ var PackageInstallationsSchema = object({
28579
+ installations: array(object({
28580
+ packageName: string(),
28581
+ nodeId: string(),
28582
+ nodeName: string(),
28583
+ isHub: boolean(),
28584
+ isOnline: boolean(),
28585
+ version: string().nullable(),
28586
+ addonIds: array(string()).readonly(),
28587
+ source: _enum(["live", "recorded"]),
28588
+ /** The hub installs this package too. `false` on an agent row = an orphan. */
28589
+ onHub: boolean()
28590
+ })).readonly(),
28591
+ unreachable: array(object({
28592
+ nodeId: string(),
28593
+ error: string()
28594
+ })).readonly()
28595
+ });
28017
28596
  var BulkUpdateItemStatusSchema = _enum([
28018
28597
  "queued",
28019
28598
  "updating",
@@ -28096,10 +28675,14 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
28096
28675
  }), method(object({ packageName: string() }), InstallPackageResultSchema, {
28097
28676
  kind: "mutation",
28098
28677
  auth: "admin"
28099
- }), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({ packageName: string() }), unknown(), {
28678
+ }), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({
28679
+ packageName: string().min(1),
28680
+ nodeId: string().optional(),
28681
+ everywhere: boolean().optional()
28682
+ }), UninstallPackageResultSchema, {
28100
28683
  kind: "mutation",
28101
28684
  auth: "admin"
28102
- }), method(_void(), ReloadPackagesResultSchema, {
28685
+ }), method(object({ packageName: string().optional() }), PackageInstallationsSchema, { auth: "admin" }), method(_void(), ReloadPackagesResultSchema, {
28103
28686
  kind: "mutation",
28104
28687
  auth: "admin"
28105
28688
  }), method(object({ query: string().optional() }), array(SearchResultSchema)), method(object({ nodeId: string().optional() }), array(PackageUpdateSchema).readonly(), { auth: "admin" }), method(object({
@@ -30395,7 +30978,7 @@ var LocalInterfaceSchema = object({
30395
30978
  name: string(),
30396
30979
  family: _enum(["IPv4", "IPv6"]),
30397
30980
  address: string(),
30398
- /** CIDR shorthand (e.g. `192.168.x.x/24`). Empty when OS doesn't expose. */
30981
+ /** CIDR shorthand (e.g. `192.168.10.10/24`). Empty when OS doesn't expose. */
30399
30982
  cidr: string(),
30400
30983
  /** OS netmask. Stable across calls so the SDK can hash on it. */
30401
30984
  netmask: string(),
@@ -30449,7 +31032,9 @@ var ConnectionEndpointSchema = object({
30449
31032
  "lan-ipv4",
30450
31033
  "lan-ipv6",
30451
31034
  "public",
30452
- "loopback"
31035
+ "loopback",
31036
+ "app-link",
31037
+ "custom"
30453
31038
  ]),
30454
31039
  /**
30455
31040
  * Originating-interface kind — `lan`/`wifi`/`docker`/`vpn`/`other`/
@@ -30518,15 +31103,27 @@ var GetConnectionEndpointsResultSchema = object({
30518
31103
  localPort: AdvertisedLocalPortSchema
30519
31104
  });
30520
31105
  /**
30521
- * The chosen outbound endpoint for notification artifacts. `baseUrl: null` =
30522
- * AUTO (resolved from the candidate ranking at send time); `resolved` reports
30523
- * what AUTO currently picks, so the UI can show the effective value either way.
31106
+ * The address flagged for notification taps (`notificationTaps`). `baseUrl: null` = AUTO, which
31107
+ * since D709 is the CamStack app link; `resolved` reports the effective value,
31108
+ * so the UI can show it either way.
30524
31109
  */
30525
31110
  var NotificationEndpointSchema = object({
30526
31111
  /** The operator's explicit choice, or null for AUTO. */
30527
31112
  baseUrl: string().nullable(),
30528
- /** What the ranking currently resolves to (null when nothing is reachable). */
30529
- resolved: string().nullable()
31113
+ /**
31114
+ * The effective flagged address: the explicit choice, else (AUTO) the
31115
+ * CamStack app link `https://camstack.zentik.app` (D709). A pre-D709 hub
31116
+ * answered the public tunnel / mesh here, or null.
31117
+ */
31118
+ resolved: string().nullable(),
31119
+ /**
31120
+ * The hub origin an app link carries as `hub=` (D709): the hub's best
31121
+ * public HTTPS address — the tunnel, then the mesh (Tailscale MagicDNS) —
31122
+ * picked from this cap's own palette by `pickAppLinkHub`. `null` when the
31123
+ * hub advertises neither; the app link is then minted without `hub=`.
31124
+ * Absent on a pre-D709 hub.
31125
+ */
31126
+ appLinkHub: string().nullable()
30530
31127
  });
30531
31128
  /**
30532
31129
  * The URLs the SDK / viewer should race for API access. `baseUrls` empty =
@@ -30539,6 +31136,72 @@ var ViewerEndpointsSchema = object({
30539
31136
  /** What the ranking currently resolves to (may be empty if nothing is up). */
30540
31137
  resolved: array(string()).readonly()
30541
31138
  });
31139
+ /**
31140
+ * DEPRECATED compatibility shape of `getHubAddresses` (D729 amendment, kept
31141
+ * for addons built against it): `cluster` is the `internal` role, `browser`
31142
+ * the `publicEndpoint` role; `override` is the flagged address.
31143
+ */
31144
+ var HubAddressSnapshotSchema = object({
31145
+ override: string().nullable(),
31146
+ resolved: string().nullable(),
31147
+ source: _enum([
31148
+ "override",
31149
+ "auto",
31150
+ "none"
31151
+ ])
31152
+ });
31153
+ var HubAddressesSchema = object({
31154
+ cluster: HubAddressSnapshotSchema,
31155
+ browser: HubAddressSnapshotSchema
31156
+ });
31157
+ /**
31158
+ * What an address is used for (`hub-address.ts`, D734). `appConnections` is
31159
+ * many-valued; `notificationTaps`, `publicEndpoint` and `internal` are carried
31160
+ * by at most one address.
31161
+ */
31162
+ var HubAddressRoleSchema = _enum(HUB_ADDRESS_ROLES);
31163
+ var RoleSourceSchema = _enum([
31164
+ "flagged",
31165
+ "auto",
31166
+ "none"
31167
+ ]);
31168
+ /** One single-valued role: the flagged address, the one in use, and why. */
31169
+ var HubAddressRoleResolutionSchema = object({
31170
+ /** The address carrying the flag, or null = automatic. */
31171
+ flagged: string().nullable(),
31172
+ /** The address in use, or null when nothing qualifies (never loopback). */
31173
+ resolved: string().nullable(),
31174
+ source: RoleSourceSchema
31175
+ });
31176
+ var HubAppConnectionsResolutionSchema = object({
31177
+ /** The addresses flagged `appConnections`, or empty = automatic. */
31178
+ flagged: array(string()).readonly(),
31179
+ /** What the apps race right now. */
31180
+ resolved: array(string()).readonly(),
31181
+ source: RoleSourceSchema
31182
+ });
31183
+ var HubAddressBookSchema = object({
31184
+ rows: array(ConnectionEndpointSchema.extend({
31185
+ /** In the hub's detected palette right now. */
31186
+ detected: boolean(),
31187
+ /** Entered by the operator (removable). */
31188
+ custom: boolean(),
31189
+ /** The roles explicitly flagged on this address. */
31190
+ flags: array(HubAddressRoleSchema).readonly(),
31191
+ /** The roles this address serves right now — flagged or automatic. */
31192
+ inUse: array(HubAddressRoleSchema).readonly(),
31193
+ /** The roles this address may be flagged with. */
31194
+ eligible: array(HubAddressRoleSchema).readonly()
31195
+ })).readonly(),
31196
+ roles: object({
31197
+ appConnections: HubAppConnectionsResolutionSchema,
31198
+ notificationTaps: HubAddressRoleResolutionSchema,
31199
+ internal: HubAddressRoleResolutionSchema,
31200
+ publicEndpoint: HubAddressRoleResolutionSchema
31201
+ }),
31202
+ /** The `hub=` an app link carries (D709), or null. */
31203
+ appLinkHub: string().nullable()
31204
+ });
30542
31205
  var AllowedAddressesSchema = object({
30543
31206
  /**
30544
31207
  * Allowlist of interface addresses operators have explicitly opted
@@ -30580,8 +31243,29 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
30580
31243
  * Pass `'https'` when the caller is itself loaded over HTTPS
30581
31244
  * to avoid mixed-content blocks in the browser. The public
30582
31245
  * tunnel always emits `https://` regardless. */
30583
- scheme: _enum(["http", "https"]).optional()
30584
- }), GetConnectionEndpointsResultSchema), method(_void(), NotificationEndpointSchema), method(object({ baseUrl: string().nullable() }), NotificationEndpointSchema, { kind: "mutation" }), method(_void(), ViewerEndpointsSchema), method(object({ baseUrls: array(string()).readonly() }), ViewerEndpointsSchema, { kind: "mutation" }), method(_void(), AllowedAddressesSchema), method(AllowedAddressesSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), AllowedAddressesSchema, { kind: "mutation" }), method(_void(), TlsStatusSchema), method(object({ reason: string().optional() }), TlsStatusSchema, {
31246
+ scheme: _enum(["http", "https"]).optional(),
31247
+ /** Append the CamStack app link entry (`kind: 'app-link'`, D709) —
31248
+ * an address notification taps can be flagged with, not a hub
31249
+ * route. Default `false`: racers and rankers never see it. */
31250
+ includeAppLink: boolean().optional()
31251
+ }), GetConnectionEndpointsResultSchema), method(_void(), NotificationEndpointSchema), method(object({ baseUrl: string().nullable() }), NotificationEndpointSchema, { kind: "mutation" }), method(_void(), ViewerEndpointsSchema), method(object({ baseUrls: array(string()).readonly() }), ViewerEndpointsSchema, { kind: "mutation" }), method(object({ scheme: _enum(["http", "https"]).optional() }).optional(), HubAddressBookSchema), method(object({
31252
+ baseUrl: string(),
31253
+ label: string().max(80)
31254
+ }), HubAddressBookSchema, {
31255
+ kind: "mutation",
31256
+ auth: "admin"
31257
+ }), method(object({ baseUrl: string() }), HubAddressBookSchema, {
31258
+ kind: "mutation",
31259
+ auth: "admin"
31260
+ }), method(object({
31261
+ role: HubAddressRoleSchema,
31262
+ baseUrl: string().nullable(),
31263
+ enabled: boolean(),
31264
+ acceptInsecureHttp: boolean().optional()
31265
+ }), HubAddressBookSchema, {
31266
+ kind: "mutation",
31267
+ auth: "admin"
31268
+ }), method(_void(), HubAddressesSchema), method(_void(), AllowedAddressesSchema), method(AllowedAddressesSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), AllowedAddressesSchema, { kind: "mutation" }), method(_void(), TlsStatusSchema), method(object({ reason: string().optional() }), TlsStatusSchema, {
30585
31269
  kind: "mutation",
30586
31270
  auth: "admin"
30587
31271
  }), method(object({
@@ -30841,7 +31525,7 @@ var MeshPeerSchema = object({
30841
31525
  tags: array(string()).readonly(),
30842
31526
  /** True when the peer advertises itself as an exit-node candidate. */
30843
31527
  exitNodeOption: boolean(),
30844
- /** Subnet routes the peer advertises (e.g. `["192.168.x.x/24"]`). */
31528
+ /** Subnet routes the peer advertises (e.g. `["192.168.10.0/24"]`). */
30845
31529
  advertisedRoutes: array(string()).readonly(),
30846
31530
  /** Owner account login (e.g. `foo@example.com`). Null for tagged peers. */
30847
31531
  userLogin: string().nullable(),
@@ -31032,7 +31716,8 @@ object({
31032
31716
  * writes this slice (not even a boot seed), and neither does the runner's
31033
31717
  * phase machine: its phase is "a session is attached" for every on-motion
31034
31718
  * session, not motion, and it now has its own `DetectionPhaseTransition`.
31035
- * A provider's `isDetected` answers from the hub's slice.
31719
+ * A provider's `isDetected` and `getStatus` answer from the hub's slice
31720
+ * (`hubMotionNativeProvider`).
31036
31721
  * - **Sensors** (Home Assistant binary sensors, Homematic, Matter, Alexa
31037
31722
  * imports) — the provider pushes both edges itself, from the upstream
31038
31723
  * system's own state change. That is the sensor's own fact.
@@ -31846,7 +32531,13 @@ var OsdStatusSchema = object({ overlays: array(object({
31846
32531
  */
31847
32532
  availablePositions: array(OsdPositionEnum).readonly(),
31848
32533
  /** Firmware does not allow editing the `text` field (e.g. timestamp). */
31849
- readOnly: boolean().optional()
32534
+ readOnly: boolean().optional(),
32535
+ /**
32536
+ * Firmware text ceiling for this overlay. Absent = no known limit.
32537
+ * The OSD manager truncates here on every write — never stores its own
32538
+ * copy on the binding.
32539
+ */
32540
+ maxCharacters: number().int().positive().optional()
31850
32541
  })).readonly() });
31851
32542
  var OsdOverlayPatchSchema = object({
31852
32543
  enabled: boolean().optional(),
@@ -31897,7 +32588,9 @@ var OsdTemplateBindingSchema = object({
31897
32588
  valuePath: string().min(1).max(64),
31898
32589
  /** Convert TO this unit at render (`tryConvertUnit`). Absent = source unit. */
31899
32590
  displayUnit: string().max(16).optional(),
31900
- maxDecimals: number().int().min(0).max(4).default(1)
32591
+ maxDecimals: number().int().min(0).max(4).default(1),
32592
+ /** Raw value → display text (same shape as slot binding). Empty string hides. */
32593
+ valueMap: record(string(), string()).optional()
31901
32594
  });
31902
32595
  /**
31903
32596
  * A named template: bindings (alias → leaf field) + a parser that
@@ -31947,18 +32640,11 @@ var OsdSlotBindingSchema = object({
31947
32640
  source: OsdSourceSchema,
31948
32641
  /** `${value}` and `${unit}` are substituted; every occurrence. */
31949
32642
  template: string().max(96).default("${value}"),
31950
- /** Truncate with an ellipsis past this length. Absent = no limit. */
31951
- maxCharacters: number().int().min(4).max(64).optional(),
31952
32643
  /**
31953
32644
  * Decimal places for a numeric value. `0` yields an integer — the
31954
32645
  * documented workaround for firmwares that reject `.` in overlay text.
31955
32646
  */
31956
32647
  maxDecimals: number().int().min(0).max(4).default(1),
31957
- /**
31958
- * Appended via `${unit}` when no unit conversion produces a label.
31959
- * Prefer `source.displayUnit` for converted device-state values.
31960
- */
31961
- unitLabel: string().max(8).optional(),
31962
32648
  /** Raw value → display text, e.g. `{"true":"MOTION","false":""}`. */
31963
32649
  valueMap: record(string(), string()).optional(),
31964
32650
  /** Time windows in which the slot is shown. Absent = always. */
@@ -31967,9 +32653,7 @@ var OsdSlotBindingSchema = object({
31967
32653
  * Display gate, in the notification centre's condition vocabulary.
31968
32654
  * Only the keys reported by `getConditionSupport` are accepted.
31969
32655
  */
31970
- conditions: NcConditionsSchema.optional(),
31971
- /** Rendered when the gate is closed or the value unreadable. Empty = hide. */
31972
- fallbackText: string().max(64).default("")
32656
+ conditions: NcConditionsSchema.optional()
31973
32657
  });
31974
32658
  /** One camera slot, as the operator sees it: firmware truth + our binding. */
31975
32659
  var OsdSlotViewSchema = object({
@@ -35659,6 +36343,32 @@ var TotpStatusSchema = object({
35659
36343
  /** Null when no row exists OR the row is still pending confirmation. */
35660
36344
  confirmedAt: number().nullable()
35661
36345
  });
36346
+ /**
36347
+ * user-management — singleton capability for user accounts, API keys,
36348
+ * and scoped tokens.
36349
+ *
36350
+ * v2 model: every method gated by `auth: 'admin'`. Admin-only delegation
36351
+ * — the subset check on `setUserScopes` / `createScopedToken` is moot
36352
+ * because non-admins never reach these. If/when we open non-admin
36353
+ * delegation, structural caller-scope subset check goes inside the
36354
+ * provider.
36355
+ */
36356
+ var ExternalIdentitySchema = object({
36357
+ /** Login-method id of the provider instance, e.g. `auth-oidc/authentik`. */
36358
+ provider: string(),
36359
+ /** The IdP's stable subject (`sub`) for this account. */
36360
+ subject: string(),
36361
+ /** The verified `iss` of the IdP the identity was linked under — `sub` is unique only per issuer. */
36362
+ issuer: string(),
36363
+ userId: string(),
36364
+ /** What the IdP called the account at link time (username / email) — display only. */
36365
+ label: string().optional(),
36366
+ linkedAt: number()
36367
+ });
36368
+ var ExternalIdentityKeySchema = object({
36369
+ provider: string().min(1),
36370
+ subject: string().min(1)
36371
+ });
35662
36372
  method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserInputSchema, UserSummarySchema, {
35663
36373
  kind: "mutation",
35664
36374
  auth: "admin",
@@ -35772,7 +36482,22 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
35772
36482
  userId: string(),
35773
36483
  username: string(),
35774
36484
  scopes: array(TokenScopeSchema)
35775
- }).nullable(), { access: "view" }), method(_void(), array(OauthSessionSummarySchema), { auth: "admin" }), method(object({ id: string() }), object({ success: boolean() }), {
36485
+ }).nullable(), { access: "view" }), method(object({ userId: string() }), array(ExternalIdentitySchema), { auth: "admin" }), method(ExternalIdentityKeySchema, object({
36486
+ userId: string(),
36487
+ issuer: string()
36488
+ }).nullable(), { auth: "admin" }), method(ExternalIdentityKeySchema.extend({
36489
+ userId: string(),
36490
+ issuer: string().min(1),
36491
+ label: string().optional()
36492
+ }), object({ success: literal(true) }), {
36493
+ kind: "mutation",
36494
+ auth: "admin",
36495
+ access: "create"
36496
+ }), method(ExternalIdentityKeySchema.extend({ userId: string() }), object({ success: boolean() }), {
36497
+ kind: "mutation",
36498
+ auth: "admin",
36499
+ access: "delete"
36500
+ }), method(_void(), array(OauthSessionSummarySchema), { auth: "admin" }), method(object({ id: string() }), object({ success: boolean() }), {
35776
36501
  kind: "mutation",
35777
36502
  auth: "admin",
35778
36503
  access: "delete"
@@ -36164,6 +36889,16 @@ DeviceType.Camera, method(object({
36164
36889
  package: array(ZoneRuleSchema).readonly()
36165
36890
  });
36166
36891
  SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
36892
+ Object.freeze({
36893
+ person: .5,
36894
+ vehicle: .5,
36895
+ animal: .5
36896
+ });
36897
+ Object.freeze({
36898
+ person: .65,
36899
+ vehicle: .65,
36900
+ animal: .65
36901
+ });
36167
36902
  /**
36168
36903
  * Accessory device helpers — shared across drivers.
36169
36904
  *
@@ -36338,6 +37073,12 @@ Object.freeze({
36338
37073
  addonId: null,
36339
37074
  access: "view"
36340
37075
  },
37076
+ "addons.listInstallations": {
37077
+ capName: "addons",
37078
+ capScope: "system",
37079
+ addonId: null,
37080
+ access: "view"
37081
+ },
36341
37082
  "addons.listJobs": {
36342
37083
  capName: "addons",
36343
37084
  capScope: "system",
@@ -37520,90 +38261,18 @@ Object.freeze({
37520
38261
  addonId: null,
37521
38262
  access: "create"
37522
38263
  },
37523
- "decoder.createSession": {
37524
- capName: "decoder",
37525
- capScope: "system",
37526
- addonId: null,
37527
- access: "view"
37528
- },
37529
- "decoder.destroySession": {
37530
- capName: "decoder",
37531
- capScope: "system",
37532
- addonId: null,
37533
- access: "delete"
37534
- },
37535
- "decoder.getFrame": {
37536
- capName: "decoder",
37537
- capScope: "system",
37538
- addonId: null,
37539
- access: "view"
37540
- },
37541
38264
  "decoder.getInfo": {
37542
38265
  capName: "decoder",
37543
38266
  capScope: "system",
37544
38267
  addonId: null,
37545
38268
  access: "view"
37546
38269
  },
37547
- "decoder.getShmStats": {
37548
- capName: "decoder",
37549
- capScope: "system",
37550
- addonId: null,
37551
- access: "view"
37552
- },
37553
- "decoder.getStats": {
37554
- capName: "decoder",
37555
- capScope: "system",
37556
- addonId: null,
37557
- access: "view"
37558
- },
37559
- "decoder.listActiveSessions": {
37560
- capName: "decoder",
37561
- capScope: "system",
37562
- addonId: null,
37563
- access: "view"
37564
- },
37565
- "decoder.openStream": {
37566
- capName: "decoder",
37567
- capScope: "system",
37568
- addonId: null,
37569
- access: "view"
37570
- },
37571
- "decoder.pullFrames": {
37572
- capName: "decoder",
37573
- capScope: "system",
37574
- addonId: null,
37575
- access: "view"
37576
- },
37577
- "decoder.pullHandles": {
37578
- capName: "decoder",
37579
- capScope: "system",
37580
- addonId: null,
37581
- access: "view"
37582
- },
37583
- "decoder.pushPacket": {
37584
- capName: "decoder",
37585
- capScope: "system",
37586
- addonId: null,
37587
- access: "view"
37588
- },
37589
38270
  "decoder.reprobeHwaccel": {
37590
38271
  capName: "decoder",
37591
38272
  capScope: "system",
37592
38273
  addonId: null,
37593
38274
  access: "create"
37594
38275
  },
37595
- "decoder.supportsCodec": {
37596
- capName: "decoder",
37597
- capScope: "system",
37598
- addonId: null,
37599
- access: "view"
37600
- },
37601
- "decoder.updateConfig": {
37602
- capName: "decoder",
37603
- capScope: "system",
37604
- addonId: null,
37605
- access: "view"
37606
- },
37607
38276
  "detectionPipeline.applyDeviceSettingsPatch": {
37608
38277
  capName: "detection-pipeline",
37609
38278
  capScope: "device",
@@ -39092,12 +39761,24 @@ Object.freeze({
39092
39761
  addonId: null,
39093
39762
  access: "view"
39094
39763
  },
39764
+ "localNetwork.addCustomAddress": {
39765
+ capName: "local-network",
39766
+ capScope: "system",
39767
+ addonId: null,
39768
+ access: "create"
39769
+ },
39095
39770
  "localNetwork.downloadCa": {
39096
39771
  capName: "local-network",
39097
39772
  capScope: "system",
39098
39773
  addonId: null,
39099
39774
  access: "view"
39100
39775
  },
39776
+ "localNetwork.getAddresses": {
39777
+ capName: "local-network",
39778
+ capScope: "system",
39779
+ addonId: null,
39780
+ access: "view"
39781
+ },
39101
39782
  "localNetwork.getAllowedAddresses": {
39102
39783
  capName: "local-network",
39103
39784
  capScope: "system",
@@ -39110,6 +39791,12 @@ Object.freeze({
39110
39791
  addonId: null,
39111
39792
  access: "view"
39112
39793
  },
39794
+ "localNetwork.getHubAddresses": {
39795
+ capName: "local-network",
39796
+ capScope: "system",
39797
+ addonId: null,
39798
+ access: "view"
39799
+ },
39113
39800
  "localNetwork.getNotificationEndpoint": {
39114
39801
  capName: "local-network",
39115
39802
  capScope: "system",
@@ -39146,6 +39833,12 @@ Object.freeze({
39146
39833
  addonId: null,
39147
39834
  access: "create"
39148
39835
  },
39836
+ "localNetwork.removeCustomAddress": {
39837
+ capName: "local-network",
39838
+ capScope: "system",
39839
+ addonId: null,
39840
+ access: "delete"
39841
+ },
39149
39842
  "localNetwork.resetAllowlistToBestMatch": {
39150
39843
  capName: "local-network",
39151
39844
  capScope: "system",
@@ -39158,6 +39851,12 @@ Object.freeze({
39158
39851
  addonId: null,
39159
39852
  access: "create"
39160
39853
  },
39854
+ "localNetwork.setAddressRole": {
39855
+ capName: "local-network",
39856
+ capScope: "system",
39857
+ addonId: null,
39858
+ access: "create"
39859
+ },
39161
39860
  "localNetwork.setAllowedAddresses": {
39162
39861
  capName: "local-network",
39163
39862
  capScope: "system",
@@ -40604,6 +41303,12 @@ Object.freeze({
40604
41303
  addonId: null,
40605
41304
  access: "create"
40606
41305
  },
41306
+ "pipelineAnalytics.setRetrainFrameComplete": {
41307
+ capName: "pipeline-analytics",
41308
+ capScope: "device",
41309
+ addonId: null,
41310
+ access: "create"
41311
+ },
40607
41312
  "pipelineAnalytics.setTrackFlags": {
40608
41313
  capName: "pipeline-analytics",
40609
41314
  capScope: "device",
@@ -40640,6 +41345,12 @@ Object.freeze({
40640
41345
  addonId: null,
40641
41346
  access: "delete"
40642
41347
  },
41348
+ "pipelineAnalytics.writeRetrainArchive": {
41349
+ capName: "pipeline-analytics",
41350
+ capScope: "device",
41351
+ addonId: null,
41352
+ access: "create"
41353
+ },
40643
41354
  "pipelineExecutor.cacheFrameInPool": {
40644
41355
  capName: "pipeline-executor",
40645
41356
  capScope: "system",
@@ -40652,13 +41363,13 @@ Object.freeze({
40652
41363
  addonId: null,
40653
41364
  access: "delete"
40654
41365
  },
40655
- "pipelineExecutor.deleteModel": {
41366
+ "pipelineExecutor.clearModelBoundDeviceOverrides": {
40656
41367
  capName: "pipeline-executor",
40657
41368
  capScope: "system",
40658
41369
  addonId: null,
40659
41370
  access: "delete"
40660
41371
  },
40661
- "pipelineExecutor.deleteTemplate": {
41372
+ "pipelineExecutor.deleteModel": {
40662
41373
  capName: "pipeline-executor",
40663
41374
  capScope: "system",
40664
41375
  addonId: null,
@@ -40802,12 +41513,6 @@ Object.freeze({
40802
41513
  addonId: null,
40803
41514
  access: "view"
40804
41515
  },
40805
- "pipelineExecutor.listTemplates": {
40806
- capName: "pipeline-executor",
40807
- capScope: "system",
40808
- addonId: null,
40809
- access: "view"
40810
- },
40811
41516
  "pipelineExecutor.rearmInferenceDevice": {
40812
41517
  capName: "pipeline-executor",
40813
41518
  capScope: "system",
@@ -40832,12 +41537,6 @@ Object.freeze({
40832
41537
  addonId: null,
40833
41538
  access: "create"
40834
41539
  },
40835
- "pipelineExecutor.saveTemplate": {
40836
- capName: "pipeline-executor",
40837
- capScope: "system",
40838
- addonId: null,
40839
- access: "create"
40840
- },
40841
41540
  "pipelineExecutor.setVideoPipelineSteps": {
40842
41541
  capName: "pipeline-executor",
40843
41542
  capScope: "system",
@@ -40856,41 +41555,35 @@ Object.freeze({
40856
41555
  addonId: null,
40857
41556
  access: "create"
40858
41557
  },
40859
- "pipelineExecutor.updateTemplate": {
40860
- capName: "pipeline-executor",
40861
- capScope: "system",
40862
- addonId: null,
40863
- access: "create"
40864
- },
40865
41558
  "pipelineExecutor.validatePipeline": {
40866
41559
  capName: "pipeline-executor",
40867
41560
  capScope: "system",
40868
41561
  addonId: null,
40869
41562
  access: "view"
40870
41563
  },
40871
- "pipelineOrchestrator.applyDeviceSettingsPatch": {
41564
+ "pipelineOrchestrator.applyAutoTune": {
40872
41565
  capName: "pipeline-orchestrator",
40873
41566
  capScope: "system",
40874
41567
  addonId: null,
40875
41568
  access: "create"
40876
41569
  },
40877
- "pipelineOrchestrator.assignAudio": {
41570
+ "pipelineOrchestrator.applyDeviceSettingsPatch": {
40878
41571
  capName: "pipeline-orchestrator",
40879
41572
  capScope: "system",
40880
41573
  addonId: null,
40881
41574
  access: "create"
40882
41575
  },
40883
- "pipelineOrchestrator.assignPipeline": {
41576
+ "pipelineOrchestrator.assignAudio": {
40884
41577
  capName: "pipeline-orchestrator",
40885
41578
  capScope: "system",
40886
41579
  addonId: null,
40887
41580
  access: "create"
40888
41581
  },
40889
- "pipelineOrchestrator.deleteTemplate": {
41582
+ "pipelineOrchestrator.assignPipeline": {
40890
41583
  capName: "pipeline-orchestrator",
40891
41584
  capScope: "system",
40892
41585
  addonId: null,
40893
- access: "delete"
41586
+ access: "create"
40894
41587
  },
40895
41588
  "pipelineOrchestrator.getAgentLoad": {
40896
41589
  capName: "pipeline-orchestrator",
@@ -40982,6 +41675,12 @@ Object.freeze({
40982
41675
  addonId: null,
40983
41676
  access: "view"
40984
41677
  },
41678
+ "pipelineOrchestrator.getEffectiveShares": {
41679
+ capName: "pipeline-orchestrator",
41680
+ capScope: "system",
41681
+ addonId: null,
41682
+ access: "view"
41683
+ },
40985
41684
  "pipelineOrchestrator.getGlobalMetrics": {
40986
41685
  capName: "pipeline-orchestrator",
40987
41686
  capScope: "system",
@@ -41018,19 +41717,19 @@ Object.freeze({
41018
41717
  addonId: null,
41019
41718
  access: "view"
41020
41719
  },
41021
- "pipelineOrchestrator.getReconcileFromDiskStatus": {
41720
+ "pipelineOrchestrator.getPlacementStats": {
41022
41721
  capName: "pipeline-orchestrator",
41023
41722
  capScope: "system",
41024
41723
  addonId: null,
41025
41724
  access: "view"
41026
41725
  },
41027
- "pipelineOrchestrator.listAgentSettings": {
41726
+ "pipelineOrchestrator.getReconcileFromDiskStatus": {
41028
41727
  capName: "pipeline-orchestrator",
41029
41728
  capScope: "system",
41030
41729
  addonId: null,
41031
41730
  access: "view"
41032
41731
  },
41033
- "pipelineOrchestrator.listTemplates": {
41732
+ "pipelineOrchestrator.listAgentSettings": {
41034
41733
  capName: "pipeline-orchestrator",
41035
41734
  capScope: "system",
41036
41735
  addonId: null,
@@ -41042,6 +41741,12 @@ Object.freeze({
41042
41741
  addonId: null,
41043
41742
  access: "create"
41044
41743
  },
41744
+ "pipelineOrchestrator.planAutoTune": {
41745
+ capName: "pipeline-orchestrator",
41746
+ capScope: "system",
41747
+ addonId: null,
41748
+ access: "view"
41749
+ },
41045
41750
  "pipelineOrchestrator.rebalance": {
41046
41751
  capName: "pipeline-orchestrator",
41047
41752
  capScope: "system",
@@ -41084,12 +41789,6 @@ Object.freeze({
41084
41789
  addonId: null,
41085
41790
  access: "create"
41086
41791
  },
41087
- "pipelineOrchestrator.saveTemplate": {
41088
- capName: "pipeline-orchestrator",
41089
- capScope: "system",
41090
- addonId: null,
41091
- access: "create"
41092
- },
41093
41792
  "pipelineOrchestrator.setAgentCapabilities": {
41094
41793
  capName: "pipeline-orchestrator",
41095
41794
  capScope: "system",
@@ -41102,12 +41801,6 @@ Object.freeze({
41102
41801
  addonId: null,
41103
41802
  access: "create"
41104
41803
  },
41105
- "pipelineOrchestrator.setAgentDetectWeight": {
41106
- capName: "pipeline-orchestrator",
41107
- capScope: "system",
41108
- addonId: null,
41109
- access: "create"
41110
- },
41111
41804
  "pipelineOrchestrator.setAgentInferenceDevices": {
41112
41805
  capName: "pipeline-orchestrator",
41113
41806
  capScope: "system",
@@ -41144,6 +41837,12 @@ Object.freeze({
41144
41837
  addonId: null,
41145
41838
  access: "create"
41146
41839
  },
41840
+ "pipelineOrchestrator.setCameraStepSettings": {
41841
+ capName: "pipeline-orchestrator",
41842
+ capScope: "system",
41843
+ addonId: null,
41844
+ access: "create"
41845
+ },
41147
41846
  "pipelineOrchestrator.setCameraStepToggle": {
41148
41847
  capName: "pipeline-orchestrator",
41149
41848
  capScope: "system",
@@ -41162,25 +41861,37 @@ Object.freeze({
41162
41861
  addonId: null,
41163
41862
  access: "create"
41164
41863
  },
41864
+ "pipelineOrchestrator.setLoadBalancingShares": {
41865
+ capName: "pipeline-orchestrator",
41866
+ capScope: "system",
41867
+ addonId: null,
41868
+ access: "create"
41869
+ },
41165
41870
  "pipelineOrchestrator.setPipelineDevicePin": {
41166
41871
  capName: "pipeline-orchestrator",
41167
41872
  capScope: "system",
41168
41873
  addonId: null,
41169
41874
  access: "create"
41170
41875
  },
41171
- "pipelineOrchestrator.unassignAudio": {
41876
+ "pipelineOrchestrator.setShareSource": {
41172
41877
  capName: "pipeline-orchestrator",
41173
41878
  capScope: "system",
41174
41879
  addonId: null,
41175
41880
  access: "create"
41176
41881
  },
41177
- "pipelineOrchestrator.unassignPipeline": {
41882
+ "pipelineOrchestrator.suggestShares": {
41883
+ capName: "pipeline-orchestrator",
41884
+ capScope: "system",
41885
+ addonId: null,
41886
+ access: "view"
41887
+ },
41888
+ "pipelineOrchestrator.unassignAudio": {
41178
41889
  capName: "pipeline-orchestrator",
41179
41890
  capScope: "system",
41180
41891
  addonId: null,
41181
41892
  access: "create"
41182
41893
  },
41183
- "pipelineOrchestrator.updateTemplate": {
41894
+ "pipelineOrchestrator.unassignPipeline": {
41184
41895
  capName: "pipeline-orchestrator",
41185
41896
  capScope: "system",
41186
41897
  addonId: null,
@@ -42620,12 +43331,6 @@ Object.freeze({
42620
43331
  addonId: null,
42621
43332
  access: "view"
42622
43333
  },
42623
- "streamBroker.pullFrameHandles": {
42624
- capName: "stream-broker",
42625
- capScope: "system",
42626
- addonId: null,
42627
- access: "view"
42628
- },
42629
43334
  "streamBroker.regenerateRtspToken": {
42630
43335
  capName: "stream-broker",
42631
43336
  capScope: "system",
@@ -42692,12 +43397,6 @@ Object.freeze({
42692
43397
  addonId: null,
42693
43398
  access: "create"
42694
43399
  },
42695
- "streamBroker.subscribeFrames": {
42696
- capName: "stream-broker",
42697
- capScope: "system",
42698
- addonId: null,
42699
- access: "create"
42700
- },
42701
43400
  "streamBroker.unassignProfile": {
42702
43401
  capName: "stream-broker",
42703
43402
  capScope: "system",
@@ -42710,12 +43409,6 @@ Object.freeze({
42710
43409
  addonId: null,
42711
43410
  access: "create"
42712
43411
  },
42713
- "streamBroker.unsubscribeFrames": {
42714
- capName: "stream-broker",
42715
- capScope: "system",
42716
- addonId: null,
42717
- access: "create"
42718
- },
42719
43412
  "streamCatalog.getCatalog": {
42720
43413
  capName: "stream-catalog",
42721
43414
  capScope: "device",
@@ -43010,18 +43703,36 @@ Object.freeze({
43010
43703
  addonId: null,
43011
43704
  access: "delete"
43012
43705
  },
43706
+ "userManagement.findUserByExternalIdentity": {
43707
+ capName: "user-management",
43708
+ capScope: "system",
43709
+ addonId: null,
43710
+ access: "view"
43711
+ },
43013
43712
  "userManagement.getTotpStatus": {
43014
43713
  capName: "user-management",
43015
43714
  capScope: "system",
43016
43715
  addonId: null,
43017
43716
  access: "view"
43018
43717
  },
43718
+ "userManagement.linkExternalIdentity": {
43719
+ capName: "user-management",
43720
+ capScope: "system",
43721
+ addonId: null,
43722
+ access: "create"
43723
+ },
43019
43724
  "userManagement.listApiKeys": {
43020
43725
  capName: "user-management",
43021
43726
  capScope: "system",
43022
43727
  addonId: null,
43023
43728
  access: "view"
43024
43729
  },
43730
+ "userManagement.listExternalIdentities": {
43731
+ capName: "user-management",
43732
+ capScope: "system",
43733
+ addonId: null,
43734
+ access: "view"
43735
+ },
43025
43736
  "userManagement.listOauthSessions": {
43026
43737
  capName: "user-management",
43027
43738
  capScope: "system",
@@ -43100,6 +43811,12 @@ Object.freeze({
43100
43811
  addonId: null,
43101
43812
  access: "create"
43102
43813
  },
43814
+ "userManagement.unlinkExternalIdentity": {
43815
+ capName: "user-management",
43816
+ capScope: "system",
43817
+ addonId: null,
43818
+ access: "delete"
43819
+ },
43103
43820
  "userManagement.updateUser": {
43104
43821
  capName: "user-management",
43105
43822
  capScope: "system",
@@ -43412,6 +44129,12 @@ Object.freeze({
43412
44129
  addonId: null,
43413
44130
  access: "create"
43414
44131
  },
44132
+ "webrtcSession.applyDownlinkProbe": {
44133
+ capName: "webrtc-session",
44134
+ capScope: "device",
44135
+ addonId: null,
44136
+ access: "create"
44137
+ },
43415
44138
  "webrtcSession.closeSession": {
43416
44139
  capName: "webrtc-session",
43417
44140
  capScope: "device",
@@ -45223,11 +45946,6 @@ Object.freeze({
45223
45946
  form: "single",
45224
45947
  optional: false
45225
45948
  }],
45226
- "decoder.createSession": [{
45227
- name: "deviceId",
45228
- form: "single",
45229
- optional: true
45230
- }],
45231
45949
  "detectionPipeline.applyDeviceSettingsPatch": [{
45232
45950
  name: "deviceId",
45233
45951
  form: "single",
@@ -46438,6 +47156,11 @@ Object.freeze({
46438
47156
  form: "single",
46439
47157
  optional: false
46440
47158
  }],
47159
+ "pipelineAnalytics.setRetrainFrameComplete": [{
47160
+ name: "deviceId",
47161
+ form: "single",
47162
+ optional: false
47163
+ }],
46441
47164
  "pipelineAnalytics.setTrackFlags": [{
46442
47165
  name: "deviceId",
46443
47166
  form: "single",
@@ -46458,6 +47181,11 @@ Object.freeze({
46458
47181
  form: "single",
46459
47182
  optional: false
46460
47183
  }],
47184
+ "pipelineExecutor.clearModelBoundDeviceOverrides": [{
47185
+ name: "deviceIds",
47186
+ form: "array",
47187
+ optional: true
47188
+ }],
46461
47189
  "pipelineExecutor.runPipeline": [{
46462
47190
  name: "deviceId",
46463
47191
  form: "single",
@@ -46563,6 +47291,11 @@ Object.freeze({
46563
47291
  form: "single",
46564
47292
  optional: false
46565
47293
  }],
47294
+ "pipelineOrchestrator.setCameraStepSettings": [{
47295
+ name: "deviceId",
47296
+ form: "single",
47297
+ optional: false
47298
+ }],
46566
47299
  "pipelineOrchestrator.setCameraStepToggle": [{
46567
47300
  name: "deviceId",
46568
47301
  form: "single",
@@ -47334,6 +48067,11 @@ Object.freeze({
47334
48067
  form: "single",
47335
48068
  optional: false
47336
48069
  }],
48070
+ "webrtcSession.applyDownlinkProbe": [{
48071
+ name: "deviceId",
48072
+ form: "single",
48073
+ optional: false
48074
+ }],
47337
48075
  "webrtcSession.closeSession": [{
47338
48076
  name: "deviceId",
47339
48077
  form: "single",
@@ -47563,6 +48301,8 @@ new Map(Object.entries({
47563
48301
  "detection-blind": "device-events",
47564
48302
  "node-online": "system",
47565
48303
  "node-offline": "system",
48304
+ "node-restarting": "system",
48305
+ "node-updating": "system",
47566
48306
  "node-inference-unavailable": "system",
47567
48307
  "addon-crash-loop": "system",
47568
48308
  "addon-update-available": "system",
@@ -47640,18 +48380,21 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
47640
48380
  kinds: [
47641
48381
  "node-offline",
47642
48382
  "node-online",
48383
+ "node-restarting",
47643
48384
  "node-inference-unavailable"
47644
48385
  ]
47645
48386
  },
47646
48387
  {
47647
48388
  id: "addons",
47648
48389
  family: "system",
47649
- label: "Addons",
47650
- kinds: [
47651
- "addon-crash-loop",
47652
- "addon-update-available",
47653
- "addon-updated"
47654
- ]
48390
+ label: "Addons stopped",
48391
+ kinds: ["addon-crash-loop"]
48392
+ },
48393
+ {
48394
+ id: "addon-updates",
48395
+ family: "system",
48396
+ label: "Addon updates",
48397
+ kinds: ["addon-update-available", "addon-updated"]
47655
48398
  },
47656
48399
  {
47657
48400
  id: "updates",
@@ -47659,6 +48402,7 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
47659
48402
  label: "Server & container updates",
47660
48403
  kinds: [
47661
48404
  "server-update-available",
48405
+ "node-updating",
47662
48406
  "server-updated",
47663
48407
  "wrapper-update-available"
47664
48408
  ]
@@ -47806,18 +48550,21 @@ var STATE_SUMMARY_SECTION_VARS = [
47806
48550
  kinds: [
47807
48551
  "node-offline",
47808
48552
  "node-online",
48553
+ "node-restarting",
47809
48554
  "node-inference-unavailable"
47810
48555
  ]
47811
48556
  },
47812
48557
  {
47813
48558
  name: "summaryAddons",
47814
- label: "Summary: addons",
47815
- example: "@camstack/addon-recorder 1.2.3 → 1.2.4",
47816
- kinds: [
47817
- "addon-crash-loop",
47818
- "addon-update-available",
47819
- "addon-updated"
47820
- ]
48559
+ label: "Summary: addons stopped",
48560
+ example: "hub — recorder stopped after repeated crashes",
48561
+ kinds: ["addon-crash-loop"]
48562
+ },
48563
+ {
48564
+ name: "summaryAddonUpdates",
48565
+ label: "Summary: addon updates",
48566
+ example: "hub:\n• @camstack/addon-recorder 1.2.3 → 1.2.4",
48567
+ kinds: ["addon-update-available", "addon-updated"]
47821
48568
  },
47822
48569
  {
47823
48570
  name: "summaryUpdates",
@@ -47825,6 +48572,7 @@ var STATE_SUMMARY_SECTION_VARS = [
47825
48572
  example: "server 1.2.377 → 1.2.378",
47826
48573
  kinds: [
47827
48574
  "server-update-available",
48575
+ "node-updating",
47828
48576
  "server-updated",
47829
48577
  "wrapper-update-available"
47830
48578
  ]
@@ -47857,7 +48605,7 @@ var STATE_SUMMARY_VARS = [
47857
48605
  {
47858
48606
  name: "summarySection",
47859
48607
  label: "Summary: this section",
47860
- description: "The section a per-section summary row is about (D698); on a summary sent as one message, every section it reports, comma-separated.",
48608
+ description: "The section a per-section summary row is about; on a summary sent as one message, every section it reports, comma-separated.",
47861
48609
  example: "Batterie scariche",
47862
48610
  group: "system",
47863
48611
  families: ["rule"],
@@ -47901,6 +48649,7 @@ var STATE_SUMMARY_VARS = [
47901
48649
  [...RULE_BODY_ONLY],
47902
48650
  [...RULE_TEXT],
47903
48651
  ([...RULE_TEXT], [...DEVICE_EVENTS]),
48652
+ ([...RULE_TEXT], [...COMBINED_ALARM]),
47904
48653
  ([...RULE_TEXT], [...DEVICE_EVENTS]),
47905
48654
  ([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
47906
48655
  ([...RULE_TEXT], [...CONSUMABLE]),
@@ -47941,6 +48690,8 @@ var STATE_SUMMARY_VARS = [
47941
48690
  [...RULE_TEXT],
47942
48691
  [...RULE_TEXT],
47943
48692
  [...RULE_TEXT],
48693
+ [...RULE_TEXT],
48694
+ [...RULE_TEXT],
47944
48695
  ...STATE_SUMMARY_VARS
47945
48696
  ];
47946
48697
  new Set([
@@ -48461,4 +49212,83 @@ DEFAULT_NATIVE_LEASE_SETTINGS.admission;
48461
49212
  var MB = 1024 * 1024;
48462
49213
  1024 * MB, 3072 * MB;
48463
49214
  //#endregion
48464
- export { EventCategory as a, BaseAddon as i, networkAccessCapability as n, BOOT_RECOVERY_BACKOFF_MS as r, meshNetworkCapability as t };
49215
+ //#region src/auth-key-file.ts
49216
+ /**
49217
+ * Hand the Tailscale auth key to `tailscale up` without putting it on argv
49218
+ * or in the environment (D783).
49219
+ *
49220
+ * The CLI accepts `--auth-key=file:<path>` and reads the key from that file.
49221
+ * The key is written owner-only (0600) into a fresh owner-only (0700) temp
49222
+ * dir, the flag is handed to `run`, and the dir is removed when `run`
49223
+ * settles — success or failure. Error text is passed through
49224
+ * {@link scrubSecret} so a `Command failed: …` message can never carry it.
49225
+ */
49226
+ var REDACTED = "‹redacted›";
49227
+ async function withAuthKeyFile(authKey, run) {
49228
+ const dir = await node_fs_promises.mkdtemp(node_path.join(node_os.tmpdir(), "camstack-ts-"));
49229
+ try {
49230
+ await node_fs_promises.chmod(dir, 448);
49231
+ const file = node_path.join(dir, "authkey");
49232
+ await node_fs_promises.writeFile(file, authKey, { mode: 384 });
49233
+ return await run(`--auth-key=file:${file}`);
49234
+ } finally {
49235
+ await node_fs_promises.rm(dir, {
49236
+ recursive: true,
49237
+ force: true
49238
+ });
49239
+ }
49240
+ }
49241
+ /** Replace every occurrence of `secret` in `text`. Empty secrets are a no-op. */
49242
+ function scrubSecret(text, secret) {
49243
+ if (!secret) return text;
49244
+ return text.split(secret).join(REDACTED);
49245
+ }
49246
+ //#endregion
49247
+ Object.defineProperty(exports, "BOOT_RECOVERY_BACKOFF_MS", {
49248
+ enumerable: true,
49249
+ get: function() {
49250
+ return BOOT_RECOVERY_BACKOFF_MS;
49251
+ }
49252
+ });
49253
+ Object.defineProperty(exports, "BaseAddon", {
49254
+ enumerable: true,
49255
+ get: function() {
49256
+ return BaseAddon;
49257
+ }
49258
+ });
49259
+ Object.defineProperty(exports, "EventCategory", {
49260
+ enumerable: true,
49261
+ get: function() {
49262
+ return EventCategory;
49263
+ }
49264
+ });
49265
+ Object.defineProperty(exports, "__toESM", {
49266
+ enumerable: true,
49267
+ get: function() {
49268
+ return __toESM;
49269
+ }
49270
+ });
49271
+ Object.defineProperty(exports, "meshNetworkCapability", {
49272
+ enumerable: true,
49273
+ get: function() {
49274
+ return meshNetworkCapability;
49275
+ }
49276
+ });
49277
+ Object.defineProperty(exports, "networkAccessCapability", {
49278
+ enumerable: true,
49279
+ get: function() {
49280
+ return networkAccessCapability;
49281
+ }
49282
+ });
49283
+ Object.defineProperty(exports, "scrubSecret", {
49284
+ enumerable: true,
49285
+ get: function() {
49286
+ return scrubSecret;
49287
+ }
49288
+ });
49289
+ Object.defineProperty(exports, "withAuthKeyFile", {
49290
+ enumerable: true,
49291
+ get: function() {
49292
+ return withAuthKeyFile;
49293
+ }
49294
+ });