@camstack/addon-provider-homematic 1.2.126 → 1.2.128

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 +947 -463
  2. package/dist/addon.mjs +947 -463
  3. package/package.json +1 -1
package/dist/addon.mjs CHANGED
@@ -9,7 +9,7 @@ import { join } from "path";
9
9
  var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
10
10
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
11
11
  //#endregion
12
- //#region ../types/dist/event-category-BGmz_oxW.mjs
12
+ //#region ../types/dist/event-category-B_0XEcLF.mjs
13
13
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
14
14
  EventCategory["SystemBoot"] = "system.boot";
15
15
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -510,15 +510,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
510
510
  EventCategory["AgentWsDisconnected"] = "agent.ws.disconnected";
511
511
  EventCategory["AgentBackupActivated"] = "agent.backup.activated";
512
512
  EventCategory["OrchestrationSettingsUpdated"] = "orchestration.settings-updated";
513
- /**
514
- * Per-agent hwaccel preference changed (user override set, cleared, or
515
- * re-probed). Observability event — decoders pull the current pref at
516
- * `createSession`, so running sessions keep their current backend until
517
- * they rotate naturally (camera add/remove, stream restart). Future
518
- * work can wire a listener in stream-broker that force-rotates live
519
- * sessions; for now this event powers logs + admin-UI toast feedback.
520
- */
521
- EventCategory["PipelineAgentHwaccelChanged"] = "pipeline.agent-hwaccel-changed";
522
513
  EventCategory["MotionAnalysis"] = "detection.motion-analysis";
523
514
  /** All raw motion zones from CCL before minArea filter — for UI debug overlay. */
524
515
  EventCategory["MotionZonesRaw"] = "detection.motion-zones-raw";
