@camstack/addon-provider-rtsp 1.2.121 → 1.2.122

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/addon.js +1148 -471
  2. package/dist/addon.mjs +1148 -471
  3. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -23,7 +23,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
23
23
  //#endregion
24
24
  let node_net = require("node:net");
25
25
  node_net = __toESM(node_net);
26
- //#region ../types/dist/event-category-BGmz_oxW.mjs
26
+ //#region ../types/dist/event-category-B_0XEcLF.mjs
27
27
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
28
28
  EventCategory["SystemBoot"] = "system.boot";
29
29
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -524,15 +524,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
524
524
  EventCategory["AgentWsDisconnected"] = "agent.ws.disconnected";
525
525
  EventCategory["AgentBackupActivated"] = "agent.backup.activated";
526
526
  EventCategory["OrchestrationSettingsUpdated"] = "orchestration.settings-updated";
527
- /**
528
- * Per-agent hwaccel preference changed (user override set, cleared, or
529
- * re-probed). Observability event — decoders pull the current pref at
530
- * `createSession`, so running sessions keep their current backend until
531
- * they rotate naturally (camera add/remove, stream restart). Future
532
- * work can wire a listener in stream-broker that force-rotates live
533
- * sessions; for now this event powers logs + admin-UI toast feedback.
534
- */
535
- EventCategory["PipelineAgentHwaccelChanged"] = "pipeline.agent-hwaccel-changed";
536
527
  EventCategory["MotionAnalysis"] = "detection.motion-analysis";
537
528
  /** All raw motion zones from CCL before minArea filter — for UI debug overlay. */
538
529
  EventCategory["MotionZonesRaw"] = "detection.motion-zones-raw";
