@camstack/addon-provider-amcrest 0.2.130 → 0.2.132

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 +1191 -483
  2. package/dist/addon.mjs +1191 -483
  3. package/package.json +1 -1
package/dist/addon.mjs CHANGED
@@ -13,7 +13,7 @@ import { networkInterfaces } from "node:os";
13
13
  var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
14
14
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
15
15
  //#endregion
16
- //#region ../types/dist/event-category-BGmz_oxW.mjs
16
+ //#region ../types/dist/event-category-B_0XEcLF.mjs
17
17
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
18
18
  EventCategory["SystemBoot"] = "system.boot";
19
19
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -514,15 +514,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
514
514
  EventCategory["AgentWsDisconnected"] = "agent.ws.disconnected";
515
515
  EventCategory["AgentBackupActivated"] = "agent.backup.activated";
516
516
  EventCategory["OrchestrationSettingsUpdated"] = "orchestration.settings-updated";
517
- /**
518
- * Per-agent hwaccel preference changed (user override set, cleared, or
519
- * re-probed). Observability event — decoders pull the current pref at
520
- * `createSession`, so running sessions keep their current backend until
521
- * they rotate naturally (camera add/remove, stream restart). Future
522
- * work can wire a listener in stream-broker that force-rotates live
523
- * sessions; for now this event powers logs + admin-UI toast feedback.
524
- */
525
- EventCategory["PipelineAgentHwaccelChanged"] = "pipeline.agent-hwaccel-changed";
526
517
  EventCategory["MotionAnalysis"] = "detection.motion-analysis";
527
518
  /** All raw motion zones from CCL before minArea filter — for UI debug overlay. */
528
519
  EventCategory["MotionZonesRaw"] = "detection.motion-zones-raw";