@@ -5389,7 +5380,7 @@ var ZodIssueCode = {
5389
5380
  var ZodFirstPartyTypeKind;
5390
5381
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5391
5382
  //#endregion
5392
- //#region ../types/dist/sleep-DXKLNFvA.mjs
5383
+ //#region ../types/dist/sleep-BNeXenvr.mjs
5393
5384
  /**
5394
5385
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5395
5386
  * window to float samples (D455).
@@ -6755,32 +6746,12 @@ object({
6755
6746
  audioCodec: string().optional(),
6756
6747
  metadata: record(string(), unknown()).readonly().optional()
6757
6748
  });
6758
- var EncodedPacketSchema = object({
6759
- type: _enum(["video", "audio"]),
6760
- data: _instanceof(Uint8Array),
6761
- pts: number(),
6762
- dts: number(),
6763
- keyframe: boolean(),
6764
- codec: string()
6765
- });
6766
- var DecodedFrameSchema = object({
6767
- data: _instanceof(Uint8Array),
6768
- width: number(),
6769
- height: number(),
6770
- format: _enum([
6771
- "jpeg",
6772
- "rgb",
6773
- "bgr",
6774
- "yuv420",
6775
- "gray"
6776
- ]),
6777
- timestamp: number()
6778
- });
6779
6749
  /**
6780
6750
  * Wire schema for `FrameHandle` — a zero-pixel, serialisable reference to a
6781
6751
  * frame in a shared-memory ring (Phase 5 / D9). Mirrors the `FrameHandle` TS
6782
- * interface in `interfaces/frame-handle.ts` field-for-field so a decoder cap
6783
- * method (`pullHandles`) can carry handles over tRPC / Moleculer.
6752
+ * interface in `interfaces/frame-handle.ts` field-for-field so a cap method
6753
+ * (the runner's native-crop and pipeline-executor inputs) can carry handles
6754
+ * over tRPC / Moleculer.
6784
6755
  *
6785
6756
  * The `satisfies` assertion below pins this schema to the interface: if a
6786
6757
  * field is added to / removed from `FrameHandle` without a matching schema
@@ -6806,50 +6777,6 @@ var FrameHandleSchema = object({
6806
6777
  slotCount: number().int().positive()
6807
6778
  });
6808
6779
  /**
6809
- * Pixel format a frame-handle subscriber can request from the broker
6810
- * (Phase 5 / D9). The packed, raster subset of `FrameFormat` — the formats a
6811
- * `frameSink: 'shm'` decoder session can write into a `FrameRing` slot.
6812
- * `jpeg` is excluded: a variable-length stream is not a fixed-stride ring
6813
- * payload, and no decoded-frame consumer requests it over the shm plane.
6814
- */
6815
- var FrameHandleFormatSchema = _enum([
6816
- "rgb",
6817
- "bgr",
6818
- "yuv420",
6819
- "gray"
6820
- ]);
6821
- /**
6822
- * Input for `stream-broker.subscribeFrames` (Phase 5 / D9). A consumer asks the
6823
- * broker for a `FrameHandle` stream of one `format`; the broker maintains one
6824
- * shared-memory ring per `(brokerId, format)` actually requested, so a `gray`
6825
- * subscriber (motion) and an `rgb` subscriber (detection) each read the format
6826
- * they asked for with no broker-side conversion.
6827
- */
6828
- var SubscribeFramesInputSchema = object({
6829
- brokerId: string(),
6830
- format: FrameHandleFormatSchema,
6831
- /**
6832
- * Optional reader-side cadence hint in frames per second. The broker does
6833
- * NOT throttle — latest-wins ring reads drop frames implicitly for a slow
6834
- * consumer. The value is echoed back in `SubscribeFramesResult.maxFps` so
6835
- * the consumer can pace its own `pullFrameHandles` polling.
6836
- */
6837
- maxFps: number().positive().optional(),
6838
- /** Short caller-identity tag (`motion`, `detection`, …) for diagnostics. */
6839
- tag: string().optional()
6840
- });
6841
- /**
6842
- * Result of `stream-broker.subscribeFrames`. The consumer then polls
6843
- * `pullFrameHandles({ subscriptionId, maxCount })` and feeds each returned
6844
- * `FrameHandle` to a `FrameRingReader`.
6845
- */
6846
- var SubscribeFramesResultSchema = object({
6847
- /** Opaque id the consumer passes to `pullFrameHandles` / `unsubscribeFrames`. */
6848
- subscriptionId: string(),
6849
- /** Reader-side cadence hint (frames/s) — echoes `SubscribeFramesInput.maxFps`. */
6850
- maxFps: number().nonnegative()
6851
- });
6852
- /**
6853
6780
  * Wire schema for a decoded audio chunk (Phase 5 / D9). Mirrors the
6854
6781
  * `DecodedAudioChunk` TS interface in `interfaces/stream-broker.ts`: PCM
6855
6782
  * sample bytes plus the track parameters a consumer needs to interpret them.
@@ -6857,8 +6784,8 @@ var SubscribeFramesResultSchema = object({
6857
6784
  * Audio chunks are tiny (a ~500ms AudioCodecSession window is a few KB of
6858
6785
  * Float32 PCM), so unlike video frames they ship their bytes INLINE over
6859
6786
  * tRPC / Moleculer — no shared-memory plane. `data` is typed `Uint8Array`
6860
- * (the wire-serialisable supertype of `Buffer`) to match `DecodedFrameSchema`
6861
- * / `EncodedPacketSchema`'s precedent; a `Buffer` is assignable to it.
6787
+ * (the wire-serialisable supertype of `Buffer`); a `Buffer` is assignable to
6788
+ * it.
6862
6789
  */
6863
6790
  var AudioChunkFormatSchema = _enum(AUDIO_CHUNK_FORMATS);
6864
6791
  var DecodedAudioChunkSchema = object({
@@ -6876,11 +6803,10 @@ var DecodedAudioChunkSchema = object({
6876
6803
  format: AudioChunkFormatSchema.optional()
6877
6804
  });
6878
6805
  /**
6879
- * Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9). The
6880
- * handle-free, ship-bytes-inline analogue of `subscribeFrames`: a consumer
6881
- * asks the broker for the decoded audio-chunk stream of one broker; the
6882
- * broker keeps a per-subscription bounded FIFO queue the consumer drains via
6883
- * `pullAudioChunks`.
6806
+ * Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9). Audio ships
6807
+ * its bytes inline: a consumer asks the broker for the decoded audio-chunk
6808
+ * stream of one broker; the broker keeps a per-subscription bounded FIFO queue
6809
+ * the consumer drains via `pullAudioChunks`.
6884
6810
  */
6885
6811
  var SubscribeAudioChunksInputSchema = object({
6886
6812
  brokerId: string(),
@@ -6911,9 +6837,7 @@ var BrokerStatsSchema = object({
6911
6837
  "stopped"
6912
6838
  ]),
6913
6839
  inputFps: number(),
6914
- decodeFps: number(),
6915
6840
  encodedSubscribers: number(),
6916
- decodedSubscribers: number(),
6917
6841
  uptimeMs: number(),
6918
6842
  bitrateKbps: number(),
6919
6843
  idrIntervalMs: number(),
@@ -6926,14 +6850,6 @@ var BrokerStatsSchema = object({
6926
6850
  preBufferMs: number(),
6927
6851
  preBufferPackets: number(),
6928
6852
  /**
6929
- * Moleculer node id of the decoder provider currently servicing this
6930
- * stream's decoded subscribers. `null` until the deferred decoder is
6931
- * created (no decoded clients yet, or codec not detected). Surfaces the
6932
- * runtime decoder placement so the UI can show "Decoder: <agent>" without
6933
- * a separate cap call per broker.
6934
- */
6935
- decoderNodeId: string().nullable(),
6936
- /**
6937
6853
  * Detected audio track parameters from the RTSP DESCRIBE / SDP. `null`
6938
6854
  * when the stream has no audio track or the broker is in cold start.
6939
6855
  * `supported = false` means the codec was detected but the local
@@ -10269,70 +10185,6 @@ var StorageLocationDeclarationSchema = object({
10269
10185
  "backup"
10270
10186
  ]).optional()
10271
10187
  });
10272
- var DecoderStatsSchema = object({
10273
- inputFps: number(),
10274
- outputFps: number(),
10275
- avgDecodeTimeMs: number(),
10276
- droppedFrames: number(),
10277
- /**
10278
- * Pull-mode adaptive-fps telemetry (optional — only pull sessions run the
10279
- * lag-driven controller; push sessions omit these). `lagMs` is the EWMA of
10280
- * the decoder's real-time drift (rising = falling behind live); `adaptiveFps`
10281
- * is the current lag-throttled emit rate (≤ `effectiveFps` ceiling).
10282
- */
10283
- lagMs: number().optional(),
10284
- effectiveFps: number().optional(),
10285
- adaptiveFps: number().optional()
10286
- });
10287
- var DecoderSessionConfigSchema = object({
10288
- codec: string(),
10289
- maxFps: number().default(0),
10290
- outputFormat: _enum([
10291
- "jpeg",
10292
- "rgb",
10293
- "bgr",
10294
- "yuv420",
10295
- "gray"
10296
- ]).default("jpeg"),
10297
- scale: number().default(1),
10298
- width: number().optional(),
10299
- height: number().optional(),
10300
- /**
10301
- * Identifier of the camera this decoder session serves. Optional
10302
- * because the cap is generic (any caller could request decode), but
10303
- * stream-broker passes it so decoder logs include `deviceId` for
10304
- * per-camera filtering when diagnosing failures (e.g. node-av
10305
- * sendPacket errors on a single hung camera).
10306
- */
10307
- deviceId: number().int().nonnegative().optional(),
10308
- /**
10309
- * Free-form tag for log scoping. Stream-broker uses
10310
- * `broker:<deviceId>/<profile>`. Decoder session logger surfaces it
10311
- * on every line so `grep tag=broker:5/high` filters one camera
10312
- * profile cleanly.
10313
- */
10314
- tag: string().optional(),
10315
- /**
10316
- * Where the session delivers decoded frames (Phase 5 / D9):
10317
- *
10318
- * - `'callback'` (default) — the legacy pixel path: decoded frames are
10319
- * buffered as `DecodedFrame`s and drained via `pullFrames`.
10320
- * - `'shm'` — the shared-memory frame plane: decoded frames are written
10321
- * into an OS shared-memory ring and drained as zero-pixel
10322
- * `FrameHandle`s via `pullHandles`. A session is one mode or the
10323
- * other — `pullFrames` returns nothing for an `'shm'` session and
10324
- * `pullHandles` returns nothing for a `'callback'` session.
10325
- */
10326
- frameSink: _enum(["callback", "shm"]).default("callback"),
10327
- /**
10328
- * Per-camera decoder DEBUG facility. When `true`, a pull-mode session emits
10329
- * a throttled (~1Hz) structured `decoder debug` line (effective/adaptive fps,
10330
- * real-time lag, dropped-frame delta, avg decode time, hwaccel). Mirrors the
10331
- * stream-broker's `streamingDebug` gate — off by default so production logs
10332
- * stay quiet and the emit path pays zero per-frame cost when disabled.
10333
- */
10334
- debug: boolean().optional()
10335
- });
10336
10188
  /**
10337
10189
  * Per-component log CHANNELS — the gate a hot path consults, and the registry
10338
10190
  * an addon declares its channels in.
@@ -10475,6 +10327,26 @@ var ClipSearchStrictnessSchema = _enum([
10475
10327
  "balanced",
10476
10328
  "strict"
10477
10329
  ]);
10330
+ /** Steps whose effect a root label can BE. */
10331
+ var LABEL_SUPPLY_STEP_IDS = [
10332
+ "animal-classifier",
10333
+ "vehicle-classifier",
10334
+ "package-detection"
10335
+ ];
10336
+ /** Steps whose box a root detection can BE. */
10337
+ var CROP_SUPPLY_STEP_IDS = ["plate-detection", "face-detection"];
10338
+ /**
10339
+ * Steps whose per-detection MASK a root detection can carry (D737). The live
10340
+ * mask step is `segmentation` — a frame-plane refiner that runs its own model
10341
+ * once per detection crop. (`instance-segmentation` is a dormant step id that
10342
+ * no camera tree carries.)
10343
+ */
10344
+ var MASK_SUPPLY_STEP_IDS = ["segmentation"];
10345
+ [
10346
+ ...LABEL_SUPPLY_STEP_IDS,
10347
+ ...CROP_SUPPLY_STEP_IDS,
10348
+ ...MASK_SUPPLY_STEP_IDS
10349
+ ];
10478
10350
  var MODEL_FORMATS = [
10479
10351
  "onnx",
10480
10352
  "coreml",
@@ -10503,7 +10375,53 @@ var ModelFormatEntrySchema = object({
10503
10375
  /** Multi-file payload (directory members or sibling files). */
10504
10376
  files: array(string()).readonly().optional(),
10505
10377
  /** Runtime(s) that can use this format. If omitted, inferred from ModelFormat key */
10506
- runtimes: array(_enum(["python"])).readonly().optional()
10378
+ runtimes: array(_enum(["python"])).readonly().optional(),
10379
+ /**
10380
+ * Content revision of the artefact, for one hosted OFF the CamStack mirror.
10381
+ * A format on the mirror leaves it unset: its revision (the sha256 of its
10382
+ * weight file) comes from the downloader's generated table, kept in step
10383
+ * with the mirror by `scripts/check-hosted-model-revisions.ts` (D744). A
10384
+ * node records the revision it downloaded next to the file
10385
+ * (`<file>.revision`); a copy with no record or a different one is stale
10386
+ * unless its weight file hashes to the revision, and a stale copy is
10387
+ * downloaded again, the old one serving until the new one is complete. No
10388
+ * revision at all ⇒ a file on disk is current, whatever it holds (D743).
10389
+ */
10390
+ revision: string().min(1).optional()
10391
+ });
10392
+ /**
10393
+ * What a node holds for one (model, format) (D746). `current` is a complete
10394
+ * copy at its catalog revision — exactly what `downloaded: true` means.
10395
+ * `stale` is bytes on disk that are not (yet) proven current under D743/D744:
10396
+ * no or a different revision record, or a missing sibling. `missing` is no
10397
+ * copy. `downloaded` alone folds `stale` into "not downloaded", which hid
10398
+ * reclaimable bytes and a copy about to be replaced.
10399
+ */
10400
+ var ModelOnDiskStateSchema = _enum([
10401
+ "current",
10402
+ "stale",
10403
+ "missing"
10404
+ ]);
10405
+ /**
10406
+ * The numeric precision of one format's BUILD (D746) — reported only when the
10407
+ * build states it (file-name token, an INT8 variant, an EdgeTPU compile, a
10408
+ * CamStack Core ML export). Absent means "not stated", never "fp32".
10409
+ */
10410
+ var ModelFormatPrecisionSchema = _enum([
10411
+ "fp32",
10412
+ "fp16",
10413
+ "int8"
10414
+ ]);
10415
+ /**
10416
+ * One format of one model as a node's `pipelineExecutor.getSchema` reports it.
10417
+ * `onDisk` / `precision` are optional for version skew: a runner that predates
10418
+ * them omits them, and a reader falls back to `downloaded`.
10419
+ */
10420
+ var PipelineModelFormatStatusSchema = object({
10421
+ downloaded: boolean(),
10422
+ sizeMB: number(),
10423
+ onDisk: ModelOnDiskStateSchema.optional(),
10424
+ precision: ModelFormatPrecisionSchema.optional()
10507
10425
  });
10508
10426
  /**
10509
10427
  * Extra file that must be downloaded alongside the model (e.g., labels JSON, dict.txt).
@@ -10607,6 +10525,46 @@ var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { wei
10607
10525
  /** True when the weights or their data forbid commercial use. */
10608
10526
  nonCommercial: boolean().optional()
10609
10527
  }));
10528
+ /**
10529
+ * One step a ROOT detector can supply from its own output (D730) — see
10530
+ * `ModelCatalogEntry.suppliesSteps`.
10531
+ *
10532
+ * - `label`: the root's raw class IS the step's answer. `labelToEffect` maps
10533
+ * the root's label to the step's vocabulary; `uncovered` is the vocabulary
10534
+ * the root cannot produce (shown as unavailable, never a blocker).
10535
+ * - `crop`: the root draws the box the step would have found (`license_plate`
10536
+ * for plate-detection, `face` for face-detection). The box becomes a detail
10537
+ * child of the `parentMacro` detection that contains it — never a track.
10538
+ * - `mask`: the root's decode emits an instance mask with every detection (a
10539
+ * YOLO26-seg root, D737) — the `segmentation` step's result, carried on the
10540
+ * detection in the shape that step produces. Derived from the model's
10541
+ * postprocessor on read, never stored by an import.
10542
+ */
10543
+ var RootStepSupplySchema = discriminatedUnion("kind", [
10544
+ object({
10545
+ kind: literal("label"),
10546
+ stepId: _enum(LABEL_SUPPLY_STEP_IDS),
10547
+ labelToEffect: record(string(), string()),
10548
+ uncovered: array(string()).readonly()
10549
+ }),
10550
+ object({
10551
+ kind: literal("crop"),
10552
+ stepId: _enum(CROP_SUPPLY_STEP_IDS),
10553
+ rootLabels: array(string()).readonly(),
10554
+ parentMacro: _enum(["vehicle", "person"]),
10555
+ childClass: _enum(["plate", "face"]),
10556
+ /**
10557
+ * The root's smaller input side, stamped on read by `rootSuppliesOf` from
10558
+ * the model entry — what a step's `minRootInputPx` gate judges. Never
10559
+ * stored by an import.
10560
+ */
10561
+ rootInputPx: number().int().positive().optional()
10562
+ }),
10563
+ object({
10564
+ kind: literal("mask"),
10565
+ stepId: _enum(MASK_SUPPLY_STEP_IDS)
10566
+ })
10567
+ ]);
10610
10568
  var ModelCatalogEntrySchema = object({
10611
10569
  id: string(),
10612
10570
  name: string(),
@@ -10672,6 +10630,35 @@ var ModelCatalogEntrySchema = object({
10672
10630
  */
10673
10631
  defaultConfidence: number().min(0).max(1).optional(),
10674
10632
  /**
10633
+ * Per-MODEL default of the per-class confidence floors (`minConfidence<Macro>`
10634
+ * on a detector step), keyed by macro class: `{ person: 0.45 }`. A class
10635
+ * absent here runs at the step slider's global default. The same row shape
10636
+ * the floor measurement produces (`model-floors.json`: modelId → floors), so
10637
+ * a measured table is copied in as-is. An operator override is bound to the
10638
+ * model it was made for and does not survive a model change (D738). A custom
10639
+ * / imported model may declare it; without it, the global defaults apply.
10640
+ */
10641
+ defaultClassFloors: record(string(), number().min(0).max(1)).optional(),
10642
+ /**
10643
+ * The inference precision this model's OpenVINO IR needs on an Intel GPU.
10644
+ * Absent ⇒ the device default (f16 on a GPU). Set to `'f32'` for an FP32 IR
10645
+ * that produces invalid output at f16 — measured 2026-10-07 for YOLO26
10646
+ * base IRs (`yolo26s`: 0 true / 146 false positives; `yolo26m*`: NaN
10647
+ * scores) on the Core Ultra iGPU and the N100. Threaded to the pool as
10648
+ * `PoolModelConfig.gpuInferencePrecision`; the pool sets
10649
+ * INFERENCE_PRECISION_HINT on a GPU only. Costs ~60% latency on the GPU.
10650
+ */
10651
+ gpuInferencePrecision: _enum(["f32", "f16"]).optional(),
10652
+ /**
10653
+ * ROOT detectors only: per supplied step (`animal-classifier`, …), the
10654
+ * minimum DETECTION score from which this root's own fine label (species,
10655
+ * vehicle type — D736 root supply) is taken (D741). Below it the detection
10656
+ * keeps its macro class without the fine label. `1` = never take it from
10657
+ * this root. Absent ⇒ no floor beyond the macro floor. The supplied step's
10658
+ * `minConfidence` slider, bound to the ROOT model, overrides it.
10659
+ */
10660
+ suppliedLabelFloors: record(string(), number().min(0).max(1)).optional(),
10661
+ /**
10675
10662
  * When true, the executor produces a landmark-aligned crop (similarity warp
10676
10663
  * onto the canonical template) before this step runs, instead of a plain
10677
10664
  * axis-aligned bbox crop. Required for face-recognition embedders (ArcFace):
@@ -10733,6 +10720,16 @@ var ModelCatalogEntrySchema = object({
10733
10720
  */
10734
10721
  classMap: DetectionCatalogClassMapSchema.optional(),
10735
10722
  /**
10723
+ * The pipeline steps this ROOT detector can supply from its own output
10724
+ * (D730): its labels name a step's effect (`deer` for `animal-classifier`)
10725
+ * or draw a step's box (`license_plate` for `plate-detection`). Computed at
10726
+ * import from THIS model's labelmap by `deriveRootSupplies`, never written
10727
+ * by hand and never assumed per family; a row without it is derived on read
10728
+ * (`rootSuppliesOf`). Whether a camera uses it is the step's own
10729
+ * `useRootModel` flag (`resolveRootSupply`).
10730
+ */
10731
+ suppliesSteps: array(RootStepSupplySchema).readonly().optional(),
10732
+ /**
10736
10733
  * The model's CLIP feature-space contract (text encoder, dimension, vector
10737
10734
  * index, token window, search floor) — see `clip-model.ts`. Present ONLY on a
10738
10735
  * CLIP image encoder; its absence is what "not a CLIP model" means to the
@@ -12383,13 +12380,6 @@ var BrokerRtspClientSchema = object({
12383
12380
  lastRtpAt: number(),
12384
12381
  bytesSent: number()
12385
12382
  });
12386
- var BrokerDecodedClientSchema = object({
12387
- tag: string(),
12388
- subscribedAt: number(),
12389
- maxFps: number(),
12390
- framesDelivered: number(),
12391
- framesDropped: number()
12392
- });
12393
12383
  var BrokerAudioClientSchema = object({
12394
12384
  tag: string(),
12395
12385
  subscribedAt: number(),
@@ -12481,7 +12471,6 @@ var BrokerEncodedClientSchema = object({
12481
12471
  });
12482
12472
  var BrokerClientsSchema = object({
12483
12473
  rtsp: array(BrokerRtspClientSchema).readonly(),
12484
- decoded: array(BrokerDecodedClientSchema).readonly(),
12485
12474
  audio: array(BrokerAudioClientSchema).readonly(),
12486
12475
  encoded: array(BrokerEncodedClientSchema).readonly(),
12487
12476
  pipeClients: number(),
@@ -12850,11 +12839,7 @@ method(object({
12850
12839
  auth: "admin"
12851
12840
  }), method(object({ brokerId: string() }), BrokerClientsSchema), method(object({
12852
12841
  brokerId: string(),
12853
- channel: _enum([
12854
- "rtsp",
12855
- "decoded",
12856
- "audio"
12857
- ]),
12842
+ channel: _enum(["rtsp", "audio"]),
12858
12843
  handle: string()
12859
12844
  }), object({ killed: boolean() }), {
12860
12845
  kind: "mutation",
@@ -12889,10 +12874,7 @@ method(object({
12889
12874
  }), method(SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, { kind: "mutation" }), method(object({
12890
12875
  subscriptionId: string(),
12891
12876
  maxCount: number().int().positive().default(8)
12892
- }), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(SubscribeFramesInputSchema, SubscribeFramesResultSchema, { kind: "mutation" }), method(object({
12893
- subscriptionId: string(),
12894
- maxCount: number().int().positive().default(4)
12895
- }), array(FrameHandleSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(object({
12877
+ }), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(object({
12896
12878
  brokerId: string(),
12897
12879
  seconds: number().min(0).max(30)
12898
12880
  }), _void(), {
@@ -14151,54 +14133,12 @@ id: union([string(), number()]) }), {
14151
14133
  kind: "mutation",
14152
14134
  auth: "admin"
14153
14135
  });
14154
- /**
14155
- * shm ring usage stats for a `frameSink: 'shm'` decoder session —
14156
- * exposed via `decoder.getShmStats` so downstream consumers can
14157
- * observe ring pressure (slot count, byte budget, hit/miss ratio).
14158
- */
14159
- var ShmRingStatsSchema = object({
14160
- sessionId: string(),
14161
- slotCount: number().int(),
14162
- slotByteLength: number().int(),
14163
- segmentBytes: number().int(),
14164
- budgetMb: number().int(),
14165
- framesWritten: number().int(),
14166
- getFrameHits: number().int(),
14167
- getFrameMisses: number().int()
14168
- });
14169
- method(object({ codec: string() }), boolean()), method(_void(), object({
14136
+ method(_void(), object({
14170
14137
  id: string(),
14171
14138
  name: string(),
14172
- isPullMode: boolean().optional(),
14173
- priority: number().optional(),
14174
14139
  hwaccel: string().optional(),
14175
14140
  probedBestHwaccel: string().optional()
14176
- })), method(DecoderSessionConfigSchema, object({
14177
- sessionId: string(),
14178
- nodeId: string()
14179
- })), method(object({ sessionId: string() }), _void()), method(object({
14180
- sessionId: string(),
14181
- packet: EncodedPacketSchema
14182
- }), _void()), method(object({
14183
- sessionId: string(),
14184
- url: string()
14185
- }), _void()), method(object({
14186
- sessionId: string(),
14187
- maxCount: number().default(1),
14188
- waitMs: number().optional()
14189
- }), array(DecodedFrameSchema)), method(object({
14190
- sessionId: string(),
14191
- maxCount: number().default(1),
14192
- waitMs: number().optional()
14193
- }), array(FrameHandleSchema)), method(object({ handle: FrameHandleSchema }), DecodedFrameSchema.nullable()), method(object({ sessionId: string() }), ShmRingStatsSchema.nullable()), method(object({
14194
- sessionId: string(),
14195
- config: DecoderSessionConfigSchema.partial()
14196
- }), _void()), method(object({ sessionId: string() }), DecoderStatsSchema), method(_void(), array(object({
14197
- sessionId: string(),
14198
- codec: string(),
14199
- outputFormat: string(),
14200
- createdAtMs: number()
14201
- })).readonly()), method(_void(), object({ backend: string() }), {
14141
+ })), method(_void(), object({ backend: string() }), {
14202
14142
  kind: "mutation",
14203
14143
  auth: "admin"
14204
14144
  });
@@ -16360,6 +16300,12 @@ method(_void(), array(string()).readonly(), { auth: "admin" }), method(object({
16360
16300
  kind: "mutation",
16361
16301
  auth: "admin"
16362
16302
  });
16303
+ var HUB_ADDRESS_ROLES = [
16304
+ "appConnections",
16305
+ "notificationTaps",
16306
+ "internal",
16307
+ "publicEndpoint"
16308
+ ];
16363
16309
  /**
16364
16310
  * Transport bounds for AI capability methods.
16365
16311
  *
@@ -18962,6 +18908,8 @@ var NcSystemEventKindSchema = _enum([
18962
18908
  "stream-offline",
18963
18909
  "node-online",
18964
18910
  "node-offline",
18911
+ "node-restarting",
18912
+ "node-updating",
18965
18913
  "node-inference-unavailable",
18966
18914
  "detection-blind",
18967
18915
  "addon-crash-loop",
@@ -20567,7 +20515,13 @@ var NcAlarmModeDelaysListSchema = array(object({
20567
20515
  * Absent = false (logged, not sent). Even when true it is not sent when that same sensor
20568
20516
  * is the one that starts the entry delay — the entry-delay notification already names it.
20569
20517
  */
20570
- notifySensorRewatched: boolean().optional()
20518
+ notifySensorRewatched: boolean().optional(),
20519
+ /**
20520
+ * D735: notify "ignored" when a sensor this arm bypassed really MOVED while armed (its own
20521
+ * change time is after the arm) and set nothing off. Absent = false (logged, not sent). A
20522
+ * re-sync, a recovery from `unavailable` or a duplicate is never announced, switch or not.
20523
+ */
20524
+ notifySensorIgnored: boolean().optional()
20571
20525
  })).max(8).refine(uniqueModes, { message: "modeDelays: at most one entry per arm mode" });
20572
20526
  var NcAlarmModeDelaysEditListSchema = array(object({
20573
20527
  mode: AlarmArmModeSchema,
@@ -20580,7 +20534,9 @@ var NcAlarmModeDelaysEditListSchema = array(object({
20580
20534
  /** D706: set the switch, or `null` to clear it (back to the default, false). */
20581
20535
  notifyDuringEntryDelay: boolean().nullable().optional(),
20582
20536
  /** D706: set the switch, or `null` to clear it (back to the default, false). */
20583
- notifySensorRewatched: boolean().nullable().optional()
20537
+ notifySensorRewatched: boolean().nullable().optional(),
20538
+ /** D735: set the switch, or `null` to clear it (back to the default, false). */
20539
+ notifySensorIgnored: boolean().nullable().optional()
20584
20540
  })).max(8).refine(uniqueModes, { message: "modeDelays: at most one edit per arm mode" });
20585
20541
  /** One switch of the alarm table: put ONE device on, or take it off, ONE mode's list. */
20586
20542
  var NcAlarmNonBlockingEditSchema = object({
@@ -21558,8 +21514,8 @@ Object.freeze(Object.fromEntries([{
21558
21514
  var CLUSTER_STEP_SETTING_FIELDS = [{
21559
21515
  stepId: "face-embedding",
21560
21516
  key: "minLandmarkFaceSize",
21561
- label: "Min face size for recognition (detection px)",
21562
- 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.",
21517
+ label: "Min face size to embed (detection-frame px)",
21518
+ 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.",
21563
21519
  type: "slider",
21564
21520
  min: 0,
21565
21521
  max: 64,
@@ -23479,6 +23435,34 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
23479
23435
  timestamp: number()
23480
23436
  });
23481
23437
  /**
23438
+ * A root model's boxes standing in for one crop-kind step's own inference
23439
+ * (D730) — see `runPipeline.suppliedRoot`.
23440
+ */
23441
+ var SuppliedRootOutputSchema = object({
23442
+ stepId: string(),
23443
+ /** The root model that drew the boxes — stamped on the result. */
23444
+ modelId: string(),
23445
+ detections: array(object({
23446
+ /** `[x1, y1, x2, y2]` in the pixels of the call's image. */
23447
+ bbox: tuple([
23448
+ number(),
23449
+ number(),
23450
+ number(),
23451
+ number()
23452
+ ]),
23453
+ score: number(),
23454
+ /**
23455
+ * Five facial landmarks in the same pixels — a face the step's own
23456
+ * detector already re-found inside a root face box (D730), so its
23457
+ * embedder child aligns it exactly as it aligns any detected face.
23458
+ */
23459
+ landmarks: array(object({
23460
+ x: number(),
23461
+ y: number()
23462
+ })).optional()
23463
+ })).min(1)
23464
+ });
23465
+ /**
23482
23466
  * Reference to the frame's retained NATIVE surface + the parent crop's placement
23483
23467
  * within the frame, so the executor can re-cut a leaf child ROI at native
23484
23468
  * resolution on the detail plane. See the `runPipeline` `nativeCropRef` field.
@@ -23526,7 +23510,7 @@ var FrameRefSchema = object({
23526
23510
  timestamp: number(),
23527
23511
  capturedAt: number().optional()
23528
23512
  });
23529
- var ModelFormatSchema$1 = _enum([
23513
+ var ModelFormatSchema$2 = _enum([
23530
23514
  "onnx",
23531
23515
  "coreml",
23532
23516
  "openvino",
@@ -23544,7 +23528,7 @@ var PipelineSlotSchema = _enum([
23544
23528
  var PipelineEngineChoiceSchema = object({
23545
23529
  runtime: literal("python"),
23546
23530
  backend: string(),
23547
- format: ModelFormatSchema$1,
23531
+ format: ModelFormatSchema$2,
23548
23532
  device: string().optional()
23549
23533
  });
23550
23534
  /**
@@ -23583,32 +23567,15 @@ var PipelineDefaultStepSchema = lazy(() => object({
23583
23567
  group: string().optional(),
23584
23568
  settings: record(string(), unknown()).optional()
23585
23569
  }));
23586
- var PipelineTemplateStepSchema = lazy(() => object({
23587
- addonId: string(),
23588
- enabled: boolean(),
23589
- modelId: string(),
23590
- children: array(PipelineTemplateStepSchema).readonly(),
23591
- settings: record(string(), unknown()).optional()
23592
- }));
23593
- var PipelineTemplateSchema$1 = object({
23594
- id: string(),
23595
- name: string(),
23596
- createdAt: string(),
23597
- updatedAt: string(),
23598
- engine: PipelineEngineChoiceSchema,
23599
- steps: array(PipelineTemplateStepSchema).readonly()
23600
- });
23601
23570
  var PipelineModelOptionSchema = object({
23602
23571
  id: string(),
23603
23572
  name: string(),
23604
- formats: record(string(), object({
23605
- downloaded: boolean(),
23606
- sizeMB: number()
23607
- })),
23573
+ formats: record(string(), PipelineModelFormatStatusSchema),
23608
23574
  group: ModelVariantGroupSchema.optional(),
23609
23575
  legacy: boolean().optional(),
23610
23576
  provider: ModelProviderIdSchema.optional(),
23611
- defaultConfidence: number().optional()
23577
+ defaultConfidence: number().optional(),
23578
+ suppliesSteps: array(RootStepSupplySchema).readonly().optional()
23612
23579
  });
23613
23580
  var ConfigFieldBridge = custom();
23614
23581
  var PipelineAddonSchemaSchema = object({
@@ -23770,6 +23737,22 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
23770
23737
  }), {
23771
23738
  kind: "mutation",
23772
23739
  auth: "admin"
23740
+ }), method(object({
23741
+ nodeId: string(),
23742
+ deviceIds: array(number()).readonly().optional(),
23743
+ dryRun: boolean()
23744
+ }), object({
23745
+ entries: array(object({
23746
+ deviceId: number(),
23747
+ keys: array(string()).readonly()
23748
+ })).readonly(),
23749
+ refused: array(object({
23750
+ deviceId: number(),
23751
+ reason: string()
23752
+ })).readonly()
23753
+ }), {
23754
+ kind: "mutation",
23755
+ auth: "admin"
23773
23756
  }), method(object({ nodeId: string() }), object({ unhealthy: array(object({
23774
23757
  /** `<backend>:<device>`, e.g. `openvino:gpu`. */
23775
23758
  deviceKey: string(),
@@ -23795,22 +23778,14 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
23795
23778
  }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(object({
23796
23779
  steps: array(PipelineStepInputSchema),
23797
23780
  deviceKey: string().optional()
23798
- }), PipelineValidationResultSchema), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
23799
- name: string(),
23800
- steps: array(PipelineTemplateStepSchema).readonly(),
23801
- engine: PipelineEngineChoiceSchema
23802
- }), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({
23803
- id: string(),
23804
- name: string().optional(),
23805
- steps: array(PipelineTemplateStepSchema).readonly().optional()
23806
- }), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({ id: string() }), _void(), { kind: "mutation" }), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string() }), ModelAvailabilityListBridge), method(object({
23781
+ }), PipelineValidationResultSchema), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string() }), ModelAvailabilityListBridge), method(object({
23807
23782
  addonId: string(),
23808
23783
  modelId: string(),
23809
- format: ModelFormatSchema$1
23784
+ format: ModelFormatSchema$2
23810
23785
  }), DownloadModelResultSchema, { kind: "mutation" }), method(object({
23811
23786
  addonId: string(),
23812
23787
  modelId: string(),
23813
- format: ModelFormatSchema$1
23788
+ format: ModelFormatSchema$2
23814
23789
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
23815
23790
  steps: array(PipelineStepInputSchema).min(1),
23816
23791
  frame: FrameInputSchema.optional(),
@@ -23876,7 +23851,16 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
23876
23851
  * `device-not-servable`), and nothing reaches the camera's live
23877
23852
  * trace stream. Absent ⇒ unchanged behaviour.
23878
23853
  */
23879
- replay: literal(true).optional()
23854
+ replay: literal(true).optional(),
23855
+ /**
23856
+ * Root-supplied detections for the tree's ROOT step (D730). Set by
23857
+ * `runDetailSubtree` when the camera's root model supplies a crop-kind
23858
+ * step (a Frigate+ `license_plate` for `plate-detection`): the step is
23859
+ * NOT inferred, these boxes are its output, and its children (the plate
23860
+ * reader) run on them through their own crop policy. Boxes are in the
23861
+ * PIXELS of the image this call carries. Absent ⇒ the root step runs.
23862
+ */
23863
+ suppliedRoot: SuppliedRootOutputSchema.optional()
23880
23864
  }), PipelineRunResultBridge, { kind: "mutation" }), method(object({
23881
23865
  steps: array(PipelineStepInputSchema).min(1),
23882
23866
  frames: array(FrameInputSchema).min(1).max(255),
@@ -23958,6 +23942,375 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
23958
23942
  filename: string().optional(),
23959
23943
  settings: record(string(), unknown()).optional()
23960
23944
  }), AudioTestResultSchema, { kind: "mutation" }), method(_void(), ConfigUISchemaNullableBridge);
23945
+ /**
23946
+ * The wire shapes of the Auto tune plan and apply (D745), used by the
23947
+ * `pipeline-orchestrator` cap. The recommender's own types
23948
+ * (`recommend.ts`) are the TS face of the same data; these
23949
+ * schemas are what crosses the cap boundary.
23950
+ */
23951
+ var ModelFormatSchema$1 = _enum(MODEL_FORMATS);
23952
+ /** The operator's range for it. */
23953
+ var MIN_SESSIONS_PER_DEVICE_RANGE = {
23954
+ min: 1,
23955
+ max: 8
23956
+ };
23957
+ var HardwareClassIdSchema = _enum([
23958
+ "intel-core-ultra",
23959
+ "intel-n-series",
23960
+ "apple-m-base",
23961
+ "apple-m-pro",
23962
+ "unknown"
23963
+ ]);
23964
+ var AcceleratorKindSchema = _enum([
23965
+ "intel-npu",
23966
+ "intel-igpu",
23967
+ "x86-cpu",
23968
+ "arm-cpu",
23969
+ "apple-ane",
23970
+ "coral"
23971
+ ]);
23972
+ var RecommendationReasonSchema = discriminatedUnion("kind", [
23973
+ object({
23974
+ kind: literal("capacity"),
23975
+ sessions: number(),
23976
+ minSessions: number()
23977
+ }),
23978
+ object({
23979
+ kind: literal("tie-faster"),
23980
+ over: string(),
23981
+ recallDelta: number()
23982
+ }),
23983
+ object({
23984
+ kind: literal("stepped-down"),
23985
+ from: string(),
23986
+ to: string(),
23987
+ limitedBy: string()
23988
+ }),
23989
+ object({
23990
+ kind: literal("no-fit-lightest"),
23991
+ sessions: number(),
23992
+ minSessions: number()
23993
+ }),
23994
+ object({
23995
+ kind: literal("derived-latency"),
23996
+ modelId: string()
23997
+ }),
23998
+ object({ kind: literal("cpu-device") }),
23999
+ object({ kind: literal("coral-untouched") }),
24000
+ object({ kind: literal("device-disabled") }),
24001
+ object({ kind: literal("device-unavailable") }),
24002
+ object({ kind: literal("node-offline") }),
24003
+ object({ kind: literal("no-hardware-facts") }),
24004
+ object({
24005
+ kind: literal("no-measured-data"),
24006
+ hardwareClass: HardwareClassIdSchema
24007
+ }),
24008
+ object({
24009
+ kind: literal("no-family-build"),
24010
+ format: ModelFormatSchema$1
24011
+ })
24012
+ ]);
24013
+ var DeviceModelChoiceSchema = object({
24014
+ modelId: string(),
24015
+ p50Ms: number(),
24016
+ fps: number(),
24017
+ measured: boolean(),
24018
+ /** Parallel sessions at the camera rate with the headroom kept free: ⌊fps × (1 − headroom) / camera fps⌋. */
24019
+ capacitySessions: number(),
24020
+ personRecall: number()
24021
+ });
24022
+ var DeviceRecommendationSchema = object({
24023
+ deviceKey: string(),
24024
+ accelerator: AcceleratorKindSchema.nullable(),
24025
+ enabled: boolean(),
24026
+ available: boolean(),
24027
+ chosen: DeviceModelChoiceSchema.nullable(),
24028
+ reasons: array(RecommendationReasonSchema).readonly()
24029
+ });
24030
+ var NodeRecommendationSchema = object({
24031
+ nodeId: string(),
24032
+ reachable: boolean(),
24033
+ hardwareClass: HardwareClassIdSchema.nullable(),
24034
+ cpuModel: string().nullable(),
24035
+ skipped: boolean(),
24036
+ acceleratorModelId: string().nullable(),
24037
+ devices: array(DeviceRecommendationSchema).readonly(),
24038
+ reasons: array(RecommendationReasonSchema).readonly()
24039
+ });
24040
+ var ModelPinChangeSchema = object({
24041
+ stepId: string(),
24042
+ before: string().nullable(),
24043
+ after: string().nullable()
24044
+ });
24045
+ var NodeDeviceChangeSchema = object({
24046
+ nodeId: string(),
24047
+ deviceKey: string(),
24048
+ madeExplicit: boolean(),
24049
+ modelPins: array(ModelPinChangeSchema).readonly(),
24050
+ thresholds: array(object({
24051
+ stepId: string(),
24052
+ keys: array(string()).readonly()
24053
+ })).readonly()
24054
+ });
24055
+ var CameraOverrideClearSchema = object({
24056
+ deviceId: number(),
24057
+ source: _enum(["step-override", "wholesale"]),
24058
+ nodeId: string(),
24059
+ deviceKey: string().nullable(),
24060
+ stepId: string(),
24061
+ modelIdBefore: string().nullable(),
24062
+ keys: array(string()).readonly()
24063
+ });
24064
+ var DetectorStoreClearSchema = object({
24065
+ deviceId: number(),
24066
+ keys: array(string()).readonly()
24067
+ });
24068
+ var AutoTuneWarningSchema = discriminatedUnion("kind", [
24069
+ object({
24070
+ kind: literal("detector-store-cluster-wide"),
24071
+ skippedNodes: array(string()).readonly()
24072
+ }),
24073
+ object({
24074
+ kind: literal("detector-store-unreadable"),
24075
+ error: string()
24076
+ }),
24077
+ object({
24078
+ kind: literal("coral-enabled"),
24079
+ nodeId: string(),
24080
+ deviceKey: string()
24081
+ })
24082
+ ]);
24083
+ var AutoTuneOptionsSchema = object({
24084
+ /** Share of each accelerator's throughput kept free (0.3–0.5). */
24085
+ headroom: number().min(.3).max(.5).default(.4),
24086
+ /**
24087
+ * The least number of parallel sessions every device must sustain at the
24088
+ * camera rate with the headroom kept free (D755). The most accurate model
24089
+ * that reaches it wins.
24090
+ */
24091
+ minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
24092
+ });
24093
+ var AutoTunePlanSchema = object({
24094
+ /** Hash of everything the apply will write — the apply refuses a different one. */
24095
+ planHash: string(),
24096
+ family: literal("yolov9"),
24097
+ headroom: number(),
24098
+ minSessionsPerDevice: number(),
24099
+ /** The detection rate a session is counted at (the fastest camera running the pipeline root). */
24100
+ cameraFps: number(),
24101
+ generatedAt: number(),
24102
+ nodes: array(NodeRecommendationSchema).readonly(),
24103
+ nodeChanges: array(NodeDeviceChangeSchema).readonly(),
24104
+ cameraClears: array(CameraOverrideClearSchema).readonly(),
24105
+ detectorStoreClears: array(DetectorStoreClearSchema).readonly(),
24106
+ warnings: array(AutoTuneWarningSchema).readonly()
24107
+ });
24108
+ var AutoTuneApplyInputSchema = object({
24109
+ planHash: string(),
24110
+ headroom: number().min(.3).max(.5).default(.4),
24111
+ minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
24112
+ });
24113
+ var AutoTunePhaseResultSchema = object({
24114
+ phase: _enum([
24115
+ "download",
24116
+ "camera-overrides",
24117
+ "detector-thresholds",
24118
+ "node-models",
24119
+ "redispatch"
24120
+ ]),
24121
+ ok: boolean(),
24122
+ detail: string()
24123
+ });
24124
+ var AutoTuneApplyResultSchema = discriminatedUnion("kind", [
24125
+ object({
24126
+ kind: literal("applied"),
24127
+ planHash: string(),
24128
+ phases: array(AutoTunePhaseResultSchema).readonly()
24129
+ }),
24130
+ object({
24131
+ kind: literal("aborted"),
24132
+ phases: array(AutoTunePhaseResultSchema).readonly()
24133
+ }),
24134
+ object({
24135
+ kind: literal("stale"),
24136
+ plan: AutoTunePlanSchema
24137
+ }),
24138
+ object({
24139
+ kind: literal("refused"),
24140
+ reason: _enum(["apply-in-progress"])
24141
+ })
24142
+ ]);
24143
+ /**
24144
+ * Wire shapes of the Load balancing surface (D748): the session placement
24145
+ * policy, the atomic share write, the observed placement statistics, the
24146
+ * hardware share suggestion and the stale device pins.
24147
+ */
24148
+ /**
24149
+ * How a new detection session picks its node and device.
24150
+ * - `least-loaded` — the historical rule: lowest `attached / weight`, a
24151
+ * constant node order at a tie (D37). An idle node always ties at 0, so a
24152
+ * weight only bites once a node already holds a session.
24153
+ * - `share` — the share of PARALLEL sessions is held to the weights, and a
24154
+ * full or drowning node yields to a free one (D748).
24155
+ */
24156
+ var SessionPlacementPolicySchema = _enum(["least-loaded", "share"]);
24157
+ var LoadBalancingSharesInputSchema = object({
24158
+ /** nodeId → share (> 0). A node left out keeps its weight. */
24159
+ nodes: record(string(), number().positive()).default({}),
24160
+ /** nodeId → deviceKey → share (> 0). A device left out keeps its weight. */
24161
+ devices: record(string(), record(string(), number().positive())).default({})
24162
+ });
24163
+ var PlacementStatsInputSchema = object({
24164
+ /** Window the observed shares are averaged over (default 1 h, max 24 h). */
24165
+ windowMs: number().int().min(6e4).max(1440 * 60 * 1e3).default(3600 * 1e3) });
24166
+ var PlacementDeviceStatsSchema = object({
24167
+ deviceKey: string(),
24168
+ /** Sessions running on this device now. */
24169
+ sessionsNow: number(),
24170
+ /** Sessions started on this device inside the window. */
24171
+ sessionsStarted: number(),
24172
+ /** Time-weighted share of the node's parallel sessions over the window (0–1); null = no session ran. */
24173
+ observedShare: number().nullable()
24174
+ });
24175
+ var PlacementNodeStatsSchema = object({
24176
+ nodeId: string(),
24177
+ sessionsNow: number(),
24178
+ sessionsStarted: number(),
24179
+ /** Time-weighted share of the cluster's parallel sessions over the window (0–1); null = none ran. */
24180
+ observedShare: number().nullable(),
24181
+ /** Most sessions this node ran at once inside the window. */
24182
+ peakSessions: number(),
24183
+ /** Sessions a share election handed elsewhere because this node was full or drowning. */
24184
+ yieldsAway: number(),
24185
+ devices: array(PlacementDeviceStatsSchema).readonly()
24186
+ });
24187
+ /** A camera's device pin that the session path cannot honour. */
24188
+ var StaleDevicePinSchema = object({
24189
+ deviceId: number(),
24190
+ deviceKey: string(),
24191
+ /** `disabled` — the key exists on some node but is not enabled anywhere; `absent` — no node has it. */
24192
+ reason: _enum(["disabled", "absent"])
24193
+ });
24194
+ var PlacementStatsSchema = object({
24195
+ policy: SessionPlacementPolicySchema,
24196
+ windowMs: number(),
24197
+ /** How much of the window was actually observed (the hub keeps it in memory). */
24198
+ observedForMs: number(),
24199
+ sessionsNow: number(),
24200
+ /** Most parallel sessions across the cluster inside the window. */
24201
+ clusterPeakSessions: number(),
24202
+ nodes: array(PlacementNodeStatsSchema).readonly(),
24203
+ stalePins: array(StaleDevicePinSchema).readonly()
24204
+ });
24205
+ /**
24206
+ * Where an automatic share's capacity comes from (D755).
24207
+ * - `hardware` — the static capacity of each device at its Auto tune model:
24208
+ * the measured latency table for the node's hardware class.
24209
+ * - `benchmark` — the node's own measured capacity (node benchmark results).
24210
+ * A node with no results falls back to `hardware`, and says so.
24211
+ */
24212
+ var CapacitySourceSchema = _enum(["hardware", "benchmark"]);
24213
+ /** Why a node under the `benchmark` source was sized from hardware instead. */
24214
+ var CapacityFallbackSchema = _enum(["no-benchmark-results", "partial-benchmark-results"]);
24215
+ var SuggestSharesInputSchema = object({
24216
+ headroom: number().min(.3).max(.5).default(.4),
24217
+ /** Default `hardware`. */
24218
+ source: CapacitySourceSchema.default("hardware")
24219
+ });
24220
+ var SuggestedDeviceShareSchema = object({
24221
+ deviceKey: string(),
24222
+ /** Share of the node (0–100, rounded). */
24223
+ share: number(),
24224
+ modelId: string().nullable(),
24225
+ /** Inferences per second at that model, from the measured table; null when sized by a benchmark. */
24226
+ fps: number().nullable(),
24227
+ /** False for a table cell derived from another chip; true for a measured cell or a benchmark. */
24228
+ measured: boolean(),
24229
+ /**
24230
+ * Advisory session cap: ⌊fps × (1 − headroom) / camera fps⌋ from the table,
24231
+ * or the benchmark's measured max sessions. Never enforced.
24232
+ */
24233
+ suggestedMaxSessions: number().nullable()
24234
+ });
24235
+ var SuggestedNodeShareSchema = object({
24236
+ nodeId: string(),
24237
+ /** Share of the cluster (0–100, rounded); null = node skipped (offline, unknown hardware). */
24238
+ share: number().nullable(),
24239
+ /** Parallel sessions the node sustains at the suggested models with the headroom kept free. */
24240
+ capacitySessions: number(),
24241
+ devices: array(SuggestedDeviceShareSchema).readonly(),
24242
+ skippedReason: string().nullable(),
24243
+ /** What this node's capacity was read from; null when the node is skipped. */
24244
+ capacitySource: CapacitySourceSchema.nullable(),
24245
+ /** Set when the `benchmark` source was asked for and this node used `hardware`. */
24246
+ capacityFallback: CapacityFallbackSchema.nullable()
24247
+ });
24248
+ var SuggestSharesResultSchema = object({
24249
+ headroom: number(),
24250
+ /** The source asked for; each node says what it actually used. */
24251
+ source: CapacitySourceSchema,
24252
+ /** Camera detection rate the capacity is counted in (the fastest camera's fps). */
24253
+ cameraFps: number(),
24254
+ /** The Auto tune capacity floor the models were picked at. */
24255
+ minSessionsPerDevice: number(),
24256
+ nodes: array(SuggestedNodeShareSchema).readonly()
24257
+ });
24258
+ /**
24259
+ * Where the node and device shares come from (D750, D755).
24260
+ * - `hardware` (default) — computed by the system from each node's static
24261
+ * capacity (its accelerators at their Auto tune models, from the measured
24262
+ * latency table), recomputed whenever a node or device joins, leaves, is
24263
+ * switched on or off, or changes model. No load input.
24264
+ * - `benchmark` — the same, from each node's measured capacity (node
24265
+ * benchmark results); a node without results falls back to `hardware`.
24266
+ * - `manual` — the operator's stored sliders.
24267
+ * Either way a node or device that cannot take sessions gives its share to
24268
+ * the others in proportion; the stored values are never rewritten for that.
24269
+ */
24270
+ var ShareSourceSchema = _enum([
24271
+ "hardware",
24272
+ "benchmark",
24273
+ "manual"
24274
+ ]);
24275
+ var SetShareSourceInputSchema = object({ source: ShareSourceSchema });
24276
+ object({
24277
+ nodes: record(string(), number()),
24278
+ devices: record(string(), record(string(), number()))
24279
+ });
24280
+ var EffectiveDeviceShareSchema = object({
24281
+ deviceKey: string(),
24282
+ /** Can take sessions now (enabled, available, can run the root). */
24283
+ eligible: boolean(),
24284
+ /** The share the source assigns, as a percentage of the node's devices. */
24285
+ configuredPct: number(),
24286
+ /** The share actually used, after an ineligible device's share went to the others. */
24287
+ effectivePct: number()
24288
+ });
24289
+ var EffectiveNodeShareSchema = object({
24290
+ nodeId: string(),
24291
+ eligible: boolean(),
24292
+ configuredPct: number(),
24293
+ effectivePct: number(),
24294
+ /** Automatic sources: what this node's share was computed from; null under `manual` or before the first answer. */
24295
+ capacitySource: CapacitySourceSchema.nullable(),
24296
+ /** Automatic `benchmark`: why this node used `hardware` instead. */
24297
+ capacityFallback: CapacityFallbackSchema.nullable(),
24298
+ devices: array(EffectiveDeviceShareSchema).readonly()
24299
+ });
24300
+ var EffectiveSharesSchema = object({
24301
+ source: ShareSourceSchema,
24302
+ policy: SessionPlacementPolicySchema,
24303
+ /** An automatic source with no computed answer yet: the stored sliders are used meanwhile. */
24304
+ autoPending: boolean(),
24305
+ /** When the automatic shares were last computed (ms epoch); null = never. */
24306
+ computedAt: number().nullable(),
24307
+ /** What made the system recompute them last. */
24308
+ trigger: string().nullable(),
24309
+ nodes: array(EffectiveNodeShareSchema).readonly(),
24310
+ /** The relative weights the election reads (before eligibility). */
24311
+ nodeWeights: record(string(), number()),
24312
+ deviceWeights: record(string(), record(string(), number()))
24313
+ });
23961
24314
  object({
23962
24315
  activeCameras: number(),
23963
24316
  throttledCameras: number(),
@@ -24875,14 +25228,15 @@ var RunnerLocalLoadSchema = object({
24875
25228
  * Per-inference-device live load (multi-device C4). One entry per deviceKey
24876
25229
  * this runner currently has attached cameras on, so the orchestrator's second
24877
25230
  * `balance()` pass (over a node's devices) weights on real per-pool session
24878
- * counts. Empty on single-device / pre-multi-device runners. `queueDepthTotal`
24879
- * per device is 0 until the pool backlog gets a public accessor (follow-up).
25231
+ * counts. Empty on single-device / pre-multi-device runners. There is no
25232
+ * per-device queue depth: the inference pool's backlog has no accessor, and
25233
+ * a field that always read 0 was removed rather than shown as a measurement
25234
+ * (D762).
24880
25235
  */
24881
25236
  devices: array(object({
24882
25237
  deviceKey: string(),
24883
25238
  backend: string(),
24884
- attachedCameras: number(),
24885
- queueDepthTotal: number()
25239
+ attachedCameras: number()
24886
25240
  })).default([]),
24887
25241
  /** Hardware capability flags reported by this node. */
24888
25242
  hardware: object({
@@ -25018,7 +25372,22 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
25018
25372
  */
25019
25373
  cropJpeg: string().optional(),
25020
25374
  parent: DetailParentSchema,
25021
- steps: array(string()).optional()
25375
+ steps: array(string()).optional(),
25376
+ /**
25377
+ * The camera's root model already drew this step's boxes (D730): a
25378
+ * `license_plate` inside the parent vehicle. The named step is NOT
25379
+ * inferred — these FRAME-space boxes are its output — and its
25380
+ * requested children (the plate reader) run on them. Absent ⇒ every
25381
+ * requested step infers as before.
25382
+ */
25383
+ supplied: object({
25384
+ stepId: string(),
25385
+ modelId: string(),
25386
+ boxes: array(object({
25387
+ bbox: NativeCropBboxSchema,
25388
+ score: number()
25389
+ })).min(1)
25390
+ }).optional()
25022
25391
  }), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" }), method(object({
25023
25392
  /** Catalog step id, e.g. `clip-embedding`. */
25024
25393
  stepId: string(),
@@ -25081,14 +25450,6 @@ var CameraPipelineConfigSchema = object({
25081
25450
  settings: record(string(), unknown()).readonly().optional()
25082
25451
  }).nullable().optional()
25083
25452
  });
25084
- var PipelineTemplateSchema = object({
25085
- id: string(),
25086
- name: string(),
25087
- description: string().optional(),
25088
- config: CameraPipelineConfigSchema,
25089
- createdAt: string(),
25090
- updatedAt: string()
25091
- });
25092
25453
  var DeviceStepConfigSchema = object({
25093
25454
  modelId: string().optional(),
25094
25455
  settings: record(string(), unknown()).optional(),
@@ -25162,9 +25523,10 @@ var CameraStepOverridePatchSchema = object({
25162
25523
  modelId: string().optional(),
25163
25524
  settings: record(string(), unknown()).readonly().optional()
25164
25525
  });
25526
+ var CameraStepSettingsSchema = record(string(), record(string(), unknown()).readonly());
25165
25527
  var CameraPipelineSettingsSchema = object({
25166
- pinnedAgentNodeId: string().optional(),
25167
25528
  stepToggles: record(string(), boolean()).optional(),
25529
+ stepSettings: CameraStepSettingsSchema.optional(),
25168
25530
  stepOverridesByDevice: record(string(), record(string(), record(string(), CameraStepOverridePatchSchema))).optional(),
25169
25531
  pipelineByAgent: record(string(), CameraPipelineForAgentSchema).optional()
25170
25532
  });
@@ -25197,7 +25559,10 @@ var PipelineAssignmentSchema = object({
25197
25559
  });
25198
25560
  /**
25199
25561
  * Per-agent load summary surfaced to the load balancer + dashboards.
25200
- * Aggregated from each runner's `getLocalLoad` cap call.
25562
+ * Aggregated from each runner's `getLocalLoad` cap call. In the
25563
+ * `getAgentLoad` report, a single-device node's default-pool sessions (no
25564
+ * `deviceKey`) are credited to its one eligible device in `load.devices` —
25565
+ * the default pool IS that device (D745); the balancer's census stays raw.
25201
25566
  */
25202
25567
  var AgentLoadSummarySchema = object({
25203
25568
  nodeId: string(),
@@ -25286,26 +25651,27 @@ var CameraBrokerStatusSchema = object({
25286
25651
  width: number(),
25287
25652
  height: number(),
25288
25653
  subscribers: number(),
25289
- inFps: number(),
25290
- outFps: number()
25654
+ /**
25655
+ * Encoded packets/s the broker receives from the camera. null when the
25656
+ * broker's stats read failed — unknown, never 0 (a 0 here reads as a stall).
25657
+ * There is no output rate: decoding runs in the session decode workers, not
25658
+ * in the broker, so the broker's own decoded-frame rate is 0 on every live
25659
+ * camera and is not served (D758).
25660
+ */
25661
+ inFps: number().nullable()
25291
25662
  })).readonly(),
25292
25663
  webrtcSessions: number(),
25293
25664
  rtspRestream: boolean()
25294
25665
  });
25295
- /** Shared-memory ring statistics within the decoder block. */
25296
- var CameraDecoderShmSchema = object({
25297
- framesWritten: number(),
25298
- getFrameHits: number(),
25299
- getFrameMisses: number(),
25300
- budgetMb: number()
25301
- });
25302
- /** Decoder block — null when the decoder stage is unreachable or inactive. */
25303
- var CameraDecoderStatusSchema = object({
25304
- nodeId: string(),
25305
- formats: array(string()).readonly(),
25306
- sessionCount: number(),
25307
- shm: CameraDecoderShmSchema
25308
- });
25666
+ /**
25667
+ * Decoder block — WHERE decode runs (co-located with the detection node by
25668
+ * construction); null when the camera has no detection node. It carries no
25669
+ * frame counter: the shared-memory plane whose counters it used to serve is
25670
+ * gone, and those fields read 0 forever. Whether frames actually flow is read
25671
+ * from `detection.actualFps` (frames delivered to and processed by the
25672
+ * detector), never from a counter nothing feeds.
25673
+ */
25674
+ var CameraDecoderStatusSchema = object({ nodeId: string() });
25309
25675
  /** Motion block — null when motion detection is not active for this device. */
25310
25676
  var CameraMotionStatusSchema = object({
25311
25677
  enabled: boolean(),
@@ -25662,12 +26028,6 @@ method(object({
25662
26028
  }), object({ success: literal(true) }), {
25663
26029
  kind: "mutation",
25664
26030
  auth: "admin"
25665
- }), method(object({
25666
- agentNodeId: string(),
25667
- detectWeight: number().positive().nullable()
25668
- }), object({ success: literal(true) }), {
25669
- kind: "mutation",
25670
- auth: "admin"
25671
26031
  }), method(object({
25672
26032
  agentNodeId: string(),
25673
26033
  detect: boolean().nullable().optional(),
@@ -25709,6 +26069,15 @@ method(object({
25709
26069
  }), {
25710
26070
  kind: "mutation",
25711
26071
  auth: "admin"
26072
+ }), method(AutoTuneOptionsSchema, AutoTunePlanSchema, { auth: "admin" }), method(AutoTuneApplyInputSchema, AutoTuneApplyResultSchema, {
26073
+ kind: "mutation",
26074
+ auth: "admin"
26075
+ }), method(LoadBalancingSharesInputSchema, object({ success: literal(true) }), {
26076
+ kind: "mutation",
26077
+ auth: "admin"
26078
+ }), method(PlacementStatsInputSchema, PlacementStatsSchema, { auth: "admin" }), method(SuggestSharesInputSchema, SuggestSharesResultSchema, { auth: "admin" }), method(_void(), EffectiveSharesSchema, { auth: "admin" }), method(SetShareSourceInputSchema, object({ success: literal(true) }), {
26079
+ kind: "mutation",
26080
+ auth: "admin"
25712
26081
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
25713
26082
  deviceId: number(),
25714
26083
  addonId: string(),
@@ -25725,6 +26094,13 @@ method(object({
25725
26094
  }), object({ success: literal(true) }), {
25726
26095
  kind: "mutation",
25727
26096
  auth: "admin"
26097
+ }), method(object({
26098
+ deviceId: number(),
26099
+ addonId: string(),
26100
+ settings: record(string(), unknown()).nullable()
26101
+ }), object({ success: literal(true) }), {
26102
+ kind: "mutation",
26103
+ auth: "admin"
25728
26104
  }), method(object({
25729
26105
  deviceId: number(),
25730
26106
  agentNodeId: string(),
@@ -25748,25 +26124,7 @@ method(object({
25748
26124
  }), method(_void(), DiskReconcileJobSchema, {
25749
26125
  kind: "mutation",
25750
26126
  auth: "admin"
25751
- }), method(_void(), DiskReconcileJobSchema, { auth: "admin" }), method(_void(), array(PipelineTemplateSchema).readonly()), method(object({
25752
- name: string(),
25753
- description: string().optional(),
25754
- config: CameraPipelineConfigSchema
25755
- }), PipelineTemplateSchema, {
25756
- kind: "mutation",
25757
- auth: "admin"
25758
- }), method(object({
25759
- id: string(),
25760
- name: string().optional(),
25761
- description: string().optional(),
25762
- config: CameraPipelineConfigSchema.optional()
25763
- }), PipelineTemplateSchema, {
25764
- kind: "mutation",
25765
- auth: "admin"
25766
- }), method(object({ id: string() }), object({ success: literal(true) }), {
25767
- kind: "mutation",
25768
- auth: "admin"
25769
- });
26127
+ }), method(_void(), DiskReconcileJobSchema, { auth: "admin" });
25770
26128
  /**
25771
26129
  * Cap → event-kind mapping for the SENSOR / CONTROL cap families — the table
25772
26130
  * `pipeline-analytics.listEventKinds` uses to turn a linked device's bound
@@ -28015,8 +28373,6 @@ var WebrtcStreamChoiceSchema = object({
28015
28373
  ]).nullable(),
28016
28374
  /** Input FPS from the camera (null for adaptive). */
28017
28375
  inputFps: number().nullable(),
28018
- /** Decoded FPS (null for adaptive). */
28019
- decodeFps: number().nullable(),
28020
28376
  /** Bitrate in kbps (null for adaptive). */
28021
28377
  bitrateKbps: number().nullable()
28022
28378
  });
@@ -28348,6 +28704,14 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
28348
28704
  */
28349
28705
  alive: boolean()
28350
28706
  })), method(object({
28707
+ deviceId: number().int().nonnegative(),
28708
+ sessionId: string(),
28709
+ downlinkMbps: number().nonnegative()
28710
+ }), object({
28711
+ outcome: _enum(["switching", "held"]),
28712
+ tier: CamProfileSchema.nullable(),
28713
+ reason: string()
28714
+ }), { kind: "mutation" }), method(object({
28351
28715
  deviceId: number().int().nonnegative(),
28352
28716
  sessionId: string()
28353
28717
  }), WebrtcSessionDebugSchema, { kind: "query" });
@@ -28587,6 +28951,59 @@ var AddonAutoUpdateSchema = ChannelWithInheritSchema;
28587
28951
  var RestartAddonResultSchema = unknown();
28588
28952
  var InstallPackageResultSchema = unknown();
28589
28953
  var ReloadPackagesResultSchema = unknown();
28954
+ /**
28955
+ * What an uninstall did on ONE node.
28956
+ * - `uninstalled` — removed: runner(s) stopped, caps gone, code deleted.
28957
+ * - `not-installed` — the node did not have it (nothing to do).
28958
+ * - `refused` — protected / bootstrap package; nothing touched.
28959
+ * - `failed` — attempted and did not complete; `error` says why.
28960
+ * - `pending-reconnect` — the node is OFFLINE: its record was pruned so the
28961
+ * back-fill never returns the package, and the stale-addon sweep removes the
28962
+ * copy when the node registers again (only once the hub no longer has it).
28963
+ */
28964
+ var UninstallNodeOutcomeSchema = _enum([
28965
+ "uninstalled",
28966
+ "not-installed",
28967
+ "refused",
28968
+ "failed",
28969
+ "pending-reconnect"
28970
+ ]);
28971
+ var UninstallNodeResultSchema = object({
28972
+ nodeId: string(),
28973
+ outcome: UninstallNodeOutcomeSchema,
28974
+ error: string().optional(),
28975
+ addonIds: array(string()).readonly(),
28976
+ runnersStopped: array(string()).readonly(),
28977
+ warnings: array(string()).readonly()
28978
+ });
28979
+ var UninstallPackageResultSchema = object({
28980
+ /** Every targeted node ended `uninstalled`, `not-installed` or `pending-reconnect`. */
28981
+ success: boolean(),
28982
+ packageName: string(),
28983
+ results: array(UninstallNodeResultSchema).readonly()
28984
+ });
28985
+ /**
28986
+ * `unreachable` lists online agents whose status read FAILED — absence from
28987
+ * `installations` is only "not installed" for a node that answered (D315).
28988
+ */
28989
+ var PackageInstallationsSchema = object({
28990
+ installations: array(object({
28991
+ packageName: string(),
28992
+ nodeId: string(),
28993
+ nodeName: string(),
28994
+ isHub: boolean(),
28995
+ isOnline: boolean(),
28996
+ version: string().nullable(),
28997
+ addonIds: array(string()).readonly(),
28998
+ source: _enum(["live", "recorded"]),
28999
+ /** The hub installs this package too. `false` on an agent row = an orphan. */
29000
+ onHub: boolean()
29001
+ })).readonly(),
29002
+ unreachable: array(object({
29003
+ nodeId: string(),
29004
+ error: string()
29005
+ })).readonly()
29006
+ });
28590
29007
  var BulkUpdateItemStatusSchema = _enum([
28591
29008
  "queued",
28592
29009
  "updating",
@@ -28669,10 +29086,14 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
28669
29086
  }), method(object({ packageName: string() }), InstallPackageResultSchema, {
28670
29087
  kind: "mutation",
28671
29088
  auth: "admin"
28672
- }), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({ packageName: string() }), unknown(), {
29089
+ }), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({
29090
+ packageName: string().min(1),
29091
+ nodeId: string().optional(),
29092
+ everywhere: boolean().optional()
29093
+ }), UninstallPackageResultSchema, {
28673
29094
  kind: "mutation",
28674
29095
  auth: "admin"
28675
- }), method(_void(), ReloadPackagesResultSchema, {
29096
+ }), method(object({ packageName: string().optional() }), PackageInstallationsSchema, { auth: "admin" }), method(_void(), ReloadPackagesResultSchema, {
28676
29097
  kind: "mutation",
28677
29098
  auth: "admin"
28678
29099
  }), method(object({ query: string().optional() }), array(SearchResultSchema)), method(object({ nodeId: string().optional() }), array(PackageUpdateSchema).readonly(), { auth: "admin" }), method(object({
@@ -32159,7 +32580,8 @@ var ConnectionEndpointSchema = object({
32159
32580
  "lan-ipv6",
32160
32581
  "public",
32161
32582
  "loopback",
32162
- "app-link"
32583
+ "app-link",
32584
+ "custom"
32163
32585
  ]),
32164
32586
  /**
32165
32587
  * Originating-interface kind — `lan`/`wifi`/`docker`/`vpn`/`other`/
@@ -32228,7 +32650,7 @@ var GetConnectionEndpointsResultSchema = object({
32228
32650
  localPort: AdvertisedLocalPortSchema
32229
32651
  });
32230
32652
  /**
32231
- * The address flagged for notification links. `baseUrl: null` = AUTO, which
32653
+ * The address flagged for notification taps (`notificationTaps`). `baseUrl: null` = AUTO, which
32232
32654
  * since D709 is the CamStack app link; `resolved` reports the effective value,
32233
32655
  * so the UI can show it either way.
32234
32656
  */
@@ -32261,6 +32683,72 @@ var ViewerEndpointsSchema = object({
32261
32683
  /** What the ranking currently resolves to (may be empty if nothing is up). */
32262
32684
  resolved: array(string()).readonly()
32263
32685
  });
32686
+ /**
32687
+ * DEPRECATED compatibility shape of `getHubAddresses` (D729 amendment, kept
32688
+ * for addons built against it): `cluster` is the `internal` role, `browser`
32689
+ * the `publicEndpoint` role; `override` is the flagged address.
32690
+ */
32691
+ var HubAddressSnapshotSchema = object({
32692
+ override: string().nullable(),
32693
+ resolved: string().nullable(),
32694
+ source: _enum([
32695
+ "override",
32696
+ "auto",
32697
+ "none"
32698
+ ])
32699
+ });
32700
+ var HubAddressesSchema = object({
32701
+ cluster: HubAddressSnapshotSchema,
32702
+ browser: HubAddressSnapshotSchema
32703
+ });
32704
+ /**
32705
+ * What an address is used for (`hub-address.ts`, D734). `appConnections` is
32706
+ * many-valued; `notificationTaps`, `publicEndpoint` and `internal` are carried
32707
+ * by at most one address.
32708
+ */
32709
+ var HubAddressRoleSchema = _enum(HUB_ADDRESS_ROLES);
32710
+ var RoleSourceSchema = _enum([
32711
+ "flagged",
32712
+ "auto",
32713
+ "none"
32714
+ ]);
32715
+ /** One single-valued role: the flagged address, the one in use, and why. */
32716
+ var HubAddressRoleResolutionSchema = object({
32717
+ /** The address carrying the flag, or null = automatic. */
32718
+ flagged: string().nullable(),
32719
+ /** The address in use, or null when nothing qualifies (never loopback). */
32720
+ resolved: string().nullable(),
32721
+ source: RoleSourceSchema
32722
+ });
32723
+ var HubAppConnectionsResolutionSchema = object({
32724
+ /** The addresses flagged `appConnections`, or empty = automatic. */
32725
+ flagged: array(string()).readonly(),
32726
+ /** What the apps race right now. */
32727
+ resolved: array(string()).readonly(),
32728
+ source: RoleSourceSchema
32729
+ });
32730
+ var HubAddressBookSchema = object({
32731
+ rows: array(ConnectionEndpointSchema.extend({
32732
+ /** In the hub's detected palette right now. */
32733
+ detected: boolean(),
32734
+ /** Entered by the operator (removable). */
32735
+ custom: boolean(),
32736
+ /** The roles explicitly flagged on this address. */
32737
+ flags: array(HubAddressRoleSchema).readonly(),
32738
+ /** The roles this address serves right now — flagged or automatic. */
32739
+ inUse: array(HubAddressRoleSchema).readonly(),
32740
+ /** The roles this address may be flagged with. */
32741
+ eligible: array(HubAddressRoleSchema).readonly()
32742
+ })).readonly(),
32743
+ roles: object({
32744
+ appConnections: HubAppConnectionsResolutionSchema,
32745
+ notificationTaps: HubAddressRoleResolutionSchema,
32746
+ internal: HubAddressRoleResolutionSchema,
32747
+ publicEndpoint: HubAddressRoleResolutionSchema
32748
+ }),
32749
+ /** The `hub=` an app link carries (D709), or null. */
32750
+ appLinkHub: string().nullable()
32751
+ });
32264
32752
  var AllowedAddressesSchema = object({
32265
32753
  /**
32266
32754
  * Allowlist of interface addresses operators have explicitly opted
@@ -32304,10 +32792,27 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
32304
32792
  * tunnel always emits `https://` regardless. */
32305
32793
  scheme: _enum(["http", "https"]).optional(),
32306
32794
  /** Append the CamStack app link entry (`kind: 'app-link'`, D709) —
32307
- * an address notification links can be flagged with, not a hub
32795
+ * an address notification taps can be flagged with, not a hub
32308
32796
  * route. Default `false`: racers and rankers never see it. */
32309
32797
  includeAppLink: boolean().optional()
32310
- }), 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, {
32798
+ }), 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({
32799
+ baseUrl: string(),
32800
+ label: string().max(80)
32801
+ }), HubAddressBookSchema, {
32802
+ kind: "mutation",
32803
+ auth: "admin"
32804
+ }), method(object({ baseUrl: string() }), HubAddressBookSchema, {
32805
+ kind: "mutation",
32806
+ auth: "admin"
32807
+ }), method(object({
32808
+ role: HubAddressRoleSchema,
32809
+ baseUrl: string().nullable(),
32810
+ enabled: boolean(),
32811
+ acceptInsecureHttp: boolean().optional()
32812
+ }), HubAddressBookSchema, {
32813
+ kind: "mutation",
32814
+ auth: "admin"
32815
+ }), 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, {
32311
32816
  kind: "mutation",
32312
32817
  auth: "admin"
32313
32818
  }), method(object({
@@ -32765,7 +33270,8 @@ var MotionStatusSchema = object({
32765
33270
  * writes this slice (not even a boot seed), and neither does the runner's
32766
33271
  * phase machine: its phase is "a session is attached" for every on-motion
32767
33272
  * session, not motion, and it now has its own `DetectionPhaseTransition`.
32768
- * A provider's `isDetected` answers from the hub's slice.
33273
+ * A provider's `isDetected` and `getStatus` answer from the hub's slice
33274
+ * (`hubMotionNativeProvider`).
32769
33275
  * - **Sensors** (Home Assistant binary sensors, Homematic, Matter, Alexa
32770
33276
  * imports) — the provider pushes both edges itself, from the upstream
32771
33277
  * system's own state change. That is the sensor's own fact.
@@ -39312,6 +39818,16 @@ var zoneRulesCapability = {
39312
39818
  durability: "restored"
39313
39819
  };
39314
39820
  SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
39821
+ Object.freeze({
39822
+ person: .5,
39823
+ vehicle: .5,
39824
+ animal: .5
39825
+ });
39826
+ Object.freeze({
39827
+ person: .65,
39828
+ vehicle: .65,
39829
+ animal: .65
39830
+ });
39315
39831
  /**
39316
39832
  * Accessory device helpers — shared across drivers.
39317
39833
  *
@@ -41010,6 +41526,12 @@ Object.freeze({
41010
41526
  addonId: null,
41011
41527
  access: "view"
41012
41528
  },
41529
+ "addons.listInstallations": {
41530
+ capName: "addons",
41531
+ capScope: "system",
41532
+ addonId: null,
41533
+ access: "view"
41534
+ },
41013
41535
  "addons.listJobs": {
41014
41536
  capName: "addons",
41015
41537
  capScope: "system",
@@ -42192,90 +42714,18 @@ Object.freeze({
42192
42714
  addonId: null,
42193
42715
  access: "create"
42194
42716
  },
42195
- "decoder.createSession": {
42196
- capName: "decoder",
42197
- capScope: "system",
42198
- addonId: null,
42199
- access: "view"
42200
- },
42201
- "decoder.destroySession": {
42202
- capName: "decoder",
42203
- capScope: "system",
42204
- addonId: null,
42205
- access: "delete"
42206
- },
42207
- "decoder.getFrame": {
42208
- capName: "decoder",
42209
- capScope: "system",
42210
- addonId: null,
42211
- access: "view"
42212
- },
42213
42717
  "decoder.getInfo": {
42214
42718
  capName: "decoder",
42215
42719
  capScope: "system",
42216
42720
  addonId: null,
42217
42721
  access: "view"
42218
42722
  },
42219
- "decoder.getShmStats": {
42220
- capName: "decoder",
42221
- capScope: "system",
42222
- addonId: null,
42223
- access: "view"
42224
- },
42225
- "decoder.getStats": {
42226
- capName: "decoder",
42227
- capScope: "system",
42228
- addonId: null,
42229
- access: "view"
42230
- },
42231
- "decoder.listActiveSessions": {
42232
- capName: "decoder",
42233
- capScope: "system",
42234
- addonId: null,
42235
- access: "view"
42236
- },
42237
- "decoder.openStream": {
42238
- capName: "decoder",
42239
- capScope: "system",
42240
- addonId: null,
42241
- access: "view"
42242
- },
42243
- "decoder.pullFrames": {
42244
- capName: "decoder",
42245
- capScope: "system",
42246
- addonId: null,
42247
- access: "view"
42248
- },
42249
- "decoder.pullHandles": {
42250
- capName: "decoder",
42251
- capScope: "system",
42252
- addonId: null,
42253
- access: "view"
42254
- },
42255
- "decoder.pushPacket": {
42256
- capName: "decoder",
42257
- capScope: "system",
42258
- addonId: null,
42259
- access: "view"
42260
- },
42261
42723
  "decoder.reprobeHwaccel": {
42262
42724
  capName: "decoder",
42263
42725
  capScope: "system",
42264
42726
  addonId: null,
42265
42727
  access: "create"
42266
42728
  },
42267
- "decoder.supportsCodec": {
42268
- capName: "decoder",
42269
- capScope: "system",
42270
- addonId: null,
42271
- access: "view"
42272
- },
42273
- "decoder.updateConfig": {
42274
- capName: "decoder",
42275
- capScope: "system",
42276
- addonId: null,
42277
- access: "view"
42278
- },
42279
42729
  "detectionPipeline.applyDeviceSettingsPatch": {
42280
42730
  capName: "detection-pipeline",
42281
42731
  capScope: "device",
@@ -43764,12 +44214,24 @@ Object.freeze({
43764
44214
  addonId: null,
43765
44215
  access: "view"
43766
44216
  },
44217
+ "localNetwork.addCustomAddress": {
44218
+ capName: "local-network",
44219
+ capScope: "system",
44220
+ addonId: null,
44221
+ access: "create"
44222
+ },
43767
44223
  "localNetwork.downloadCa": {
43768
44224
  capName: "local-network",
43769
44225
  capScope: "system",
43770
44226
  addonId: null,
43771
44227
  access: "view"
43772
44228
  },
44229
+ "localNetwork.getAddresses": {
44230
+ capName: "local-network",
44231
+ capScope: "system",
44232
+ addonId: null,
44233
+ access: "view"
44234
+ },
43773
44235
  "localNetwork.getAllowedAddresses": {
43774
44236
  capName: "local-network",
43775
44237
  capScope: "system",
@@ -43782,6 +44244,12 @@ Object.freeze({
43782
44244
  addonId: null,
43783
44245
  access: "view"
43784
44246
  },
44247
+ "localNetwork.getHubAddresses": {
44248
+ capName: "local-network",
44249
+ capScope: "system",
44250
+ addonId: null,
44251
+ access: "view"
44252
+ },
43785
44253
  "localNetwork.getNotificationEndpoint": {
43786
44254
  capName: "local-network",
43787
44255
  capScope: "system",
@@ -43818,6 +44286,12 @@ Object.freeze({
43818
44286
  addonId: null,
43819
44287
  access: "create"
43820
44288
  },
44289
+ "localNetwork.removeCustomAddress": {
44290
+ capName: "local-network",
44291
+ capScope: "system",
44292
+ addonId: null,
44293
+ access: "delete"
44294
+ },
43821
44295
  "localNetwork.resetAllowlistToBestMatch": {
43822
44296
  capName: "local-network",
43823
44297
  capScope: "system",
@@ -43830,6 +44304,12 @@ Object.freeze({
43830
44304
  addonId: null,
43831
44305
  access: "create"
43832
44306
  },
44307
+ "localNetwork.setAddressRole": {
44308
+ capName: "local-network",
44309
+ capScope: "system",
44310
+ addonId: null,
44311
+ access: "create"
44312
+ },
43833
44313
  "localNetwork.setAllowedAddresses": {
43834
44314
  capName: "local-network",
43835
44315
  capScope: "system",
@@ -45324,13 +45804,13 @@ Object.freeze({
45324
45804
  addonId: null,
45325
45805
  access: "delete"
45326
45806
  },
45327
- "pipelineExecutor.deleteModel": {
45807
+ "pipelineExecutor.clearModelBoundDeviceOverrides": {
45328
45808
  capName: "pipeline-executor",
45329
45809
  capScope: "system",
45330
45810
  addonId: null,
45331
45811
  access: "delete"
45332
45812
  },
45333
- "pipelineExecutor.deleteTemplate": {
45813
+ "pipelineExecutor.deleteModel": {
45334
45814
  capName: "pipeline-executor",
45335
45815
  capScope: "system",
45336
45816
  addonId: null,
@@ -45474,12 +45954,6 @@ Object.freeze({
45474
45954
  addonId: null,
45475
45955
  access: "view"
45476
45956
  },
45477
- "pipelineExecutor.listTemplates": {
45478
- capName: "pipeline-executor",
45479
- capScope: "system",
45480
- addonId: null,
45481
- access: "view"
45482
- },
45483
45957
  "pipelineExecutor.rearmInferenceDevice": {
45484
45958
  capName: "pipeline-executor",
45485
45959
  capScope: "system",
@@ -45504,12 +45978,6 @@ Object.freeze({
45504
45978
  addonId: null,
45505
45979
  access: "create"
45506
45980
  },
45507
- "pipelineExecutor.saveTemplate": {
45508
- capName: "pipeline-executor",
45509
- capScope: "system",
45510
- addonId: null,
45511
- access: "create"
45512
- },
45513
45981
  "pipelineExecutor.setVideoPipelineSteps": {
45514
45982
  capName: "pipeline-executor",
45515
45983
  capScope: "system",
@@ -45528,41 +45996,35 @@ Object.freeze({
45528
45996
  addonId: null,
45529
45997
  access: "create"
45530
45998
  },
45531
- "pipelineExecutor.updateTemplate": {
45532
- capName: "pipeline-executor",
45533
- capScope: "system",
45534
- addonId: null,
45535
- access: "create"
45536
- },
45537
45999
  "pipelineExecutor.validatePipeline": {
45538
46000
  capName: "pipeline-executor",
45539
46001
  capScope: "system",
45540
46002
  addonId: null,
45541
46003
  access: "view"
45542
46004
  },
45543
- "pipelineOrchestrator.applyDeviceSettingsPatch": {
46005
+ "pipelineOrchestrator.applyAutoTune": {
45544
46006
  capName: "pipeline-orchestrator",
45545
46007
  capScope: "system",
45546
46008
  addonId: null,
45547
46009
  access: "create"
45548
46010
  },
45549
- "pipelineOrchestrator.assignAudio": {
46011
+ "pipelineOrchestrator.applyDeviceSettingsPatch": {
45550
46012
  capName: "pipeline-orchestrator",
45551
46013
  capScope: "system",
45552
46014
  addonId: null,
45553
46015
  access: "create"
45554
46016
  },
45555
- "pipelineOrchestrator.assignPipeline": {
46017
+ "pipelineOrchestrator.assignAudio": {
45556
46018
  capName: "pipeline-orchestrator",
45557
46019
  capScope: "system",
45558
46020
  addonId: null,
45559
46021
  access: "create"
45560
46022
  },
45561
- "pipelineOrchestrator.deleteTemplate": {
46023
+ "pipelineOrchestrator.assignPipeline": {
45562
46024
  capName: "pipeline-orchestrator",
45563
46025
  capScope: "system",
45564
46026
  addonId: null,
45565
- access: "delete"
46027
+ access: "create"
45566
46028
  },
45567
46029
  "pipelineOrchestrator.getAgentLoad": {
45568
46030
  capName: "pipeline-orchestrator",
@@ -45654,6 +46116,12 @@ Object.freeze({
45654
46116
  addonId: null,
45655
46117
  access: "view"
45656
46118
  },
46119
+ "pipelineOrchestrator.getEffectiveShares": {
46120
+ capName: "pipeline-orchestrator",
46121
+ capScope: "system",
46122
+ addonId: null,
46123
+ access: "view"
46124
+ },
45657
46125
  "pipelineOrchestrator.getGlobalMetrics": {
45658
46126
  capName: "pipeline-orchestrator",
45659
46127
  capScope: "system",
@@ -45690,19 +46158,19 @@ Object.freeze({
45690
46158
  addonId: null,
45691
46159
  access: "view"
45692
46160
  },
45693
- "pipelineOrchestrator.getReconcileFromDiskStatus": {
46161
+ "pipelineOrchestrator.getPlacementStats": {
45694
46162
  capName: "pipeline-orchestrator",
45695
46163
  capScope: "system",
45696
46164
  addonId: null,
45697
46165
  access: "view"
45698
46166
  },
45699
- "pipelineOrchestrator.listAgentSettings": {
46167
+ "pipelineOrchestrator.getReconcileFromDiskStatus": {
45700
46168
  capName: "pipeline-orchestrator",
45701
46169
  capScope: "system",
45702
46170
  addonId: null,
45703
46171
  access: "view"
45704
46172
  },
45705
- "pipelineOrchestrator.listTemplates": {
46173
+ "pipelineOrchestrator.listAgentSettings": {
45706
46174
  capName: "pipeline-orchestrator",
45707
46175
  capScope: "system",
45708
46176
  addonId: null,
@@ -45714,6 +46182,12 @@ Object.freeze({
45714
46182
  addonId: null,
45715
46183
  access: "create"
45716
46184
  },
46185
+ "pipelineOrchestrator.planAutoTune": {
46186
+ capName: "pipeline-orchestrator",
46187
+ capScope: "system",
46188
+ addonId: null,
46189
+ access: "view"
46190
+ },
45717
46191
  "pipelineOrchestrator.rebalance": {
45718
46192
  capName: "pipeline-orchestrator",
45719
46193
  capScope: "system",
@@ -45756,12 +46230,6 @@ Object.freeze({
45756
46230
  addonId: null,
45757
46231
  access: "create"
45758
46232
  },
45759
- "pipelineOrchestrator.saveTemplate": {
45760
- capName: "pipeline-orchestrator",
45761
- capScope: "system",
45762
- addonId: null,
45763
- access: "create"
45764
- },
45765
46233
  "pipelineOrchestrator.setAgentCapabilities": {
45766
46234
  capName: "pipeline-orchestrator",
45767
46235
  capScope: "system",
@@ -45774,12 +46242,6 @@ Object.freeze({
45774
46242
  addonId: null,
45775
46243
  access: "create"
45776
46244
  },
45777
- "pipelineOrchestrator.setAgentDetectWeight": {
45778
- capName: "pipeline-orchestrator",
45779
- capScope: "system",
45780
- addonId: null,
45781
- access: "create"
45782
- },
45783
46245
  "pipelineOrchestrator.setAgentInferenceDevices": {
45784
46246
  capName: "pipeline-orchestrator",
45785
46247
  capScope: "system",
@@ -45816,6 +46278,12 @@ Object.freeze({
45816
46278
  addonId: null,
45817
46279
  access: "create"
45818
46280
  },
46281
+ "pipelineOrchestrator.setCameraStepSettings": {
46282
+ capName: "pipeline-orchestrator",
46283
+ capScope: "system",
46284
+ addonId: null,
46285
+ access: "create"
46286
+ },
45819
46287
  "pipelineOrchestrator.setCameraStepToggle": {
45820
46288
  capName: "pipeline-orchestrator",
45821
46289
  capScope: "system",
@@ -45834,25 +46302,37 @@ Object.freeze({
45834
46302
  addonId: null,
45835
46303
  access: "create"
45836
46304
  },
46305
+ "pipelineOrchestrator.setLoadBalancingShares": {
46306
+ capName: "pipeline-orchestrator",
46307
+ capScope: "system",
46308
+ addonId: null,
46309
+ access: "create"
46310
+ },
45837
46311
  "pipelineOrchestrator.setPipelineDevicePin": {
45838
46312
  capName: "pipeline-orchestrator",
45839
46313
  capScope: "system",
45840
46314
  addonId: null,
45841
46315
  access: "create"
45842
46316
  },
45843
- "pipelineOrchestrator.unassignAudio": {
46317
+ "pipelineOrchestrator.setShareSource": {
45844
46318
  capName: "pipeline-orchestrator",
45845
46319
  capScope: "system",
45846
46320
  addonId: null,
45847
46321
  access: "create"
45848
46322
  },
45849
- "pipelineOrchestrator.unassignPipeline": {
46323
+ "pipelineOrchestrator.suggestShares": {
46324
+ capName: "pipeline-orchestrator",
46325
+ capScope: "system",
46326
+ addonId: null,
46327
+ access: "view"
46328
+ },
46329
+ "pipelineOrchestrator.unassignAudio": {
45850
46330
  capName: "pipeline-orchestrator",
45851
46331
  capScope: "system",
45852
46332
  addonId: null,
45853
46333
  access: "create"
45854
46334
  },
45855
- "pipelineOrchestrator.updateTemplate": {
46335
+ "pipelineOrchestrator.unassignPipeline": {
45856
46336
  capName: "pipeline-orchestrator",
45857
46337
  capScope: "system",
45858
46338
  addonId: null,
@@ -47292,12 +47772,6 @@ Object.freeze({
47292
47772
  addonId: null,
47293
47773
  access: "view"
47294
47774
  },
47295
- "streamBroker.pullFrameHandles": {
47296
- capName: "stream-broker",
47297
- capScope: "system",
47298
- addonId: null,
47299
- access: "view"
47300
- },
47301
47775
  "streamBroker.regenerateRtspToken": {
47302
47776
  capName: "stream-broker",
47303
47777
  capScope: "system",
@@ -47364,12 +47838,6 @@ Object.freeze({
47364
47838
  addonId: null,
47365
47839
  access: "create"
47366
47840
  },
47367
- "streamBroker.subscribeFrames": {
47368
- capName: "stream-broker",
47369
- capScope: "system",
47370
- addonId: null,
47371
- access: "create"
47372
- },
47373
47841
  "streamBroker.unassignProfile": {
47374
47842
  capName: "stream-broker",
47375
47843
  capScope: "system",
@@ -47382,12 +47850,6 @@ Object.freeze({
47382
47850
  addonId: null,
47383
47851
  access: "create"
47384
47852
  },
47385
- "streamBroker.unsubscribeFrames": {
47386
- capName: "stream-broker",
47387
- capScope: "system",
47388
- addonId: null,
47389
- access: "create"
47390
- },
47391
47853
  "streamCatalog.getCatalog": {
47392
47854
  capName: "stream-catalog",
47393
47855
  capScope: "device",
@@ -48084,6 +48546,12 @@ Object.freeze({
48084
48546
  addonId: null,
48085
48547
  access: "create"
48086
48548
  },
48549
+ "webrtcSession.applyDownlinkProbe": {
48550
+ capName: "webrtc-session",
48551
+ capScope: "device",
48552
+ addonId: null,
48553
+ access: "create"
48554
+ },
48087
48555
  "webrtcSession.closeSession": {
48088
48556
  capName: "webrtc-session",
48089
48557
  capScope: "device",
@@ -49895,11 +50363,6 @@ Object.freeze({
49895
50363
  form: "single",
49896
50364
  optional: false
49897
50365
  }],
49898
- "decoder.createSession": [{
49899
- name: "deviceId",
49900
- form: "single",
49901
- optional: true
49902
- }],
49903
50366
  "detectionPipeline.applyDeviceSettingsPatch": [{
49904
50367
  name: "deviceId",
49905
50368
  form: "single",
@@ -51130,6 +51593,11 @@ Object.freeze({
51130
51593
  form: "single",
51131
51594
  optional: false
51132
51595
  }],
51596
+ "pipelineExecutor.clearModelBoundDeviceOverrides": [{
51597
+ name: "deviceIds",
51598
+ form: "array",
51599
+ optional: true
51600
+ }],
51133
51601
  "pipelineExecutor.runPipeline": [{
51134
51602
  name: "deviceId",
51135
51603
  form: "single",
@@ -51235,6 +51703,11 @@ Object.freeze({
51235
51703
  form: "single",
51236
51704
  optional: false
51237
51705
  }],
51706
+ "pipelineOrchestrator.setCameraStepSettings": [{
51707
+ name: "deviceId",
51708
+ form: "single",
51709
+ optional: false
51710
+ }],
51238
51711
  "pipelineOrchestrator.setCameraStepToggle": [{
51239
51712
  name: "deviceId",
51240
51713
  form: "single",
@@ -52006,6 +52479,11 @@ Object.freeze({
52006
52479
  form: "single",
52007
52480
  optional: false
52008
52481
  }],
52482
+ "webrtcSession.applyDownlinkProbe": [{
52483
+ name: "deviceId",
52484
+ form: "single",
52485
+ optional: false
52486
+ }],
52009
52487
  "webrtcSession.closeSession": [{
52010
52488
  name: "deviceId",
52011
52489
  form: "single",
@@ -52235,6 +52713,8 @@ new Map(Object.entries({
52235
52713
  "detection-blind": "device-events",
52236
52714
  "node-online": "system",
52237
52715
  "node-offline": "system",
52716
+ "node-restarting": "system",
52717
+ "node-updating": "system",
52238
52718
  "node-inference-unavailable": "system",
52239
52719
  "addon-crash-loop": "system",
52240
52720
  "addon-update-available": "system",
@@ -52312,6 +52792,7 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
52312
52792
  kinds: [
52313
52793
  "node-offline",
52314
52794
  "node-online",
52795
+ "node-restarting",
52315
52796
  "node-inference-unavailable"
52316
52797
  ]
52317
52798
  },
@@ -52333,6 +52814,7 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
52333
52814
  label: "Server & container updates",
52334
52815
  kinds: [
52335
52816
  "server-update-available",
52817
+ "node-updating",
52336
52818
  "server-updated",
52337
52819
  "wrapper-update-available"
52338
52820
  ]
@@ -52480,6 +52962,7 @@ var STATE_SUMMARY_SECTION_VARS = [
52480
52962
  kinds: [
52481
52963
  "node-offline",
52482
52964
  "node-online",
52965
+ "node-restarting",
52483
52966
  "node-inference-unavailable"
52484
52967
  ]
52485
52968
  },
@@ -52501,6 +52984,7 @@ var STATE_SUMMARY_SECTION_VARS = [
52501
52984
  example: "server 1.2.377 → 1.2.378",
52502
52985
  kinds: [
52503
52986
  "server-update-available",
52987
+ "node-updating",
52504
52988
  "server-updated",
52505
52989
  "wrapper-update-available"
52506
52990
  ]
@@ -52533,7 +53017,7 @@ var STATE_SUMMARY_VARS = [
52533
53017
  {
52534
53018
  name: "summarySection",
52535
53019
  label: "Summary: this section",
52536
- description: "The section a per-section summary row is about (D698); on a summary sent as one message, every section it reports, comma-separated.",
53020
+ description: "The section a per-section summary row is about; on a summary sent as one message, every section it reports, comma-separated.",
52537
53021
  example: "Batterie scariche",
52538
53022
  group: "system",
52539
53023
  families: ["rule"],