@camstack/addon-provider-rtsp 1.2.120 → 1.2.122

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/addon.js +1265 -542
  2. package/dist/addon.mjs +1265 -542
  3. package/package.json +1 -1
package/dist/addon.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import net from "node:net";
2
- //#region ../types/dist/event-category-BGmz_oxW.mjs
2
+ //#region ../types/dist/event-category-B_0XEcLF.mjs
3
3
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4
4
  EventCategory["SystemBoot"] = "system.boot";
5
5
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -500,15 +500,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
500
500
  EventCategory["AgentWsDisconnected"] = "agent.ws.disconnected";
501
501
  EventCategory["AgentBackupActivated"] = "agent.backup.activated";
502
502
  EventCategory["OrchestrationSettingsUpdated"] = "orchestration.settings-updated";
503
- /**
504
- * Per-agent hwaccel preference changed (user override set, cleared, or
505
- * re-probed). Observability event — decoders pull the current pref at
506
- * `createSession`, so running sessions keep their current backend until
507
- * they rotate naturally (camera add/remove, stream restart). Future
508
- * work can wire a listener in stream-broker that force-rotates live
509
- * sessions; for now this event powers logs + admin-UI toast feedback.
510
- */
511
- EventCategory["PipelineAgentHwaccelChanged"] = "pipeline.agent-hwaccel-changed";
512
503
  EventCategory["MotionAnalysis"] = "detection.motion-analysis";
513
504
  /** All raw motion zones from CCL before minArea filter — for UI debug overlay. */
514
505
  EventCategory["MotionZonesRaw"] = "detection.motion-zones-raw";