@@ -5393,7 +5384,7 @@ var ZodIssueCode = {
5393
5384
  var ZodFirstPartyTypeKind;
5394
5385
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5395
5386
  //#endregion
5396
- //#region ../types/dist/sleep-DXKLNFvA.mjs
5387
+ //#region ../types/dist/sleep-B0JG7-_F.mjs
5397
5388
  /**
5398
5389
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5399
5390
  * window to float samples (D455).
@@ -6759,32 +6750,12 @@ object({
6759
6750
  audioCodec: string().optional(),
6760
6751
  metadata: record(string(), unknown()).readonly().optional()
6761
6752
  });
6762
- var EncodedPacketSchema = object({
6763
- type: _enum(["video", "audio"]),
6764
- data: _instanceof(Uint8Array),
6765
- pts: number(),
6766
- dts: number(),
6767
- keyframe: boolean(),
6768
- codec: string()
6769
- });
6770
- var DecodedFrameSchema = object({
6771
- data: _instanceof(Uint8Array),
6772
- width: number(),
6773
- height: number(),
6774
- format: _enum([
6775
- "jpeg",
6776
- "rgb",
6777
- "bgr",
6778
- "yuv420",
6779
- "gray"
6780
- ]),
6781
- timestamp: number()
6782
- });
6783
6753
  /**
6784
6754
  * Wire schema for `FrameHandle` — a zero-pixel, serialisable reference to a
6785
6755
  * frame in a shared-memory ring (Phase 5 / D9). Mirrors the `FrameHandle` TS
6786
- * interface in `interfaces/frame-handle.ts` field-for-field so a decoder cap
6787
- * method (`pullHandles`) can carry handles over tRPC / Moleculer.
6756
+ * interface in `interfaces/frame-handle.ts` field-for-field so a cap method
6757
+ * (the runner's native-crop and pipeline-executor inputs) can carry handles
6758
+ * over tRPC / Moleculer.
6788
6759
  *
6789
6760
  * The `satisfies` assertion below pins this schema to the interface: if a
6790
6761
  * field is added to / removed from `FrameHandle` without a matching schema
@@ -6810,50 +6781,6 @@ var FrameHandleSchema = object({
6810
6781
  slotCount: number().int().positive()
6811
6782
  });
6812
6783
  /**
6813
- * Pixel format a frame-handle subscriber can request from the broker
6814
- * (Phase 5 / D9). The packed, raster subset of `FrameFormat` — the formats a
6815
- * `frameSink: 'shm'` decoder session can write into a `FrameRing` slot.
6816
- * `jpeg` is excluded: a variable-length stream is not a fixed-stride ring
6817
- * payload, and no decoded-frame consumer requests it over the shm plane.
6818
- */
6819
- var FrameHandleFormatSchema = _enum([
6820
- "rgb",
6821
- "bgr",
6822
- "yuv420",
6823
- "gray"
6824
- ]);
6825
- /**
6826
- * Input for `stream-broker.subscribeFrames` (Phase 5 / D9). A consumer asks the
6827
- * broker for a `FrameHandle` stream of one `format`; the broker maintains one
6828
- * shared-memory ring per `(brokerId, format)` actually requested, so a `gray`
6829
- * subscriber (motion) and an `rgb` subscriber (detection) each read the format
6830
- * they asked for with no broker-side conversion.
6831
- */
6832
- var SubscribeFramesInputSchema = object({
6833
- brokerId: string(),
6834
- format: FrameHandleFormatSchema,
6835
- /**
6836
- * Optional reader-side cadence hint in frames per second. The broker does
6837
- * NOT throttle — latest-wins ring reads drop frames implicitly for a slow
6838
- * consumer. The value is echoed back in `SubscribeFramesResult.maxFps` so
6839
- * the consumer can pace its own `pullFrameHandles` polling.
6840
- */
6841
- maxFps: number().positive().optional(),
6842
- /** Short caller-identity tag (`motion`, `detection`, …) for diagnostics. */
6843
- tag: string().optional()
6844
- });
6845
- /**
6846
- * Result of `stream-broker.subscribeFrames`. The consumer then polls
6847
- * `pullFrameHandles({ subscriptionId, maxCount })` and feeds each returned
6848
- * `FrameHandle` to a `FrameRingReader`.
6849
- */
6850
- var SubscribeFramesResultSchema = object({
6851
- /** Opaque id the consumer passes to `pullFrameHandles` / `unsubscribeFrames`. */
6852
- subscriptionId: string(),
6853
- /** Reader-side cadence hint (frames/s) — echoes `SubscribeFramesInput.maxFps`. */
6854
- maxFps: number().nonnegative()
6855
- });
6856
- /**
6857
6784
  * Wire schema for a decoded audio chunk (Phase 5 / D9). Mirrors the
6858
6785
  * `DecodedAudioChunk` TS interface in `interfaces/stream-broker.ts`: PCM
6859
6786
  * sample bytes plus the track parameters a consumer needs to interpret them.
@@ -6861,8 +6788,8 @@ var SubscribeFramesResultSchema = object({
6861
6788
  * Audio chunks are tiny (a ~500ms AudioCodecSession window is a few KB of
6862
6789
  * Float32 PCM), so unlike video frames they ship their bytes INLINE over
6863
6790
  * tRPC / Moleculer — no shared-memory plane. `data` is typed `Uint8Array`
6864
- * (the wire-serialisable supertype of `Buffer`) to match `DecodedFrameSchema`
6865
- * / `EncodedPacketSchema`'s precedent; a `Buffer` is assignable to it.
6791
+ * (the wire-serialisable supertype of `Buffer`); a `Buffer` is assignable to
6792
+ * it.
6866
6793
  */
6867
6794
  var AudioChunkFormatSchema = _enum(AUDIO_CHUNK_FORMATS);
6868
6795
  var DecodedAudioChunkSchema = object({
@@ -6880,11 +6807,10 @@ var DecodedAudioChunkSchema = object({
6880
6807
  format: AudioChunkFormatSchema.optional()
6881
6808
  });
6882
6809
  /**
6883
- * Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9). The
6884
- * handle-free, ship-bytes-inline analogue of `subscribeFrames`: a consumer
6885
- * asks the broker for the decoded audio-chunk stream of one broker; the
6886
- * broker keeps a per-subscription bounded FIFO queue the consumer drains via
6887
- * `pullAudioChunks`.
6810
+ * Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9). Audio ships
6811
+ * its bytes inline: a consumer asks the broker for the decoded audio-chunk
6812
+ * stream of one broker; the broker keeps a per-subscription bounded FIFO queue
6813
+ * the consumer drains via `pullAudioChunks`.
6888
6814
  */
6889
6815
  var SubscribeAudioChunksInputSchema = object({
6890
6816
  brokerId: string(),
@@ -6915,9 +6841,7 @@ var BrokerStatsSchema = object({
6915
6841
  "stopped"
6916
6842
  ]),
6917
6843
  inputFps: number(),
6918
- decodeFps: number(),
6919
6844
  encodedSubscribers: number(),
6920
- decodedSubscribers: number(),
6921
6845
  uptimeMs: number(),
6922
6846
  bitrateKbps: number(),
6923
6847
  idrIntervalMs: number(),
@@ -6930,14 +6854,6 @@ var BrokerStatsSchema = object({
6930
6854
  preBufferMs: number(),
6931
6855
  preBufferPackets: number(),
6932
6856
  /**
6933
- * Moleculer node id of the decoder provider currently servicing this
6934
- * stream's decoded subscribers. `null` until the deferred decoder is
6935
- * created (no decoded clients yet, or codec not detected). Surfaces the
6936
- * runtime decoder placement so the UI can show "Decoder: <agent>" without
6937
- * a separate cap call per broker.
6938
- */
6939
- decoderNodeId: string().nullable(),
6940
- /**
6941
6857
  * Detected audio track parameters from the RTSP DESCRIBE / SDP. `null`
6942
6858
  * when the stream has no audio track or the broker is in cold start.
6943
6859
  * `supported = false` means the codec was detected but the local
@@ -10283,70 +10199,6 @@ var StorageLocationDeclarationSchema = object({
10283
10199
  "backup"
10284
10200
  ]).optional()
10285
10201
  });
10286
- var DecoderStatsSchema = object({
10287
- inputFps: number(),
10288
- outputFps: number(),
10289
- avgDecodeTimeMs: number(),
10290
- droppedFrames: number(),
10291
- /**
10292
- * Pull-mode adaptive-fps telemetry (optional — only pull sessions run the
10293
- * lag-driven controller; push sessions omit these). `lagMs` is the EWMA of
10294
- * the decoder's real-time drift (rising = falling behind live); `adaptiveFps`
10295
- * is the current lag-throttled emit rate (≤ `effectiveFps` ceiling).
10296
- */
10297
- lagMs: number().optional(),
10298
- effectiveFps: number().optional(),
10299
- adaptiveFps: number().optional()
10300
- });
10301
- var DecoderSessionConfigSchema = object({
10302
- codec: string(),
10303
- maxFps: number().default(0),
10304
- outputFormat: _enum([
10305
- "jpeg",
10306
- "rgb",
10307
- "bgr",
10308
- "yuv420",
10309
- "gray"
10310
- ]).default("jpeg"),
10311
- scale: number().default(1),
10312
- width: number().optional(),
10313
- height: number().optional(),
10314
- /**
10315
- * Identifier of the camera this decoder session serves. Optional
10316
- * because the cap is generic (any caller could request decode), but
10317
- * stream-broker passes it so decoder logs include `deviceId` for
10318
- * per-camera filtering when diagnosing failures (e.g. node-av
10319
- * sendPacket errors on a single hung camera).
10320
- */
10321
- deviceId: number().int().nonnegative().optional(),
10322
- /**
10323
- * Free-form tag for log scoping. Stream-broker uses
10324
- * `broker:<deviceId>/<profile>`. Decoder session logger surfaces it
10325
- * on every line so `grep tag=broker:5/high` filters one camera
10326
- * profile cleanly.
10327
- */
10328
- tag: string().optional(),
10329
- /**
10330
- * Where the session delivers decoded frames (Phase 5 / D9):
10331
- *
10332
- * - `'callback'` (default) — the legacy pixel path: decoded frames are
10333
- * buffered as `DecodedFrame`s and drained via `pullFrames`.
10334
- * - `'shm'` — the shared-memory frame plane: decoded frames are written
10335
- * into an OS shared-memory ring and drained as zero-pixel
10336
- * `FrameHandle`s via `pullHandles`. A session is one mode or the
10337
- * other — `pullFrames` returns nothing for an `'shm'` session and
10338
- * `pullHandles` returns nothing for a `'callback'` session.
10339
- */
10340
- frameSink: _enum(["callback", "shm"]).default("callback"),
10341
- /**
10342
- * Per-camera decoder DEBUG facility. When `true`, a pull-mode session emits
10343
- * a throttled (~1Hz) structured `decoder debug` line (effective/adaptive fps,
10344
- * real-time lag, dropped-frame delta, avg decode time, hwaccel). Mirrors the
10345
- * stream-broker's `streamingDebug` gate — off by default so production logs
10346
- * stay quiet and the emit path pays zero per-frame cost when disabled.
10347
- */
10348
- debug: boolean().optional()
10349
- });
10350
10202
  /**
10351
10203
  * Per-component log CHANNELS — the gate a hot path consults, and the registry
10352
10204
  * an addon declares its channels in.
@@ -10489,6 +10341,26 @@ var ClipSearchStrictnessSchema = _enum([
10489
10341
  "balanced",
10490
10342
  "strict"
10491
10343
  ]);
10344
+ /** Steps whose effect a root label can BE. */
10345
+ var LABEL_SUPPLY_STEP_IDS = [
10346
+ "animal-classifier",
10347
+ "vehicle-classifier",
10348
+ "package-detection"
10349
+ ];
10350
+ /** Steps whose box a root detection can BE. */
10351
+ var CROP_SUPPLY_STEP_IDS = ["plate-detection", "face-detection"];
10352
+ /**
10353
+ * Steps whose per-detection MASK a root detection can carry (D737). The live
10354
+ * mask step is `segmentation` — a frame-plane refiner that runs its own model
10355
+ * once per detection crop. (`instance-segmentation` is a dormant step id that
10356
+ * no camera tree carries.)
10357
+ */
10358
+ var MASK_SUPPLY_STEP_IDS = ["segmentation"];
10359
+ [
10360
+ ...LABEL_SUPPLY_STEP_IDS,
10361
+ ...CROP_SUPPLY_STEP_IDS,
10362
+ ...MASK_SUPPLY_STEP_IDS
10363
+ ];
10492
10364
  var MODEL_FORMATS = [
10493
10365
  "onnx",
10494
10366
  "coreml",
@@ -10517,7 +10389,53 @@ var ModelFormatEntrySchema = object({
10517
10389
  /** Multi-file payload (directory members or sibling files). */
10518
10390
  files: array(string()).readonly().optional(),
10519
10391
  /** Runtime(s) that can use this format. If omitted, inferred from ModelFormat key */
10520
- runtimes: array(_enum(["python"])).readonly().optional()
10392
+ runtimes: array(_enum(["python"])).readonly().optional(),
10393
+ /**
10394
+ * Content revision of the artefact, for one hosted OFF the CamStack mirror.
10395
+ * A format on the mirror leaves it unset: its revision (the sha256 of its
10396
+ * weight file) comes from the downloader's generated table, kept in step
10397
+ * with the mirror by `scripts/check-hosted-model-revisions.ts` (D744). A
10398
+ * node records the revision it downloaded next to the file
10399
+ * (`<file>.revision`); a copy with no record or a different one is stale
10400
+ * unless its weight file hashes to the revision, and a stale copy is
10401
+ * downloaded again, the old one serving until the new one is complete. No
10402
+ * revision at all ⇒ a file on disk is current, whatever it holds (D743).
10403
+ */
10404
+ revision: string().min(1).optional()
10405
+ });
10406
+ /**
10407
+ * What a node holds for one (model, format) (D746). `current` is a complete
10408
+ * copy at its catalog revision — exactly what `downloaded: true` means.
10409
+ * `stale` is bytes on disk that are not (yet) proven current under D743/D744:
10410
+ * no or a different revision record, or a missing sibling. `missing` is no
10411
+ * copy. `downloaded` alone folds `stale` into "not downloaded", which hid
10412
+ * reclaimable bytes and a copy about to be replaced.
10413
+ */
10414
+ var ModelOnDiskStateSchema = _enum([
10415
+ "current",
10416
+ "stale",
10417
+ "missing"
10418
+ ]);
10419
+ /**
10420
+ * The numeric precision of one format's BUILD (D746) — reported only when the
10421
+ * build states it (file-name token, an INT8 variant, an EdgeTPU compile, a
10422
+ * CamStack Core ML export). Absent means "not stated", never "fp32".
10423
+ */
10424
+ var ModelFormatPrecisionSchema = _enum([
10425
+ "fp32",
10426
+ "fp16",
10427
+ "int8"
10428
+ ]);
10429
+ /**
10430
+ * One format of one model as a node's `pipelineExecutor.getSchema` reports it.
10431
+ * `onDisk` / `precision` are optional for version skew: a runner that predates
10432
+ * them omits them, and a reader falls back to `downloaded`.
10433
+ */
10434
+ var PipelineModelFormatStatusSchema = object({
10435
+ downloaded: boolean(),
10436
+ sizeMB: number(),
10437
+ onDisk: ModelOnDiskStateSchema.optional(),
10438
+ precision: ModelFormatPrecisionSchema.optional()
10521
10439
  });
10522
10440
  /**
10523
10441
  * Extra file that must be downloaded alongside the model (e.g., labels JSON, dict.txt).
@@ -10621,6 +10539,46 @@ var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { wei
10621
10539
  /** True when the weights or their data forbid commercial use. */
10622
10540
  nonCommercial: boolean().optional()
10623
10541
  }));
10542
+ /**
10543
+ * One step a ROOT detector can supply from its own output (D730) — see
10544
+ * `ModelCatalogEntry.suppliesSteps`.
10545
+ *
10546
+ * - `label`: the root's raw class IS the step's answer. `labelToEffect` maps
10547
+ * the root's label to the step's vocabulary; `uncovered` is the vocabulary
10548
+ * the root cannot produce (shown as unavailable, never a blocker).
10549
+ * - `crop`: the root draws the box the step would have found (`license_plate`
10550
+ * for plate-detection, `face` for face-detection). The box becomes a detail
10551
+ * child of the `parentMacro` detection that contains it — never a track.
10552
+ * - `mask`: the root's decode emits an instance mask with every detection (a
10553
+ * YOLO26-seg root, D737) — the `segmentation` step's result, carried on the
10554
+ * detection in the shape that step produces. Derived from the model's
10555
+ * postprocessor on read, never stored by an import.
10556
+ */
10557
+ var RootStepSupplySchema = discriminatedUnion("kind", [
10558
+ object({
10559
+ kind: literal("label"),
10560
+ stepId: _enum(LABEL_SUPPLY_STEP_IDS),
10561
+ labelToEffect: record(string(), string()),
10562
+ uncovered: array(string()).readonly()
10563
+ }),
10564
+ object({
10565
+ kind: literal("crop"),
10566
+ stepId: _enum(CROP_SUPPLY_STEP_IDS),
10567
+ rootLabels: array(string()).readonly(),
10568
+ parentMacro: _enum(["vehicle", "person"]),
10569
+ childClass: _enum(["plate", "face"]),
10570
+ /**
10571
+ * The root's smaller input side, stamped on read by `rootSuppliesOf` from
10572
+ * the model entry — what a step's `minRootInputPx` gate judges. Never
10573
+ * stored by an import.
10574
+ */
10575
+ rootInputPx: number().int().positive().optional()
10576
+ }),
10577
+ object({
10578
+ kind: literal("mask"),
10579
+ stepId: _enum(MASK_SUPPLY_STEP_IDS)
10580
+ })
10581
+ ]);
10624
10582
  var ModelCatalogEntrySchema = object({
10625
10583
  id: string(),
10626
10584
  name: string(),
@@ -10686,6 +10644,35 @@ var ModelCatalogEntrySchema = object({
10686
10644
  */
10687
10645
  defaultConfidence: number().min(0).max(1).optional(),
10688
10646
  /**
10647
+ * Per-MODEL default of the per-class confidence floors (`minConfidence<Macro>`
10648
+ * on a detector step), keyed by macro class: `{ person: 0.45 }`. A class
10649
+ * absent here runs at the step slider's global default. The same row shape
10650
+ * the floor measurement produces (`model-floors.json`: modelId → floors), so
10651
+ * a measured table is copied in as-is. An operator override is bound to the
10652
+ * model it was made for and does not survive a model change (D738). A custom
10653
+ * / imported model may declare it; without it, the global defaults apply.
10654
+ */
10655
+ defaultClassFloors: record(string(), number().min(0).max(1)).optional(),
10656
+ /**
10657
+ * The inference precision this model's OpenVINO IR needs on an Intel GPU.
10658
+ * Absent ⇒ the device default (f16 on a GPU). Set to `'f32'` for an FP32 IR
10659
+ * that produces invalid output at f16 — measured 2026-10-07 for YOLO26
10660
+ * base IRs (`yolo26s`: 0 true / 146 false positives; `yolo26m*`: NaN
10661
+ * scores) on the Core Ultra iGPU and the N100. Threaded to the pool as
10662
+ * `PoolModelConfig.gpuInferencePrecision`; the pool sets
10663
+ * INFERENCE_PRECISION_HINT on a GPU only. Costs ~60% latency on the GPU.
10664
+ */
10665
+ gpuInferencePrecision: _enum(["f32", "f16"]).optional(),
10666
+ /**
10667
+ * ROOT detectors only: per supplied step (`animal-classifier`, …), the
10668
+ * minimum DETECTION score from which this root's own fine label (species,
10669
+ * vehicle type — D736 root supply) is taken (D741). Below it the detection
10670
+ * keeps its macro class without the fine label. `1` = never take it from
10671
+ * this root. Absent ⇒ no floor beyond the macro floor. The supplied step's
10672
+ * `minConfidence` slider, bound to the ROOT model, overrides it.
10673
+ */
10674
+ suppliedLabelFloors: record(string(), number().min(0).max(1)).optional(),
10675
+ /**
10689
10676
  * When true, the executor produces a landmark-aligned crop (similarity warp
10690
10677
  * onto the canonical template) before this step runs, instead of a plain
10691
10678
  * axis-aligned bbox crop. Required for face-recognition embedders (ArcFace):
@@ -10747,6 +10734,16 @@ var ModelCatalogEntrySchema = object({
10747
10734
  */
10748
10735
  classMap: DetectionCatalogClassMapSchema.optional(),
10749
10736
  /**
10737
+ * The pipeline steps this ROOT detector can supply from its own output
10738
+ * (D730): its labels name a step's effect (`deer` for `animal-classifier`)
10739
+ * or draw a step's box (`license_plate` for `plate-detection`). Computed at
10740
+ * import from THIS model's labelmap by `deriveRootSupplies`, never written
10741
+ * by hand and never assumed per family; a row without it is derived on read
10742
+ * (`rootSuppliesOf`). Whether a camera uses it is the step's own
10743
+ * `useRootModel` flag (`resolveRootSupply`).
10744
+ */
10745
+ suppliesSteps: array(RootStepSupplySchema).readonly().optional(),
10746
+ /**
10750
10747
  * The model's CLIP feature-space contract (text encoder, dimension, vector
10751
10748
  * index, token window, search floor) — see `clip-model.ts`. Present ONLY on a
10752
10749
  * CLIP image encoder; its absence is what "not a CLIP model" means to the
@@ -12348,13 +12345,6 @@ var BrokerRtspClientSchema = object({
12348
12345
  lastRtpAt: number(),
12349
12346
  bytesSent: number()
12350
12347
  });
12351
- var BrokerDecodedClientSchema = object({
12352
- tag: string(),
12353
- subscribedAt: number(),
12354
- maxFps: number(),
12355
- framesDelivered: number(),
12356
- framesDropped: number()
12357
- });
12358
12348
  var BrokerAudioClientSchema = object({
12359
12349
  tag: string(),
12360
12350
  subscribedAt: number(),
@@ -12446,7 +12436,6 @@ var BrokerEncodedClientSchema = object({
12446
12436
  });
12447
12437
  var BrokerClientsSchema = object({
12448
12438
  rtsp: array(BrokerRtspClientSchema).readonly(),
12449
- decoded: array(BrokerDecodedClientSchema).readonly(),
12450
12439
  audio: array(BrokerAudioClientSchema).readonly(),
12451
12440
  encoded: array(BrokerEncodedClientSchema).readonly(),
12452
12441
  pipeClients: number(),
@@ -12815,11 +12804,7 @@ method(object({
12815
12804
  auth: "admin"
12816
12805
  }), method(object({ brokerId: string() }), BrokerClientsSchema), method(object({
12817
12806
  brokerId: string(),
12818
- channel: _enum([
12819
- "rtsp",
12820
- "decoded",
12821
- "audio"
12822
- ]),
12807
+ channel: _enum(["rtsp", "audio"]),
12823
12808
  handle: string()
12824
12809
  }), object({ killed: boolean() }), {
12825
12810
  kind: "mutation",
@@ -12854,10 +12839,7 @@ method(object({
12854
12839
  }), method(SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, { kind: "mutation" }), method(object({
12855
12840
  subscriptionId: string(),
12856
12841
  maxCount: number().int().positive().default(8)
12857
- }), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(SubscribeFramesInputSchema, SubscribeFramesResultSchema, { kind: "mutation" }), method(object({
12858
- subscriptionId: string(),
12859
- maxCount: number().int().positive().default(4)
12860
- }), array(FrameHandleSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(object({
12842
+ }), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(object({
12861
12843
  brokerId: string(),
12862
12844
  seconds: number().min(0).max(30)
12863
12845
  }), _void(), {
@@ -14116,54 +14098,12 @@ id: union([string(), number()]) }), {
14116
14098
  kind: "mutation",
14117
14099
  auth: "admin"
14118
14100
  });
14119
- /**
14120
- * shm ring usage stats for a `frameSink: 'shm'` decoder session —
14121
- * exposed via `decoder.getShmStats` so downstream consumers can
14122
- * observe ring pressure (slot count, byte budget, hit/miss ratio).
14123
- */
14124
- var ShmRingStatsSchema = object({
14125
- sessionId: string(),
14126
- slotCount: number().int(),
14127
- slotByteLength: number().int(),
14128
- segmentBytes: number().int(),
14129
- budgetMb: number().int(),
14130
- framesWritten: number().int(),
14131
- getFrameHits: number().int(),
14132
- getFrameMisses: number().int()
14133
- });
14134
- method(object({ codec: string() }), boolean()), method(_void(), object({
14101
+ method(_void(), object({
14135
14102
  id: string(),
14136
14103
  name: string(),
14137
- isPullMode: boolean().optional(),
14138
- priority: number().optional(),
14139
14104
  hwaccel: string().optional(),
14140
14105
  probedBestHwaccel: string().optional()
14141
- })), method(DecoderSessionConfigSchema, object({
14142
- sessionId: string(),
14143
- nodeId: string()
14144
- })), method(object({ sessionId: string() }), _void()), method(object({
14145
- sessionId: string(),
14146
- packet: EncodedPacketSchema
14147
- }), _void()), method(object({
14148
- sessionId: string(),
14149
- url: string()
14150
- }), _void()), method(object({
14151
- sessionId: string(),
14152
- maxCount: number().default(1),
14153
- waitMs: number().optional()
14154
- }), array(DecodedFrameSchema)), method(object({
14155
- sessionId: string(),
14156
- maxCount: number().default(1),
14157
- waitMs: number().optional()
14158
- }), array(FrameHandleSchema)), method(object({ handle: FrameHandleSchema }), DecodedFrameSchema.nullable()), method(object({ sessionId: string() }), ShmRingStatsSchema.nullable()), method(object({
14159
- sessionId: string(),
14160
- config: DecoderSessionConfigSchema.partial()
14161
- }), _void()), method(object({ sessionId: string() }), DecoderStatsSchema), method(_void(), array(object({
14162
- sessionId: string(),
14163
- codec: string(),
14164
- outputFormat: string(),
14165
- createdAtMs: number()
14166
- })).readonly()), method(_void(), object({ backend: string() }), {
14106
+ })), method(_void(), object({ backend: string() }), {
14167
14107
  kind: "mutation",
14168
14108
  auth: "admin"
14169
14109
  });
@@ -15276,6 +15216,10 @@ var DeviceInfoSchema = object({
15276
15216
  isCamera: boolean(),
15277
15217
  /** Current config values — serializable snapshot */
15278
15218
  config: record(string(), unknown()),
15219
+ /** Paths inside `config` the device's schema declares secret (D783) —
15220
+ * what the non-admin redaction withholds. Paths, never values. Absent
15221
+ * when the owning runner has not reported them. */
15222
+ secretConfigPaths: array(string()).optional(),
15279
15223
  /** Hardware + identity blob (manufacturer / model / firmware / sn /
15280
15224
  * uid / mac / …). Populated by drivers; editable via setMetadata. */
15281
15225
  metadata: record(string(), unknown()).nullable().optional(),
@@ -15481,7 +15425,13 @@ var DeviceRegisterPayloadSchema = object({
15481
15425
  * call (workers re-register on init), so probe-driven updates
15482
15426
  * (e.g. PTZ flag flipping after the abilities probe) propagate. */
15483
15427
  features: array(string()).optional(),
15484
- config: record(string(), unknown())
15428
+ config: record(string(), unknown()),
15429
+ /** Config paths the device's own schema DECLARES secret
15430
+ * (`.meta({ secret: true })` — dotted, `[]` for array items, e.g.
15431
+ * `connection.password`). Re-published on every register; the non-admin
15432
+ * redaction withholds them at any depth (D783). Optional: an older runner
15433
+ * omits it and the keyword backstop applies. */
15434
+ secretConfigPaths: array(string()).optional()
15485
15435
  });
15486
15436
  var DeviceRemovePayloadSchema = object({ deviceId: number() });
15487
15437
  var DevicePersistConfigPayloadSchema = object({
@@ -16308,6 +16258,12 @@ method(_void(), array(string()).readonly(), { auth: "admin" }), method(object({
16308
16258
  kind: "mutation",
16309
16259
  auth: "admin"
16310
16260
  });
16261
+ var HUB_ADDRESS_ROLES = [
16262
+ "appConnections",
16263
+ "notificationTaps",
16264
+ "internal",
16265
+ "publicEndpoint"
16266
+ ];
16311
16267
  /**
16312
16268
  * Transport bounds for AI capability methods.
16313
16269
  *
@@ -17134,7 +17090,14 @@ var LoginMethodContributionSchema = discriminatedUnion("kind", [
17134
17090
  icon: string().optional(),
17135
17091
  /** Addon-owned HTTP route the button navigates to (GET). */
17136
17092
  startUrl: string(),
17137
- stage: LoginStageEnum
17093
+ stage: LoginStageEnum,
17094
+ /**
17095
+ * The provider names an external identity a signed-in user can link to
17096
+ * their own account (D782): `auth.listLinkableProviders` /
17097
+ * `beginExternalLink` offer exactly the redirect methods that set this,
17098
+ * whatever their id. Absent / false — a login button only (magic-link).
17099
+ */
17100
+ linkable: boolean().optional()
17138
17101
  }),
17139
17102
  object({
17140
17103
  kind: literal("widget"),
@@ -18910,6 +18873,8 @@ var NcSystemEventKindSchema = _enum([
18910
18873
  "stream-offline",
18911
18874
  "node-online",
18912
18875
  "node-offline",
18876
+ "node-restarting",
18877
+ "node-updating",
18913
18878
  "node-inference-unavailable",
18914
18879
  "detection-blind",
18915
18880
  "addon-crash-loop",
@@ -20515,7 +20480,13 @@ var NcAlarmModeDelaysListSchema = array(object({
20515
20480
  * Absent = false (logged, not sent). Even when true it is not sent when that same sensor
20516
20481
  * is the one that starts the entry delay — the entry-delay notification already names it.
20517
20482
  */
20518
- notifySensorRewatched: boolean().optional()
20483
+ notifySensorRewatched: boolean().optional(),
20484
+ /**
20485
+ * D735: notify "ignored" when a sensor this arm bypassed really MOVED while armed (its own
20486
+ * change time is after the arm) and set nothing off. Absent = false (logged, not sent). A
20487
+ * re-sync, a recovery from `unavailable` or a duplicate is never announced, switch or not.
20488
+ */
20489
+ notifySensorIgnored: boolean().optional()
20519
20490
  })).max(8).refine(uniqueModes, { message: "modeDelays: at most one entry per arm mode" });
20520
20491
  var NcAlarmModeDelaysEditListSchema = array(object({
20521
20492
  mode: AlarmArmModeSchema,
@@ -20528,7 +20499,9 @@ var NcAlarmModeDelaysEditListSchema = array(object({
20528
20499
  /** D706: set the switch, or `null` to clear it (back to the default, false). */
20529
20500
  notifyDuringEntryDelay: boolean().nullable().optional(),
20530
20501
  /** D706: set the switch, or `null` to clear it (back to the default, false). */
20531
- notifySensorRewatched: boolean().nullable().optional()
20502
+ notifySensorRewatched: boolean().nullable().optional(),
20503
+ /** D735: set the switch, or `null` to clear it (back to the default, false). */
20504
+ notifySensorIgnored: boolean().nullable().optional()
20532
20505
  })).max(8).refine(uniqueModes, { message: "modeDelays: at most one edit per arm mode" });
20533
20506
  /** One switch of the alarm table: put ONE device on, or take it off, ONE mode's list. */
20534
20507
  var NcAlarmNonBlockingEditSchema = object({
@@ -21506,8 +21479,8 @@ Object.freeze(Object.fromEntries([{
21506
21479
  var CLUSTER_STEP_SETTING_FIELDS = [{
21507
21480
  stepId: "face-embedding",
21508
21481
  key: "minLandmarkFaceSize",
21509
- label: "Min face size for recognition (detection px)",
21510
- 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.",
21482
+ label: "Min face size to embed (detection-frame px)",
21483
+ 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.",
21511
21484
  type: "slider",
21512
21485
  min: 0,
21513
21486
  max: 64,
@@ -22559,7 +22532,13 @@ var RetrainFrameSchema = object({
22559
22532
  sizeBytes: number().int(),
22560
22533
  width: number().int(),
22561
22534
  height: number().int(),
22562
- copiedAt: number()
22535
+ copiedAt: number(),
22536
+ /** When the CAMERA captured the frame. Absent on a copy taken before D785. */
22537
+ capturedAt: number().optional(),
22538
+ /** The operator's "every subject in this frame is boxed". Detector
22539
+ * evaluation keeps only complete frames: an unboxed subject would count as
22540
+ * a false positive. */
22541
+ complete: boolean()
22563
22542
  });
22564
22543
  /** Why a copy-on-select could not be honoured — named, never a silent skip. */
22565
22544
  var RetrainCopyRefusalSchema = _enum([
@@ -22580,6 +22559,51 @@ var RetrainFrameListSchema = object({
22580
22559
  /** What the page pre-selects — the native key frame when one survives. */
22581
22560
  autoPickMediaId: number().int().optional()
22582
22561
  });
22562
+ /**
22563
+ * Which frames an annotated export carries. Every field narrows; an empty
22564
+ * filter is every annotated copy. A dataset VERSION is a frozen `frameIds`
22565
+ * list owned by whoever trains (the training orchestrator), so `frameIds` is
22566
+ * the primitive a version export uses; `batchId` re-selects what an earlier
22567
+ * export carried (`exportedInBatch`).
22568
+ */
22569
+ var RetrainExportFilterSchema = object({
22570
+ deviceIds: array(number()).optional(),
22571
+ frameIds: array(string()).max(2e4).optional(),
22572
+ batchId: string().optional(),
22573
+ /** Only frames the operator marked complete (all subjects boxed). */
22574
+ completeOnly: boolean().optional()
22575
+ });
22576
+ /**
22577
+ * `frames`: the full frame copies, boxes in `annotations.json`.
22578
+ * `crops`: additionally one JPEG per subject, cut with the runtime detail-crop
22579
+ * convention — the classifier layout.
22580
+ */
22581
+ var RetrainExportLayoutSchema = _enum(["frames", "crops"]);
22582
+ /**
22583
+ * Where `writeRetrainArchive` streams the tar: one HTTP request whose body is
22584
+ * the archive, sent chunk by chunk. Covers a presigned PUT and a provider
22585
+ * addon's data-plane upload route alike. Headers are sent verbatim and never
22586
+ * logged.
22587
+ */
22588
+ var RetrainArchiveTargetSchema = object({
22589
+ kind: literal("http"),
22590
+ method: _enum(["PUT", "POST"]),
22591
+ url: string().url(),
22592
+ headers: record(string(), string()).optional()
22593
+ });
22594
+ var RetrainArchiveResultSchema = object({
22595
+ batchId: string(),
22596
+ frames: number().int(),
22597
+ crops: number().int(),
22598
+ annotations: number().int(),
22599
+ /** Frames planned but not shipped (unreadable copy, path too long). */
22600
+ missing: number().int(),
22601
+ bytes: number().int(),
22602
+ /** sha256 of the exact bytes sent. */
22603
+ sha256: string(),
22604
+ /** The target's HTTP status. */
22605
+ status: number().int()
22606
+ });
22583
22607
  /** What the operator asked the assist to look for. */
22584
22608
  var RetrainAssistSubjectSchema = discriminatedUnion("kind", [object({
22585
22609
  kind: literal("package"),
@@ -23374,9 +23398,25 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
23374
23398
  }), RetrainTransitionResultSchema, {
23375
23399
  kind: "mutation",
23376
23400
  auth: "admin"
23377
- }), method(object({ deviceIds: array(number()).optional() }), object({ url: string() }), {
23401
+ }), method(RetrainExportFilterSchema.extend({ layout: RetrainExportLayoutSchema.optional() }), object({ url: string() }), {
23378
23402
  kind: "query",
23379
23403
  auth: "admin"
23404
+ }), method(object({
23405
+ deviceId: number(),
23406
+ trackId: string(),
23407
+ frameId: string(),
23408
+ complete: boolean()
23409
+ }), RetrainFrameSchema, {
23410
+ kind: "mutation",
23411
+ auth: "admin"
23412
+ }), method(object({
23413
+ filter: RetrainExportFilterSchema,
23414
+ layout: RetrainExportLayoutSchema,
23415
+ target: RetrainArchiveTargetSchema
23416
+ }), RetrainArchiveResultSchema, {
23417
+ kind: "mutation",
23418
+ auth: "admin",
23419
+ timeoutMs: 60 * 6e4
23380
23420
  }), method(object({
23381
23421
  /** Which of the three event tables owns the row. */
23382
23422
  ownerType: EventOwnerTypeSchema,
@@ -23427,6 +23467,34 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
23427
23467
  timestamp: number()
23428
23468
  });
23429
23469
  /**
23470
+ * A root model's boxes standing in for one crop-kind step's own inference
23471
+ * (D730) — see `runPipeline.suppliedRoot`.
23472
+ */
23473
+ var SuppliedRootOutputSchema = object({
23474
+ stepId: string(),
23475
+ /** The root model that drew the boxes — stamped on the result. */
23476
+ modelId: string(),
23477
+ detections: array(object({
23478
+ /** `[x1, y1, x2, y2]` in the pixels of the call's image. */
23479
+ bbox: tuple([
23480
+ number(),
23481
+ number(),
23482
+ number(),
23483
+ number()
23484
+ ]),
23485
+ score: number(),
23486
+ /**
23487
+ * Five facial landmarks in the same pixels — a face the step's own
23488
+ * detector already re-found inside a root face box (D730), so its
23489
+ * embedder child aligns it exactly as it aligns any detected face.
23490
+ */
23491
+ landmarks: array(object({
23492
+ x: number(),
23493
+ y: number()
23494
+ })).optional()
23495
+ })).min(1)
23496
+ });
23497
+ /**
23430
23498
  * Reference to the frame's retained NATIVE surface + the parent crop's placement
23431
23499
  * within the frame, so the executor can re-cut a leaf child ROI at native
23432
23500
  * resolution on the detail plane. See the `runPipeline` `nativeCropRef` field.
@@ -23474,7 +23542,7 @@ var FrameRefSchema = object({
23474
23542
  timestamp: number(),
23475
23543
  capturedAt: number().optional()
23476
23544
  });
23477
- var ModelFormatSchema$1 = _enum([
23545
+ var ModelFormatSchema$2 = _enum([
23478
23546
  "onnx",
23479
23547
  "coreml",
23480
23548
  "openvino",
@@ -23492,7 +23560,7 @@ var PipelineSlotSchema = _enum([
23492
23560
  var PipelineEngineChoiceSchema = object({
23493
23561
  runtime: literal("python"),
23494
23562
  backend: string(),
23495
- format: ModelFormatSchema$1,
23563
+ format: ModelFormatSchema$2,
23496
23564
  device: string().optional()
23497
23565
  });
23498
23566
  /**
@@ -23531,32 +23599,15 @@ var PipelineDefaultStepSchema = lazy(() => object({
23531
23599
  group: string().optional(),
23532
23600
  settings: record(string(), unknown()).optional()
23533
23601
  }));
23534
- var PipelineTemplateStepSchema = lazy(() => object({
23535
- addonId: string(),
23536
- enabled: boolean(),
23537
- modelId: string(),
23538
- children: array(PipelineTemplateStepSchema).readonly(),
23539
- settings: record(string(), unknown()).optional()
23540
- }));
23541
- var PipelineTemplateSchema$1 = object({
23542
- id: string(),
23543
- name: string(),
23544
- createdAt: string(),
23545
- updatedAt: string(),
23546
- engine: PipelineEngineChoiceSchema,
23547
- steps: array(PipelineTemplateStepSchema).readonly()
23548
- });
23549
23602
  var PipelineModelOptionSchema = object({
23550
23603
  id: string(),
23551
23604
  name: string(),
23552
- formats: record(string(), object({
23553
- downloaded: boolean(),
23554
- sizeMB: number()
23555
- })),
23605
+ formats: record(string(), PipelineModelFormatStatusSchema),
23556
23606
  group: ModelVariantGroupSchema.optional(),
23557
23607
  legacy: boolean().optional(),
23558
23608
  provider: ModelProviderIdSchema.optional(),
23559
- defaultConfidence: number().optional()
23609
+ defaultConfidence: number().optional(),
23610
+ suppliesSteps: array(RootStepSupplySchema).readonly().optional()
23560
23611
  });
23561
23612
  var ConfigFieldBridge = custom();
23562
23613
  var PipelineAddonSchemaSchema = object({
@@ -23718,6 +23769,22 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
23718
23769
  }), {
23719
23770
  kind: "mutation",
23720
23771
  auth: "admin"
23772
+ }), method(object({
23773
+ nodeId: string(),
23774
+ deviceIds: array(number()).readonly().optional(),
23775
+ dryRun: boolean()
23776
+ }), object({
23777
+ entries: array(object({
23778
+ deviceId: number(),
23779
+ keys: array(string()).readonly()
23780
+ })).readonly(),
23781
+ refused: array(object({
23782
+ deviceId: number(),
23783
+ reason: string()
23784
+ })).readonly()
23785
+ }), {
23786
+ kind: "mutation",
23787
+ auth: "admin"
23721
23788
  }), method(object({ nodeId: string() }), object({ unhealthy: array(object({
23722
23789
  /** `<backend>:<device>`, e.g. `openvino:gpu`. */
23723
23790
  deviceKey: string(),
@@ -23743,22 +23810,14 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
23743
23810
  }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(object({
23744
23811
  steps: array(PipelineStepInputSchema),
23745
23812
  deviceKey: string().optional()
23746
- }), PipelineValidationResultSchema), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
23747
- name: string(),
23748
- steps: array(PipelineTemplateStepSchema).readonly(),
23749
- engine: PipelineEngineChoiceSchema
23750
- }), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({
23751
- id: string(),
23752
- name: string().optional(),
23753
- steps: array(PipelineTemplateStepSchema).readonly().optional()
23754
- }), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({ id: string() }), _void(), { kind: "mutation" }), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string() }), ModelAvailabilityListBridge), method(object({
23813
+ }), PipelineValidationResultSchema), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string() }), ModelAvailabilityListBridge), method(object({
23755
23814
  addonId: string(),
23756
23815
  modelId: string(),
23757
- format: ModelFormatSchema$1
23816
+ format: ModelFormatSchema$2
23758
23817
  }), DownloadModelResultSchema, { kind: "mutation" }), method(object({
23759
23818
  addonId: string(),
23760
23819
  modelId: string(),
23761
- format: ModelFormatSchema$1
23820
+ format: ModelFormatSchema$2
23762
23821
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
23763
23822
  steps: array(PipelineStepInputSchema).min(1),
23764
23823
  frame: FrameInputSchema.optional(),
@@ -23824,7 +23883,16 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
23824
23883
  * `device-not-servable`), and nothing reaches the camera's live
23825
23884
  * trace stream. Absent ⇒ unchanged behaviour.
23826
23885
  */
23827
- replay: literal(true).optional()
23886
+ replay: literal(true).optional(),
23887
+ /**
23888
+ * Root-supplied detections for the tree's ROOT step (D730). Set by
23889
+ * `runDetailSubtree` when the camera's root model supplies a crop-kind
23890
+ * step (a Frigate+ `license_plate` for `plate-detection`): the step is
23891
+ * NOT inferred, these boxes are its output, and its children (the plate
23892
+ * reader) run on them through their own crop policy. Boxes are in the
23893
+ * PIXELS of the image this call carries. Absent ⇒ the root step runs.
23894
+ */
23895
+ suppliedRoot: SuppliedRootOutputSchema.optional()
23828
23896
  }), PipelineRunResultBridge, { kind: "mutation" }), method(object({
23829
23897
  steps: array(PipelineStepInputSchema).min(1),
23830
23898
  frames: array(FrameInputSchema).min(1).max(255),
@@ -23906,6 +23974,375 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
23906
23974
  filename: string().optional(),
23907
23975
  settings: record(string(), unknown()).optional()
23908
23976
  }), AudioTestResultSchema, { kind: "mutation" }), method(_void(), ConfigUISchemaNullableBridge);
23977
+ /**
23978
+ * The wire shapes of the Auto tune plan and apply (D745), used by the
23979
+ * `pipeline-orchestrator` cap. The recommender's own types
23980
+ * (`recommend.ts`) are the TS face of the same data; these
23981
+ * schemas are what crosses the cap boundary.
23982
+ */
23983
+ var ModelFormatSchema$1 = _enum(MODEL_FORMATS);
23984
+ /** The operator's range for it. */
23985
+ var MIN_SESSIONS_PER_DEVICE_RANGE = {
23986
+ min: 1,
23987
+ max: 8
23988
+ };
23989
+ var HardwareClassIdSchema = _enum([
23990
+ "intel-core-ultra",
23991
+ "intel-n-series",
23992
+ "apple-m-base",
23993
+ "apple-m-pro",
23994
+ "unknown"
23995
+ ]);
23996
+ var AcceleratorKindSchema = _enum([
23997
+ "intel-npu",
23998
+ "intel-igpu",
23999
+ "x86-cpu",
24000
+ "arm-cpu",
24001
+ "apple-ane",
24002
+ "coral"
24003
+ ]);
24004
+ var RecommendationReasonSchema = discriminatedUnion("kind", [
24005
+ object({
24006
+ kind: literal("capacity"),
24007
+ sessions: number(),
24008
+ minSessions: number()
24009
+ }),
24010
+ object({
24011
+ kind: literal("tie-faster"),
24012
+ over: string(),
24013
+ recallDelta: number()
24014
+ }),
24015
+ object({
24016
+ kind: literal("stepped-down"),
24017
+ from: string(),
24018
+ to: string(),
24019
+ limitedBy: string()
24020
+ }),
24021
+ object({
24022
+ kind: literal("no-fit-lightest"),
24023
+ sessions: number(),
24024
+ minSessions: number()
24025
+ }),
24026
+ object({
24027
+ kind: literal("derived-latency"),
24028
+ modelId: string()
24029
+ }),
24030
+ object({ kind: literal("cpu-device") }),
24031
+ object({ kind: literal("coral-untouched") }),
24032
+ object({ kind: literal("device-disabled") }),
24033
+ object({ kind: literal("device-unavailable") }),
24034
+ object({ kind: literal("node-offline") }),
24035
+ object({ kind: literal("no-hardware-facts") }),
24036
+ object({
24037
+ kind: literal("no-measured-data"),
24038
+ hardwareClass: HardwareClassIdSchema
24039
+ }),
24040
+ object({
24041
+ kind: literal("no-family-build"),
24042
+ format: ModelFormatSchema$1
24043
+ })
24044
+ ]);
24045
+ var DeviceModelChoiceSchema = object({
24046
+ modelId: string(),
24047
+ p50Ms: number(),
24048
+ fps: number(),
24049
+ measured: boolean(),
24050
+ /** Parallel sessions at the camera rate with the headroom kept free: ⌊fps × (1 − headroom) / camera fps⌋. */
24051
+ capacitySessions: number(),
24052
+ personRecall: number()
24053
+ });
24054
+ var DeviceRecommendationSchema = object({
24055
+ deviceKey: string(),
24056
+ accelerator: AcceleratorKindSchema.nullable(),
24057
+ enabled: boolean(),
24058
+ available: boolean(),
24059
+ chosen: DeviceModelChoiceSchema.nullable(),
24060
+ reasons: array(RecommendationReasonSchema).readonly()
24061
+ });
24062
+ var NodeRecommendationSchema = object({
24063
+ nodeId: string(),
24064
+ reachable: boolean(),
24065
+ hardwareClass: HardwareClassIdSchema.nullable(),
24066
+ cpuModel: string().nullable(),
24067
+ skipped: boolean(),
24068
+ acceleratorModelId: string().nullable(),
24069
+ devices: array(DeviceRecommendationSchema).readonly(),
24070
+ reasons: array(RecommendationReasonSchema).readonly()
24071
+ });
24072
+ var ModelPinChangeSchema = object({
24073
+ stepId: string(),
24074
+ before: string().nullable(),
24075
+ after: string().nullable()
24076
+ });
24077
+ var NodeDeviceChangeSchema = object({
24078
+ nodeId: string(),
24079
+ deviceKey: string(),
24080
+ madeExplicit: boolean(),
24081
+ modelPins: array(ModelPinChangeSchema).readonly(),
24082
+ thresholds: array(object({
24083
+ stepId: string(),
24084
+ keys: array(string()).readonly()
24085
+ })).readonly()
24086
+ });
24087
+ var CameraOverrideClearSchema = object({
24088
+ deviceId: number(),
24089
+ source: _enum(["step-override", "wholesale"]),
24090
+ nodeId: string(),
24091
+ deviceKey: string().nullable(),
24092
+ stepId: string(),
24093
+ modelIdBefore: string().nullable(),
24094
+ keys: array(string()).readonly()
24095
+ });
24096
+ var DetectorStoreClearSchema = object({
24097
+ deviceId: number(),
24098
+ keys: array(string()).readonly()
24099
+ });
24100
+ var AutoTuneWarningSchema = discriminatedUnion("kind", [
24101
+ object({
24102
+ kind: literal("detector-store-cluster-wide"),
24103
+ skippedNodes: array(string()).readonly()
24104
+ }),
24105
+ object({
24106
+ kind: literal("detector-store-unreadable"),
24107
+ error: string()
24108
+ }),
24109
+ object({
24110
+ kind: literal("coral-enabled"),
24111
+ nodeId: string(),
24112
+ deviceKey: string()
24113
+ })
24114
+ ]);
24115
+ var AutoTuneOptionsSchema = object({
24116
+ /** Share of each accelerator's throughput kept free (0.3–0.5). */
24117
+ headroom: number().min(.3).max(.5).default(.4),
24118
+ /**
24119
+ * The least number of parallel sessions every device must sustain at the
24120
+ * camera rate with the headroom kept free (D755). The most accurate model
24121
+ * that reaches it wins.
24122
+ */
24123
+ minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
24124
+ });
24125
+ var AutoTunePlanSchema = object({
24126
+ /** Hash of everything the apply will write — the apply refuses a different one. */
24127
+ planHash: string(),
24128
+ family: literal("yolov9"),
24129
+ headroom: number(),
24130
+ minSessionsPerDevice: number(),
24131
+ /** The detection rate a session is counted at (the fastest camera running the pipeline root). */
24132
+ cameraFps: number(),
24133
+ generatedAt: number(),
24134
+ nodes: array(NodeRecommendationSchema).readonly(),
24135
+ nodeChanges: array(NodeDeviceChangeSchema).readonly(),
24136
+ cameraClears: array(CameraOverrideClearSchema).readonly(),
24137
+ detectorStoreClears: array(DetectorStoreClearSchema).readonly(),
24138
+ warnings: array(AutoTuneWarningSchema).readonly()
24139
+ });
24140
+ var AutoTuneApplyInputSchema = object({
24141
+ planHash: string(),
24142
+ headroom: number().min(.3).max(.5).default(.4),
24143
+ minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
24144
+ });
24145
+ var AutoTunePhaseResultSchema = object({
24146
+ phase: _enum([
24147
+ "download",
24148
+ "camera-overrides",
24149
+ "detector-thresholds",
24150
+ "node-models",
24151
+ "redispatch"
24152
+ ]),
24153
+ ok: boolean(),
24154
+ detail: string()
24155
+ });
24156
+ var AutoTuneApplyResultSchema = discriminatedUnion("kind", [
24157
+ object({
24158
+ kind: literal("applied"),
24159
+ planHash: string(),
24160
+ phases: array(AutoTunePhaseResultSchema).readonly()
24161
+ }),
24162
+ object({
24163
+ kind: literal("aborted"),
24164
+ phases: array(AutoTunePhaseResultSchema).readonly()
24165
+ }),
24166
+ object({
24167
+ kind: literal("stale"),
24168
+ plan: AutoTunePlanSchema
24169
+ }),
24170
+ object({
24171
+ kind: literal("refused"),
24172
+ reason: _enum(["apply-in-progress"])
24173
+ })
24174
+ ]);
24175
+ /**
24176
+ * Wire shapes of the Load balancing surface (D748): the session placement
24177
+ * policy, the atomic share write, the observed placement statistics, the
24178
+ * hardware share suggestion and the stale device pins.
24179
+ */
24180
+ /**
24181
+ * How a new detection session picks its node and device.
24182
+ * - `least-loaded` — the historical rule: lowest `attached / weight`, a
24183
+ * constant node order at a tie (D37). An idle node always ties at 0, so a
24184
+ * weight only bites once a node already holds a session.
24185
+ * - `share` — the share of PARALLEL sessions is held to the weights, and a
24186
+ * full or drowning node yields to a free one (D748).
24187
+ */
24188
+ var SessionPlacementPolicySchema = _enum(["least-loaded", "share"]);
24189
+ var LoadBalancingSharesInputSchema = object({
24190
+ /** nodeId → share (> 0). A node left out keeps its weight. */
24191
+ nodes: record(string(), number().positive()).default({}),
24192
+ /** nodeId → deviceKey → share (> 0). A device left out keeps its weight. */
24193
+ devices: record(string(), record(string(), number().positive())).default({})
24194
+ });
24195
+ var PlacementStatsInputSchema = object({
24196
+ /** Window the observed shares are averaged over (default 1 h, max 24 h). */
24197
+ windowMs: number().int().min(6e4).max(1440 * 60 * 1e3).default(3600 * 1e3) });
24198
+ var PlacementDeviceStatsSchema = object({
24199
+ deviceKey: string(),
24200
+ /** Sessions running on this device now. */
24201
+ sessionsNow: number(),
24202
+ /** Sessions started on this device inside the window. */
24203
+ sessionsStarted: number(),
24204
+ /** Time-weighted share of the node's parallel sessions over the window (0–1); null = no session ran. */
24205
+ observedShare: number().nullable()
24206
+ });
24207
+ var PlacementNodeStatsSchema = object({
24208
+ nodeId: string(),
24209
+ sessionsNow: number(),
24210
+ sessionsStarted: number(),
24211
+ /** Time-weighted share of the cluster's parallel sessions over the window (0–1); null = none ran. */
24212
+ observedShare: number().nullable(),
24213
+ /** Most sessions this node ran at once inside the window. */
24214
+ peakSessions: number(),
24215
+ /** Sessions a share election handed elsewhere because this node was full or drowning. */
24216
+ yieldsAway: number(),
24217
+ devices: array(PlacementDeviceStatsSchema).readonly()
24218
+ });
24219
+ /** A camera's device pin that the session path cannot honour. */
24220
+ var StaleDevicePinSchema = object({
24221
+ deviceId: number(),
24222
+ deviceKey: string(),
24223
+ /** `disabled` — the key exists on some node but is not enabled anywhere; `absent` — no node has it. */
24224
+ reason: _enum(["disabled", "absent"])
24225
+ });
24226
+ var PlacementStatsSchema = object({
24227
+ policy: SessionPlacementPolicySchema,
24228
+ windowMs: number(),
24229
+ /** How much of the window was actually observed (the hub keeps it in memory). */
24230
+ observedForMs: number(),
24231
+ sessionsNow: number(),
24232
+ /** Most parallel sessions across the cluster inside the window. */
24233
+ clusterPeakSessions: number(),
24234
+ nodes: array(PlacementNodeStatsSchema).readonly(),
24235
+ stalePins: array(StaleDevicePinSchema).readonly()
24236
+ });
24237
+ /**
24238
+ * Where an automatic share's capacity comes from (D755).
24239
+ * - `hardware` — the static capacity of each device at its Auto tune model:
24240
+ * the measured latency table for the node's hardware class.
24241
+ * - `benchmark` — the node's own measured capacity (node benchmark results).
24242
+ * A node with no results falls back to `hardware`, and says so.
24243
+ */
24244
+ var CapacitySourceSchema = _enum(["hardware", "benchmark"]);
24245
+ /** Why a node under the `benchmark` source was sized from hardware instead. */
24246
+ var CapacityFallbackSchema = _enum(["no-benchmark-results", "partial-benchmark-results"]);
24247
+ var SuggestSharesInputSchema = object({
24248
+ headroom: number().min(.3).max(.5).default(.4),
24249
+ /** Default `hardware`. */
24250
+ source: CapacitySourceSchema.default("hardware")
24251
+ });
24252
+ var SuggestedDeviceShareSchema = object({
24253
+ deviceKey: string(),
24254
+ /** Share of the node (0–100, rounded). */
24255
+ share: number(),
24256
+ modelId: string().nullable(),
24257
+ /** Inferences per second at that model, from the measured table; null when sized by a benchmark. */
24258
+ fps: number().nullable(),
24259
+ /** False for a table cell derived from another chip; true for a measured cell or a benchmark. */
24260
+ measured: boolean(),
24261
+ /**
24262
+ * Advisory session cap: ⌊fps × (1 − headroom) / camera fps⌋ from the table,
24263
+ * or the benchmark's measured max sessions. Never enforced.
24264
+ */
24265
+ suggestedMaxSessions: number().nullable()
24266
+ });
24267
+ var SuggestedNodeShareSchema = object({
24268
+ nodeId: string(),
24269
+ /** Share of the cluster (0–100, rounded); null = node skipped (offline, unknown hardware). */
24270
+ share: number().nullable(),
24271
+ /** Parallel sessions the node sustains at the suggested models with the headroom kept free. */
24272
+ capacitySessions: number(),
24273
+ devices: array(SuggestedDeviceShareSchema).readonly(),
24274
+ skippedReason: string().nullable(),
24275
+ /** What this node's capacity was read from; null when the node is skipped. */
24276
+ capacitySource: CapacitySourceSchema.nullable(),
24277
+ /** Set when the `benchmark` source was asked for and this node used `hardware`. */
24278
+ capacityFallback: CapacityFallbackSchema.nullable()
24279
+ });
24280
+ var SuggestSharesResultSchema = object({
24281
+ headroom: number(),
24282
+ /** The source asked for; each node says what it actually used. */
24283
+ source: CapacitySourceSchema,
24284
+ /** Camera detection rate the capacity is counted in (the fastest camera's fps). */
24285
+ cameraFps: number(),
24286
+ /** The Auto tune capacity floor the models were picked at. */
24287
+ minSessionsPerDevice: number(),
24288
+ nodes: array(SuggestedNodeShareSchema).readonly()
24289
+ });
24290
+ /**
24291
+ * Where the node and device shares come from (D750, D755).
24292
+ * - `hardware` (default) — computed by the system from each node's static
24293
+ * capacity (its accelerators at their Auto tune models, from the measured
24294
+ * latency table), recomputed whenever a node or device joins, leaves, is
24295
+ * switched on or off, or changes model. No load input.
24296
+ * - `benchmark` — the same, from each node's measured capacity (node
24297
+ * benchmark results); a node without results falls back to `hardware`.
24298
+ * - `manual` — the operator's stored sliders.
24299
+ * Either way a node or device that cannot take sessions gives its share to
24300
+ * the others in proportion; the stored values are never rewritten for that.
24301
+ */
24302
+ var ShareSourceSchema = _enum([
24303
+ "hardware",
24304
+ "benchmark",
24305
+ "manual"
24306
+ ]);
24307
+ var SetShareSourceInputSchema = object({ source: ShareSourceSchema });
24308
+ object({
24309
+ nodes: record(string(), number()),
24310
+ devices: record(string(), record(string(), number()))
24311
+ });
24312
+ var EffectiveDeviceShareSchema = object({
24313
+ deviceKey: string(),
24314
+ /** Can take sessions now (enabled, available, can run the root). */
24315
+ eligible: boolean(),
24316
+ /** The share the source assigns, as a percentage of the node's devices. */
24317
+ configuredPct: number(),
24318
+ /** The share actually used, after an ineligible device's share went to the others. */
24319
+ effectivePct: number()
24320
+ });
24321
+ var EffectiveNodeShareSchema = object({
24322
+ nodeId: string(),
24323
+ eligible: boolean(),
24324
+ configuredPct: number(),
24325
+ effectivePct: number(),
24326
+ /** Automatic sources: what this node's share was computed from; null under `manual` or before the first answer. */
24327
+ capacitySource: CapacitySourceSchema.nullable(),
24328
+ /** Automatic `benchmark`: why this node used `hardware` instead. */
24329
+ capacityFallback: CapacityFallbackSchema.nullable(),
24330
+ devices: array(EffectiveDeviceShareSchema).readonly()
24331
+ });
24332
+ var EffectiveSharesSchema = object({
24333
+ source: ShareSourceSchema,
24334
+ policy: SessionPlacementPolicySchema,
24335
+ /** An automatic source with no computed answer yet: the stored sliders are used meanwhile. */
24336
+ autoPending: boolean(),
24337
+ /** When the automatic shares were last computed (ms epoch); null = never. */
24338
+ computedAt: number().nullable(),
24339
+ /** What made the system recompute them last. */
24340
+ trigger: string().nullable(),
24341
+ nodes: array(EffectiveNodeShareSchema).readonly(),
24342
+ /** The relative weights the election reads (before eligibility). */
24343
+ nodeWeights: record(string(), number()),
24344
+ deviceWeights: record(string(), record(string(), number()))
24345
+ });
23909
24346
  object({
23910
24347
  activeCameras: number(),
23911
24348
  throttledCameras: number(),
@@ -24823,14 +25260,15 @@ var RunnerLocalLoadSchema = object({
24823
25260
  * Per-inference-device live load (multi-device C4). One entry per deviceKey
24824
25261
  * this runner currently has attached cameras on, so the orchestrator's second
24825
25262
  * `balance()` pass (over a node's devices) weights on real per-pool session
24826
- * counts. Empty on single-device / pre-multi-device runners. `queueDepthTotal`
24827
- * per device is 0 until the pool backlog gets a public accessor (follow-up).
25263
+ * counts. Empty on single-device / pre-multi-device runners. There is no
25264
+ * per-device queue depth: the inference pool's backlog has no accessor, and
25265
+ * a field that always read 0 was removed rather than shown as a measurement
25266
+ * (D762).
24828
25267
  */
24829
25268
  devices: array(object({
24830
25269
  deviceKey: string(),
24831
25270
  backend: string(),
24832
- attachedCameras: number(),
24833
- queueDepthTotal: number()
25271
+ attachedCameras: number()
24834
25272
  })).default([]),
24835
25273
  /** Hardware capability flags reported by this node. */
24836
25274
  hardware: object({
@@ -24966,7 +25404,22 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
24966
25404
  */
24967
25405
  cropJpeg: string().optional(),
24968
25406
  parent: DetailParentSchema,
24969
- steps: array(string()).optional()
25407
+ steps: array(string()).optional(),
25408
+ /**
25409
+ * The camera's root model already drew this step's boxes (D730): a
25410
+ * `license_plate` inside the parent vehicle. The named step is NOT
25411
+ * inferred — these FRAME-space boxes are its output — and its
25412
+ * requested children (the plate reader) run on them. Absent ⇒ every
25413
+ * requested step infers as before.
25414
+ */
25415
+ supplied: object({
25416
+ stepId: string(),
25417
+ modelId: string(),
25418
+ boxes: array(object({
25419
+ bbox: NativeCropBboxSchema,
25420
+ score: number()
25421
+ })).min(1)
25422
+ }).optional()
24970
25423
  }), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" }), method(object({
24971
25424
  /** Catalog step id, e.g. `clip-embedding`. */
24972
25425
  stepId: string(),
@@ -25029,14 +25482,6 @@ var CameraPipelineConfigSchema = object({
25029
25482
  settings: record(string(), unknown()).readonly().optional()
25030
25483
  }).nullable().optional()
25031
25484
  });
25032
- var PipelineTemplateSchema = object({
25033
- id: string(),
25034
- name: string(),
25035
- description: string().optional(),
25036
- config: CameraPipelineConfigSchema,
25037
- createdAt: string(),
25038
- updatedAt: string()
25039
- });
25040
25485
  var DeviceStepConfigSchema = object({
25041
25486
  modelId: string().optional(),
25042
25487
  settings: record(string(), unknown()).optional(),
@@ -25110,9 +25555,10 @@ var CameraStepOverridePatchSchema = object({
25110
25555
  modelId: string().optional(),
25111
25556
  settings: record(string(), unknown()).readonly().optional()
25112
25557
  });
25558
+ var CameraStepSettingsSchema = record(string(), record(string(), unknown()).readonly());
25113
25559
  var CameraPipelineSettingsSchema = object({
25114
- pinnedAgentNodeId: string().optional(),
25115
25560
  stepToggles: record(string(), boolean()).optional(),
25561
+ stepSettings: CameraStepSettingsSchema.optional(),
25116
25562
  stepOverridesByDevice: record(string(), record(string(), record(string(), CameraStepOverridePatchSchema))).optional(),
25117
25563
  pipelineByAgent: record(string(), CameraPipelineForAgentSchema).optional()
25118
25564
  });
@@ -25145,7 +25591,10 @@ var PipelineAssignmentSchema = object({
25145
25591
  });
25146
25592
  /**
25147
25593
  * Per-agent load summary surfaced to the load balancer + dashboards.
25148
- * Aggregated from each runner's `getLocalLoad` cap call.
25594
+ * Aggregated from each runner's `getLocalLoad` cap call. In the
25595
+ * `getAgentLoad` report, a single-device node's default-pool sessions (no
25596
+ * `deviceKey`) are credited to its one eligible device in `load.devices` —
25597
+ * the default pool IS that device (D745); the balancer's census stays raw.
25149
25598
  */
25150
25599
  var AgentLoadSummarySchema = object({
25151
25600
  nodeId: string(),
@@ -25234,26 +25683,27 @@ var CameraBrokerStatusSchema = object({
25234
25683
  width: number(),
25235
25684
  height: number(),
25236
25685
  subscribers: number(),
25237
- inFps: number(),
25238
- outFps: number()
25686
+ /**
25687
+ * Encoded packets/s the broker receives from the camera. null when the
25688
+ * broker's stats read failed — unknown, never 0 (a 0 here reads as a stall).
25689
+ * There is no output rate: decoding runs in the session decode workers, not
25690
+ * in the broker, so the broker's own decoded-frame rate is 0 on every live
25691
+ * camera and is not served (D758).
25692
+ */
25693
+ inFps: number().nullable()
25239
25694
  })).readonly(),
25240
25695
  webrtcSessions: number(),
25241
25696
  rtspRestream: boolean()
25242
25697
  });
25243
- /** Shared-memory ring statistics within the decoder block. */
25244
- var CameraDecoderShmSchema = object({
25245
- framesWritten: number(),
25246
- getFrameHits: number(),
25247
- getFrameMisses: number(),
25248
- budgetMb: number()
25249
- });
25250
- /** Decoder block — null when the decoder stage is unreachable or inactive. */
25251
- var CameraDecoderStatusSchema = object({
25252
- nodeId: string(),
25253
- formats: array(string()).readonly(),
25254
- sessionCount: number(),
25255
- shm: CameraDecoderShmSchema
25256
- });
25698
+ /**
25699
+ * Decoder block — WHERE decode runs (co-located with the detection node by
25700
+ * construction); null when the camera has no detection node. It carries no
25701
+ * frame counter: the shared-memory plane whose counters it used to serve is
25702
+ * gone, and those fields read 0 forever. Whether frames actually flow is read
25703
+ * from `detection.actualFps` (frames delivered to and processed by the
25704
+ * detector), never from a counter nothing feeds.
25705
+ */
25706
+ var CameraDecoderStatusSchema = object({ nodeId: string() });
25257
25707
  /** Motion block — null when motion detection is not active for this device. */
25258
25708
  var CameraMotionStatusSchema = object({
25259
25709
  enabled: boolean(),
@@ -25610,12 +26060,6 @@ method(object({
25610
26060
  }), object({ success: literal(true) }), {
25611
26061
  kind: "mutation",
25612
26062
  auth: "admin"
25613
- }), method(object({
25614
- agentNodeId: string(),
25615
- detectWeight: number().positive().nullable()
25616
- }), object({ success: literal(true) }), {
25617
- kind: "mutation",
25618
- auth: "admin"
25619
26063
  }), method(object({
25620
26064
  agentNodeId: string(),
25621
26065
  detect: boolean().nullable().optional(),
@@ -25657,6 +26101,15 @@ method(object({
25657
26101
  }), {
25658
26102
  kind: "mutation",
25659
26103
  auth: "admin"
26104
+ }), method(AutoTuneOptionsSchema, AutoTunePlanSchema, { auth: "admin" }), method(AutoTuneApplyInputSchema, AutoTuneApplyResultSchema, {
26105
+ kind: "mutation",
26106
+ auth: "admin"
26107
+ }), method(LoadBalancingSharesInputSchema, object({ success: literal(true) }), {
26108
+ kind: "mutation",
26109
+ auth: "admin"
26110
+ }), method(PlacementStatsInputSchema, PlacementStatsSchema, { auth: "admin" }), method(SuggestSharesInputSchema, SuggestSharesResultSchema, { auth: "admin" }), method(_void(), EffectiveSharesSchema, { auth: "admin" }), method(SetShareSourceInputSchema, object({ success: literal(true) }), {
26111
+ kind: "mutation",
26112
+ auth: "admin"
25660
26113
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
25661
26114
  deviceId: number(),
25662
26115
  addonId: string(),
@@ -25673,6 +26126,13 @@ method(object({
25673
26126
  }), object({ success: literal(true) }), {
25674
26127
  kind: "mutation",
25675
26128
  auth: "admin"
26129
+ }), method(object({
26130
+ deviceId: number(),
26131
+ addonId: string(),
26132
+ settings: record(string(), unknown()).nullable()
26133
+ }), object({ success: literal(true) }), {
26134
+ kind: "mutation",
26135
+ auth: "admin"
25676
26136
  }), method(object({
25677
26137
  deviceId: number(),
25678
26138
  agentNodeId: string(),
@@ -25696,25 +26156,7 @@ method(object({
25696
26156
  }), method(_void(), DiskReconcileJobSchema, {
25697
26157
  kind: "mutation",
25698
26158
  auth: "admin"
25699
- }), method(_void(), DiskReconcileJobSchema, { auth: "admin" }), method(_void(), array(PipelineTemplateSchema).readonly()), method(object({
25700
- name: string(),
25701
- description: string().optional(),
25702
- config: CameraPipelineConfigSchema
25703
- }), PipelineTemplateSchema, {
25704
- kind: "mutation",
25705
- auth: "admin"
25706
- }), method(object({
25707
- id: string(),
25708
- name: string().optional(),
25709
- description: string().optional(),
25710
- config: CameraPipelineConfigSchema.optional()
25711
- }), PipelineTemplateSchema, {
25712
- kind: "mutation",
25713
- auth: "admin"
25714
- }), method(object({ id: string() }), object({ success: literal(true) }), {
25715
- kind: "mutation",
25716
- auth: "admin"
25717
- });
26159
+ }), method(_void(), DiskReconcileJobSchema, { auth: "admin" });
25718
26160
  /**
25719
26161
  * Cap → event-kind mapping for the SENSOR / CONTROL cap families — the table
25720
26162
  * `pipeline-analytics.listEventKinds` uses to turn a linked device's bound
@@ -26408,7 +26850,19 @@ var SsoBridgeClaimsSchema = object({
26408
26850
  * editing a descriptor must not retroactively extend or shorten a link the
26409
26851
  * operator already consented to.
26410
26852
  */
26411
- refreshTtl: union([number().int().positive(), literal("never")]).optional()
26853
+ refreshTtl: union([number().int().positive(), literal("never")]).optional(),
26854
+ /**
26855
+ * Opaque handle of a hub-side LINK intent (D782). Set by an OIDC callback
26856
+ * that was started from a signed-in user's "Link" button: the finish then
26857
+ * links this identity to the intent's user instead of signing anyone in.
26858
+ * The handle carries no user id — the hub resolves it, single-use.
26859
+ */
26860
+ linkIntent: string().optional(),
26861
+ /**
26862
+ * Verified `iss` of the id_token behind an OIDC login bridge (D782). A
26863
+ * subject is unique only per issuer, so a link is bound to it.
26864
+ */
26865
+ issuer: string().optional()
26412
26866
  });
26413
26867
  method(object({
26414
26868
  claims: SsoBridgeClaimsSchema,
@@ -28476,8 +28930,6 @@ var WebrtcStreamChoiceSchema = object({
28476
28930
  ]).nullable(),
28477
28931
  /** Input FPS from the camera (null for adaptive). */
28478
28932
  inputFps: number().nullable(),
28479
- /** Decoded FPS (null for adaptive). */
28480
- decodeFps: number().nullable(),
28481
28933
  /** Bitrate in kbps (null for adaptive). */
28482
28934
  bitrateKbps: number().nullable()
28483
28935
  });
@@ -28754,7 +29206,22 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
28754
29206
  * field their hints were silently stripped by the schema and the
28755
29207
  * adaptive ladder started blind on the client's display size.
28756
29208
  */
28757
- hints: webrtcClientHintsSchema.optional()
29209
+ hints: webrtcClientHintsSchema.optional(),
29210
+ /**
29211
+ * Talk-back (D771): relay the PEER's audio to the device's speaker
29212
+ * through the `intercom` cap's push-talk triple. When `true` and the
29213
+ * offer lets the peer send audio, the answer's audio is `sendrecv`
29214
+ * and every inbound frame goes to `intercom.pushTalkAudio` for this
29215
+ * `deviceId`; absent/false answers `sendonly`, as for every viewer.
29216
+ *
29217
+ * TRUSTED-CALLER ONLY. Set by the Alexa export for an Echo on a camera
29218
+ * with `intercom`, when the linked user may control that camera. The
29219
+ * hub STRIPS it from every request-bound call (a browser), exactly as
29220
+ * it overwrites `relayOnly` — a viewer's talk permission is the
29221
+ * intercom cap's own surface (share tokens gate it there), and this
29222
+ * flag must not become a second door to the camera's speaker.
29223
+ */
29224
+ talkback: boolean().optional()
28758
29225
  }), object({
28759
29226
  sessionId: string(),
28760
29227
  sdpAnswer: string()
@@ -28809,6 +29276,14 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
28809
29276
  */
28810
29277
  alive: boolean()
28811
29278
  })), method(object({
29279
+ deviceId: number().int().nonnegative(),
29280
+ sessionId: string(),
29281
+ downlinkMbps: number().nonnegative()
29282
+ }), object({
29283
+ outcome: _enum(["switching", "held"]),
29284
+ tier: CamProfileSchema.nullable(),
29285
+ reason: string()
29286
+ }), { kind: "mutation" }), method(object({
28812
29287
  deviceId: number().int().nonnegative(),
28813
29288
  sessionId: string()
28814
29289
  }), WebrtcSessionDebugSchema, { kind: "query" });
@@ -29048,6 +29523,59 @@ var AddonAutoUpdateSchema = ChannelWithInheritSchema;
29048
29523
  var RestartAddonResultSchema = unknown();
29049
29524
  var InstallPackageResultSchema = unknown();
29050
29525
  var ReloadPackagesResultSchema = unknown();
29526
+ /**
29527
+ * What an uninstall did on ONE node.
29528
+ * - `uninstalled` — removed: runner(s) stopped, caps gone, code deleted.
29529
+ * - `not-installed` — the node did not have it (nothing to do).
29530
+ * - `refused` — protected / bootstrap package; nothing touched.
29531
+ * - `failed` — attempted and did not complete; `error` says why.
29532
+ * - `pending-reconnect` — the node is OFFLINE: its record was pruned so the
29533
+ * back-fill never returns the package, and the stale-addon sweep removes the
29534
+ * copy when the node registers again (only once the hub no longer has it).
29535
+ */
29536
+ var UninstallNodeOutcomeSchema = _enum([
29537
+ "uninstalled",
29538
+ "not-installed",
29539
+ "refused",
29540
+ "failed",
29541
+ "pending-reconnect"
29542
+ ]);
29543
+ var UninstallNodeResultSchema = object({
29544
+ nodeId: string(),
29545
+ outcome: UninstallNodeOutcomeSchema,
29546
+ error: string().optional(),
29547
+ addonIds: array(string()).readonly(),
29548
+ runnersStopped: array(string()).readonly(),
29549
+ warnings: array(string()).readonly()
29550
+ });
29551
+ var UninstallPackageResultSchema = object({
29552
+ /** Every targeted node ended `uninstalled`, `not-installed` or `pending-reconnect`. */
29553
+ success: boolean(),
29554
+ packageName: string(),
29555
+ results: array(UninstallNodeResultSchema).readonly()
29556
+ });
29557
+ /**
29558
+ * `unreachable` lists online agents whose status read FAILED — absence from
29559
+ * `installations` is only "not installed" for a node that answered (D315).
29560
+ */
29561
+ var PackageInstallationsSchema = object({
29562
+ installations: array(object({
29563
+ packageName: string(),
29564
+ nodeId: string(),
29565
+ nodeName: string(),
29566
+ isHub: boolean(),
29567
+ isOnline: boolean(),
29568
+ version: string().nullable(),
29569
+ addonIds: array(string()).readonly(),
29570
+ source: _enum(["live", "recorded"]),
29571
+ /** The hub installs this package too. `false` on an agent row = an orphan. */
29572
+ onHub: boolean()
29573
+ })).readonly(),
29574
+ unreachable: array(object({
29575
+ nodeId: string(),
29576
+ error: string()
29577
+ })).readonly()
29578
+ });
29051
29579
  var BulkUpdateItemStatusSchema = _enum([
29052
29580
  "queued",
29053
29581
  "updating",
@@ -29130,10 +29658,14 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
29130
29658
  }), method(object({ packageName: string() }), InstallPackageResultSchema, {
29131
29659
  kind: "mutation",
29132
29660
  auth: "admin"
29133
- }), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({ packageName: string() }), unknown(), {
29661
+ }), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({
29662
+ packageName: string().min(1),
29663
+ nodeId: string().optional(),
29664
+ everywhere: boolean().optional()
29665
+ }), UninstallPackageResultSchema, {
29134
29666
  kind: "mutation",
29135
29667
  auth: "admin"
29136
- }), method(_void(), ReloadPackagesResultSchema, {
29668
+ }), method(object({ packageName: string().optional() }), PackageInstallationsSchema, { auth: "admin" }), method(_void(), ReloadPackagesResultSchema, {
29137
29669
  kind: "mutation",
29138
29670
  auth: "admin"
29139
29671
  }), method(object({ query: string().optional() }), array(SearchResultSchema)), method(object({ nodeId: string().optional() }), array(PackageUpdateSchema).readonly(), { auth: "admin" }), method(object({
@@ -32620,7 +33152,8 @@ var ConnectionEndpointSchema = object({
32620
33152
  "lan-ipv6",
32621
33153
  "public",
32622
33154
  "loopback",
32623
- "app-link"
33155
+ "app-link",
33156
+ "custom"
32624
33157
  ]),
32625
33158
  /**
32626
33159
  * Originating-interface kind — `lan`/`wifi`/`docker`/`vpn`/`other`/
@@ -32689,7 +33222,7 @@ var GetConnectionEndpointsResultSchema = object({
32689
33222
  localPort: AdvertisedLocalPortSchema
32690
33223
  });
32691
33224
  /**
32692
- * The address flagged for notification links. `baseUrl: null` = AUTO, which
33225
+ * The address flagged for notification taps (`notificationTaps`). `baseUrl: null` = AUTO, which
32693
33226
  * since D709 is the CamStack app link; `resolved` reports the effective value,
32694
33227
  * so the UI can show it either way.
32695
33228
  */
@@ -32722,6 +33255,72 @@ var ViewerEndpointsSchema = object({
32722
33255
  /** What the ranking currently resolves to (may be empty if nothing is up). */
32723
33256
  resolved: array(string()).readonly()
32724
33257
  });
33258
+ /**
33259
+ * DEPRECATED compatibility shape of `getHubAddresses` (D729 amendment, kept
33260
+ * for addons built against it): `cluster` is the `internal` role, `browser`
33261
+ * the `publicEndpoint` role; `override` is the flagged address.
33262
+ */
33263
+ var HubAddressSnapshotSchema = object({
33264
+ override: string().nullable(),
33265
+ resolved: string().nullable(),
33266
+ source: _enum([
33267
+ "override",
33268
+ "auto",
33269
+ "none"
33270
+ ])
33271
+ });
33272
+ var HubAddressesSchema = object({
33273
+ cluster: HubAddressSnapshotSchema,
33274
+ browser: HubAddressSnapshotSchema
33275
+ });
33276
+ /**
33277
+ * What an address is used for (`hub-address.ts`, D734). `appConnections` is
33278
+ * many-valued; `notificationTaps`, `publicEndpoint` and `internal` are carried
33279
+ * by at most one address.
33280
+ */
33281
+ var HubAddressRoleSchema = _enum(HUB_ADDRESS_ROLES);
33282
+ var RoleSourceSchema = _enum([
33283
+ "flagged",
33284
+ "auto",
33285
+ "none"
33286
+ ]);
33287
+ /** One single-valued role: the flagged address, the one in use, and why. */
33288
+ var HubAddressRoleResolutionSchema = object({
33289
+ /** The address carrying the flag, or null = automatic. */
33290
+ flagged: string().nullable(),
33291
+ /** The address in use, or null when nothing qualifies (never loopback). */
33292
+ resolved: string().nullable(),
33293
+ source: RoleSourceSchema
33294
+ });
33295
+ var HubAppConnectionsResolutionSchema = object({
33296
+ /** The addresses flagged `appConnections`, or empty = automatic. */
33297
+ flagged: array(string()).readonly(),
33298
+ /** What the apps race right now. */
33299
+ resolved: array(string()).readonly(),
33300
+ source: RoleSourceSchema
33301
+ });
33302
+ var HubAddressBookSchema = object({
33303
+ rows: array(ConnectionEndpointSchema.extend({
33304
+ /** In the hub's detected palette right now. */
33305
+ detected: boolean(),
33306
+ /** Entered by the operator (removable). */
33307
+ custom: boolean(),
33308
+ /** The roles explicitly flagged on this address. */
33309
+ flags: array(HubAddressRoleSchema).readonly(),
33310
+ /** The roles this address serves right now — flagged or automatic. */
33311
+ inUse: array(HubAddressRoleSchema).readonly(),
33312
+ /** The roles this address may be flagged with. */
33313
+ eligible: array(HubAddressRoleSchema).readonly()
33314
+ })).readonly(),
33315
+ roles: object({
33316
+ appConnections: HubAppConnectionsResolutionSchema,
33317
+ notificationTaps: HubAddressRoleResolutionSchema,
33318
+ internal: HubAddressRoleResolutionSchema,
33319
+ publicEndpoint: HubAddressRoleResolutionSchema
33320
+ }),
33321
+ /** The `hub=` an app link carries (D709), or null. */
33322
+ appLinkHub: string().nullable()
33323
+ });
32725
33324
  var AllowedAddressesSchema = object({
32726
33325
  /**
32727
33326
  * Allowlist of interface addresses operators have explicitly opted
@@ -32765,10 +33364,27 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
32765
33364
  * tunnel always emits `https://` regardless. */
32766
33365
  scheme: _enum(["http", "https"]).optional(),
32767
33366
  /** Append the CamStack app link entry (`kind: 'app-link'`, D709) —
32768
- * an address notification links can be flagged with, not a hub
33367
+ * an address notification taps can be flagged with, not a hub
32769
33368
  * route. Default `false`: racers and rankers never see it. */
32770
33369
  includeAppLink: boolean().optional()
32771
- }), 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, {
33370
+ }), 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({
33371
+ baseUrl: string(),
33372
+ label: string().max(80)
33373
+ }), HubAddressBookSchema, {
33374
+ kind: "mutation",
33375
+ auth: "admin"
33376
+ }), method(object({ baseUrl: string() }), HubAddressBookSchema, {
33377
+ kind: "mutation",
33378
+ auth: "admin"
33379
+ }), method(object({
33380
+ role: HubAddressRoleSchema,
33381
+ baseUrl: string().nullable(),
33382
+ enabled: boolean(),
33383
+ acceptInsecureHttp: boolean().optional()
33384
+ }), HubAddressBookSchema, {
33385
+ kind: "mutation",
33386
+ auth: "admin"
33387
+ }), 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, {
32772
33388
  kind: "mutation",
32773
33389
  auth: "admin"
32774
33390
  }), method(object({
@@ -33226,7 +33842,8 @@ var MotionStatusSchema = object({
33226
33842
  * writes this slice (not even a boot seed), and neither does the runner's
33227
33843
  * phase machine: its phase is "a session is attached" for every on-motion
33228
33844
  * session, not motion, and it now has its own `DetectionPhaseTransition`.
33229
- * A provider's `isDetected` answers from the hub's slice.
33845
+ * A provider's `isDetected` and `getStatus` answer from the hub's slice
33846
+ * (`hubMotionNativeProvider`).
33230
33847
  * - **Sensors** (Home Assistant binary sensors, Homematic, Matter, Alexa
33231
33848
  * imports) — the provider pushes both edges itself, from the upstream
33232
33849
  * system's own state change. That is the sensor's own fact.
@@ -39420,6 +40037,32 @@ var TotpStatusSchema = object({
39420
40037
  /** Null when no row exists OR the row is still pending confirmation. */
39421
40038
  confirmedAt: number().nullable()
39422
40039
  });
40040
+ /**
40041
+ * user-management — singleton capability for user accounts, API keys,
40042
+ * and scoped tokens.
40043
+ *
40044
+ * v2 model: every method gated by `auth: 'admin'`. Admin-only delegation
40045
+ * — the subset check on `setUserScopes` / `createScopedToken` is moot
40046
+ * because non-admins never reach these. If/when we open non-admin
40047
+ * delegation, structural caller-scope subset check goes inside the
40048
+ * provider.
40049
+ */
40050
+ var ExternalIdentitySchema = object({
40051
+ /** Login-method id of the provider instance, e.g. `auth-oidc/authentik`. */
40052
+ provider: string(),
40053
+ /** The IdP's stable subject (`sub`) for this account. */
40054
+ subject: string(),
40055
+ /** The verified `iss` of the IdP the identity was linked under — `sub` is unique only per issuer. */
40056
+ issuer: string(),
40057
+ userId: string(),
40058
+ /** What the IdP called the account at link time (username / email) — display only. */
40059
+ label: string().optional(),
40060
+ linkedAt: number()
40061
+ });
40062
+ var ExternalIdentityKeySchema = object({
40063
+ provider: string().min(1),
40064
+ subject: string().min(1)
40065
+ });
39423
40066
  method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserInputSchema, UserSummarySchema, {
39424
40067
  kind: "mutation",
39425
40068
  auth: "admin",
@@ -39533,7 +40176,22 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
39533
40176
  userId: string(),
39534
40177
  username: string(),
39535
40178
  scopes: array(TokenScopeSchema)
39536
- }).nullable(), { access: "view" }), method(_void(), array(OauthSessionSummarySchema), { auth: "admin" }), method(object({ id: string() }), object({ success: boolean() }), {
40179
+ }).nullable(), { access: "view" }), method(object({ userId: string() }), array(ExternalIdentitySchema), { auth: "admin" }), method(ExternalIdentityKeySchema, object({
40180
+ userId: string(),
40181
+ issuer: string()
40182
+ }).nullable(), { auth: "admin" }), method(ExternalIdentityKeySchema.extend({
40183
+ userId: string(),
40184
+ issuer: string().min(1),
40185
+ label: string().optional()
40186
+ }), object({ success: literal(true) }), {
40187
+ kind: "mutation",
40188
+ auth: "admin",
40189
+ access: "create"
40190
+ }), method(ExternalIdentityKeySchema.extend({ userId: string() }), object({ success: boolean() }), {
40191
+ kind: "mutation",
40192
+ auth: "admin",
40193
+ access: "delete"
40194
+ }), method(_void(), array(OauthSessionSummarySchema), { auth: "admin" }), method(object({ id: string() }), object({ success: boolean() }), {
39537
40195
  kind: "mutation",
39538
40196
  auth: "admin",
39539
40197
  access: "delete"
@@ -40235,6 +40893,16 @@ var zoneRulesCapability = {
40235
40893
  durability: "restored"
40236
40894
  };
40237
40895
  SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
40896
+ Object.freeze({
40897
+ person: .5,
40898
+ vehicle: .5,
40899
+ animal: .5
40900
+ });
40901
+ Object.freeze({
40902
+ person: .65,
40903
+ vehicle: .65,
40904
+ animal: .65
40905
+ });
40238
40906
  /**
40239
40907
  * Accessory device helpers — shared across drivers.
40240
40908
  *
@@ -41933,6 +42601,12 @@ Object.freeze({
41933
42601
  addonId: null,
41934
42602
  access: "view"
41935
42603
  },
42604
+ "addons.listInstallations": {
42605
+ capName: "addons",
42606
+ capScope: "system",
42607
+ addonId: null,
42608
+ access: "view"
42609
+ },
41936
42610
  "addons.listJobs": {
41937
42611
  capName: "addons",
41938
42612
  capScope: "system",
@@ -43115,90 +43789,18 @@ Object.freeze({
43115
43789
  addonId: null,
43116
43790
  access: "create"
43117
43791
  },
43118
- "decoder.createSession": {
43119
- capName: "decoder",
43120
- capScope: "system",
43121
- addonId: null,
43122
- access: "view"
43123
- },
43124
- "decoder.destroySession": {
43125
- capName: "decoder",
43126
- capScope: "system",
43127
- addonId: null,
43128
- access: "delete"
43129
- },
43130
- "decoder.getFrame": {
43131
- capName: "decoder",
43132
- capScope: "system",
43133
- addonId: null,
43134
- access: "view"
43135
- },
43136
43792
  "decoder.getInfo": {
43137
43793
  capName: "decoder",
43138
43794
  capScope: "system",
43139
43795
  addonId: null,
43140
43796
  access: "view"
43141
43797
  },
43142
- "decoder.getShmStats": {
43143
- capName: "decoder",
43144
- capScope: "system",
43145
- addonId: null,
43146
- access: "view"
43147
- },
43148
- "decoder.getStats": {
43149
- capName: "decoder",
43150
- capScope: "system",
43151
- addonId: null,
43152
- access: "view"
43153
- },
43154
- "decoder.listActiveSessions": {
43155
- capName: "decoder",
43156
- capScope: "system",
43157
- addonId: null,
43158
- access: "view"
43159
- },
43160
- "decoder.openStream": {
43161
- capName: "decoder",
43162
- capScope: "system",
43163
- addonId: null,
43164
- access: "view"
43165
- },
43166
- "decoder.pullFrames": {
43167
- capName: "decoder",
43168
- capScope: "system",
43169
- addonId: null,
43170
- access: "view"
43171
- },
43172
- "decoder.pullHandles": {
43173
- capName: "decoder",
43174
- capScope: "system",
43175
- addonId: null,
43176
- access: "view"
43177
- },
43178
- "decoder.pushPacket": {
43179
- capName: "decoder",
43180
- capScope: "system",
43181
- addonId: null,
43182
- access: "view"
43183
- },
43184
43798
  "decoder.reprobeHwaccel": {
43185
43799
  capName: "decoder",
43186
43800
  capScope: "system",
43187
43801
  addonId: null,
43188
43802
  access: "create"
43189
43803
  },
43190
- "decoder.supportsCodec": {
43191
- capName: "decoder",
43192
- capScope: "system",
43193
- addonId: null,
43194
- access: "view"
43195
- },
43196
- "decoder.updateConfig": {
43197
- capName: "decoder",
43198
- capScope: "system",
43199
- addonId: null,
43200
- access: "view"
43201
- },
43202
43804
  "detectionPipeline.applyDeviceSettingsPatch": {
43203
43805
  capName: "detection-pipeline",
43204
43806
  capScope: "device",
@@ -44687,12 +45289,24 @@ Object.freeze({
44687
45289
  addonId: null,
44688
45290
  access: "view"
44689
45291
  },
45292
+ "localNetwork.addCustomAddress": {
45293
+ capName: "local-network",
45294
+ capScope: "system",
45295
+ addonId: null,
45296
+ access: "create"
45297
+ },
44690
45298
  "localNetwork.downloadCa": {
44691
45299
  capName: "local-network",
44692
45300
  capScope: "system",
44693
45301
  addonId: null,
44694
45302
  access: "view"
44695
45303
  },
45304
+ "localNetwork.getAddresses": {
45305
+ capName: "local-network",
45306
+ capScope: "system",
45307
+ addonId: null,
45308
+ access: "view"
45309
+ },
44696
45310
  "localNetwork.getAllowedAddresses": {
44697
45311
  capName: "local-network",
44698
45312
  capScope: "system",
@@ -44705,6 +45319,12 @@ Object.freeze({
44705
45319
  addonId: null,
44706
45320
  access: "view"
44707
45321
  },
45322
+ "localNetwork.getHubAddresses": {
45323
+ capName: "local-network",
45324
+ capScope: "system",
45325
+ addonId: null,
45326
+ access: "view"
45327
+ },
44708
45328
  "localNetwork.getNotificationEndpoint": {
44709
45329
  capName: "local-network",
44710
45330
  capScope: "system",
@@ -44741,6 +45361,12 @@ Object.freeze({
44741
45361
  addonId: null,
44742
45362
  access: "create"
44743
45363
  },
45364
+ "localNetwork.removeCustomAddress": {
45365
+ capName: "local-network",
45366
+ capScope: "system",
45367
+ addonId: null,
45368
+ access: "delete"
45369
+ },
44744
45370
  "localNetwork.resetAllowlistToBestMatch": {
44745
45371
  capName: "local-network",
44746
45372
  capScope: "system",
@@ -44753,6 +45379,12 @@ Object.freeze({
44753
45379
  addonId: null,
44754
45380
  access: "create"
44755
45381
  },
45382
+ "localNetwork.setAddressRole": {
45383
+ capName: "local-network",
45384
+ capScope: "system",
45385
+ addonId: null,
45386
+ access: "create"
45387
+ },
44756
45388
  "localNetwork.setAllowedAddresses": {
44757
45389
  capName: "local-network",
44758
45390
  capScope: "system",
@@ -46199,6 +46831,12 @@ Object.freeze({
46199
46831
  addonId: null,
46200
46832
  access: "create"
46201
46833
  },
46834
+ "pipelineAnalytics.setRetrainFrameComplete": {
46835
+ capName: "pipeline-analytics",
46836
+ capScope: "device",
46837
+ addonId: null,
46838
+ access: "create"
46839
+ },
46202
46840
  "pipelineAnalytics.setTrackFlags": {
46203
46841
  capName: "pipeline-analytics",
46204
46842
  capScope: "device",
@@ -46235,6 +46873,12 @@ Object.freeze({
46235
46873
  addonId: null,
46236
46874
  access: "delete"
46237
46875
  },
46876
+ "pipelineAnalytics.writeRetrainArchive": {
46877
+ capName: "pipeline-analytics",
46878
+ capScope: "device",
46879
+ addonId: null,
46880
+ access: "create"
46881
+ },
46238
46882
  "pipelineExecutor.cacheFrameInPool": {
46239
46883
  capName: "pipeline-executor",
46240
46884
  capScope: "system",
@@ -46247,13 +46891,13 @@ Object.freeze({
46247
46891
  addonId: null,
46248
46892
  access: "delete"
46249
46893
  },
46250
- "pipelineExecutor.deleteModel": {
46894
+ "pipelineExecutor.clearModelBoundDeviceOverrides": {
46251
46895
  capName: "pipeline-executor",
46252
46896
  capScope: "system",
46253
46897
  addonId: null,
46254
46898
  access: "delete"
46255
46899
  },
46256
- "pipelineExecutor.deleteTemplate": {
46900
+ "pipelineExecutor.deleteModel": {
46257
46901
  capName: "pipeline-executor",
46258
46902
  capScope: "system",
46259
46903
  addonId: null,
@@ -46397,12 +47041,6 @@ Object.freeze({
46397
47041
  addonId: null,
46398
47042
  access: "view"
46399
47043
  },
46400
- "pipelineExecutor.listTemplates": {
46401
- capName: "pipeline-executor",
46402
- capScope: "system",
46403
- addonId: null,
46404
- access: "view"
46405
- },
46406
47044
  "pipelineExecutor.rearmInferenceDevice": {
46407
47045
  capName: "pipeline-executor",
46408
47046
  capScope: "system",
@@ -46427,12 +47065,6 @@ Object.freeze({
46427
47065
  addonId: null,
46428
47066
  access: "create"
46429
47067
  },
46430
- "pipelineExecutor.saveTemplate": {
46431
- capName: "pipeline-executor",
46432
- capScope: "system",
46433
- addonId: null,
46434
- access: "create"
46435
- },
46436
47068
  "pipelineExecutor.setVideoPipelineSteps": {
46437
47069
  capName: "pipeline-executor",
46438
47070
  capScope: "system",
@@ -46451,41 +47083,35 @@ Object.freeze({
46451
47083
  addonId: null,
46452
47084
  access: "create"
46453
47085
  },
46454
- "pipelineExecutor.updateTemplate": {
46455
- capName: "pipeline-executor",
46456
- capScope: "system",
46457
- addonId: null,
46458
- access: "create"
46459
- },
46460
47086
  "pipelineExecutor.validatePipeline": {
46461
47087
  capName: "pipeline-executor",
46462
47088
  capScope: "system",
46463
47089
  addonId: null,
46464
47090
  access: "view"
46465
47091
  },
46466
- "pipelineOrchestrator.applyDeviceSettingsPatch": {
47092
+ "pipelineOrchestrator.applyAutoTune": {
46467
47093
  capName: "pipeline-orchestrator",
46468
47094
  capScope: "system",
46469
47095
  addonId: null,
46470
47096
  access: "create"
46471
47097
  },
46472
- "pipelineOrchestrator.assignAudio": {
47098
+ "pipelineOrchestrator.applyDeviceSettingsPatch": {
46473
47099
  capName: "pipeline-orchestrator",
46474
47100
  capScope: "system",
46475
47101
  addonId: null,
46476
47102
  access: "create"
46477
47103
  },
46478
- "pipelineOrchestrator.assignPipeline": {
47104
+ "pipelineOrchestrator.assignAudio": {
46479
47105
  capName: "pipeline-orchestrator",
46480
47106
  capScope: "system",
46481
47107
  addonId: null,
46482
47108
  access: "create"
46483
47109
  },
46484
- "pipelineOrchestrator.deleteTemplate": {
47110
+ "pipelineOrchestrator.assignPipeline": {
46485
47111
  capName: "pipeline-orchestrator",
46486
47112
  capScope: "system",
46487
47113
  addonId: null,
46488
- access: "delete"
47114
+ access: "create"
46489
47115
  },
46490
47116
  "pipelineOrchestrator.getAgentLoad": {
46491
47117
  capName: "pipeline-orchestrator",
@@ -46577,6 +47203,12 @@ Object.freeze({
46577
47203
  addonId: null,
46578
47204
  access: "view"
46579
47205
  },
47206
+ "pipelineOrchestrator.getEffectiveShares": {
47207
+ capName: "pipeline-orchestrator",
47208
+ capScope: "system",
47209
+ addonId: null,
47210
+ access: "view"
47211
+ },
46580
47212
  "pipelineOrchestrator.getGlobalMetrics": {
46581
47213
  capName: "pipeline-orchestrator",
46582
47214
  capScope: "system",
@@ -46613,19 +47245,19 @@ Object.freeze({
46613
47245
  addonId: null,
46614
47246
  access: "view"
46615
47247
  },
46616
- "pipelineOrchestrator.getReconcileFromDiskStatus": {
47248
+ "pipelineOrchestrator.getPlacementStats": {
46617
47249
  capName: "pipeline-orchestrator",
46618
47250
  capScope: "system",
46619
47251
  addonId: null,
46620
47252
  access: "view"
46621
47253
  },
46622
- "pipelineOrchestrator.listAgentSettings": {
47254
+ "pipelineOrchestrator.getReconcileFromDiskStatus": {
46623
47255
  capName: "pipeline-orchestrator",
46624
47256
  capScope: "system",
46625
47257
  addonId: null,
46626
47258
  access: "view"
46627
47259
  },
46628
- "pipelineOrchestrator.listTemplates": {
47260
+ "pipelineOrchestrator.listAgentSettings": {
46629
47261
  capName: "pipeline-orchestrator",
46630
47262
  capScope: "system",
46631
47263
  addonId: null,
@@ -46637,6 +47269,12 @@ Object.freeze({
46637
47269
  addonId: null,
46638
47270
  access: "create"
46639
47271
  },
47272
+ "pipelineOrchestrator.planAutoTune": {
47273
+ capName: "pipeline-orchestrator",
47274
+ capScope: "system",
47275
+ addonId: null,
47276
+ access: "view"
47277
+ },
46640
47278
  "pipelineOrchestrator.rebalance": {
46641
47279
  capName: "pipeline-orchestrator",
46642
47280
  capScope: "system",
@@ -46679,12 +47317,6 @@ Object.freeze({
46679
47317
  addonId: null,
46680
47318
  access: "create"
46681
47319
  },
46682
- "pipelineOrchestrator.saveTemplate": {
46683
- capName: "pipeline-orchestrator",
46684
- capScope: "system",
46685
- addonId: null,
46686
- access: "create"
46687
- },
46688
47320
  "pipelineOrchestrator.setAgentCapabilities": {
46689
47321
  capName: "pipeline-orchestrator",
46690
47322
  capScope: "system",
@@ -46697,12 +47329,6 @@ Object.freeze({
46697
47329
  addonId: null,
46698
47330
  access: "create"
46699
47331
  },
46700
- "pipelineOrchestrator.setAgentDetectWeight": {
46701
- capName: "pipeline-orchestrator",
46702
- capScope: "system",
46703
- addonId: null,
46704
- access: "create"
46705
- },
46706
47332
  "pipelineOrchestrator.setAgentInferenceDevices": {
46707
47333
  capName: "pipeline-orchestrator",
46708
47334
  capScope: "system",
@@ -46739,6 +47365,12 @@ Object.freeze({
46739
47365
  addonId: null,
46740
47366
  access: "create"
46741
47367
  },
47368
+ "pipelineOrchestrator.setCameraStepSettings": {
47369
+ capName: "pipeline-orchestrator",
47370
+ capScope: "system",
47371
+ addonId: null,
47372
+ access: "create"
47373
+ },
46742
47374
  "pipelineOrchestrator.setCameraStepToggle": {
46743
47375
  capName: "pipeline-orchestrator",
46744
47376
  capScope: "system",
@@ -46757,25 +47389,37 @@ Object.freeze({
46757
47389
  addonId: null,
46758
47390
  access: "create"
46759
47391
  },
47392
+ "pipelineOrchestrator.setLoadBalancingShares": {
47393
+ capName: "pipeline-orchestrator",
47394
+ capScope: "system",
47395
+ addonId: null,
47396
+ access: "create"
47397
+ },
46760
47398
  "pipelineOrchestrator.setPipelineDevicePin": {
46761
47399
  capName: "pipeline-orchestrator",
46762
47400
  capScope: "system",
46763
47401
  addonId: null,
46764
47402
  access: "create"
46765
47403
  },
46766
- "pipelineOrchestrator.unassignAudio": {
47404
+ "pipelineOrchestrator.setShareSource": {
46767
47405
  capName: "pipeline-orchestrator",
46768
47406
  capScope: "system",
46769
47407
  addonId: null,
46770
47408
  access: "create"
46771
47409
  },
46772
- "pipelineOrchestrator.unassignPipeline": {
47410
+ "pipelineOrchestrator.suggestShares": {
47411
+ capName: "pipeline-orchestrator",
47412
+ capScope: "system",
47413
+ addonId: null,
47414
+ access: "view"
47415
+ },
47416
+ "pipelineOrchestrator.unassignAudio": {
46773
47417
  capName: "pipeline-orchestrator",
46774
47418
  capScope: "system",
46775
47419
  addonId: null,
46776
47420
  access: "create"
46777
47421
  },
46778
- "pipelineOrchestrator.updateTemplate": {
47422
+ "pipelineOrchestrator.unassignPipeline": {
46779
47423
  capName: "pipeline-orchestrator",
46780
47424
  capScope: "system",
46781
47425
  addonId: null,
@@ -48215,12 +48859,6 @@ Object.freeze({
48215
48859
  addonId: null,
48216
48860
  access: "view"
48217
48861
  },
48218
- "streamBroker.pullFrameHandles": {
48219
- capName: "stream-broker",
48220
- capScope: "system",
48221
- addonId: null,
48222
- access: "view"
48223
- },
48224
48862
  "streamBroker.regenerateRtspToken": {
48225
48863
  capName: "stream-broker",
48226
48864
  capScope: "system",
@@ -48287,12 +48925,6 @@ Object.freeze({
48287
48925
  addonId: null,
48288
48926
  access: "create"
48289
48927
  },
48290
- "streamBroker.subscribeFrames": {
48291
- capName: "stream-broker",
48292
- capScope: "system",
48293
- addonId: null,
48294
- access: "create"
48295
- },
48296
48928
  "streamBroker.unassignProfile": {
48297
48929
  capName: "stream-broker",
48298
48930
  capScope: "system",
@@ -48305,12 +48937,6 @@ Object.freeze({
48305
48937
  addonId: null,
48306
48938
  access: "create"
48307
48939
  },
48308
- "streamBroker.unsubscribeFrames": {
48309
- capName: "stream-broker",
48310
- capScope: "system",
48311
- addonId: null,
48312
- access: "create"
48313
- },
48314
48940
  "streamCatalog.getCatalog": {
48315
48941
  capName: "stream-catalog",
48316
48942
  capScope: "device",
@@ -48605,18 +49231,36 @@ Object.freeze({
48605
49231
  addonId: null,
48606
49232
  access: "delete"
48607
49233
  },
49234
+ "userManagement.findUserByExternalIdentity": {
49235
+ capName: "user-management",
49236
+ capScope: "system",
49237
+ addonId: null,
49238
+ access: "view"
49239
+ },
48608
49240
  "userManagement.getTotpStatus": {
48609
49241
  capName: "user-management",
48610
49242
  capScope: "system",
48611
49243
  addonId: null,
48612
49244
  access: "view"
48613
49245
  },
49246
+ "userManagement.linkExternalIdentity": {
49247
+ capName: "user-management",
49248
+ capScope: "system",
49249
+ addonId: null,
49250
+ access: "create"
49251
+ },
48614
49252
  "userManagement.listApiKeys": {
48615
49253
  capName: "user-management",
48616
49254
  capScope: "system",
48617
49255
  addonId: null,
48618
49256
  access: "view"
48619
49257
  },
49258
+ "userManagement.listExternalIdentities": {
49259
+ capName: "user-management",
49260
+ capScope: "system",
49261
+ addonId: null,
49262
+ access: "view"
49263
+ },
48620
49264
  "userManagement.listOauthSessions": {
48621
49265
  capName: "user-management",
48622
49266
  capScope: "system",
@@ -48695,6 +49339,12 @@ Object.freeze({
48695
49339
  addonId: null,
48696
49340
  access: "create"
48697
49341
  },
49342
+ "userManagement.unlinkExternalIdentity": {
49343
+ capName: "user-management",
49344
+ capScope: "system",
49345
+ addonId: null,
49346
+ access: "delete"
49347
+ },
48698
49348
  "userManagement.updateUser": {
48699
49349
  capName: "user-management",
48700
49350
  capScope: "system",
@@ -49007,6 +49657,12 @@ Object.freeze({
49007
49657
  addonId: null,
49008
49658
  access: "create"
49009
49659
  },
49660
+ "webrtcSession.applyDownlinkProbe": {
49661
+ capName: "webrtc-session",
49662
+ capScope: "device",
49663
+ addonId: null,
49664
+ access: "create"
49665
+ },
49010
49666
  "webrtcSession.closeSession": {
49011
49667
  capName: "webrtc-session",
49012
49668
  capScope: "device",
@@ -51024,11 +51680,6 @@ Object.freeze({
51024
51680
  form: "single",
51025
51681
  optional: false
51026
51682
  }],
51027
- "decoder.createSession": [{
51028
- name: "deviceId",
51029
- form: "single",
51030
- optional: true
51031
- }],
51032
51683
  "detectionPipeline.applyDeviceSettingsPatch": [{
51033
51684
  name: "deviceId",
51034
51685
  form: "single",
@@ -52239,6 +52890,11 @@ Object.freeze({
52239
52890
  form: "single",
52240
52891
  optional: false
52241
52892
  }],
52893
+ "pipelineAnalytics.setRetrainFrameComplete": [{
52894
+ name: "deviceId",
52895
+ form: "single",
52896
+ optional: false
52897
+ }],
52242
52898
  "pipelineAnalytics.setTrackFlags": [{
52243
52899
  name: "deviceId",
52244
52900
  form: "single",
@@ -52259,6 +52915,11 @@ Object.freeze({
52259
52915
  form: "single",
52260
52916
  optional: false
52261
52917
  }],
52918
+ "pipelineExecutor.clearModelBoundDeviceOverrides": [{
52919
+ name: "deviceIds",
52920
+ form: "array",
52921
+ optional: true
52922
+ }],
52262
52923
  "pipelineExecutor.runPipeline": [{
52263
52924
  name: "deviceId",
52264
52925
  form: "single",
@@ -52364,6 +53025,11 @@ Object.freeze({
52364
53025
  form: "single",
52365
53026
  optional: false
52366
53027
  }],
53028
+ "pipelineOrchestrator.setCameraStepSettings": [{
53029
+ name: "deviceId",
53030
+ form: "single",
53031
+ optional: false
53032
+ }],
52367
53033
  "pipelineOrchestrator.setCameraStepToggle": [{
52368
53034
  name: "deviceId",
52369
53035
  form: "single",
@@ -53135,6 +53801,11 @@ Object.freeze({
53135
53801
  form: "single",
53136
53802
  optional: false
53137
53803
  }],
53804
+ "webrtcSession.applyDownlinkProbe": [{
53805
+ name: "deviceId",
53806
+ form: "single",
53807
+ optional: false
53808
+ }],
53138
53809
  "webrtcSession.closeSession": [{
53139
53810
  name: "deviceId",
53140
53811
  form: "single",
@@ -53364,6 +54035,8 @@ new Map(Object.entries({
53364
54035
  "detection-blind": "device-events",
53365
54036
  "node-online": "system",
53366
54037
  "node-offline": "system",
54038
+ "node-restarting": "system",
54039
+ "node-updating": "system",
53367
54040
  "node-inference-unavailable": "system",
53368
54041
  "addon-crash-loop": "system",
53369
54042
  "addon-update-available": "system",
@@ -53441,6 +54114,7 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
53441
54114
  kinds: [
53442
54115
  "node-offline",
53443
54116
  "node-online",
54117
+ "node-restarting",
53444
54118
  "node-inference-unavailable"
53445
54119
  ]
53446
54120
  },
@@ -53462,6 +54136,7 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
53462
54136
  label: "Server & container updates",
53463
54137
  kinds: [
53464
54138
  "server-update-available",
54139
+ "node-updating",
53465
54140
  "server-updated",
53466
54141
  "wrapper-update-available"
53467
54142
  ]
@@ -53609,6 +54284,7 @@ var STATE_SUMMARY_SECTION_VARS = [
53609
54284
  kinds: [
53610
54285
  "node-offline",
53611
54286
  "node-online",
54287
+ "node-restarting",
53612
54288
  "node-inference-unavailable"
53613
54289
  ]
53614
54290
  },
@@ -53630,6 +54306,7 @@ var STATE_SUMMARY_SECTION_VARS = [
53630
54306
  example: "server 1.2.377 → 1.2.378",
53631
54307
  kinds: [
53632
54308
  "server-update-available",
54309
+ "node-updating",
53633
54310
  "server-updated",
53634
54311
  "wrapper-update-available"
53635
54312
  ]
@@ -53662,7 +54339,7 @@ var STATE_SUMMARY_VARS = [
53662
54339
  {
53663
54340
  name: "summarySection",
53664
54341
  label: "Summary: this section",
53665
- description: "The section a per-section summary row is about (D698); on a summary sent as one message, every section it reports, comma-separated.",
54342
+ description: "The section a per-section summary row is about; on a summary sent as one message, every section it reports, comma-separated.",
53666
54343
  example: "Batterie scariche",
53667
54344
  group: "system",
53668
54345
  families: ["rule"],
@@ -54085,10 +54762,9 @@ TimelapseRuleInputSchema.extend({
54085
54762
  createdAt: number(),
54086
54763
  updatedAt: number()
54087
54764
  });
54088
- async function readHubMotionDetected(deviceState, deviceId) {
54089
- let slice;
54765
+ async function readSlice(deviceState, deviceId) {
54090
54766
  try {
54091
- slice = await deviceState.getCapSlice.query({
54767
+ return await deviceState.getCapSlice.query({
54092
54768
  deviceId,
54093
54769
  capName: "motion"
54094
54770
  });
@@ -54096,10 +54772,44 @@ async function readHubMotionDetected(deviceState, deviceId) {
54096
54772
  const reason = err instanceof Error ? err.message : String(err);
54097
54773
  throw new Error(`motion state of device ${deviceId} is unreadable: ${reason}`, { cause: err });
54098
54774
  }
54099
- const detected = slice?.["detected"];
54775
+ }
54776
+ /**
54777
+ * The hub's `motion` slice as a `MotionStatus`, or `null` when nobody has
54778
+ * published it since the hub started. Throws when the hub does not answer or
54779
+ * the slice is malformed — never a made-up "no motion".
54780
+ */
54781
+ async function readHubMotionStatus(deviceState, deviceId) {
54782
+ const slice = await readSlice(deviceState, deviceId);
54783
+ if (slice === null) return null;
54784
+ const parsed = MotionStatusSchema.safeParse(slice);
54785
+ if (!parsed.success) throw new Error(`motion state of device ${deviceId} is malformed on the hub: ${parsed.error.message}`);
54786
+ return parsed.data;
54787
+ }
54788
+ async function readHubMotionDetected(deviceState, deviceId) {
54789
+ const detected = (await readSlice(deviceState, deviceId))?.["detected"];
54100
54790
  if (typeof detected !== "boolean") throw new Error(`motion state of device ${deviceId} is not published yet (unknown)`);
54101
54791
  return detected;
54102
54792
  }
54793
+ /**
54794
+ * The native `motion` provider of a camera whose slice the orchestrator writes
54795
+ * (D696): `isDetected` AND `getStatus`, both from the hub. `owner` names the
54796
+ * provider class in the deviceId-mismatch error.
54797
+ */
54798
+ function hubMotionNativeProvider(deviceState, deviceId, owner) {
54799
+ const ownDevice = (asked) => {
54800
+ if (asked !== deviceId) throw new Error(`${owner}: motion deviceId mismatch, expected ${deviceId}, got ${asked}`);
54801
+ };
54802
+ return {
54803
+ isDetected: async ({ deviceId: asked }) => {
54804
+ ownDevice(asked);
54805
+ return readHubMotionDetected(deviceState, deviceId);
54806
+ },
54807
+ getStatus: async ({ deviceId: asked }) => {
54808
+ ownDevice(asked);
54809
+ return readHubMotionStatus(deviceState, deviceId);
54810
+ }
54811
+ };
54812
+ }
54103
54813
  MotionOnMotionChangedDataSchema.omit({ triggeredBy: true });
54104
54814
  function providerMotionEvent(source, data) {
54105
54815
  return createEvent(EventCategory.ProviderMotion, source, data);
@@ -56227,7 +56937,7 @@ var amcrestCameraSchema = object({
56227
56937
  port: number().int().min(1).max(65535).default(80).describe("HTTP CGI port"),
56228
56938
  https: boolean().default(false).describe("Use HTTPS for CGI"),
56229
56939
  username: string().default("admin").describe("Username"),
56230
- password: string().default("").describe("Password"),
56940
+ password: string().default("").describe("Password").meta({ secret: true }),
56231
56941
  channel: number().int().min(1).default(1).describe("Camera channel (1-based)"),
56232
56942
  deviceCache: amcrestDeviceCacheSchema.optional()
56233
56943
  });
@@ -56473,14 +57183,12 @@ var AmcrestCamera = class AmcrestCamera extends BaseDevice {
56473
57183
  }
56474
57184
  /** Register the native `motion` cap. Its mere presence (a `kind:'native'`
56475
57185
  * `motion` binding) is what the orchestrator reads to default a
56476
- * freshly-adopted camera to `motionSources:['onboard']`. `isDetected`
56477
- * answers from the HUB's slice; an unreadable hub, or a slice nobody has
56478
- * published yet, fails the call — never `false` for unknown (D49, D393). */
57186
+ * freshly-adopted camera to `motionSources:['onboard']`. `isDetected` and
57187
+ * `getStatus` answer from the HUB's slice (`hubMotionNativeProvider`); an
57188
+ * unreadable hub fails both — never `false` for unknown (D49, D393). */
56479
57189
  registerMotionCap() {
56480
- this.ctx.registerNativeCap(motionCapability, { isDetected: async ({ deviceId }) => {
56481
- if (deviceId !== this.id) throw new Error(`AmcrestCamera: motion deviceId mismatch, expected ${this.id}, got ${deviceId}`);
56482
- return readHubMotionDetected(this.ctx.api.deviceState, this.id);
56483
- } });
57190
+ const provider = hubMotionNativeProvider(this.ctx.api.deviceState, this.id, "AmcrestCamera");
57191
+ this.ctx.registerNativeCap(motionCapability, provider);
56484
57192
  this.ctx.logger.info("amcrest: motion cap registered", { tags: { deviceId: this.id } });
56485
57193
  }
56486
57194
  /** Reusable event-source identity for every emit on this device. */
@@ -59401,7 +60109,7 @@ function writeJpeg(res, bytes, headOnly) {
59401
60109
  * Node-only (`node:child_process`), so it lives under `@camstack/types/node`.
59402
60110
  */
59403
60111
  /** The detail a site refusing for want of a binary puts in its refusal. */
59404
- var NO_PINNED_FFMPEG_DETAIL = "no pinned ffmpeg on this node (D540)";
60112
+ var NO_PINNED_FFMPEG_DETAIL = "no pinned ffmpeg on this node";
59405
60113
  /**
59406
60114
  * {@link pinnedFfmpegSpawner}, asked at the point of use through the node's
59407
60115
  * resolver (`memoizePinnedFfmpeg`). A site that keeps the RESOLVER rather than