@camstack/addon-provider-unifi 0.2.120 → 0.2.122

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/addon.js +947 -463
  2. package/dist/addon.mjs +947 -463
  3. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- //#region ../types/dist/event-category-BGmz_oxW.mjs
2
+ //#region ../types/dist/event-category-B_0XEcLF.mjs
3
3
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4
4
  EventCategory["SystemBoot"] = "system.boot";
5
5
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -500,15 +500,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
500
500
  EventCategory["AgentWsDisconnected"] = "agent.ws.disconnected";
501
501
  EventCategory["AgentBackupActivated"] = "agent.backup.activated";
502
502
  EventCategory["OrchestrationSettingsUpdated"] = "orchestration.settings-updated";
503
- /**
504
- * Per-agent hwaccel preference changed (user override set, cleared, or
505
- * re-probed). Observability event — decoders pull the current pref at
506
- * `createSession`, so running sessions keep their current backend until
507
- * they rotate naturally (camera add/remove, stream restart). Future
508
- * work can wire a listener in stream-broker that force-rotates live
509
- * sessions; for now this event powers logs + admin-UI toast feedback.
510
- */
511
- EventCategory["PipelineAgentHwaccelChanged"] = "pipeline.agent-hwaccel-changed";
512
503
  EventCategory["MotionAnalysis"] = "detection.motion-analysis";
513
504
  /** All raw motion zones from CCL before minArea filter — for UI debug overlay. */
514
505
  EventCategory["MotionZonesRaw"] = "detection.motion-zones-raw";