@@ -5379,7 +5370,7 @@ var ZodIssueCode = {
5379
5370
  var ZodFirstPartyTypeKind;
5380
5371
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5381
5372
  //#endregion
5382
- //#region ../types/dist/sleep-DXKLNFvA.mjs
5373
+ //#region ../types/dist/sleep-B0JG7-_F.mjs
5383
5374
  /**
5384
5375
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5385
5376
  * window to float samples (D455).
@@ -6745,32 +6736,12 @@ object({
6745
6736
  audioCodec: string().optional(),
6746
6737
  metadata: record(string(), unknown()).readonly().optional()
6747
6738
  });
6748
- var EncodedPacketSchema = object({
6749
- type: _enum(["video", "audio"]),
6750
- data: _instanceof(Uint8Array),
6751
- pts: number(),
6752
- dts: number(),
6753
- keyframe: boolean(),
6754
- codec: string()
6755
- });
6756
- var DecodedFrameSchema = object({
6757
- data: _instanceof(Uint8Array),
6758
- width: number(),
6759
- height: number(),
6760
- format: _enum([
6761
- "jpeg",
6762
- "rgb",
6763
- "bgr",
6764
- "yuv420",
6765
- "gray"
6766
- ]),
6767
- timestamp: number()
6768
- });
6769
6739
  /**
6770
6740
  * Wire schema for `FrameHandle` — a zero-pixel, serialisable reference to a
6771
6741
  * frame in a shared-memory ring (Phase 5 / D9). Mirrors the `FrameHandle` TS
6772
- * interface in `interfaces/frame-handle.ts` field-for-field so a decoder cap
6773
- * method (`pullHandles`) can carry handles over tRPC / Moleculer.
6742
+ * interface in `interfaces/frame-handle.ts` field-for-field so a cap method
6743
+ * (the runner's native-crop and pipeline-executor inputs) can carry handles
6744
+ * over tRPC / Moleculer.
6774
6745
  *
6775
6746
  * The `satisfies` assertion below pins this schema to the interface: if a
6776
6747
  * field is added to / removed from `FrameHandle` without a matching schema
@@ -6796,50 +6767,6 @@ var FrameHandleSchema = object({
6796
6767
  slotCount: number().int().positive()
6797
6768
  });
6798
6769
  /**
6799
- * Pixel format a frame-handle subscriber can request from the broker
6800
- * (Phase 5 / D9). The packed, raster subset of `FrameFormat` — the formats a
6801
- * `frameSink: 'shm'` decoder session can write into a `FrameRing` slot.
6802
- * `jpeg` is excluded: a variable-length stream is not a fixed-stride ring
6803
- * payload, and no decoded-frame consumer requests it over the shm plane.
6804
- */
6805
- var FrameHandleFormatSchema = _enum([
6806
- "rgb",
6807
- "bgr",
6808
- "yuv420",
6809
- "gray"
6810
- ]);
6811
- /**
6812
- * Input for `stream-broker.subscribeFrames` (Phase 5 / D9). A consumer asks the
6813
- * broker for a `FrameHandle` stream of one `format`; the broker maintains one
6814
- * shared-memory ring per `(brokerId, format)` actually requested, so a `gray`
6815
- * subscriber (motion) and an `rgb` subscriber (detection) each read the format
6816
- * they asked for with no broker-side conversion.
6817
- */
6818
- var SubscribeFramesInputSchema = object({
6819
- brokerId: string(),
6820
- format: FrameHandleFormatSchema,
6821
- /**
6822
- * Optional reader-side cadence hint in frames per second. The broker does
6823
- * NOT throttle — latest-wins ring reads drop frames implicitly for a slow
6824
- * consumer. The value is echoed back in `SubscribeFramesResult.maxFps` so
6825
- * the consumer can pace its own `pullFrameHandles` polling.
6826
- */
6827
- maxFps: number().positive().optional(),
6828
- /** Short caller-identity tag (`motion`, `detection`, …) for diagnostics. */
6829
- tag: string().optional()
6830
- });
6831
- /**
6832
- * Result of `stream-broker.subscribeFrames`. The consumer then polls
6833
- * `pullFrameHandles({ subscriptionId, maxCount })` and feeds each returned
6834
- * `FrameHandle` to a `FrameRingReader`.
6835
- */
6836
- var SubscribeFramesResultSchema = object({
6837
- /** Opaque id the consumer passes to `pullFrameHandles` / `unsubscribeFrames`. */
6838
- subscriptionId: string(),
6839
- /** Reader-side cadence hint (frames/s) — echoes `SubscribeFramesInput.maxFps`. */
6840
- maxFps: number().nonnegative()
6841
- });
6842
- /**
6843
6770
  * Wire schema for a decoded audio chunk (Phase 5 / D9). Mirrors the
6844
6771
  * `DecodedAudioChunk` TS interface in `interfaces/stream-broker.ts`: PCM
6845
6772
  * sample bytes plus the track parameters a consumer needs to interpret them.
@@ -6847,8 +6774,8 @@ var SubscribeFramesResultSchema = object({
6847
6774
  * Audio chunks are tiny (a ~500ms AudioCodecSession window is a few KB of
6848
6775
  * Float32 PCM), so unlike video frames they ship their bytes INLINE over
6849
6776
  * tRPC / Moleculer — no shared-memory plane. `data` is typed `Uint8Array`
6850
- * (the wire-serialisable supertype of `Buffer`) to match `DecodedFrameSchema`
6851
- * / `EncodedPacketSchema`'s precedent; a `Buffer` is assignable to it.
6777
+ * (the wire-serialisable supertype of `Buffer`); a `Buffer` is assignable to
6778
+ * it.
6852
6779
  */
6853
6780
  var AudioChunkFormatSchema = _enum(AUDIO_CHUNK_FORMATS);
6854
6781
  var DecodedAudioChunkSchema = object({
@@ -6866,11 +6793,10 @@ var DecodedAudioChunkSchema = object({
6866
6793
  format: AudioChunkFormatSchema.optional()
6867
6794
  });
6868
6795
  /**
6869
- * Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9). The
6870
- * handle-free, ship-bytes-inline analogue of `subscribeFrames`: a consumer
6871
- * asks the broker for the decoded audio-chunk stream of one broker; the
6872
- * broker keeps a per-subscription bounded FIFO queue the consumer drains via
6873
- * `pullAudioChunks`.
6796
+ * Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9). Audio ships
6797
+ * its bytes inline: a consumer asks the broker for the decoded audio-chunk
6798
+ * stream of one broker; the broker keeps a per-subscription bounded FIFO queue
6799
+ * the consumer drains via `pullAudioChunks`.
6874
6800
  */
6875
6801
  var SubscribeAudioChunksInputSchema = object({
6876
6802
  brokerId: string(),
@@ -6901,9 +6827,7 @@ var BrokerStatsSchema = object({
6901
6827
  "stopped"
6902
6828
  ]),
6903
6829
  inputFps: number(),
6904
- decodeFps: number(),
6905
6830
  encodedSubscribers: number(),
6906
- decodedSubscribers: number(),
6907
6831
  uptimeMs: number(),
6908
6832
  bitrateKbps: number(),
6909
6833
  idrIntervalMs: number(),
@@ -6916,14 +6840,6 @@ var BrokerStatsSchema = object({
6916
6840
  preBufferMs: number(),
6917
6841
  preBufferPackets: number(),
6918
6842
  /**
6919
- * Moleculer node id of the decoder provider currently servicing this
6920
- * stream's decoded subscribers. `null` until the deferred decoder is
6921
- * created (no decoded clients yet, or codec not detected). Surfaces the
6922
- * runtime decoder placement so the UI can show "Decoder: <agent>" without
6923
- * a separate cap call per broker.
6924
- */
6925
- decoderNodeId: string().nullable(),
6926
- /**
6927
6843
  * Detected audio track parameters from the RTSP DESCRIBE / SDP. `null`
6928
6844
  * when the stream has no audio track or the broker is in cold start.
6929
6845
  * `supported = false` means the codec was detected but the local
@@ -10291,70 +10207,6 @@ var StorageLocationDeclarationSchema = object({
10291
10207
  "backup"
10292
10208
  ]).optional()
10293
10209
  });
10294
- var DecoderStatsSchema = object({
10295
- inputFps: number(),
10296
- outputFps: number(),
10297
- avgDecodeTimeMs: number(),
10298
- droppedFrames: number(),
10299
- /**
10300
- * Pull-mode adaptive-fps telemetry (optional — only pull sessions run the
10301
- * lag-driven controller; push sessions omit these). `lagMs` is the EWMA of
10302
- * the decoder's real-time drift (rising = falling behind live); `adaptiveFps`
10303
- * is the current lag-throttled emit rate (≤ `effectiveFps` ceiling).
10304
- */
10305
- lagMs: number().optional(),
10306
- effectiveFps: number().optional(),
10307
- adaptiveFps: number().optional()
10308
- });
10309
- var DecoderSessionConfigSchema = object({
10310
- codec: string(),
10311
- maxFps: number().default(0),
10312
- outputFormat: _enum([
10313
- "jpeg",
10314
- "rgb",
10315
- "bgr",
10316
- "yuv420",
10317
- "gray"
10318
- ]).default("jpeg"),
10319
- scale: number().default(1),
10320
- width: number().optional(),
10321
- height: number().optional(),
10322
- /**
10323
- * Identifier of the camera this decoder session serves. Optional
10324
- * because the cap is generic (any caller could request decode), but
10325
- * stream-broker passes it so decoder logs include `deviceId` for
10326
- * per-camera filtering when diagnosing failures (e.g. node-av
10327
- * sendPacket errors on a single hung camera).
10328
- */
10329
- deviceId: number().int().nonnegative().optional(),
10330
- /**
10331
- * Free-form tag for log scoping. Stream-broker uses
10332
- * `broker:<deviceId>/<profile>`. Decoder session logger surfaces it
10333
- * on every line so `grep tag=broker:5/high` filters one camera
10334
- * profile cleanly.
10335
- */
10336
- tag: string().optional(),
10337
- /**
10338
- * Where the session delivers decoded frames (Phase 5 / D9):
10339
- *
10340
- * - `'callback'` (default) — the legacy pixel path: decoded frames are
10341
- * buffered as `DecodedFrame`s and drained via `pullFrames`.
10342
- * - `'shm'` — the shared-memory frame plane: decoded frames are written
10343
- * into an OS shared-memory ring and drained as zero-pixel
10344
- * `FrameHandle`s via `pullHandles`. A session is one mode or the
10345
- * other — `pullFrames` returns nothing for an `'shm'` session and
10346
- * `pullHandles` returns nothing for a `'callback'` session.
10347
- */
10348
- frameSink: _enum(["callback", "shm"]).default("callback"),
10349
- /**
10350
- * Per-camera decoder DEBUG facility. When `true`, a pull-mode session emits
10351
- * a throttled (~1Hz) structured `decoder debug` line (effective/adaptive fps,
10352
- * real-time lag, dropped-frame delta, avg decode time, hwaccel). Mirrors the
10353
- * stream-broker's `streamingDebug` gate — off by default so production logs
10354
- * stay quiet and the emit path pays zero per-frame cost when disabled.
10355
- */
10356
- debug: boolean().optional()
10357
- });
10358
10210
  /**
10359
10211
  * Per-component log CHANNELS — the gate a hot path consults, and the registry
10360
10212
  * an addon declares its channels in.
@@ -10497,6 +10349,26 @@ var ClipSearchStrictnessSchema = _enum([
10497
10349
  "balanced",
10498
10350
  "strict"
10499
10351
  ]);
10352
+ /** Steps whose effect a root label can BE. */
10353
+ var LABEL_SUPPLY_STEP_IDS = [
10354
+ "animal-classifier",
10355
+ "vehicle-classifier",
10356
+ "package-detection"
10357
+ ];
10358
+ /** Steps whose box a root detection can BE. */
10359
+ var CROP_SUPPLY_STEP_IDS = ["plate-detection", "face-detection"];
10360
+ /**
10361
+ * Steps whose per-detection MASK a root detection can carry (D737). The live
10362
+ * mask step is `segmentation` — a frame-plane refiner that runs its own model
10363
+ * once per detection crop. (`instance-segmentation` is a dormant step id that
10364
+ * no camera tree carries.)
10365
+ */
10366
+ var MASK_SUPPLY_STEP_IDS = ["segmentation"];
10367
+ [
10368
+ ...LABEL_SUPPLY_STEP_IDS,
10369
+ ...CROP_SUPPLY_STEP_IDS,
10370
+ ...MASK_SUPPLY_STEP_IDS
10371
+ ];
10500
10372
  var MODEL_FORMATS = [
10501
10373
  "onnx",
10502
10374
  "coreml",
@@ -10525,7 +10397,53 @@ var ModelFormatEntrySchema = object({
10525
10397
  /** Multi-file payload (directory members or sibling files). */
10526
10398
  files: array(string()).readonly().optional(),
10527
10399
  /** Runtime(s) that can use this format. If omitted, inferred from ModelFormat key */
10528
- runtimes: array(_enum(["python"])).readonly().optional()
10400
+ runtimes: array(_enum(["python"])).readonly().optional(),
10401
+ /**
10402
+ * Content revision of the artefact, for one hosted OFF the CamStack mirror.
10403
+ * A format on the mirror leaves it unset: its revision (the sha256 of its
10404
+ * weight file) comes from the downloader's generated table, kept in step
10405
+ * with the mirror by `scripts/check-hosted-model-revisions.ts` (D744). A
10406
+ * node records the revision it downloaded next to the file
10407
+ * (`<file>.revision`); a copy with no record or a different one is stale
10408
+ * unless its weight file hashes to the revision, and a stale copy is
10409
+ * downloaded again, the old one serving until the new one is complete. No
10410
+ * revision at all ⇒ a file on disk is current, whatever it holds (D743).
10411
+ */
10412
+ revision: string().min(1).optional()
10413
+ });
10414
+ /**
10415
+ * What a node holds for one (model, format) (D746). `current` is a complete
10416
+ * copy at its catalog revision — exactly what `downloaded: true` means.
10417
+ * `stale` is bytes on disk that are not (yet) proven current under D743/D744:
10418
+ * no or a different revision record, or a missing sibling. `missing` is no
10419
+ * copy. `downloaded` alone folds `stale` into "not downloaded", which hid
10420
+ * reclaimable bytes and a copy about to be replaced.
10421
+ */
10422
+ var ModelOnDiskStateSchema = _enum([
10423
+ "current",
10424
+ "stale",
10425
+ "missing"
10426
+ ]);
10427
+ /**
10428
+ * The numeric precision of one format's BUILD (D746) — reported only when the
10429
+ * build states it (file-name token, an INT8 variant, an EdgeTPU compile, a
10430
+ * CamStack Core ML export). Absent means "not stated", never "fp32".
10431
+ */
10432
+ var ModelFormatPrecisionSchema = _enum([
10433
+ "fp32",
10434
+ "fp16",
10435
+ "int8"
10436
+ ]);
10437
+ /**
10438
+ * One format of one model as a node's `pipelineExecutor.getSchema` reports it.
10439
+ * `onDisk` / `precision` are optional for version skew: a runner that predates
10440
+ * them omits them, and a reader falls back to `downloaded`.
10441
+ */
10442
+ var PipelineModelFormatStatusSchema = object({
10443
+ downloaded: boolean(),
10444
+ sizeMB: number(),
10445
+ onDisk: ModelOnDiskStateSchema.optional(),
10446
+ precision: ModelFormatPrecisionSchema.optional()
10529
10447
  });
10530
10448
  /**
10531
10449
  * Extra file that must be downloaded alongside the model (e.g., labels JSON, dict.txt).
@@ -10566,11 +10484,11 @@ var ModelVariantGroupSchema = object({
10566
10484
  /** Quantization axis. Omit ⇒ the fp32 base build. */
10567
10485
  precision: _enum(["fp32", "int8"]).optional(),
10568
10486
  /**
10569
- * Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
10570
- * latency-optimized export (e.g. ReLU-activation variant) — the slot the
10571
- * future performance variants plug into.
10487
+ * Training / latency-variant axis. Omit ⇒ the standard build. `test` marks
10488
+ * an alternate training of the same family (Scrypted `relu_test`); chip
10489
+ * label is "Test".
10572
10490
  */
10573
- optimization: _enum(["standard", "fast"]).optional(),
10491
+ optimization: _enum(["standard", "test"]).optional(),
10574
10492
  /**
10575
10493
  * Input-resolution axis (square input side, px). Omit ⇒ the family's native
10576
10494
  * resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
@@ -10593,9 +10511,10 @@ var ModelProviderIdSchema = _enum([
10593
10511
  * are per upstream. A persisted custom-model row written when this field was a
10594
10512
  * string still parses — the string is lifted into `{ weights }`.
10595
10513
  *
10596
- * Every licence surface (the admin "Models and licenses" page,
10597
- * `THIRD_PARTY_MODELS.md`, the Hugging Face model table) is GENERATED from
10598
- * these records by `scripts/gen-model-licenses.ts` (D661).
10514
+ * Every machine licence surface (`THIRD_PARTY_MODELS.md`, the Hugging Face
10515
+ * model table) is GENERATED from these records by
10516
+ * `scripts/gen-model-licenses.ts` (D661). Operator-facing docs live in
10517
+ * `camstack/docs` → `/docs/detection/models`.
10599
10518
  */
10600
10519
  var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { weights: value } : value, object({
10601
10520
  /** SPDX id of the WEIGHTS' terms, a `LicenseRef-*` for non-SPDX terms, or `UNKNOWN`. */
@@ -10628,6 +10547,46 @@ var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { wei
10628
10547
  /** True when the weights or their data forbid commercial use. */
10629
10548
  nonCommercial: boolean().optional()
10630
10549
  }));
10550
+ /**
10551
+ * One step a ROOT detector can supply from its own output (D730) — see
10552
+ * `ModelCatalogEntry.suppliesSteps`.
10553
+ *
10554
+ * - `label`: the root's raw class IS the step's answer. `labelToEffect` maps
10555
+ * the root's label to the step's vocabulary; `uncovered` is the vocabulary
10556
+ * the root cannot produce (shown as unavailable, never a blocker).
10557
+ * - `crop`: the root draws the box the step would have found (`license_plate`
10558
+ * for plate-detection, `face` for face-detection). The box becomes a detail
10559
+ * child of the `parentMacro` detection that contains it — never a track.
10560
+ * - `mask`: the root's decode emits an instance mask with every detection (a
10561
+ * YOLO26-seg root, D737) — the `segmentation` step's result, carried on the
10562
+ * detection in the shape that step produces. Derived from the model's
10563
+ * postprocessor on read, never stored by an import.
10564
+ */
10565
+ var RootStepSupplySchema = discriminatedUnion("kind", [
10566
+ object({
10567
+ kind: literal("label"),
10568
+ stepId: _enum(LABEL_SUPPLY_STEP_IDS),
10569
+ labelToEffect: record(string(), string()),
10570
+ uncovered: array(string()).readonly()
10571
+ }),
10572
+ object({
10573
+ kind: literal("crop"),
10574
+ stepId: _enum(CROP_SUPPLY_STEP_IDS),
10575
+ rootLabels: array(string()).readonly(),
10576
+ parentMacro: _enum(["vehicle", "person"]),
10577
+ childClass: _enum(["plate", "face"]),
10578
+ /**
10579
+ * The root's smaller input side, stamped on read by `rootSuppliesOf` from
10580
+ * the model entry — what a step's `minRootInputPx` gate judges. Never
10581
+ * stored by an import.
10582
+ */
10583
+ rootInputPx: number().int().positive().optional()
10584
+ }),
10585
+ object({
10586
+ kind: literal("mask"),
10587
+ stepId: _enum(MASK_SUPPLY_STEP_IDS)
10588
+ })
10589
+ ]);
10631
10590
  var ModelCatalogEntrySchema = object({
10632
10591
  id: string(),
10633
10592
  name: string(),
@@ -10693,6 +10652,35 @@ var ModelCatalogEntrySchema = object({
10693
10652
  */
10694
10653
  defaultConfidence: number().min(0).max(1).optional(),
10695
10654
  /**
10655
+ * Per-MODEL default of the per-class confidence floors (`minConfidence<Macro>`
10656
+ * on a detector step), keyed by macro class: `{ person: 0.45 }`. A class
10657
+ * absent here runs at the step slider's global default. The same row shape
10658
+ * the floor measurement produces (`model-floors.json`: modelId → floors), so
10659
+ * a measured table is copied in as-is. An operator override is bound to the
10660
+ * model it was made for and does not survive a model change (D738). A custom
10661
+ * / imported model may declare it; without it, the global defaults apply.
10662
+ */
10663
+ defaultClassFloors: record(string(), number().min(0).max(1)).optional(),
10664
+ /**
10665
+ * The inference precision this model's OpenVINO IR needs on an Intel GPU.
10666
+ * Absent ⇒ the device default (f16 on a GPU). Set to `'f32'` for an FP32 IR
10667
+ * that produces invalid output at f16 — measured 2026-10-07 for YOLO26
10668
+ * base IRs (`yolo26s`: 0 true / 146 false positives; `yolo26m*`: NaN
10669
+ * scores) on the Core Ultra iGPU and the N100. Threaded to the pool as
10670
+ * `PoolModelConfig.gpuInferencePrecision`; the pool sets
10671
+ * INFERENCE_PRECISION_HINT on a GPU only. Costs ~60% latency on the GPU.
10672
+ */
10673
+ gpuInferencePrecision: _enum(["f32", "f16"]).optional(),
10674
+ /**
10675
+ * ROOT detectors only: per supplied step (`animal-classifier`, …), the
10676
+ * minimum DETECTION score from which this root's own fine label (species,
10677
+ * vehicle type — D736 root supply) is taken (D741). Below it the detection
10678
+ * keeps its macro class without the fine label. `1` = never take it from
10679
+ * this root. Absent ⇒ no floor beyond the macro floor. The supplied step's
10680
+ * `minConfidence` slider, bound to the ROOT model, overrides it.
10681
+ */
10682
+ suppliedLabelFloors: record(string(), number().min(0).max(1)).optional(),
10683
+ /**
10696
10684
  * When true, the executor produces a landmark-aligned crop (similarity warp
10697
10685
  * onto the canonical template) before this step runs, instead of a plain
10698
10686
  * axis-aligned bbox crop. Required for face-recognition embedders (ArcFace):
@@ -10754,6 +10742,16 @@ var ModelCatalogEntrySchema = object({
10754
10742
  */
10755
10743
  classMap: DetectionCatalogClassMapSchema.optional(),
10756
10744
  /**
10745
+ * The pipeline steps this ROOT detector can supply from its own output
10746
+ * (D730): its labels name a step's effect (`deer` for `animal-classifier`)
10747
+ * or draw a step's box (`license_plate` for `plate-detection`). Computed at
10748
+ * import from THIS model's labelmap by `deriveRootSupplies`, never written
10749
+ * by hand and never assumed per family; a row without it is derived on read
10750
+ * (`rootSuppliesOf`). Whether a camera uses it is the step's own
10751
+ * `useRootModel` flag (`resolveRootSupply`).
10752
+ */
10753
+ suppliesSteps: array(RootStepSupplySchema).readonly().optional(),
10754
+ /**
10757
10755
  * The model's CLIP feature-space contract (text encoder, dimension, vector
10758
10756
  * index, token window, search floor) — see `clip-model.ts`. Present ONLY on a
10759
10757
  * CLIP image encoder; its absence is what "not a CLIP model" means to the
@@ -12355,13 +12353,6 @@ var BrokerRtspClientSchema = object({
12355
12353
  lastRtpAt: number(),
12356
12354
  bytesSent: number()
12357
12355
  });
12358
- var BrokerDecodedClientSchema = object({
12359
- tag: string(),
12360
- subscribedAt: number(),
12361
- maxFps: number(),
12362
- framesDelivered: number(),
12363
- framesDropped: number()
12364
- });
12365
12356
  var BrokerAudioClientSchema = object({
12366
12357
  tag: string(),
12367
12358
  subscribedAt: number(),
@@ -12453,7 +12444,6 @@ var BrokerEncodedClientSchema = object({
12453
12444
  });
12454
12445
  var BrokerClientsSchema = object({
12455
12446
  rtsp: array(BrokerRtspClientSchema).readonly(),
12456
- decoded: array(BrokerDecodedClientSchema).readonly(),
12457
12447
  audio: array(BrokerAudioClientSchema).readonly(),
12458
12448
  encoded: array(BrokerEncodedClientSchema).readonly(),
12459
12449
  pipeClients: number(),
@@ -12822,11 +12812,7 @@ method(object({
12822
12812
  auth: "admin"
12823
12813
  }), method(object({ brokerId: string() }), BrokerClientsSchema), method(object({
12824
12814
  brokerId: string(),
12825
- channel: _enum([
12826
- "rtsp",
12827
- "decoded",
12828
- "audio"
12829
- ]),
12815
+ channel: _enum(["rtsp", "audio"]),
12830
12816
  handle: string()
12831
12817
  }), object({ killed: boolean() }), {
12832
12818
  kind: "mutation",
@@ -12861,10 +12847,7 @@ method(object({
12861
12847
  }), method(SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, { kind: "mutation" }), method(object({
12862
12848
  subscriptionId: string(),
12863
12849
  maxCount: number().int().positive().default(8)
12864
- }), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(SubscribeFramesInputSchema, SubscribeFramesResultSchema, { kind: "mutation" }), method(object({
12865
- subscriptionId: string(),
12866
- maxCount: number().int().positive().default(4)
12867
- }), array(FrameHandleSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(object({
12850
+ }), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(object({
12868
12851
  brokerId: string(),
12869
12852
  seconds: number().min(0).max(30)
12870
12853
  }), _void(), {
@@ -14123,54 +14106,12 @@ id: union([string(), number()]) }), {
14123
14106
  kind: "mutation",
14124
14107
  auth: "admin"
14125
14108
  });
14126
- /**
14127
- * shm ring usage stats for a `frameSink: 'shm'` decoder session —
14128
- * exposed via `decoder.getShmStats` so downstream consumers can
14129
- * observe ring pressure (slot count, byte budget, hit/miss ratio).
14130
- */
14131
- var ShmRingStatsSchema = object({
14132
- sessionId: string(),
14133
- slotCount: number().int(),
14134
- slotByteLength: number().int(),
14135
- segmentBytes: number().int(),
14136
- budgetMb: number().int(),
14137
- framesWritten: number().int(),
14138
- getFrameHits: number().int(),
14139
- getFrameMisses: number().int()
14140
- });
14141
- method(object({ codec: string() }), boolean()), method(_void(), object({
14109
+ method(_void(), object({
14142
14110
  id: string(),
14143
14111
  name: string(),
14144
- isPullMode: boolean().optional(),
14145
- priority: number().optional(),
14146
14112
  hwaccel: string().optional(),
14147
14113
  probedBestHwaccel: string().optional()
14148
- })), method(DecoderSessionConfigSchema, object({
14149
- sessionId: string(),
14150
- nodeId: string()
14151
- })), method(object({ sessionId: string() }), _void()), method(object({
14152
- sessionId: string(),
14153
- packet: EncodedPacketSchema
14154
- }), _void()), method(object({
14155
- sessionId: string(),
14156
- url: string()
14157
- }), _void()), method(object({
14158
- sessionId: string(),
14159
- maxCount: number().default(1),
14160
- waitMs: number().optional()
14161
- }), array(DecodedFrameSchema)), method(object({
14162
- sessionId: string(),
14163
- maxCount: number().default(1),
14164
- waitMs: number().optional()
14165
- }), array(FrameHandleSchema)), method(object({ handle: FrameHandleSchema }), DecodedFrameSchema.nullable()), method(object({ sessionId: string() }), ShmRingStatsSchema.nullable()), method(object({
14166
- sessionId: string(),
14167
- config: DecoderSessionConfigSchema.partial()
14168
- }), _void()), method(object({ sessionId: string() }), DecoderStatsSchema), method(_void(), array(object({
14169
- sessionId: string(),
14170
- codec: string(),
14171
- outputFormat: string(),
14172
- createdAtMs: number()
14173
- })).readonly()), method(_void(), object({ backend: string() }), {
14114
+ })), method(_void(), object({ backend: string() }), {
14174
14115
  kind: "mutation",
14175
14116
  auth: "admin"
14176
14117
  });
@@ -14226,7 +14167,7 @@ DeviceType.Camera;
14226
14167
  * This matters here more than anywhere else in the repo, because every provider
14227
14168
  * that knows a device's host knows its PASSWORD too: `{ host, port, username,
14228
14169
  * password }` sit in one object on Hikvision, Amcrest, Reolink and ONVIF alike,
14229
- * and `http://admin:hunter2@192.168.x.x/` is a URL a browser accepts. The
14170
+ * and `http://admin:hunter2@192.168.60.139/` is a URL a browser accepts. The
14230
14171
  * camera's own page will ask for its own login. That is correct, and pre-
14231
14172
  * filling it is the operator's business, not ours.
14232
14173
  *
@@ -15170,6 +15111,10 @@ var DeviceInfoSchema = object({
15170
15111
  isCamera: boolean(),
15171
15112
  /** Current config values — serializable snapshot */
15172
15113
  config: record(string(), unknown()),
15114
+ /** Paths inside `config` the device's schema declares secret (D783) —
15115
+ * what the non-admin redaction withholds. Paths, never values. Absent
15116
+ * when the owning runner has not reported them. */
15117
+ secretConfigPaths: array(string()).optional(),
15173
15118
  /** Hardware + identity blob (manufacturer / model / firmware / sn /
15174
15119
  * uid / mac / …). Populated by drivers; editable via setMetadata. */
15175
15120
  metadata: record(string(), unknown()).nullable().optional(),
@@ -15375,7 +15320,13 @@ var DeviceRegisterPayloadSchema = object({
15375
15320
  * call (workers re-register on init), so probe-driven updates
15376
15321
  * (e.g. PTZ flag flipping after the abilities probe) propagate. */
15377
15322
  features: array(string()).optional(),
15378
- config: record(string(), unknown())
15323
+ config: record(string(), unknown()),
15324
+ /** Config paths the device's own schema DECLARES secret
15325
+ * (`.meta({ secret: true })` — dotted, `[]` for array items, e.g.
15326
+ * `connection.password`). Re-published on every register; the non-admin
15327
+ * redaction withholds them at any depth (D783). Optional: an older runner
15328
+ * omits it and the keyword backstop applies. */
15329
+ secretConfigPaths: array(string()).optional()
15379
15330
  });
15380
15331
  var DeviceRemovePayloadSchema = object({ deviceId: number() });
15381
15332
  var DevicePersistConfigPayloadSchema = object({
@@ -16202,6 +16153,12 @@ method(_void(), array(string()).readonly(), { auth: "admin" }), method(object({
16202
16153
  kind: "mutation",
16203
16154
  auth: "admin"
16204
16155
  });
16156
+ var HUB_ADDRESS_ROLES = [
16157
+ "appConnections",
16158
+ "notificationTaps",
16159
+ "internal",
16160
+ "publicEndpoint"
16161
+ ];
16205
16162
  /**
16206
16163
  * Transport bounds for AI capability methods.
16207
16164
  *
@@ -17028,7 +16985,14 @@ var LoginMethodContributionSchema = discriminatedUnion("kind", [
17028
16985
  icon: string().optional(),
17029
16986
  /** Addon-owned HTTP route the button navigates to (GET). */
17030
16987
  startUrl: string(),
17031
- stage: LoginStageEnum
16988
+ stage: LoginStageEnum,
16989
+ /**
16990
+ * The provider names an external identity a signed-in user can link to
16991
+ * their own account (D782): `auth.listLinkableProviders` /
16992
+ * `beginExternalLink` offer exactly the redirect methods that set this,
16993
+ * whatever their id. Absent / false — a login button only (magic-link).
16994
+ */
16995
+ linkable: boolean().optional()
17032
16996
  }),
17033
16997
  object({
17034
16998
  kind: literal("widget"),
@@ -17398,7 +17362,7 @@ method(object({
17398
17362
  timeoutMs: 6e5
17399
17363
  });
17400
17364
  method(object({
17401
- nodeId: string(),
17365
+ targetNodeId: string(),
17402
17366
  modelId: string(),
17403
17367
  format: _enum(MODEL_FORMATS),
17404
17368
  entry: ModelCatalogEntrySchema
@@ -18804,6 +18768,8 @@ var NcSystemEventKindSchema = _enum([
18804
18768
  "stream-offline",
18805
18769
  "node-online",
18806
18770
  "node-offline",
18771
+ "node-restarting",
18772
+ "node-updating",
18807
18773
  "node-inference-unavailable",
18808
18774
  "detection-blind",
18809
18775
  "addon-crash-loop",
@@ -19902,8 +19868,9 @@ var NcRuleSchema = NcRuleInputSchema.extend({
19902
19868
  disabledTargetIds: array(string()).default([])
19903
19869
  });
19904
19870
  /**
19905
- * The state-summary SECTIONS (D647 / D698): the D637 kind groups that report a
19906
- * still-true state. `backups-exports` and `alarm` are not sections — a completed
19871
+ * The state-summary SECTIONS (D647 / D698 / D708): the D637 kind groups that
19872
+ * report a still-true state. `addons` is the crash-looped addons only and
19873
+ * `addon-updates` the addons that are behind (D708 split them). `backups-exports` and `alarm` are not sections — a completed
19907
19874
  * job is not an open state, and the alarm stays instant.
19908
19875
  */
19909
19876
  var NcStateSummarySectionIdSchema = _enum([
@@ -19915,6 +19882,7 @@ var NcStateSummarySectionIdSchema = _enum([
19915
19882
  "detection-blind",
19916
19883
  "nodes",
19917
19884
  "addons",
19885
+ "addon-updates",
19918
19886
  "updates"
19919
19887
  ]);
19920
19888
  /** One section of a previewed state summary. `unavailable` = its state could not be read. */
@@ -20395,7 +20363,25 @@ var NcAlarmModeDelaysListSchema = array(object({
20395
20363
  * When this mode may be armed. Absent / null = always allowed (same as a
20396
20364
  * rule with no `schedule`). Evaluated with {@link isScheduleActive}.
20397
20365
  */
20398
- schedule: NcScheduleSchema.optional()
20366
+ schedule: NcScheduleSchema.optional(),
20367
+ /**
20368
+ * D706: while this mode's ENTRY DELAY runs, do the alarm rules' own pushes go out (as an
20369
+ * intrusion naming the locations)? Absent = false — the entry-delay notification is the
20370
+ * only one, and the matches ride the triggered notification's mosaic (D705).
20371
+ */
20372
+ notifyDuringEntryDelay: boolean().optional(),
20373
+ /**
20374
+ * D706: notify "watched again" when a sensor this arm bypassed closes and opens again.
20375
+ * Absent = false (logged, not sent). Even when true it is not sent when that same sensor
20376
+ * is the one that starts the entry delay — the entry-delay notification already names it.
20377
+ */
20378
+ notifySensorRewatched: boolean().optional(),
20379
+ /**
20380
+ * D735: notify "ignored" when a sensor this arm bypassed really MOVED while armed (its own
20381
+ * change time is after the arm) and set nothing off. Absent = false (logged, not sent). A
20382
+ * re-sync, a recovery from `unavailable` or a duplicate is never announced, switch or not.
20383
+ */
20384
+ notifySensorIgnored: boolean().optional()
20399
20385
  })).max(8).refine(uniqueModes, { message: "modeDelays: at most one entry per arm mode" });
20400
20386
  var NcAlarmModeDelaysEditListSchema = array(object({
20401
20387
  mode: AlarmArmModeSchema,
@@ -20404,7 +20390,13 @@ var NcAlarmModeDelaysEditListSchema = array(object({
20404
20390
  triggeredDurationSec: NcAlarmTriggeredSecSchema.nullable().optional(),
20405
20391
  postTriggeredAction: NcAlarmPostTriggeredActionSchema.nullable().optional(),
20406
20392
  /** Set a schedule, or `null` to clear (mode always allowed again). */
20407
- schedule: NcScheduleSchema.nullable().optional()
20393
+ schedule: NcScheduleSchema.nullable().optional(),
20394
+ /** D706: set the switch, or `null` to clear it (back to the default, false). */
20395
+ notifyDuringEntryDelay: boolean().nullable().optional(),
20396
+ /** D706: set the switch, or `null` to clear it (back to the default, false). */
20397
+ notifySensorRewatched: boolean().nullable().optional(),
20398
+ /** D735: set the switch, or `null` to clear it (back to the default, false). */
20399
+ notifySensorIgnored: boolean().nullable().optional()
20408
20400
  })).max(8).refine(uniqueModes, { message: "modeDelays: at most one edit per arm mode" });
20409
20401
  /** One switch of the alarm table: put ONE device on, or take it off, ONE mode's list. */
20410
20402
  var NcAlarmNonBlockingEditSchema = object({
@@ -21365,45 +21357,25 @@ Object.freeze(Object.fromEntries([{
21365
21357
  label: "Face recognition model",
21366
21358
  defaultModelId: "auraface-r100",
21367
21359
  indexName: "the enrolled face gallery",
21368
- options: [
21369
- {
21370
- id: "auraface-r100",
21371
- label: "AuraFace R100"
21372
- },
21373
- {
21374
- id: "arcface-r100",
21375
- label: "ArcFace (ResNet34)"
21376
- },
21377
- {
21378
- id: "inception-resnet-v1",
21379
- label: "Inception ResNet V1"
21380
- }
21381
- ]
21360
+ options: [{
21361
+ id: "auraface-r100",
21362
+ label: "AuraFace R100"
21363
+ }]
21382
21364
  }, {
21383
21365
  stepId: "clip-embedding",
21384
21366
  label: "Semantic search model",
21385
- defaultModelId: "mobileclip-s1",
21367
+ defaultModelId: "siglip2-b16-224",
21386
21368
  indexName: "the object semantic-search index",
21387
- options: [
21388
- {
21389
- id: "mobileclip-s1",
21390
- label: "MobileCLIP S1"
21391
- },
21392
- {
21393
- id: "mobileclip-s2",
21394
- label: "MobileCLIP S2"
21395
- },
21396
- {
21397
- id: "siglip2-b16-224",
21398
- label: "SigLIP2 B/16 (Apache-2.0)"
21399
- }
21400
- ]
21369
+ options: [{
21370
+ id: "siglip2-b16-224",
21371
+ label: "SigLIP2 B/16 (Apache-2.0)"
21372
+ }]
21401
21373
  }].map((s) => [s.stepId, s.defaultModelId])));
21402
21374
  var CLUSTER_STEP_SETTING_FIELDS = [{
21403
21375
  stepId: "face-embedding",
21404
21376
  key: "minLandmarkFaceSize",
21405
- label: "Min face size for recognition (detection px)",
21406
- 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.",
21377
+ label: "Min face size to embed (detection-frame px)",
21378
+ 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.",
21407
21379
  type: "slider",
21408
21380
  min: 0,
21409
21381
  max: 64,
@@ -22455,7 +22427,13 @@ var RetrainFrameSchema = object({
22455
22427
  sizeBytes: number().int(),
22456
22428
  width: number().int(),
22457
22429
  height: number().int(),
22458
- copiedAt: number()
22430
+ copiedAt: number(),
22431
+ /** When the CAMERA captured the frame. Absent on a copy taken before D785. */
22432
+ capturedAt: number().optional(),
22433
+ /** The operator's "every subject in this frame is boxed". Detector
22434
+ * evaluation keeps only complete frames: an unboxed subject would count as
22435
+ * a false positive. */
22436
+ complete: boolean()
22459
22437
  });
22460
22438
  /** Why a copy-on-select could not be honoured — named, never a silent skip. */
22461
22439
  var RetrainCopyRefusalSchema = _enum([
@@ -22476,6 +22454,51 @@ var RetrainFrameListSchema = object({
22476
22454
  /** What the page pre-selects — the native key frame when one survives. */
22477
22455
  autoPickMediaId: number().int().optional()
22478
22456
  });
22457
+ /**
22458
+ * Which frames an annotated export carries. Every field narrows; an empty
22459
+ * filter is every annotated copy. A dataset VERSION is a frozen `frameIds`
22460
+ * list owned by whoever trains (the training orchestrator), so `frameIds` is
22461
+ * the primitive a version export uses; `batchId` re-selects what an earlier
22462
+ * export carried (`exportedInBatch`).
22463
+ */
22464
+ var RetrainExportFilterSchema = object({
22465
+ deviceIds: array(number()).optional(),
22466
+ frameIds: array(string()).max(2e4).optional(),
22467
+ batchId: string().optional(),
22468
+ /** Only frames the operator marked complete (all subjects boxed). */
22469
+ completeOnly: boolean().optional()
22470
+ });
22471
+ /**
22472
+ * `frames`: the full frame copies, boxes in `annotations.json`.
22473
+ * `crops`: additionally one JPEG per subject, cut with the runtime detail-crop
22474
+ * convention — the classifier layout.
22475
+ */
22476
+ var RetrainExportLayoutSchema = _enum(["frames", "crops"]);
22477
+ /**
22478
+ * Where `writeRetrainArchive` streams the tar: one HTTP request whose body is
22479
+ * the archive, sent chunk by chunk. Covers a presigned PUT and a provider
22480
+ * addon's data-plane upload route alike. Headers are sent verbatim and never
22481
+ * logged.
22482
+ */
22483
+ var RetrainArchiveTargetSchema = object({
22484
+ kind: literal("http"),
22485
+ method: _enum(["PUT", "POST"]),
22486
+ url: string().url(),
22487
+ headers: record(string(), string()).optional()
22488
+ });
22489
+ var RetrainArchiveResultSchema = object({
22490
+ batchId: string(),
22491
+ frames: number().int(),
22492
+ crops: number().int(),
22493
+ annotations: number().int(),
22494
+ /** Frames planned but not shipped (unreadable copy, path too long). */
22495
+ missing: number().int(),
22496
+ bytes: number().int(),
22497
+ /** sha256 of the exact bytes sent. */
22498
+ sha256: string(),
22499
+ /** The target's HTTP status. */
22500
+ status: number().int()
22501
+ });
22479
22502
  /** What the operator asked the assist to look for. */
22480
22503
  var RetrainAssistSubjectSchema = discriminatedUnion("kind", [object({
22481
22504
  kind: literal("package"),
@@ -23270,9 +23293,25 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
23270
23293
  }), RetrainTransitionResultSchema, {
23271
23294
  kind: "mutation",
23272
23295
  auth: "admin"
23273
- }), method(object({ deviceIds: array(number()).optional() }), object({ url: string() }), {
23296
+ }), method(RetrainExportFilterSchema.extend({ layout: RetrainExportLayoutSchema.optional() }), object({ url: string() }), {
23274
23297
  kind: "query",
23275
23298
  auth: "admin"
23299
+ }), method(object({
23300
+ deviceId: number(),
23301
+ trackId: string(),
23302
+ frameId: string(),
23303
+ complete: boolean()
23304
+ }), RetrainFrameSchema, {
23305
+ kind: "mutation",
23306
+ auth: "admin"
23307
+ }), method(object({
23308
+ filter: RetrainExportFilterSchema,
23309
+ layout: RetrainExportLayoutSchema,
23310
+ target: RetrainArchiveTargetSchema
23311
+ }), RetrainArchiveResultSchema, {
23312
+ kind: "mutation",
23313
+ auth: "admin",
23314
+ timeoutMs: 60 * 6e4
23276
23315
  }), method(object({
23277
23316
  /** Which of the three event tables owns the row. */
23278
23317
  ownerType: EventOwnerTypeSchema,
@@ -23323,6 +23362,34 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
23323
23362
  timestamp: number()
23324
23363
  });
23325
23364
  /**
23365
+ * A root model's boxes standing in for one crop-kind step's own inference
23366
+ * (D730) — see `runPipeline.suppliedRoot`.
23367
+ */
23368
+ var SuppliedRootOutputSchema = object({
23369
+ stepId: string(),
23370
+ /** The root model that drew the boxes — stamped on the result. */
23371
+ modelId: string(),
23372
+ detections: array(object({
23373
+ /** `[x1, y1, x2, y2]` in the pixels of the call's image. */
23374
+ bbox: tuple([
23375
+ number(),
23376
+ number(),
23377
+ number(),
23378
+ number()
23379
+ ]),
23380
+ score: number(),
23381
+ /**
23382
+ * Five facial landmarks in the same pixels — a face the step's own
23383
+ * detector already re-found inside a root face box (D730), so its
23384
+ * embedder child aligns it exactly as it aligns any detected face.
23385
+ */
23386
+ landmarks: array(object({
23387
+ x: number(),
23388
+ y: number()
23389
+ })).optional()
23390
+ })).min(1)
23391
+ });
23392
+ /**
23326
23393
  * Reference to the frame's retained NATIVE surface + the parent crop's placement
23327
23394
  * within the frame, so the executor can re-cut a leaf child ROI at native
23328
23395
  * resolution on the detail plane. See the `runPipeline` `nativeCropRef` field.
@@ -23370,7 +23437,7 @@ var FrameRefSchema = object({
23370
23437
  timestamp: number(),
23371
23438
  capturedAt: number().optional()
23372
23439
  });
23373
- var ModelFormatSchema$1 = _enum([
23440
+ var ModelFormatSchema$2 = _enum([
23374
23441
  "onnx",
23375
23442
  "coreml",
23376
23443
  "openvino",
@@ -23388,7 +23455,7 @@ var PipelineSlotSchema = _enum([
23388
23455
  var PipelineEngineChoiceSchema = object({
23389
23456
  runtime: literal("python"),
23390
23457
  backend: string(),
23391
- format: ModelFormatSchema$1,
23458
+ format: ModelFormatSchema$2,
23392
23459
  device: string().optional()
23393
23460
  });
23394
23461
  /**
@@ -23427,32 +23494,15 @@ var PipelineDefaultStepSchema = lazy(() => object({
23427
23494
  group: string().optional(),
23428
23495
  settings: record(string(), unknown()).optional()
23429
23496
  }));
23430
- var PipelineTemplateStepSchema = lazy(() => object({
23431
- addonId: string(),
23432
- enabled: boolean(),
23433
- modelId: string(),
23434
- children: array(PipelineTemplateStepSchema).readonly(),
23435
- settings: record(string(), unknown()).optional()
23436
- }));
23437
- var PipelineTemplateSchema$1 = object({
23438
- id: string(),
23439
- name: string(),
23440
- createdAt: string(),
23441
- updatedAt: string(),
23442
- engine: PipelineEngineChoiceSchema,
23443
- steps: array(PipelineTemplateStepSchema).readonly()
23444
- });
23445
23497
  var PipelineModelOptionSchema = object({
23446
23498
  id: string(),
23447
23499
  name: string(),
23448
- formats: record(string(), object({
23449
- downloaded: boolean(),
23450
- sizeMB: number()
23451
- })),
23500
+ formats: record(string(), PipelineModelFormatStatusSchema),
23452
23501
  group: ModelVariantGroupSchema.optional(),
23453
23502
  legacy: boolean().optional(),
23454
23503
  provider: ModelProviderIdSchema.optional(),
23455
- defaultConfidence: number().optional()
23504
+ defaultConfidence: number().optional(),
23505
+ suppliesSteps: array(RootStepSupplySchema).readonly().optional()
23456
23506
  });
23457
23507
  var ConfigFieldBridge = custom();
23458
23508
  var PipelineAddonSchemaSchema = object({
@@ -23614,6 +23664,22 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
23614
23664
  }), {
23615
23665
  kind: "mutation",
23616
23666
  auth: "admin"
23667
+ }), method(object({
23668
+ nodeId: string(),
23669
+ deviceIds: array(number()).readonly().optional(),
23670
+ dryRun: boolean()
23671
+ }), object({
23672
+ entries: array(object({
23673
+ deviceId: number(),
23674
+ keys: array(string()).readonly()
23675
+ })).readonly(),
23676
+ refused: array(object({
23677
+ deviceId: number(),
23678
+ reason: string()
23679
+ })).readonly()
23680
+ }), {
23681
+ kind: "mutation",
23682
+ auth: "admin"
23617
23683
  }), method(object({ nodeId: string() }), object({ unhealthy: array(object({
23618
23684
  /** `<backend>:<device>`, e.g. `openvino:gpu`. */
23619
23685
  deviceKey: string(),
@@ -23639,22 +23705,14 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
23639
23705
  }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(object({
23640
23706
  steps: array(PipelineStepInputSchema),
23641
23707
  deviceKey: string().optional()
23642
- }), PipelineValidationResultSchema), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
23643
- name: string(),
23644
- steps: array(PipelineTemplateStepSchema).readonly(),
23645
- engine: PipelineEngineChoiceSchema
23646
- }), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({
23647
- id: string(),
23648
- name: string().optional(),
23649
- steps: array(PipelineTemplateStepSchema).readonly().optional()
23650
- }), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({ id: string() }), _void(), { kind: "mutation" }), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string() }), ModelAvailabilityListBridge), method(object({
23708
+ }), PipelineValidationResultSchema), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string() }), ModelAvailabilityListBridge), method(object({
23651
23709
  addonId: string(),
23652
23710
  modelId: string(),
23653
- format: ModelFormatSchema$1
23711
+ format: ModelFormatSchema$2
23654
23712
  }), DownloadModelResultSchema, { kind: "mutation" }), method(object({
23655
23713
  addonId: string(),
23656
23714
  modelId: string(),
23657
- format: ModelFormatSchema$1
23715
+ format: ModelFormatSchema$2
23658
23716
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
23659
23717
  steps: array(PipelineStepInputSchema).min(1),
23660
23718
  frame: FrameInputSchema.optional(),
@@ -23720,7 +23778,16 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
23720
23778
  * `device-not-servable`), and nothing reaches the camera's live
23721
23779
  * trace stream. Absent ⇒ unchanged behaviour.
23722
23780
  */
23723
- replay: literal(true).optional()
23781
+ replay: literal(true).optional(),
23782
+ /**
23783
+ * Root-supplied detections for the tree's ROOT step (D730). Set by
23784
+ * `runDetailSubtree` when the camera's root model supplies a crop-kind
23785
+ * step (a Frigate+ `license_plate` for `plate-detection`): the step is
23786
+ * NOT inferred, these boxes are its output, and its children (the plate
23787
+ * reader) run on them through their own crop policy. Boxes are in the
23788
+ * PIXELS of the image this call carries. Absent ⇒ the root step runs.
23789
+ */
23790
+ suppliedRoot: SuppliedRootOutputSchema.optional()
23724
23791
  }), PipelineRunResultBridge, { kind: "mutation" }), method(object({
23725
23792
  steps: array(PipelineStepInputSchema).min(1),
23726
23793
  frames: array(FrameInputSchema).min(1).max(255),
@@ -23802,6 +23869,375 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
23802
23869
  filename: string().optional(),
23803
23870
  settings: record(string(), unknown()).optional()
23804
23871
  }), AudioTestResultSchema, { kind: "mutation" }), method(_void(), ConfigUISchemaNullableBridge);
23872
+ /**
23873
+ * The wire shapes of the Auto tune plan and apply (D745), used by the
23874
+ * `pipeline-orchestrator` cap. The recommender's own types
23875
+ * (`recommend.ts`) are the TS face of the same data; these
23876
+ * schemas are what crosses the cap boundary.
23877
+ */
23878
+ var ModelFormatSchema$1 = _enum(MODEL_FORMATS);
23879
+ /** The operator's range for it. */
23880
+ var MIN_SESSIONS_PER_DEVICE_RANGE = {
23881
+ min: 1,
23882
+ max: 8
23883
+ };
23884
+ var HardwareClassIdSchema = _enum([
23885
+ "intel-core-ultra",
23886
+ "intel-n-series",
23887
+ "apple-m-base",
23888
+ "apple-m-pro",
23889
+ "unknown"
23890
+ ]);
23891
+ var AcceleratorKindSchema = _enum([
23892
+ "intel-npu",
23893
+ "intel-igpu",
23894
+ "x86-cpu",
23895
+ "arm-cpu",
23896
+ "apple-ane",
23897
+ "coral"
23898
+ ]);
23899
+ var RecommendationReasonSchema = discriminatedUnion("kind", [
23900
+ object({
23901
+ kind: literal("capacity"),
23902
+ sessions: number(),
23903
+ minSessions: number()
23904
+ }),
23905
+ object({
23906
+ kind: literal("tie-faster"),
23907
+ over: string(),
23908
+ recallDelta: number()
23909
+ }),
23910
+ object({
23911
+ kind: literal("stepped-down"),
23912
+ from: string(),
23913
+ to: string(),
23914
+ limitedBy: string()
23915
+ }),
23916
+ object({
23917
+ kind: literal("no-fit-lightest"),
23918
+ sessions: number(),
23919
+ minSessions: number()
23920
+ }),
23921
+ object({
23922
+ kind: literal("derived-latency"),
23923
+ modelId: string()
23924
+ }),
23925
+ object({ kind: literal("cpu-device") }),
23926
+ object({ kind: literal("coral-untouched") }),
23927
+ object({ kind: literal("device-disabled") }),
23928
+ object({ kind: literal("device-unavailable") }),
23929
+ object({ kind: literal("node-offline") }),
23930
+ object({ kind: literal("no-hardware-facts") }),
23931
+ object({
23932
+ kind: literal("no-measured-data"),
23933
+ hardwareClass: HardwareClassIdSchema
23934
+ }),
23935
+ object({
23936
+ kind: literal("no-family-build"),
23937
+ format: ModelFormatSchema$1
23938
+ })
23939
+ ]);
23940
+ var DeviceModelChoiceSchema = object({
23941
+ modelId: string(),
23942
+ p50Ms: number(),
23943
+ fps: number(),
23944
+ measured: boolean(),
23945
+ /** Parallel sessions at the camera rate with the headroom kept free: ⌊fps × (1 − headroom) / camera fps⌋. */
23946
+ capacitySessions: number(),
23947
+ personRecall: number()
23948
+ });
23949
+ var DeviceRecommendationSchema = object({
23950
+ deviceKey: string(),
23951
+ accelerator: AcceleratorKindSchema.nullable(),
23952
+ enabled: boolean(),
23953
+ available: boolean(),
23954
+ chosen: DeviceModelChoiceSchema.nullable(),
23955
+ reasons: array(RecommendationReasonSchema).readonly()
23956
+ });
23957
+ var NodeRecommendationSchema = object({
23958
+ nodeId: string(),
23959
+ reachable: boolean(),
23960
+ hardwareClass: HardwareClassIdSchema.nullable(),
23961
+ cpuModel: string().nullable(),
23962
+ skipped: boolean(),
23963
+ acceleratorModelId: string().nullable(),
23964
+ devices: array(DeviceRecommendationSchema).readonly(),
23965
+ reasons: array(RecommendationReasonSchema).readonly()
23966
+ });
23967
+ var ModelPinChangeSchema = object({
23968
+ stepId: string(),
23969
+ before: string().nullable(),
23970
+ after: string().nullable()
23971
+ });
23972
+ var NodeDeviceChangeSchema = object({
23973
+ nodeId: string(),
23974
+ deviceKey: string(),
23975
+ madeExplicit: boolean(),
23976
+ modelPins: array(ModelPinChangeSchema).readonly(),
23977
+ thresholds: array(object({
23978
+ stepId: string(),
23979
+ keys: array(string()).readonly()
23980
+ })).readonly()
23981
+ });
23982
+ var CameraOverrideClearSchema = object({
23983
+ deviceId: number(),
23984
+ source: _enum(["step-override", "wholesale"]),
23985
+ nodeId: string(),
23986
+ deviceKey: string().nullable(),
23987
+ stepId: string(),
23988
+ modelIdBefore: string().nullable(),
23989
+ keys: array(string()).readonly()
23990
+ });
23991
+ var DetectorStoreClearSchema = object({
23992
+ deviceId: number(),
23993
+ keys: array(string()).readonly()
23994
+ });
23995
+ var AutoTuneWarningSchema = discriminatedUnion("kind", [
23996
+ object({
23997
+ kind: literal("detector-store-cluster-wide"),
23998
+ skippedNodes: array(string()).readonly()
23999
+ }),
24000
+ object({
24001
+ kind: literal("detector-store-unreadable"),
24002
+ error: string()
24003
+ }),
24004
+ object({
24005
+ kind: literal("coral-enabled"),
24006
+ nodeId: string(),
24007
+ deviceKey: string()
24008
+ })
24009
+ ]);
24010
+ var AutoTuneOptionsSchema = object({
24011
+ /** Share of each accelerator's throughput kept free (0.3–0.5). */
24012
+ headroom: number().min(.3).max(.5).default(.4),
24013
+ /**
24014
+ * The least number of parallel sessions every device must sustain at the
24015
+ * camera rate with the headroom kept free (D755). The most accurate model
24016
+ * that reaches it wins.
24017
+ */
24018
+ minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
24019
+ });
24020
+ var AutoTunePlanSchema = object({
24021
+ /** Hash of everything the apply will write — the apply refuses a different one. */
24022
+ planHash: string(),
24023
+ family: literal("yolov9"),
24024
+ headroom: number(),
24025
+ minSessionsPerDevice: number(),
24026
+ /** The detection rate a session is counted at (the fastest camera running the pipeline root). */
24027
+ cameraFps: number(),
24028
+ generatedAt: number(),
24029
+ nodes: array(NodeRecommendationSchema).readonly(),
24030
+ nodeChanges: array(NodeDeviceChangeSchema).readonly(),
24031
+ cameraClears: array(CameraOverrideClearSchema).readonly(),
24032
+ detectorStoreClears: array(DetectorStoreClearSchema).readonly(),
24033
+ warnings: array(AutoTuneWarningSchema).readonly()
24034
+ });
24035
+ var AutoTuneApplyInputSchema = object({
24036
+ planHash: string(),
24037
+ headroom: number().min(.3).max(.5).default(.4),
24038
+ minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
24039
+ });
24040
+ var AutoTunePhaseResultSchema = object({
24041
+ phase: _enum([
24042
+ "download",
24043
+ "camera-overrides",
24044
+ "detector-thresholds",
24045
+ "node-models",
24046
+ "redispatch"
24047
+ ]),
24048
+ ok: boolean(),
24049
+ detail: string()
24050
+ });
24051
+ var AutoTuneApplyResultSchema = discriminatedUnion("kind", [
24052
+ object({
24053
+ kind: literal("applied"),
24054
+ planHash: string(),
24055
+ phases: array(AutoTunePhaseResultSchema).readonly()
24056
+ }),
24057
+ object({
24058
+ kind: literal("aborted"),
24059
+ phases: array(AutoTunePhaseResultSchema).readonly()
24060
+ }),
24061
+ object({
24062
+ kind: literal("stale"),
24063
+ plan: AutoTunePlanSchema
24064
+ }),
24065
+ object({
24066
+ kind: literal("refused"),
24067
+ reason: _enum(["apply-in-progress"])
24068
+ })
24069
+ ]);
24070
+ /**
24071
+ * Wire shapes of the Load balancing surface (D748): the session placement
24072
+ * policy, the atomic share write, the observed placement statistics, the
24073
+ * hardware share suggestion and the stale device pins.
24074
+ */
24075
+ /**
24076
+ * How a new detection session picks its node and device.
24077
+ * - `least-loaded` — the historical rule: lowest `attached / weight`, a
24078
+ * constant node order at a tie (D37). An idle node always ties at 0, so a
24079
+ * weight only bites once a node already holds a session.
24080
+ * - `share` — the share of PARALLEL sessions is held to the weights, and a
24081
+ * full or drowning node yields to a free one (D748).
24082
+ */
24083
+ var SessionPlacementPolicySchema = _enum(["least-loaded", "share"]);
24084
+ var LoadBalancingSharesInputSchema = object({
24085
+ /** nodeId → share (> 0). A node left out keeps its weight. */
24086
+ nodes: record(string(), number().positive()).default({}),
24087
+ /** nodeId → deviceKey → share (> 0). A device left out keeps its weight. */
24088
+ devices: record(string(), record(string(), number().positive())).default({})
24089
+ });
24090
+ var PlacementStatsInputSchema = object({
24091
+ /** Window the observed shares are averaged over (default 1 h, max 24 h). */
24092
+ windowMs: number().int().min(6e4).max(1440 * 60 * 1e3).default(3600 * 1e3) });
24093
+ var PlacementDeviceStatsSchema = object({
24094
+ deviceKey: string(),
24095
+ /** Sessions running on this device now. */
24096
+ sessionsNow: number(),
24097
+ /** Sessions started on this device inside the window. */
24098
+ sessionsStarted: number(),
24099
+ /** Time-weighted share of the node's parallel sessions over the window (0–1); null = no session ran. */
24100
+ observedShare: number().nullable()
24101
+ });
24102
+ var PlacementNodeStatsSchema = object({
24103
+ nodeId: string(),
24104
+ sessionsNow: number(),
24105
+ sessionsStarted: number(),
24106
+ /** Time-weighted share of the cluster's parallel sessions over the window (0–1); null = none ran. */
24107
+ observedShare: number().nullable(),
24108
+ /** Most sessions this node ran at once inside the window. */
24109
+ peakSessions: number(),
24110
+ /** Sessions a share election handed elsewhere because this node was full or drowning. */
24111
+ yieldsAway: number(),
24112
+ devices: array(PlacementDeviceStatsSchema).readonly()
24113
+ });
24114
+ /** A camera's device pin that the session path cannot honour. */
24115
+ var StaleDevicePinSchema = object({
24116
+ deviceId: number(),
24117
+ deviceKey: string(),
24118
+ /** `disabled` — the key exists on some node but is not enabled anywhere; `absent` — no node has it. */
24119
+ reason: _enum(["disabled", "absent"])
24120
+ });
24121
+ var PlacementStatsSchema = object({
24122
+ policy: SessionPlacementPolicySchema,
24123
+ windowMs: number(),
24124
+ /** How much of the window was actually observed (the hub keeps it in memory). */
24125
+ observedForMs: number(),
24126
+ sessionsNow: number(),
24127
+ /** Most parallel sessions across the cluster inside the window. */
24128
+ clusterPeakSessions: number(),
24129
+ nodes: array(PlacementNodeStatsSchema).readonly(),
24130
+ stalePins: array(StaleDevicePinSchema).readonly()
24131
+ });
24132
+ /**
24133
+ * Where an automatic share's capacity comes from (D755).
24134
+ * - `hardware` — the static capacity of each device at its Auto tune model:
24135
+ * the measured latency table for the node's hardware class.
24136
+ * - `benchmark` — the node's own measured capacity (node benchmark results).
24137
+ * A node with no results falls back to `hardware`, and says so.
24138
+ */
24139
+ var CapacitySourceSchema = _enum(["hardware", "benchmark"]);
24140
+ /** Why a node under the `benchmark` source was sized from hardware instead. */
24141
+ var CapacityFallbackSchema = _enum(["no-benchmark-results", "partial-benchmark-results"]);
24142
+ var SuggestSharesInputSchema = object({
24143
+ headroom: number().min(.3).max(.5).default(.4),
24144
+ /** Default `hardware`. */
24145
+ source: CapacitySourceSchema.default("hardware")
24146
+ });
24147
+ var SuggestedDeviceShareSchema = object({
24148
+ deviceKey: string(),
24149
+ /** Share of the node (0–100, rounded). */
24150
+ share: number(),
24151
+ modelId: string().nullable(),
24152
+ /** Inferences per second at that model, from the measured table; null when sized by a benchmark. */
24153
+ fps: number().nullable(),
24154
+ /** False for a table cell derived from another chip; true for a measured cell or a benchmark. */
24155
+ measured: boolean(),
24156
+ /**
24157
+ * Advisory session cap: ⌊fps × (1 − headroom) / camera fps⌋ from the table,
24158
+ * or the benchmark's measured max sessions. Never enforced.
24159
+ */
24160
+ suggestedMaxSessions: number().nullable()
24161
+ });
24162
+ var SuggestedNodeShareSchema = object({
24163
+ nodeId: string(),
24164
+ /** Share of the cluster (0–100, rounded); null = node skipped (offline, unknown hardware). */
24165
+ share: number().nullable(),
24166
+ /** Parallel sessions the node sustains at the suggested models with the headroom kept free. */
24167
+ capacitySessions: number(),
24168
+ devices: array(SuggestedDeviceShareSchema).readonly(),
24169
+ skippedReason: string().nullable(),
24170
+ /** What this node's capacity was read from; null when the node is skipped. */
24171
+ capacitySource: CapacitySourceSchema.nullable(),
24172
+ /** Set when the `benchmark` source was asked for and this node used `hardware`. */
24173
+ capacityFallback: CapacityFallbackSchema.nullable()
24174
+ });
24175
+ var SuggestSharesResultSchema = object({
24176
+ headroom: number(),
24177
+ /** The source asked for; each node says what it actually used. */
24178
+ source: CapacitySourceSchema,
24179
+ /** Camera detection rate the capacity is counted in (the fastest camera's fps). */
24180
+ cameraFps: number(),
24181
+ /** The Auto tune capacity floor the models were picked at. */
24182
+ minSessionsPerDevice: number(),
24183
+ nodes: array(SuggestedNodeShareSchema).readonly()
24184
+ });
24185
+ /**
24186
+ * Where the node and device shares come from (D750, D755).
24187
+ * - `hardware` (default) — computed by the system from each node's static
24188
+ * capacity (its accelerators at their Auto tune models, from the measured
24189
+ * latency table), recomputed whenever a node or device joins, leaves, is
24190
+ * switched on or off, or changes model. No load input.
24191
+ * - `benchmark` — the same, from each node's measured capacity (node
24192
+ * benchmark results); a node without results falls back to `hardware`.
24193
+ * - `manual` — the operator's stored sliders.
24194
+ * Either way a node or device that cannot take sessions gives its share to
24195
+ * the others in proportion; the stored values are never rewritten for that.
24196
+ */
24197
+ var ShareSourceSchema = _enum([
24198
+ "hardware",
24199
+ "benchmark",
24200
+ "manual"
24201
+ ]);
24202
+ var SetShareSourceInputSchema = object({ source: ShareSourceSchema });
24203
+ object({
24204
+ nodes: record(string(), number()),
24205
+ devices: record(string(), record(string(), number()))
24206
+ });
24207
+ var EffectiveDeviceShareSchema = object({
24208
+ deviceKey: string(),
24209
+ /** Can take sessions now (enabled, available, can run the root). */
24210
+ eligible: boolean(),
24211
+ /** The share the source assigns, as a percentage of the node's devices. */
24212
+ configuredPct: number(),
24213
+ /** The share actually used, after an ineligible device's share went to the others. */
24214
+ effectivePct: number()
24215
+ });
24216
+ var EffectiveNodeShareSchema = object({
24217
+ nodeId: string(),
24218
+ eligible: boolean(),
24219
+ configuredPct: number(),
24220
+ effectivePct: number(),
24221
+ /** Automatic sources: what this node's share was computed from; null under `manual` or before the first answer. */
24222
+ capacitySource: CapacitySourceSchema.nullable(),
24223
+ /** Automatic `benchmark`: why this node used `hardware` instead. */
24224
+ capacityFallback: CapacityFallbackSchema.nullable(),
24225
+ devices: array(EffectiveDeviceShareSchema).readonly()
24226
+ });
24227
+ var EffectiveSharesSchema = object({
24228
+ source: ShareSourceSchema,
24229
+ policy: SessionPlacementPolicySchema,
24230
+ /** An automatic source with no computed answer yet: the stored sliders are used meanwhile. */
24231
+ autoPending: boolean(),
24232
+ /** When the automatic shares were last computed (ms epoch); null = never. */
24233
+ computedAt: number().nullable(),
24234
+ /** What made the system recompute them last. */
24235
+ trigger: string().nullable(),
24236
+ nodes: array(EffectiveNodeShareSchema).readonly(),
24237
+ /** The relative weights the election reads (before eligibility). */
24238
+ nodeWeights: record(string(), number()),
24239
+ deviceWeights: record(string(), record(string(), number()))
24240
+ });
23805
24241
  object({
23806
24242
  activeCameras: number(),
23807
24243
  throttledCameras: number(),
@@ -24285,6 +24721,22 @@ var MotionSourceEnum = _enum([
24285
24721
  "device-activity"
24286
24722
  ]);
24287
24723
  /**
24724
+ * What opened an on-motion detection SESSION: the motion source that passed the
24725
+ * camera's `motionSources` gate, and what raised it (the camera itself, or a
24726
+ * sensor the operator attached — D672). `sensorName` is the attached sensor's
24727
+ * device name as the orchestrator's camera-sensors resolution last read it;
24728
+ * absent when unknown or when the camera itself triggered.
24729
+ *
24730
+ * Carried on the session attach ONLY so the runner's `DetectionPhaseTransition`
24731
+ * can say what started the session (D672 rule 11, amended 2026-10-06). The
24732
+ * runner never decides anything on it.
24733
+ */
24734
+ var SessionTriggerSchema = object({
24735
+ source: MotionSourceEnum,
24736
+ triggeredBy: MotionTriggeredBySchema,
24737
+ sensorName: string().optional()
24738
+ });
24739
+ /**
24288
24740
  * List of motion sources active on a camera. Empty array is valid:
24289
24741
  * "no source" — happens for battery cams without firmware motion when
24290
24742
  * the operator hasn't opted into the SW analyzer (would hold the
@@ -24536,6 +24988,14 @@ var RunnerCameraConfigSchema = object({
24536
24988
  */
24537
24989
  motionSources: MotionSourcesSchema.default(["analyzer"]),
24538
24990
  /**
24991
+ * What opened this attach, on a SESSION attach only (see
24992
+ * {@link SessionTriggerSchema}). OPTIONAL with no default: absent on a
24993
+ * standing attach, an occupancy burst, a re-dispatch with no motion event
24994
+ * behind it, and every attach from an orchestrator older than the field — the
24995
+ * runner then names no source on the phase event.
24996
+ */
24997
+ sessionTrigger: SessionTriggerSchema.optional(),
24998
+ /**
24539
24999
  * WHICH root detector runs for this camera. The detection counterpart of
24540
25000
  * {@link motionSources}, same shape and same discipline: a per-camera list
24541
25001
  * of sources the system understands, vendor-agnostic, owned here.
@@ -24695,14 +25155,15 @@ var RunnerLocalLoadSchema = object({
24695
25155
  * Per-inference-device live load (multi-device C4). One entry per deviceKey
24696
25156
  * this runner currently has attached cameras on, so the orchestrator's second
24697
25157
  * `balance()` pass (over a node's devices) weights on real per-pool session
24698
- * counts. Empty on single-device / pre-multi-device runners. `queueDepthTotal`
24699
- * per device is 0 until the pool backlog gets a public accessor (follow-up).
25158
+ * counts. Empty on single-device / pre-multi-device runners. There is no
25159
+ * per-device queue depth: the inference pool's backlog has no accessor, and
25160
+ * a field that always read 0 was removed rather than shown as a measurement
25161
+ * (D762).
24700
25162
  */
24701
25163
  devices: array(object({
24702
25164
  deviceKey: string(),
24703
25165
  backend: string(),
24704
- attachedCameras: number(),
24705
- queueDepthTotal: number()
25166
+ attachedCameras: number()
24706
25167
  })).default([]),
24707
25168
  /** Hardware capability flags reported by this node. */
24708
25169
  hardware: object({
@@ -24838,7 +25299,22 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
24838
25299
  */
24839
25300
  cropJpeg: string().optional(),
24840
25301
  parent: DetailParentSchema,
24841
- steps: array(string()).optional()
25302
+ steps: array(string()).optional(),
25303
+ /**
25304
+ * The camera's root model already drew this step's boxes (D730): a
25305
+ * `license_plate` inside the parent vehicle. The named step is NOT
25306
+ * inferred — these FRAME-space boxes are its output — and its
25307
+ * requested children (the plate reader) run on them. Absent ⇒ every
25308
+ * requested step infers as before.
25309
+ */
25310
+ supplied: object({
25311
+ stepId: string(),
25312
+ modelId: string(),
25313
+ boxes: array(object({
25314
+ bbox: NativeCropBboxSchema,
25315
+ score: number()
25316
+ })).min(1)
25317
+ }).optional()
24842
25318
  }), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" }), method(object({
24843
25319
  /** Catalog step id, e.g. `clip-embedding`. */
24844
25320
  stepId: string(),
@@ -24901,14 +25377,6 @@ var CameraPipelineConfigSchema = object({
24901
25377
  settings: record(string(), unknown()).readonly().optional()
24902
25378
  }).nullable().optional()
24903
25379
  });
24904
- var PipelineTemplateSchema = object({
24905
- id: string(),
24906
- name: string(),
24907
- description: string().optional(),
24908
- config: CameraPipelineConfigSchema,
24909
- createdAt: string(),
24910
- updatedAt: string()
24911
- });
24912
25380
  var DeviceStepConfigSchema = object({
24913
25381
  modelId: string().optional(),
24914
25382
  settings: record(string(), unknown()).optional(),
@@ -24982,9 +25450,10 @@ var CameraStepOverridePatchSchema = object({
24982
25450
  modelId: string().optional(),
24983
25451
  settings: record(string(), unknown()).readonly().optional()
24984
25452
  });
25453
+ var CameraStepSettingsSchema = record(string(), record(string(), unknown()).readonly());
24985
25454
  var CameraPipelineSettingsSchema = object({
24986
- pinnedAgentNodeId: string().optional(),
24987
25455
  stepToggles: record(string(), boolean()).optional(),
25456
+ stepSettings: CameraStepSettingsSchema.optional(),
24988
25457
  stepOverridesByDevice: record(string(), record(string(), record(string(), CameraStepOverridePatchSchema))).optional(),
24989
25458
  pipelineByAgent: record(string(), CameraPipelineForAgentSchema).optional()
24990
25459
  });
@@ -25017,7 +25486,10 @@ var PipelineAssignmentSchema = object({
25017
25486
  });
25018
25487
  /**
25019
25488
  * Per-agent load summary surfaced to the load balancer + dashboards.
25020
- * Aggregated from each runner's `getLocalLoad` cap call.
25489
+ * Aggregated from each runner's `getLocalLoad` cap call. In the
25490
+ * `getAgentLoad` report, a single-device node's default-pool sessions (no
25491
+ * `deviceKey`) are credited to its one eligible device in `load.devices` —
25492
+ * the default pool IS that device (D745); the balancer's census stays raw.
25021
25493
  */
25022
25494
  var AgentLoadSummarySchema = object({
25023
25495
  nodeId: string(),
@@ -25106,26 +25578,27 @@ var CameraBrokerStatusSchema = object({
25106
25578
  width: number(),
25107
25579
  height: number(),
25108
25580
  subscribers: number(),
25109
- inFps: number(),
25110
- outFps: number()
25581
+ /**
25582
+ * Encoded packets/s the broker receives from the camera. null when the
25583
+ * broker's stats read failed — unknown, never 0 (a 0 here reads as a stall).
25584
+ * There is no output rate: decoding runs in the session decode workers, not
25585
+ * in the broker, so the broker's own decoded-frame rate is 0 on every live
25586
+ * camera and is not served (D758).
25587
+ */
25588
+ inFps: number().nullable()
25111
25589
  })).readonly(),
25112
25590
  webrtcSessions: number(),
25113
25591
  rtspRestream: boolean()
25114
25592
  });
25115
- /** Shared-memory ring statistics within the decoder block. */
25116
- var CameraDecoderShmSchema = object({
25117
- framesWritten: number(),
25118
- getFrameHits: number(),
25119
- getFrameMisses: number(),
25120
- budgetMb: number()
25121
- });
25122
- /** Decoder block — null when the decoder stage is unreachable or inactive. */
25123
- var CameraDecoderStatusSchema = object({
25124
- nodeId: string(),
25125
- formats: array(string()).readonly(),
25126
- sessionCount: number(),
25127
- shm: CameraDecoderShmSchema
25128
- });
25593
+ /**
25594
+ * Decoder block — WHERE decode runs (co-located with the detection node by
25595
+ * construction); null when the camera has no detection node. It carries no
25596
+ * frame counter: the shared-memory plane whose counters it used to serve is
25597
+ * gone, and those fields read 0 forever. Whether frames actually flow is read
25598
+ * from `detection.actualFps` (frames delivered to and processed by the
25599
+ * detector), never from a counter nothing feeds.
25600
+ */
25601
+ var CameraDecoderStatusSchema = object({ nodeId: string() });
25129
25602
  /** Motion block — null when motion detection is not active for this device. */
25130
25603
  var CameraMotionStatusSchema = object({
25131
25604
  enabled: boolean(),
@@ -25482,12 +25955,6 @@ method(object({
25482
25955
  }), object({ success: literal(true) }), {
25483
25956
  kind: "mutation",
25484
25957
  auth: "admin"
25485
- }), method(object({
25486
- agentNodeId: string(),
25487
- detectWeight: number().positive().nullable()
25488
- }), object({ success: literal(true) }), {
25489
- kind: "mutation",
25490
- auth: "admin"
25491
25958
  }), method(object({
25492
25959
  agentNodeId: string(),
25493
25960
  detect: boolean().nullable().optional(),
@@ -25529,6 +25996,15 @@ method(object({
25529
25996
  }), {
25530
25997
  kind: "mutation",
25531
25998
  auth: "admin"
25999
+ }), method(AutoTuneOptionsSchema, AutoTunePlanSchema, { auth: "admin" }), method(AutoTuneApplyInputSchema, AutoTuneApplyResultSchema, {
26000
+ kind: "mutation",
26001
+ auth: "admin"
26002
+ }), method(LoadBalancingSharesInputSchema, object({ success: literal(true) }), {
26003
+ kind: "mutation",
26004
+ auth: "admin"
26005
+ }), method(PlacementStatsInputSchema, PlacementStatsSchema, { auth: "admin" }), method(SuggestSharesInputSchema, SuggestSharesResultSchema, { auth: "admin" }), method(_void(), EffectiveSharesSchema, { auth: "admin" }), method(SetShareSourceInputSchema, object({ success: literal(true) }), {
26006
+ kind: "mutation",
26007
+ auth: "admin"
25532
26008
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
25533
26009
  deviceId: number(),
25534
26010
  addonId: string(),
@@ -25545,6 +26021,13 @@ method(object({
25545
26021
  }), object({ success: literal(true) }), {
25546
26022
  kind: "mutation",
25547
26023
  auth: "admin"
26024
+ }), method(object({
26025
+ deviceId: number(),
26026
+ addonId: string(),
26027
+ settings: record(string(), unknown()).nullable()
26028
+ }), object({ success: literal(true) }), {
26029
+ kind: "mutation",
26030
+ auth: "admin"
25548
26031
  }), method(object({
25549
26032
  deviceId: number(),
25550
26033
  agentNodeId: string(),
@@ -25568,25 +26051,7 @@ method(object({
25568
26051
  }), method(_void(), DiskReconcileJobSchema, {
25569
26052
  kind: "mutation",
25570
26053
  auth: "admin"
25571
- }), method(_void(), DiskReconcileJobSchema, { auth: "admin" }), method(_void(), array(PipelineTemplateSchema).readonly()), method(object({
25572
- name: string(),
25573
- description: string().optional(),
25574
- config: CameraPipelineConfigSchema
25575
- }), PipelineTemplateSchema, {
25576
- kind: "mutation",
25577
- auth: "admin"
25578
- }), method(object({
25579
- id: string(),
25580
- name: string().optional(),
25581
- description: string().optional(),
25582
- config: CameraPipelineConfigSchema.optional()
25583
- }), PipelineTemplateSchema, {
25584
- kind: "mutation",
25585
- auth: "admin"
25586
- }), method(object({ id: string() }), object({ success: literal(true) }), {
25587
- kind: "mutation",
25588
- auth: "admin"
25589
- });
26054
+ }), method(_void(), DiskReconcileJobSchema, { auth: "admin" });
25590
26055
  /**
25591
26056
  * Cap → event-kind mapping for the SENSOR / CONTROL cap families — the table
25592
26057
  * `pipeline-analytics.listEventKinds` uses to turn a linked device's bound
@@ -26280,7 +26745,19 @@ var SsoBridgeClaimsSchema = object({
26280
26745
  * editing a descriptor must not retroactively extend or shorten a link the
26281
26746
  * operator already consented to.
26282
26747
  */
26283
- refreshTtl: union([number().int().positive(), literal("never")]).optional()
26748
+ refreshTtl: union([number().int().positive(), literal("never")]).optional(),
26749
+ /**
26750
+ * Opaque handle of a hub-side LINK intent (D782). Set by an OIDC callback
26751
+ * that was started from a signed-in user's "Link" button: the finish then
26752
+ * links this identity to the intent's user instead of signing anyone in.
26753
+ * The handle carries no user id — the hub resolves it, single-use.
26754
+ */
26755
+ linkIntent: string().optional(),
26756
+ /**
26757
+ * Verified `iss` of the id_token behind an OIDC login bridge (D782). A
26758
+ * subject is unique only per issuer, so a link is bound to it.
26759
+ */
26760
+ issuer: string().optional()
26284
26761
  });
26285
26762
  method(object({
26286
26763
  claims: SsoBridgeClaimsSchema,
@@ -27939,8 +28416,6 @@ var WebrtcStreamChoiceSchema = object({
27939
28416
  ]).nullable(),
27940
28417
  /** Input FPS from the camera (null for adaptive). */
27941
28418
  inputFps: number().nullable(),
27942
- /** Decoded FPS (null for adaptive). */
27943
- decodeFps: number().nullable(),
27944
28419
  /** Bitrate in kbps (null for adaptive). */
27945
28420
  bitrateKbps: number().nullable()
27946
28421
  });
@@ -28217,7 +28692,22 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
28217
28692
  * field their hints were silently stripped by the schema and the
28218
28693
  * adaptive ladder started blind on the client's display size.
28219
28694
  */
28220
- hints: webrtcClientHintsSchema.optional()
28695
+ hints: webrtcClientHintsSchema.optional(),
28696
+ /**
28697
+ * Talk-back (D771): relay the PEER's audio to the device's speaker
28698
+ * through the `intercom` cap's push-talk triple. When `true` and the
28699
+ * offer lets the peer send audio, the answer's audio is `sendrecv`
28700
+ * and every inbound frame goes to `intercom.pushTalkAudio` for this
28701
+ * `deviceId`; absent/false answers `sendonly`, as for every viewer.
28702
+ *
28703
+ * TRUSTED-CALLER ONLY. Set by the Alexa export for an Echo on a camera
28704
+ * with `intercom`, when the linked user may control that camera. The
28705
+ * hub STRIPS it from every request-bound call (a browser), exactly as
28706
+ * it overwrites `relayOnly` — a viewer's talk permission is the
28707
+ * intercom cap's own surface (share tokens gate it there), and this
28708
+ * flag must not become a second door to the camera's speaker.
28709
+ */
28710
+ talkback: boolean().optional()
28221
28711
  }), object({
28222
28712
  sessionId: string(),
28223
28713
  sdpAnswer: string()
@@ -28272,6 +28762,14 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
28272
28762
  */
28273
28763
  alive: boolean()
28274
28764
  })), method(object({
28765
+ deviceId: number().int().nonnegative(),
28766
+ sessionId: string(),
28767
+ downlinkMbps: number().nonnegative()
28768
+ }), object({
28769
+ outcome: _enum(["switching", "held"]),
28770
+ tier: CamProfileSchema.nullable(),
28771
+ reason: string()
28772
+ }), { kind: "mutation" }), method(object({
28275
28773
  deviceId: number().int().nonnegative(),
28276
28774
  sessionId: string()
28277
28775
  }), WebrtcSessionDebugSchema, { kind: "query" });
@@ -28511,6 +29009,59 @@ var AddonAutoUpdateSchema = ChannelWithInheritSchema;
28511
29009
  var RestartAddonResultSchema = unknown();
28512
29010
  var InstallPackageResultSchema = unknown();
28513
29011
  var ReloadPackagesResultSchema = unknown();
29012
+ /**
29013
+ * What an uninstall did on ONE node.
29014
+ * - `uninstalled` — removed: runner(s) stopped, caps gone, code deleted.
29015
+ * - `not-installed` — the node did not have it (nothing to do).
29016
+ * - `refused` — protected / bootstrap package; nothing touched.
29017
+ * - `failed` — attempted and did not complete; `error` says why.
29018
+ * - `pending-reconnect` — the node is OFFLINE: its record was pruned so the
29019
+ * back-fill never returns the package, and the stale-addon sweep removes the
29020
+ * copy when the node registers again (only once the hub no longer has it).
29021
+ */
29022
+ var UninstallNodeOutcomeSchema = _enum([
29023
+ "uninstalled",
29024
+ "not-installed",
29025
+ "refused",
29026
+ "failed",
29027
+ "pending-reconnect"
29028
+ ]);
29029
+ var UninstallNodeResultSchema = object({
29030
+ nodeId: string(),
29031
+ outcome: UninstallNodeOutcomeSchema,
29032
+ error: string().optional(),
29033
+ addonIds: array(string()).readonly(),
29034
+ runnersStopped: array(string()).readonly(),
29035
+ warnings: array(string()).readonly()
29036
+ });
29037
+ var UninstallPackageResultSchema = object({
29038
+ /** Every targeted node ended `uninstalled`, `not-installed` or `pending-reconnect`. */
29039
+ success: boolean(),
29040
+ packageName: string(),
29041
+ results: array(UninstallNodeResultSchema).readonly()
29042
+ });
29043
+ /**
29044
+ * `unreachable` lists online agents whose status read FAILED — absence from
29045
+ * `installations` is only "not installed" for a node that answered (D315).
29046
+ */
29047
+ var PackageInstallationsSchema = object({
29048
+ installations: array(object({
29049
+ packageName: string(),
29050
+ nodeId: string(),
29051
+ nodeName: string(),
29052
+ isHub: boolean(),
29053
+ isOnline: boolean(),
29054
+ version: string().nullable(),
29055
+ addonIds: array(string()).readonly(),
29056
+ source: _enum(["live", "recorded"]),
29057
+ /** The hub installs this package too. `false` on an agent row = an orphan. */
29058
+ onHub: boolean()
29059
+ })).readonly(),
29060
+ unreachable: array(object({
29061
+ nodeId: string(),
29062
+ error: string()
29063
+ })).readonly()
29064
+ });
28514
29065
  var BulkUpdateItemStatusSchema = _enum([
28515
29066
  "queued",
28516
29067
  "updating",
@@ -28593,10 +29144,14 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
28593
29144
  }), method(object({ packageName: string() }), InstallPackageResultSchema, {
28594
29145
  kind: "mutation",
28595
29146
  auth: "admin"
28596
- }), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({ packageName: string() }), unknown(), {
29147
+ }), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({
29148
+ packageName: string().min(1),
29149
+ nodeId: string().optional(),
29150
+ everywhere: boolean().optional()
29151
+ }), UninstallPackageResultSchema, {
28597
29152
  kind: "mutation",
28598
29153
  auth: "admin"
28599
- }), method(_void(), ReloadPackagesResultSchema, {
29154
+ }), method(object({ packageName: string().optional() }), PackageInstallationsSchema, { auth: "admin" }), method(_void(), ReloadPackagesResultSchema, {
28600
29155
  kind: "mutation",
28601
29156
  auth: "admin"
28602
29157
  }), method(object({ query: string().optional() }), array(SearchResultSchema)), method(object({ nodeId: string().optional() }), array(PackageUpdateSchema).readonly(), { auth: "admin" }), method(object({
@@ -32036,7 +32591,7 @@ var LocalInterfaceSchema = object({
32036
32591
  name: string(),
32037
32592
  family: _enum(["IPv4", "IPv6"]),
32038
32593
  address: string(),
32039
- /** CIDR shorthand (e.g. `192.168.x.x/24`). Empty when OS doesn't expose. */
32594
+ /** CIDR shorthand (e.g. `192.168.10.10/24`). Empty when OS doesn't expose. */
32040
32595
  cidr: string(),
32041
32596
  /** OS netmask. Stable across calls so the SDK can hash on it. */
32042
32597
  netmask: string(),
@@ -32090,7 +32645,9 @@ var ConnectionEndpointSchema = object({
32090
32645
  "lan-ipv4",
32091
32646
  "lan-ipv6",
32092
32647
  "public",
32093
- "loopback"
32648
+ "loopback",
32649
+ "app-link",
32650
+ "custom"
32094
32651
  ]),
32095
32652
  /**
32096
32653
  * Originating-interface kind — `lan`/`wifi`/`docker`/`vpn`/`other`/
@@ -32159,15 +32716,27 @@ var GetConnectionEndpointsResultSchema = object({
32159
32716
  localPort: AdvertisedLocalPortSchema
32160
32717
  });
32161
32718
  /**
32162
- * The chosen outbound endpoint for notification artifacts. `baseUrl: null` =
32163
- * AUTO (resolved from the candidate ranking at send time); `resolved` reports
32164
- * what AUTO currently picks, so the UI can show the effective value either way.
32719
+ * The address flagged for notification taps (`notificationTaps`). `baseUrl: null` = AUTO, which
32720
+ * since D709 is the CamStack app link; `resolved` reports the effective value,
32721
+ * so the UI can show it either way.
32165
32722
  */
32166
32723
  var NotificationEndpointSchema = object({
32167
32724
  /** The operator's explicit choice, or null for AUTO. */
32168
32725
  baseUrl: string().nullable(),
32169
- /** What the ranking currently resolves to (null when nothing is reachable). */
32170
- resolved: string().nullable()
32726
+ /**
32727
+ * The effective flagged address: the explicit choice, else (AUTO) the
32728
+ * CamStack app link `https://camstack.zentik.app` (D709). A pre-D709 hub
32729
+ * answered the public tunnel / mesh here, or null.
32730
+ */
32731
+ resolved: string().nullable(),
32732
+ /**
32733
+ * The hub origin an app link carries as `hub=` (D709): the hub's best
32734
+ * public HTTPS address — the tunnel, then the mesh (Tailscale MagicDNS) —
32735
+ * picked from this cap's own palette by `pickAppLinkHub`. `null` when the
32736
+ * hub advertises neither; the app link is then minted without `hub=`.
32737
+ * Absent on a pre-D709 hub.
32738
+ */
32739
+ appLinkHub: string().nullable()
32171
32740
  });
32172
32741
  /**
32173
32742
  * The URLs the SDK / viewer should race for API access. `baseUrls` empty =
@@ -32180,6 +32749,72 @@ var ViewerEndpointsSchema = object({
32180
32749
  /** What the ranking currently resolves to (may be empty if nothing is up). */
32181
32750
  resolved: array(string()).readonly()
32182
32751
  });
32752
+ /**
32753
+ * DEPRECATED compatibility shape of `getHubAddresses` (D729 amendment, kept
32754
+ * for addons built against it): `cluster` is the `internal` role, `browser`
32755
+ * the `publicEndpoint` role; `override` is the flagged address.
32756
+ */
32757
+ var HubAddressSnapshotSchema = object({
32758
+ override: string().nullable(),
32759
+ resolved: string().nullable(),
32760
+ source: _enum([
32761
+ "override",
32762
+ "auto",
32763
+ "none"
32764
+ ])
32765
+ });
32766
+ var HubAddressesSchema = object({
32767
+ cluster: HubAddressSnapshotSchema,
32768
+ browser: HubAddressSnapshotSchema
32769
+ });
32770
+ /**
32771
+ * What an address is used for (`hub-address.ts`, D734). `appConnections` is
32772
+ * many-valued; `notificationTaps`, `publicEndpoint` and `internal` are carried
32773
+ * by at most one address.
32774
+ */
32775
+ var HubAddressRoleSchema = _enum(HUB_ADDRESS_ROLES);
32776
+ var RoleSourceSchema = _enum([
32777
+ "flagged",
32778
+ "auto",
32779
+ "none"
32780
+ ]);
32781
+ /** One single-valued role: the flagged address, the one in use, and why. */
32782
+ var HubAddressRoleResolutionSchema = object({
32783
+ /** The address carrying the flag, or null = automatic. */
32784
+ flagged: string().nullable(),
32785
+ /** The address in use, or null when nothing qualifies (never loopback). */
32786
+ resolved: string().nullable(),
32787
+ source: RoleSourceSchema
32788
+ });
32789
+ var HubAppConnectionsResolutionSchema = object({
32790
+ /** The addresses flagged `appConnections`, or empty = automatic. */
32791
+ flagged: array(string()).readonly(),
32792
+ /** What the apps race right now. */
32793
+ resolved: array(string()).readonly(),
32794
+ source: RoleSourceSchema
32795
+ });
32796
+ var HubAddressBookSchema = object({
32797
+ rows: array(ConnectionEndpointSchema.extend({
32798
+ /** In the hub's detected palette right now. */
32799
+ detected: boolean(),
32800
+ /** Entered by the operator (removable). */
32801
+ custom: boolean(),
32802
+ /** The roles explicitly flagged on this address. */
32803
+ flags: array(HubAddressRoleSchema).readonly(),
32804
+ /** The roles this address serves right now — flagged or automatic. */
32805
+ inUse: array(HubAddressRoleSchema).readonly(),
32806
+ /** The roles this address may be flagged with. */
32807
+ eligible: array(HubAddressRoleSchema).readonly()
32808
+ })).readonly(),
32809
+ roles: object({
32810
+ appConnections: HubAppConnectionsResolutionSchema,
32811
+ notificationTaps: HubAddressRoleResolutionSchema,
32812
+ internal: HubAddressRoleResolutionSchema,
32813
+ publicEndpoint: HubAddressRoleResolutionSchema
32814
+ }),
32815
+ /** The `hub=` an app link carries (D709), or null. */
32816
+ appLinkHub: string().nullable()
32817
+ });
32183
32818
  var AllowedAddressesSchema = object({
32184
32819
  /**
32185
32820
  * Allowlist of interface addresses operators have explicitly opted
@@ -32221,8 +32856,29 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
32221
32856
  * Pass `'https'` when the caller is itself loaded over HTTPS
32222
32857
  * to avoid mixed-content blocks in the browser. The public
32223
32858
  * tunnel always emits `https://` regardless. */
32224
- scheme: _enum(["http", "https"]).optional()
32225
- }), 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, {
32859
+ scheme: _enum(["http", "https"]).optional(),
32860
+ /** Append the CamStack app link entry (`kind: 'app-link'`, D709) —
32861
+ * an address notification taps can be flagged with, not a hub
32862
+ * route. Default `false`: racers and rankers never see it. */
32863
+ includeAppLink: boolean().optional()
32864
+ }), 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({
32865
+ baseUrl: string(),
32866
+ label: string().max(80)
32867
+ }), HubAddressBookSchema, {
32868
+ kind: "mutation",
32869
+ auth: "admin"
32870
+ }), method(object({ baseUrl: string() }), HubAddressBookSchema, {
32871
+ kind: "mutation",
32872
+ auth: "admin"
32873
+ }), method(object({
32874
+ role: HubAddressRoleSchema,
32875
+ baseUrl: string().nullable(),
32876
+ enabled: boolean(),
32877
+ acceptInsecureHttp: boolean().optional()
32878
+ }), HubAddressBookSchema, {
32879
+ kind: "mutation",
32880
+ auth: "admin"
32881
+ }), 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, {
32226
32882
  kind: "mutation",
32227
32883
  auth: "admin"
32228
32884
  }), method(object({
@@ -32550,7 +33206,7 @@ var MeshPeerSchema = object({
32550
33206
  tags: array(string()).readonly(),
32551
33207
  /** True when the peer advertises itself as an exit-node candidate. */
32552
33208
  exitNodeOption: boolean(),
32553
- /** Subnet routes the peer advertises (e.g. `["192.168.x.x/24"]`). */
33209
+ /** Subnet routes the peer advertises (e.g. `["192.168.10.0/24"]`). */
32554
33210
  advertisedRoutes: array(string()).readonly(),
32555
33211
  /** Owner account login (e.g. `foo@example.com`). Null for tagged peers. */
32556
33212
  userLogin: string().nullable(),
@@ -32680,7 +33336,8 @@ var MotionStatusSchema = object({
32680
33336
  * writes this slice (not even a boot seed), and neither does the runner's
32681
33337
  * phase machine: its phase is "a session is attached" for every on-motion
32682
33338
  * session, not motion, and it now has its own `DetectionPhaseTransition`.
32683
- * A provider's `isDetected` answers from the hub's slice.
33339
+ * A provider's `isDetected` and `getStatus` answer from the hub's slice
33340
+ * (`hubMotionNativeProvider`).
32684
33341
  * - **Sensors** (Home Assistant binary sensors, Homematic, Matter, Alexa
32685
33342
  * imports) — the provider pushes both edges itself, from the upstream
32686
33343
  * system's own state change. That is the sensor's own fact.
@@ -33878,7 +34535,13 @@ var OsdStatusSchema = object({ overlays: array(object({
33878
34535
  */
33879
34536
  availablePositions: array(OsdPositionEnum).readonly(),
33880
34537
  /** Firmware does not allow editing the `text` field (e.g. timestamp). */
33881
- readOnly: boolean().optional()
34538
+ readOnly: boolean().optional(),
34539
+ /**
34540
+ * Firmware text ceiling for this overlay. Absent = no known limit.
34541
+ * The OSD manager truncates here on every write — never stores its own
34542
+ * copy on the binding.
34543
+ */
34544
+ maxCharacters: number().int().positive().optional()
33882
34545
  })).readonly() });
33883
34546
  var OsdOverlayPatchSchema = object({
33884
34547
  enabled: boolean().optional(),
@@ -33929,7 +34592,9 @@ var OsdTemplateBindingSchema = object({
33929
34592
  valuePath: string().min(1).max(64),
33930
34593
  /** Convert TO this unit at render (`tryConvertUnit`). Absent = source unit. */
33931
34594
  displayUnit: string().max(16).optional(),
33932
- maxDecimals: number().int().min(0).max(4).default(1)
34595
+ maxDecimals: number().int().min(0).max(4).default(1),
34596
+ /** Raw value → display text (same shape as slot binding). Empty string hides. */
34597
+ valueMap: record(string(), string()).optional()
33933
34598
  });
33934
34599
  /**
33935
34600
  * A named template: bindings (alias → leaf field) + a parser that
@@ -33979,18 +34644,11 @@ var OsdSlotBindingSchema = object({
33979
34644
  source: OsdSourceSchema,
33980
34645
  /** `${value}` and `${unit}` are substituted; every occurrence. */
33981
34646
  template: string().max(96).default("${value}"),
33982
- /** Truncate with an ellipsis past this length. Absent = no limit. */
33983
- maxCharacters: number().int().min(4).max(64).optional(),
33984
34647
  /**
33985
34648
  * Decimal places for a numeric value. `0` yields an integer — the
33986
34649
  * documented workaround for firmwares that reject `.` in overlay text.
33987
34650
  */
33988
34651
  maxDecimals: number().int().min(0).max(4).default(1),
33989
- /**
33990
- * Appended via `${unit}` when no unit conversion produces a label.
33991
- * Prefer `source.displayUnit` for converted device-state values.
33992
- */
33993
- unitLabel: string().max(8).optional(),
33994
34652
  /** Raw value → display text, e.g. `{"true":"MOTION","false":""}`. */
33995
34653
  valueMap: record(string(), string()).optional(),
33996
34654
  /** Time windows in which the slot is shown. Absent = always. */
@@ -33999,9 +34657,7 @@ var OsdSlotBindingSchema = object({
33999
34657
  * Display gate, in the notification centre's condition vocabulary.
34000
34658
  * Only the keys reported by `getConditionSupport` are accepted.
34001
34659
  */
34002
- conditions: NcConditionsSchema.optional(),
34003
- /** Rendered when the gate is closed or the value unreadable. Empty = hide. */
34004
- fallbackText: string().max(64).default("")
34660
+ conditions: NcConditionsSchema.optional()
34005
34661
  });
34006
34662
  /** One camera slot, as the operator sees it: firmware truth + our binding. */
34007
34663
  var OsdSlotViewSchema = object({
@@ -38413,6 +39069,32 @@ var TotpStatusSchema = object({
38413
39069
  /** Null when no row exists OR the row is still pending confirmation. */
38414
39070
  confirmedAt: number().nullable()
38415
39071
  });
39072
+ /**
39073
+ * user-management — singleton capability for user accounts, API keys,
39074
+ * and scoped tokens.
39075
+ *
39076
+ * v2 model: every method gated by `auth: 'admin'`. Admin-only delegation
39077
+ * — the subset check on `setUserScopes` / `createScopedToken` is moot
39078
+ * because non-admins never reach these. If/when we open non-admin
39079
+ * delegation, structural caller-scope subset check goes inside the
39080
+ * provider.
39081
+ */
39082
+ var ExternalIdentitySchema = object({
39083
+ /** Login-method id of the provider instance, e.g. `auth-oidc/authentik`. */
39084
+ provider: string(),
39085
+ /** The IdP's stable subject (`sub`) for this account. */
39086
+ subject: string(),
39087
+ /** The verified `iss` of the IdP the identity was linked under — `sub` is unique only per issuer. */
39088
+ issuer: string(),
39089
+ userId: string(),
39090
+ /** What the IdP called the account at link time (username / email) — display only. */
39091
+ label: string().optional(),
39092
+ linkedAt: number()
39093
+ });
39094
+ var ExternalIdentityKeySchema = object({
39095
+ provider: string().min(1),
39096
+ subject: string().min(1)
39097
+ });
38416
39098
  method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserInputSchema, UserSummarySchema, {
38417
39099
  kind: "mutation",
38418
39100
  auth: "admin",
@@ -38526,7 +39208,22 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
38526
39208
  userId: string(),
38527
39209
  username: string(),
38528
39210
  scopes: array(TokenScopeSchema)
38529
- }).nullable(), { access: "view" }), method(_void(), array(OauthSessionSummarySchema), { auth: "admin" }), method(object({ id: string() }), object({ success: boolean() }), {
39211
+ }).nullable(), { access: "view" }), method(object({ userId: string() }), array(ExternalIdentitySchema), { auth: "admin" }), method(ExternalIdentityKeySchema, object({
39212
+ userId: string(),
39213
+ issuer: string()
39214
+ }).nullable(), { auth: "admin" }), method(ExternalIdentityKeySchema.extend({
39215
+ userId: string(),
39216
+ issuer: string().min(1),
39217
+ label: string().optional()
39218
+ }), object({ success: literal(true) }), {
39219
+ kind: "mutation",
39220
+ auth: "admin",
39221
+ access: "create"
39222
+ }), method(ExternalIdentityKeySchema.extend({ userId: string() }), object({ success: boolean() }), {
39223
+ kind: "mutation",
39224
+ auth: "admin",
39225
+ access: "delete"
39226
+ }), method(_void(), array(OauthSessionSummarySchema), { auth: "admin" }), method(object({ id: string() }), object({ success: boolean() }), {
38530
39227
  kind: "mutation",
38531
39228
  auth: "admin",
38532
39229
  access: "delete"
@@ -39228,6 +39925,16 @@ var zoneRulesCapability = {
39228
39925
  durability: "restored"
39229
39926
  };
39230
39927
  SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
39928
+ Object.freeze({
39929
+ person: .5,
39930
+ vehicle: .5,
39931
+ animal: .5
39932
+ });
39933
+ Object.freeze({
39934
+ person: .65,
39935
+ vehicle: .65,
39936
+ animal: .65
39937
+ });
39231
39938
  /**
39232
39939
  * Accessory device helpers — shared across drivers.
39233
39940
  *
@@ -40926,6 +41633,12 @@ Object.freeze({
40926
41633
  addonId: null,
40927
41634
  access: "view"
40928
41635
  },
41636
+ "addons.listInstallations": {
41637
+ capName: "addons",
41638
+ capScope: "system",
41639
+ addonId: null,
41640
+ access: "view"
41641
+ },
40929
41642
  "addons.listJobs": {
40930
41643
  capName: "addons",
40931
41644
  capScope: "system",
@@ -42108,90 +42821,18 @@ Object.freeze({
42108
42821
  addonId: null,
42109
42822
  access: "create"
42110
42823
  },
42111
- "decoder.createSession": {
42112
- capName: "decoder",
42113
- capScope: "system",
42114
- addonId: null,
42115
- access: "view"
42116
- },
42117
- "decoder.destroySession": {
42118
- capName: "decoder",
42119
- capScope: "system",
42120
- addonId: null,
42121
- access: "delete"
42122
- },
42123
- "decoder.getFrame": {
42124
- capName: "decoder",
42125
- capScope: "system",
42126
- addonId: null,
42127
- access: "view"
42128
- },
42129
42824
  "decoder.getInfo": {
42130
42825
  capName: "decoder",
42131
42826
  capScope: "system",
42132
42827
  addonId: null,
42133
42828
  access: "view"
42134
42829
  },
42135
- "decoder.getShmStats": {
42136
- capName: "decoder",
42137
- capScope: "system",
42138
- addonId: null,
42139
- access: "view"
42140
- },
42141
- "decoder.getStats": {
42142
- capName: "decoder",
42143
- capScope: "system",
42144
- addonId: null,
42145
- access: "view"
42146
- },
42147
- "decoder.listActiveSessions": {
42148
- capName: "decoder",
42149
- capScope: "system",
42150
- addonId: null,
42151
- access: "view"
42152
- },
42153
- "decoder.openStream": {
42154
- capName: "decoder",
42155
- capScope: "system",
42156
- addonId: null,
42157
- access: "view"
42158
- },
42159
- "decoder.pullFrames": {
42160
- capName: "decoder",
42161
- capScope: "system",
42162
- addonId: null,
42163
- access: "view"
42164
- },
42165
- "decoder.pullHandles": {
42166
- capName: "decoder",
42167
- capScope: "system",
42168
- addonId: null,
42169
- access: "view"
42170
- },
42171
- "decoder.pushPacket": {
42172
- capName: "decoder",
42173
- capScope: "system",
42174
- addonId: null,
42175
- access: "view"
42176
- },
42177
42830
  "decoder.reprobeHwaccel": {
42178
42831
  capName: "decoder",
42179
42832
  capScope: "system",
42180
42833
  addonId: null,
42181
42834
  access: "create"
42182
42835
  },
42183
- "decoder.supportsCodec": {
42184
- capName: "decoder",
42185
- capScope: "system",
42186
- addonId: null,
42187
- access: "view"
42188
- },
42189
- "decoder.updateConfig": {
42190
- capName: "decoder",
42191
- capScope: "system",
42192
- addonId: null,
42193
- access: "view"
42194
- },
42195
42836
  "detectionPipeline.applyDeviceSettingsPatch": {
42196
42837
  capName: "detection-pipeline",
42197
42838
  capScope: "device",
@@ -43680,12 +44321,24 @@ Object.freeze({
43680
44321
  addonId: null,
43681
44322
  access: "view"
43682
44323
  },
44324
+ "localNetwork.addCustomAddress": {
44325
+ capName: "local-network",
44326
+ capScope: "system",
44327
+ addonId: null,
44328
+ access: "create"
44329
+ },
43683
44330
  "localNetwork.downloadCa": {
43684
44331
  capName: "local-network",
43685
44332
  capScope: "system",
43686
44333
  addonId: null,
43687
44334
  access: "view"
43688
44335
  },
44336
+ "localNetwork.getAddresses": {
44337
+ capName: "local-network",
44338
+ capScope: "system",
44339
+ addonId: null,
44340
+ access: "view"
44341
+ },
43689
44342
  "localNetwork.getAllowedAddresses": {
43690
44343
  capName: "local-network",
43691
44344
  capScope: "system",
@@ -43698,6 +44351,12 @@ Object.freeze({
43698
44351
  addonId: null,
43699
44352
  access: "view"
43700
44353
  },
44354
+ "localNetwork.getHubAddresses": {
44355
+ capName: "local-network",
44356
+ capScope: "system",
44357
+ addonId: null,
44358
+ access: "view"
44359
+ },
43701
44360
  "localNetwork.getNotificationEndpoint": {
43702
44361
  capName: "local-network",
43703
44362
  capScope: "system",
@@ -43734,6 +44393,12 @@ Object.freeze({
43734
44393
  addonId: null,
43735
44394
  access: "create"
43736
44395
  },
44396
+ "localNetwork.removeCustomAddress": {
44397
+ capName: "local-network",
44398
+ capScope: "system",
44399
+ addonId: null,
44400
+ access: "delete"
44401
+ },
43737
44402
  "localNetwork.resetAllowlistToBestMatch": {
43738
44403
  capName: "local-network",
43739
44404
  capScope: "system",
@@ -43746,6 +44411,12 @@ Object.freeze({
43746
44411
  addonId: null,
43747
44412
  access: "create"
43748
44413
  },
44414
+ "localNetwork.setAddressRole": {
44415
+ capName: "local-network",
44416
+ capScope: "system",
44417
+ addonId: null,
44418
+ access: "create"
44419
+ },
43749
44420
  "localNetwork.setAllowedAddresses": {
43750
44421
  capName: "local-network",
43751
44422
  capScope: "system",
@@ -45192,6 +45863,12 @@ Object.freeze({
45192
45863
  addonId: null,
45193
45864
  access: "create"
45194
45865
  },
45866
+ "pipelineAnalytics.setRetrainFrameComplete": {
45867
+ capName: "pipeline-analytics",
45868
+ capScope: "device",
45869
+ addonId: null,
45870
+ access: "create"
45871
+ },
45195
45872
  "pipelineAnalytics.setTrackFlags": {
45196
45873
  capName: "pipeline-analytics",
45197
45874
  capScope: "device",
@@ -45228,6 +45905,12 @@ Object.freeze({
45228
45905
  addonId: null,
45229
45906
  access: "delete"
45230
45907
  },
45908
+ "pipelineAnalytics.writeRetrainArchive": {
45909
+ capName: "pipeline-analytics",
45910
+ capScope: "device",
45911
+ addonId: null,
45912
+ access: "create"
45913
+ },
45231
45914
  "pipelineExecutor.cacheFrameInPool": {
45232
45915
  capName: "pipeline-executor",
45233
45916
  capScope: "system",
@@ -45240,13 +45923,13 @@ Object.freeze({
45240
45923
  addonId: null,
45241
45924
  access: "delete"
45242
45925
  },
45243
- "pipelineExecutor.deleteModel": {
45926
+ "pipelineExecutor.clearModelBoundDeviceOverrides": {
45244
45927
  capName: "pipeline-executor",
45245
45928
  capScope: "system",
45246
45929
  addonId: null,
45247
45930
  access: "delete"
45248
45931
  },
45249
- "pipelineExecutor.deleteTemplate": {
45932
+ "pipelineExecutor.deleteModel": {
45250
45933
  capName: "pipeline-executor",
45251
45934
  capScope: "system",
45252
45935
  addonId: null,
@@ -45390,12 +46073,6 @@ Object.freeze({
45390
46073
  addonId: null,
45391
46074
  access: "view"
45392
46075
  },
45393
- "pipelineExecutor.listTemplates": {
45394
- capName: "pipeline-executor",
45395
- capScope: "system",
45396
- addonId: null,
45397
- access: "view"
45398
- },
45399
46076
  "pipelineExecutor.rearmInferenceDevice": {
45400
46077
  capName: "pipeline-executor",
45401
46078
  capScope: "system",
@@ -45420,12 +46097,6 @@ Object.freeze({
45420
46097
  addonId: null,
45421
46098
  access: "create"
45422
46099
  },
45423
- "pipelineExecutor.saveTemplate": {
45424
- capName: "pipeline-executor",
45425
- capScope: "system",
45426
- addonId: null,
45427
- access: "create"
45428
- },
45429
46100
  "pipelineExecutor.setVideoPipelineSteps": {
45430
46101
  capName: "pipeline-executor",
45431
46102
  capScope: "system",
@@ -45444,41 +46115,35 @@ Object.freeze({
45444
46115
  addonId: null,
45445
46116
  access: "create"
45446
46117
  },
45447
- "pipelineExecutor.updateTemplate": {
45448
- capName: "pipeline-executor",
45449
- capScope: "system",
45450
- addonId: null,
45451
- access: "create"
45452
- },
45453
46118
  "pipelineExecutor.validatePipeline": {
45454
46119
  capName: "pipeline-executor",
45455
46120
  capScope: "system",
45456
46121
  addonId: null,
45457
46122
  access: "view"
45458
46123
  },
45459
- "pipelineOrchestrator.applyDeviceSettingsPatch": {
46124
+ "pipelineOrchestrator.applyAutoTune": {
45460
46125
  capName: "pipeline-orchestrator",
45461
46126
  capScope: "system",
45462
46127
  addonId: null,
45463
46128
  access: "create"
45464
46129
  },
45465
- "pipelineOrchestrator.assignAudio": {
46130
+ "pipelineOrchestrator.applyDeviceSettingsPatch": {
45466
46131
  capName: "pipeline-orchestrator",
45467
46132
  capScope: "system",
45468
46133
  addonId: null,
45469
46134
  access: "create"
45470
46135
  },
45471
- "pipelineOrchestrator.assignPipeline": {
46136
+ "pipelineOrchestrator.assignAudio": {
45472
46137
  capName: "pipeline-orchestrator",
45473
46138
  capScope: "system",
45474
46139
  addonId: null,
45475
46140
  access: "create"
45476
46141
  },
45477
- "pipelineOrchestrator.deleteTemplate": {
46142
+ "pipelineOrchestrator.assignPipeline": {
45478
46143
  capName: "pipeline-orchestrator",
45479
46144
  capScope: "system",
45480
46145
  addonId: null,
45481
- access: "delete"
46146
+ access: "create"
45482
46147
  },
45483
46148
  "pipelineOrchestrator.getAgentLoad": {
45484
46149
  capName: "pipeline-orchestrator",
@@ -45570,6 +46235,12 @@ Object.freeze({
45570
46235
  addonId: null,
45571
46236
  access: "view"
45572
46237
  },
46238
+ "pipelineOrchestrator.getEffectiveShares": {
46239
+ capName: "pipeline-orchestrator",
46240
+ capScope: "system",
46241
+ addonId: null,
46242
+ access: "view"
46243
+ },
45573
46244
  "pipelineOrchestrator.getGlobalMetrics": {
45574
46245
  capName: "pipeline-orchestrator",
45575
46246
  capScope: "system",
@@ -45606,19 +46277,19 @@ Object.freeze({
45606
46277
  addonId: null,
45607
46278
  access: "view"
45608
46279
  },
45609
- "pipelineOrchestrator.getReconcileFromDiskStatus": {
46280
+ "pipelineOrchestrator.getPlacementStats": {
45610
46281
  capName: "pipeline-orchestrator",
45611
46282
  capScope: "system",
45612
46283
  addonId: null,
45613
46284
  access: "view"
45614
46285
  },
45615
- "pipelineOrchestrator.listAgentSettings": {
46286
+ "pipelineOrchestrator.getReconcileFromDiskStatus": {
45616
46287
  capName: "pipeline-orchestrator",
45617
46288
  capScope: "system",
45618
46289
  addonId: null,
45619
46290
  access: "view"
45620
46291
  },
45621
- "pipelineOrchestrator.listTemplates": {
46292
+ "pipelineOrchestrator.listAgentSettings": {
45622
46293
  capName: "pipeline-orchestrator",
45623
46294
  capScope: "system",
45624
46295
  addonId: null,
@@ -45630,6 +46301,12 @@ Object.freeze({
45630
46301
  addonId: null,
45631
46302
  access: "create"
45632
46303
  },
46304
+ "pipelineOrchestrator.planAutoTune": {
46305
+ capName: "pipeline-orchestrator",
46306
+ capScope: "system",
46307
+ addonId: null,
46308
+ access: "view"
46309
+ },
45633
46310
  "pipelineOrchestrator.rebalance": {
45634
46311
  capName: "pipeline-orchestrator",
45635
46312
  capScope: "system",
@@ -45672,12 +46349,6 @@ Object.freeze({
45672
46349
  addonId: null,
45673
46350
  access: "create"
45674
46351
  },
45675
- "pipelineOrchestrator.saveTemplate": {
45676
- capName: "pipeline-orchestrator",
45677
- capScope: "system",
45678
- addonId: null,
45679
- access: "create"
45680
- },
45681
46352
  "pipelineOrchestrator.setAgentCapabilities": {
45682
46353
  capName: "pipeline-orchestrator",
45683
46354
  capScope: "system",
@@ -45690,12 +46361,6 @@ Object.freeze({
45690
46361
  addonId: null,
45691
46362
  access: "create"
45692
46363
  },
45693
- "pipelineOrchestrator.setAgentDetectWeight": {
45694
- capName: "pipeline-orchestrator",
45695
- capScope: "system",
45696
- addonId: null,
45697
- access: "create"
45698
- },
45699
46364
  "pipelineOrchestrator.setAgentInferenceDevices": {
45700
46365
  capName: "pipeline-orchestrator",
45701
46366
  capScope: "system",
@@ -45732,6 +46397,12 @@ Object.freeze({
45732
46397
  addonId: null,
45733
46398
  access: "create"
45734
46399
  },
46400
+ "pipelineOrchestrator.setCameraStepSettings": {
46401
+ capName: "pipeline-orchestrator",
46402
+ capScope: "system",
46403
+ addonId: null,
46404
+ access: "create"
46405
+ },
45735
46406
  "pipelineOrchestrator.setCameraStepToggle": {
45736
46407
  capName: "pipeline-orchestrator",
45737
46408
  capScope: "system",
@@ -45750,25 +46421,37 @@ Object.freeze({
45750
46421
  addonId: null,
45751
46422
  access: "create"
45752
46423
  },
46424
+ "pipelineOrchestrator.setLoadBalancingShares": {
46425
+ capName: "pipeline-orchestrator",
46426
+ capScope: "system",
46427
+ addonId: null,
46428
+ access: "create"
46429
+ },
45753
46430
  "pipelineOrchestrator.setPipelineDevicePin": {
45754
46431
  capName: "pipeline-orchestrator",
45755
46432
  capScope: "system",
45756
46433
  addonId: null,
45757
46434
  access: "create"
45758
46435
  },
45759
- "pipelineOrchestrator.unassignAudio": {
46436
+ "pipelineOrchestrator.setShareSource": {
45760
46437
  capName: "pipeline-orchestrator",
45761
46438
  capScope: "system",
45762
46439
  addonId: null,
45763
46440
  access: "create"
45764
46441
  },
45765
- "pipelineOrchestrator.unassignPipeline": {
46442
+ "pipelineOrchestrator.suggestShares": {
46443
+ capName: "pipeline-orchestrator",
46444
+ capScope: "system",
46445
+ addonId: null,
46446
+ access: "view"
46447
+ },
46448
+ "pipelineOrchestrator.unassignAudio": {
45766
46449
  capName: "pipeline-orchestrator",
45767
46450
  capScope: "system",
45768
46451
  addonId: null,
45769
46452
  access: "create"
45770
46453
  },
45771
- "pipelineOrchestrator.updateTemplate": {
46454
+ "pipelineOrchestrator.unassignPipeline": {
45772
46455
  capName: "pipeline-orchestrator",
45773
46456
  capScope: "system",
45774
46457
  addonId: null,
@@ -47208,12 +47891,6 @@ Object.freeze({
47208
47891
  addonId: null,
47209
47892
  access: "view"
47210
47893
  },
47211
- "streamBroker.pullFrameHandles": {
47212
- capName: "stream-broker",
47213
- capScope: "system",
47214
- addonId: null,
47215
- access: "view"
47216
- },
47217
47894
  "streamBroker.regenerateRtspToken": {
47218
47895
  capName: "stream-broker",
47219
47896
  capScope: "system",
@@ -47280,12 +47957,6 @@ Object.freeze({
47280
47957
  addonId: null,
47281
47958
  access: "create"
47282
47959
  },
47283
- "streamBroker.subscribeFrames": {
47284
- capName: "stream-broker",
47285
- capScope: "system",
47286
- addonId: null,
47287
- access: "create"
47288
- },
47289
47960
  "streamBroker.unassignProfile": {
47290
47961
  capName: "stream-broker",
47291
47962
  capScope: "system",
@@ -47298,12 +47969,6 @@ Object.freeze({
47298
47969
  addonId: null,
47299
47970
  access: "create"
47300
47971
  },
47301
- "streamBroker.unsubscribeFrames": {
47302
- capName: "stream-broker",
47303
- capScope: "system",
47304
- addonId: null,
47305
- access: "create"
47306
- },
47307
47972
  "streamCatalog.getCatalog": {
47308
47973
  capName: "stream-catalog",
47309
47974
  capScope: "device",
@@ -47598,18 +48263,36 @@ Object.freeze({
47598
48263
  addonId: null,
47599
48264
  access: "delete"
47600
48265
  },
48266
+ "userManagement.findUserByExternalIdentity": {
48267
+ capName: "user-management",
48268
+ capScope: "system",
48269
+ addonId: null,
48270
+ access: "view"
48271
+ },
47601
48272
  "userManagement.getTotpStatus": {
47602
48273
  capName: "user-management",
47603
48274
  capScope: "system",
47604
48275
  addonId: null,
47605
48276
  access: "view"
47606
48277
  },
48278
+ "userManagement.linkExternalIdentity": {
48279
+ capName: "user-management",
48280
+ capScope: "system",
48281
+ addonId: null,
48282
+ access: "create"
48283
+ },
47607
48284
  "userManagement.listApiKeys": {
47608
48285
  capName: "user-management",
47609
48286
  capScope: "system",
47610
48287
  addonId: null,
47611
48288
  access: "view"
47612
48289
  },
48290
+ "userManagement.listExternalIdentities": {
48291
+ capName: "user-management",
48292
+ capScope: "system",
48293
+ addonId: null,
48294
+ access: "view"
48295
+ },
47613
48296
  "userManagement.listOauthSessions": {
47614
48297
  capName: "user-management",
47615
48298
  capScope: "system",
@@ -47688,6 +48371,12 @@ Object.freeze({
47688
48371
  addonId: null,
47689
48372
  access: "create"
47690
48373
  },
48374
+ "userManagement.unlinkExternalIdentity": {
48375
+ capName: "user-management",
48376
+ capScope: "system",
48377
+ addonId: null,
48378
+ access: "delete"
48379
+ },
47691
48380
  "userManagement.updateUser": {
47692
48381
  capName: "user-management",
47693
48382
  capScope: "system",
@@ -48000,6 +48689,12 @@ Object.freeze({
48000
48689
  addonId: null,
48001
48690
  access: "create"
48002
48691
  },
48692
+ "webrtcSession.applyDownlinkProbe": {
48693
+ capName: "webrtc-session",
48694
+ capScope: "device",
48695
+ addonId: null,
48696
+ access: "create"
48697
+ },
48003
48698
  "webrtcSession.closeSession": {
48004
48699
  capName: "webrtc-session",
48005
48700
  capScope: "device",
@@ -49877,11 +50572,6 @@ Object.freeze({
49877
50572
  form: "single",
49878
50573
  optional: false
49879
50574
  }],
49880
- "decoder.createSession": [{
49881
- name: "deviceId",
49882
- form: "single",
49883
- optional: true
49884
- }],
49885
50575
  "detectionPipeline.applyDeviceSettingsPatch": [{
49886
50576
  name: "deviceId",
49887
50577
  form: "single",
@@ -51092,6 +51782,11 @@ Object.freeze({
51092
51782
  form: "single",
51093
51783
  optional: false
51094
51784
  }],
51785
+ "pipelineAnalytics.setRetrainFrameComplete": [{
51786
+ name: "deviceId",
51787
+ form: "single",
51788
+ optional: false
51789
+ }],
51095
51790
  "pipelineAnalytics.setTrackFlags": [{
51096
51791
  name: "deviceId",
51097
51792
  form: "single",
@@ -51112,6 +51807,11 @@ Object.freeze({
51112
51807
  form: "single",
51113
51808
  optional: false
51114
51809
  }],
51810
+ "pipelineExecutor.clearModelBoundDeviceOverrides": [{
51811
+ name: "deviceIds",
51812
+ form: "array",
51813
+ optional: true
51814
+ }],
51115
51815
  "pipelineExecutor.runPipeline": [{
51116
51816
  name: "deviceId",
51117
51817
  form: "single",
@@ -51217,6 +51917,11 @@ Object.freeze({
51217
51917
  form: "single",
51218
51918
  optional: false
51219
51919
  }],
51920
+ "pipelineOrchestrator.setCameraStepSettings": [{
51921
+ name: "deviceId",
51922
+ form: "single",
51923
+ optional: false
51924
+ }],
51220
51925
  "pipelineOrchestrator.setCameraStepToggle": [{
51221
51926
  name: "deviceId",
51222
51927
  form: "single",
@@ -51988,6 +52693,11 @@ Object.freeze({
51988
52693
  form: "single",
51989
52694
  optional: false
51990
52695
  }],
52696
+ "webrtcSession.applyDownlinkProbe": [{
52697
+ name: "deviceId",
52698
+ form: "single",
52699
+ optional: false
52700
+ }],
51991
52701
  "webrtcSession.closeSession": [{
51992
52702
  name: "deviceId",
51993
52703
  form: "single",
@@ -52217,6 +52927,8 @@ new Map(Object.entries({
52217
52927
  "detection-blind": "device-events",
52218
52928
  "node-online": "system",
52219
52929
  "node-offline": "system",
52930
+ "node-restarting": "system",
52931
+ "node-updating": "system",
52220
52932
  "node-inference-unavailable": "system",
52221
52933
  "addon-crash-loop": "system",
52222
52934
  "addon-update-available": "system",
@@ -52294,18 +53006,21 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
52294
53006
  kinds: [
52295
53007
  "node-offline",
52296
53008
  "node-online",
53009
+ "node-restarting",
52297
53010
  "node-inference-unavailable"
52298
53011
  ]
52299
53012
  },
52300
53013
  {
52301
53014
  id: "addons",
52302
53015
  family: "system",
52303
- label: "Addons",
52304
- kinds: [
52305
- "addon-crash-loop",
52306
- "addon-update-available",
52307
- "addon-updated"
52308
- ]
53016
+ label: "Addons stopped",
53017
+ kinds: ["addon-crash-loop"]
53018
+ },
53019
+ {
53020
+ id: "addon-updates",
53021
+ family: "system",
53022
+ label: "Addon updates",
53023
+ kinds: ["addon-update-available", "addon-updated"]
52309
53024
  },
52310
53025
  {
52311
53026
  id: "updates",
@@ -52313,6 +53028,7 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
52313
53028
  label: "Server & container updates",
52314
53029
  kinds: [
52315
53030
  "server-update-available",
53031
+ "node-updating",
52316
53032
  "server-updated",
52317
53033
  "wrapper-update-available"
52318
53034
  ]
@@ -52460,18 +53176,21 @@ var STATE_SUMMARY_SECTION_VARS = [
52460
53176
  kinds: [
52461
53177
  "node-offline",
52462
53178
  "node-online",
53179
+ "node-restarting",
52463
53180
  "node-inference-unavailable"
52464
53181
  ]
52465
53182
  },
52466
53183
  {
52467
53184
  name: "summaryAddons",
52468
- label: "Summary: addons",
52469
- example: "@camstack/addon-recorder 1.2.3 → 1.2.4",
52470
- kinds: [
52471
- "addon-crash-loop",
52472
- "addon-update-available",
52473
- "addon-updated"
52474
- ]
53185
+ label: "Summary: addons stopped",
53186
+ example: "hub — recorder stopped after repeated crashes",
53187
+ kinds: ["addon-crash-loop"]
53188
+ },
53189
+ {
53190
+ name: "summaryAddonUpdates",
53191
+ label: "Summary: addon updates",
53192
+ example: "hub:\n• @camstack/addon-recorder 1.2.3 → 1.2.4",
53193
+ kinds: ["addon-update-available", "addon-updated"]
52475
53194
  },
52476
53195
  {
52477
53196
  name: "summaryUpdates",
@@ -52479,6 +53198,7 @@ var STATE_SUMMARY_SECTION_VARS = [
52479
53198
  example: "server 1.2.377 → 1.2.378",
52480
53199
  kinds: [
52481
53200
  "server-update-available",
53201
+ "node-updating",
52482
53202
  "server-updated",
52483
53203
  "wrapper-update-available"
52484
53204
  ]
@@ -52511,7 +53231,7 @@ var STATE_SUMMARY_VARS = [
52511
53231
  {
52512
53232
  name: "summarySection",
52513
53233
  label: "Summary: this section",
52514
- description: "The section a per-section summary row is about (D698); on a summary sent as one message, every section it reports, comma-separated.",
53234
+ description: "The section a per-section summary row is about; on a summary sent as one message, every section it reports, comma-separated.",
52515
53235
  example: "Batterie scariche",
52516
53236
  group: "system",
52517
53237
  families: ["rule"],
@@ -52555,6 +53275,7 @@ var STATE_SUMMARY_VARS = [
52555
53275
  [...RULE_BODY_ONLY],
52556
53276
  [...RULE_TEXT],
52557
53277
  ([...RULE_TEXT], [...DEVICE_EVENTS]),
53278
+ ([...RULE_TEXT], [...COMBINED_ALARM]),
52558
53279
  ([...RULE_TEXT], [...DEVICE_EVENTS]),
52559
53280
  ([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
52560
53281
  ([...RULE_TEXT], [...CONSUMABLE]),
@@ -52595,6 +53316,8 @@ var STATE_SUMMARY_VARS = [
52595
53316
  [...RULE_TEXT],
52596
53317
  [...RULE_TEXT],
52597
53318
  [...RULE_TEXT],
53319
+ [...RULE_TEXT],
53320
+ [...RULE_TEXT],
52598
53321
  ...STATE_SUMMARY_VARS
52599
53322
  ];
52600
53323
  new Set([
@@ -53269,7 +53992,7 @@ var rtspCameraSchema = object({
53269
53992
  })).min(1)).describe("Published RTSP streams"),
53270
53993
  snapshotUrl: string().default("").describe("Snapshot URL (optional)"),
53271
53994
  username: string().default("").describe("Username"),
53272
- password: string().default("").describe("Password")
53995
+ password: string().default("").describe("Password").meta({ secret: true })
53273
53996
  });
53274
53997
  /**
53275
53998
  * Legacy storage shape: `[{ label: 'high'|'mid'|'low', url }]`.