@@ -5403,7 +5394,7 @@ var ZodIssueCode = {
5403
5394
  var ZodFirstPartyTypeKind;
5404
5395
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5405
5396
  //#endregion
5406
- //#region ../types/dist/sleep-DXKLNFvA.mjs
5397
+ //#region ../types/dist/sleep-B0JG7-_F.mjs
5407
5398
  /**
5408
5399
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5409
5400
  * window to float samples (D455).
@@ -6769,32 +6760,12 @@ object({
6769
6760
  audioCodec: string().optional(),
6770
6761
  metadata: record(string(), unknown()).readonly().optional()
6771
6762
  });
6772
- var EncodedPacketSchema = object({
6773
- type: _enum(["video", "audio"]),
6774
- data: _instanceof(Uint8Array),
6775
- pts: number(),
6776
- dts: number(),
6777
- keyframe: boolean(),
6778
- codec: string()
6779
- });
6780
- var DecodedFrameSchema = object({
6781
- data: _instanceof(Uint8Array),
6782
- width: number(),
6783
- height: number(),
6784
- format: _enum([
6785
- "jpeg",
6786
- "rgb",
6787
- "bgr",
6788
- "yuv420",
6789
- "gray"
6790
- ]),
6791
- timestamp: number()
6792
- });
6793
6763
  /**
6794
6764
  * Wire schema for `FrameHandle` — a zero-pixel, serialisable reference to a
6795
6765
  * frame in a shared-memory ring (Phase 5 / D9). Mirrors the `FrameHandle` TS
6796
- * interface in `interfaces/frame-handle.ts` field-for-field so a decoder cap
6797
- * method (`pullHandles`) can carry handles over tRPC / Moleculer.
6766
+ * interface in `interfaces/frame-handle.ts` field-for-field so a cap method
6767
+ * (the runner's native-crop and pipeline-executor inputs) can carry handles
6768
+ * over tRPC / Moleculer.
6798
6769
  *
6799
6770
  * The `satisfies` assertion below pins this schema to the interface: if a
6800
6771
  * field is added to / removed from `FrameHandle` without a matching schema
@@ -6820,50 +6791,6 @@ var FrameHandleSchema = object({
6820
6791
  slotCount: number().int().positive()
6821
6792
  });
6822
6793
  /**
6823
- * Pixel format a frame-handle subscriber can request from the broker
6824
- * (Phase 5 / D9). The packed, raster subset of `FrameFormat` — the formats a
6825
- * `frameSink: 'shm'` decoder session can write into a `FrameRing` slot.
6826
- * `jpeg` is excluded: a variable-length stream is not a fixed-stride ring
6827
- * payload, and no decoded-frame consumer requests it over the shm plane.
6828
- */
6829
- var FrameHandleFormatSchema = _enum([
6830
- "rgb",
6831
- "bgr",
6832
- "yuv420",
6833
- "gray"
6834
- ]);
6835
- /**
6836
- * Input for `stream-broker.subscribeFrames` (Phase 5 / D9). A consumer asks the
6837
- * broker for a `FrameHandle` stream of one `format`; the broker maintains one
6838
- * shared-memory ring per `(brokerId, format)` actually requested, so a `gray`
6839
- * subscriber (motion) and an `rgb` subscriber (detection) each read the format
6840
- * they asked for with no broker-side conversion.
6841
- */
6842
- var SubscribeFramesInputSchema = object({
6843
- brokerId: string(),
6844
- format: FrameHandleFormatSchema,
6845
- /**
6846
- * Optional reader-side cadence hint in frames per second. The broker does
6847
- * NOT throttle — latest-wins ring reads drop frames implicitly for a slow
6848
- * consumer. The value is echoed back in `SubscribeFramesResult.maxFps` so
6849
- * the consumer can pace its own `pullFrameHandles` polling.
6850
- */
6851
- maxFps: number().positive().optional(),
6852
- /** Short caller-identity tag (`motion`, `detection`, …) for diagnostics. */
6853
- tag: string().optional()
6854
- });
6855
- /**
6856
- * Result of `stream-broker.subscribeFrames`. The consumer then polls
6857
- * `pullFrameHandles({ subscriptionId, maxCount })` and feeds each returned
6858
- * `FrameHandle` to a `FrameRingReader`.
6859
- */
6860
- var SubscribeFramesResultSchema = object({
6861
- /** Opaque id the consumer passes to `pullFrameHandles` / `unsubscribeFrames`. */
6862
- subscriptionId: string(),
6863
- /** Reader-side cadence hint (frames/s) — echoes `SubscribeFramesInput.maxFps`. */
6864
- maxFps: number().nonnegative()
6865
- });
6866
- /**
6867
6794
  * Wire schema for a decoded audio chunk (Phase 5 / D9). Mirrors the
6868
6795
  * `DecodedAudioChunk` TS interface in `interfaces/stream-broker.ts`: PCM
6869
6796
  * sample bytes plus the track parameters a consumer needs to interpret them.
@@ -6871,8 +6798,8 @@ var SubscribeFramesResultSchema = object({
6871
6798
  * Audio chunks are tiny (a ~500ms AudioCodecSession window is a few KB of
6872
6799
  * Float32 PCM), so unlike video frames they ship their bytes INLINE over
6873
6800
  * tRPC / Moleculer — no shared-memory plane. `data` is typed `Uint8Array`
6874
- * (the wire-serialisable supertype of `Buffer`) to match `DecodedFrameSchema`
6875
- * / `EncodedPacketSchema`'s precedent; a `Buffer` is assignable to it.
6801
+ * (the wire-serialisable supertype of `Buffer`); a `Buffer` is assignable to
6802
+ * it.
6876
6803
  */
6877
6804
  var AudioChunkFormatSchema = _enum(AUDIO_CHUNK_FORMATS);
6878
6805
  var DecodedAudioChunkSchema = object({
@@ -6890,11 +6817,10 @@ var DecodedAudioChunkSchema = object({
6890
6817
  format: AudioChunkFormatSchema.optional()
6891
6818
  });
6892
6819
  /**
6893
- * Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9). The
6894
- * handle-free, ship-bytes-inline analogue of `subscribeFrames`: a consumer
6895
- * asks the broker for the decoded audio-chunk stream of one broker; the
6896
- * broker keeps a per-subscription bounded FIFO queue the consumer drains via
6897
- * `pullAudioChunks`.
6820
+ * Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9). Audio ships
6821
+ * its bytes inline: a consumer asks the broker for the decoded audio-chunk
6822
+ * stream of one broker; the broker keeps a per-subscription bounded FIFO queue
6823
+ * the consumer drains via `pullAudioChunks`.
6898
6824
  */
6899
6825
  var SubscribeAudioChunksInputSchema = object({
6900
6826
  brokerId: string(),
@@ -6925,9 +6851,7 @@ var BrokerStatsSchema = object({
6925
6851
  "stopped"
6926
6852
  ]),
6927
6853
  inputFps: number(),
6928
- decodeFps: number(),
6929
6854
  encodedSubscribers: number(),
6930
- decodedSubscribers: number(),
6931
6855
  uptimeMs: number(),
6932
6856
  bitrateKbps: number(),
6933
6857
  idrIntervalMs: number(),
@@ -6940,14 +6864,6 @@ var BrokerStatsSchema = object({
6940
6864
  preBufferMs: number(),
6941
6865
  preBufferPackets: number(),
6942
6866
  /**
6943
- * Moleculer node id of the decoder provider currently servicing this
6944
- * stream's decoded subscribers. `null` until the deferred decoder is
6945
- * created (no decoded clients yet, or codec not detected). Surfaces the
6946
- * runtime decoder placement so the UI can show "Decoder: <agent>" without
6947
- * a separate cap call per broker.
6948
- */
6949
- decoderNodeId: string().nullable(),
6950
- /**
6951
6867
  * Detected audio track parameters from the RTSP DESCRIBE / SDP. `null`
6952
6868
  * when the stream has no audio track or the broker is in cold start.
6953
6869
  * `supported = false` means the codec was detected but the local
@@ -10315,70 +10231,6 @@ var StorageLocationDeclarationSchema = object({
10315
10231
  "backup"
10316
10232
  ]).optional()
10317
10233
  });
10318
- var DecoderStatsSchema = object({
10319
- inputFps: number(),
10320
- outputFps: number(),
10321
- avgDecodeTimeMs: number(),
10322
- droppedFrames: number(),
10323
- /**
10324
- * Pull-mode adaptive-fps telemetry (optional — only pull sessions run the
10325
- * lag-driven controller; push sessions omit these). `lagMs` is the EWMA of
10326
- * the decoder's real-time drift (rising = falling behind live); `adaptiveFps`
10327
- * is the current lag-throttled emit rate (≤ `effectiveFps` ceiling).
10328
- */
10329
- lagMs: number().optional(),
10330
- effectiveFps: number().optional(),
10331
- adaptiveFps: number().optional()
10332
- });
10333
- var DecoderSessionConfigSchema = object({
10334
- codec: string(),
10335
- maxFps: number().default(0),
10336
- outputFormat: _enum([
10337
- "jpeg",
10338
- "rgb",
10339
- "bgr",
10340
- "yuv420",
10341
- "gray"
10342
- ]).default("jpeg"),
10343
- scale: number().default(1),
10344
- width: number().optional(),
10345
- height: number().optional(),
10346
- /**
10347
- * Identifier of the camera this decoder session serves. Optional
10348
- * because the cap is generic (any caller could request decode), but
10349
- * stream-broker passes it so decoder logs include `deviceId` for
10350
- * per-camera filtering when diagnosing failures (e.g. node-av
10351
- * sendPacket errors on a single hung camera).
10352
- */
10353
- deviceId: number().int().nonnegative().optional(),
10354
- /**
10355
- * Free-form tag for log scoping. Stream-broker uses
10356
- * `broker:<deviceId>/<profile>`. Decoder session logger surfaces it
10357
- * on every line so `grep tag=broker:5/high` filters one camera
10358
- * profile cleanly.
10359
- */
10360
- tag: string().optional(),
10361
- /**
10362
- * Where the session delivers decoded frames (Phase 5 / D9):
10363
- *
10364
- * - `'callback'` (default) — the legacy pixel path: decoded frames are
10365
- * buffered as `DecodedFrame`s and drained via `pullFrames`.
10366
- * - `'shm'` — the shared-memory frame plane: decoded frames are written
10367
- * into an OS shared-memory ring and drained as zero-pixel
10368
- * `FrameHandle`s via `pullHandles`. A session is one mode or the
10369
- * other — `pullFrames` returns nothing for an `'shm'` session and
10370
- * `pullHandles` returns nothing for a `'callback'` session.
10371
- */
10372
- frameSink: _enum(["callback", "shm"]).default("callback"),
10373
- /**
10374
- * Per-camera decoder DEBUG facility. When `true`, a pull-mode session emits
10375
- * a throttled (~1Hz) structured `decoder debug` line (effective/adaptive fps,
10376
- * real-time lag, dropped-frame delta, avg decode time, hwaccel). Mirrors the
10377
- * stream-broker's `streamingDebug` gate — off by default so production logs
10378
- * stay quiet and the emit path pays zero per-frame cost when disabled.
10379
- */
10380
- debug: boolean().optional()
10381
- });
10382
10234
  /**
10383
10235
  * Per-component log CHANNELS — the gate a hot path consults, and the registry
10384
10236
  * an addon declares its channels in.
@@ -10521,6 +10373,26 @@ var ClipSearchStrictnessSchema = _enum([
10521
10373
  "balanced",
10522
10374
  "strict"
10523
10375
  ]);
10376
+ /** Steps whose effect a root label can BE. */
10377
+ var LABEL_SUPPLY_STEP_IDS = [
10378
+ "animal-classifier",
10379
+ "vehicle-classifier",
10380
+ "package-detection"
10381
+ ];
10382
+ /** Steps whose box a root detection can BE. */
10383
+ var CROP_SUPPLY_STEP_IDS = ["plate-detection", "face-detection"];
10384
+ /**
10385
+ * Steps whose per-detection MASK a root detection can carry (D737). The live
10386
+ * mask step is `segmentation` — a frame-plane refiner that runs its own model
10387
+ * once per detection crop. (`instance-segmentation` is a dormant step id that
10388
+ * no camera tree carries.)
10389
+ */
10390
+ var MASK_SUPPLY_STEP_IDS = ["segmentation"];
10391
+ [
10392
+ ...LABEL_SUPPLY_STEP_IDS,
10393
+ ...CROP_SUPPLY_STEP_IDS,
10394
+ ...MASK_SUPPLY_STEP_IDS
10395
+ ];
10524
10396
  var MODEL_FORMATS = [
10525
10397
  "onnx",
10526
10398
  "coreml",
@@ -10549,7 +10421,53 @@ var ModelFormatEntrySchema = object({
10549
10421
  /** Multi-file payload (directory members or sibling files). */
10550
10422
  files: array(string()).readonly().optional(),
10551
10423
  /** Runtime(s) that can use this format. If omitted, inferred from ModelFormat key */
10552
- runtimes: array(_enum(["python"])).readonly().optional()
10424
+ runtimes: array(_enum(["python"])).readonly().optional(),
10425
+ /**
10426
+ * Content revision of the artefact, for one hosted OFF the CamStack mirror.
10427
+ * A format on the mirror leaves it unset: its revision (the sha256 of its
10428
+ * weight file) comes from the downloader's generated table, kept in step
10429
+ * with the mirror by `scripts/check-hosted-model-revisions.ts` (D744). A
10430
+ * node records the revision it downloaded next to the file
10431
+ * (`<file>.revision`); a copy with no record or a different one is stale
10432
+ * unless its weight file hashes to the revision, and a stale copy is
10433
+ * downloaded again, the old one serving until the new one is complete. No
10434
+ * revision at all ⇒ a file on disk is current, whatever it holds (D743).
10435
+ */
10436
+ revision: string().min(1).optional()
10437
+ });
10438
+ /**
10439
+ * What a node holds for one (model, format) (D746). `current` is a complete
10440
+ * copy at its catalog revision — exactly what `downloaded: true` means.
10441
+ * `stale` is bytes on disk that are not (yet) proven current under D743/D744:
10442
+ * no or a different revision record, or a missing sibling. `missing` is no
10443
+ * copy. `downloaded` alone folds `stale` into "not downloaded", which hid
10444
+ * reclaimable bytes and a copy about to be replaced.
10445
+ */
10446
+ var ModelOnDiskStateSchema = _enum([
10447
+ "current",
10448
+ "stale",
10449
+ "missing"
10450
+ ]);
10451
+ /**
10452
+ * The numeric precision of one format's BUILD (D746) — reported only when the
10453
+ * build states it (file-name token, an INT8 variant, an EdgeTPU compile, a
10454
+ * CamStack Core ML export). Absent means "not stated", never "fp32".
10455
+ */
10456
+ var ModelFormatPrecisionSchema = _enum([
10457
+ "fp32",
10458
+ "fp16",
10459
+ "int8"
10460
+ ]);
10461
+ /**
10462
+ * One format of one model as a node's `pipelineExecutor.getSchema` reports it.
10463
+ * `onDisk` / `precision` are optional for version skew: a runner that predates
10464
+ * them omits them, and a reader falls back to `downloaded`.
10465
+ */
10466
+ var PipelineModelFormatStatusSchema = object({
10467
+ downloaded: boolean(),
10468
+ sizeMB: number(),
10469
+ onDisk: ModelOnDiskStateSchema.optional(),
10470
+ precision: ModelFormatPrecisionSchema.optional()
10553
10471
  });
10554
10472
  /**
10555
10473
  * Extra file that must be downloaded alongside the model (e.g., labels JSON, dict.txt).
@@ -10653,6 +10571,46 @@ var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { wei
10653
10571
  /** True when the weights or their data forbid commercial use. */
10654
10572
  nonCommercial: boolean().optional()
10655
10573
  }));
10574
+ /**
10575
+ * One step a ROOT detector can supply from its own output (D730) — see
10576
+ * `ModelCatalogEntry.suppliesSteps`.
10577
+ *
10578
+ * - `label`: the root's raw class IS the step's answer. `labelToEffect` maps
10579
+ * the root's label to the step's vocabulary; `uncovered` is the vocabulary
10580
+ * the root cannot produce (shown as unavailable, never a blocker).
10581
+ * - `crop`: the root draws the box the step would have found (`license_plate`
10582
+ * for plate-detection, `face` for face-detection). The box becomes a detail
10583
+ * child of the `parentMacro` detection that contains it — never a track.
10584
+ * - `mask`: the root's decode emits an instance mask with every detection (a
10585
+ * YOLO26-seg root, D737) — the `segmentation` step's result, carried on the
10586
+ * detection in the shape that step produces. Derived from the model's
10587
+ * postprocessor on read, never stored by an import.
10588
+ */
10589
+ var RootStepSupplySchema = discriminatedUnion("kind", [
10590
+ object({
10591
+ kind: literal("label"),
10592
+ stepId: _enum(LABEL_SUPPLY_STEP_IDS),
10593
+ labelToEffect: record(string(), string()),
10594
+ uncovered: array(string()).readonly()
10595
+ }),
10596
+ object({
10597
+ kind: literal("crop"),
10598
+ stepId: _enum(CROP_SUPPLY_STEP_IDS),
10599
+ rootLabels: array(string()).readonly(),
10600
+ parentMacro: _enum(["vehicle", "person"]),
10601
+ childClass: _enum(["plate", "face"]),
10602
+ /**
10603
+ * The root's smaller input side, stamped on read by `rootSuppliesOf` from
10604
+ * the model entry — what a step's `minRootInputPx` gate judges. Never
10605
+ * stored by an import.
10606
+ */
10607
+ rootInputPx: number().int().positive().optional()
10608
+ }),
10609
+ object({
10610
+ kind: literal("mask"),
10611
+ stepId: _enum(MASK_SUPPLY_STEP_IDS)
10612
+ })
10613
+ ]);
10656
10614
  var ModelCatalogEntrySchema = object({
10657
10615
  id: string(),
10658
10616
  name: string(),
@@ -10718,6 +10676,35 @@ var ModelCatalogEntrySchema = object({
10718
10676
  */
10719
10677
  defaultConfidence: number().min(0).max(1).optional(),
10720
10678
  /**
10679
+ * Per-MODEL default of the per-class confidence floors (`minConfidence<Macro>`
10680
+ * on a detector step), keyed by macro class: `{ person: 0.45 }`. A class
10681
+ * absent here runs at the step slider's global default. The same row shape
10682
+ * the floor measurement produces (`model-floors.json`: modelId → floors), so
10683
+ * a measured table is copied in as-is. An operator override is bound to the
10684
+ * model it was made for and does not survive a model change (D738). A custom
10685
+ * / imported model may declare it; without it, the global defaults apply.
10686
+ */
10687
+ defaultClassFloors: record(string(), number().min(0).max(1)).optional(),
10688
+ /**
10689
+ * The inference precision this model's OpenVINO IR needs on an Intel GPU.
10690
+ * Absent ⇒ the device default (f16 on a GPU). Set to `'f32'` for an FP32 IR
10691
+ * that produces invalid output at f16 — measured 2026-10-07 for YOLO26
10692
+ * base IRs (`yolo26s`: 0 true / 146 false positives; `yolo26m*`: NaN
10693
+ * scores) on the Core Ultra iGPU and the N100. Threaded to the pool as
10694
+ * `PoolModelConfig.gpuInferencePrecision`; the pool sets
10695
+ * INFERENCE_PRECISION_HINT on a GPU only. Costs ~60% latency on the GPU.
10696
+ */
10697
+ gpuInferencePrecision: _enum(["f32", "f16"]).optional(),
10698
+ /**
10699
+ * ROOT detectors only: per supplied step (`animal-classifier`, …), the
10700
+ * minimum DETECTION score from which this root's own fine label (species,
10701
+ * vehicle type — D736 root supply) is taken (D741). Below it the detection
10702
+ * keeps its macro class without the fine label. `1` = never take it from
10703
+ * this root. Absent ⇒ no floor beyond the macro floor. The supplied step's
10704
+ * `minConfidence` slider, bound to the ROOT model, overrides it.
10705
+ */
10706
+ suppliedLabelFloors: record(string(), number().min(0).max(1)).optional(),
10707
+ /**
10721
10708
  * When true, the executor produces a landmark-aligned crop (similarity warp
10722
10709
  * onto the canonical template) before this step runs, instead of a plain
10723
10710
  * axis-aligned bbox crop. Required for face-recognition embedders (ArcFace):
@@ -10779,6 +10766,16 @@ var ModelCatalogEntrySchema = object({
10779
10766
  */
10780
10767
  classMap: DetectionCatalogClassMapSchema.optional(),
10781
10768
  /**
10769
+ * The pipeline steps this ROOT detector can supply from its own output
10770
+ * (D730): its labels name a step's effect (`deer` for `animal-classifier`)
10771
+ * or draw a step's box (`license_plate` for `plate-detection`). Computed at
10772
+ * import from THIS model's labelmap by `deriveRootSupplies`, never written
10773
+ * by hand and never assumed per family; a row without it is derived on read
10774
+ * (`rootSuppliesOf`). Whether a camera uses it is the step's own
10775
+ * `useRootModel` flag (`resolveRootSupply`).
10776
+ */
10777
+ suppliesSteps: array(RootStepSupplySchema).readonly().optional(),
10778
+ /**
10782
10779
  * The model's CLIP feature-space contract (text encoder, dimension, vector
10783
10780
  * index, token window, search floor) — see `clip-model.ts`. Present ONLY on a
10784
10781
  * CLIP image encoder; its absence is what "not a CLIP model" means to the
@@ -12380,13 +12377,6 @@ var BrokerRtspClientSchema = object({
12380
12377
  lastRtpAt: number(),
12381
12378
  bytesSent: number()
12382
12379
  });
12383
- var BrokerDecodedClientSchema = object({
12384
- tag: string(),
12385
- subscribedAt: number(),
12386
- maxFps: number(),
12387
- framesDelivered: number(),
12388
- framesDropped: number()
12389
- });
12390
12380
  var BrokerAudioClientSchema = object({
12391
12381
  tag: string(),
12392
12382
  subscribedAt: number(),
@@ -12478,7 +12468,6 @@ var BrokerEncodedClientSchema = object({
12478
12468
  });
12479
12469
  var BrokerClientsSchema = object({
12480
12470
  rtsp: array(BrokerRtspClientSchema).readonly(),
12481
- decoded: array(BrokerDecodedClientSchema).readonly(),
12482
12471
  audio: array(BrokerAudioClientSchema).readonly(),
12483
12472
  encoded: array(BrokerEncodedClientSchema).readonly(),
12484
12473
  pipeClients: number(),
@@ -12847,11 +12836,7 @@ method(object({
12847
12836
  auth: "admin"
12848
12837
  }), method(object({ brokerId: string() }), BrokerClientsSchema), method(object({
12849
12838
  brokerId: string(),
12850
- channel: _enum([
12851
- "rtsp",
12852
- "decoded",
12853
- "audio"
12854
- ]),
12839
+ channel: _enum(["rtsp", "audio"]),
12855
12840
  handle: string()
12856
12841
  }), object({ killed: boolean() }), {
12857
12842
  kind: "mutation",
@@ -12886,10 +12871,7 @@ method(object({
12886
12871
  }), method(SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, { kind: "mutation" }), method(object({
12887
12872
  subscriptionId: string(),
12888
12873
  maxCount: number().int().positive().default(8)
12889
- }), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(SubscribeFramesInputSchema, SubscribeFramesResultSchema, { kind: "mutation" }), method(object({
12890
- subscriptionId: string(),
12891
- maxCount: number().int().positive().default(4)
12892
- }), array(FrameHandleSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(object({
12874
+ }), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(object({
12893
12875
  brokerId: string(),
12894
12876
  seconds: number().min(0).max(30)
12895
12877
  }), _void(), {
@@ -14148,54 +14130,12 @@ id: union([string(), number()]) }), {
14148
14130
  kind: "mutation",
14149
14131
  auth: "admin"
14150
14132
  });
14151
- /**
14152
- * shm ring usage stats for a `frameSink: 'shm'` decoder session —
14153
- * exposed via `decoder.getShmStats` so downstream consumers can
14154
- * observe ring pressure (slot count, byte budget, hit/miss ratio).
14155
- */
14156
- var ShmRingStatsSchema = object({
14157
- sessionId: string(),
14158
- slotCount: number().int(),
14159
- slotByteLength: number().int(),
14160
- segmentBytes: number().int(),
14161
- budgetMb: number().int(),
14162
- framesWritten: number().int(),
14163
- getFrameHits: number().int(),
14164
- getFrameMisses: number().int()
14165
- });
14166
- method(object({ codec: string() }), boolean()), method(_void(), object({
14133
+ method(_void(), object({
14167
14134
  id: string(),
14168
14135
  name: string(),
14169
- isPullMode: boolean().optional(),
14170
- priority: number().optional(),
14171
14136
  hwaccel: string().optional(),
14172
14137
  probedBestHwaccel: string().optional()
14173
- })), method(DecoderSessionConfigSchema, object({
14174
- sessionId: string(),
14175
- nodeId: string()
14176
- })), method(object({ sessionId: string() }), _void()), method(object({
14177
- sessionId: string(),
14178
- packet: EncodedPacketSchema
14179
- }), _void()), method(object({
14180
- sessionId: string(),
14181
- url: string()
14182
- }), _void()), method(object({
14183
- sessionId: string(),
14184
- maxCount: number().default(1),
14185
- waitMs: number().optional()
14186
- }), array(DecodedFrameSchema)), method(object({
14187
- sessionId: string(),
14188
- maxCount: number().default(1),
14189
- waitMs: number().optional()
14190
- }), array(FrameHandleSchema)), method(object({ handle: FrameHandleSchema }), DecodedFrameSchema.nullable()), method(object({ sessionId: string() }), ShmRingStatsSchema.nullable()), method(object({
14191
- sessionId: string(),
14192
- config: DecoderSessionConfigSchema.partial()
14193
- }), _void()), method(object({ sessionId: string() }), DecoderStatsSchema), method(_void(), array(object({
14194
- sessionId: string(),
14195
- codec: string(),
14196
- outputFormat: string(),
14197
- createdAtMs: number()
14198
- })).readonly()), method(_void(), object({ backend: string() }), {
14138
+ })), method(_void(), object({ backend: string() }), {
14199
14139
  kind: "mutation",
14200
14140
  auth: "admin"
14201
14141
  });
@@ -15195,6 +15135,10 @@ var DeviceInfoSchema = object({
15195
15135
  isCamera: boolean(),
15196
15136
  /** Current config values — serializable snapshot */
15197
15137
  config: record(string(), unknown()),
15138
+ /** Paths inside `config` the device's schema declares secret (D783) —
15139
+ * what the non-admin redaction withholds. Paths, never values. Absent
15140
+ * when the owning runner has not reported them. */
15141
+ secretConfigPaths: array(string()).optional(),
15198
15142
  /** Hardware + identity blob (manufacturer / model / firmware / sn /
15199
15143
  * uid / mac / …). Populated by drivers; editable via setMetadata. */
15200
15144
  metadata: record(string(), unknown()).nullable().optional(),
@@ -15400,7 +15344,13 @@ var DeviceRegisterPayloadSchema = object({
15400
15344
  * call (workers re-register on init), so probe-driven updates
15401
15345
  * (e.g. PTZ flag flipping after the abilities probe) propagate. */
15402
15346
  features: array(string()).optional(),
15403
- config: record(string(), unknown())
15347
+ config: record(string(), unknown()),
15348
+ /** Config paths the device's own schema DECLARES secret
15349
+ * (`.meta({ secret: true })` — dotted, `[]` for array items, e.g.
15350
+ * `connection.password`). Re-published on every register; the non-admin
15351
+ * redaction withholds them at any depth (D783). Optional: an older runner
15352
+ * omits it and the keyword backstop applies. */
15353
+ secretConfigPaths: array(string()).optional()
15404
15354
  });
15405
15355
  var DeviceRemovePayloadSchema = object({ deviceId: number() });
15406
15356
  var DevicePersistConfigPayloadSchema = object({
@@ -16227,6 +16177,12 @@ method(_void(), array(string()).readonly(), { auth: "admin" }), method(object({
16227
16177
  kind: "mutation",
16228
16178
  auth: "admin"
16229
16179
  });
16180
+ var HUB_ADDRESS_ROLES = [
16181
+ "appConnections",
16182
+ "notificationTaps",
16183
+ "internal",
16184
+ "publicEndpoint"
16185
+ ];
16230
16186
  /**
16231
16187
  * Transport bounds for AI capability methods.
16232
16188
  *
@@ -17053,7 +17009,14 @@ var LoginMethodContributionSchema = discriminatedUnion("kind", [
17053
17009
  icon: string().optional(),
17054
17010
  /** Addon-owned HTTP route the button navigates to (GET). */
17055
17011
  startUrl: string(),
17056
- stage: LoginStageEnum
17012
+ stage: LoginStageEnum,
17013
+ /**
17014
+ * The provider names an external identity a signed-in user can link to
17015
+ * their own account (D782): `auth.listLinkableProviders` /
17016
+ * `beginExternalLink` offer exactly the redirect methods that set this,
17017
+ * whatever their id. Absent / false — a login button only (magic-link).
17018
+ */
17019
+ linkable: boolean().optional()
17057
17020
  }),
17058
17021
  object({
17059
17022
  kind: literal("widget"),
@@ -18829,6 +18792,8 @@ var NcSystemEventKindSchema = _enum([
18829
18792
  "stream-offline",
18830
18793
  "node-online",
18831
18794
  "node-offline",
18795
+ "node-restarting",
18796
+ "node-updating",
18832
18797
  "node-inference-unavailable",
18833
18798
  "detection-blind",
18834
18799
  "addon-crash-loop",
@@ -20434,7 +20399,13 @@ var NcAlarmModeDelaysListSchema = array(object({
20434
20399
  * Absent = false (logged, not sent). Even when true it is not sent when that same sensor
20435
20400
  * is the one that starts the entry delay — the entry-delay notification already names it.
20436
20401
  */
20437
- notifySensorRewatched: boolean().optional()
20402
+ notifySensorRewatched: boolean().optional(),
20403
+ /**
20404
+ * D735: notify "ignored" when a sensor this arm bypassed really MOVED while armed (its own
20405
+ * change time is after the arm) and set nothing off. Absent = false (logged, not sent). A
20406
+ * re-sync, a recovery from `unavailable` or a duplicate is never announced, switch or not.
20407
+ */
20408
+ notifySensorIgnored: boolean().optional()
20438
20409
  })).max(8).refine(uniqueModes, { message: "modeDelays: at most one entry per arm mode" });
20439
20410
  var NcAlarmModeDelaysEditListSchema = array(object({
20440
20411
  mode: AlarmArmModeSchema,
@@ -20447,7 +20418,9 @@ var NcAlarmModeDelaysEditListSchema = array(object({
20447
20418
  /** D706: set the switch, or `null` to clear it (back to the default, false). */
20448
20419
  notifyDuringEntryDelay: boolean().nullable().optional(),
20449
20420
  /** D706: set the switch, or `null` to clear it (back to the default, false). */
20450
- notifySensorRewatched: boolean().nullable().optional()
20421
+ notifySensorRewatched: boolean().nullable().optional(),
20422
+ /** D735: set the switch, or `null` to clear it (back to the default, false). */
20423
+ notifySensorIgnored: boolean().nullable().optional()
20451
20424
  })).max(8).refine(uniqueModes, { message: "modeDelays: at most one edit per arm mode" });
20452
20425
  /** One switch of the alarm table: put ONE device on, or take it off, ONE mode's list. */
20453
20426
  var NcAlarmNonBlockingEditSchema = object({
@@ -21425,8 +21398,8 @@ Object.freeze(Object.fromEntries([{
21425
21398
  var CLUSTER_STEP_SETTING_FIELDS = [{
21426
21399
  stepId: "face-embedding",
21427
21400
  key: "minLandmarkFaceSize",
21428
- label: "Min face size for recognition (detection px)",
21429
- 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.",
21401
+ label: "Min face size to embed (detection-frame px)",
21402
+ 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.",
21430
21403
  type: "slider",
21431
21404
  min: 0,
21432
21405
  max: 64,
@@ -22478,7 +22451,13 @@ var RetrainFrameSchema = object({
22478
22451
  sizeBytes: number().int(),
22479
22452
  width: number().int(),
22480
22453
  height: number().int(),
22481
- copiedAt: number()
22454
+ copiedAt: number(),
22455
+ /** When the CAMERA captured the frame. Absent on a copy taken before D785. */
22456
+ capturedAt: number().optional(),
22457
+ /** The operator's "every subject in this frame is boxed". Detector
22458
+ * evaluation keeps only complete frames: an unboxed subject would count as
22459
+ * a false positive. */
22460
+ complete: boolean()
22482
22461
  });
22483
22462
  /** Why a copy-on-select could not be honoured — named, never a silent skip. */
22484
22463
  var RetrainCopyRefusalSchema = _enum([
@@ -22499,6 +22478,51 @@ var RetrainFrameListSchema = object({
22499
22478
  /** What the page pre-selects — the native key frame when one survives. */
22500
22479
  autoPickMediaId: number().int().optional()
22501
22480
  });
22481
+ /**
22482
+ * Which frames an annotated export carries. Every field narrows; an empty
22483
+ * filter is every annotated copy. A dataset VERSION is a frozen `frameIds`
22484
+ * list owned by whoever trains (the training orchestrator), so `frameIds` is
22485
+ * the primitive a version export uses; `batchId` re-selects what an earlier
22486
+ * export carried (`exportedInBatch`).
22487
+ */
22488
+ var RetrainExportFilterSchema = object({
22489
+ deviceIds: array(number()).optional(),
22490
+ frameIds: array(string()).max(2e4).optional(),
22491
+ batchId: string().optional(),
22492
+ /** Only frames the operator marked complete (all subjects boxed). */
22493
+ completeOnly: boolean().optional()
22494
+ });
22495
+ /**
22496
+ * `frames`: the full frame copies, boxes in `annotations.json`.
22497
+ * `crops`: additionally one JPEG per subject, cut with the runtime detail-crop
22498
+ * convention — the classifier layout.
22499
+ */
22500
+ var RetrainExportLayoutSchema = _enum(["frames", "crops"]);
22501
+ /**
22502
+ * Where `writeRetrainArchive` streams the tar: one HTTP request whose body is
22503
+ * the archive, sent chunk by chunk. Covers a presigned PUT and a provider
22504
+ * addon's data-plane upload route alike. Headers are sent verbatim and never
22505
+ * logged.
22506
+ */
22507
+ var RetrainArchiveTargetSchema = object({
22508
+ kind: literal("http"),
22509
+ method: _enum(["PUT", "POST"]),
22510
+ url: string().url(),
22511
+ headers: record(string(), string()).optional()
22512
+ });
22513
+ var RetrainArchiveResultSchema = object({
22514
+ batchId: string(),
22515
+ frames: number().int(),
22516
+ crops: number().int(),
22517
+ annotations: number().int(),
22518
+ /** Frames planned but not shipped (unreadable copy, path too long). */
22519
+ missing: number().int(),
22520
+ bytes: number().int(),
22521
+ /** sha256 of the exact bytes sent. */
22522
+ sha256: string(),
22523
+ /** The target's HTTP status. */
22524
+ status: number().int()
22525
+ });
22502
22526
  /** What the operator asked the assist to look for. */
22503
22527
  var RetrainAssistSubjectSchema = discriminatedUnion("kind", [object({
22504
22528
  kind: literal("package"),
@@ -23293,9 +23317,25 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
23293
23317
  }), RetrainTransitionResultSchema, {
23294
23318
  kind: "mutation",
23295
23319
  auth: "admin"
23296
- }), method(object({ deviceIds: array(number()).optional() }), object({ url: string() }), {
23320
+ }), method(RetrainExportFilterSchema.extend({ layout: RetrainExportLayoutSchema.optional() }), object({ url: string() }), {
23297
23321
  kind: "query",
23298
23322
  auth: "admin"
23323
+ }), method(object({
23324
+ deviceId: number(),
23325
+ trackId: string(),
23326
+ frameId: string(),
23327
+ complete: boolean()
23328
+ }), RetrainFrameSchema, {
23329
+ kind: "mutation",
23330
+ auth: "admin"
23331
+ }), method(object({
23332
+ filter: RetrainExportFilterSchema,
23333
+ layout: RetrainExportLayoutSchema,
23334
+ target: RetrainArchiveTargetSchema
23335
+ }), RetrainArchiveResultSchema, {
23336
+ kind: "mutation",
23337
+ auth: "admin",
23338
+ timeoutMs: 60 * 6e4
23299
23339
  }), method(object({
23300
23340
  /** Which of the three event tables owns the row. */
23301
23341
  ownerType: EventOwnerTypeSchema,
@@ -23346,6 +23386,34 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
23346
23386
  timestamp: number()
23347
23387
  });
23348
23388
  /**
23389
+ * A root model's boxes standing in for one crop-kind step's own inference
23390
+ * (D730) — see `runPipeline.suppliedRoot`.
23391
+ */
23392
+ var SuppliedRootOutputSchema = object({
23393
+ stepId: string(),
23394
+ /** The root model that drew the boxes — stamped on the result. */
23395
+ modelId: string(),
23396
+ detections: array(object({
23397
+ /** `[x1, y1, x2, y2]` in the pixels of the call's image. */
23398
+ bbox: tuple([
23399
+ number(),
23400
+ number(),
23401
+ number(),
23402
+ number()
23403
+ ]),
23404
+ score: number(),
23405
+ /**
23406
+ * Five facial landmarks in the same pixels — a face the step's own
23407
+ * detector already re-found inside a root face box (D730), so its
23408
+ * embedder child aligns it exactly as it aligns any detected face.
23409
+ */
23410
+ landmarks: array(object({
23411
+ x: number(),
23412
+ y: number()
23413
+ })).optional()
23414
+ })).min(1)
23415
+ });
23416
+ /**
23349
23417
  * Reference to the frame's retained NATIVE surface + the parent crop's placement
23350
23418
  * within the frame, so the executor can re-cut a leaf child ROI at native
23351
23419
  * resolution on the detail plane. See the `runPipeline` `nativeCropRef` field.
@@ -23393,7 +23461,7 @@ var FrameRefSchema = object({
23393
23461
  timestamp: number(),
23394
23462
  capturedAt: number().optional()
23395
23463
  });
23396
- var ModelFormatSchema$1 = _enum([
23464
+ var ModelFormatSchema$2 = _enum([
23397
23465
  "onnx",
23398
23466
  "coreml",
23399
23467
  "openvino",
@@ -23411,7 +23479,7 @@ var PipelineSlotSchema = _enum([
23411
23479
  var PipelineEngineChoiceSchema = object({
23412
23480
  runtime: literal("python"),
23413
23481
  backend: string(),
23414
- format: ModelFormatSchema$1,
23482
+ format: ModelFormatSchema$2,
23415
23483
  device: string().optional()
23416
23484
  });
23417
23485
  /**
@@ -23450,32 +23518,15 @@ var PipelineDefaultStepSchema = lazy(() => object({
23450
23518
  group: string().optional(),
23451
23519
  settings: record(string(), unknown()).optional()
23452
23520
  }));
23453
- var PipelineTemplateStepSchema = lazy(() => object({
23454
- addonId: string(),
23455
- enabled: boolean(),
23456
- modelId: string(),
23457
- children: array(PipelineTemplateStepSchema).readonly(),
23458
- settings: record(string(), unknown()).optional()
23459
- }));
23460
- var PipelineTemplateSchema$1 = object({
23461
- id: string(),
23462
- name: string(),
23463
- createdAt: string(),
23464
- updatedAt: string(),
23465
- engine: PipelineEngineChoiceSchema,
23466
- steps: array(PipelineTemplateStepSchema).readonly()
23467
- });
23468
23521
  var PipelineModelOptionSchema = object({
23469
23522
  id: string(),
23470
23523
  name: string(),
23471
- formats: record(string(), object({
23472
- downloaded: boolean(),
23473
- sizeMB: number()
23474
- })),
23524
+ formats: record(string(), PipelineModelFormatStatusSchema),
23475
23525
  group: ModelVariantGroupSchema.optional(),
23476
23526
  legacy: boolean().optional(),
23477
23527
  provider: ModelProviderIdSchema.optional(),
23478
- defaultConfidence: number().optional()
23528
+ defaultConfidence: number().optional(),
23529
+ suppliesSteps: array(RootStepSupplySchema).readonly().optional()
23479
23530
  });
23480
23531
  var ConfigFieldBridge = custom();
23481
23532
  var PipelineAddonSchemaSchema = object({
@@ -23637,6 +23688,22 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
23637
23688
  }), {
23638
23689
  kind: "mutation",
23639
23690
  auth: "admin"
23691
+ }), method(object({
23692
+ nodeId: string(),
23693
+ deviceIds: array(number()).readonly().optional(),
23694
+ dryRun: boolean()
23695
+ }), object({
23696
+ entries: array(object({
23697
+ deviceId: number(),
23698
+ keys: array(string()).readonly()
23699
+ })).readonly(),
23700
+ refused: array(object({
23701
+ deviceId: number(),
23702
+ reason: string()
23703
+ })).readonly()
23704
+ }), {
23705
+ kind: "mutation",
23706
+ auth: "admin"
23640
23707
  }), method(object({ nodeId: string() }), object({ unhealthy: array(object({
23641
23708
  /** `<backend>:<device>`, e.g. `openvino:gpu`. */
23642
23709
  deviceKey: string(),
@@ -23662,22 +23729,14 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
23662
23729
  }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(object({
23663
23730
  steps: array(PipelineStepInputSchema),
23664
23731
  deviceKey: string().optional()
23665
- }), PipelineValidationResultSchema), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
23666
- name: string(),
23667
- steps: array(PipelineTemplateStepSchema).readonly(),
23668
- engine: PipelineEngineChoiceSchema
23669
- }), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({
23670
- id: string(),
23671
- name: string().optional(),
23672
- steps: array(PipelineTemplateStepSchema).readonly().optional()
23673
- }), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({ id: string() }), _void(), { kind: "mutation" }), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string() }), ModelAvailabilityListBridge), method(object({
23732
+ }), PipelineValidationResultSchema), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string() }), ModelAvailabilityListBridge), method(object({
23674
23733
  addonId: string(),
23675
23734
  modelId: string(),
23676
- format: ModelFormatSchema$1
23735
+ format: ModelFormatSchema$2
23677
23736
  }), DownloadModelResultSchema, { kind: "mutation" }), method(object({
23678
23737
  addonId: string(),
23679
23738
  modelId: string(),
23680
- format: ModelFormatSchema$1
23739
+ format: ModelFormatSchema$2
23681
23740
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
23682
23741
  steps: array(PipelineStepInputSchema).min(1),
23683
23742
  frame: FrameInputSchema.optional(),
@@ -23743,7 +23802,16 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
23743
23802
  * `device-not-servable`), and nothing reaches the camera's live
23744
23803
  * trace stream. Absent ⇒ unchanged behaviour.
23745
23804
  */
23746
- replay: literal(true).optional()
23805
+ replay: literal(true).optional(),
23806
+ /**
23807
+ * Root-supplied detections for the tree's ROOT step (D730). Set by
23808
+ * `runDetailSubtree` when the camera's root model supplies a crop-kind
23809
+ * step (a Frigate+ `license_plate` for `plate-detection`): the step is
23810
+ * NOT inferred, these boxes are its output, and its children (the plate
23811
+ * reader) run on them through their own crop policy. Boxes are in the
23812
+ * PIXELS of the image this call carries. Absent ⇒ the root step runs.
23813
+ */
23814
+ suppliedRoot: SuppliedRootOutputSchema.optional()
23747
23815
  }), PipelineRunResultBridge, { kind: "mutation" }), method(object({
23748
23816
  steps: array(PipelineStepInputSchema).min(1),
23749
23817
  frames: array(FrameInputSchema).min(1).max(255),
@@ -23825,6 +23893,375 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
23825
23893
  filename: string().optional(),
23826
23894
  settings: record(string(), unknown()).optional()
23827
23895
  }), AudioTestResultSchema, { kind: "mutation" }), method(_void(), ConfigUISchemaNullableBridge);
23896
+ /**
23897
+ * The wire shapes of the Auto tune plan and apply (D745), used by the
23898
+ * `pipeline-orchestrator` cap. The recommender's own types
23899
+ * (`recommend.ts`) are the TS face of the same data; these
23900
+ * schemas are what crosses the cap boundary.
23901
+ */
23902
+ var ModelFormatSchema$1 = _enum(MODEL_FORMATS);
23903
+ /** The operator's range for it. */
23904
+ var MIN_SESSIONS_PER_DEVICE_RANGE = {
23905
+ min: 1,
23906
+ max: 8
23907
+ };
23908
+ var HardwareClassIdSchema = _enum([
23909
+ "intel-core-ultra",
23910
+ "intel-n-series",
23911
+ "apple-m-base",
23912
+ "apple-m-pro",
23913
+ "unknown"
23914
+ ]);
23915
+ var AcceleratorKindSchema = _enum([
23916
+ "intel-npu",
23917
+ "intel-igpu",
23918
+ "x86-cpu",
23919
+ "arm-cpu",
23920
+ "apple-ane",
23921
+ "coral"
23922
+ ]);
23923
+ var RecommendationReasonSchema = discriminatedUnion("kind", [
23924
+ object({
23925
+ kind: literal("capacity"),
23926
+ sessions: number(),
23927
+ minSessions: number()
23928
+ }),
23929
+ object({
23930
+ kind: literal("tie-faster"),
23931
+ over: string(),
23932
+ recallDelta: number()
23933
+ }),
23934
+ object({
23935
+ kind: literal("stepped-down"),
23936
+ from: string(),
23937
+ to: string(),
23938
+ limitedBy: string()
23939
+ }),
23940
+ object({
23941
+ kind: literal("no-fit-lightest"),
23942
+ sessions: number(),
23943
+ minSessions: number()
23944
+ }),
23945
+ object({
23946
+ kind: literal("derived-latency"),
23947
+ modelId: string()
23948
+ }),
23949
+ object({ kind: literal("cpu-device") }),
23950
+ object({ kind: literal("coral-untouched") }),
23951
+ object({ kind: literal("device-disabled") }),
23952
+ object({ kind: literal("device-unavailable") }),
23953
+ object({ kind: literal("node-offline") }),
23954
+ object({ kind: literal("no-hardware-facts") }),
23955
+ object({
23956
+ kind: literal("no-measured-data"),
23957
+ hardwareClass: HardwareClassIdSchema
23958
+ }),
23959
+ object({
23960
+ kind: literal("no-family-build"),
23961
+ format: ModelFormatSchema$1
23962
+ })
23963
+ ]);
23964
+ var DeviceModelChoiceSchema = object({
23965
+ modelId: string(),
23966
+ p50Ms: number(),
23967
+ fps: number(),
23968
+ measured: boolean(),
23969
+ /** Parallel sessions at the camera rate with the headroom kept free: ⌊fps × (1 − headroom) / camera fps⌋. */
23970
+ capacitySessions: number(),
23971
+ personRecall: number()
23972
+ });
23973
+ var DeviceRecommendationSchema = object({
23974
+ deviceKey: string(),
23975
+ accelerator: AcceleratorKindSchema.nullable(),
23976
+ enabled: boolean(),
23977
+ available: boolean(),
23978
+ chosen: DeviceModelChoiceSchema.nullable(),
23979
+ reasons: array(RecommendationReasonSchema).readonly()
23980
+ });
23981
+ var NodeRecommendationSchema = object({
23982
+ nodeId: string(),
23983
+ reachable: boolean(),
23984
+ hardwareClass: HardwareClassIdSchema.nullable(),
23985
+ cpuModel: string().nullable(),
23986
+ skipped: boolean(),
23987
+ acceleratorModelId: string().nullable(),
23988
+ devices: array(DeviceRecommendationSchema).readonly(),
23989
+ reasons: array(RecommendationReasonSchema).readonly()
23990
+ });
23991
+ var ModelPinChangeSchema = object({
23992
+ stepId: string(),
23993
+ before: string().nullable(),
23994
+ after: string().nullable()
23995
+ });
23996
+ var NodeDeviceChangeSchema = object({
23997
+ nodeId: string(),
23998
+ deviceKey: string(),
23999
+ madeExplicit: boolean(),
24000
+ modelPins: array(ModelPinChangeSchema).readonly(),
24001
+ thresholds: array(object({
24002
+ stepId: string(),
24003
+ keys: array(string()).readonly()
24004
+ })).readonly()
24005
+ });
24006
+ var CameraOverrideClearSchema = object({
24007
+ deviceId: number(),
24008
+ source: _enum(["step-override", "wholesale"]),
24009
+ nodeId: string(),
24010
+ deviceKey: string().nullable(),
24011
+ stepId: string(),
24012
+ modelIdBefore: string().nullable(),
24013
+ keys: array(string()).readonly()
24014
+ });
24015
+ var DetectorStoreClearSchema = object({
24016
+ deviceId: number(),
24017
+ keys: array(string()).readonly()
24018
+ });
24019
+ var AutoTuneWarningSchema = discriminatedUnion("kind", [
24020
+ object({
24021
+ kind: literal("detector-store-cluster-wide"),
24022
+ skippedNodes: array(string()).readonly()
24023
+ }),
24024
+ object({
24025
+ kind: literal("detector-store-unreadable"),
24026
+ error: string()
24027
+ }),
24028
+ object({
24029
+ kind: literal("coral-enabled"),
24030
+ nodeId: string(),
24031
+ deviceKey: string()
24032
+ })
24033
+ ]);
24034
+ var AutoTuneOptionsSchema = object({
24035
+ /** Share of each accelerator's throughput kept free (0.3–0.5). */
24036
+ headroom: number().min(.3).max(.5).default(.4),
24037
+ /**
24038
+ * The least number of parallel sessions every device must sustain at the
24039
+ * camera rate with the headroom kept free (D755). The most accurate model
24040
+ * that reaches it wins.
24041
+ */
24042
+ minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
24043
+ });
24044
+ var AutoTunePlanSchema = object({
24045
+ /** Hash of everything the apply will write — the apply refuses a different one. */
24046
+ planHash: string(),
24047
+ family: literal("yolov9"),
24048
+ headroom: number(),
24049
+ minSessionsPerDevice: number(),
24050
+ /** The detection rate a session is counted at (the fastest camera running the pipeline root). */
24051
+ cameraFps: number(),
24052
+ generatedAt: number(),
24053
+ nodes: array(NodeRecommendationSchema).readonly(),
24054
+ nodeChanges: array(NodeDeviceChangeSchema).readonly(),
24055
+ cameraClears: array(CameraOverrideClearSchema).readonly(),
24056
+ detectorStoreClears: array(DetectorStoreClearSchema).readonly(),
24057
+ warnings: array(AutoTuneWarningSchema).readonly()
24058
+ });
24059
+ var AutoTuneApplyInputSchema = object({
24060
+ planHash: string(),
24061
+ headroom: number().min(.3).max(.5).default(.4),
24062
+ minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
24063
+ });
24064
+ var AutoTunePhaseResultSchema = object({
24065
+ phase: _enum([
24066
+ "download",
24067
+ "camera-overrides",
24068
+ "detector-thresholds",
24069
+ "node-models",
24070
+ "redispatch"
24071
+ ]),
24072
+ ok: boolean(),
24073
+ detail: string()
24074
+ });
24075
+ var AutoTuneApplyResultSchema = discriminatedUnion("kind", [
24076
+ object({
24077
+ kind: literal("applied"),
24078
+ planHash: string(),
24079
+ phases: array(AutoTunePhaseResultSchema).readonly()
24080
+ }),
24081
+ object({
24082
+ kind: literal("aborted"),
24083
+ phases: array(AutoTunePhaseResultSchema).readonly()
24084
+ }),
24085
+ object({
24086
+ kind: literal("stale"),
24087
+ plan: AutoTunePlanSchema
24088
+ }),
24089
+ object({
24090
+ kind: literal("refused"),
24091
+ reason: _enum(["apply-in-progress"])
24092
+ })
24093
+ ]);
24094
+ /**
24095
+ * Wire shapes of the Load balancing surface (D748): the session placement
24096
+ * policy, the atomic share write, the observed placement statistics, the
24097
+ * hardware share suggestion and the stale device pins.
24098
+ */
24099
+ /**
24100
+ * How a new detection session picks its node and device.
24101
+ * - `least-loaded` — the historical rule: lowest `attached / weight`, a
24102
+ * constant node order at a tie (D37). An idle node always ties at 0, so a
24103
+ * weight only bites once a node already holds a session.
24104
+ * - `share` — the share of PARALLEL sessions is held to the weights, and a
24105
+ * full or drowning node yields to a free one (D748).
24106
+ */
24107
+ var SessionPlacementPolicySchema = _enum(["least-loaded", "share"]);
24108
+ var LoadBalancingSharesInputSchema = object({
24109
+ /** nodeId → share (> 0). A node left out keeps its weight. */
24110
+ nodes: record(string(), number().positive()).default({}),
24111
+ /** nodeId → deviceKey → share (> 0). A device left out keeps its weight. */
24112
+ devices: record(string(), record(string(), number().positive())).default({})
24113
+ });
24114
+ var PlacementStatsInputSchema = object({
24115
+ /** Window the observed shares are averaged over (default 1 h, max 24 h). */
24116
+ windowMs: number().int().min(6e4).max(1440 * 60 * 1e3).default(3600 * 1e3) });
24117
+ var PlacementDeviceStatsSchema = object({
24118
+ deviceKey: string(),
24119
+ /** Sessions running on this device now. */
24120
+ sessionsNow: number(),
24121
+ /** Sessions started on this device inside the window. */
24122
+ sessionsStarted: number(),
24123
+ /** Time-weighted share of the node's parallel sessions over the window (0–1); null = no session ran. */
24124
+ observedShare: number().nullable()
24125
+ });
24126
+ var PlacementNodeStatsSchema = object({
24127
+ nodeId: string(),
24128
+ sessionsNow: number(),
24129
+ sessionsStarted: number(),
24130
+ /** Time-weighted share of the cluster's parallel sessions over the window (0–1); null = none ran. */
24131
+ observedShare: number().nullable(),
24132
+ /** Most sessions this node ran at once inside the window. */
24133
+ peakSessions: number(),
24134
+ /** Sessions a share election handed elsewhere because this node was full or drowning. */
24135
+ yieldsAway: number(),
24136
+ devices: array(PlacementDeviceStatsSchema).readonly()
24137
+ });
24138
+ /** A camera's device pin that the session path cannot honour. */
24139
+ var StaleDevicePinSchema = object({
24140
+ deviceId: number(),
24141
+ deviceKey: string(),
24142
+ /** `disabled` — the key exists on some node but is not enabled anywhere; `absent` — no node has it. */
24143
+ reason: _enum(["disabled", "absent"])
24144
+ });
24145
+ var PlacementStatsSchema = object({
24146
+ policy: SessionPlacementPolicySchema,
24147
+ windowMs: number(),
24148
+ /** How much of the window was actually observed (the hub keeps it in memory). */
24149
+ observedForMs: number(),
24150
+ sessionsNow: number(),
24151
+ /** Most parallel sessions across the cluster inside the window. */
24152
+ clusterPeakSessions: number(),
24153
+ nodes: array(PlacementNodeStatsSchema).readonly(),
24154
+ stalePins: array(StaleDevicePinSchema).readonly()
24155
+ });
24156
+ /**
24157
+ * Where an automatic share's capacity comes from (D755).
24158
+ * - `hardware` — the static capacity of each device at its Auto tune model:
24159
+ * the measured latency table for the node's hardware class.
24160
+ * - `benchmark` — the node's own measured capacity (node benchmark results).
24161
+ * A node with no results falls back to `hardware`, and says so.
24162
+ */
24163
+ var CapacitySourceSchema = _enum(["hardware", "benchmark"]);
24164
+ /** Why a node under the `benchmark` source was sized from hardware instead. */
24165
+ var CapacityFallbackSchema = _enum(["no-benchmark-results", "partial-benchmark-results"]);
24166
+ var SuggestSharesInputSchema = object({
24167
+ headroom: number().min(.3).max(.5).default(.4),
24168
+ /** Default `hardware`. */
24169
+ source: CapacitySourceSchema.default("hardware")
24170
+ });
24171
+ var SuggestedDeviceShareSchema = object({
24172
+ deviceKey: string(),
24173
+ /** Share of the node (0–100, rounded). */
24174
+ share: number(),
24175
+ modelId: string().nullable(),
24176
+ /** Inferences per second at that model, from the measured table; null when sized by a benchmark. */
24177
+ fps: number().nullable(),
24178
+ /** False for a table cell derived from another chip; true for a measured cell or a benchmark. */
24179
+ measured: boolean(),
24180
+ /**
24181
+ * Advisory session cap: ⌊fps × (1 − headroom) / camera fps⌋ from the table,
24182
+ * or the benchmark's measured max sessions. Never enforced.
24183
+ */
24184
+ suggestedMaxSessions: number().nullable()
24185
+ });
24186
+ var SuggestedNodeShareSchema = object({
24187
+ nodeId: string(),
24188
+ /** Share of the cluster (0–100, rounded); null = node skipped (offline, unknown hardware). */
24189
+ share: number().nullable(),
24190
+ /** Parallel sessions the node sustains at the suggested models with the headroom kept free. */
24191
+ capacitySessions: number(),
24192
+ devices: array(SuggestedDeviceShareSchema).readonly(),
24193
+ skippedReason: string().nullable(),
24194
+ /** What this node's capacity was read from; null when the node is skipped. */
24195
+ capacitySource: CapacitySourceSchema.nullable(),
24196
+ /** Set when the `benchmark` source was asked for and this node used `hardware`. */
24197
+ capacityFallback: CapacityFallbackSchema.nullable()
24198
+ });
24199
+ var SuggestSharesResultSchema = object({
24200
+ headroom: number(),
24201
+ /** The source asked for; each node says what it actually used. */
24202
+ source: CapacitySourceSchema,
24203
+ /** Camera detection rate the capacity is counted in (the fastest camera's fps). */
24204
+ cameraFps: number(),
24205
+ /** The Auto tune capacity floor the models were picked at. */
24206
+ minSessionsPerDevice: number(),
24207
+ nodes: array(SuggestedNodeShareSchema).readonly()
24208
+ });
24209
+ /**
24210
+ * Where the node and device shares come from (D750, D755).
24211
+ * - `hardware` (default) — computed by the system from each node's static
24212
+ * capacity (its accelerators at their Auto tune models, from the measured
24213
+ * latency table), recomputed whenever a node or device joins, leaves, is
24214
+ * switched on or off, or changes model. No load input.
24215
+ * - `benchmark` — the same, from each node's measured capacity (node
24216
+ * benchmark results); a node without results falls back to `hardware`.
24217
+ * - `manual` — the operator's stored sliders.
24218
+ * Either way a node or device that cannot take sessions gives its share to
24219
+ * the others in proportion; the stored values are never rewritten for that.
24220
+ */
24221
+ var ShareSourceSchema = _enum([
24222
+ "hardware",
24223
+ "benchmark",
24224
+ "manual"
24225
+ ]);
24226
+ var SetShareSourceInputSchema = object({ source: ShareSourceSchema });
24227
+ object({
24228
+ nodes: record(string(), number()),
24229
+ devices: record(string(), record(string(), number()))
24230
+ });
24231
+ var EffectiveDeviceShareSchema = object({
24232
+ deviceKey: string(),
24233
+ /** Can take sessions now (enabled, available, can run the root). */
24234
+ eligible: boolean(),
24235
+ /** The share the source assigns, as a percentage of the node's devices. */
24236
+ configuredPct: number(),
24237
+ /** The share actually used, after an ineligible device's share went to the others. */
24238
+ effectivePct: number()
24239
+ });
24240
+ var EffectiveNodeShareSchema = object({
24241
+ nodeId: string(),
24242
+ eligible: boolean(),
24243
+ configuredPct: number(),
24244
+ effectivePct: number(),
24245
+ /** Automatic sources: what this node's share was computed from; null under `manual` or before the first answer. */
24246
+ capacitySource: CapacitySourceSchema.nullable(),
24247
+ /** Automatic `benchmark`: why this node used `hardware` instead. */
24248
+ capacityFallback: CapacityFallbackSchema.nullable(),
24249
+ devices: array(EffectiveDeviceShareSchema).readonly()
24250
+ });
24251
+ var EffectiveSharesSchema = object({
24252
+ source: ShareSourceSchema,
24253
+ policy: SessionPlacementPolicySchema,
24254
+ /** An automatic source with no computed answer yet: the stored sliders are used meanwhile. */
24255
+ autoPending: boolean(),
24256
+ /** When the automatic shares were last computed (ms epoch); null = never. */
24257
+ computedAt: number().nullable(),
24258
+ /** What made the system recompute them last. */
24259
+ trigger: string().nullable(),
24260
+ nodes: array(EffectiveNodeShareSchema).readonly(),
24261
+ /** The relative weights the election reads (before eligibility). */
24262
+ nodeWeights: record(string(), number()),
24263
+ deviceWeights: record(string(), record(string(), number()))
24264
+ });
23828
24265
  object({
23829
24266
  activeCameras: number(),
23830
24267
  throttledCameras: number(),
@@ -24742,14 +25179,15 @@ var RunnerLocalLoadSchema = object({
24742
25179
  * Per-inference-device live load (multi-device C4). One entry per deviceKey
24743
25180
  * this runner currently has attached cameras on, so the orchestrator's second
24744
25181
  * `balance()` pass (over a node's devices) weights on real per-pool session
24745
- * counts. Empty on single-device / pre-multi-device runners. `queueDepthTotal`
24746
- * per device is 0 until the pool backlog gets a public accessor (follow-up).
25182
+ * counts. Empty on single-device / pre-multi-device runners. There is no
25183
+ * per-device queue depth: the inference pool's backlog has no accessor, and
25184
+ * a field that always read 0 was removed rather than shown as a measurement
25185
+ * (D762).
24747
25186
  */
24748
25187
  devices: array(object({
24749
25188
  deviceKey: string(),
24750
25189
  backend: string(),
24751
- attachedCameras: number(),
24752
- queueDepthTotal: number()
25190
+ attachedCameras: number()
24753
25191
  })).default([]),
24754
25192
  /** Hardware capability flags reported by this node. */
24755
25193
  hardware: object({
@@ -24885,7 +25323,22 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
24885
25323
  */
24886
25324
  cropJpeg: string().optional(),
24887
25325
  parent: DetailParentSchema,
24888
- steps: array(string()).optional()
25326
+ steps: array(string()).optional(),
25327
+ /**
25328
+ * The camera's root model already drew this step's boxes (D730): a
25329
+ * `license_plate` inside the parent vehicle. The named step is NOT
25330
+ * inferred — these FRAME-space boxes are its output — and its
25331
+ * requested children (the plate reader) run on them. Absent ⇒ every
25332
+ * requested step infers as before.
25333
+ */
25334
+ supplied: object({
25335
+ stepId: string(),
25336
+ modelId: string(),
25337
+ boxes: array(object({
25338
+ bbox: NativeCropBboxSchema,
25339
+ score: number()
25340
+ })).min(1)
25341
+ }).optional()
24889
25342
  }), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" }), method(object({
24890
25343
  /** Catalog step id, e.g. `clip-embedding`. */
24891
25344
  stepId: string(),
@@ -24948,14 +25401,6 @@ var CameraPipelineConfigSchema = object({
24948
25401
  settings: record(string(), unknown()).readonly().optional()
24949
25402
  }).nullable().optional()
24950
25403
  });
24951
- var PipelineTemplateSchema = object({
24952
- id: string(),
24953
- name: string(),
24954
- description: string().optional(),
24955
- config: CameraPipelineConfigSchema,
24956
- createdAt: string(),
24957
- updatedAt: string()
24958
- });
24959
25404
  var DeviceStepConfigSchema = object({
24960
25405
  modelId: string().optional(),
24961
25406
  settings: record(string(), unknown()).optional(),
@@ -25029,9 +25474,10 @@ var CameraStepOverridePatchSchema = object({
25029
25474
  modelId: string().optional(),
25030
25475
  settings: record(string(), unknown()).readonly().optional()
25031
25476
  });
25477
+ var CameraStepSettingsSchema = record(string(), record(string(), unknown()).readonly());
25032
25478
  var CameraPipelineSettingsSchema = object({
25033
- pinnedAgentNodeId: string().optional(),
25034
25479
  stepToggles: record(string(), boolean()).optional(),
25480
+ stepSettings: CameraStepSettingsSchema.optional(),
25035
25481
  stepOverridesByDevice: record(string(), record(string(), record(string(), CameraStepOverridePatchSchema))).optional(),
25036
25482
  pipelineByAgent: record(string(), CameraPipelineForAgentSchema).optional()
25037
25483
  });
@@ -25064,7 +25510,10 @@ var PipelineAssignmentSchema = object({
25064
25510
  });
25065
25511
  /**
25066
25512
  * Per-agent load summary surfaced to the load balancer + dashboards.
25067
- * Aggregated from each runner's `getLocalLoad` cap call.
25513
+ * Aggregated from each runner's `getLocalLoad` cap call. In the
25514
+ * `getAgentLoad` report, a single-device node's default-pool sessions (no
25515
+ * `deviceKey`) are credited to its one eligible device in `load.devices` —
25516
+ * the default pool IS that device (D745); the balancer's census stays raw.
25068
25517
  */
25069
25518
  var AgentLoadSummarySchema = object({
25070
25519
  nodeId: string(),
@@ -25153,26 +25602,27 @@ var CameraBrokerStatusSchema = object({
25153
25602
  width: number(),
25154
25603
  height: number(),
25155
25604
  subscribers: number(),
25156
- inFps: number(),
25157
- outFps: number()
25605
+ /**
25606
+ * Encoded packets/s the broker receives from the camera. null when the
25607
+ * broker's stats read failed — unknown, never 0 (a 0 here reads as a stall).
25608
+ * There is no output rate: decoding runs in the session decode workers, not
25609
+ * in the broker, so the broker's own decoded-frame rate is 0 on every live
25610
+ * camera and is not served (D758).
25611
+ */
25612
+ inFps: number().nullable()
25158
25613
  })).readonly(),
25159
25614
  webrtcSessions: number(),
25160
25615
  rtspRestream: boolean()
25161
25616
  });
25162
- /** Shared-memory ring statistics within the decoder block. */
25163
- var CameraDecoderShmSchema = object({
25164
- framesWritten: number(),
25165
- getFrameHits: number(),
25166
- getFrameMisses: number(),
25167
- budgetMb: number()
25168
- });
25169
- /** Decoder block — null when the decoder stage is unreachable or inactive. */
25170
- var CameraDecoderStatusSchema = object({
25171
- nodeId: string(),
25172
- formats: array(string()).readonly(),
25173
- sessionCount: number(),
25174
- shm: CameraDecoderShmSchema
25175
- });
25617
+ /**
25618
+ * Decoder block — WHERE decode runs (co-located with the detection node by
25619
+ * construction); null when the camera has no detection node. It carries no
25620
+ * frame counter: the shared-memory plane whose counters it used to serve is
25621
+ * gone, and those fields read 0 forever. Whether frames actually flow is read
25622
+ * from `detection.actualFps` (frames delivered to and processed by the
25623
+ * detector), never from a counter nothing feeds.
25624
+ */
25625
+ var CameraDecoderStatusSchema = object({ nodeId: string() });
25176
25626
  /** Motion block — null when motion detection is not active for this device. */
25177
25627
  var CameraMotionStatusSchema = object({
25178
25628
  enabled: boolean(),
@@ -25529,12 +25979,6 @@ method(object({
25529
25979
  }), object({ success: literal(true) }), {
25530
25980
  kind: "mutation",
25531
25981
  auth: "admin"
25532
- }), method(object({
25533
- agentNodeId: string(),
25534
- detectWeight: number().positive().nullable()
25535
- }), object({ success: literal(true) }), {
25536
- kind: "mutation",
25537
- auth: "admin"
25538
25982
  }), method(object({
25539
25983
  agentNodeId: string(),
25540
25984
  detect: boolean().nullable().optional(),
@@ -25576,6 +26020,15 @@ method(object({
25576
26020
  }), {
25577
26021
  kind: "mutation",
25578
26022
  auth: "admin"
26023
+ }), method(AutoTuneOptionsSchema, AutoTunePlanSchema, { auth: "admin" }), method(AutoTuneApplyInputSchema, AutoTuneApplyResultSchema, {
26024
+ kind: "mutation",
26025
+ auth: "admin"
26026
+ }), method(LoadBalancingSharesInputSchema, object({ success: literal(true) }), {
26027
+ kind: "mutation",
26028
+ auth: "admin"
26029
+ }), method(PlacementStatsInputSchema, PlacementStatsSchema, { auth: "admin" }), method(SuggestSharesInputSchema, SuggestSharesResultSchema, { auth: "admin" }), method(_void(), EffectiveSharesSchema, { auth: "admin" }), method(SetShareSourceInputSchema, object({ success: literal(true) }), {
26030
+ kind: "mutation",
26031
+ auth: "admin"
25579
26032
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
25580
26033
  deviceId: number(),
25581
26034
  addonId: string(),
@@ -25592,6 +26045,13 @@ method(object({
25592
26045
  }), object({ success: literal(true) }), {
25593
26046
  kind: "mutation",
25594
26047
  auth: "admin"
26048
+ }), method(object({
26049
+ deviceId: number(),
26050
+ addonId: string(),
26051
+ settings: record(string(), unknown()).nullable()
26052
+ }), object({ success: literal(true) }), {
26053
+ kind: "mutation",
26054
+ auth: "admin"
25595
26055
  }), method(object({
25596
26056
  deviceId: number(),
25597
26057
  agentNodeId: string(),
@@ -25615,25 +26075,7 @@ method(object({
25615
26075
  }), method(_void(), DiskReconcileJobSchema, {
25616
26076
  kind: "mutation",
25617
26077
  auth: "admin"
25618
- }), method(_void(), DiskReconcileJobSchema, { auth: "admin" }), method(_void(), array(PipelineTemplateSchema).readonly()), method(object({
25619
- name: string(),
25620
- description: string().optional(),
25621
- config: CameraPipelineConfigSchema
25622
- }), PipelineTemplateSchema, {
25623
- kind: "mutation",
25624
- auth: "admin"
25625
- }), method(object({
25626
- id: string(),
25627
- name: string().optional(),
25628
- description: string().optional(),
25629
- config: CameraPipelineConfigSchema.optional()
25630
- }), PipelineTemplateSchema, {
25631
- kind: "mutation",
25632
- auth: "admin"
25633
- }), method(object({ id: string() }), object({ success: literal(true) }), {
25634
- kind: "mutation",
25635
- auth: "admin"
25636
- });
26078
+ }), method(_void(), DiskReconcileJobSchema, { auth: "admin" });
25637
26079
  /**
25638
26080
  * Cap → event-kind mapping for the SENSOR / CONTROL cap families — the table
25639
26081
  * `pipeline-analytics.listEventKinds` uses to turn a linked device's bound
@@ -26327,7 +26769,19 @@ var SsoBridgeClaimsSchema = object({
26327
26769
  * editing a descriptor must not retroactively extend or shorten a link the
26328
26770
  * operator already consented to.
26329
26771
  */
26330
- refreshTtl: union([number().int().positive(), literal("never")]).optional()
26772
+ refreshTtl: union([number().int().positive(), literal("never")]).optional(),
26773
+ /**
26774
+ * Opaque handle of a hub-side LINK intent (D782). Set by an OIDC callback
26775
+ * that was started from a signed-in user's "Link" button: the finish then
26776
+ * links this identity to the intent's user instead of signing anyone in.
26777
+ * The handle carries no user id — the hub resolves it, single-use.
26778
+ */
26779
+ linkIntent: string().optional(),
26780
+ /**
26781
+ * Verified `iss` of the id_token behind an OIDC login bridge (D782). A
26782
+ * subject is unique only per issuer, so a link is bound to it.
26783
+ */
26784
+ issuer: string().optional()
26331
26785
  });
26332
26786
  method(object({
26333
26787
  claims: SsoBridgeClaimsSchema,
@@ -27986,8 +28440,6 @@ var WebrtcStreamChoiceSchema = object({
27986
28440
  ]).nullable(),
27987
28441
  /** Input FPS from the camera (null for adaptive). */
27988
28442
  inputFps: number().nullable(),
27989
- /** Decoded FPS (null for adaptive). */
27990
- decodeFps: number().nullable(),
27991
28443
  /** Bitrate in kbps (null for adaptive). */
27992
28444
  bitrateKbps: number().nullable()
27993
28445
  });
@@ -28264,7 +28716,22 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
28264
28716
  * field their hints were silently stripped by the schema and the
28265
28717
  * adaptive ladder started blind on the client's display size.
28266
28718
  */
28267
- hints: webrtcClientHintsSchema.optional()
28719
+ hints: webrtcClientHintsSchema.optional(),
28720
+ /**
28721
+ * Talk-back (D771): relay the PEER's audio to the device's speaker
28722
+ * through the `intercom` cap's push-talk triple. When `true` and the
28723
+ * offer lets the peer send audio, the answer's audio is `sendrecv`
28724
+ * and every inbound frame goes to `intercom.pushTalkAudio` for this
28725
+ * `deviceId`; absent/false answers `sendonly`, as for every viewer.
28726
+ *
28727
+ * TRUSTED-CALLER ONLY. Set by the Alexa export for an Echo on a camera
28728
+ * with `intercom`, when the linked user may control that camera. The
28729
+ * hub STRIPS it from every request-bound call (a browser), exactly as
28730
+ * it overwrites `relayOnly` — a viewer's talk permission is the
28731
+ * intercom cap's own surface (share tokens gate it there), and this
28732
+ * flag must not become a second door to the camera's speaker.
28733
+ */
28734
+ talkback: boolean().optional()
28268
28735
  }), object({
28269
28736
  sessionId: string(),
28270
28737
  sdpAnswer: string()
@@ -28319,6 +28786,14 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
28319
28786
  */
28320
28787
  alive: boolean()
28321
28788
  })), method(object({
28789
+ deviceId: number().int().nonnegative(),
28790
+ sessionId: string(),
28791
+ downlinkMbps: number().nonnegative()
28792
+ }), object({
28793
+ outcome: _enum(["switching", "held"]),
28794
+ tier: CamProfileSchema.nullable(),
28795
+ reason: string()
28796
+ }), { kind: "mutation" }), method(object({
28322
28797
  deviceId: number().int().nonnegative(),
28323
28798
  sessionId: string()
28324
28799
  }), WebrtcSessionDebugSchema, { kind: "query" });
@@ -28558,6 +29033,59 @@ var AddonAutoUpdateSchema = ChannelWithInheritSchema;
28558
29033
  var RestartAddonResultSchema = unknown();
28559
29034
  var InstallPackageResultSchema = unknown();
28560
29035
  var ReloadPackagesResultSchema = unknown();
29036
+ /**
29037
+ * What an uninstall did on ONE node.
29038
+ * - `uninstalled` — removed: runner(s) stopped, caps gone, code deleted.
29039
+ * - `not-installed` — the node did not have it (nothing to do).
29040
+ * - `refused` — protected / bootstrap package; nothing touched.
29041
+ * - `failed` — attempted and did not complete; `error` says why.
29042
+ * - `pending-reconnect` — the node is OFFLINE: its record was pruned so the
29043
+ * back-fill never returns the package, and the stale-addon sweep removes the
29044
+ * copy when the node registers again (only once the hub no longer has it).
29045
+ */
29046
+ var UninstallNodeOutcomeSchema = _enum([
29047
+ "uninstalled",
29048
+ "not-installed",
29049
+ "refused",
29050
+ "failed",
29051
+ "pending-reconnect"
29052
+ ]);
29053
+ var UninstallNodeResultSchema = object({
29054
+ nodeId: string(),
29055
+ outcome: UninstallNodeOutcomeSchema,
29056
+ error: string().optional(),
29057
+ addonIds: array(string()).readonly(),
29058
+ runnersStopped: array(string()).readonly(),
29059
+ warnings: array(string()).readonly()
29060
+ });
29061
+ var UninstallPackageResultSchema = object({
29062
+ /** Every targeted node ended `uninstalled`, `not-installed` or `pending-reconnect`. */
29063
+ success: boolean(),
29064
+ packageName: string(),
29065
+ results: array(UninstallNodeResultSchema).readonly()
29066
+ });
29067
+ /**
29068
+ * `unreachable` lists online agents whose status read FAILED — absence from
29069
+ * `installations` is only "not installed" for a node that answered (D315).
29070
+ */
29071
+ var PackageInstallationsSchema = object({
29072
+ installations: array(object({
29073
+ packageName: string(),
29074
+ nodeId: string(),
29075
+ nodeName: string(),
29076
+ isHub: boolean(),
29077
+ isOnline: boolean(),
29078
+ version: string().nullable(),
29079
+ addonIds: array(string()).readonly(),
29080
+ source: _enum(["live", "recorded"]),
29081
+ /** The hub installs this package too. `false` on an agent row = an orphan. */
29082
+ onHub: boolean()
29083
+ })).readonly(),
29084
+ unreachable: array(object({
29085
+ nodeId: string(),
29086
+ error: string()
29087
+ })).readonly()
29088
+ });
28561
29089
  var BulkUpdateItemStatusSchema = _enum([
28562
29090
  "queued",
28563
29091
  "updating",
@@ -28640,10 +29168,14 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
28640
29168
  }), method(object({ packageName: string() }), InstallPackageResultSchema, {
28641
29169
  kind: "mutation",
28642
29170
  auth: "admin"
28643
- }), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({ packageName: string() }), unknown(), {
29171
+ }), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({
29172
+ packageName: string().min(1),
29173
+ nodeId: string().optional(),
29174
+ everywhere: boolean().optional()
29175
+ }), UninstallPackageResultSchema, {
28644
29176
  kind: "mutation",
28645
29177
  auth: "admin"
28646
- }), method(_void(), ReloadPackagesResultSchema, {
29178
+ }), method(object({ packageName: string().optional() }), PackageInstallationsSchema, { auth: "admin" }), method(_void(), ReloadPackagesResultSchema, {
28647
29179
  kind: "mutation",
28648
29180
  auth: "admin"
28649
29181
  }), method(object({ query: string().optional() }), array(SearchResultSchema)), method(object({ nodeId: string().optional() }), array(PackageUpdateSchema).readonly(), { auth: "admin" }), method(object({
@@ -32138,7 +32670,8 @@ var ConnectionEndpointSchema = object({
32138
32670
  "lan-ipv6",
32139
32671
  "public",
32140
32672
  "loopback",
32141
- "app-link"
32673
+ "app-link",
32674
+ "custom"
32142
32675
  ]),
32143
32676
  /**
32144
32677
  * Originating-interface kind — `lan`/`wifi`/`docker`/`vpn`/`other`/
@@ -32207,7 +32740,7 @@ var GetConnectionEndpointsResultSchema = object({
32207
32740
  localPort: AdvertisedLocalPortSchema
32208
32741
  });
32209
32742
  /**
32210
- * The address flagged for notification links. `baseUrl: null` = AUTO, which
32743
+ * The address flagged for notification taps (`notificationTaps`). `baseUrl: null` = AUTO, which
32211
32744
  * since D709 is the CamStack app link; `resolved` reports the effective value,
32212
32745
  * so the UI can show it either way.
32213
32746
  */
@@ -32240,6 +32773,72 @@ var ViewerEndpointsSchema = object({
32240
32773
  /** What the ranking currently resolves to (may be empty if nothing is up). */
32241
32774
  resolved: array(string()).readonly()
32242
32775
  });
32776
+ /**
32777
+ * DEPRECATED compatibility shape of `getHubAddresses` (D729 amendment, kept
32778
+ * for addons built against it): `cluster` is the `internal` role, `browser`
32779
+ * the `publicEndpoint` role; `override` is the flagged address.
32780
+ */
32781
+ var HubAddressSnapshotSchema = object({
32782
+ override: string().nullable(),
32783
+ resolved: string().nullable(),
32784
+ source: _enum([
32785
+ "override",
32786
+ "auto",
32787
+ "none"
32788
+ ])
32789
+ });
32790
+ var HubAddressesSchema = object({
32791
+ cluster: HubAddressSnapshotSchema,
32792
+ browser: HubAddressSnapshotSchema
32793
+ });
32794
+ /**
32795
+ * What an address is used for (`hub-address.ts`, D734). `appConnections` is
32796
+ * many-valued; `notificationTaps`, `publicEndpoint` and `internal` are carried
32797
+ * by at most one address.
32798
+ */
32799
+ var HubAddressRoleSchema = _enum(HUB_ADDRESS_ROLES);
32800
+ var RoleSourceSchema = _enum([
32801
+ "flagged",
32802
+ "auto",
32803
+ "none"
32804
+ ]);
32805
+ /** One single-valued role: the flagged address, the one in use, and why. */
32806
+ var HubAddressRoleResolutionSchema = object({
32807
+ /** The address carrying the flag, or null = automatic. */
32808
+ flagged: string().nullable(),
32809
+ /** The address in use, or null when nothing qualifies (never loopback). */
32810
+ resolved: string().nullable(),
32811
+ source: RoleSourceSchema
32812
+ });
32813
+ var HubAppConnectionsResolutionSchema = object({
32814
+ /** The addresses flagged `appConnections`, or empty = automatic. */
32815
+ flagged: array(string()).readonly(),
32816
+ /** What the apps race right now. */
32817
+ resolved: array(string()).readonly(),
32818
+ source: RoleSourceSchema
32819
+ });
32820
+ var HubAddressBookSchema = object({
32821
+ rows: array(ConnectionEndpointSchema.extend({
32822
+ /** In the hub's detected palette right now. */
32823
+ detected: boolean(),
32824
+ /** Entered by the operator (removable). */
32825
+ custom: boolean(),
32826
+ /** The roles explicitly flagged on this address. */
32827
+ flags: array(HubAddressRoleSchema).readonly(),
32828
+ /** The roles this address serves right now — flagged or automatic. */
32829
+ inUse: array(HubAddressRoleSchema).readonly(),
32830
+ /** The roles this address may be flagged with. */
32831
+ eligible: array(HubAddressRoleSchema).readonly()
32832
+ })).readonly(),
32833
+ roles: object({
32834
+ appConnections: HubAppConnectionsResolutionSchema,
32835
+ notificationTaps: HubAddressRoleResolutionSchema,
32836
+ internal: HubAddressRoleResolutionSchema,
32837
+ publicEndpoint: HubAddressRoleResolutionSchema
32838
+ }),
32839
+ /** The `hub=` an app link carries (D709), or null. */
32840
+ appLinkHub: string().nullable()
32841
+ });
32243
32842
  var AllowedAddressesSchema = object({
32244
32843
  /**
32245
32844
  * Allowlist of interface addresses operators have explicitly opted
@@ -32283,10 +32882,27 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
32283
32882
  * tunnel always emits `https://` regardless. */
32284
32883
  scheme: _enum(["http", "https"]).optional(),
32285
32884
  /** Append the CamStack app link entry (`kind: 'app-link'`, D709) —
32286
- * an address notification links can be flagged with, not a hub
32885
+ * an address notification taps can be flagged with, not a hub
32287
32886
  * route. Default `false`: racers and rankers never see it. */
32288
32887
  includeAppLink: boolean().optional()
32289
- }), 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, {
32888
+ }), 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({
32889
+ baseUrl: string(),
32890
+ label: string().max(80)
32891
+ }), HubAddressBookSchema, {
32892
+ kind: "mutation",
32893
+ auth: "admin"
32894
+ }), method(object({ baseUrl: string() }), HubAddressBookSchema, {
32895
+ kind: "mutation",
32896
+ auth: "admin"
32897
+ }), method(object({
32898
+ role: HubAddressRoleSchema,
32899
+ baseUrl: string().nullable(),
32900
+ enabled: boolean(),
32901
+ acceptInsecureHttp: boolean().optional()
32902
+ }), HubAddressBookSchema, {
32903
+ kind: "mutation",
32904
+ auth: "admin"
32905
+ }), 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, {
32290
32906
  kind: "mutation",
32291
32907
  auth: "admin"
32292
32908
  }), method(object({
@@ -32744,7 +33360,8 @@ var MotionStatusSchema = object({
32744
33360
  * writes this slice (not even a boot seed), and neither does the runner's
32745
33361
  * phase machine: its phase is "a session is attached" for every on-motion
32746
33362
  * session, not motion, and it now has its own `DetectionPhaseTransition`.
32747
- * A provider's `isDetected` answers from the hub's slice.
33363
+ * A provider's `isDetected` and `getStatus` answer from the hub's slice
33364
+ * (`hubMotionNativeProvider`).
32748
33365
  * - **Sensors** (Home Assistant binary sensors, Homematic, Matter, Alexa
32749
33366
  * imports) — the provider pushes both edges itself, from the upstream
32750
33367
  * system's own state change. That is the sensor's own fact.
@@ -38476,6 +39093,32 @@ var TotpStatusSchema = object({
38476
39093
  /** Null when no row exists OR the row is still pending confirmation. */
38477
39094
  confirmedAt: number().nullable()
38478
39095
  });
39096
+ /**
39097
+ * user-management — singleton capability for user accounts, API keys,
39098
+ * and scoped tokens.
39099
+ *
39100
+ * v2 model: every method gated by `auth: 'admin'`. Admin-only delegation
39101
+ * — the subset check on `setUserScopes` / `createScopedToken` is moot
39102
+ * because non-admins never reach these. If/when we open non-admin
39103
+ * delegation, structural caller-scope subset check goes inside the
39104
+ * provider.
39105
+ */
39106
+ var ExternalIdentitySchema = object({
39107
+ /** Login-method id of the provider instance, e.g. `auth-oidc/authentik`. */
39108
+ provider: string(),
39109
+ /** The IdP's stable subject (`sub`) for this account. */
39110
+ subject: string(),
39111
+ /** The verified `iss` of the IdP the identity was linked under — `sub` is unique only per issuer. */
39112
+ issuer: string(),
39113
+ userId: string(),
39114
+ /** What the IdP called the account at link time (username / email) — display only. */
39115
+ label: string().optional(),
39116
+ linkedAt: number()
39117
+ });
39118
+ var ExternalIdentityKeySchema = object({
39119
+ provider: string().min(1),
39120
+ subject: string().min(1)
39121
+ });
38479
39122
  method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserInputSchema, UserSummarySchema, {
38480
39123
  kind: "mutation",
38481
39124
  auth: "admin",
@@ -38589,7 +39232,22 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
38589
39232
  userId: string(),
38590
39233
  username: string(),
38591
39234
  scopes: array(TokenScopeSchema)
38592
- }).nullable(), { access: "view" }), method(_void(), array(OauthSessionSummarySchema), { auth: "admin" }), method(object({ id: string() }), object({ success: boolean() }), {
39235
+ }).nullable(), { access: "view" }), method(object({ userId: string() }), array(ExternalIdentitySchema), { auth: "admin" }), method(ExternalIdentityKeySchema, object({
39236
+ userId: string(),
39237
+ issuer: string()
39238
+ }).nullable(), { auth: "admin" }), method(ExternalIdentityKeySchema.extend({
39239
+ userId: string(),
39240
+ issuer: string().min(1),
39241
+ label: string().optional()
39242
+ }), object({ success: literal(true) }), {
39243
+ kind: "mutation",
39244
+ auth: "admin",
39245
+ access: "create"
39246
+ }), method(ExternalIdentityKeySchema.extend({ userId: string() }), object({ success: boolean() }), {
39247
+ kind: "mutation",
39248
+ auth: "admin",
39249
+ access: "delete"
39250
+ }), method(_void(), array(OauthSessionSummarySchema), { auth: "admin" }), method(object({ id: string() }), object({ success: boolean() }), {
38593
39251
  kind: "mutation",
38594
39252
  auth: "admin",
38595
39253
  access: "delete"
@@ -39291,6 +39949,16 @@ var zoneRulesCapability = {
39291
39949
  durability: "restored"
39292
39950
  };
39293
39951
  SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
39952
+ Object.freeze({
39953
+ person: .5,
39954
+ vehicle: .5,
39955
+ animal: .5
39956
+ });
39957
+ Object.freeze({
39958
+ person: .65,
39959
+ vehicle: .65,
39960
+ animal: .65
39961
+ });
39294
39962
  /**
39295
39963
  * Accessory device helpers — shared across drivers.
39296
39964
  *
@@ -40989,6 +41657,12 @@ Object.freeze({
40989
41657
  addonId: null,
40990
41658
  access: "view"
40991
41659
  },
41660
+ "addons.listInstallations": {
41661
+ capName: "addons",
41662
+ capScope: "system",
41663
+ addonId: null,
41664
+ access: "view"
41665
+ },
40992
41666
  "addons.listJobs": {
40993
41667
  capName: "addons",
40994
41668
  capScope: "system",
@@ -42171,90 +42845,18 @@ Object.freeze({
42171
42845
  addonId: null,
42172
42846
  access: "create"
42173
42847
  },
42174
- "decoder.createSession": {
42175
- capName: "decoder",
42176
- capScope: "system",
42177
- addonId: null,
42178
- access: "view"
42179
- },
42180
- "decoder.destroySession": {
42181
- capName: "decoder",
42182
- capScope: "system",
42183
- addonId: null,
42184
- access: "delete"
42185
- },
42186
- "decoder.getFrame": {
42187
- capName: "decoder",
42188
- capScope: "system",
42189
- addonId: null,
42190
- access: "view"
42191
- },
42192
42848
  "decoder.getInfo": {
42193
42849
  capName: "decoder",
42194
42850
  capScope: "system",
42195
42851
  addonId: null,
42196
42852
  access: "view"
42197
42853
  },
42198
- "decoder.getShmStats": {
42199
- capName: "decoder",
42200
- capScope: "system",
42201
- addonId: null,
42202
- access: "view"
42203
- },
42204
- "decoder.getStats": {
42205
- capName: "decoder",
42206
- capScope: "system",
42207
- addonId: null,
42208
- access: "view"
42209
- },
42210
- "decoder.listActiveSessions": {
42211
- capName: "decoder",
42212
- capScope: "system",
42213
- addonId: null,
42214
- access: "view"
42215
- },
42216
- "decoder.openStream": {
42217
- capName: "decoder",
42218
- capScope: "system",
42219
- addonId: null,
42220
- access: "view"
42221
- },
42222
- "decoder.pullFrames": {
42223
- capName: "decoder",
42224
- capScope: "system",
42225
- addonId: null,
42226
- access: "view"
42227
- },
42228
- "decoder.pullHandles": {
42229
- capName: "decoder",
42230
- capScope: "system",
42231
- addonId: null,
42232
- access: "view"
42233
- },
42234
- "decoder.pushPacket": {
42235
- capName: "decoder",
42236
- capScope: "system",
42237
- addonId: null,
42238
- access: "view"
42239
- },
42240
42854
  "decoder.reprobeHwaccel": {
42241
42855
  capName: "decoder",
42242
42856
  capScope: "system",
42243
42857
  addonId: null,
42244
42858
  access: "create"
42245
42859
  },
42246
- "decoder.supportsCodec": {
42247
- capName: "decoder",
42248
- capScope: "system",
42249
- addonId: null,
42250
- access: "view"
42251
- },
42252
- "decoder.updateConfig": {
42253
- capName: "decoder",
42254
- capScope: "system",
42255
- addonId: null,
42256
- access: "view"
42257
- },
42258
42860
  "detectionPipeline.applyDeviceSettingsPatch": {
42259
42861
  capName: "detection-pipeline",
42260
42862
  capScope: "device",
@@ -43743,12 +44345,24 @@ Object.freeze({
43743
44345
  addonId: null,
43744
44346
  access: "view"
43745
44347
  },
44348
+ "localNetwork.addCustomAddress": {
44349
+ capName: "local-network",
44350
+ capScope: "system",
44351
+ addonId: null,
44352
+ access: "create"
44353
+ },
43746
44354
  "localNetwork.downloadCa": {
43747
44355
  capName: "local-network",
43748
44356
  capScope: "system",
43749
44357
  addonId: null,
43750
44358
  access: "view"
43751
44359
  },
44360
+ "localNetwork.getAddresses": {
44361
+ capName: "local-network",
44362
+ capScope: "system",
44363
+ addonId: null,
44364
+ access: "view"
44365
+ },
43752
44366
  "localNetwork.getAllowedAddresses": {
43753
44367
  capName: "local-network",
43754
44368
  capScope: "system",
@@ -43761,6 +44375,12 @@ Object.freeze({
43761
44375
  addonId: null,
43762
44376
  access: "view"
43763
44377
  },
44378
+ "localNetwork.getHubAddresses": {
44379
+ capName: "local-network",
44380
+ capScope: "system",
44381
+ addonId: null,
44382
+ access: "view"
44383
+ },
43764
44384
  "localNetwork.getNotificationEndpoint": {
43765
44385
  capName: "local-network",
43766
44386
  capScope: "system",
@@ -43797,6 +44417,12 @@ Object.freeze({
43797
44417
  addonId: null,
43798
44418
  access: "create"
43799
44419
  },
44420
+ "localNetwork.removeCustomAddress": {
44421
+ capName: "local-network",
44422
+ capScope: "system",
44423
+ addonId: null,
44424
+ access: "delete"
44425
+ },
43800
44426
  "localNetwork.resetAllowlistToBestMatch": {
43801
44427
  capName: "local-network",
43802
44428
  capScope: "system",
@@ -43809,6 +44435,12 @@ Object.freeze({
43809
44435
  addonId: null,
43810
44436
  access: "create"
43811
44437
  },
44438
+ "localNetwork.setAddressRole": {
44439
+ capName: "local-network",
44440
+ capScope: "system",
44441
+ addonId: null,
44442
+ access: "create"
44443
+ },
43812
44444
  "localNetwork.setAllowedAddresses": {
43813
44445
  capName: "local-network",
43814
44446
  capScope: "system",
@@ -45255,6 +45887,12 @@ Object.freeze({
45255
45887
  addonId: null,
45256
45888
  access: "create"
45257
45889
  },
45890
+ "pipelineAnalytics.setRetrainFrameComplete": {
45891
+ capName: "pipeline-analytics",
45892
+ capScope: "device",
45893
+ addonId: null,
45894
+ access: "create"
45895
+ },
45258
45896
  "pipelineAnalytics.setTrackFlags": {
45259
45897
  capName: "pipeline-analytics",
45260
45898
  capScope: "device",
@@ -45291,6 +45929,12 @@ Object.freeze({
45291
45929
  addonId: null,
45292
45930
  access: "delete"
45293
45931
  },
45932
+ "pipelineAnalytics.writeRetrainArchive": {
45933
+ capName: "pipeline-analytics",
45934
+ capScope: "device",
45935
+ addonId: null,
45936
+ access: "create"
45937
+ },
45294
45938
  "pipelineExecutor.cacheFrameInPool": {
45295
45939
  capName: "pipeline-executor",
45296
45940
  capScope: "system",
@@ -45303,13 +45947,13 @@ Object.freeze({
45303
45947
  addonId: null,
45304
45948
  access: "delete"
45305
45949
  },
45306
- "pipelineExecutor.deleteModel": {
45950
+ "pipelineExecutor.clearModelBoundDeviceOverrides": {
45307
45951
  capName: "pipeline-executor",
45308
45952
  capScope: "system",
45309
45953
  addonId: null,
45310
45954
  access: "delete"
45311
45955
  },
45312
- "pipelineExecutor.deleteTemplate": {
45956
+ "pipelineExecutor.deleteModel": {
45313
45957
  capName: "pipeline-executor",
45314
45958
  capScope: "system",
45315
45959
  addonId: null,
@@ -45453,12 +46097,6 @@ Object.freeze({
45453
46097
  addonId: null,
45454
46098
  access: "view"
45455
46099
  },
45456
- "pipelineExecutor.listTemplates": {
45457
- capName: "pipeline-executor",
45458
- capScope: "system",
45459
- addonId: null,
45460
- access: "view"
45461
- },
45462
46100
  "pipelineExecutor.rearmInferenceDevice": {
45463
46101
  capName: "pipeline-executor",
45464
46102
  capScope: "system",
@@ -45483,12 +46121,6 @@ Object.freeze({
45483
46121
  addonId: null,
45484
46122
  access: "create"
45485
46123
  },
45486
- "pipelineExecutor.saveTemplate": {
45487
- capName: "pipeline-executor",
45488
- capScope: "system",
45489
- addonId: null,
45490
- access: "create"
45491
- },
45492
46124
  "pipelineExecutor.setVideoPipelineSteps": {
45493
46125
  capName: "pipeline-executor",
45494
46126
  capScope: "system",
@@ -45507,41 +46139,35 @@ Object.freeze({
45507
46139
  addonId: null,
45508
46140
  access: "create"
45509
46141
  },
45510
- "pipelineExecutor.updateTemplate": {
45511
- capName: "pipeline-executor",
45512
- capScope: "system",
45513
- addonId: null,
45514
- access: "create"
45515
- },
45516
46142
  "pipelineExecutor.validatePipeline": {
45517
46143
  capName: "pipeline-executor",
45518
46144
  capScope: "system",
45519
46145
  addonId: null,
45520
46146
  access: "view"
45521
46147
  },
45522
- "pipelineOrchestrator.applyDeviceSettingsPatch": {
46148
+ "pipelineOrchestrator.applyAutoTune": {
45523
46149
  capName: "pipeline-orchestrator",
45524
46150
  capScope: "system",
45525
46151
  addonId: null,
45526
46152
  access: "create"
45527
46153
  },
45528
- "pipelineOrchestrator.assignAudio": {
46154
+ "pipelineOrchestrator.applyDeviceSettingsPatch": {
45529
46155
  capName: "pipeline-orchestrator",
45530
46156
  capScope: "system",
45531
46157
  addonId: null,
45532
46158
  access: "create"
45533
46159
  },
45534
- "pipelineOrchestrator.assignPipeline": {
46160
+ "pipelineOrchestrator.assignAudio": {
45535
46161
  capName: "pipeline-orchestrator",
45536
46162
  capScope: "system",
45537
46163
  addonId: null,
45538
46164
  access: "create"
45539
46165
  },
45540
- "pipelineOrchestrator.deleteTemplate": {
46166
+ "pipelineOrchestrator.assignPipeline": {
45541
46167
  capName: "pipeline-orchestrator",
45542
46168
  capScope: "system",
45543
46169
  addonId: null,
45544
- access: "delete"
46170
+ access: "create"
45545
46171
  },
45546
46172
  "pipelineOrchestrator.getAgentLoad": {
45547
46173
  capName: "pipeline-orchestrator",
@@ -45633,6 +46259,12 @@ Object.freeze({
45633
46259
  addonId: null,
45634
46260
  access: "view"
45635
46261
  },
46262
+ "pipelineOrchestrator.getEffectiveShares": {
46263
+ capName: "pipeline-orchestrator",
46264
+ capScope: "system",
46265
+ addonId: null,
46266
+ access: "view"
46267
+ },
45636
46268
  "pipelineOrchestrator.getGlobalMetrics": {
45637
46269
  capName: "pipeline-orchestrator",
45638
46270
  capScope: "system",
@@ -45669,19 +46301,19 @@ Object.freeze({
45669
46301
  addonId: null,
45670
46302
  access: "view"
45671
46303
  },
45672
- "pipelineOrchestrator.getReconcileFromDiskStatus": {
46304
+ "pipelineOrchestrator.getPlacementStats": {
45673
46305
  capName: "pipeline-orchestrator",
45674
46306
  capScope: "system",
45675
46307
  addonId: null,
45676
46308
  access: "view"
45677
46309
  },
45678
- "pipelineOrchestrator.listAgentSettings": {
46310
+ "pipelineOrchestrator.getReconcileFromDiskStatus": {
45679
46311
  capName: "pipeline-orchestrator",
45680
46312
  capScope: "system",
45681
46313
  addonId: null,
45682
46314
  access: "view"
45683
46315
  },
45684
- "pipelineOrchestrator.listTemplates": {
46316
+ "pipelineOrchestrator.listAgentSettings": {
45685
46317
  capName: "pipeline-orchestrator",
45686
46318
  capScope: "system",
45687
46319
  addonId: null,
@@ -45693,6 +46325,12 @@ Object.freeze({
45693
46325
  addonId: null,
45694
46326
  access: "create"
45695
46327
  },
46328
+ "pipelineOrchestrator.planAutoTune": {
46329
+ capName: "pipeline-orchestrator",
46330
+ capScope: "system",
46331
+ addonId: null,
46332
+ access: "view"
46333
+ },
45696
46334
  "pipelineOrchestrator.rebalance": {
45697
46335
  capName: "pipeline-orchestrator",
45698
46336
  capScope: "system",
@@ -45735,12 +46373,6 @@ Object.freeze({
45735
46373
  addonId: null,
45736
46374
  access: "create"
45737
46375
  },
45738
- "pipelineOrchestrator.saveTemplate": {
45739
- capName: "pipeline-orchestrator",
45740
- capScope: "system",
45741
- addonId: null,
45742
- access: "create"
45743
- },
45744
46376
  "pipelineOrchestrator.setAgentCapabilities": {
45745
46377
  capName: "pipeline-orchestrator",
45746
46378
  capScope: "system",
@@ -45753,12 +46385,6 @@ Object.freeze({
45753
46385
  addonId: null,
45754
46386
  access: "create"
45755
46387
  },
45756
- "pipelineOrchestrator.setAgentDetectWeight": {
45757
- capName: "pipeline-orchestrator",
45758
- capScope: "system",
45759
- addonId: null,
45760
- access: "create"
45761
- },
45762
46388
  "pipelineOrchestrator.setAgentInferenceDevices": {
45763
46389
  capName: "pipeline-orchestrator",
45764
46390
  capScope: "system",
@@ -45795,6 +46421,12 @@ Object.freeze({
45795
46421
  addonId: null,
45796
46422
  access: "create"
45797
46423
  },
46424
+ "pipelineOrchestrator.setCameraStepSettings": {
46425
+ capName: "pipeline-orchestrator",
46426
+ capScope: "system",
46427
+ addonId: null,
46428
+ access: "create"
46429
+ },
45798
46430
  "pipelineOrchestrator.setCameraStepToggle": {
45799
46431
  capName: "pipeline-orchestrator",
45800
46432
  capScope: "system",
@@ -45813,25 +46445,37 @@ Object.freeze({
45813
46445
  addonId: null,
45814
46446
  access: "create"
45815
46447
  },
46448
+ "pipelineOrchestrator.setLoadBalancingShares": {
46449
+ capName: "pipeline-orchestrator",
46450
+ capScope: "system",
46451
+ addonId: null,
46452
+ access: "create"
46453
+ },
45816
46454
  "pipelineOrchestrator.setPipelineDevicePin": {
45817
46455
  capName: "pipeline-orchestrator",
45818
46456
  capScope: "system",
45819
46457
  addonId: null,
45820
46458
  access: "create"
45821
46459
  },
45822
- "pipelineOrchestrator.unassignAudio": {
46460
+ "pipelineOrchestrator.setShareSource": {
45823
46461
  capName: "pipeline-orchestrator",
45824
46462
  capScope: "system",
45825
46463
  addonId: null,
45826
46464
  access: "create"
45827
46465
  },
45828
- "pipelineOrchestrator.unassignPipeline": {
46466
+ "pipelineOrchestrator.suggestShares": {
46467
+ capName: "pipeline-orchestrator",
46468
+ capScope: "system",
46469
+ addonId: null,
46470
+ access: "view"
46471
+ },
46472
+ "pipelineOrchestrator.unassignAudio": {
45829
46473
  capName: "pipeline-orchestrator",
45830
46474
  capScope: "system",
45831
46475
  addonId: null,
45832
46476
  access: "create"
45833
46477
  },
45834
- "pipelineOrchestrator.updateTemplate": {
46478
+ "pipelineOrchestrator.unassignPipeline": {
45835
46479
  capName: "pipeline-orchestrator",
45836
46480
  capScope: "system",
45837
46481
  addonId: null,
@@ -47271,12 +47915,6 @@ Object.freeze({
47271
47915
  addonId: null,
47272
47916
  access: "view"
47273
47917
  },
47274
- "streamBroker.pullFrameHandles": {
47275
- capName: "stream-broker",
47276
- capScope: "system",
47277
- addonId: null,
47278
- access: "view"
47279
- },
47280
47918
  "streamBroker.regenerateRtspToken": {
47281
47919
  capName: "stream-broker",
47282
47920
  capScope: "system",
@@ -47343,12 +47981,6 @@ Object.freeze({
47343
47981
  addonId: null,
47344
47982
  access: "create"
47345
47983
  },
47346
- "streamBroker.subscribeFrames": {
47347
- capName: "stream-broker",
47348
- capScope: "system",
47349
- addonId: null,
47350
- access: "create"
47351
- },
47352
47984
  "streamBroker.unassignProfile": {
47353
47985
  capName: "stream-broker",
47354
47986
  capScope: "system",
@@ -47361,12 +47993,6 @@ Object.freeze({
47361
47993
  addonId: null,
47362
47994
  access: "create"
47363
47995
  },
47364
- "streamBroker.unsubscribeFrames": {
47365
- capName: "stream-broker",
47366
- capScope: "system",
47367
- addonId: null,
47368
- access: "create"
47369
- },
47370
47996
  "streamCatalog.getCatalog": {
47371
47997
  capName: "stream-catalog",
47372
47998
  capScope: "device",
@@ -47661,18 +48287,36 @@ Object.freeze({
47661
48287
  addonId: null,
47662
48288
  access: "delete"
47663
48289
  },
48290
+ "userManagement.findUserByExternalIdentity": {
48291
+ capName: "user-management",
48292
+ capScope: "system",
48293
+ addonId: null,
48294
+ access: "view"
48295
+ },
47664
48296
  "userManagement.getTotpStatus": {
47665
48297
  capName: "user-management",
47666
48298
  capScope: "system",
47667
48299
  addonId: null,
47668
48300
  access: "view"
47669
48301
  },
48302
+ "userManagement.linkExternalIdentity": {
48303
+ capName: "user-management",
48304
+ capScope: "system",
48305
+ addonId: null,
48306
+ access: "create"
48307
+ },
47670
48308
  "userManagement.listApiKeys": {
47671
48309
  capName: "user-management",
47672
48310
  capScope: "system",
47673
48311
  addonId: null,
47674
48312
  access: "view"
47675
48313
  },
48314
+ "userManagement.listExternalIdentities": {
48315
+ capName: "user-management",
48316
+ capScope: "system",
48317
+ addonId: null,
48318
+ access: "view"
48319
+ },
47676
48320
  "userManagement.listOauthSessions": {
47677
48321
  capName: "user-management",
47678
48322
  capScope: "system",
@@ -47751,6 +48395,12 @@ Object.freeze({
47751
48395
  addonId: null,
47752
48396
  access: "create"
47753
48397
  },
48398
+ "userManagement.unlinkExternalIdentity": {
48399
+ capName: "user-management",
48400
+ capScope: "system",
48401
+ addonId: null,
48402
+ access: "delete"
48403
+ },
47754
48404
  "userManagement.updateUser": {
47755
48405
  capName: "user-management",
47756
48406
  capScope: "system",
@@ -48063,6 +48713,12 @@ Object.freeze({
48063
48713
  addonId: null,
48064
48714
  access: "create"
48065
48715
  },
48716
+ "webrtcSession.applyDownlinkProbe": {
48717
+ capName: "webrtc-session",
48718
+ capScope: "device",
48719
+ addonId: null,
48720
+ access: "create"
48721
+ },
48066
48722
  "webrtcSession.closeSession": {
48067
48723
  capName: "webrtc-session",
48068
48724
  capScope: "device",
@@ -49940,11 +50596,6 @@ Object.freeze({
49940
50596
  form: "single",
49941
50597
  optional: false
49942
50598
  }],
49943
- "decoder.createSession": [{
49944
- name: "deviceId",
49945
- form: "single",
49946
- optional: true
49947
- }],
49948
50599
  "detectionPipeline.applyDeviceSettingsPatch": [{
49949
50600
  name: "deviceId",
49950
50601
  form: "single",
@@ -51155,6 +51806,11 @@ Object.freeze({
51155
51806
  form: "single",
51156
51807
  optional: false
51157
51808
  }],
51809
+ "pipelineAnalytics.setRetrainFrameComplete": [{
51810
+ name: "deviceId",
51811
+ form: "single",
51812
+ optional: false
51813
+ }],
51158
51814
  "pipelineAnalytics.setTrackFlags": [{
51159
51815
  name: "deviceId",
51160
51816
  form: "single",
@@ -51175,6 +51831,11 @@ Object.freeze({
51175
51831
  form: "single",
51176
51832
  optional: false
51177
51833
  }],
51834
+ "pipelineExecutor.clearModelBoundDeviceOverrides": [{
51835
+ name: "deviceIds",
51836
+ form: "array",
51837
+ optional: true
51838
+ }],
51178
51839
  "pipelineExecutor.runPipeline": [{
51179
51840
  name: "deviceId",
51180
51841
  form: "single",
@@ -51280,6 +51941,11 @@ Object.freeze({
51280
51941
  form: "single",
51281
51942
  optional: false
51282
51943
  }],
51944
+ "pipelineOrchestrator.setCameraStepSettings": [{
51945
+ name: "deviceId",
51946
+ form: "single",
51947
+ optional: false
51948
+ }],
51283
51949
  "pipelineOrchestrator.setCameraStepToggle": [{
51284
51950
  name: "deviceId",
51285
51951
  form: "single",
@@ -52051,6 +52717,11 @@ Object.freeze({
52051
52717
  form: "single",
52052
52718
  optional: false
52053
52719
  }],
52720
+ "webrtcSession.applyDownlinkProbe": [{
52721
+ name: "deviceId",
52722
+ form: "single",
52723
+ optional: false
52724
+ }],
52054
52725
  "webrtcSession.closeSession": [{
52055
52726
  name: "deviceId",
52056
52727
  form: "single",
@@ -52280,6 +52951,8 @@ new Map(Object.entries({
52280
52951
  "detection-blind": "device-events",
52281
52952
  "node-online": "system",
52282
52953
  "node-offline": "system",
52954
+ "node-restarting": "system",
52955
+ "node-updating": "system",
52283
52956
  "node-inference-unavailable": "system",
52284
52957
  "addon-crash-loop": "system",
52285
52958
  "addon-update-available": "system",
@@ -52357,6 +53030,7 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
52357
53030
  kinds: [
52358
53031
  "node-offline",
52359
53032
  "node-online",
53033
+ "node-restarting",
52360
53034
  "node-inference-unavailable"
52361
53035
  ]
52362
53036
  },
@@ -52378,6 +53052,7 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
52378
53052
  label: "Server & container updates",
52379
53053
  kinds: [
52380
53054
  "server-update-available",
53055
+ "node-updating",
52381
53056
  "server-updated",
52382
53057
  "wrapper-update-available"
52383
53058
  ]
@@ -52525,6 +53200,7 @@ var STATE_SUMMARY_SECTION_VARS = [
52525
53200
  kinds: [
52526
53201
  "node-offline",
52527
53202
  "node-online",
53203
+ "node-restarting",
52528
53204
  "node-inference-unavailable"
52529
53205
  ]
52530
53206
  },
@@ -52546,6 +53222,7 @@ var STATE_SUMMARY_SECTION_VARS = [
52546
53222
  example: "server 1.2.377 → 1.2.378",
52547
53223
  kinds: [
52548
53224
  "server-update-available",
53225
+ "node-updating",
52549
53226
  "server-updated",
52550
53227
  "wrapper-update-available"
52551
53228
  ]
@@ -52578,7 +53255,7 @@ var STATE_SUMMARY_VARS = [
52578
53255
  {
52579
53256
  name: "summarySection",
52580
53257
  label: "Summary: this section",
52581
- description: "The section a per-section summary row is about (D698); on a summary sent as one message, every section it reports, comma-separated.",
53258
+ description: "The section a per-section summary row is about; on a summary sent as one message, every section it reports, comma-separated.",
52582
53259
  example: "Batterie scariche",
52583
53260
  group: "system",
52584
53261
  families: ["rule"],
@@ -53339,7 +54016,7 @@ var rtspCameraSchema = object({
53339
54016
  })).min(1)).describe("Published RTSP streams"),
53340
54017
  snapshotUrl: string().default("").describe("Snapshot URL (optional)"),
53341
54018
  username: string().default("").describe("Username"),
53342
- password: string().default("").describe("Password")
54019
+ password: string().default("").describe("Password").meta({ secret: true })
53343
54020
  });
53344
54021
  /**
53345
54022
  * Legacy storage shape: `[{ label: 'high'|'mid'|'low', url }]`.