@@ -5379,7 +5370,7 @@ var ZodIssueCode = {
5379
5370
  var ZodFirstPartyTypeKind;
5380
5371
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5381
5372
  //#endregion
5382
- //#region ../types/dist/sleep-DXKLNFvA.mjs
5373
+ //#region ../types/dist/sleep-BNeXenvr.mjs
5383
5374
  /**
5384
5375
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5385
5376
  * window to float samples (D455).
@@ -6745,32 +6736,12 @@ object({
6745
6736
  audioCodec: string().optional(),
6746
6737
  metadata: record(string(), unknown()).readonly().optional()
6747
6738
  });
6748
- var EncodedPacketSchema = object({
6749
- type: _enum(["video", "audio"]),
6750
- data: _instanceof(Uint8Array),
6751
- pts: number(),
6752
- dts: number(),
6753
- keyframe: boolean(),
6754
- codec: string()
6755
- });
6756
- var DecodedFrameSchema = object({
6757
- data: _instanceof(Uint8Array),
6758
- width: number(),
6759
- height: number(),
6760
- format: _enum([
6761
- "jpeg",
6762
- "rgb",
6763
- "bgr",
6764
- "yuv420",
6765
- "gray"
6766
- ]),
6767
- timestamp: number()
6768
- });
6769
6739
  /**
6770
6740
  * Wire schema for `FrameHandle` — a zero-pixel, serialisable reference to a
6771
6741
  * frame in a shared-memory ring (Phase 5 / D9). Mirrors the `FrameHandle` TS
6772
- * interface in `interfaces/frame-handle.ts` field-for-field so a decoder cap
6773
- * method (`pullHandles`) can carry handles over tRPC / Moleculer.
6742
+ * interface in `interfaces/frame-handle.ts` field-for-field so a cap method
6743
+ * (the runner's native-crop and pipeline-executor inputs) can carry handles
6744
+ * over tRPC / Moleculer.
6774
6745
  *
6775
6746
  * The `satisfies` assertion below pins this schema to the interface: if a
6776
6747
  * field is added to / removed from `FrameHandle` without a matching schema
@@ -6796,50 +6767,6 @@ var FrameHandleSchema = object({
6796
6767
  slotCount: number().int().positive()
6797
6768
  });
6798
6769
  /**
6799
- * Pixel format a frame-handle subscriber can request from the broker
6800
- * (Phase 5 / D9). The packed, raster subset of `FrameFormat` — the formats a
6801
- * `frameSink: 'shm'` decoder session can write into a `FrameRing` slot.
6802
- * `jpeg` is excluded: a variable-length stream is not a fixed-stride ring
6803
- * payload, and no decoded-frame consumer requests it over the shm plane.
6804
- */
6805
- var FrameHandleFormatSchema = _enum([
6806
- "rgb",
6807
- "bgr",
6808
- "yuv420",
6809
- "gray"
6810
- ]);
6811
- /**
6812
- * Input for `stream-broker.subscribeFrames` (Phase 5 / D9). A consumer asks the
6813
- * broker for a `FrameHandle` stream of one `format`; the broker maintains one
6814
- * shared-memory ring per `(brokerId, format)` actually requested, so a `gray`
6815
- * subscriber (motion) and an `rgb` subscriber (detection) each read the format
6816
- * they asked for with no broker-side conversion.
6817
- */
6818
- var SubscribeFramesInputSchema = object({
6819
- brokerId: string(),
6820
- format: FrameHandleFormatSchema,
6821
- /**
6822
- * Optional reader-side cadence hint in frames per second. The broker does
6823
- * NOT throttle — latest-wins ring reads drop frames implicitly for a slow
6824
- * consumer. The value is echoed back in `SubscribeFramesResult.maxFps` so
6825
- * the consumer can pace its own `pullFrameHandles` polling.
6826
- */
6827
- maxFps: number().positive().optional(),
6828
- /** Short caller-identity tag (`motion`, `detection`, …) for diagnostics. */
6829
- tag: string().optional()
6830
- });
6831
- /**
6832
- * Result of `stream-broker.subscribeFrames`. The consumer then polls
6833
- * `pullFrameHandles({ subscriptionId, maxCount })` and feeds each returned
6834
- * `FrameHandle` to a `FrameRingReader`.
6835
- */
6836
- var SubscribeFramesResultSchema = object({
6837
- /** Opaque id the consumer passes to `pullFrameHandles` / `unsubscribeFrames`. */
6838
- subscriptionId: string(),
6839
- /** Reader-side cadence hint (frames/s) — echoes `SubscribeFramesInput.maxFps`. */
6840
- maxFps: number().nonnegative()
6841
- });
6842
- /**
6843
6770
  * Wire schema for a decoded audio chunk (Phase 5 / D9). Mirrors the
6844
6771
  * `DecodedAudioChunk` TS interface in `interfaces/stream-broker.ts`: PCM
6845
6772
  * sample bytes plus the track parameters a consumer needs to interpret them.
@@ -6847,8 +6774,8 @@ var SubscribeFramesResultSchema = object({
6847
6774
  * Audio chunks are tiny (a ~500ms AudioCodecSession window is a few KB of
6848
6775
  * Float32 PCM), so unlike video frames they ship their bytes INLINE over
6849
6776
  * tRPC / Moleculer — no shared-memory plane. `data` is typed `Uint8Array`
6850
- * (the wire-serialisable supertype of `Buffer`) to match `DecodedFrameSchema`
6851
- * / `EncodedPacketSchema`'s precedent; a `Buffer` is assignable to it.
6777
+ * (the wire-serialisable supertype of `Buffer`); a `Buffer` is assignable to
6778
+ * it.
6852
6779
  */
6853
6780
  var AudioChunkFormatSchema = _enum(AUDIO_CHUNK_FORMATS);
6854
6781
  var DecodedAudioChunkSchema = object({
@@ -6866,11 +6793,10 @@ var DecodedAudioChunkSchema = object({
6866
6793
  format: AudioChunkFormatSchema.optional()
6867
6794
  });
6868
6795
  /**
6869
- * Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9). The
6870
- * handle-free, ship-bytes-inline analogue of `subscribeFrames`: a consumer
6871
- * asks the broker for the decoded audio-chunk stream of one broker; the
6872
- * broker keeps a per-subscription bounded FIFO queue the consumer drains via
6873
- * `pullAudioChunks`.
6796
+ * Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9). Audio ships
6797
+ * its bytes inline: a consumer asks the broker for the decoded audio-chunk
6798
+ * stream of one broker; the broker keeps a per-subscription bounded FIFO queue
6799
+ * the consumer drains via `pullAudioChunks`.
6874
6800
  */
6875
6801
  var SubscribeAudioChunksInputSchema = object({
6876
6802
  brokerId: string(),
@@ -6901,9 +6827,7 @@ var BrokerStatsSchema = object({
6901
6827
  "stopped"
6902
6828
  ]),
6903
6829
  inputFps: number(),
6904
- decodeFps: number(),
6905
6830
  encodedSubscribers: number(),
6906
- decodedSubscribers: number(),
6907
6831
  uptimeMs: number(),
6908
6832
  bitrateKbps: number(),
6909
6833
  idrIntervalMs: number(),
@@ -6916,14 +6840,6 @@ var BrokerStatsSchema = object({
6916
6840
  preBufferMs: number(),
6917
6841
  preBufferPackets: number(),
6918
6842
  /**
6919
- * Moleculer node id of the decoder provider currently servicing this
6920
- * stream's decoded subscribers. `null` until the deferred decoder is
6921
- * created (no decoded clients yet, or codec not detected). Surfaces the
6922
- * runtime decoder placement so the UI can show "Decoder: <agent>" without
6923
- * a separate cap call per broker.
6924
- */
6925
- decoderNodeId: string().nullable(),
6926
- /**
6927
6843
  * Detected audio track parameters from the RTSP DESCRIBE / SDP. `null`
6928
6844
  * when the stream has no audio track or the broker is in cold start.
6929
6845
  * `supported = false` means the codec was detected but the local
@@ -10259,70 +10175,6 @@ var StorageLocationDeclarationSchema = object({
10259
10175
  "backup"
10260
10176
  ]).optional()
10261
10177
  });
10262
- var DecoderStatsSchema = object({
10263
- inputFps: number(),
10264
- outputFps: number(),
10265
- avgDecodeTimeMs: number(),
10266
- droppedFrames: number(),
10267
- /**
10268
- * Pull-mode adaptive-fps telemetry (optional — only pull sessions run the
10269
- * lag-driven controller; push sessions omit these). `lagMs` is the EWMA of
10270
- * the decoder's real-time drift (rising = falling behind live); `adaptiveFps`
10271
- * is the current lag-throttled emit rate (≤ `effectiveFps` ceiling).
10272
- */
10273
- lagMs: number().optional(),
10274
- effectiveFps: number().optional(),
10275
- adaptiveFps: number().optional()
10276
- });
10277
- var DecoderSessionConfigSchema = object({
10278
- codec: string(),
10279
- maxFps: number().default(0),
10280
- outputFormat: _enum([
10281
- "jpeg",
10282
- "rgb",
10283
- "bgr",
10284
- "yuv420",
10285
- "gray"
10286
- ]).default("jpeg"),
10287
- scale: number().default(1),
10288
- width: number().optional(),
10289
- height: number().optional(),
10290
- /**
10291
- * Identifier of the camera this decoder session serves. Optional
10292
- * because the cap is generic (any caller could request decode), but
10293
- * stream-broker passes it so decoder logs include `deviceId` for
10294
- * per-camera filtering when diagnosing failures (e.g. node-av
10295
- * sendPacket errors on a single hung camera).
10296
- */
10297
- deviceId: number().int().nonnegative().optional(),
10298
- /**
10299
- * Free-form tag for log scoping. Stream-broker uses
10300
- * `broker:<deviceId>/<profile>`. Decoder session logger surfaces it
10301
- * on every line so `grep tag=broker:5/high` filters one camera
10302
- * profile cleanly.
10303
- */
10304
- tag: string().optional(),
10305
- /**
10306
- * Where the session delivers decoded frames (Phase 5 / D9):
10307
- *
10308
- * - `'callback'` (default) — the legacy pixel path: decoded frames are
10309
- * buffered as `DecodedFrame`s and drained via `pullFrames`.
10310
- * - `'shm'` — the shared-memory frame plane: decoded frames are written
10311
- * into an OS shared-memory ring and drained as zero-pixel
10312
- * `FrameHandle`s via `pullHandles`. A session is one mode or the
10313
- * other — `pullFrames` returns nothing for an `'shm'` session and
10314
- * `pullHandles` returns nothing for a `'callback'` session.
10315
- */
10316
- frameSink: _enum(["callback", "shm"]).default("callback"),
10317
- /**
10318
- * Per-camera decoder DEBUG facility. When `true`, a pull-mode session emits
10319
- * a throttled (~1Hz) structured `decoder debug` line (effective/adaptive fps,
10320
- * real-time lag, dropped-frame delta, avg decode time, hwaccel). Mirrors the
10321
- * stream-broker's `streamingDebug` gate — off by default so production logs
10322
- * stay quiet and the emit path pays zero per-frame cost when disabled.
10323
- */
10324
- debug: boolean().optional()
10325
- });
10326
10178
  /**
10327
10179
  * Per-component log CHANNELS — the gate a hot path consults, and the registry
10328
10180
  * an addon declares its channels in.
@@ -10465,6 +10317,26 @@ var ClipSearchStrictnessSchema = _enum([
10465
10317
  "balanced",
10466
10318
  "strict"
10467
10319
  ]);
10320
+ /** Steps whose effect a root label can BE. */
10321
+ var LABEL_SUPPLY_STEP_IDS = [
10322
+ "animal-classifier",
10323
+ "vehicle-classifier",
10324
+ "package-detection"
10325
+ ];
10326
+ /** Steps whose box a root detection can BE. */
10327
+ var CROP_SUPPLY_STEP_IDS = ["plate-detection", "face-detection"];
10328
+ /**
10329
+ * Steps whose per-detection MASK a root detection can carry (D737). The live
10330
+ * mask step is `segmentation` — a frame-plane refiner that runs its own model
10331
+ * once per detection crop. (`instance-segmentation` is a dormant step id that
10332
+ * no camera tree carries.)
10333
+ */
10334
+ var MASK_SUPPLY_STEP_IDS = ["segmentation"];
10335
+ [
10336
+ ...LABEL_SUPPLY_STEP_IDS,
10337
+ ...CROP_SUPPLY_STEP_IDS,
10338
+ ...MASK_SUPPLY_STEP_IDS
10339
+ ];
10468
10340
  var MODEL_FORMATS = [
10469
10341
  "onnx",
10470
10342
  "coreml",
@@ -10493,7 +10365,53 @@ var ModelFormatEntrySchema = object({
10493
10365
  /** Multi-file payload (directory members or sibling files). */
10494
10366
  files: array(string()).readonly().optional(),
10495
10367
  /** Runtime(s) that can use this format. If omitted, inferred from ModelFormat key */
10496
- runtimes: array(_enum(["python"])).readonly().optional()
10368
+ runtimes: array(_enum(["python"])).readonly().optional(),
10369
+ /**
10370
+ * Content revision of the artefact, for one hosted OFF the CamStack mirror.
10371
+ * A format on the mirror leaves it unset: its revision (the sha256 of its
10372
+ * weight file) comes from the downloader's generated table, kept in step
10373
+ * with the mirror by `scripts/check-hosted-model-revisions.ts` (D744). A
10374
+ * node records the revision it downloaded next to the file
10375
+ * (`<file>.revision`); a copy with no record or a different one is stale
10376
+ * unless its weight file hashes to the revision, and a stale copy is
10377
+ * downloaded again, the old one serving until the new one is complete. No
10378
+ * revision at all ⇒ a file on disk is current, whatever it holds (D743).
10379
+ */
10380
+ revision: string().min(1).optional()
10381
+ });
10382
+ /**
10383
+ * What a node holds for one (model, format) (D746). `current` is a complete
10384
+ * copy at its catalog revision — exactly what `downloaded: true` means.
10385
+ * `stale` is bytes on disk that are not (yet) proven current under D743/D744:
10386
+ * no or a different revision record, or a missing sibling. `missing` is no
10387
+ * copy. `downloaded` alone folds `stale` into "not downloaded", which hid
10388
+ * reclaimable bytes and a copy about to be replaced.
10389
+ */
10390
+ var ModelOnDiskStateSchema = _enum([
10391
+ "current",
10392
+ "stale",
10393
+ "missing"
10394
+ ]);
10395
+ /**
10396
+ * The numeric precision of one format's BUILD (D746) — reported only when the
10397
+ * build states it (file-name token, an INT8 variant, an EdgeTPU compile, a
10398
+ * CamStack Core ML export). Absent means "not stated", never "fp32".
10399
+ */
10400
+ var ModelFormatPrecisionSchema = _enum([
10401
+ "fp32",
10402
+ "fp16",
10403
+ "int8"
10404
+ ]);
10405
+ /**
10406
+ * One format of one model as a node's `pipelineExecutor.getSchema` reports it.
10407
+ * `onDisk` / `precision` are optional for version skew: a runner that predates
10408
+ * them omits them, and a reader falls back to `downloaded`.
10409
+ */
10410
+ var PipelineModelFormatStatusSchema = object({
10411
+ downloaded: boolean(),
10412
+ sizeMB: number(),
10413
+ onDisk: ModelOnDiskStateSchema.optional(),
10414
+ precision: ModelFormatPrecisionSchema.optional()
10497
10415
  });
10498
10416
  /**
10499
10417
  * Extra file that must be downloaded alongside the model (e.g., labels JSON, dict.txt).
@@ -10597,6 +10515,46 @@ var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { wei
10597
10515
  /** True when the weights or their data forbid commercial use. */
10598
10516
  nonCommercial: boolean().optional()
10599
10517
  }));
10518
+ /**
10519
+ * One step a ROOT detector can supply from its own output (D730) — see
10520
+ * `ModelCatalogEntry.suppliesSteps`.
10521
+ *
10522
+ * - `label`: the root's raw class IS the step's answer. `labelToEffect` maps
10523
+ * the root's label to the step's vocabulary; `uncovered` is the vocabulary
10524
+ * the root cannot produce (shown as unavailable, never a blocker).
10525
+ * - `crop`: the root draws the box the step would have found (`license_plate`
10526
+ * for plate-detection, `face` for face-detection). The box becomes a detail
10527
+ * child of the `parentMacro` detection that contains it — never a track.
10528
+ * - `mask`: the root's decode emits an instance mask with every detection (a
10529
+ * YOLO26-seg root, D737) — the `segmentation` step's result, carried on the
10530
+ * detection in the shape that step produces. Derived from the model's
10531
+ * postprocessor on read, never stored by an import.
10532
+ */
10533
+ var RootStepSupplySchema = discriminatedUnion("kind", [
10534
+ object({
10535
+ kind: literal("label"),
10536
+ stepId: _enum(LABEL_SUPPLY_STEP_IDS),
10537
+ labelToEffect: record(string(), string()),
10538
+ uncovered: array(string()).readonly()
10539
+ }),
10540
+ object({
10541
+ kind: literal("crop"),
10542
+ stepId: _enum(CROP_SUPPLY_STEP_IDS),
10543
+ rootLabels: array(string()).readonly(),
10544
+ parentMacro: _enum(["vehicle", "person"]),
10545
+ childClass: _enum(["plate", "face"]),
10546
+ /**
10547
+ * The root's smaller input side, stamped on read by `rootSuppliesOf` from
10548
+ * the model entry — what a step's `minRootInputPx` gate judges. Never
10549
+ * stored by an import.
10550
+ */
10551
+ rootInputPx: number().int().positive().optional()
10552
+ }),
10553
+ object({
10554
+ kind: literal("mask"),
10555
+ stepId: _enum(MASK_SUPPLY_STEP_IDS)
10556
+ })
10557
+ ]);
10600
10558
  var ModelCatalogEntrySchema = object({
10601
10559
  id: string(),
10602
10560
  name: string(),
@@ -10662,6 +10620,35 @@ var ModelCatalogEntrySchema = object({
10662
10620
  */
10663
10621
  defaultConfidence: number().min(0).max(1).optional(),
10664
10622
  /**
10623
+ * Per-MODEL default of the per-class confidence floors (`minConfidence<Macro>`
10624
+ * on a detector step), keyed by macro class: `{ person: 0.45 }`. A class
10625
+ * absent here runs at the step slider's global default. The same row shape
10626
+ * the floor measurement produces (`model-floors.json`: modelId → floors), so
10627
+ * a measured table is copied in as-is. An operator override is bound to the
10628
+ * model it was made for and does not survive a model change (D738). A custom
10629
+ * / imported model may declare it; without it, the global defaults apply.
10630
+ */
10631
+ defaultClassFloors: record(string(), number().min(0).max(1)).optional(),
10632
+ /**
10633
+ * The inference precision this model's OpenVINO IR needs on an Intel GPU.
10634
+ * Absent ⇒ the device default (f16 on a GPU). Set to `'f32'` for an FP32 IR
10635
+ * that produces invalid output at f16 — measured 2026-10-07 for YOLO26
10636
+ * base IRs (`yolo26s`: 0 true / 146 false positives; `yolo26m*`: NaN
10637
+ * scores) on the Core Ultra iGPU and the N100. Threaded to the pool as
10638
+ * `PoolModelConfig.gpuInferencePrecision`; the pool sets
10639
+ * INFERENCE_PRECISION_HINT on a GPU only. Costs ~60% latency on the GPU.
10640
+ */
10641
+ gpuInferencePrecision: _enum(["f32", "f16"]).optional(),
10642
+ /**
10643
+ * ROOT detectors only: per supplied step (`animal-classifier`, …), the
10644
+ * minimum DETECTION score from which this root's own fine label (species,
10645
+ * vehicle type — D736 root supply) is taken (D741). Below it the detection
10646
+ * keeps its macro class without the fine label. `1` = never take it from
10647
+ * this root. Absent ⇒ no floor beyond the macro floor. The supplied step's
10648
+ * `minConfidence` slider, bound to the ROOT model, overrides it.
10649
+ */
10650
+ suppliedLabelFloors: record(string(), number().min(0).max(1)).optional(),
10651
+ /**
10665
10652
  * When true, the executor produces a landmark-aligned crop (similarity warp
10666
10653
  * onto the canonical template) before this step runs, instead of a plain
10667
10654
  * axis-aligned bbox crop. Required for face-recognition embedders (ArcFace):
@@ -10723,6 +10710,16 @@ var ModelCatalogEntrySchema = object({
10723
10710
  */
10724
10711
  classMap: DetectionCatalogClassMapSchema.optional(),
10725
10712
  /**
10713
+ * The pipeline steps this ROOT detector can supply from its own output
10714
+ * (D730): its labels name a step's effect (`deer` for `animal-classifier`)
10715
+ * or draw a step's box (`license_plate` for `plate-detection`). Computed at
10716
+ * import from THIS model's labelmap by `deriveRootSupplies`, never written
10717
+ * by hand and never assumed per family; a row without it is derived on read
10718
+ * (`rootSuppliesOf`). Whether a camera uses it is the step's own
10719
+ * `useRootModel` flag (`resolveRootSupply`).
10720
+ */
10721
+ suppliesSteps: array(RootStepSupplySchema).readonly().optional(),
10722
+ /**
10726
10723
  * The model's CLIP feature-space contract (text encoder, dimension, vector
10727
10724
  * index, token window, search floor) — see `clip-model.ts`. Present ONLY on a
10728
10725
  * CLIP image encoder; its absence is what "not a CLIP model" means to the
@@ -12324,13 +12321,6 @@ var BrokerRtspClientSchema = object({
12324
12321
  lastRtpAt: number(),
12325
12322
  bytesSent: number()
12326
12323
  });
12327
- var BrokerDecodedClientSchema = object({
12328
- tag: string(),
12329
- subscribedAt: number(),
12330
- maxFps: number(),
12331
- framesDelivered: number(),
12332
- framesDropped: number()
12333
- });
12334
12324
  var BrokerAudioClientSchema = object({
12335
12325
  tag: string(),
12336
12326
  subscribedAt: number(),
@@ -12422,7 +12412,6 @@ var BrokerEncodedClientSchema = object({
12422
12412
  });
12423
12413
  var BrokerClientsSchema = object({
12424
12414
  rtsp: array(BrokerRtspClientSchema).readonly(),
12425
- decoded: array(BrokerDecodedClientSchema).readonly(),
12426
12415
  audio: array(BrokerAudioClientSchema).readonly(),
12427
12416
  encoded: array(BrokerEncodedClientSchema).readonly(),
12428
12417
  pipeClients: number(),
@@ -12791,11 +12780,7 @@ method(object({
12791
12780
  auth: "admin"
12792
12781
  }), method(object({ brokerId: string() }), BrokerClientsSchema), method(object({
12793
12782
  brokerId: string(),
12794
- channel: _enum([
12795
- "rtsp",
12796
- "decoded",
12797
- "audio"
12798
- ]),
12783
+ channel: _enum(["rtsp", "audio"]),
12799
12784
  handle: string()
12800
12785
  }), object({ killed: boolean() }), {
12801
12786
  kind: "mutation",
@@ -12830,10 +12815,7 @@ method(object({
12830
12815
  }), method(SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, { kind: "mutation" }), method(object({
12831
12816
  subscriptionId: string(),
12832
12817
  maxCount: number().int().positive().default(8)
12833
- }), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(SubscribeFramesInputSchema, SubscribeFramesResultSchema, { kind: "mutation" }), method(object({
12834
- subscriptionId: string(),
12835
- maxCount: number().int().positive().default(4)
12836
- }), array(FrameHandleSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(object({
12818
+ }), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(object({
12837
12819
  brokerId: string(),
12838
12820
  seconds: number().min(0).max(30)
12839
12821
  }), _void(), {
@@ -14092,54 +14074,12 @@ id: union([string(), number()]) }), {
14092
14074
  kind: "mutation",
14093
14075
  auth: "admin"
14094
14076
  });
14095
- /**
14096
- * shm ring usage stats for a `frameSink: 'shm'` decoder session —
14097
- * exposed via `decoder.getShmStats` so downstream consumers can
14098
- * observe ring pressure (slot count, byte budget, hit/miss ratio).
14099
- */
14100
- var ShmRingStatsSchema = object({
14101
- sessionId: string(),
14102
- slotCount: number().int(),
14103
- slotByteLength: number().int(),
14104
- segmentBytes: number().int(),
14105
- budgetMb: number().int(),
14106
- framesWritten: number().int(),
14107
- getFrameHits: number().int(),
14108
- getFrameMisses: number().int()
14109
- });
14110
- method(object({ codec: string() }), boolean()), method(_void(), object({
14077
+ method(_void(), object({
14111
14078
  id: string(),
14112
14079
  name: string(),
14113
- isPullMode: boolean().optional(),
14114
- priority: number().optional(),
14115
14080
  hwaccel: string().optional(),
14116
14081
  probedBestHwaccel: string().optional()
14117
- })), method(DecoderSessionConfigSchema, object({
14118
- sessionId: string(),
14119
- nodeId: string()
14120
- })), method(object({ sessionId: string() }), _void()), method(object({
14121
- sessionId: string(),
14122
- packet: EncodedPacketSchema
14123
- }), _void()), method(object({
14124
- sessionId: string(),
14125
- url: string()
14126
- }), _void()), method(object({
14127
- sessionId: string(),
14128
- maxCount: number().default(1),
14129
- waitMs: number().optional()
14130
- }), array(DecodedFrameSchema)), method(object({
14131
- sessionId: string(),
14132
- maxCount: number().default(1),
14133
- waitMs: number().optional()
14134
- }), array(FrameHandleSchema)), method(object({ handle: FrameHandleSchema }), DecodedFrameSchema.nullable()), method(object({ sessionId: string() }), ShmRingStatsSchema.nullable()), method(object({
14135
- sessionId: string(),
14136
- config: DecoderSessionConfigSchema.partial()
14137
- }), _void()), method(object({ sessionId: string() }), DecoderStatsSchema), method(_void(), array(object({
14138
- sessionId: string(),
14139
- codec: string(),
14140
- outputFormat: string(),
14141
- createdAtMs: number()
14142
- })).readonly()), method(_void(), object({ backend: string() }), {
14082
+ })), method(_void(), object({ backend: string() }), {
14143
14083
  kind: "mutation",
14144
14084
  auth: "admin"
14145
14085
  });
@@ -16284,6 +16224,12 @@ method(_void(), array(string()).readonly(), { auth: "admin" }), method(object({
16284
16224
  kind: "mutation",
16285
16225
  auth: "admin"
16286
16226
  });
16227
+ var HUB_ADDRESS_ROLES = [
16228
+ "appConnections",
16229
+ "notificationTaps",
16230
+ "internal",
16231
+ "publicEndpoint"
16232
+ ];
16287
16233
  /**
16288
16234
  * Transport bounds for AI capability methods.
16289
16235
  *
@@ -18886,6 +18832,8 @@ var NcSystemEventKindSchema = _enum([
18886
18832
  "stream-offline",
18887
18833
  "node-online",
18888
18834
  "node-offline",
18835
+ "node-restarting",
18836
+ "node-updating",
18889
18837
  "node-inference-unavailable",
18890
18838
  "detection-blind",
18891
18839
  "addon-crash-loop",
@@ -20491,7 +20439,13 @@ var NcAlarmModeDelaysListSchema = array(object({
20491
20439
  * Absent = false (logged, not sent). Even when true it is not sent when that same sensor
20492
20440
  * is the one that starts the entry delay — the entry-delay notification already names it.
20493
20441
  */
20494
- notifySensorRewatched: boolean().optional()
20442
+ notifySensorRewatched: boolean().optional(),
20443
+ /**
20444
+ * D735: notify "ignored" when a sensor this arm bypassed really MOVED while armed (its own
20445
+ * change time is after the arm) and set nothing off. Absent = false (logged, not sent). A
20446
+ * re-sync, a recovery from `unavailable` or a duplicate is never announced, switch or not.
20447
+ */
20448
+ notifySensorIgnored: boolean().optional()
20495
20449
  })).max(8).refine(uniqueModes, { message: "modeDelays: at most one entry per arm mode" });
20496
20450
  var NcAlarmModeDelaysEditListSchema = array(object({
20497
20451
  mode: AlarmArmModeSchema,
@@ -20504,7 +20458,9 @@ var NcAlarmModeDelaysEditListSchema = array(object({
20504
20458
  /** D706: set the switch, or `null` to clear it (back to the default, false). */
20505
20459
  notifyDuringEntryDelay: boolean().nullable().optional(),
20506
20460
  /** D706: set the switch, or `null` to clear it (back to the default, false). */
20507
- notifySensorRewatched: boolean().nullable().optional()
20461
+ notifySensorRewatched: boolean().nullable().optional(),
20462
+ /** D735: set the switch, or `null` to clear it (back to the default, false). */
20463
+ notifySensorIgnored: boolean().nullable().optional()
20508
20464
  })).max(8).refine(uniqueModes, { message: "modeDelays: at most one edit per arm mode" });
20509
20465
  /** One switch of the alarm table: put ONE device on, or take it off, ONE mode's list. */
20510
20466
  var NcAlarmNonBlockingEditSchema = object({
@@ -21482,8 +21438,8 @@ Object.freeze(Object.fromEntries([{
21482
21438
  var CLUSTER_STEP_SETTING_FIELDS = [{
21483
21439
  stepId: "face-embedding",
21484
21440
  key: "minLandmarkFaceSize",
21485
- label: "Min face size for recognition (detection px)",
21486
- 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.",
21441
+ label: "Min face size to embed (detection-frame px)",
21442
+ 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.",
21487
21443
  type: "slider",
21488
21444
  min: 0,
21489
21445
  max: 64,
@@ -23403,6 +23359,34 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
23403
23359
  timestamp: number()
23404
23360
  });
23405
23361
  /**
23362
+ * A root model's boxes standing in for one crop-kind step's own inference
23363
+ * (D730) — see `runPipeline.suppliedRoot`.
23364
+ */
23365
+ var SuppliedRootOutputSchema = object({
23366
+ stepId: string(),
23367
+ /** The root model that drew the boxes — stamped on the result. */
23368
+ modelId: string(),
23369
+ detections: array(object({
23370
+ /** `[x1, y1, x2, y2]` in the pixels of the call's image. */
23371
+ bbox: tuple([
23372
+ number(),
23373
+ number(),
23374
+ number(),
23375
+ number()
23376
+ ]),
23377
+ score: number(),
23378
+ /**
23379
+ * Five facial landmarks in the same pixels — a face the step's own
23380
+ * detector already re-found inside a root face box (D730), so its
23381
+ * embedder child aligns it exactly as it aligns any detected face.
23382
+ */
23383
+ landmarks: array(object({
23384
+ x: number(),
23385
+ y: number()
23386
+ })).optional()
23387
+ })).min(1)
23388
+ });
23389
+ /**
23406
23390
  * Reference to the frame's retained NATIVE surface + the parent crop's placement
23407
23391
  * within the frame, so the executor can re-cut a leaf child ROI at native
23408
23392
  * resolution on the detail plane. See the `runPipeline` `nativeCropRef` field.
@@ -23450,7 +23434,7 @@ var FrameRefSchema = object({
23450
23434
  timestamp: number(),
23451
23435
  capturedAt: number().optional()
23452
23436
  });
23453
- var ModelFormatSchema$1 = _enum([
23437
+ var ModelFormatSchema$2 = _enum([
23454
23438
  "onnx",
23455
23439
  "coreml",
23456
23440
  "openvino",
@@ -23468,7 +23452,7 @@ var PipelineSlotSchema = _enum([
23468
23452
  var PipelineEngineChoiceSchema = object({
23469
23453
  runtime: literal("python"),
23470
23454
  backend: string(),
23471
- format: ModelFormatSchema$1,
23455
+ format: ModelFormatSchema$2,
23472
23456
  device: string().optional()
23473
23457
  });
23474
23458
  /**
@@ -23507,32 +23491,15 @@ var PipelineDefaultStepSchema = lazy(() => object({
23507
23491
  group: string().optional(),
23508
23492
  settings: record(string(), unknown()).optional()
23509
23493
  }));
23510
- var PipelineTemplateStepSchema = lazy(() => object({
23511
- addonId: string(),
23512
- enabled: boolean(),
23513
- modelId: string(),
23514
- children: array(PipelineTemplateStepSchema).readonly(),
23515
- settings: record(string(), unknown()).optional()
23516
- }));
23517
- var PipelineTemplateSchema$1 = object({
23518
- id: string(),
23519
- name: string(),
23520
- createdAt: string(),
23521
- updatedAt: string(),
23522
- engine: PipelineEngineChoiceSchema,
23523
- steps: array(PipelineTemplateStepSchema).readonly()
23524
- });
23525
23494
  var PipelineModelOptionSchema = object({
23526
23495
  id: string(),
23527
23496
  name: string(),
23528
- formats: record(string(), object({
23529
- downloaded: boolean(),
23530
- sizeMB: number()
23531
- })),
23497
+ formats: record(string(), PipelineModelFormatStatusSchema),
23532
23498
  group: ModelVariantGroupSchema.optional(),
23533
23499
  legacy: boolean().optional(),
23534
23500
  provider: ModelProviderIdSchema.optional(),
23535
- defaultConfidence: number().optional()
23501
+ defaultConfidence: number().optional(),
23502
+ suppliesSteps: array(RootStepSupplySchema).readonly().optional()
23536
23503
  });
23537
23504
  var ConfigFieldBridge = custom();
23538
23505
  var PipelineAddonSchemaSchema = object({
@@ -23694,6 +23661,22 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
23694
23661
  }), {
23695
23662
  kind: "mutation",
23696
23663
  auth: "admin"
23664
+ }), method(object({
23665
+ nodeId: string(),
23666
+ deviceIds: array(number()).readonly().optional(),
23667
+ dryRun: boolean()
23668
+ }), object({
23669
+ entries: array(object({
23670
+ deviceId: number(),
23671
+ keys: array(string()).readonly()
23672
+ })).readonly(),
23673
+ refused: array(object({
23674
+ deviceId: number(),
23675
+ reason: string()
23676
+ })).readonly()
23677
+ }), {
23678
+ kind: "mutation",
23679
+ auth: "admin"
23697
23680
  }), method(object({ nodeId: string() }), object({ unhealthy: array(object({
23698
23681
  /** `<backend>:<device>`, e.g. `openvino:gpu`. */
23699
23682
  deviceKey: string(),
@@ -23719,22 +23702,14 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
23719
23702
  }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(object({
23720
23703
  steps: array(PipelineStepInputSchema),
23721
23704
  deviceKey: string().optional()
23722
- }), PipelineValidationResultSchema), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
23723
- name: string(),
23724
- steps: array(PipelineTemplateStepSchema).readonly(),
23725
- engine: PipelineEngineChoiceSchema
23726
- }), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({
23727
- id: string(),
23728
- name: string().optional(),
23729
- steps: array(PipelineTemplateStepSchema).readonly().optional()
23730
- }), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({ id: string() }), _void(), { kind: "mutation" }), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string() }), ModelAvailabilityListBridge), method(object({
23705
+ }), PipelineValidationResultSchema), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string() }), ModelAvailabilityListBridge), method(object({
23731
23706
  addonId: string(),
23732
23707
  modelId: string(),
23733
- format: ModelFormatSchema$1
23708
+ format: ModelFormatSchema$2
23734
23709
  }), DownloadModelResultSchema, { kind: "mutation" }), method(object({
23735
23710
  addonId: string(),
23736
23711
  modelId: string(),
23737
- format: ModelFormatSchema$1
23712
+ format: ModelFormatSchema$2
23738
23713
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
23739
23714
  steps: array(PipelineStepInputSchema).min(1),
23740
23715
  frame: FrameInputSchema.optional(),
@@ -23800,7 +23775,16 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
23800
23775
  * `device-not-servable`), and nothing reaches the camera's live
23801
23776
  * trace stream. Absent ⇒ unchanged behaviour.
23802
23777
  */
23803
- replay: literal(true).optional()
23778
+ replay: literal(true).optional(),
23779
+ /**
23780
+ * Root-supplied detections for the tree's ROOT step (D730). Set by
23781
+ * `runDetailSubtree` when the camera's root model supplies a crop-kind
23782
+ * step (a Frigate+ `license_plate` for `plate-detection`): the step is
23783
+ * NOT inferred, these boxes are its output, and its children (the plate
23784
+ * reader) run on them through their own crop policy. Boxes are in the
23785
+ * PIXELS of the image this call carries. Absent ⇒ the root step runs.
23786
+ */
23787
+ suppliedRoot: SuppliedRootOutputSchema.optional()
23804
23788
  }), PipelineRunResultBridge, { kind: "mutation" }), method(object({
23805
23789
  steps: array(PipelineStepInputSchema).min(1),
23806
23790
  frames: array(FrameInputSchema).min(1).max(255),
@@ -23882,6 +23866,375 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
23882
23866
  filename: string().optional(),
23883
23867
  settings: record(string(), unknown()).optional()
23884
23868
  }), AudioTestResultSchema, { kind: "mutation" }), method(_void(), ConfigUISchemaNullableBridge);
23869
+ /**
23870
+ * The wire shapes of the Auto tune plan and apply (D745), used by the
23871
+ * `pipeline-orchestrator` cap. The recommender's own types
23872
+ * (`recommend.ts`) are the TS face of the same data; these
23873
+ * schemas are what crosses the cap boundary.
23874
+ */
23875
+ var ModelFormatSchema$1 = _enum(MODEL_FORMATS);
23876
+ /** The operator's range for it. */
23877
+ var MIN_SESSIONS_PER_DEVICE_RANGE = {
23878
+ min: 1,
23879
+ max: 8
23880
+ };
23881
+ var HardwareClassIdSchema = _enum([
23882
+ "intel-core-ultra",
23883
+ "intel-n-series",
23884
+ "apple-m-base",
23885
+ "apple-m-pro",
23886
+ "unknown"
23887
+ ]);
23888
+ var AcceleratorKindSchema = _enum([
23889
+ "intel-npu",
23890
+ "intel-igpu",
23891
+ "x86-cpu",
23892
+ "arm-cpu",
23893
+ "apple-ane",
23894
+ "coral"
23895
+ ]);
23896
+ var RecommendationReasonSchema = discriminatedUnion("kind", [
23897
+ object({
23898
+ kind: literal("capacity"),
23899
+ sessions: number(),
23900
+ minSessions: number()
23901
+ }),
23902
+ object({
23903
+ kind: literal("tie-faster"),
23904
+ over: string(),
23905
+ recallDelta: number()
23906
+ }),
23907
+ object({
23908
+ kind: literal("stepped-down"),
23909
+ from: string(),
23910
+ to: string(),
23911
+ limitedBy: string()
23912
+ }),
23913
+ object({
23914
+ kind: literal("no-fit-lightest"),
23915
+ sessions: number(),
23916
+ minSessions: number()
23917
+ }),
23918
+ object({
23919
+ kind: literal("derived-latency"),
23920
+ modelId: string()
23921
+ }),
23922
+ object({ kind: literal("cpu-device") }),
23923
+ object({ kind: literal("coral-untouched") }),
23924
+ object({ kind: literal("device-disabled") }),
23925
+ object({ kind: literal("device-unavailable") }),
23926
+ object({ kind: literal("node-offline") }),
23927
+ object({ kind: literal("no-hardware-facts") }),
23928
+ object({
23929
+ kind: literal("no-measured-data"),
23930
+ hardwareClass: HardwareClassIdSchema
23931
+ }),
23932
+ object({
23933
+ kind: literal("no-family-build"),
23934
+ format: ModelFormatSchema$1
23935
+ })
23936
+ ]);
23937
+ var DeviceModelChoiceSchema = object({
23938
+ modelId: string(),
23939
+ p50Ms: number(),
23940
+ fps: number(),
23941
+ measured: boolean(),
23942
+ /** Parallel sessions at the camera rate with the headroom kept free: ⌊fps × (1 − headroom) / camera fps⌋. */
23943
+ capacitySessions: number(),
23944
+ personRecall: number()
23945
+ });
23946
+ var DeviceRecommendationSchema = object({
23947
+ deviceKey: string(),
23948
+ accelerator: AcceleratorKindSchema.nullable(),
23949
+ enabled: boolean(),
23950
+ available: boolean(),
23951
+ chosen: DeviceModelChoiceSchema.nullable(),
23952
+ reasons: array(RecommendationReasonSchema).readonly()
23953
+ });
23954
+ var NodeRecommendationSchema = object({
23955
+ nodeId: string(),
23956
+ reachable: boolean(),
23957
+ hardwareClass: HardwareClassIdSchema.nullable(),
23958
+ cpuModel: string().nullable(),
23959
+ skipped: boolean(),
23960
+ acceleratorModelId: string().nullable(),
23961
+ devices: array(DeviceRecommendationSchema).readonly(),
23962
+ reasons: array(RecommendationReasonSchema).readonly()
23963
+ });
23964
+ var ModelPinChangeSchema = object({
23965
+ stepId: string(),
23966
+ before: string().nullable(),
23967
+ after: string().nullable()
23968
+ });
23969
+ var NodeDeviceChangeSchema = object({
23970
+ nodeId: string(),
23971
+ deviceKey: string(),
23972
+ madeExplicit: boolean(),
23973
+ modelPins: array(ModelPinChangeSchema).readonly(),
23974
+ thresholds: array(object({
23975
+ stepId: string(),
23976
+ keys: array(string()).readonly()
23977
+ })).readonly()
23978
+ });
23979
+ var CameraOverrideClearSchema = object({
23980
+ deviceId: number(),
23981
+ source: _enum(["step-override", "wholesale"]),
23982
+ nodeId: string(),
23983
+ deviceKey: string().nullable(),
23984
+ stepId: string(),
23985
+ modelIdBefore: string().nullable(),
23986
+ keys: array(string()).readonly()
23987
+ });
23988
+ var DetectorStoreClearSchema = object({
23989
+ deviceId: number(),
23990
+ keys: array(string()).readonly()
23991
+ });
23992
+ var AutoTuneWarningSchema = discriminatedUnion("kind", [
23993
+ object({
23994
+ kind: literal("detector-store-cluster-wide"),
23995
+ skippedNodes: array(string()).readonly()
23996
+ }),
23997
+ object({
23998
+ kind: literal("detector-store-unreadable"),
23999
+ error: string()
24000
+ }),
24001
+ object({
24002
+ kind: literal("coral-enabled"),
24003
+ nodeId: string(),
24004
+ deviceKey: string()
24005
+ })
24006
+ ]);
24007
+ var AutoTuneOptionsSchema = object({
24008
+ /** Share of each accelerator's throughput kept free (0.3–0.5). */
24009
+ headroom: number().min(.3).max(.5).default(.4),
24010
+ /**
24011
+ * The least number of parallel sessions every device must sustain at the
24012
+ * camera rate with the headroom kept free (D755). The most accurate model
24013
+ * that reaches it wins.
24014
+ */
24015
+ minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
24016
+ });
24017
+ var AutoTunePlanSchema = object({
24018
+ /** Hash of everything the apply will write — the apply refuses a different one. */
24019
+ planHash: string(),
24020
+ family: literal("yolov9"),
24021
+ headroom: number(),
24022
+ minSessionsPerDevice: number(),
24023
+ /** The detection rate a session is counted at (the fastest camera running the pipeline root). */
24024
+ cameraFps: number(),
24025
+ generatedAt: number(),
24026
+ nodes: array(NodeRecommendationSchema).readonly(),
24027
+ nodeChanges: array(NodeDeviceChangeSchema).readonly(),
24028
+ cameraClears: array(CameraOverrideClearSchema).readonly(),
24029
+ detectorStoreClears: array(DetectorStoreClearSchema).readonly(),
24030
+ warnings: array(AutoTuneWarningSchema).readonly()
24031
+ });
24032
+ var AutoTuneApplyInputSchema = object({
24033
+ planHash: string(),
24034
+ headroom: number().min(.3).max(.5).default(.4),
24035
+ minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
24036
+ });
24037
+ var AutoTunePhaseResultSchema = object({
24038
+ phase: _enum([
24039
+ "download",
24040
+ "camera-overrides",
24041
+ "detector-thresholds",
24042
+ "node-models",
24043
+ "redispatch"
24044
+ ]),
24045
+ ok: boolean(),
24046
+ detail: string()
24047
+ });
24048
+ var AutoTuneApplyResultSchema = discriminatedUnion("kind", [
24049
+ object({
24050
+ kind: literal("applied"),
24051
+ planHash: string(),
24052
+ phases: array(AutoTunePhaseResultSchema).readonly()
24053
+ }),
24054
+ object({
24055
+ kind: literal("aborted"),
24056
+ phases: array(AutoTunePhaseResultSchema).readonly()
24057
+ }),
24058
+ object({
24059
+ kind: literal("stale"),
24060
+ plan: AutoTunePlanSchema
24061
+ }),
24062
+ object({
24063
+ kind: literal("refused"),
24064
+ reason: _enum(["apply-in-progress"])
24065
+ })
24066
+ ]);
24067
+ /**
24068
+ * Wire shapes of the Load balancing surface (D748): the session placement
24069
+ * policy, the atomic share write, the observed placement statistics, the
24070
+ * hardware share suggestion and the stale device pins.
24071
+ */
24072
+ /**
24073
+ * How a new detection session picks its node and device.
24074
+ * - `least-loaded` — the historical rule: lowest `attached / weight`, a
24075
+ * constant node order at a tie (D37). An idle node always ties at 0, so a
24076
+ * weight only bites once a node already holds a session.
24077
+ * - `share` — the share of PARALLEL sessions is held to the weights, and a
24078
+ * full or drowning node yields to a free one (D748).
24079
+ */
24080
+ var SessionPlacementPolicySchema = _enum(["least-loaded", "share"]);
24081
+ var LoadBalancingSharesInputSchema = object({
24082
+ /** nodeId → share (> 0). A node left out keeps its weight. */
24083
+ nodes: record(string(), number().positive()).default({}),
24084
+ /** nodeId → deviceKey → share (> 0). A device left out keeps its weight. */
24085
+ devices: record(string(), record(string(), number().positive())).default({})
24086
+ });
24087
+ var PlacementStatsInputSchema = object({
24088
+ /** Window the observed shares are averaged over (default 1 h, max 24 h). */
24089
+ windowMs: number().int().min(6e4).max(1440 * 60 * 1e3).default(3600 * 1e3) });
24090
+ var PlacementDeviceStatsSchema = object({
24091
+ deviceKey: string(),
24092
+ /** Sessions running on this device now. */
24093
+ sessionsNow: number(),
24094
+ /** Sessions started on this device inside the window. */
24095
+ sessionsStarted: number(),
24096
+ /** Time-weighted share of the node's parallel sessions over the window (0–1); null = no session ran. */
24097
+ observedShare: number().nullable()
24098
+ });
24099
+ var PlacementNodeStatsSchema = object({
24100
+ nodeId: string(),
24101
+ sessionsNow: number(),
24102
+ sessionsStarted: number(),
24103
+ /** Time-weighted share of the cluster's parallel sessions over the window (0–1); null = none ran. */
24104
+ observedShare: number().nullable(),
24105
+ /** Most sessions this node ran at once inside the window. */
24106
+ peakSessions: number(),
24107
+ /** Sessions a share election handed elsewhere because this node was full or drowning. */
24108
+ yieldsAway: number(),
24109
+ devices: array(PlacementDeviceStatsSchema).readonly()
24110
+ });
24111
+ /** A camera's device pin that the session path cannot honour. */
24112
+ var StaleDevicePinSchema = object({
24113
+ deviceId: number(),
24114
+ deviceKey: string(),
24115
+ /** `disabled` — the key exists on some node but is not enabled anywhere; `absent` — no node has it. */
24116
+ reason: _enum(["disabled", "absent"])
24117
+ });
24118
+ var PlacementStatsSchema = object({
24119
+ policy: SessionPlacementPolicySchema,
24120
+ windowMs: number(),
24121
+ /** How much of the window was actually observed (the hub keeps it in memory). */
24122
+ observedForMs: number(),
24123
+ sessionsNow: number(),
24124
+ /** Most parallel sessions across the cluster inside the window. */
24125
+ clusterPeakSessions: number(),
24126
+ nodes: array(PlacementNodeStatsSchema).readonly(),
24127
+ stalePins: array(StaleDevicePinSchema).readonly()
24128
+ });
24129
+ /**
24130
+ * Where an automatic share's capacity comes from (D755).
24131
+ * - `hardware` — the static capacity of each device at its Auto tune model:
24132
+ * the measured latency table for the node's hardware class.
24133
+ * - `benchmark` — the node's own measured capacity (node benchmark results).
24134
+ * A node with no results falls back to `hardware`, and says so.
24135
+ */
24136
+ var CapacitySourceSchema = _enum(["hardware", "benchmark"]);
24137
+ /** Why a node under the `benchmark` source was sized from hardware instead. */
24138
+ var CapacityFallbackSchema = _enum(["no-benchmark-results", "partial-benchmark-results"]);
24139
+ var SuggestSharesInputSchema = object({
24140
+ headroom: number().min(.3).max(.5).default(.4),
24141
+ /** Default `hardware`. */
24142
+ source: CapacitySourceSchema.default("hardware")
24143
+ });
24144
+ var SuggestedDeviceShareSchema = object({
24145
+ deviceKey: string(),
24146
+ /** Share of the node (0–100, rounded). */
24147
+ share: number(),
24148
+ modelId: string().nullable(),
24149
+ /** Inferences per second at that model, from the measured table; null when sized by a benchmark. */
24150
+ fps: number().nullable(),
24151
+ /** False for a table cell derived from another chip; true for a measured cell or a benchmark. */
24152
+ measured: boolean(),
24153
+ /**
24154
+ * Advisory session cap: ⌊fps × (1 − headroom) / camera fps⌋ from the table,
24155
+ * or the benchmark's measured max sessions. Never enforced.
24156
+ */
24157
+ suggestedMaxSessions: number().nullable()
24158
+ });
24159
+ var SuggestedNodeShareSchema = object({
24160
+ nodeId: string(),
24161
+ /** Share of the cluster (0–100, rounded); null = node skipped (offline, unknown hardware). */
24162
+ share: number().nullable(),
24163
+ /** Parallel sessions the node sustains at the suggested models with the headroom kept free. */
24164
+ capacitySessions: number(),
24165
+ devices: array(SuggestedDeviceShareSchema).readonly(),
24166
+ skippedReason: string().nullable(),
24167
+ /** What this node's capacity was read from; null when the node is skipped. */
24168
+ capacitySource: CapacitySourceSchema.nullable(),
24169
+ /** Set when the `benchmark` source was asked for and this node used `hardware`. */
24170
+ capacityFallback: CapacityFallbackSchema.nullable()
24171
+ });
24172
+ var SuggestSharesResultSchema = object({
24173
+ headroom: number(),
24174
+ /** The source asked for; each node says what it actually used. */
24175
+ source: CapacitySourceSchema,
24176
+ /** Camera detection rate the capacity is counted in (the fastest camera's fps). */
24177
+ cameraFps: number(),
24178
+ /** The Auto tune capacity floor the models were picked at. */
24179
+ minSessionsPerDevice: number(),
24180
+ nodes: array(SuggestedNodeShareSchema).readonly()
24181
+ });
24182
+ /**
24183
+ * Where the node and device shares come from (D750, D755).
24184
+ * - `hardware` (default) — computed by the system from each node's static
24185
+ * capacity (its accelerators at their Auto tune models, from the measured
24186
+ * latency table), recomputed whenever a node or device joins, leaves, is
24187
+ * switched on or off, or changes model. No load input.
24188
+ * - `benchmark` — the same, from each node's measured capacity (node
24189
+ * benchmark results); a node without results falls back to `hardware`.
24190
+ * - `manual` — the operator's stored sliders.
24191
+ * Either way a node or device that cannot take sessions gives its share to
24192
+ * the others in proportion; the stored values are never rewritten for that.
24193
+ */
24194
+ var ShareSourceSchema = _enum([
24195
+ "hardware",
24196
+ "benchmark",
24197
+ "manual"
24198
+ ]);
24199
+ var SetShareSourceInputSchema = object({ source: ShareSourceSchema });
24200
+ object({
24201
+ nodes: record(string(), number()),
24202
+ devices: record(string(), record(string(), number()))
24203
+ });
24204
+ var EffectiveDeviceShareSchema = object({
24205
+ deviceKey: string(),
24206
+ /** Can take sessions now (enabled, available, can run the root). */
24207
+ eligible: boolean(),
24208
+ /** The share the source assigns, as a percentage of the node's devices. */
24209
+ configuredPct: number(),
24210
+ /** The share actually used, after an ineligible device's share went to the others. */
24211
+ effectivePct: number()
24212
+ });
24213
+ var EffectiveNodeShareSchema = object({
24214
+ nodeId: string(),
24215
+ eligible: boolean(),
24216
+ configuredPct: number(),
24217
+ effectivePct: number(),
24218
+ /** Automatic sources: what this node's share was computed from; null under `manual` or before the first answer. */
24219
+ capacitySource: CapacitySourceSchema.nullable(),
24220
+ /** Automatic `benchmark`: why this node used `hardware` instead. */
24221
+ capacityFallback: CapacityFallbackSchema.nullable(),
24222
+ devices: array(EffectiveDeviceShareSchema).readonly()
24223
+ });
24224
+ var EffectiveSharesSchema = object({
24225
+ source: ShareSourceSchema,
24226
+ policy: SessionPlacementPolicySchema,
24227
+ /** An automatic source with no computed answer yet: the stored sliders are used meanwhile. */
24228
+ autoPending: boolean(),
24229
+ /** When the automatic shares were last computed (ms epoch); null = never. */
24230
+ computedAt: number().nullable(),
24231
+ /** What made the system recompute them last. */
24232
+ trigger: string().nullable(),
24233
+ nodes: array(EffectiveNodeShareSchema).readonly(),
24234
+ /** The relative weights the election reads (before eligibility). */
24235
+ nodeWeights: record(string(), number()),
24236
+ deviceWeights: record(string(), record(string(), number()))
24237
+ });
23885
24238
  object({
23886
24239
  activeCameras: number(),
23887
24240
  throttledCameras: number(),
@@ -24799,14 +25152,15 @@ var RunnerLocalLoadSchema = object({
24799
25152
  * Per-inference-device live load (multi-device C4). One entry per deviceKey
24800
25153
  * this runner currently has attached cameras on, so the orchestrator's second
24801
25154
  * `balance()` pass (over a node's devices) weights on real per-pool session
24802
- * counts. Empty on single-device / pre-multi-device runners. `queueDepthTotal`
24803
- * per device is 0 until the pool backlog gets a public accessor (follow-up).
25155
+ * counts. Empty on single-device / pre-multi-device runners. There is no
25156
+ * per-device queue depth: the inference pool's backlog has no accessor, and
25157
+ * a field that always read 0 was removed rather than shown as a measurement
25158
+ * (D762).
24804
25159
  */
24805
25160
  devices: array(object({
24806
25161
  deviceKey: string(),
24807
25162
  backend: string(),
24808
- attachedCameras: number(),
24809
- queueDepthTotal: number()
25163
+ attachedCameras: number()
24810
25164
  })).default([]),
24811
25165
  /** Hardware capability flags reported by this node. */
24812
25166
  hardware: object({
@@ -24942,7 +25296,22 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
24942
25296
  */
24943
25297
  cropJpeg: string().optional(),
24944
25298
  parent: DetailParentSchema,
24945
- steps: array(string()).optional()
25299
+ steps: array(string()).optional(),
25300
+ /**
25301
+ * The camera's root model already drew this step's boxes (D730): a
25302
+ * `license_plate` inside the parent vehicle. The named step is NOT
25303
+ * inferred — these FRAME-space boxes are its output — and its
25304
+ * requested children (the plate reader) run on them. Absent ⇒ every
25305
+ * requested step infers as before.
25306
+ */
25307
+ supplied: object({
25308
+ stepId: string(),
25309
+ modelId: string(),
25310
+ boxes: array(object({
25311
+ bbox: NativeCropBboxSchema,
25312
+ score: number()
25313
+ })).min(1)
25314
+ }).optional()
24946
25315
  }), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" }), method(object({
24947
25316
  /** Catalog step id, e.g. `clip-embedding`. */
24948
25317
  stepId: string(),
@@ -25005,14 +25374,6 @@ var CameraPipelineConfigSchema = object({
25005
25374
  settings: record(string(), unknown()).readonly().optional()
25006
25375
  }).nullable().optional()
25007
25376
  });
25008
- var PipelineTemplateSchema = object({
25009
- id: string(),
25010
- name: string(),
25011
- description: string().optional(),
25012
- config: CameraPipelineConfigSchema,
25013
- createdAt: string(),
25014
- updatedAt: string()
25015
- });
25016
25377
  var DeviceStepConfigSchema = object({
25017
25378
  modelId: string().optional(),
25018
25379
  settings: record(string(), unknown()).optional(),
@@ -25086,9 +25447,10 @@ var CameraStepOverridePatchSchema = object({
25086
25447
  modelId: string().optional(),
25087
25448
  settings: record(string(), unknown()).readonly().optional()
25088
25449
  });
25450
+ var CameraStepSettingsSchema = record(string(), record(string(), unknown()).readonly());
25089
25451
  var CameraPipelineSettingsSchema = object({
25090
- pinnedAgentNodeId: string().optional(),
25091
25452
  stepToggles: record(string(), boolean()).optional(),
25453
+ stepSettings: CameraStepSettingsSchema.optional(),
25092
25454
  stepOverridesByDevice: record(string(), record(string(), record(string(), CameraStepOverridePatchSchema))).optional(),
25093
25455
  pipelineByAgent: record(string(), CameraPipelineForAgentSchema).optional()
25094
25456
  });
@@ -25121,7 +25483,10 @@ var PipelineAssignmentSchema = object({
25121
25483
  });
25122
25484
  /**
25123
25485
  * Per-agent load summary surfaced to the load balancer + dashboards.
25124
- * Aggregated from each runner's `getLocalLoad` cap call.
25486
+ * Aggregated from each runner's `getLocalLoad` cap call. In the
25487
+ * `getAgentLoad` report, a single-device node's default-pool sessions (no
25488
+ * `deviceKey`) are credited to its one eligible device in `load.devices` —
25489
+ * the default pool IS that device (D745); the balancer's census stays raw.
25125
25490
  */
25126
25491
  var AgentLoadSummarySchema = object({
25127
25492
  nodeId: string(),
@@ -25210,26 +25575,27 @@ var CameraBrokerStatusSchema = object({
25210
25575
  width: number(),
25211
25576
  height: number(),
25212
25577
  subscribers: number(),
25213
- inFps: number(),
25214
- outFps: number()
25578
+ /**
25579
+ * Encoded packets/s the broker receives from the camera. null when the
25580
+ * broker's stats read failed — unknown, never 0 (a 0 here reads as a stall).
25581
+ * There is no output rate: decoding runs in the session decode workers, not
25582
+ * in the broker, so the broker's own decoded-frame rate is 0 on every live
25583
+ * camera and is not served (D758).
25584
+ */
25585
+ inFps: number().nullable()
25215
25586
  })).readonly(),
25216
25587
  webrtcSessions: number(),
25217
25588
  rtspRestream: boolean()
25218
25589
  });
25219
- /** Shared-memory ring statistics within the decoder block. */
25220
- var CameraDecoderShmSchema = object({
25221
- framesWritten: number(),
25222
- getFrameHits: number(),
25223
- getFrameMisses: number(),
25224
- budgetMb: number()
25225
- });
25226
- /** Decoder block — null when the decoder stage is unreachable or inactive. */
25227
- var CameraDecoderStatusSchema = object({
25228
- nodeId: string(),
25229
- formats: array(string()).readonly(),
25230
- sessionCount: number(),
25231
- shm: CameraDecoderShmSchema
25232
- });
25590
+ /**
25591
+ * Decoder block — WHERE decode runs (co-located with the detection node by
25592
+ * construction); null when the camera has no detection node. It carries no
25593
+ * frame counter: the shared-memory plane whose counters it used to serve is
25594
+ * gone, and those fields read 0 forever. Whether frames actually flow is read
25595
+ * from `detection.actualFps` (frames delivered to and processed by the
25596
+ * detector), never from a counter nothing feeds.
25597
+ */
25598
+ var CameraDecoderStatusSchema = object({ nodeId: string() });
25233
25599
  /** Motion block — null when motion detection is not active for this device. */
25234
25600
  var CameraMotionStatusSchema = object({
25235
25601
  enabled: boolean(),
@@ -25586,12 +25952,6 @@ method(object({
25586
25952
  }), object({ success: literal(true) }), {
25587
25953
  kind: "mutation",
25588
25954
  auth: "admin"
25589
- }), method(object({
25590
- agentNodeId: string(),
25591
- detectWeight: number().positive().nullable()
25592
- }), object({ success: literal(true) }), {
25593
- kind: "mutation",
25594
- auth: "admin"
25595
25955
  }), method(object({
25596
25956
  agentNodeId: string(),
25597
25957
  detect: boolean().nullable().optional(),
@@ -25633,6 +25993,15 @@ method(object({
25633
25993
  }), {
25634
25994
  kind: "mutation",
25635
25995
  auth: "admin"
25996
+ }), method(AutoTuneOptionsSchema, AutoTunePlanSchema, { auth: "admin" }), method(AutoTuneApplyInputSchema, AutoTuneApplyResultSchema, {
25997
+ kind: "mutation",
25998
+ auth: "admin"
25999
+ }), method(LoadBalancingSharesInputSchema, object({ success: literal(true) }), {
26000
+ kind: "mutation",
26001
+ auth: "admin"
26002
+ }), method(PlacementStatsInputSchema, PlacementStatsSchema, { auth: "admin" }), method(SuggestSharesInputSchema, SuggestSharesResultSchema, { auth: "admin" }), method(_void(), EffectiveSharesSchema, { auth: "admin" }), method(SetShareSourceInputSchema, object({ success: literal(true) }), {
26003
+ kind: "mutation",
26004
+ auth: "admin"
25636
26005
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
25637
26006
  deviceId: number(),
25638
26007
  addonId: string(),
@@ -25649,6 +26018,13 @@ method(object({
25649
26018
  }), object({ success: literal(true) }), {
25650
26019
  kind: "mutation",
25651
26020
  auth: "admin"
26021
+ }), method(object({
26022
+ deviceId: number(),
26023
+ addonId: string(),
26024
+ settings: record(string(), unknown()).nullable()
26025
+ }), object({ success: literal(true) }), {
26026
+ kind: "mutation",
26027
+ auth: "admin"
25652
26028
  }), method(object({
25653
26029
  deviceId: number(),
25654
26030
  agentNodeId: string(),
@@ -25672,25 +26048,7 @@ method(object({
25672
26048
  }), method(_void(), DiskReconcileJobSchema, {
25673
26049
  kind: "mutation",
25674
26050
  auth: "admin"
25675
- }), method(_void(), DiskReconcileJobSchema, { auth: "admin" }), method(_void(), array(PipelineTemplateSchema).readonly()), method(object({
25676
- name: string(),
25677
- description: string().optional(),
25678
- config: CameraPipelineConfigSchema
25679
- }), PipelineTemplateSchema, {
25680
- kind: "mutation",
25681
- auth: "admin"
25682
- }), method(object({
25683
- id: string(),
25684
- name: string().optional(),
25685
- description: string().optional(),
25686
- config: CameraPipelineConfigSchema.optional()
25687
- }), PipelineTemplateSchema, {
25688
- kind: "mutation",
25689
- auth: "admin"
25690
- }), method(object({ id: string() }), object({ success: literal(true) }), {
25691
- kind: "mutation",
25692
- auth: "admin"
25693
- });
26051
+ }), method(_void(), DiskReconcileJobSchema, { auth: "admin" });
25694
26052
  /**
25695
26053
  * Cap → event-kind mapping for the SENSOR / CONTROL cap families — the table
25696
26054
  * `pipeline-analytics.listEventKinds` uses to turn a linked device's bound
@@ -27939,8 +28297,6 @@ var WebrtcStreamChoiceSchema = object({
27939
28297
  ]).nullable(),
27940
28298
  /** Input FPS from the camera (null for adaptive). */
27941
28299
  inputFps: number().nullable(),
27942
- /** Decoded FPS (null for adaptive). */
27943
- decodeFps: number().nullable(),
27944
28300
  /** Bitrate in kbps (null for adaptive). */
27945
28301
  bitrateKbps: number().nullable()
27946
28302
  });
@@ -28272,6 +28628,14 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
28272
28628
  */
28273
28629
  alive: boolean()
28274
28630
  })), method(object({
28631
+ deviceId: number().int().nonnegative(),
28632
+ sessionId: string(),
28633
+ downlinkMbps: number().nonnegative()
28634
+ }), object({
28635
+ outcome: _enum(["switching", "held"]),
28636
+ tier: CamProfileSchema.nullable(),
28637
+ reason: string()
28638
+ }), { kind: "mutation" }), method(object({
28275
28639
  deviceId: number().int().nonnegative(),
28276
28640
  sessionId: string()
28277
28641
  }), WebrtcSessionDebugSchema, { kind: "query" });
@@ -28511,6 +28875,59 @@ var AddonAutoUpdateSchema = ChannelWithInheritSchema;
28511
28875
  var RestartAddonResultSchema = unknown();
28512
28876
  var InstallPackageResultSchema = unknown();
28513
28877
  var ReloadPackagesResultSchema = unknown();
28878
+ /**
28879
+ * What an uninstall did on ONE node.
28880
+ * - `uninstalled` — removed: runner(s) stopped, caps gone, code deleted.
28881
+ * - `not-installed` — the node did not have it (nothing to do).
28882
+ * - `refused` — protected / bootstrap package; nothing touched.
28883
+ * - `failed` — attempted and did not complete; `error` says why.
28884
+ * - `pending-reconnect` — the node is OFFLINE: its record was pruned so the
28885
+ * back-fill never returns the package, and the stale-addon sweep removes the
28886
+ * copy when the node registers again (only once the hub no longer has it).
28887
+ */
28888
+ var UninstallNodeOutcomeSchema = _enum([
28889
+ "uninstalled",
28890
+ "not-installed",
28891
+ "refused",
28892
+ "failed",
28893
+ "pending-reconnect"
28894
+ ]);
28895
+ var UninstallNodeResultSchema = object({
28896
+ nodeId: string(),
28897
+ outcome: UninstallNodeOutcomeSchema,
28898
+ error: string().optional(),
28899
+ addonIds: array(string()).readonly(),
28900
+ runnersStopped: array(string()).readonly(),
28901
+ warnings: array(string()).readonly()
28902
+ });
28903
+ var UninstallPackageResultSchema = object({
28904
+ /** Every targeted node ended `uninstalled`, `not-installed` or `pending-reconnect`. */
28905
+ success: boolean(),
28906
+ packageName: string(),
28907
+ results: array(UninstallNodeResultSchema).readonly()
28908
+ });
28909
+ /**
28910
+ * `unreachable` lists online agents whose status read FAILED — absence from
28911
+ * `installations` is only "not installed" for a node that answered (D315).
28912
+ */
28913
+ var PackageInstallationsSchema = object({
28914
+ installations: array(object({
28915
+ packageName: string(),
28916
+ nodeId: string(),
28917
+ nodeName: string(),
28918
+ isHub: boolean(),
28919
+ isOnline: boolean(),
28920
+ version: string().nullable(),
28921
+ addonIds: array(string()).readonly(),
28922
+ source: _enum(["live", "recorded"]),
28923
+ /** The hub installs this package too. `false` on an agent row = an orphan. */
28924
+ onHub: boolean()
28925
+ })).readonly(),
28926
+ unreachable: array(object({
28927
+ nodeId: string(),
28928
+ error: string()
28929
+ })).readonly()
28930
+ });
28514
28931
  var BulkUpdateItemStatusSchema = _enum([
28515
28932
  "queued",
28516
28933
  "updating",
@@ -28593,10 +29010,14 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
28593
29010
  }), method(object({ packageName: string() }), InstallPackageResultSchema, {
28594
29011
  kind: "mutation",
28595
29012
  auth: "admin"
28596
- }), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({ packageName: string() }), unknown(), {
29013
+ }), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({
29014
+ packageName: string().min(1),
29015
+ nodeId: string().optional(),
29016
+ everywhere: boolean().optional()
29017
+ }), UninstallPackageResultSchema, {
28597
29018
  kind: "mutation",
28598
29019
  auth: "admin"
28599
- }), method(_void(), ReloadPackagesResultSchema, {
29020
+ }), method(object({ packageName: string().optional() }), PackageInstallationsSchema, { auth: "admin" }), method(_void(), ReloadPackagesResultSchema, {
28600
29021
  kind: "mutation",
28601
29022
  auth: "admin"
28602
29023
  }), method(object({ query: string().optional() }), array(SearchResultSchema)), method(object({ nodeId: string().optional() }), array(PackageUpdateSchema).readonly(), { auth: "admin" }), method(object({
@@ -32100,7 +32521,8 @@ var ConnectionEndpointSchema = object({
32100
32521
  "lan-ipv6",
32101
32522
  "public",
32102
32523
  "loopback",
32103
- "app-link"
32524
+ "app-link",
32525
+ "custom"
32104
32526
  ]),
32105
32527
  /**
32106
32528
  * Originating-interface kind — `lan`/`wifi`/`docker`/`vpn`/`other`/
@@ -32169,7 +32591,7 @@ var GetConnectionEndpointsResultSchema = object({
32169
32591
  localPort: AdvertisedLocalPortSchema
32170
32592
  });
32171
32593
  /**
32172
- * The address flagged for notification links. `baseUrl: null` = AUTO, which
32594
+ * The address flagged for notification taps (`notificationTaps`). `baseUrl: null` = AUTO, which
32173
32595
  * since D709 is the CamStack app link; `resolved` reports the effective value,
32174
32596
  * so the UI can show it either way.
32175
32597
  */
@@ -32202,6 +32624,72 @@ var ViewerEndpointsSchema = object({
32202
32624
  /** What the ranking currently resolves to (may be empty if nothing is up). */
32203
32625
  resolved: array(string()).readonly()
32204
32626
  });
32627
+ /**
32628
+ * DEPRECATED compatibility shape of `getHubAddresses` (D729 amendment, kept
32629
+ * for addons built against it): `cluster` is the `internal` role, `browser`
32630
+ * the `publicEndpoint` role; `override` is the flagged address.
32631
+ */
32632
+ var HubAddressSnapshotSchema = object({
32633
+ override: string().nullable(),
32634
+ resolved: string().nullable(),
32635
+ source: _enum([
32636
+ "override",
32637
+ "auto",
32638
+ "none"
32639
+ ])
32640
+ });
32641
+ var HubAddressesSchema = object({
32642
+ cluster: HubAddressSnapshotSchema,
32643
+ browser: HubAddressSnapshotSchema
32644
+ });
32645
+ /**
32646
+ * What an address is used for (`hub-address.ts`, D734). `appConnections` is
32647
+ * many-valued; `notificationTaps`, `publicEndpoint` and `internal` are carried
32648
+ * by at most one address.
32649
+ */
32650
+ var HubAddressRoleSchema = _enum(HUB_ADDRESS_ROLES);
32651
+ var RoleSourceSchema = _enum([
32652
+ "flagged",
32653
+ "auto",
32654
+ "none"
32655
+ ]);
32656
+ /** One single-valued role: the flagged address, the one in use, and why. */
32657
+ var HubAddressRoleResolutionSchema = object({
32658
+ /** The address carrying the flag, or null = automatic. */
32659
+ flagged: string().nullable(),
32660
+ /** The address in use, or null when nothing qualifies (never loopback). */
32661
+ resolved: string().nullable(),
32662
+ source: RoleSourceSchema
32663
+ });
32664
+ var HubAppConnectionsResolutionSchema = object({
32665
+ /** The addresses flagged `appConnections`, or empty = automatic. */
32666
+ flagged: array(string()).readonly(),
32667
+ /** What the apps race right now. */
32668
+ resolved: array(string()).readonly(),
32669
+ source: RoleSourceSchema
32670
+ });
32671
+ var HubAddressBookSchema = object({
32672
+ rows: array(ConnectionEndpointSchema.extend({
32673
+ /** In the hub's detected palette right now. */
32674
+ detected: boolean(),
32675
+ /** Entered by the operator (removable). */
32676
+ custom: boolean(),
32677
+ /** The roles explicitly flagged on this address. */
32678
+ flags: array(HubAddressRoleSchema).readonly(),
32679
+ /** The roles this address serves right now — flagged or automatic. */
32680
+ inUse: array(HubAddressRoleSchema).readonly(),
32681
+ /** The roles this address may be flagged with. */
32682
+ eligible: array(HubAddressRoleSchema).readonly()
32683
+ })).readonly(),
32684
+ roles: object({
32685
+ appConnections: HubAppConnectionsResolutionSchema,
32686
+ notificationTaps: HubAddressRoleResolutionSchema,
32687
+ internal: HubAddressRoleResolutionSchema,
32688
+ publicEndpoint: HubAddressRoleResolutionSchema
32689
+ }),
32690
+ /** The `hub=` an app link carries (D709), or null. */
32691
+ appLinkHub: string().nullable()
32692
+ });
32205
32693
  var AllowedAddressesSchema = object({
32206
32694
  /**
32207
32695
  * Allowlist of interface addresses operators have explicitly opted
@@ -32245,10 +32733,27 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
32245
32733
  * tunnel always emits `https://` regardless. */
32246
32734
  scheme: _enum(["http", "https"]).optional(),
32247
32735
  /** Append the CamStack app link entry (`kind: 'app-link'`, D709) —
32248
- * an address notification links can be flagged with, not a hub
32736
+ * an address notification taps can be flagged with, not a hub
32249
32737
  * route. Default `false`: racers and rankers never see it. */
32250
32738
  includeAppLink: boolean().optional()
32251
- }), 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, {
32739
+ }), 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({
32740
+ baseUrl: string(),
32741
+ label: string().max(80)
32742
+ }), HubAddressBookSchema, {
32743
+ kind: "mutation",
32744
+ auth: "admin"
32745
+ }), method(object({ baseUrl: string() }), HubAddressBookSchema, {
32746
+ kind: "mutation",
32747
+ auth: "admin"
32748
+ }), method(object({
32749
+ role: HubAddressRoleSchema,
32750
+ baseUrl: string().nullable(),
32751
+ enabled: boolean(),
32752
+ acceptInsecureHttp: boolean().optional()
32753
+ }), HubAddressBookSchema, {
32754
+ kind: "mutation",
32755
+ auth: "admin"
32756
+ }), 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, {
32252
32757
  kind: "mutation",
32253
32758
  auth: "admin"
32254
32759
  }), method(object({
@@ -32706,7 +33211,8 @@ var MotionStatusSchema = object({
32706
33211
  * writes this slice (not even a boot seed), and neither does the runner's
32707
33212
  * phase machine: its phase is "a session is attached" for every on-motion
32708
33213
  * session, not motion, and it now has its own `DetectionPhaseTransition`.
32709
- * A provider's `isDetected` answers from the hub's slice.
33214
+ * A provider's `isDetected` and `getStatus` answer from the hub's slice
33215
+ * (`hubMotionNativeProvider`).
32710
33216
  * - **Sensors** (Home Assistant binary sensors, Homematic, Matter, Alexa
32711
33217
  * imports) — the provider pushes both edges itself, from the upstream
32712
33218
  * system's own state change. That is the sensor's own fact.
@@ -39253,6 +39759,16 @@ var zoneRulesCapability = {
39253
39759
  durability: "restored"
39254
39760
  };
39255
39761
  SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
39762
+ Object.freeze({
39763
+ person: .5,
39764
+ vehicle: .5,
39765
+ animal: .5
39766
+ });
39767
+ Object.freeze({
39768
+ person: .65,
39769
+ vehicle: .65,
39770
+ animal: .65
39771
+ });
39256
39772
  /**
39257
39773
  * Accessory device helpers — shared across drivers.
39258
39774
  *
@@ -40951,6 +41467,12 @@ Object.freeze({
40951
41467
  addonId: null,
40952
41468
  access: "view"
40953
41469
  },
41470
+ "addons.listInstallations": {
41471
+ capName: "addons",
41472
+ capScope: "system",
41473
+ addonId: null,
41474
+ access: "view"
41475
+ },
40954
41476
  "addons.listJobs": {
40955
41477
  capName: "addons",
40956
41478
  capScope: "system",
@@ -42133,90 +42655,18 @@ Object.freeze({
42133
42655
  addonId: null,
42134
42656
  access: "create"
42135
42657
  },
42136
- "decoder.createSession": {
42137
- capName: "decoder",
42138
- capScope: "system",
42139
- addonId: null,
42140
- access: "view"
42141
- },
42142
- "decoder.destroySession": {
42143
- capName: "decoder",
42144
- capScope: "system",
42145
- addonId: null,
42146
- access: "delete"
42147
- },
42148
- "decoder.getFrame": {
42149
- capName: "decoder",
42150
- capScope: "system",
42151
- addonId: null,
42152
- access: "view"
42153
- },
42154
42658
  "decoder.getInfo": {
42155
42659
  capName: "decoder",
42156
42660
  capScope: "system",
42157
42661
  addonId: null,
42158
42662
  access: "view"
42159
42663
  },
42160
- "decoder.getShmStats": {
42161
- capName: "decoder",
42162
- capScope: "system",
42163
- addonId: null,
42164
- access: "view"
42165
- },
42166
- "decoder.getStats": {
42167
- capName: "decoder",
42168
- capScope: "system",
42169
- addonId: null,
42170
- access: "view"
42171
- },
42172
- "decoder.listActiveSessions": {
42173
- capName: "decoder",
42174
- capScope: "system",
42175
- addonId: null,
42176
- access: "view"
42177
- },
42178
- "decoder.openStream": {
42179
- capName: "decoder",
42180
- capScope: "system",
42181
- addonId: null,
42182
- access: "view"
42183
- },
42184
- "decoder.pullFrames": {
42185
- capName: "decoder",
42186
- capScope: "system",
42187
- addonId: null,
42188
- access: "view"
42189
- },
42190
- "decoder.pullHandles": {
42191
- capName: "decoder",
42192
- capScope: "system",
42193
- addonId: null,
42194
- access: "view"
42195
- },
42196
- "decoder.pushPacket": {
42197
- capName: "decoder",
42198
- capScope: "system",
42199
- addonId: null,
42200
- access: "view"
42201
- },
42202
42664
  "decoder.reprobeHwaccel": {
42203
42665
  capName: "decoder",
42204
42666
  capScope: "system",
42205
42667
  addonId: null,
42206
42668
  access: "create"
42207
42669
  },
42208
- "decoder.supportsCodec": {
42209
- capName: "decoder",
42210
- capScope: "system",
42211
- addonId: null,
42212
- access: "view"
42213
- },
42214
- "decoder.updateConfig": {
42215
- capName: "decoder",
42216
- capScope: "system",
42217
- addonId: null,
42218
- access: "view"
42219
- },
42220
42670
  "detectionPipeline.applyDeviceSettingsPatch": {
42221
42671
  capName: "detection-pipeline",
42222
42672
  capScope: "device",
@@ -43705,12 +44155,24 @@ Object.freeze({
43705
44155
  addonId: null,
43706
44156
  access: "view"
43707
44157
  },
44158
+ "localNetwork.addCustomAddress": {
44159
+ capName: "local-network",
44160
+ capScope: "system",
44161
+ addonId: null,
44162
+ access: "create"
44163
+ },
43708
44164
  "localNetwork.downloadCa": {
43709
44165
  capName: "local-network",
43710
44166
  capScope: "system",
43711
44167
  addonId: null,
43712
44168
  access: "view"
43713
44169
  },
44170
+ "localNetwork.getAddresses": {
44171
+ capName: "local-network",
44172
+ capScope: "system",
44173
+ addonId: null,
44174
+ access: "view"
44175
+ },
43714
44176
  "localNetwork.getAllowedAddresses": {
43715
44177
  capName: "local-network",
43716
44178
  capScope: "system",
@@ -43723,6 +44185,12 @@ Object.freeze({
43723
44185
  addonId: null,
43724
44186
  access: "view"
43725
44187
  },
44188
+ "localNetwork.getHubAddresses": {
44189
+ capName: "local-network",
44190
+ capScope: "system",
44191
+ addonId: null,
44192
+ access: "view"
44193
+ },
43726
44194
  "localNetwork.getNotificationEndpoint": {
43727
44195
  capName: "local-network",
43728
44196
  capScope: "system",
@@ -43759,6 +44227,12 @@ Object.freeze({
43759
44227
  addonId: null,
43760
44228
  access: "create"
43761
44229
  },
44230
+ "localNetwork.removeCustomAddress": {
44231
+ capName: "local-network",
44232
+ capScope: "system",
44233
+ addonId: null,
44234
+ access: "delete"
44235
+ },
43762
44236
  "localNetwork.resetAllowlistToBestMatch": {
43763
44237
  capName: "local-network",
43764
44238
  capScope: "system",
@@ -43771,6 +44245,12 @@ Object.freeze({
43771
44245
  addonId: null,
43772
44246
  access: "create"
43773
44247
  },
44248
+ "localNetwork.setAddressRole": {
44249
+ capName: "local-network",
44250
+ capScope: "system",
44251
+ addonId: null,
44252
+ access: "create"
44253
+ },
43774
44254
  "localNetwork.setAllowedAddresses": {
43775
44255
  capName: "local-network",
43776
44256
  capScope: "system",
@@ -45265,13 +45745,13 @@ Object.freeze({
45265
45745
  addonId: null,
45266
45746
  access: "delete"
45267
45747
  },
45268
- "pipelineExecutor.deleteModel": {
45748
+ "pipelineExecutor.clearModelBoundDeviceOverrides": {
45269
45749
  capName: "pipeline-executor",
45270
45750
  capScope: "system",
45271
45751
  addonId: null,
45272
45752
  access: "delete"
45273
45753
  },
45274
- "pipelineExecutor.deleteTemplate": {
45754
+ "pipelineExecutor.deleteModel": {
45275
45755
  capName: "pipeline-executor",
45276
45756
  capScope: "system",
45277
45757
  addonId: null,
@@ -45415,12 +45895,6 @@ Object.freeze({
45415
45895
  addonId: null,
45416
45896
  access: "view"
45417
45897
  },
45418
- "pipelineExecutor.listTemplates": {
45419
- capName: "pipeline-executor",
45420
- capScope: "system",
45421
- addonId: null,
45422
- access: "view"
45423
- },
45424
45898
  "pipelineExecutor.rearmInferenceDevice": {
45425
45899
  capName: "pipeline-executor",
45426
45900
  capScope: "system",
@@ -45445,12 +45919,6 @@ Object.freeze({
45445
45919
  addonId: null,
45446
45920
  access: "create"
45447
45921
  },
45448
- "pipelineExecutor.saveTemplate": {
45449
- capName: "pipeline-executor",
45450
- capScope: "system",
45451
- addonId: null,
45452
- access: "create"
45453
- },
45454
45922
  "pipelineExecutor.setVideoPipelineSteps": {
45455
45923
  capName: "pipeline-executor",
45456
45924
  capScope: "system",
@@ -45469,41 +45937,35 @@ Object.freeze({
45469
45937
  addonId: null,
45470
45938
  access: "create"
45471
45939
  },
45472
- "pipelineExecutor.updateTemplate": {
45473
- capName: "pipeline-executor",
45474
- capScope: "system",
45475
- addonId: null,
45476
- access: "create"
45477
- },
45478
45940
  "pipelineExecutor.validatePipeline": {
45479
45941
  capName: "pipeline-executor",
45480
45942
  capScope: "system",
45481
45943
  addonId: null,
45482
45944
  access: "view"
45483
45945
  },
45484
- "pipelineOrchestrator.applyDeviceSettingsPatch": {
45946
+ "pipelineOrchestrator.applyAutoTune": {
45485
45947
  capName: "pipeline-orchestrator",
45486
45948
  capScope: "system",
45487
45949
  addonId: null,
45488
45950
  access: "create"
45489
45951
  },
45490
- "pipelineOrchestrator.assignAudio": {
45952
+ "pipelineOrchestrator.applyDeviceSettingsPatch": {
45491
45953
  capName: "pipeline-orchestrator",
45492
45954
  capScope: "system",
45493
45955
  addonId: null,
45494
45956
  access: "create"
45495
45957
  },
45496
- "pipelineOrchestrator.assignPipeline": {
45958
+ "pipelineOrchestrator.assignAudio": {
45497
45959
  capName: "pipeline-orchestrator",
45498
45960
  capScope: "system",
45499
45961
  addonId: null,
45500
45962
  access: "create"
45501
45963
  },
45502
- "pipelineOrchestrator.deleteTemplate": {
45964
+ "pipelineOrchestrator.assignPipeline": {
45503
45965
  capName: "pipeline-orchestrator",
45504
45966
  capScope: "system",
45505
45967
  addonId: null,
45506
- access: "delete"
45968
+ access: "create"
45507
45969
  },
45508
45970
  "pipelineOrchestrator.getAgentLoad": {
45509
45971
  capName: "pipeline-orchestrator",
@@ -45595,6 +46057,12 @@ Object.freeze({
45595
46057
  addonId: null,
45596
46058
  access: "view"
45597
46059
  },
46060
+ "pipelineOrchestrator.getEffectiveShares": {
46061
+ capName: "pipeline-orchestrator",
46062
+ capScope: "system",
46063
+ addonId: null,
46064
+ access: "view"
46065
+ },
45598
46066
  "pipelineOrchestrator.getGlobalMetrics": {
45599
46067
  capName: "pipeline-orchestrator",
45600
46068
  capScope: "system",
@@ -45631,19 +46099,19 @@ Object.freeze({
45631
46099
  addonId: null,
45632
46100
  access: "view"
45633
46101
  },
45634
- "pipelineOrchestrator.getReconcileFromDiskStatus": {
46102
+ "pipelineOrchestrator.getPlacementStats": {
45635
46103
  capName: "pipeline-orchestrator",
45636
46104
  capScope: "system",
45637
46105
  addonId: null,
45638
46106
  access: "view"
45639
46107
  },
45640
- "pipelineOrchestrator.listAgentSettings": {
46108
+ "pipelineOrchestrator.getReconcileFromDiskStatus": {
45641
46109
  capName: "pipeline-orchestrator",
45642
46110
  capScope: "system",
45643
46111
  addonId: null,
45644
46112
  access: "view"
45645
46113
  },
45646
- "pipelineOrchestrator.listTemplates": {
46114
+ "pipelineOrchestrator.listAgentSettings": {
45647
46115
  capName: "pipeline-orchestrator",
45648
46116
  capScope: "system",
45649
46117
  addonId: null,
@@ -45655,6 +46123,12 @@ Object.freeze({
45655
46123
  addonId: null,
45656
46124
  access: "create"
45657
46125
  },
46126
+ "pipelineOrchestrator.planAutoTune": {
46127
+ capName: "pipeline-orchestrator",
46128
+ capScope: "system",
46129
+ addonId: null,
46130
+ access: "view"
46131
+ },
45658
46132
  "pipelineOrchestrator.rebalance": {
45659
46133
  capName: "pipeline-orchestrator",
45660
46134
  capScope: "system",
@@ -45697,12 +46171,6 @@ Object.freeze({
45697
46171
  addonId: null,
45698
46172
  access: "create"
45699
46173
  },
45700
- "pipelineOrchestrator.saveTemplate": {
45701
- capName: "pipeline-orchestrator",
45702
- capScope: "system",
45703
- addonId: null,
45704
- access: "create"
45705
- },
45706
46174
  "pipelineOrchestrator.setAgentCapabilities": {
45707
46175
  capName: "pipeline-orchestrator",
45708
46176
  capScope: "system",
@@ -45715,12 +46183,6 @@ Object.freeze({
45715
46183
  addonId: null,
45716
46184
  access: "create"
45717
46185
  },
45718
- "pipelineOrchestrator.setAgentDetectWeight": {
45719
- capName: "pipeline-orchestrator",
45720
- capScope: "system",
45721
- addonId: null,
45722
- access: "create"
45723
- },
45724
46186
  "pipelineOrchestrator.setAgentInferenceDevices": {
45725
46187
  capName: "pipeline-orchestrator",
45726
46188
  capScope: "system",
@@ -45757,6 +46219,12 @@ Object.freeze({
45757
46219
  addonId: null,
45758
46220
  access: "create"
45759
46221
  },
46222
+ "pipelineOrchestrator.setCameraStepSettings": {
46223
+ capName: "pipeline-orchestrator",
46224
+ capScope: "system",
46225
+ addonId: null,
46226
+ access: "create"
46227
+ },
45760
46228
  "pipelineOrchestrator.setCameraStepToggle": {
45761
46229
  capName: "pipeline-orchestrator",
45762
46230
  capScope: "system",
@@ -45775,25 +46243,37 @@ Object.freeze({
45775
46243
  addonId: null,
45776
46244
  access: "create"
45777
46245
  },
46246
+ "pipelineOrchestrator.setLoadBalancingShares": {
46247
+ capName: "pipeline-orchestrator",
46248
+ capScope: "system",
46249
+ addonId: null,
46250
+ access: "create"
46251
+ },
45778
46252
  "pipelineOrchestrator.setPipelineDevicePin": {
45779
46253
  capName: "pipeline-orchestrator",
45780
46254
  capScope: "system",
45781
46255
  addonId: null,
45782
46256
  access: "create"
45783
46257
  },
45784
- "pipelineOrchestrator.unassignAudio": {
46258
+ "pipelineOrchestrator.setShareSource": {
45785
46259
  capName: "pipeline-orchestrator",
45786
46260
  capScope: "system",
45787
46261
  addonId: null,
45788
46262
  access: "create"
45789
46263
  },
45790
- "pipelineOrchestrator.unassignPipeline": {
46264
+ "pipelineOrchestrator.suggestShares": {
46265
+ capName: "pipeline-orchestrator",
46266
+ capScope: "system",
46267
+ addonId: null,
46268
+ access: "view"
46269
+ },
46270
+ "pipelineOrchestrator.unassignAudio": {
45791
46271
  capName: "pipeline-orchestrator",
45792
46272
  capScope: "system",
45793
46273
  addonId: null,
45794
46274
  access: "create"
45795
46275
  },
45796
- "pipelineOrchestrator.updateTemplate": {
46276
+ "pipelineOrchestrator.unassignPipeline": {
45797
46277
  capName: "pipeline-orchestrator",
45798
46278
  capScope: "system",
45799
46279
  addonId: null,
@@ -47233,12 +47713,6 @@ Object.freeze({
47233
47713
  addonId: null,
47234
47714
  access: "view"
47235
47715
  },
47236
- "streamBroker.pullFrameHandles": {
47237
- capName: "stream-broker",
47238
- capScope: "system",
47239
- addonId: null,
47240
- access: "view"
47241
- },
47242
47716
  "streamBroker.regenerateRtspToken": {
47243
47717
  capName: "stream-broker",
47244
47718
  capScope: "system",
@@ -47305,12 +47779,6 @@ Object.freeze({
47305
47779
  addonId: null,
47306
47780
  access: "create"
47307
47781
  },
47308
- "streamBroker.subscribeFrames": {
47309
- capName: "stream-broker",
47310
- capScope: "system",
47311
- addonId: null,
47312
- access: "create"
47313
- },
47314
47782
  "streamBroker.unassignProfile": {
47315
47783
  capName: "stream-broker",
47316
47784
  capScope: "system",
@@ -47323,12 +47791,6 @@ Object.freeze({
47323
47791
  addonId: null,
47324
47792
  access: "create"
47325
47793
  },
47326
- "streamBroker.unsubscribeFrames": {
47327
- capName: "stream-broker",
47328
- capScope: "system",
47329
- addonId: null,
47330
- access: "create"
47331
- },
47332
47794
  "streamCatalog.getCatalog": {
47333
47795
  capName: "stream-catalog",
47334
47796
  capScope: "device",
@@ -48025,6 +48487,12 @@ Object.freeze({
48025
48487
  addonId: null,
48026
48488
  access: "create"
48027
48489
  },
48490
+ "webrtcSession.applyDownlinkProbe": {
48491
+ capName: "webrtc-session",
48492
+ capScope: "device",
48493
+ addonId: null,
48494
+ access: "create"
48495
+ },
48028
48496
  "webrtcSession.closeSession": {
48029
48497
  capName: "webrtc-session",
48030
48498
  capScope: "device",
@@ -49836,11 +50304,6 @@ Object.freeze({
49836
50304
  form: "single",
49837
50305
  optional: false
49838
50306
  }],
49839
- "decoder.createSession": [{
49840
- name: "deviceId",
49841
- form: "single",
49842
- optional: true
49843
- }],
49844
50307
  "detectionPipeline.applyDeviceSettingsPatch": [{
49845
50308
  name: "deviceId",
49846
50309
  form: "single",
@@ -51071,6 +51534,11 @@ Object.freeze({
51071
51534
  form: "single",
51072
51535
  optional: false
51073
51536
  }],
51537
+ "pipelineExecutor.clearModelBoundDeviceOverrides": [{
51538
+ name: "deviceIds",
51539
+ form: "array",
51540
+ optional: true
51541
+ }],
51074
51542
  "pipelineExecutor.runPipeline": [{
51075
51543
  name: "deviceId",
51076
51544
  form: "single",
@@ -51176,6 +51644,11 @@ Object.freeze({
51176
51644
  form: "single",
51177
51645
  optional: false
51178
51646
  }],
51647
+ "pipelineOrchestrator.setCameraStepSettings": [{
51648
+ name: "deviceId",
51649
+ form: "single",
51650
+ optional: false
51651
+ }],
51179
51652
  "pipelineOrchestrator.setCameraStepToggle": [{
51180
51653
  name: "deviceId",
51181
51654
  form: "single",
@@ -51947,6 +52420,11 @@ Object.freeze({
51947
52420
  form: "single",
51948
52421
  optional: false
51949
52422
  }],
52423
+ "webrtcSession.applyDownlinkProbe": [{
52424
+ name: "deviceId",
52425
+ form: "single",
52426
+ optional: false
52427
+ }],
51950
52428
  "webrtcSession.closeSession": [{
51951
52429
  name: "deviceId",
51952
52430
  form: "single",
@@ -52176,6 +52654,8 @@ new Map(Object.entries({
52176
52654
  "detection-blind": "device-events",
52177
52655
  "node-online": "system",
52178
52656
  "node-offline": "system",
52657
+ "node-restarting": "system",
52658
+ "node-updating": "system",
52179
52659
  "node-inference-unavailable": "system",
52180
52660
  "addon-crash-loop": "system",
52181
52661
  "addon-update-available": "system",
@@ -52253,6 +52733,7 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
52253
52733
  kinds: [
52254
52734
  "node-offline",
52255
52735
  "node-online",
52736
+ "node-restarting",
52256
52737
  "node-inference-unavailable"
52257
52738
  ]
52258
52739
  },
@@ -52274,6 +52755,7 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
52274
52755
  label: "Server & container updates",
52275
52756
  kinds: [
52276
52757
  "server-update-available",
52758
+ "node-updating",
52277
52759
  "server-updated",
52278
52760
  "wrapper-update-available"
52279
52761
  ]
@@ -52421,6 +52903,7 @@ var STATE_SUMMARY_SECTION_VARS = [
52421
52903
  kinds: [
52422
52904
  "node-offline",
52423
52905
  "node-online",
52906
+ "node-restarting",
52424
52907
  "node-inference-unavailable"
52425
52908
  ]
52426
52909
  },
@@ -52442,6 +52925,7 @@ var STATE_SUMMARY_SECTION_VARS = [
52442
52925
  example: "server 1.2.377 → 1.2.378",
52443
52926
  kinds: [
52444
52927
  "server-update-available",
52928
+ "node-updating",
52445
52929
  "server-updated",
52446
52930
  "wrapper-update-available"
52447
52931
  ]
@@ -52474,7 +52958,7 @@ var STATE_SUMMARY_VARS = [
52474
52958
  {
52475
52959
  name: "summarySection",
52476
52960
  label: "Summary: this section",
52477
- description: "The section a per-section summary row is about (D698); on a summary sent as one message, every section it reports, comma-separated.",
52961
+ description: "The section a per-section summary row is about; on a summary sent as one message, every section it reports, comma-separated.",
52478
52962
  example: "Batterie scariche",
52479
52963
  group: "system",
52480
52964
  families: ["rule"],