@camstack/addon-provider-tuya 0.2.119 → 0.2.121

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 +1266 -543
  2. package/dist/addon.mjs +1266 -543
  3. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -819,7 +819,7 @@ async function discoverDevices(options = {}, binder = createDgramBinder()) {
819
819
  return [...byId.values()];
820
820
  }
821
821
  //#endregion
822
- //#region ../types/dist/event-category-BGmz_oxW.mjs
822
+ //#region ../types/dist/event-category-B_0XEcLF.mjs
823
823
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
824
824
  EventCategory["SystemBoot"] = "system.boot";
825
825
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -1320,15 +1320,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
1320
1320
  EventCategory["AgentWsDisconnected"] = "agent.ws.disconnected";
1321
1321
  EventCategory["AgentBackupActivated"] = "agent.backup.activated";
1322
1322
  EventCategory["OrchestrationSettingsUpdated"] = "orchestration.settings-updated";
1323
- /**
1324
- * Per-agent hwaccel preference changed (user override set, cleared, or
1325
- * re-probed). Observability event — decoders pull the current pref at
1326
- * `createSession`, so running sessions keep their current backend until
1327
- * they rotate naturally (camera add/remove, stream restart). Future
1328
- * work can wire a listener in stream-broker that force-rotates live
1329
- * sessions; for now this event powers logs + admin-UI toast feedback.
1330
- */
1331
- EventCategory["PipelineAgentHwaccelChanged"] = "pipeline.agent-hwaccel-changed";
1332
1323
  EventCategory["MotionAnalysis"] = "detection.motion-analysis";
1333
1324
  /** All raw motion zones from CCL before minArea filter — for UI debug overlay. */
1334
1325
  EventCategory["MotionZonesRaw"] = "detection.motion-zones-raw";
@@ -6199,7 +6190,7 @@ var ZodIssueCode = {
6199
6190
  var ZodFirstPartyTypeKind;
6200
6191
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
6201
6192
  //#endregion
6202
- //#region ../types/dist/sleep-DXKLNFvA.mjs
6193
+ //#region ../types/dist/sleep-B0JG7-_F.mjs
6203
6194
  /**
6204
6195
  * The audio chunk plane's byte format, and the ONE expansion from a coded
6205
6196
  * window to float samples (D455).
@@ -7565,32 +7556,12 @@ object({
7565
7556
  audioCodec: string().optional(),
7566
7557
  metadata: record(string(), unknown()).readonly().optional()
7567
7558
  });
7568
- var EncodedPacketSchema = object({
7569
- type: _enum(["video", "audio"]),
7570
- data: _instanceof(Uint8Array),
7571
- pts: number(),
7572
- dts: number(),
7573
- keyframe: boolean(),
7574
- codec: string()
7575
- });
7576
- var DecodedFrameSchema = object({
7577
- data: _instanceof(Uint8Array),
7578
- width: number(),
7579
- height: number(),
7580
- format: _enum([
7581
- "jpeg",
7582
- "rgb",
7583
- "bgr",
7584
- "yuv420",
7585
- "gray"
7586
- ]),
7587
- timestamp: number()
7588
- });
7589
7559
  /**
7590
7560
  * Wire schema for `FrameHandle` — a zero-pixel, serialisable reference to a
7591
7561
  * frame in a shared-memory ring (Phase 5 / D9). Mirrors the `FrameHandle` TS
7592
- * interface in `interfaces/frame-handle.ts` field-for-field so a decoder cap
7593
- * method (`pullHandles`) can carry handles over tRPC / Moleculer.
7562
+ * interface in `interfaces/frame-handle.ts` field-for-field so a cap method
7563
+ * (the runner's native-crop and pipeline-executor inputs) can carry handles
7564
+ * over tRPC / Moleculer.
7594
7565
  *
7595
7566
  * The `satisfies` assertion below pins this schema to the interface: if a
7596
7567
  * field is added to / removed from `FrameHandle` without a matching schema
@@ -7616,50 +7587,6 @@ var FrameHandleSchema = object({
7616
7587
  slotCount: number().int().positive()
7617
7588
  });
7618
7589
  /**
7619
- * Pixel format a frame-handle subscriber can request from the broker
7620
- * (Phase 5 / D9). The packed, raster subset of `FrameFormat` — the formats a
7621
- * `frameSink: 'shm'` decoder session can write into a `FrameRing` slot.
7622
- * `jpeg` is excluded: a variable-length stream is not a fixed-stride ring
7623
- * payload, and no decoded-frame consumer requests it over the shm plane.
7624
- */
7625
- var FrameHandleFormatSchema = _enum([
7626
- "rgb",
7627
- "bgr",
7628
- "yuv420",
7629
- "gray"
7630
- ]);
7631
- /**
7632
- * Input for `stream-broker.subscribeFrames` (Phase 5 / D9). A consumer asks the
7633
- * broker for a `FrameHandle` stream of one `format`; the broker maintains one
7634
- * shared-memory ring per `(brokerId, format)` actually requested, so a `gray`
7635
- * subscriber (motion) and an `rgb` subscriber (detection) each read the format
7636
- * they asked for with no broker-side conversion.
7637
- */
7638
- var SubscribeFramesInputSchema = object({
7639
- brokerId: string(),
7640
- format: FrameHandleFormatSchema,
7641
- /**
7642
- * Optional reader-side cadence hint in frames per second. The broker does
7643
- * NOT throttle — latest-wins ring reads drop frames implicitly for a slow
7644
- * consumer. The value is echoed back in `SubscribeFramesResult.maxFps` so
7645
- * the consumer can pace its own `pullFrameHandles` polling.
7646
- */
7647
- maxFps: number().positive().optional(),
7648
- /** Short caller-identity tag (`motion`, `detection`, …) for diagnostics. */
7649
- tag: string().optional()
7650
- });
7651
- /**
7652
- * Result of `stream-broker.subscribeFrames`. The consumer then polls
7653
- * `pullFrameHandles({ subscriptionId, maxCount })` and feeds each returned
7654
- * `FrameHandle` to a `FrameRingReader`.
7655
- */
7656
- var SubscribeFramesResultSchema = object({
7657
- /** Opaque id the consumer passes to `pullFrameHandles` / `unsubscribeFrames`. */
7658
- subscriptionId: string(),
7659
- /** Reader-side cadence hint (frames/s) — echoes `SubscribeFramesInput.maxFps`. */
7660
- maxFps: number().nonnegative()
7661
- });
7662
- /**
7663
7590
  * Wire schema for a decoded audio chunk (Phase 5 / D9). Mirrors the
7664
7591
  * `DecodedAudioChunk` TS interface in `interfaces/stream-broker.ts`: PCM
7665
7592
  * sample bytes plus the track parameters a consumer needs to interpret them.
@@ -7667,8 +7594,8 @@ var SubscribeFramesResultSchema = object({
7667
7594
  * Audio chunks are tiny (a ~500ms AudioCodecSession window is a few KB of
7668
7595
  * Float32 PCM), so unlike video frames they ship their bytes INLINE over
7669
7596
  * tRPC / Moleculer — no shared-memory plane. `data` is typed `Uint8Array`
7670
- * (the wire-serialisable supertype of `Buffer`) to match `DecodedFrameSchema`
7671
- * / `EncodedPacketSchema`'s precedent; a `Buffer` is assignable to it.
7597
+ * (the wire-serialisable supertype of `Buffer`); a `Buffer` is assignable to
7598
+ * it.
7672
7599
  */
7673
7600
  var AudioChunkFormatSchema = _enum(AUDIO_CHUNK_FORMATS);
7674
7601
  var DecodedAudioChunkSchema = object({
@@ -7686,11 +7613,10 @@ var DecodedAudioChunkSchema = object({
7686
7613
  format: AudioChunkFormatSchema.optional()
7687
7614
  });
7688
7615
  /**
7689
- * Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9). The
7690
- * handle-free, ship-bytes-inline analogue of `subscribeFrames`: a consumer
7691
- * asks the broker for the decoded audio-chunk stream of one broker; the
7692
- * broker keeps a per-subscription bounded FIFO queue the consumer drains via
7693
- * `pullAudioChunks`.
7616
+ * Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9). Audio ships
7617
+ * its bytes inline: a consumer asks the broker for the decoded audio-chunk
7618
+ * stream of one broker; the broker keeps a per-subscription bounded FIFO queue
7619
+ * the consumer drains via `pullAudioChunks`.
7694
7620
  */
7695
7621
  var SubscribeAudioChunksInputSchema = object({
7696
7622
  brokerId: string(),
@@ -7721,9 +7647,7 @@ var BrokerStatsSchema = object({
7721
7647
  "stopped"
7722
7648
  ]),
7723
7649
  inputFps: number(),
7724
- decodeFps: number(),
7725
7650
  encodedSubscribers: number(),
7726
- decodedSubscribers: number(),
7727
7651
  uptimeMs: number(),
7728
7652
  bitrateKbps: number(),
7729
7653
  idrIntervalMs: number(),
@@ -7736,14 +7660,6 @@ var BrokerStatsSchema = object({
7736
7660
  preBufferMs: number(),
7737
7661
  preBufferPackets: number(),
7738
7662
  /**
7739
- * Moleculer node id of the decoder provider currently servicing this
7740
- * stream's decoded subscribers. `null` until the deferred decoder is
7741
- * created (no decoded clients yet, or codec not detected). Surfaces the
7742
- * runtime decoder placement so the UI can show "Decoder: <agent>" without
7743
- * a separate cap call per broker.
7744
- */
7745
- decoderNodeId: string().nullable(),
7746
- /**
7747
7663
  * Detected audio track parameters from the RTSP DESCRIBE / SDP. `null`
7748
7664
  * when the stream has no audio track or the broker is in cold start.
7749
7665
  * `supported = false` means the codec was detected but the local
@@ -11079,70 +10995,6 @@ var StorageLocationDeclarationSchema = object({
11079
10995
  "backup"
11080
10996
  ]).optional()
11081
10997
  });
11082
- var DecoderStatsSchema = object({
11083
- inputFps: number(),
11084
- outputFps: number(),
11085
- avgDecodeTimeMs: number(),
11086
- droppedFrames: number(),
11087
- /**
11088
- * Pull-mode adaptive-fps telemetry (optional — only pull sessions run the
11089
- * lag-driven controller; push sessions omit these). `lagMs` is the EWMA of
11090
- * the decoder's real-time drift (rising = falling behind live); `adaptiveFps`
11091
- * is the current lag-throttled emit rate (≤ `effectiveFps` ceiling).
11092
- */
11093
- lagMs: number().optional(),
11094
- effectiveFps: number().optional(),
11095
- adaptiveFps: number().optional()
11096
- });
11097
- var DecoderSessionConfigSchema = object({
11098
- codec: string(),
11099
- maxFps: number().default(0),
11100
- outputFormat: _enum([
11101
- "jpeg",
11102
- "rgb",
11103
- "bgr",
11104
- "yuv420",
11105
- "gray"
11106
- ]).default("jpeg"),
11107
- scale: number().default(1),
11108
- width: number().optional(),
11109
- height: number().optional(),
11110
- /**
11111
- * Identifier of the camera this decoder session serves. Optional
11112
- * because the cap is generic (any caller could request decode), but
11113
- * stream-broker passes it so decoder logs include `deviceId` for
11114
- * per-camera filtering when diagnosing failures (e.g. node-av
11115
- * sendPacket errors on a single hung camera).
11116
- */
11117
- deviceId: number().int().nonnegative().optional(),
11118
- /**
11119
- * Free-form tag for log scoping. Stream-broker uses
11120
- * `broker:<deviceId>/<profile>`. Decoder session logger surfaces it
11121
- * on every line so `grep tag=broker:5/high` filters one camera
11122
- * profile cleanly.
11123
- */
11124
- tag: string().optional(),
11125
- /**
11126
- * Where the session delivers decoded frames (Phase 5 / D9):
11127
- *
11128
- * - `'callback'` (default) — the legacy pixel path: decoded frames are
11129
- * buffered as `DecodedFrame`s and drained via `pullFrames`.
11130
- * - `'shm'` — the shared-memory frame plane: decoded frames are written
11131
- * into an OS shared-memory ring and drained as zero-pixel
11132
- * `FrameHandle`s via `pullHandles`. A session is one mode or the
11133
- * other — `pullFrames` returns nothing for an `'shm'` session and
11134
- * `pullHandles` returns nothing for a `'callback'` session.
11135
- */
11136
- frameSink: _enum(["callback", "shm"]).default("callback"),
11137
- /**
11138
- * Per-camera decoder DEBUG facility. When `true`, a pull-mode session emits
11139
- * a throttled (~1Hz) structured `decoder debug` line (effective/adaptive fps,
11140
- * real-time lag, dropped-frame delta, avg decode time, hwaccel). Mirrors the
11141
- * stream-broker's `streamingDebug` gate — off by default so production logs
11142
- * stay quiet and the emit path pays zero per-frame cost when disabled.
11143
- */
11144
- debug: boolean().optional()
11145
- });
11146
10998
  /**
11147
10999
  * Per-component log CHANNELS — the gate a hot path consults, and the registry
11148
11000
  * an addon declares its channels in.
@@ -11285,6 +11137,26 @@ var ClipSearchStrictnessSchema = _enum([
11285
11137
  "balanced",
11286
11138
  "strict"
11287
11139
  ]);
11140
+ /** Steps whose effect a root label can BE. */
11141
+ var LABEL_SUPPLY_STEP_IDS = [
11142
+ "animal-classifier",
11143
+ "vehicle-classifier",
11144
+ "package-detection"
11145
+ ];
11146
+ /** Steps whose box a root detection can BE. */
11147
+ var CROP_SUPPLY_STEP_IDS = ["plate-detection", "face-detection"];
11148
+ /**
11149
+ * Steps whose per-detection MASK a root detection can carry (D737). The live
11150
+ * mask step is `segmentation` — a frame-plane refiner that runs its own model
11151
+ * once per detection crop. (`instance-segmentation` is a dormant step id that
11152
+ * no camera tree carries.)
11153
+ */
11154
+ var MASK_SUPPLY_STEP_IDS = ["segmentation"];
11155
+ [
11156
+ ...LABEL_SUPPLY_STEP_IDS,
11157
+ ...CROP_SUPPLY_STEP_IDS,
11158
+ ...MASK_SUPPLY_STEP_IDS
11159
+ ];
11288
11160
  var MODEL_FORMATS = [
11289
11161
  "onnx",
11290
11162
  "coreml",
@@ -11313,7 +11185,53 @@ var ModelFormatEntrySchema = object({
11313
11185
  /** Multi-file payload (directory members or sibling files). */
11314
11186
  files: array(string()).readonly().optional(),
11315
11187
  /** Runtime(s) that can use this format. If omitted, inferred from ModelFormat key */
11316
- runtimes: array(_enum(["python"])).readonly().optional()
11188
+ runtimes: array(_enum(["python"])).readonly().optional(),
11189
+ /**
11190
+ * Content revision of the artefact, for one hosted OFF the CamStack mirror.
11191
+ * A format on the mirror leaves it unset: its revision (the sha256 of its
11192
+ * weight file) comes from the downloader's generated table, kept in step
11193
+ * with the mirror by `scripts/check-hosted-model-revisions.ts` (D744). A
11194
+ * node records the revision it downloaded next to the file
11195
+ * (`<file>.revision`); a copy with no record or a different one is stale
11196
+ * unless its weight file hashes to the revision, and a stale copy is
11197
+ * downloaded again, the old one serving until the new one is complete. No
11198
+ * revision at all ⇒ a file on disk is current, whatever it holds (D743).
11199
+ */
11200
+ revision: string().min(1).optional()
11201
+ });
11202
+ /**
11203
+ * What a node holds for one (model, format) (D746). `current` is a complete
11204
+ * copy at its catalog revision — exactly what `downloaded: true` means.
11205
+ * `stale` is bytes on disk that are not (yet) proven current under D743/D744:
11206
+ * no or a different revision record, or a missing sibling. `missing` is no
11207
+ * copy. `downloaded` alone folds `stale` into "not downloaded", which hid
11208
+ * reclaimable bytes and a copy about to be replaced.
11209
+ */
11210
+ var ModelOnDiskStateSchema = _enum([
11211
+ "current",
11212
+ "stale",
11213
+ "missing"
11214
+ ]);
11215
+ /**
11216
+ * The numeric precision of one format's BUILD (D746) — reported only when the
11217
+ * build states it (file-name token, an INT8 variant, an EdgeTPU compile, a
11218
+ * CamStack Core ML export). Absent means "not stated", never "fp32".
11219
+ */
11220
+ var ModelFormatPrecisionSchema = _enum([
11221
+ "fp32",
11222
+ "fp16",
11223
+ "int8"
11224
+ ]);
11225
+ /**
11226
+ * One format of one model as a node's `pipelineExecutor.getSchema` reports it.
11227
+ * `onDisk` / `precision` are optional for version skew: a runner that predates
11228
+ * them omits them, and a reader falls back to `downloaded`.
11229
+ */
11230
+ var PipelineModelFormatStatusSchema = object({
11231
+ downloaded: boolean(),
11232
+ sizeMB: number(),
11233
+ onDisk: ModelOnDiskStateSchema.optional(),
11234
+ precision: ModelFormatPrecisionSchema.optional()
11317
11235
  });
11318
11236
  /**
11319
11237
  * Extra file that must be downloaded alongside the model (e.g., labels JSON, dict.txt).
@@ -11354,11 +11272,11 @@ var ModelVariantGroupSchema = object({
11354
11272
  /** Quantization axis. Omit ⇒ the fp32 base build. */
11355
11273
  precision: _enum(["fp32", "int8"]).optional(),
11356
11274
  /**
11357
- * Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
11358
- * latency-optimized export (e.g. ReLU-activation variant) — the slot the
11359
- * future performance variants plug into.
11275
+ * Training / latency-variant axis. Omit ⇒ the standard build. `test` marks
11276
+ * an alternate training of the same family (Scrypted `relu_test`); chip
11277
+ * label is "Test".
11360
11278
  */
11361
- optimization: _enum(["standard", "fast"]).optional(),
11279
+ optimization: _enum(["standard", "test"]).optional(),
11362
11280
  /**
11363
11281
  * Input-resolution axis (square input side, px). Omit ⇒ the family's native
11364
11282
  * resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
@@ -11381,9 +11299,10 @@ var ModelProviderIdSchema = _enum([
11381
11299
  * are per upstream. A persisted custom-model row written when this field was a
11382
11300
  * string still parses — the string is lifted into `{ weights }`.
11383
11301
  *
11384
- * Every licence surface (the admin "Models and licenses" page,
11385
- * `THIRD_PARTY_MODELS.md`, the Hugging Face model table) is GENERATED from
11386
- * these records by `scripts/gen-model-licenses.ts` (D661).
11302
+ * Every machine licence surface (`THIRD_PARTY_MODELS.md`, the Hugging Face
11303
+ * model table) is GENERATED from these records by
11304
+ * `scripts/gen-model-licenses.ts` (D661). Operator-facing docs live in
11305
+ * `camstack/docs` → `/docs/detection/models`.
11387
11306
  */
11388
11307
  var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { weights: value } : value, object({
11389
11308
  /** SPDX id of the WEIGHTS' terms, a `LicenseRef-*` for non-SPDX terms, or `UNKNOWN`. */
@@ -11416,6 +11335,46 @@ var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { wei
11416
11335
  /** True when the weights or their data forbid commercial use. */
11417
11336
  nonCommercial: boolean().optional()
11418
11337
  }));
11338
+ /**
11339
+ * One step a ROOT detector can supply from its own output (D730) — see
11340
+ * `ModelCatalogEntry.suppliesSteps`.
11341
+ *
11342
+ * - `label`: the root's raw class IS the step's answer. `labelToEffect` maps
11343
+ * the root's label to the step's vocabulary; `uncovered` is the vocabulary
11344
+ * the root cannot produce (shown as unavailable, never a blocker).
11345
+ * - `crop`: the root draws the box the step would have found (`license_plate`
11346
+ * for plate-detection, `face` for face-detection). The box becomes a detail
11347
+ * child of the `parentMacro` detection that contains it — never a track.
11348
+ * - `mask`: the root's decode emits an instance mask with every detection (a
11349
+ * YOLO26-seg root, D737) — the `segmentation` step's result, carried on the
11350
+ * detection in the shape that step produces. Derived from the model's
11351
+ * postprocessor on read, never stored by an import.
11352
+ */
11353
+ var RootStepSupplySchema = discriminatedUnion("kind", [
11354
+ object({
11355
+ kind: literal("label"),
11356
+ stepId: _enum(LABEL_SUPPLY_STEP_IDS),
11357
+ labelToEffect: record(string(), string()),
11358
+ uncovered: array(string()).readonly()
11359
+ }),
11360
+ object({
11361
+ kind: literal("crop"),
11362
+ stepId: _enum(CROP_SUPPLY_STEP_IDS),
11363
+ rootLabels: array(string()).readonly(),
11364
+ parentMacro: _enum(["vehicle", "person"]),
11365
+ childClass: _enum(["plate", "face"]),
11366
+ /**
11367
+ * The root's smaller input side, stamped on read by `rootSuppliesOf` from
11368
+ * the model entry — what a step's `minRootInputPx` gate judges. Never
11369
+ * stored by an import.
11370
+ */
11371
+ rootInputPx: number().int().positive().optional()
11372
+ }),
11373
+ object({
11374
+ kind: literal("mask"),
11375
+ stepId: _enum(MASK_SUPPLY_STEP_IDS)
11376
+ })
11377
+ ]);
11419
11378
  var ModelCatalogEntrySchema = object({
11420
11379
  id: string(),
11421
11380
  name: string(),
@@ -11481,6 +11440,35 @@ var ModelCatalogEntrySchema = object({
11481
11440
  */
11482
11441
  defaultConfidence: number().min(0).max(1).optional(),
11483
11442
  /**
11443
+ * Per-MODEL default of the per-class confidence floors (`minConfidence<Macro>`
11444
+ * on a detector step), keyed by macro class: `{ person: 0.45 }`. A class
11445
+ * absent here runs at the step slider's global default. The same row shape
11446
+ * the floor measurement produces (`model-floors.json`: modelId → floors), so
11447
+ * a measured table is copied in as-is. An operator override is bound to the
11448
+ * model it was made for and does not survive a model change (D738). A custom
11449
+ * / imported model may declare it; without it, the global defaults apply.
11450
+ */
11451
+ defaultClassFloors: record(string(), number().min(0).max(1)).optional(),
11452
+ /**
11453
+ * The inference precision this model's OpenVINO IR needs on an Intel GPU.
11454
+ * Absent ⇒ the device default (f16 on a GPU). Set to `'f32'` for an FP32 IR
11455
+ * that produces invalid output at f16 — measured 2026-10-07 for YOLO26
11456
+ * base IRs (`yolo26s`: 0 true / 146 false positives; `yolo26m*`: NaN
11457
+ * scores) on the Core Ultra iGPU and the N100. Threaded to the pool as
11458
+ * `PoolModelConfig.gpuInferencePrecision`; the pool sets
11459
+ * INFERENCE_PRECISION_HINT on a GPU only. Costs ~60% latency on the GPU.
11460
+ */
11461
+ gpuInferencePrecision: _enum(["f32", "f16"]).optional(),
11462
+ /**
11463
+ * ROOT detectors only: per supplied step (`animal-classifier`, …), the
11464
+ * minimum DETECTION score from which this root's own fine label (species,
11465
+ * vehicle type — D736 root supply) is taken (D741). Below it the detection
11466
+ * keeps its macro class without the fine label. `1` = never take it from
11467
+ * this root. Absent ⇒ no floor beyond the macro floor. The supplied step's
11468
+ * `minConfidence` slider, bound to the ROOT model, overrides it.
11469
+ */
11470
+ suppliedLabelFloors: record(string(), number().min(0).max(1)).optional(),
11471
+ /**
11484
11472
  * When true, the executor produces a landmark-aligned crop (similarity warp
11485
11473
  * onto the canonical template) before this step runs, instead of a plain
11486
11474
  * axis-aligned bbox crop. Required for face-recognition embedders (ArcFace):
@@ -11542,6 +11530,16 @@ var ModelCatalogEntrySchema = object({
11542
11530
  */
11543
11531
  classMap: DetectionCatalogClassMapSchema.optional(),
11544
11532
  /**
11533
+ * The pipeline steps this ROOT detector can supply from its own output
11534
+ * (D730): its labels name a step's effect (`deer` for `animal-classifier`)
11535
+ * or draw a step's box (`license_plate` for `plate-detection`). Computed at
11536
+ * import from THIS model's labelmap by `deriveRootSupplies`, never written
11537
+ * by hand and never assumed per family; a row without it is derived on read
11538
+ * (`rootSuppliesOf`). Whether a camera uses it is the step's own
11539
+ * `useRootModel` flag (`resolveRootSupply`).
11540
+ */
11541
+ suppliesSteps: array(RootStepSupplySchema).readonly().optional(),
11542
+ /**
11545
11543
  * The model's CLIP feature-space contract (text encoder, dimension, vector
11546
11544
  * index, token window, search floor) — see `clip-model.ts`. Present ONLY on a
11547
11545
  * CLIP image encoder; its absence is what "not a CLIP model" means to the
@@ -13143,13 +13141,6 @@ var BrokerRtspClientSchema = object({
13143
13141
  lastRtpAt: number(),
13144
13142
  bytesSent: number()
13145
13143
  });
13146
- var BrokerDecodedClientSchema = object({
13147
- tag: string(),
13148
- subscribedAt: number(),
13149
- maxFps: number(),
13150
- framesDelivered: number(),
13151
- framesDropped: number()
13152
- });
13153
13144
  var BrokerAudioClientSchema = object({
13154
13145
  tag: string(),
13155
13146
  subscribedAt: number(),
@@ -13241,7 +13232,6 @@ var BrokerEncodedClientSchema = object({
13241
13232
  });
13242
13233
  var BrokerClientsSchema = object({
13243
13234
  rtsp: array(BrokerRtspClientSchema).readonly(),
13244
- decoded: array(BrokerDecodedClientSchema).readonly(),
13245
13235
  audio: array(BrokerAudioClientSchema).readonly(),
13246
13236
  encoded: array(BrokerEncodedClientSchema).readonly(),
13247
13237
  pipeClients: number(),
@@ -13610,11 +13600,7 @@ method(object({
13610
13600
  auth: "admin"
13611
13601
  }), method(object({ brokerId: string() }), BrokerClientsSchema), method(object({
13612
13602
  brokerId: string(),
13613
- channel: _enum([
13614
- "rtsp",
13615
- "decoded",
13616
- "audio"
13617
- ]),
13603
+ channel: _enum(["rtsp", "audio"]),
13618
13604
  handle: string()
13619
13605
  }), object({ killed: boolean() }), {
13620
13606
  kind: "mutation",
@@ -13649,10 +13635,7 @@ method(object({
13649
13635
  }), method(SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, { kind: "mutation" }), method(object({
13650
13636
  subscriptionId: string(),
13651
13637
  maxCount: number().int().positive().default(8)
13652
- }), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(SubscribeFramesInputSchema, SubscribeFramesResultSchema, { kind: "mutation" }), method(object({
13653
- subscriptionId: string(),
13654
- maxCount: number().int().positive().default(4)
13655
- }), array(FrameHandleSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(object({
13638
+ }), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(object({
13656
13639
  brokerId: string(),
13657
13640
  seconds: number().min(0).max(30)
13658
13641
  }), _void(), {
@@ -14911,54 +14894,12 @@ id: union([string(), number()]) }), {
14911
14894
  kind: "mutation",
14912
14895
  auth: "admin"
14913
14896
  });
14914
- /**
14915
- * shm ring usage stats for a `frameSink: 'shm'` decoder session —
14916
- * exposed via `decoder.getShmStats` so downstream consumers can
14917
- * observe ring pressure (slot count, byte budget, hit/miss ratio).
14918
- */
14919
- var ShmRingStatsSchema = object({
14920
- sessionId: string(),
14921
- slotCount: number().int(),
14922
- slotByteLength: number().int(),
14923
- segmentBytes: number().int(),
14924
- budgetMb: number().int(),
14925
- framesWritten: number().int(),
14926
- getFrameHits: number().int(),
14927
- getFrameMisses: number().int()
14928
- });
14929
- method(object({ codec: string() }), boolean()), method(_void(), object({
14897
+ method(_void(), object({
14930
14898
  id: string(),
14931
14899
  name: string(),
14932
- isPullMode: boolean().optional(),
14933
- priority: number().optional(),
14934
14900
  hwaccel: string().optional(),
14935
14901
  probedBestHwaccel: string().optional()
14936
- })), method(DecoderSessionConfigSchema, object({
14937
- sessionId: string(),
14938
- nodeId: string()
14939
- })), method(object({ sessionId: string() }), _void()), method(object({
14940
- sessionId: string(),
14941
- packet: EncodedPacketSchema
14942
- }), _void()), method(object({
14943
- sessionId: string(),
14944
- url: string()
14945
- }), _void()), method(object({
14946
- sessionId: string(),
14947
- maxCount: number().default(1),
14948
- waitMs: number().optional()
14949
- }), array(DecodedFrameSchema)), method(object({
14950
- sessionId: string(),
14951
- maxCount: number().default(1),
14952
- waitMs: number().optional()
14953
- }), array(FrameHandleSchema)), method(object({ handle: FrameHandleSchema }), DecodedFrameSchema.nullable()), method(object({ sessionId: string() }), ShmRingStatsSchema.nullable()), method(object({
14954
- sessionId: string(),
14955
- config: DecoderSessionConfigSchema.partial()
14956
- }), _void()), method(object({ sessionId: string() }), DecoderStatsSchema), method(_void(), array(object({
14957
- sessionId: string(),
14958
- codec: string(),
14959
- outputFormat: string(),
14960
- createdAtMs: number()
14961
- })).readonly()), method(_void(), object({ backend: string() }), {
14902
+ })), method(_void(), object({ backend: string() }), {
14962
14903
  kind: "mutation",
14963
14904
  auth: "admin"
14964
14905
  });
@@ -15014,7 +14955,7 @@ DeviceType.Camera;
15014
14955
  * This matters here more than anywhere else in the repo, because every provider
15015
14956
  * that knows a device's host knows its PASSWORD too: `{ host, port, username,
15016
14957
  * password }` sit in one object on Hikvision, Amcrest, Reolink and ONVIF alike,
15017
- * and `http://admin:hunter2@192.168.x.x/` is a URL a browser accepts. The
14958
+ * and `http://admin:hunter2@192.168.60.139/` is a URL a browser accepts. The
15018
14959
  * camera's own page will ask for its own login. That is correct, and pre-
15019
14960
  * filling it is the operator's business, not ours.
15020
14961
  *
@@ -15975,6 +15916,10 @@ var DeviceInfoSchema = object({
15975
15916
  isCamera: boolean(),
15976
15917
  /** Current config values — serializable snapshot */
15977
15918
  config: record(string(), unknown()),
15919
+ /** Paths inside `config` the device's schema declares secret (D783) —
15920
+ * what the non-admin redaction withholds. Paths, never values. Absent
15921
+ * when the owning runner has not reported them. */
15922
+ secretConfigPaths: array(string()).optional(),
15978
15923
  /** Hardware + identity blob (manufacturer / model / firmware / sn /
15979
15924
  * uid / mac / …). Populated by drivers; editable via setMetadata. */
15980
15925
  metadata: record(string(), unknown()).nullable().optional(),
@@ -16180,7 +16125,13 @@ var DeviceRegisterPayloadSchema = object({
16180
16125
  * call (workers re-register on init), so probe-driven updates
16181
16126
  * (e.g. PTZ flag flipping after the abilities probe) propagate. */
16182
16127
  features: array(string()).optional(),
16183
- config: record(string(), unknown())
16128
+ config: record(string(), unknown()),
16129
+ /** Config paths the device's own schema DECLARES secret
16130
+ * (`.meta({ secret: true })` — dotted, `[]` for array items, e.g.
16131
+ * `connection.password`). Re-published on every register; the non-admin
16132
+ * redaction withholds them at any depth (D783). Optional: an older runner
16133
+ * omits it and the keyword backstop applies. */
16134
+ secretConfigPaths: array(string()).optional()
16184
16135
  });
16185
16136
  var DeviceRemovePayloadSchema = object({ deviceId: number() });
16186
16137
  var DevicePersistConfigPayloadSchema = object({
@@ -17007,6 +16958,12 @@ method(_void(), array(string()).readonly(), { auth: "admin" }), method(object({
17007
16958
  kind: "mutation",
17008
16959
  auth: "admin"
17009
16960
  });
16961
+ var HUB_ADDRESS_ROLES = [
16962
+ "appConnections",
16963
+ "notificationTaps",
16964
+ "internal",
16965
+ "publicEndpoint"
16966
+ ];
17010
16967
  /**
17011
16968
  * Transport bounds for AI capability methods.
17012
16969
  *
@@ -17833,7 +17790,14 @@ var LoginMethodContributionSchema = discriminatedUnion("kind", [
17833
17790
  icon: string().optional(),
17834
17791
  /** Addon-owned HTTP route the button navigates to (GET). */
17835
17792
  startUrl: string(),
17836
- stage: LoginStageEnum
17793
+ stage: LoginStageEnum,
17794
+ /**
17795
+ * The provider names an external identity a signed-in user can link to
17796
+ * their own account (D782): `auth.listLinkableProviders` /
17797
+ * `beginExternalLink` offer exactly the redirect methods that set this,
17798
+ * whatever their id. Absent / false — a login button only (magic-link).
17799
+ */
17800
+ linkable: boolean().optional()
17837
17801
  }),
17838
17802
  object({
17839
17803
  kind: literal("widget"),
@@ -18203,7 +18167,7 @@ method(object({
18203
18167
  timeoutMs: 6e5
18204
18168
  });
18205
18169
  method(object({
18206
- nodeId: string(),
18170
+ targetNodeId: string(),
18207
18171
  modelId: string(),
18208
18172
  format: _enum(MODEL_FORMATS),
18209
18173
  entry: ModelCatalogEntrySchema
@@ -19609,6 +19573,8 @@ var NcSystemEventKindSchema = _enum([
19609
19573
  "stream-offline",
19610
19574
  "node-online",
19611
19575
  "node-offline",
19576
+ "node-restarting",
19577
+ "node-updating",
19612
19578
  "node-inference-unavailable",
19613
19579
  "detection-blind",
19614
19580
  "addon-crash-loop",
@@ -20707,8 +20673,9 @@ var NcRuleSchema = NcRuleInputSchema.extend({
20707
20673
  disabledTargetIds: array(string()).default([])
20708
20674
  });
20709
20675
  /**
20710
- * The state-summary SECTIONS (D647 / D698): the D637 kind groups that report a
20711
- * still-true state. `backups-exports` and `alarm` are not sections — a completed
20676
+ * The state-summary SECTIONS (D647 / D698 / D708): the D637 kind groups that
20677
+ * report a still-true state. `addons` is the crash-looped addons only and
20678
+ * `addon-updates` the addons that are behind (D708 split them). `backups-exports` and `alarm` are not sections — a completed
20712
20679
  * job is not an open state, and the alarm stays instant.
20713
20680
  */
20714
20681
  var NcStateSummarySectionIdSchema = _enum([
@@ -20720,6 +20687,7 @@ var NcStateSummarySectionIdSchema = _enum([
20720
20687
  "detection-blind",
20721
20688
  "nodes",
20722
20689
  "addons",
20690
+ "addon-updates",
20723
20691
  "updates"
20724
20692
  ]);
20725
20693
  /** One section of a previewed state summary. `unavailable` = its state could not be read. */
@@ -21200,7 +21168,25 @@ var NcAlarmModeDelaysListSchema = array(object({
21200
21168
  * When this mode may be armed. Absent / null = always allowed (same as a
21201
21169
  * rule with no `schedule`). Evaluated with {@link isScheduleActive}.
21202
21170
  */
21203
- schedule: NcScheduleSchema.optional()
21171
+ schedule: NcScheduleSchema.optional(),
21172
+ /**
21173
+ * D706: while this mode's ENTRY DELAY runs, do the alarm rules' own pushes go out (as an
21174
+ * intrusion naming the locations)? Absent = false — the entry-delay notification is the
21175
+ * only one, and the matches ride the triggered notification's mosaic (D705).
21176
+ */
21177
+ notifyDuringEntryDelay: boolean().optional(),
21178
+ /**
21179
+ * D706: notify "watched again" when a sensor this arm bypassed closes and opens again.
21180
+ * Absent = false (logged, not sent). Even when true it is not sent when that same sensor
21181
+ * is the one that starts the entry delay — the entry-delay notification already names it.
21182
+ */
21183
+ notifySensorRewatched: boolean().optional(),
21184
+ /**
21185
+ * D735: notify "ignored" when a sensor this arm bypassed really MOVED while armed (its own
21186
+ * change time is after the arm) and set nothing off. Absent = false (logged, not sent). A
21187
+ * re-sync, a recovery from `unavailable` or a duplicate is never announced, switch or not.
21188
+ */
21189
+ notifySensorIgnored: boolean().optional()
21204
21190
  })).max(8).refine(uniqueModes, { message: "modeDelays: at most one entry per arm mode" });
21205
21191
  var NcAlarmModeDelaysEditListSchema = array(object({
21206
21192
  mode: AlarmArmModeSchema,
@@ -21209,7 +21195,13 @@ var NcAlarmModeDelaysEditListSchema = array(object({
21209
21195
  triggeredDurationSec: NcAlarmTriggeredSecSchema.nullable().optional(),
21210
21196
  postTriggeredAction: NcAlarmPostTriggeredActionSchema.nullable().optional(),
21211
21197
  /** Set a schedule, or `null` to clear (mode always allowed again). */
21212
- schedule: NcScheduleSchema.nullable().optional()
21198
+ schedule: NcScheduleSchema.nullable().optional(),
21199
+ /** D706: set the switch, or `null` to clear it (back to the default, false). */
21200
+ notifyDuringEntryDelay: boolean().nullable().optional(),
21201
+ /** D706: set the switch, or `null` to clear it (back to the default, false). */
21202
+ notifySensorRewatched: boolean().nullable().optional(),
21203
+ /** D735: set the switch, or `null` to clear it (back to the default, false). */
21204
+ notifySensorIgnored: boolean().nullable().optional()
21213
21205
  })).max(8).refine(uniqueModes, { message: "modeDelays: at most one edit per arm mode" });
21214
21206
  /** One switch of the alarm table: put ONE device on, or take it off, ONE mode's list. */
21215
21207
  var NcAlarmNonBlockingEditSchema = object({
@@ -22170,45 +22162,25 @@ Object.freeze(Object.fromEntries([{
22170
22162
  label: "Face recognition model",
22171
22163
  defaultModelId: "auraface-r100",
22172
22164
  indexName: "the enrolled face gallery",
22173
- options: [
22174
- {
22175
- id: "auraface-r100",
22176
- label: "AuraFace R100"
22177
- },
22178
- {
22179
- id: "arcface-r100",
22180
- label: "ArcFace (ResNet34)"
22181
- },
22182
- {
22183
- id: "inception-resnet-v1",
22184
- label: "Inception ResNet V1"
22185
- }
22186
- ]
22165
+ options: [{
22166
+ id: "auraface-r100",
22167
+ label: "AuraFace R100"
22168
+ }]
22187
22169
  }, {
22188
22170
  stepId: "clip-embedding",
22189
22171
  label: "Semantic search model",
22190
- defaultModelId: "mobileclip-s1",
22172
+ defaultModelId: "siglip2-b16-224",
22191
22173
  indexName: "the object semantic-search index",
22192
- options: [
22193
- {
22194
- id: "mobileclip-s1",
22195
- label: "MobileCLIP S1"
22196
- },
22197
- {
22198
- id: "mobileclip-s2",
22199
- label: "MobileCLIP S2"
22200
- },
22201
- {
22202
- id: "siglip2-b16-224",
22203
- label: "SigLIP2 B/16 (Apache-2.0)"
22204
- }
22205
- ]
22174
+ options: [{
22175
+ id: "siglip2-b16-224",
22176
+ label: "SigLIP2 B/16 (Apache-2.0)"
22177
+ }]
22206
22178
  }].map((s) => [s.stepId, s.defaultModelId])));
22207
22179
  var CLUSTER_STEP_SETTING_FIELDS = [{
22208
22180
  stepId: "face-embedding",
22209
22181
  key: "minLandmarkFaceSize",
22210
- label: "Min face size for recognition (detection px)",
22211
- 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.",
22182
+ label: "Min face size to embed (detection-frame px)",
22183
+ 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.",
22212
22184
  type: "slider",
22213
22185
  min: 0,
22214
22186
  max: 64,
@@ -23260,7 +23232,13 @@ var RetrainFrameSchema = object({
23260
23232
  sizeBytes: number().int(),
23261
23233
  width: number().int(),
23262
23234
  height: number().int(),
23263
- copiedAt: number()
23235
+ copiedAt: number(),
23236
+ /** When the CAMERA captured the frame. Absent on a copy taken before D785. */
23237
+ capturedAt: number().optional(),
23238
+ /** The operator's "every subject in this frame is boxed". Detector
23239
+ * evaluation keeps only complete frames: an unboxed subject would count as
23240
+ * a false positive. */
23241
+ complete: boolean()
23264
23242
  });
23265
23243
  /** Why a copy-on-select could not be honoured — named, never a silent skip. */
23266
23244
  var RetrainCopyRefusalSchema = _enum([
@@ -23281,6 +23259,51 @@ var RetrainFrameListSchema = object({
23281
23259
  /** What the page pre-selects — the native key frame when one survives. */
23282
23260
  autoPickMediaId: number().int().optional()
23283
23261
  });
23262
+ /**
23263
+ * Which frames an annotated export carries. Every field narrows; an empty
23264
+ * filter is every annotated copy. A dataset VERSION is a frozen `frameIds`
23265
+ * list owned by whoever trains (the training orchestrator), so `frameIds` is
23266
+ * the primitive a version export uses; `batchId` re-selects what an earlier
23267
+ * export carried (`exportedInBatch`).
23268
+ */
23269
+ var RetrainExportFilterSchema = object({
23270
+ deviceIds: array(number()).optional(),
23271
+ frameIds: array(string()).max(2e4).optional(),
23272
+ batchId: string().optional(),
23273
+ /** Only frames the operator marked complete (all subjects boxed). */
23274
+ completeOnly: boolean().optional()
23275
+ });
23276
+ /**
23277
+ * `frames`: the full frame copies, boxes in `annotations.json`.
23278
+ * `crops`: additionally one JPEG per subject, cut with the runtime detail-crop
23279
+ * convention — the classifier layout.
23280
+ */
23281
+ var RetrainExportLayoutSchema = _enum(["frames", "crops"]);
23282
+ /**
23283
+ * Where `writeRetrainArchive` streams the tar: one HTTP request whose body is
23284
+ * the archive, sent chunk by chunk. Covers a presigned PUT and a provider
23285
+ * addon's data-plane upload route alike. Headers are sent verbatim and never
23286
+ * logged.
23287
+ */
23288
+ var RetrainArchiveTargetSchema = object({
23289
+ kind: literal("http"),
23290
+ method: _enum(["PUT", "POST"]),
23291
+ url: string().url(),
23292
+ headers: record(string(), string()).optional()
23293
+ });
23294
+ var RetrainArchiveResultSchema = object({
23295
+ batchId: string(),
23296
+ frames: number().int(),
23297
+ crops: number().int(),
23298
+ annotations: number().int(),
23299
+ /** Frames planned but not shipped (unreadable copy, path too long). */
23300
+ missing: number().int(),
23301
+ bytes: number().int(),
23302
+ /** sha256 of the exact bytes sent. */
23303
+ sha256: string(),
23304
+ /** The target's HTTP status. */
23305
+ status: number().int()
23306
+ });
23284
23307
  /** What the operator asked the assist to look for. */
23285
23308
  var RetrainAssistSubjectSchema = discriminatedUnion("kind", [object({
23286
23309
  kind: literal("package"),
@@ -24075,9 +24098,25 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
24075
24098
  }), RetrainTransitionResultSchema, {
24076
24099
  kind: "mutation",
24077
24100
  auth: "admin"
24078
- }), method(object({ deviceIds: array(number()).optional() }), object({ url: string() }), {
24101
+ }), method(RetrainExportFilterSchema.extend({ layout: RetrainExportLayoutSchema.optional() }), object({ url: string() }), {
24079
24102
  kind: "query",
24080
24103
  auth: "admin"
24104
+ }), method(object({
24105
+ deviceId: number(),
24106
+ trackId: string(),
24107
+ frameId: string(),
24108
+ complete: boolean()
24109
+ }), RetrainFrameSchema, {
24110
+ kind: "mutation",
24111
+ auth: "admin"
24112
+ }), method(object({
24113
+ filter: RetrainExportFilterSchema,
24114
+ layout: RetrainExportLayoutSchema,
24115
+ target: RetrainArchiveTargetSchema
24116
+ }), RetrainArchiveResultSchema, {
24117
+ kind: "mutation",
24118
+ auth: "admin",
24119
+ timeoutMs: 60 * 6e4
24081
24120
  }), method(object({
24082
24121
  /** Which of the three event tables owns the row. */
24083
24122
  ownerType: EventOwnerTypeSchema,
@@ -24128,6 +24167,34 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
24128
24167
  timestamp: number()
24129
24168
  });
24130
24169
  /**
24170
+ * A root model's boxes standing in for one crop-kind step's own inference
24171
+ * (D730) — see `runPipeline.suppliedRoot`.
24172
+ */
24173
+ var SuppliedRootOutputSchema = object({
24174
+ stepId: string(),
24175
+ /** The root model that drew the boxes — stamped on the result. */
24176
+ modelId: string(),
24177
+ detections: array(object({
24178
+ /** `[x1, y1, x2, y2]` in the pixels of the call's image. */
24179
+ bbox: tuple([
24180
+ number(),
24181
+ number(),
24182
+ number(),
24183
+ number()
24184
+ ]),
24185
+ score: number(),
24186
+ /**
24187
+ * Five facial landmarks in the same pixels — a face the step's own
24188
+ * detector already re-found inside a root face box (D730), so its
24189
+ * embedder child aligns it exactly as it aligns any detected face.
24190
+ */
24191
+ landmarks: array(object({
24192
+ x: number(),
24193
+ y: number()
24194
+ })).optional()
24195
+ })).min(1)
24196
+ });
24197
+ /**
24131
24198
  * Reference to the frame's retained NATIVE surface + the parent crop's placement
24132
24199
  * within the frame, so the executor can re-cut a leaf child ROI at native
24133
24200
  * resolution on the detail plane. See the `runPipeline` `nativeCropRef` field.
@@ -24175,7 +24242,7 @@ var FrameRefSchema = object({
24175
24242
  timestamp: number(),
24176
24243
  capturedAt: number().optional()
24177
24244
  });
24178
- var ModelFormatSchema$1 = _enum([
24245
+ var ModelFormatSchema$2 = _enum([
24179
24246
  "onnx",
24180
24247
  "coreml",
24181
24248
  "openvino",
@@ -24193,7 +24260,7 @@ var PipelineSlotSchema = _enum([
24193
24260
  var PipelineEngineChoiceSchema = object({
24194
24261
  runtime: literal("python"),
24195
24262
  backend: string(),
24196
- format: ModelFormatSchema$1,
24263
+ format: ModelFormatSchema$2,
24197
24264
  device: string().optional()
24198
24265
  });
24199
24266
  /**
@@ -24232,32 +24299,15 @@ var PipelineDefaultStepSchema = lazy(() => object({
24232
24299
  group: string().optional(),
24233
24300
  settings: record(string(), unknown()).optional()
24234
24301
  }));
24235
- var PipelineTemplateStepSchema = lazy(() => object({
24236
- addonId: string(),
24237
- enabled: boolean(),
24238
- modelId: string(),
24239
- children: array(PipelineTemplateStepSchema).readonly(),
24240
- settings: record(string(), unknown()).optional()
24241
- }));
24242
- var PipelineTemplateSchema$1 = object({
24243
- id: string(),
24244
- name: string(),
24245
- createdAt: string(),
24246
- updatedAt: string(),
24247
- engine: PipelineEngineChoiceSchema,
24248
- steps: array(PipelineTemplateStepSchema).readonly()
24249
- });
24250
24302
  var PipelineModelOptionSchema = object({
24251
24303
  id: string(),
24252
24304
  name: string(),
24253
- formats: record(string(), object({
24254
- downloaded: boolean(),
24255
- sizeMB: number()
24256
- })),
24305
+ formats: record(string(), PipelineModelFormatStatusSchema),
24257
24306
  group: ModelVariantGroupSchema.optional(),
24258
24307
  legacy: boolean().optional(),
24259
24308
  provider: ModelProviderIdSchema.optional(),
24260
- defaultConfidence: number().optional()
24309
+ defaultConfidence: number().optional(),
24310
+ suppliesSteps: array(RootStepSupplySchema).readonly().optional()
24261
24311
  });
24262
24312
  var ConfigFieldBridge = custom();
24263
24313
  var PipelineAddonSchemaSchema = object({
@@ -24419,6 +24469,22 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
24419
24469
  }), {
24420
24470
  kind: "mutation",
24421
24471
  auth: "admin"
24472
+ }), method(object({
24473
+ nodeId: string(),
24474
+ deviceIds: array(number()).readonly().optional(),
24475
+ dryRun: boolean()
24476
+ }), object({
24477
+ entries: array(object({
24478
+ deviceId: number(),
24479
+ keys: array(string()).readonly()
24480
+ })).readonly(),
24481
+ refused: array(object({
24482
+ deviceId: number(),
24483
+ reason: string()
24484
+ })).readonly()
24485
+ }), {
24486
+ kind: "mutation",
24487
+ auth: "admin"
24422
24488
  }), method(object({ nodeId: string() }), object({ unhealthy: array(object({
24423
24489
  /** `<backend>:<device>`, e.g. `openvino:gpu`. */
24424
24490
  deviceKey: string(),
@@ -24444,22 +24510,14 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
24444
24510
  }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(object({
24445
24511
  steps: array(PipelineStepInputSchema),
24446
24512
  deviceKey: string().optional()
24447
- }), PipelineValidationResultSchema), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
24448
- name: string(),
24449
- steps: array(PipelineTemplateStepSchema).readonly(),
24450
- engine: PipelineEngineChoiceSchema
24451
- }), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({
24452
- id: string(),
24453
- name: string().optional(),
24454
- steps: array(PipelineTemplateStepSchema).readonly().optional()
24455
- }), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({ id: string() }), _void(), { kind: "mutation" }), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string() }), ModelAvailabilityListBridge), method(object({
24513
+ }), PipelineValidationResultSchema), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string() }), ModelAvailabilityListBridge), method(object({
24456
24514
  addonId: string(),
24457
24515
  modelId: string(),
24458
- format: ModelFormatSchema$1
24516
+ format: ModelFormatSchema$2
24459
24517
  }), DownloadModelResultSchema, { kind: "mutation" }), method(object({
24460
24518
  addonId: string(),
24461
24519
  modelId: string(),
24462
- format: ModelFormatSchema$1
24520
+ format: ModelFormatSchema$2
24463
24521
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
24464
24522
  steps: array(PipelineStepInputSchema).min(1),
24465
24523
  frame: FrameInputSchema.optional(),
@@ -24525,7 +24583,16 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
24525
24583
  * `device-not-servable`), and nothing reaches the camera's live
24526
24584
  * trace stream. Absent ⇒ unchanged behaviour.
24527
24585
  */
24528
- replay: literal(true).optional()
24586
+ replay: literal(true).optional(),
24587
+ /**
24588
+ * Root-supplied detections for the tree's ROOT step (D730). Set by
24589
+ * `runDetailSubtree` when the camera's root model supplies a crop-kind
24590
+ * step (a Frigate+ `license_plate` for `plate-detection`): the step is
24591
+ * NOT inferred, these boxes are its output, and its children (the plate
24592
+ * reader) run on them through their own crop policy. Boxes are in the
24593
+ * PIXELS of the image this call carries. Absent ⇒ the root step runs.
24594
+ */
24595
+ suppliedRoot: SuppliedRootOutputSchema.optional()
24529
24596
  }), PipelineRunResultBridge, { kind: "mutation" }), method(object({
24530
24597
  steps: array(PipelineStepInputSchema).min(1),
24531
24598
  frames: array(FrameInputSchema).min(1).max(255),
@@ -24607,6 +24674,375 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
24607
24674
  filename: string().optional(),
24608
24675
  settings: record(string(), unknown()).optional()
24609
24676
  }), AudioTestResultSchema, { kind: "mutation" }), method(_void(), ConfigUISchemaNullableBridge);
24677
+ /**
24678
+ * The wire shapes of the Auto tune plan and apply (D745), used by the
24679
+ * `pipeline-orchestrator` cap. The recommender's own types
24680
+ * (`recommend.ts`) are the TS face of the same data; these
24681
+ * schemas are what crosses the cap boundary.
24682
+ */
24683
+ var ModelFormatSchema$1 = _enum(MODEL_FORMATS);
24684
+ /** The operator's range for it. */
24685
+ var MIN_SESSIONS_PER_DEVICE_RANGE = {
24686
+ min: 1,
24687
+ max: 8
24688
+ };
24689
+ var HardwareClassIdSchema = _enum([
24690
+ "intel-core-ultra",
24691
+ "intel-n-series",
24692
+ "apple-m-base",
24693
+ "apple-m-pro",
24694
+ "unknown"
24695
+ ]);
24696
+ var AcceleratorKindSchema = _enum([
24697
+ "intel-npu",
24698
+ "intel-igpu",
24699
+ "x86-cpu",
24700
+ "arm-cpu",
24701
+ "apple-ane",
24702
+ "coral"
24703
+ ]);
24704
+ var RecommendationReasonSchema = discriminatedUnion("kind", [
24705
+ object({
24706
+ kind: literal("capacity"),
24707
+ sessions: number(),
24708
+ minSessions: number()
24709
+ }),
24710
+ object({
24711
+ kind: literal("tie-faster"),
24712
+ over: string(),
24713
+ recallDelta: number()
24714
+ }),
24715
+ object({
24716
+ kind: literal("stepped-down"),
24717
+ from: string(),
24718
+ to: string(),
24719
+ limitedBy: string()
24720
+ }),
24721
+ object({
24722
+ kind: literal("no-fit-lightest"),
24723
+ sessions: number(),
24724
+ minSessions: number()
24725
+ }),
24726
+ object({
24727
+ kind: literal("derived-latency"),
24728
+ modelId: string()
24729
+ }),
24730
+ object({ kind: literal("cpu-device") }),
24731
+ object({ kind: literal("coral-untouched") }),
24732
+ object({ kind: literal("device-disabled") }),
24733
+ object({ kind: literal("device-unavailable") }),
24734
+ object({ kind: literal("node-offline") }),
24735
+ object({ kind: literal("no-hardware-facts") }),
24736
+ object({
24737
+ kind: literal("no-measured-data"),
24738
+ hardwareClass: HardwareClassIdSchema
24739
+ }),
24740
+ object({
24741
+ kind: literal("no-family-build"),
24742
+ format: ModelFormatSchema$1
24743
+ })
24744
+ ]);
24745
+ var DeviceModelChoiceSchema = object({
24746
+ modelId: string(),
24747
+ p50Ms: number(),
24748
+ fps: number(),
24749
+ measured: boolean(),
24750
+ /** Parallel sessions at the camera rate with the headroom kept free: ⌊fps × (1 − headroom) / camera fps⌋. */
24751
+ capacitySessions: number(),
24752
+ personRecall: number()
24753
+ });
24754
+ var DeviceRecommendationSchema = object({
24755
+ deviceKey: string(),
24756
+ accelerator: AcceleratorKindSchema.nullable(),
24757
+ enabled: boolean(),
24758
+ available: boolean(),
24759
+ chosen: DeviceModelChoiceSchema.nullable(),
24760
+ reasons: array(RecommendationReasonSchema).readonly()
24761
+ });
24762
+ var NodeRecommendationSchema = object({
24763
+ nodeId: string(),
24764
+ reachable: boolean(),
24765
+ hardwareClass: HardwareClassIdSchema.nullable(),
24766
+ cpuModel: string().nullable(),
24767
+ skipped: boolean(),
24768
+ acceleratorModelId: string().nullable(),
24769
+ devices: array(DeviceRecommendationSchema).readonly(),
24770
+ reasons: array(RecommendationReasonSchema).readonly()
24771
+ });
24772
+ var ModelPinChangeSchema = object({
24773
+ stepId: string(),
24774
+ before: string().nullable(),
24775
+ after: string().nullable()
24776
+ });
24777
+ var NodeDeviceChangeSchema = object({
24778
+ nodeId: string(),
24779
+ deviceKey: string(),
24780
+ madeExplicit: boolean(),
24781
+ modelPins: array(ModelPinChangeSchema).readonly(),
24782
+ thresholds: array(object({
24783
+ stepId: string(),
24784
+ keys: array(string()).readonly()
24785
+ })).readonly()
24786
+ });
24787
+ var CameraOverrideClearSchema = object({
24788
+ deviceId: number(),
24789
+ source: _enum(["step-override", "wholesale"]),
24790
+ nodeId: string(),
24791
+ deviceKey: string().nullable(),
24792
+ stepId: string(),
24793
+ modelIdBefore: string().nullable(),
24794
+ keys: array(string()).readonly()
24795
+ });
24796
+ var DetectorStoreClearSchema = object({
24797
+ deviceId: number(),
24798
+ keys: array(string()).readonly()
24799
+ });
24800
+ var AutoTuneWarningSchema = discriminatedUnion("kind", [
24801
+ object({
24802
+ kind: literal("detector-store-cluster-wide"),
24803
+ skippedNodes: array(string()).readonly()
24804
+ }),
24805
+ object({
24806
+ kind: literal("detector-store-unreadable"),
24807
+ error: string()
24808
+ }),
24809
+ object({
24810
+ kind: literal("coral-enabled"),
24811
+ nodeId: string(),
24812
+ deviceKey: string()
24813
+ })
24814
+ ]);
24815
+ var AutoTuneOptionsSchema = object({
24816
+ /** Share of each accelerator's throughput kept free (0.3–0.5). */
24817
+ headroom: number().min(.3).max(.5).default(.4),
24818
+ /**
24819
+ * The least number of parallel sessions every device must sustain at the
24820
+ * camera rate with the headroom kept free (D755). The most accurate model
24821
+ * that reaches it wins.
24822
+ */
24823
+ minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
24824
+ });
24825
+ var AutoTunePlanSchema = object({
24826
+ /** Hash of everything the apply will write — the apply refuses a different one. */
24827
+ planHash: string(),
24828
+ family: literal("yolov9"),
24829
+ headroom: number(),
24830
+ minSessionsPerDevice: number(),
24831
+ /** The detection rate a session is counted at (the fastest camera running the pipeline root). */
24832
+ cameraFps: number(),
24833
+ generatedAt: number(),
24834
+ nodes: array(NodeRecommendationSchema).readonly(),
24835
+ nodeChanges: array(NodeDeviceChangeSchema).readonly(),
24836
+ cameraClears: array(CameraOverrideClearSchema).readonly(),
24837
+ detectorStoreClears: array(DetectorStoreClearSchema).readonly(),
24838
+ warnings: array(AutoTuneWarningSchema).readonly()
24839
+ });
24840
+ var AutoTuneApplyInputSchema = object({
24841
+ planHash: string(),
24842
+ headroom: number().min(.3).max(.5).default(.4),
24843
+ minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
24844
+ });
24845
+ var AutoTunePhaseResultSchema = object({
24846
+ phase: _enum([
24847
+ "download",
24848
+ "camera-overrides",
24849
+ "detector-thresholds",
24850
+ "node-models",
24851
+ "redispatch"
24852
+ ]),
24853
+ ok: boolean(),
24854
+ detail: string()
24855
+ });
24856
+ var AutoTuneApplyResultSchema = discriminatedUnion("kind", [
24857
+ object({
24858
+ kind: literal("applied"),
24859
+ planHash: string(),
24860
+ phases: array(AutoTunePhaseResultSchema).readonly()
24861
+ }),
24862
+ object({
24863
+ kind: literal("aborted"),
24864
+ phases: array(AutoTunePhaseResultSchema).readonly()
24865
+ }),
24866
+ object({
24867
+ kind: literal("stale"),
24868
+ plan: AutoTunePlanSchema
24869
+ }),
24870
+ object({
24871
+ kind: literal("refused"),
24872
+ reason: _enum(["apply-in-progress"])
24873
+ })
24874
+ ]);
24875
+ /**
24876
+ * Wire shapes of the Load balancing surface (D748): the session placement
24877
+ * policy, the atomic share write, the observed placement statistics, the
24878
+ * hardware share suggestion and the stale device pins.
24879
+ */
24880
+ /**
24881
+ * How a new detection session picks its node and device.
24882
+ * - `least-loaded` — the historical rule: lowest `attached / weight`, a
24883
+ * constant node order at a tie (D37). An idle node always ties at 0, so a
24884
+ * weight only bites once a node already holds a session.
24885
+ * - `share` — the share of PARALLEL sessions is held to the weights, and a
24886
+ * full or drowning node yields to a free one (D748).
24887
+ */
24888
+ var SessionPlacementPolicySchema = _enum(["least-loaded", "share"]);
24889
+ var LoadBalancingSharesInputSchema = object({
24890
+ /** nodeId → share (> 0). A node left out keeps its weight. */
24891
+ nodes: record(string(), number().positive()).default({}),
24892
+ /** nodeId → deviceKey → share (> 0). A device left out keeps its weight. */
24893
+ devices: record(string(), record(string(), number().positive())).default({})
24894
+ });
24895
+ var PlacementStatsInputSchema = object({
24896
+ /** Window the observed shares are averaged over (default 1 h, max 24 h). */
24897
+ windowMs: number().int().min(6e4).max(1440 * 60 * 1e3).default(3600 * 1e3) });
24898
+ var PlacementDeviceStatsSchema = object({
24899
+ deviceKey: string(),
24900
+ /** Sessions running on this device now. */
24901
+ sessionsNow: number(),
24902
+ /** Sessions started on this device inside the window. */
24903
+ sessionsStarted: number(),
24904
+ /** Time-weighted share of the node's parallel sessions over the window (0–1); null = no session ran. */
24905
+ observedShare: number().nullable()
24906
+ });
24907
+ var PlacementNodeStatsSchema = object({
24908
+ nodeId: string(),
24909
+ sessionsNow: number(),
24910
+ sessionsStarted: number(),
24911
+ /** Time-weighted share of the cluster's parallel sessions over the window (0–1); null = none ran. */
24912
+ observedShare: number().nullable(),
24913
+ /** Most sessions this node ran at once inside the window. */
24914
+ peakSessions: number(),
24915
+ /** Sessions a share election handed elsewhere because this node was full or drowning. */
24916
+ yieldsAway: number(),
24917
+ devices: array(PlacementDeviceStatsSchema).readonly()
24918
+ });
24919
+ /** A camera's device pin that the session path cannot honour. */
24920
+ var StaleDevicePinSchema = object({
24921
+ deviceId: number(),
24922
+ deviceKey: string(),
24923
+ /** `disabled` — the key exists on some node but is not enabled anywhere; `absent` — no node has it. */
24924
+ reason: _enum(["disabled", "absent"])
24925
+ });
24926
+ var PlacementStatsSchema = object({
24927
+ policy: SessionPlacementPolicySchema,
24928
+ windowMs: number(),
24929
+ /** How much of the window was actually observed (the hub keeps it in memory). */
24930
+ observedForMs: number(),
24931
+ sessionsNow: number(),
24932
+ /** Most parallel sessions across the cluster inside the window. */
24933
+ clusterPeakSessions: number(),
24934
+ nodes: array(PlacementNodeStatsSchema).readonly(),
24935
+ stalePins: array(StaleDevicePinSchema).readonly()
24936
+ });
24937
+ /**
24938
+ * Where an automatic share's capacity comes from (D755).
24939
+ * - `hardware` — the static capacity of each device at its Auto tune model:
24940
+ * the measured latency table for the node's hardware class.
24941
+ * - `benchmark` — the node's own measured capacity (node benchmark results).
24942
+ * A node with no results falls back to `hardware`, and says so.
24943
+ */
24944
+ var CapacitySourceSchema = _enum(["hardware", "benchmark"]);
24945
+ /** Why a node under the `benchmark` source was sized from hardware instead. */
24946
+ var CapacityFallbackSchema = _enum(["no-benchmark-results", "partial-benchmark-results"]);
24947
+ var SuggestSharesInputSchema = object({
24948
+ headroom: number().min(.3).max(.5).default(.4),
24949
+ /** Default `hardware`. */
24950
+ source: CapacitySourceSchema.default("hardware")
24951
+ });
24952
+ var SuggestedDeviceShareSchema = object({
24953
+ deviceKey: string(),
24954
+ /** Share of the node (0–100, rounded). */
24955
+ share: number(),
24956
+ modelId: string().nullable(),
24957
+ /** Inferences per second at that model, from the measured table; null when sized by a benchmark. */
24958
+ fps: number().nullable(),
24959
+ /** False for a table cell derived from another chip; true for a measured cell or a benchmark. */
24960
+ measured: boolean(),
24961
+ /**
24962
+ * Advisory session cap: ⌊fps × (1 − headroom) / camera fps⌋ from the table,
24963
+ * or the benchmark's measured max sessions. Never enforced.
24964
+ */
24965
+ suggestedMaxSessions: number().nullable()
24966
+ });
24967
+ var SuggestedNodeShareSchema = object({
24968
+ nodeId: string(),
24969
+ /** Share of the cluster (0–100, rounded); null = node skipped (offline, unknown hardware). */
24970
+ share: number().nullable(),
24971
+ /** Parallel sessions the node sustains at the suggested models with the headroom kept free. */
24972
+ capacitySessions: number(),
24973
+ devices: array(SuggestedDeviceShareSchema).readonly(),
24974
+ skippedReason: string().nullable(),
24975
+ /** What this node's capacity was read from; null when the node is skipped. */
24976
+ capacitySource: CapacitySourceSchema.nullable(),
24977
+ /** Set when the `benchmark` source was asked for and this node used `hardware`. */
24978
+ capacityFallback: CapacityFallbackSchema.nullable()
24979
+ });
24980
+ var SuggestSharesResultSchema = object({
24981
+ headroom: number(),
24982
+ /** The source asked for; each node says what it actually used. */
24983
+ source: CapacitySourceSchema,
24984
+ /** Camera detection rate the capacity is counted in (the fastest camera's fps). */
24985
+ cameraFps: number(),
24986
+ /** The Auto tune capacity floor the models were picked at. */
24987
+ minSessionsPerDevice: number(),
24988
+ nodes: array(SuggestedNodeShareSchema).readonly()
24989
+ });
24990
+ /**
24991
+ * Where the node and device shares come from (D750, D755).
24992
+ * - `hardware` (default) — computed by the system from each node's static
24993
+ * capacity (its accelerators at their Auto tune models, from the measured
24994
+ * latency table), recomputed whenever a node or device joins, leaves, is
24995
+ * switched on or off, or changes model. No load input.
24996
+ * - `benchmark` — the same, from each node's measured capacity (node
24997
+ * benchmark results); a node without results falls back to `hardware`.
24998
+ * - `manual` — the operator's stored sliders.
24999
+ * Either way a node or device that cannot take sessions gives its share to
25000
+ * the others in proportion; the stored values are never rewritten for that.
25001
+ */
25002
+ var ShareSourceSchema = _enum([
25003
+ "hardware",
25004
+ "benchmark",
25005
+ "manual"
25006
+ ]);
25007
+ var SetShareSourceInputSchema = object({ source: ShareSourceSchema });
25008
+ object({
25009
+ nodes: record(string(), number()),
25010
+ devices: record(string(), record(string(), number()))
25011
+ });
25012
+ var EffectiveDeviceShareSchema = object({
25013
+ deviceKey: string(),
25014
+ /** Can take sessions now (enabled, available, can run the root). */
25015
+ eligible: boolean(),
25016
+ /** The share the source assigns, as a percentage of the node's devices. */
25017
+ configuredPct: number(),
25018
+ /** The share actually used, after an ineligible device's share went to the others. */
25019
+ effectivePct: number()
25020
+ });
25021
+ var EffectiveNodeShareSchema = object({
25022
+ nodeId: string(),
25023
+ eligible: boolean(),
25024
+ configuredPct: number(),
25025
+ effectivePct: number(),
25026
+ /** Automatic sources: what this node's share was computed from; null under `manual` or before the first answer. */
25027
+ capacitySource: CapacitySourceSchema.nullable(),
25028
+ /** Automatic `benchmark`: why this node used `hardware` instead. */
25029
+ capacityFallback: CapacityFallbackSchema.nullable(),
25030
+ devices: array(EffectiveDeviceShareSchema).readonly()
25031
+ });
25032
+ var EffectiveSharesSchema = object({
25033
+ source: ShareSourceSchema,
25034
+ policy: SessionPlacementPolicySchema,
25035
+ /** An automatic source with no computed answer yet: the stored sliders are used meanwhile. */
25036
+ autoPending: boolean(),
25037
+ /** When the automatic shares were last computed (ms epoch); null = never. */
25038
+ computedAt: number().nullable(),
25039
+ /** What made the system recompute them last. */
25040
+ trigger: string().nullable(),
25041
+ nodes: array(EffectiveNodeShareSchema).readonly(),
25042
+ /** The relative weights the election reads (before eligibility). */
25043
+ nodeWeights: record(string(), number()),
25044
+ deviceWeights: record(string(), record(string(), number()))
25045
+ });
24610
25046
  object({
24611
25047
  activeCameras: number(),
24612
25048
  throttledCameras: number(),
@@ -25090,6 +25526,22 @@ var MotionSourceEnum = _enum([
25090
25526
  "device-activity"
25091
25527
  ]);
25092
25528
  /**
25529
+ * What opened an on-motion detection SESSION: the motion source that passed the
25530
+ * camera's `motionSources` gate, and what raised it (the camera itself, or a
25531
+ * sensor the operator attached — D672). `sensorName` is the attached sensor's
25532
+ * device name as the orchestrator's camera-sensors resolution last read it;
25533
+ * absent when unknown or when the camera itself triggered.
25534
+ *
25535
+ * Carried on the session attach ONLY so the runner's `DetectionPhaseTransition`
25536
+ * can say what started the session (D672 rule 11, amended 2026-10-06). The
25537
+ * runner never decides anything on it.
25538
+ */
25539
+ var SessionTriggerSchema = object({
25540
+ source: MotionSourceEnum,
25541
+ triggeredBy: MotionTriggeredBySchema,
25542
+ sensorName: string().optional()
25543
+ });
25544
+ /**
25093
25545
  * List of motion sources active on a camera. Empty array is valid:
25094
25546
  * "no source" — happens for battery cams without firmware motion when
25095
25547
  * the operator hasn't opted into the SW analyzer (would hold the
@@ -25341,6 +25793,14 @@ var RunnerCameraConfigSchema = object({
25341
25793
  */
25342
25794
  motionSources: MotionSourcesSchema.default(["analyzer"]),
25343
25795
  /**
25796
+ * What opened this attach, on a SESSION attach only (see
25797
+ * {@link SessionTriggerSchema}). OPTIONAL with no default: absent on a
25798
+ * standing attach, an occupancy burst, a re-dispatch with no motion event
25799
+ * behind it, and every attach from an orchestrator older than the field — the
25800
+ * runner then names no source on the phase event.
25801
+ */
25802
+ sessionTrigger: SessionTriggerSchema.optional(),
25803
+ /**
25344
25804
  * WHICH root detector runs for this camera. The detection counterpart of
25345
25805
  * {@link motionSources}, same shape and same discipline: a per-camera list
25346
25806
  * of sources the system understands, vendor-agnostic, owned here.
@@ -25500,14 +25960,15 @@ var RunnerLocalLoadSchema = object({
25500
25960
  * Per-inference-device live load (multi-device C4). One entry per deviceKey
25501
25961
  * this runner currently has attached cameras on, so the orchestrator's second
25502
25962
  * `balance()` pass (over a node's devices) weights on real per-pool session
25503
- * counts. Empty on single-device / pre-multi-device runners. `queueDepthTotal`
25504
- * per device is 0 until the pool backlog gets a public accessor (follow-up).
25963
+ * counts. Empty on single-device / pre-multi-device runners. There is no
25964
+ * per-device queue depth: the inference pool's backlog has no accessor, and
25965
+ * a field that always read 0 was removed rather than shown as a measurement
25966
+ * (D762).
25505
25967
  */
25506
25968
  devices: array(object({
25507
25969
  deviceKey: string(),
25508
25970
  backend: string(),
25509
- attachedCameras: number(),
25510
- queueDepthTotal: number()
25971
+ attachedCameras: number()
25511
25972
  })).default([]),
25512
25973
  /** Hardware capability flags reported by this node. */
25513
25974
  hardware: object({
@@ -25643,7 +26104,22 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
25643
26104
  */
25644
26105
  cropJpeg: string().optional(),
25645
26106
  parent: DetailParentSchema,
25646
- steps: array(string()).optional()
26107
+ steps: array(string()).optional(),
26108
+ /**
26109
+ * The camera's root model already drew this step's boxes (D730): a
26110
+ * `license_plate` inside the parent vehicle. The named step is NOT
26111
+ * inferred — these FRAME-space boxes are its output — and its
26112
+ * requested children (the plate reader) run on them. Absent ⇒ every
26113
+ * requested step infers as before.
26114
+ */
26115
+ supplied: object({
26116
+ stepId: string(),
26117
+ modelId: string(),
26118
+ boxes: array(object({
26119
+ bbox: NativeCropBboxSchema,
26120
+ score: number()
26121
+ })).min(1)
26122
+ }).optional()
25647
26123
  }), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" }), method(object({
25648
26124
  /** Catalog step id, e.g. `clip-embedding`. */
25649
26125
  stepId: string(),
@@ -25706,14 +26182,6 @@ var CameraPipelineConfigSchema = object({
25706
26182
  settings: record(string(), unknown()).readonly().optional()
25707
26183
  }).nullable().optional()
25708
26184
  });
25709
- var PipelineTemplateSchema = object({
25710
- id: string(),
25711
- name: string(),
25712
- description: string().optional(),
25713
- config: CameraPipelineConfigSchema,
25714
- createdAt: string(),
25715
- updatedAt: string()
25716
- });
25717
26185
  var DeviceStepConfigSchema = object({
25718
26186
  modelId: string().optional(),
25719
26187
  settings: record(string(), unknown()).optional(),
@@ -25787,9 +26255,10 @@ var CameraStepOverridePatchSchema = object({
25787
26255
  modelId: string().optional(),
25788
26256
  settings: record(string(), unknown()).readonly().optional()
25789
26257
  });
26258
+ var CameraStepSettingsSchema = record(string(), record(string(), unknown()).readonly());
25790
26259
  var CameraPipelineSettingsSchema = object({
25791
- pinnedAgentNodeId: string().optional(),
25792
26260
  stepToggles: record(string(), boolean()).optional(),
26261
+ stepSettings: CameraStepSettingsSchema.optional(),
25793
26262
  stepOverridesByDevice: record(string(), record(string(), record(string(), CameraStepOverridePatchSchema))).optional(),
25794
26263
  pipelineByAgent: record(string(), CameraPipelineForAgentSchema).optional()
25795
26264
  });
@@ -25822,7 +26291,10 @@ var PipelineAssignmentSchema = object({
25822
26291
  });
25823
26292
  /**
25824
26293
  * Per-agent load summary surfaced to the load balancer + dashboards.
25825
- * Aggregated from each runner's `getLocalLoad` cap call.
26294
+ * Aggregated from each runner's `getLocalLoad` cap call. In the
26295
+ * `getAgentLoad` report, a single-device node's default-pool sessions (no
26296
+ * `deviceKey`) are credited to its one eligible device in `load.devices` —
26297
+ * the default pool IS that device (D745); the balancer's census stays raw.
25826
26298
  */
25827
26299
  var AgentLoadSummarySchema = object({
25828
26300
  nodeId: string(),
@@ -25911,26 +26383,27 @@ var CameraBrokerStatusSchema = object({
25911
26383
  width: number(),
25912
26384
  height: number(),
25913
26385
  subscribers: number(),
25914
- inFps: number(),
25915
- outFps: number()
26386
+ /**
26387
+ * Encoded packets/s the broker receives from the camera. null when the
26388
+ * broker's stats read failed — unknown, never 0 (a 0 here reads as a stall).
26389
+ * There is no output rate: decoding runs in the session decode workers, not
26390
+ * in the broker, so the broker's own decoded-frame rate is 0 on every live
26391
+ * camera and is not served (D758).
26392
+ */
26393
+ inFps: number().nullable()
25916
26394
  })).readonly(),
25917
26395
  webrtcSessions: number(),
25918
26396
  rtspRestream: boolean()
25919
26397
  });
25920
- /** Shared-memory ring statistics within the decoder block. */
25921
- var CameraDecoderShmSchema = object({
25922
- framesWritten: number(),
25923
- getFrameHits: number(),
25924
- getFrameMisses: number(),
25925
- budgetMb: number()
25926
- });
25927
- /** Decoder block — null when the decoder stage is unreachable or inactive. */
25928
- var CameraDecoderStatusSchema = object({
25929
- nodeId: string(),
25930
- formats: array(string()).readonly(),
25931
- sessionCount: number(),
25932
- shm: CameraDecoderShmSchema
25933
- });
26398
+ /**
26399
+ * Decoder block — WHERE decode runs (co-located with the detection node by
26400
+ * construction); null when the camera has no detection node. It carries no
26401
+ * frame counter: the shared-memory plane whose counters it used to serve is
26402
+ * gone, and those fields read 0 forever. Whether frames actually flow is read
26403
+ * from `detection.actualFps` (frames delivered to and processed by the
26404
+ * detector), never from a counter nothing feeds.
26405
+ */
26406
+ var CameraDecoderStatusSchema = object({ nodeId: string() });
25934
26407
  /** Motion block — null when motion detection is not active for this device. */
25935
26408
  var CameraMotionStatusSchema = object({
25936
26409
  enabled: boolean(),
@@ -26287,12 +26760,6 @@ method(object({
26287
26760
  }), object({ success: literal(true) }), {
26288
26761
  kind: "mutation",
26289
26762
  auth: "admin"
26290
- }), method(object({
26291
- agentNodeId: string(),
26292
- detectWeight: number().positive().nullable()
26293
- }), object({ success: literal(true) }), {
26294
- kind: "mutation",
26295
- auth: "admin"
26296
26763
  }), method(object({
26297
26764
  agentNodeId: string(),
26298
26765
  detect: boolean().nullable().optional(),
@@ -26334,6 +26801,15 @@ method(object({
26334
26801
  }), {
26335
26802
  kind: "mutation",
26336
26803
  auth: "admin"
26804
+ }), method(AutoTuneOptionsSchema, AutoTunePlanSchema, { auth: "admin" }), method(AutoTuneApplyInputSchema, AutoTuneApplyResultSchema, {
26805
+ kind: "mutation",
26806
+ auth: "admin"
26807
+ }), method(LoadBalancingSharesInputSchema, object({ success: literal(true) }), {
26808
+ kind: "mutation",
26809
+ auth: "admin"
26810
+ }), method(PlacementStatsInputSchema, PlacementStatsSchema, { auth: "admin" }), method(SuggestSharesInputSchema, SuggestSharesResultSchema, { auth: "admin" }), method(_void(), EffectiveSharesSchema, { auth: "admin" }), method(SetShareSourceInputSchema, object({ success: literal(true) }), {
26811
+ kind: "mutation",
26812
+ auth: "admin"
26337
26813
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
26338
26814
  deviceId: number(),
26339
26815
  addonId: string(),
@@ -26350,6 +26826,13 @@ method(object({
26350
26826
  }), object({ success: literal(true) }), {
26351
26827
  kind: "mutation",
26352
26828
  auth: "admin"
26829
+ }), method(object({
26830
+ deviceId: number(),
26831
+ addonId: string(),
26832
+ settings: record(string(), unknown()).nullable()
26833
+ }), object({ success: literal(true) }), {
26834
+ kind: "mutation",
26835
+ auth: "admin"
26353
26836
  }), method(object({
26354
26837
  deviceId: number(),
26355
26838
  agentNodeId: string(),
@@ -26373,25 +26856,7 @@ method(object({
26373
26856
  }), method(_void(), DiskReconcileJobSchema, {
26374
26857
  kind: "mutation",
26375
26858
  auth: "admin"
26376
- }), method(_void(), DiskReconcileJobSchema, { auth: "admin" }), method(_void(), array(PipelineTemplateSchema).readonly()), method(object({
26377
- name: string(),
26378
- description: string().optional(),
26379
- config: CameraPipelineConfigSchema
26380
- }), PipelineTemplateSchema, {
26381
- kind: "mutation",
26382
- auth: "admin"
26383
- }), method(object({
26384
- id: string(),
26385
- name: string().optional(),
26386
- description: string().optional(),
26387
- config: CameraPipelineConfigSchema.optional()
26388
- }), PipelineTemplateSchema, {
26389
- kind: "mutation",
26390
- auth: "admin"
26391
- }), method(object({ id: string() }), object({ success: literal(true) }), {
26392
- kind: "mutation",
26393
- auth: "admin"
26394
- });
26859
+ }), method(_void(), DiskReconcileJobSchema, { auth: "admin" });
26395
26860
  /**
26396
26861
  * Cap → event-kind mapping for the SENSOR / CONTROL cap families — the table
26397
26862
  * `pipeline-analytics.listEventKinds` uses to turn a linked device's bound
@@ -26981,7 +27446,19 @@ var SsoBridgeClaimsSchema = object({
26981
27446
  * editing a descriptor must not retroactively extend or shorten a link the
26982
27447
  * operator already consented to.
26983
27448
  */
26984
- refreshTtl: union([number().int().positive(), literal("never")]).optional()
27449
+ refreshTtl: union([number().int().positive(), literal("never")]).optional(),
27450
+ /**
27451
+ * Opaque handle of a hub-side LINK intent (D782). Set by an OIDC callback
27452
+ * that was started from a signed-in user's "Link" button: the finish then
27453
+ * links this identity to the intent's user instead of signing anyone in.
27454
+ * The handle carries no user id — the hub resolves it, single-use.
27455
+ */
27456
+ linkIntent: string().optional(),
27457
+ /**
27458
+ * Verified `iss` of the id_token behind an OIDC login bridge (D782). A
27459
+ * subject is unique only per issuer, so a link is bound to it.
27460
+ */
27461
+ issuer: string().optional()
26985
27462
  });
26986
27463
  method(object({
26987
27464
  claims: SsoBridgeClaimsSchema,
@@ -28640,8 +29117,6 @@ var WebrtcStreamChoiceSchema = object({
28640
29117
  ]).nullable(),
28641
29118
  /** Input FPS from the camera (null for adaptive). */
28642
29119
  inputFps: number().nullable(),
28643
- /** Decoded FPS (null for adaptive). */
28644
- decodeFps: number().nullable(),
28645
29120
  /** Bitrate in kbps (null for adaptive). */
28646
29121
  bitrateKbps: number().nullable()
28647
29122
  });
@@ -28918,7 +29393,22 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
28918
29393
  * field their hints were silently stripped by the schema and the
28919
29394
  * adaptive ladder started blind on the client's display size.
28920
29395
  */
28921
- hints: webrtcClientHintsSchema.optional()
29396
+ hints: webrtcClientHintsSchema.optional(),
29397
+ /**
29398
+ * Talk-back (D771): relay the PEER's audio to the device's speaker
29399
+ * through the `intercom` cap's push-talk triple. When `true` and the
29400
+ * offer lets the peer send audio, the answer's audio is `sendrecv`
29401
+ * and every inbound frame goes to `intercom.pushTalkAudio` for this
29402
+ * `deviceId`; absent/false answers `sendonly`, as for every viewer.
29403
+ *
29404
+ * TRUSTED-CALLER ONLY. Set by the Alexa export for an Echo on a camera
29405
+ * with `intercom`, when the linked user may control that camera. The
29406
+ * hub STRIPS it from every request-bound call (a browser), exactly as
29407
+ * it overwrites `relayOnly` — a viewer's talk permission is the
29408
+ * intercom cap's own surface (share tokens gate it there), and this
29409
+ * flag must not become a second door to the camera's speaker.
29410
+ */
29411
+ talkback: boolean().optional()
28922
29412
  }), object({
28923
29413
  sessionId: string(),
28924
29414
  sdpAnswer: string()
@@ -28973,6 +29463,14 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
28973
29463
  */
28974
29464
  alive: boolean()
28975
29465
  })), method(object({
29466
+ deviceId: number().int().nonnegative(),
29467
+ sessionId: string(),
29468
+ downlinkMbps: number().nonnegative()
29469
+ }), object({
29470
+ outcome: _enum(["switching", "held"]),
29471
+ tier: CamProfileSchema.nullable(),
29472
+ reason: string()
29473
+ }), { kind: "mutation" }), method(object({
28976
29474
  deviceId: number().int().nonnegative(),
28977
29475
  sessionId: string()
28978
29476
  }), WebrtcSessionDebugSchema, { kind: "query" });
@@ -29212,6 +29710,59 @@ var AddonAutoUpdateSchema = ChannelWithInheritSchema;
29212
29710
  var RestartAddonResultSchema = unknown();
29213
29711
  var InstallPackageResultSchema = unknown();
29214
29712
  var ReloadPackagesResultSchema = unknown();
29713
+ /**
29714
+ * What an uninstall did on ONE node.
29715
+ * - `uninstalled` — removed: runner(s) stopped, caps gone, code deleted.
29716
+ * - `not-installed` — the node did not have it (nothing to do).
29717
+ * - `refused` — protected / bootstrap package; nothing touched.
29718
+ * - `failed` — attempted and did not complete; `error` says why.
29719
+ * - `pending-reconnect` — the node is OFFLINE: its record was pruned so the
29720
+ * back-fill never returns the package, and the stale-addon sweep removes the
29721
+ * copy when the node registers again (only once the hub no longer has it).
29722
+ */
29723
+ var UninstallNodeOutcomeSchema = _enum([
29724
+ "uninstalled",
29725
+ "not-installed",
29726
+ "refused",
29727
+ "failed",
29728
+ "pending-reconnect"
29729
+ ]);
29730
+ var UninstallNodeResultSchema = object({
29731
+ nodeId: string(),
29732
+ outcome: UninstallNodeOutcomeSchema,
29733
+ error: string().optional(),
29734
+ addonIds: array(string()).readonly(),
29735
+ runnersStopped: array(string()).readonly(),
29736
+ warnings: array(string()).readonly()
29737
+ });
29738
+ var UninstallPackageResultSchema = object({
29739
+ /** Every targeted node ended `uninstalled`, `not-installed` or `pending-reconnect`. */
29740
+ success: boolean(),
29741
+ packageName: string(),
29742
+ results: array(UninstallNodeResultSchema).readonly()
29743
+ });
29744
+ /**
29745
+ * `unreachable` lists online agents whose status read FAILED — absence from
29746
+ * `installations` is only "not installed" for a node that answered (D315).
29747
+ */
29748
+ var PackageInstallationsSchema = object({
29749
+ installations: array(object({
29750
+ packageName: string(),
29751
+ nodeId: string(),
29752
+ nodeName: string(),
29753
+ isHub: boolean(),
29754
+ isOnline: boolean(),
29755
+ version: string().nullable(),
29756
+ addonIds: array(string()).readonly(),
29757
+ source: _enum(["live", "recorded"]),
29758
+ /** The hub installs this package too. `false` on an agent row = an orphan. */
29759
+ onHub: boolean()
29760
+ })).readonly(),
29761
+ unreachable: array(object({
29762
+ nodeId: string(),
29763
+ error: string()
29764
+ })).readonly()
29765
+ });
29215
29766
  var BulkUpdateItemStatusSchema = _enum([
29216
29767
  "queued",
29217
29768
  "updating",
@@ -29294,10 +29845,14 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
29294
29845
  }), method(object({ packageName: string() }), InstallPackageResultSchema, {
29295
29846
  kind: "mutation",
29296
29847
  auth: "admin"
29297
- }), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({ packageName: string() }), unknown(), {
29848
+ }), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({
29849
+ packageName: string().min(1),
29850
+ nodeId: string().optional(),
29851
+ everywhere: boolean().optional()
29852
+ }), UninstallPackageResultSchema, {
29298
29853
  kind: "mutation",
29299
29854
  auth: "admin"
29300
- }), method(_void(), ReloadPackagesResultSchema, {
29855
+ }), method(object({ packageName: string().optional() }), PackageInstallationsSchema, { auth: "admin" }), method(_void(), ReloadPackagesResultSchema, {
29301
29856
  kind: "mutation",
29302
29857
  auth: "admin"
29303
29858
  }), method(object({ query: string().optional() }), array(SearchResultSchema)), method(object({ nodeId: string().optional() }), array(PackageUpdateSchema).readonly(), { auth: "admin" }), method(object({
@@ -32737,7 +33292,7 @@ var LocalInterfaceSchema = object({
32737
33292
  name: string(),
32738
33293
  family: _enum(["IPv4", "IPv6"]),
32739
33294
  address: string(),
32740
- /** CIDR shorthand (e.g. `192.168.x.x/24`). Empty when OS doesn't expose. */
33295
+ /** CIDR shorthand (e.g. `192.168.10.10/24`). Empty when OS doesn't expose. */
32741
33296
  cidr: string(),
32742
33297
  /** OS netmask. Stable across calls so the SDK can hash on it. */
32743
33298
  netmask: string(),
@@ -32791,7 +33346,9 @@ var ConnectionEndpointSchema = object({
32791
33346
  "lan-ipv4",
32792
33347
  "lan-ipv6",
32793
33348
  "public",
32794
- "loopback"
33349
+ "loopback",
33350
+ "app-link",
33351
+ "custom"
32795
33352
  ]),
32796
33353
  /**
32797
33354
  * Originating-interface kind — `lan`/`wifi`/`docker`/`vpn`/`other`/
@@ -32860,15 +33417,27 @@ var GetConnectionEndpointsResultSchema = object({
32860
33417
  localPort: AdvertisedLocalPortSchema
32861
33418
  });
32862
33419
  /**
32863
- * The chosen outbound endpoint for notification artifacts. `baseUrl: null` =
32864
- * AUTO (resolved from the candidate ranking at send time); `resolved` reports
32865
- * what AUTO currently picks, so the UI can show the effective value either way.
33420
+ * The address flagged for notification taps (`notificationTaps`). `baseUrl: null` = AUTO, which
33421
+ * since D709 is the CamStack app link; `resolved` reports the effective value,
33422
+ * so the UI can show it either way.
32866
33423
  */
32867
33424
  var NotificationEndpointSchema = object({
32868
33425
  /** The operator's explicit choice, or null for AUTO. */
32869
33426
  baseUrl: string().nullable(),
32870
- /** What the ranking currently resolves to (null when nothing is reachable). */
32871
- resolved: string().nullable()
33427
+ /**
33428
+ * The effective flagged address: the explicit choice, else (AUTO) the
33429
+ * CamStack app link `https://camstack.zentik.app` (D709). A pre-D709 hub
33430
+ * answered the public tunnel / mesh here, or null.
33431
+ */
33432
+ resolved: string().nullable(),
33433
+ /**
33434
+ * The hub origin an app link carries as `hub=` (D709): the hub's best
33435
+ * public HTTPS address — the tunnel, then the mesh (Tailscale MagicDNS) —
33436
+ * picked from this cap's own palette by `pickAppLinkHub`. `null` when the
33437
+ * hub advertises neither; the app link is then minted without `hub=`.
33438
+ * Absent on a pre-D709 hub.
33439
+ */
33440
+ appLinkHub: string().nullable()
32872
33441
  });
32873
33442
  /**
32874
33443
  * The URLs the SDK / viewer should race for API access. `baseUrls` empty =
@@ -32881,6 +33450,72 @@ var ViewerEndpointsSchema = object({
32881
33450
  /** What the ranking currently resolves to (may be empty if nothing is up). */
32882
33451
  resolved: array(string()).readonly()
32883
33452
  });
33453
+ /**
33454
+ * DEPRECATED compatibility shape of `getHubAddresses` (D729 amendment, kept
33455
+ * for addons built against it): `cluster` is the `internal` role, `browser`
33456
+ * the `publicEndpoint` role; `override` is the flagged address.
33457
+ */
33458
+ var HubAddressSnapshotSchema = object({
33459
+ override: string().nullable(),
33460
+ resolved: string().nullable(),
33461
+ source: _enum([
33462
+ "override",
33463
+ "auto",
33464
+ "none"
33465
+ ])
33466
+ });
33467
+ var HubAddressesSchema = object({
33468
+ cluster: HubAddressSnapshotSchema,
33469
+ browser: HubAddressSnapshotSchema
33470
+ });
33471
+ /**
33472
+ * What an address is used for (`hub-address.ts`, D734). `appConnections` is
33473
+ * many-valued; `notificationTaps`, `publicEndpoint` and `internal` are carried
33474
+ * by at most one address.
33475
+ */
33476
+ var HubAddressRoleSchema = _enum(HUB_ADDRESS_ROLES);
33477
+ var RoleSourceSchema = _enum([
33478
+ "flagged",
33479
+ "auto",
33480
+ "none"
33481
+ ]);
33482
+ /** One single-valued role: the flagged address, the one in use, and why. */
33483
+ var HubAddressRoleResolutionSchema = object({
33484
+ /** The address carrying the flag, or null = automatic. */
33485
+ flagged: string().nullable(),
33486
+ /** The address in use, or null when nothing qualifies (never loopback). */
33487
+ resolved: string().nullable(),
33488
+ source: RoleSourceSchema
33489
+ });
33490
+ var HubAppConnectionsResolutionSchema = object({
33491
+ /** The addresses flagged `appConnections`, or empty = automatic. */
33492
+ flagged: array(string()).readonly(),
33493
+ /** What the apps race right now. */
33494
+ resolved: array(string()).readonly(),
33495
+ source: RoleSourceSchema
33496
+ });
33497
+ var HubAddressBookSchema = object({
33498
+ rows: array(ConnectionEndpointSchema.extend({
33499
+ /** In the hub's detected palette right now. */
33500
+ detected: boolean(),
33501
+ /** Entered by the operator (removable). */
33502
+ custom: boolean(),
33503
+ /** The roles explicitly flagged on this address. */
33504
+ flags: array(HubAddressRoleSchema).readonly(),
33505
+ /** The roles this address serves right now — flagged or automatic. */
33506
+ inUse: array(HubAddressRoleSchema).readonly(),
33507
+ /** The roles this address may be flagged with. */
33508
+ eligible: array(HubAddressRoleSchema).readonly()
33509
+ })).readonly(),
33510
+ roles: object({
33511
+ appConnections: HubAppConnectionsResolutionSchema,
33512
+ notificationTaps: HubAddressRoleResolutionSchema,
33513
+ internal: HubAddressRoleResolutionSchema,
33514
+ publicEndpoint: HubAddressRoleResolutionSchema
33515
+ }),
33516
+ /** The `hub=` an app link carries (D709), or null. */
33517
+ appLinkHub: string().nullable()
33518
+ });
32884
33519
  var AllowedAddressesSchema = object({
32885
33520
  /**
32886
33521
  * Allowlist of interface addresses operators have explicitly opted
@@ -32922,8 +33557,29 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
32922
33557
  * Pass `'https'` when the caller is itself loaded over HTTPS
32923
33558
  * to avoid mixed-content blocks in the browser. The public
32924
33559
  * tunnel always emits `https://` regardless. */
32925
- scheme: _enum(["http", "https"]).optional()
32926
- }), 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, {
33560
+ scheme: _enum(["http", "https"]).optional(),
33561
+ /** Append the CamStack app link entry (`kind: 'app-link'`, D709) —
33562
+ * an address notification taps can be flagged with, not a hub
33563
+ * route. Default `false`: racers and rankers never see it. */
33564
+ includeAppLink: boolean().optional()
33565
+ }), 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({
33566
+ baseUrl: string(),
33567
+ label: string().max(80)
33568
+ }), HubAddressBookSchema, {
33569
+ kind: "mutation",
33570
+ auth: "admin"
33571
+ }), method(object({ baseUrl: string() }), HubAddressBookSchema, {
33572
+ kind: "mutation",
33573
+ auth: "admin"
33574
+ }), method(object({
33575
+ role: HubAddressRoleSchema,
33576
+ baseUrl: string().nullable(),
33577
+ enabled: boolean(),
33578
+ acceptInsecureHttp: boolean().optional()
33579
+ }), HubAddressBookSchema, {
33580
+ kind: "mutation",
33581
+ auth: "admin"
33582
+ }), 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, {
32927
33583
  kind: "mutation",
32928
33584
  auth: "admin"
32929
33585
  }), method(object({
@@ -33251,7 +33907,7 @@ var MeshPeerSchema = object({
33251
33907
  tags: array(string()).readonly(),
33252
33908
  /** True when the peer advertises itself as an exit-node candidate. */
33253
33909
  exitNodeOption: boolean(),
33254
- /** Subnet routes the peer advertises (e.g. `["192.168.x.x/24"]`). */
33910
+ /** Subnet routes the peer advertises (e.g. `["192.168.10.0/24"]`). */
33255
33911
  advertisedRoutes: array(string()).readonly(),
33256
33912
  /** Owner account login (e.g. `foo@example.com`). Null for tagged peers. */
33257
33913
  userLogin: string().nullable(),
@@ -33381,7 +34037,8 @@ var MotionStatusSchema = object({
33381
34037
  * writes this slice (not even a boot seed), and neither does the runner's
33382
34038
  * phase machine: its phase is "a session is attached" for every on-motion
33383
34039
  * session, not motion, and it now has its own `DetectionPhaseTransition`.
33384
- * A provider's `isDetected` answers from the hub's slice.
34040
+ * A provider's `isDetected` and `getStatus` answer from the hub's slice
34041
+ * (`hubMotionNativeProvider`).
33385
34042
  * - **Sensors** (Home Assistant binary sensors, Homematic, Matter, Alexa
33386
34043
  * imports) — the provider pushes both edges itself, from the upstream
33387
34044
  * system's own state change. That is the sensor's own fact.
@@ -34579,7 +35236,13 @@ var OsdStatusSchema = object({ overlays: array(object({
34579
35236
  */
34580
35237
  availablePositions: array(OsdPositionEnum).readonly(),
34581
35238
  /** Firmware does not allow editing the `text` field (e.g. timestamp). */
34582
- readOnly: boolean().optional()
35239
+ readOnly: boolean().optional(),
35240
+ /**
35241
+ * Firmware text ceiling for this overlay. Absent = no known limit.
35242
+ * The OSD manager truncates here on every write — never stores its own
35243
+ * copy on the binding.
35244
+ */
35245
+ maxCharacters: number().int().positive().optional()
34583
35246
  })).readonly() });
34584
35247
  var OsdOverlayPatchSchema = object({
34585
35248
  enabled: boolean().optional(),
@@ -34630,7 +35293,9 @@ var OsdTemplateBindingSchema = object({
34630
35293
  valuePath: string().min(1).max(64),
34631
35294
  /** Convert TO this unit at render (`tryConvertUnit`). Absent = source unit. */
34632
35295
  displayUnit: string().max(16).optional(),
34633
- maxDecimals: number().int().min(0).max(4).default(1)
35296
+ maxDecimals: number().int().min(0).max(4).default(1),
35297
+ /** Raw value → display text (same shape as slot binding). Empty string hides. */
35298
+ valueMap: record(string(), string()).optional()
34634
35299
  });
34635
35300
  /**
34636
35301
  * A named template: bindings (alias → leaf field) + a parser that
@@ -34680,18 +35345,11 @@ var OsdSlotBindingSchema = object({
34680
35345
  source: OsdSourceSchema,
34681
35346
  /** `${value}` and `${unit}` are substituted; every occurrence. */
34682
35347
  template: string().max(96).default("${value}"),
34683
- /** Truncate with an ellipsis past this length. Absent = no limit. */
34684
- maxCharacters: number().int().min(4).max(64).optional(),
34685
35348
  /**
34686
35349
  * Decimal places for a numeric value. `0` yields an integer — the
34687
35350
  * documented workaround for firmwares that reject `.` in overlay text.
34688
35351
  */
34689
35352
  maxDecimals: number().int().min(0).max(4).default(1),
34690
- /**
34691
- * Appended via `${unit}` when no unit conversion produces a label.
34692
- * Prefer `source.displayUnit` for converted device-state values.
34693
- */
34694
- unitLabel: string().max(8).optional(),
34695
35353
  /** Raw value → display text, e.g. `{"true":"MOTION","false":""}`. */
34696
35354
  valueMap: record(string(), string()).optional(),
34697
35355
  /** Time windows in which the slot is shown. Absent = always. */
@@ -34700,9 +35358,7 @@ var OsdSlotBindingSchema = object({
34700
35358
  * Display gate, in the notification centre's condition vocabulary.
34701
35359
  * Only the keys reported by `getConditionSupport` are accepted.
34702
35360
  */
34703
- conditions: NcConditionsSchema.optional(),
34704
- /** Rendered when the gate is closed or the value unreadable. Empty = hide. */
34705
- fallbackText: string().max(64).default("")
35361
+ conditions: NcConditionsSchema.optional()
34706
35362
  });
34707
35363
  /** One camera slot, as the operator sees it: firmware truth + our binding. */
34708
35364
  var OsdSlotViewSchema = object({
@@ -39114,6 +39770,32 @@ var TotpStatusSchema = object({
39114
39770
  /** Null when no row exists OR the row is still pending confirmation. */
39115
39771
  confirmedAt: number().nullable()
39116
39772
  });
39773
+ /**
39774
+ * user-management — singleton capability for user accounts, API keys,
39775
+ * and scoped tokens.
39776
+ *
39777
+ * v2 model: every method gated by `auth: 'admin'`. Admin-only delegation
39778
+ * — the subset check on `setUserScopes` / `createScopedToken` is moot
39779
+ * because non-admins never reach these. If/when we open non-admin
39780
+ * delegation, structural caller-scope subset check goes inside the
39781
+ * provider.
39782
+ */
39783
+ var ExternalIdentitySchema = object({
39784
+ /** Login-method id of the provider instance, e.g. `auth-oidc/authentik`. */
39785
+ provider: string(),
39786
+ /** The IdP's stable subject (`sub`) for this account. */
39787
+ subject: string(),
39788
+ /** The verified `iss` of the IdP the identity was linked under — `sub` is unique only per issuer. */
39789
+ issuer: string(),
39790
+ userId: string(),
39791
+ /** What the IdP called the account at link time (username / email) — display only. */
39792
+ label: string().optional(),
39793
+ linkedAt: number()
39794
+ });
39795
+ var ExternalIdentityKeySchema = object({
39796
+ provider: string().min(1),
39797
+ subject: string().min(1)
39798
+ });
39117
39799
  method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserInputSchema, UserSummarySchema, {
39118
39800
  kind: "mutation",
39119
39801
  auth: "admin",
@@ -39227,7 +39909,22 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
39227
39909
  userId: string(),
39228
39910
  username: string(),
39229
39911
  scopes: array(TokenScopeSchema)
39230
- }).nullable(), { access: "view" }), method(_void(), array(OauthSessionSummarySchema), { auth: "admin" }), method(object({ id: string() }), object({ success: boolean() }), {
39912
+ }).nullable(), { access: "view" }), method(object({ userId: string() }), array(ExternalIdentitySchema), { auth: "admin" }), method(ExternalIdentityKeySchema, object({
39913
+ userId: string(),
39914
+ issuer: string()
39915
+ }).nullable(), { auth: "admin" }), method(ExternalIdentityKeySchema.extend({
39916
+ userId: string(),
39917
+ issuer: string().min(1),
39918
+ label: string().optional()
39919
+ }), object({ success: literal(true) }), {
39920
+ kind: "mutation",
39921
+ auth: "admin",
39922
+ access: "create"
39923
+ }), method(ExternalIdentityKeySchema.extend({ userId: string() }), object({ success: boolean() }), {
39924
+ kind: "mutation",
39925
+ auth: "admin",
39926
+ access: "delete"
39927
+ }), method(_void(), array(OauthSessionSummarySchema), { auth: "admin" }), method(object({ id: string() }), object({ success: boolean() }), {
39231
39928
  kind: "mutation",
39232
39929
  auth: "admin",
39233
39930
  access: "delete"
@@ -39929,6 +40626,16 @@ var zoneRulesCapability = {
39929
40626
  durability: "restored"
39930
40627
  };
39931
40628
  SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
40629
+ Object.freeze({
40630
+ person: .5,
40631
+ vehicle: .5,
40632
+ animal: .5
40633
+ });
40634
+ Object.freeze({
40635
+ person: .65,
40636
+ vehicle: .65,
40637
+ animal: .65
40638
+ });
39932
40639
  /**
39933
40640
  * Accessory device helpers — shared across drivers.
39934
40641
  *
@@ -41627,6 +42334,12 @@ Object.freeze({
41627
42334
  addonId: null,
41628
42335
  access: "view"
41629
42336
  },
42337
+ "addons.listInstallations": {
42338
+ capName: "addons",
42339
+ capScope: "system",
42340
+ addonId: null,
42341
+ access: "view"
42342
+ },
41630
42343
  "addons.listJobs": {
41631
42344
  capName: "addons",
41632
42345
  capScope: "system",
@@ -42809,90 +43522,18 @@ Object.freeze({
42809
43522
  addonId: null,
42810
43523
  access: "create"
42811
43524
  },
42812
- "decoder.createSession": {
42813
- capName: "decoder",
42814
- capScope: "system",
42815
- addonId: null,
42816
- access: "view"
42817
- },
42818
- "decoder.destroySession": {
42819
- capName: "decoder",
42820
- capScope: "system",
42821
- addonId: null,
42822
- access: "delete"
42823
- },
42824
- "decoder.getFrame": {
42825
- capName: "decoder",
42826
- capScope: "system",
42827
- addonId: null,
42828
- access: "view"
42829
- },
42830
43525
  "decoder.getInfo": {
42831
43526
  capName: "decoder",
42832
43527
  capScope: "system",
42833
43528
  addonId: null,
42834
43529
  access: "view"
42835
43530
  },
42836
- "decoder.getShmStats": {
42837
- capName: "decoder",
42838
- capScope: "system",
42839
- addonId: null,
42840
- access: "view"
42841
- },
42842
- "decoder.getStats": {
42843
- capName: "decoder",
42844
- capScope: "system",
42845
- addonId: null,
42846
- access: "view"
42847
- },
42848
- "decoder.listActiveSessions": {
42849
- capName: "decoder",
42850
- capScope: "system",
42851
- addonId: null,
42852
- access: "view"
42853
- },
42854
- "decoder.openStream": {
42855
- capName: "decoder",
42856
- capScope: "system",
42857
- addonId: null,
42858
- access: "view"
42859
- },
42860
- "decoder.pullFrames": {
42861
- capName: "decoder",
42862
- capScope: "system",
42863
- addonId: null,
42864
- access: "view"
42865
- },
42866
- "decoder.pullHandles": {
42867
- capName: "decoder",
42868
- capScope: "system",
42869
- addonId: null,
42870
- access: "view"
42871
- },
42872
- "decoder.pushPacket": {
42873
- capName: "decoder",
42874
- capScope: "system",
42875
- addonId: null,
42876
- access: "view"
42877
- },
42878
43531
  "decoder.reprobeHwaccel": {
42879
43532
  capName: "decoder",
42880
43533
  capScope: "system",
42881
43534
  addonId: null,
42882
43535
  access: "create"
42883
43536
  },
42884
- "decoder.supportsCodec": {
42885
- capName: "decoder",
42886
- capScope: "system",
42887
- addonId: null,
42888
- access: "view"
42889
- },
42890
- "decoder.updateConfig": {
42891
- capName: "decoder",
42892
- capScope: "system",
42893
- addonId: null,
42894
- access: "view"
42895
- },
42896
43537
  "detectionPipeline.applyDeviceSettingsPatch": {
42897
43538
  capName: "detection-pipeline",
42898
43539
  capScope: "device",
@@ -44381,12 +45022,24 @@ Object.freeze({
44381
45022
  addonId: null,
44382
45023
  access: "view"
44383
45024
  },
45025
+ "localNetwork.addCustomAddress": {
45026
+ capName: "local-network",
45027
+ capScope: "system",
45028
+ addonId: null,
45029
+ access: "create"
45030
+ },
44384
45031
  "localNetwork.downloadCa": {
44385
45032
  capName: "local-network",
44386
45033
  capScope: "system",
44387
45034
  addonId: null,
44388
45035
  access: "view"
44389
45036
  },
45037
+ "localNetwork.getAddresses": {
45038
+ capName: "local-network",
45039
+ capScope: "system",
45040
+ addonId: null,
45041
+ access: "view"
45042
+ },
44390
45043
  "localNetwork.getAllowedAddresses": {
44391
45044
  capName: "local-network",
44392
45045
  capScope: "system",
@@ -44399,6 +45052,12 @@ Object.freeze({
44399
45052
  addonId: null,
44400
45053
  access: "view"
44401
45054
  },
45055
+ "localNetwork.getHubAddresses": {
45056
+ capName: "local-network",
45057
+ capScope: "system",
45058
+ addonId: null,
45059
+ access: "view"
45060
+ },
44402
45061
  "localNetwork.getNotificationEndpoint": {
44403
45062
  capName: "local-network",
44404
45063
  capScope: "system",
@@ -44435,6 +45094,12 @@ Object.freeze({
44435
45094
  addonId: null,
44436
45095
  access: "create"
44437
45096
  },
45097
+ "localNetwork.removeCustomAddress": {
45098
+ capName: "local-network",
45099
+ capScope: "system",
45100
+ addonId: null,
45101
+ access: "delete"
45102
+ },
44438
45103
  "localNetwork.resetAllowlistToBestMatch": {
44439
45104
  capName: "local-network",
44440
45105
  capScope: "system",
@@ -44447,6 +45112,12 @@ Object.freeze({
44447
45112
  addonId: null,
44448
45113
  access: "create"
44449
45114
  },
45115
+ "localNetwork.setAddressRole": {
45116
+ capName: "local-network",
45117
+ capScope: "system",
45118
+ addonId: null,
45119
+ access: "create"
45120
+ },
44450
45121
  "localNetwork.setAllowedAddresses": {
44451
45122
  capName: "local-network",
44452
45123
  capScope: "system",
@@ -45893,6 +46564,12 @@ Object.freeze({
45893
46564
  addonId: null,
45894
46565
  access: "create"
45895
46566
  },
46567
+ "pipelineAnalytics.setRetrainFrameComplete": {
46568
+ capName: "pipeline-analytics",
46569
+ capScope: "device",
46570
+ addonId: null,
46571
+ access: "create"
46572
+ },
45896
46573
  "pipelineAnalytics.setTrackFlags": {
45897
46574
  capName: "pipeline-analytics",
45898
46575
  capScope: "device",
@@ -45929,6 +46606,12 @@ Object.freeze({
45929
46606
  addonId: null,
45930
46607
  access: "delete"
45931
46608
  },
46609
+ "pipelineAnalytics.writeRetrainArchive": {
46610
+ capName: "pipeline-analytics",
46611
+ capScope: "device",
46612
+ addonId: null,
46613
+ access: "create"
46614
+ },
45932
46615
  "pipelineExecutor.cacheFrameInPool": {
45933
46616
  capName: "pipeline-executor",
45934
46617
  capScope: "system",
@@ -45941,13 +46624,13 @@ Object.freeze({
45941
46624
  addonId: null,
45942
46625
  access: "delete"
45943
46626
  },
45944
- "pipelineExecutor.deleteModel": {
46627
+ "pipelineExecutor.clearModelBoundDeviceOverrides": {
45945
46628
  capName: "pipeline-executor",
45946
46629
  capScope: "system",
45947
46630
  addonId: null,
45948
46631
  access: "delete"
45949
46632
  },
45950
- "pipelineExecutor.deleteTemplate": {
46633
+ "pipelineExecutor.deleteModel": {
45951
46634
  capName: "pipeline-executor",
45952
46635
  capScope: "system",
45953
46636
  addonId: null,
@@ -46091,12 +46774,6 @@ Object.freeze({
46091
46774
  addonId: null,
46092
46775
  access: "view"
46093
46776
  },
46094
- "pipelineExecutor.listTemplates": {
46095
- capName: "pipeline-executor",
46096
- capScope: "system",
46097
- addonId: null,
46098
- access: "view"
46099
- },
46100
46777
  "pipelineExecutor.rearmInferenceDevice": {
46101
46778
  capName: "pipeline-executor",
46102
46779
  capScope: "system",
@@ -46121,12 +46798,6 @@ Object.freeze({
46121
46798
  addonId: null,
46122
46799
  access: "create"
46123
46800
  },
46124
- "pipelineExecutor.saveTemplate": {
46125
- capName: "pipeline-executor",
46126
- capScope: "system",
46127
- addonId: null,
46128
- access: "create"
46129
- },
46130
46801
  "pipelineExecutor.setVideoPipelineSteps": {
46131
46802
  capName: "pipeline-executor",
46132
46803
  capScope: "system",
@@ -46145,41 +46816,35 @@ Object.freeze({
46145
46816
  addonId: null,
46146
46817
  access: "create"
46147
46818
  },
46148
- "pipelineExecutor.updateTemplate": {
46149
- capName: "pipeline-executor",
46150
- capScope: "system",
46151
- addonId: null,
46152
- access: "create"
46153
- },
46154
46819
  "pipelineExecutor.validatePipeline": {
46155
46820
  capName: "pipeline-executor",
46156
46821
  capScope: "system",
46157
46822
  addonId: null,
46158
46823
  access: "view"
46159
46824
  },
46160
- "pipelineOrchestrator.applyDeviceSettingsPatch": {
46825
+ "pipelineOrchestrator.applyAutoTune": {
46161
46826
  capName: "pipeline-orchestrator",
46162
46827
  capScope: "system",
46163
46828
  addonId: null,
46164
46829
  access: "create"
46165
46830
  },
46166
- "pipelineOrchestrator.assignAudio": {
46831
+ "pipelineOrchestrator.applyDeviceSettingsPatch": {
46167
46832
  capName: "pipeline-orchestrator",
46168
46833
  capScope: "system",
46169
46834
  addonId: null,
46170
46835
  access: "create"
46171
46836
  },
46172
- "pipelineOrchestrator.assignPipeline": {
46837
+ "pipelineOrchestrator.assignAudio": {
46173
46838
  capName: "pipeline-orchestrator",
46174
46839
  capScope: "system",
46175
46840
  addonId: null,
46176
46841
  access: "create"
46177
46842
  },
46178
- "pipelineOrchestrator.deleteTemplate": {
46843
+ "pipelineOrchestrator.assignPipeline": {
46179
46844
  capName: "pipeline-orchestrator",
46180
46845
  capScope: "system",
46181
46846
  addonId: null,
46182
- access: "delete"
46847
+ access: "create"
46183
46848
  },
46184
46849
  "pipelineOrchestrator.getAgentLoad": {
46185
46850
  capName: "pipeline-orchestrator",
@@ -46271,6 +46936,12 @@ Object.freeze({
46271
46936
  addonId: null,
46272
46937
  access: "view"
46273
46938
  },
46939
+ "pipelineOrchestrator.getEffectiveShares": {
46940
+ capName: "pipeline-orchestrator",
46941
+ capScope: "system",
46942
+ addonId: null,
46943
+ access: "view"
46944
+ },
46274
46945
  "pipelineOrchestrator.getGlobalMetrics": {
46275
46946
  capName: "pipeline-orchestrator",
46276
46947
  capScope: "system",
@@ -46307,19 +46978,19 @@ Object.freeze({
46307
46978
  addonId: null,
46308
46979
  access: "view"
46309
46980
  },
46310
- "pipelineOrchestrator.getReconcileFromDiskStatus": {
46981
+ "pipelineOrchestrator.getPlacementStats": {
46311
46982
  capName: "pipeline-orchestrator",
46312
46983
  capScope: "system",
46313
46984
  addonId: null,
46314
46985
  access: "view"
46315
46986
  },
46316
- "pipelineOrchestrator.listAgentSettings": {
46987
+ "pipelineOrchestrator.getReconcileFromDiskStatus": {
46317
46988
  capName: "pipeline-orchestrator",
46318
46989
  capScope: "system",
46319
46990
  addonId: null,
46320
46991
  access: "view"
46321
46992
  },
46322
- "pipelineOrchestrator.listTemplates": {
46993
+ "pipelineOrchestrator.listAgentSettings": {
46323
46994
  capName: "pipeline-orchestrator",
46324
46995
  capScope: "system",
46325
46996
  addonId: null,
@@ -46331,6 +47002,12 @@ Object.freeze({
46331
47002
  addonId: null,
46332
47003
  access: "create"
46333
47004
  },
47005
+ "pipelineOrchestrator.planAutoTune": {
47006
+ capName: "pipeline-orchestrator",
47007
+ capScope: "system",
47008
+ addonId: null,
47009
+ access: "view"
47010
+ },
46334
47011
  "pipelineOrchestrator.rebalance": {
46335
47012
  capName: "pipeline-orchestrator",
46336
47013
  capScope: "system",
@@ -46373,12 +47050,6 @@ Object.freeze({
46373
47050
  addonId: null,
46374
47051
  access: "create"
46375
47052
  },
46376
- "pipelineOrchestrator.saveTemplate": {
46377
- capName: "pipeline-orchestrator",
46378
- capScope: "system",
46379
- addonId: null,
46380
- access: "create"
46381
- },
46382
47053
  "pipelineOrchestrator.setAgentCapabilities": {
46383
47054
  capName: "pipeline-orchestrator",
46384
47055
  capScope: "system",
@@ -46391,12 +47062,6 @@ Object.freeze({
46391
47062
  addonId: null,
46392
47063
  access: "create"
46393
47064
  },
46394
- "pipelineOrchestrator.setAgentDetectWeight": {
46395
- capName: "pipeline-orchestrator",
46396
- capScope: "system",
46397
- addonId: null,
46398
- access: "create"
46399
- },
46400
47065
  "pipelineOrchestrator.setAgentInferenceDevices": {
46401
47066
  capName: "pipeline-orchestrator",
46402
47067
  capScope: "system",
@@ -46433,6 +47098,12 @@ Object.freeze({
46433
47098
  addonId: null,
46434
47099
  access: "create"
46435
47100
  },
47101
+ "pipelineOrchestrator.setCameraStepSettings": {
47102
+ capName: "pipeline-orchestrator",
47103
+ capScope: "system",
47104
+ addonId: null,
47105
+ access: "create"
47106
+ },
46436
47107
  "pipelineOrchestrator.setCameraStepToggle": {
46437
47108
  capName: "pipeline-orchestrator",
46438
47109
  capScope: "system",
@@ -46451,25 +47122,37 @@ Object.freeze({
46451
47122
  addonId: null,
46452
47123
  access: "create"
46453
47124
  },
47125
+ "pipelineOrchestrator.setLoadBalancingShares": {
47126
+ capName: "pipeline-orchestrator",
47127
+ capScope: "system",
47128
+ addonId: null,
47129
+ access: "create"
47130
+ },
46454
47131
  "pipelineOrchestrator.setPipelineDevicePin": {
46455
47132
  capName: "pipeline-orchestrator",
46456
47133
  capScope: "system",
46457
47134
  addonId: null,
46458
47135
  access: "create"
46459
47136
  },
46460
- "pipelineOrchestrator.unassignAudio": {
47137
+ "pipelineOrchestrator.setShareSource": {
46461
47138
  capName: "pipeline-orchestrator",
46462
47139
  capScope: "system",
46463
47140
  addonId: null,
46464
47141
  access: "create"
46465
47142
  },
46466
- "pipelineOrchestrator.unassignPipeline": {
47143
+ "pipelineOrchestrator.suggestShares": {
47144
+ capName: "pipeline-orchestrator",
47145
+ capScope: "system",
47146
+ addonId: null,
47147
+ access: "view"
47148
+ },
47149
+ "pipelineOrchestrator.unassignAudio": {
46467
47150
  capName: "pipeline-orchestrator",
46468
47151
  capScope: "system",
46469
47152
  addonId: null,
46470
47153
  access: "create"
46471
47154
  },
46472
- "pipelineOrchestrator.updateTemplate": {
47155
+ "pipelineOrchestrator.unassignPipeline": {
46473
47156
  capName: "pipeline-orchestrator",
46474
47157
  capScope: "system",
46475
47158
  addonId: null,
@@ -47909,12 +48592,6 @@ Object.freeze({
47909
48592
  addonId: null,
47910
48593
  access: "view"
47911
48594
  },
47912
- "streamBroker.pullFrameHandles": {
47913
- capName: "stream-broker",
47914
- capScope: "system",
47915
- addonId: null,
47916
- access: "view"
47917
- },
47918
48595
  "streamBroker.regenerateRtspToken": {
47919
48596
  capName: "stream-broker",
47920
48597
  capScope: "system",
@@ -47981,12 +48658,6 @@ Object.freeze({
47981
48658
  addonId: null,
47982
48659
  access: "create"
47983
48660
  },
47984
- "streamBroker.subscribeFrames": {
47985
- capName: "stream-broker",
47986
- capScope: "system",
47987
- addonId: null,
47988
- access: "create"
47989
- },
47990
48661
  "streamBroker.unassignProfile": {
47991
48662
  capName: "stream-broker",
47992
48663
  capScope: "system",
@@ -47999,12 +48670,6 @@ Object.freeze({
47999
48670
  addonId: null,
48000
48671
  access: "create"
48001
48672
  },
48002
- "streamBroker.unsubscribeFrames": {
48003
- capName: "stream-broker",
48004
- capScope: "system",
48005
- addonId: null,
48006
- access: "create"
48007
- },
48008
48673
  "streamCatalog.getCatalog": {
48009
48674
  capName: "stream-catalog",
48010
48675
  capScope: "device",
@@ -48299,18 +48964,36 @@ Object.freeze({
48299
48964
  addonId: null,
48300
48965
  access: "delete"
48301
48966
  },
48967
+ "userManagement.findUserByExternalIdentity": {
48968
+ capName: "user-management",
48969
+ capScope: "system",
48970
+ addonId: null,
48971
+ access: "view"
48972
+ },
48302
48973
  "userManagement.getTotpStatus": {
48303
48974
  capName: "user-management",
48304
48975
  capScope: "system",
48305
48976
  addonId: null,
48306
48977
  access: "view"
48307
48978
  },
48979
+ "userManagement.linkExternalIdentity": {
48980
+ capName: "user-management",
48981
+ capScope: "system",
48982
+ addonId: null,
48983
+ access: "create"
48984
+ },
48308
48985
  "userManagement.listApiKeys": {
48309
48986
  capName: "user-management",
48310
48987
  capScope: "system",
48311
48988
  addonId: null,
48312
48989
  access: "view"
48313
48990
  },
48991
+ "userManagement.listExternalIdentities": {
48992
+ capName: "user-management",
48993
+ capScope: "system",
48994
+ addonId: null,
48995
+ access: "view"
48996
+ },
48314
48997
  "userManagement.listOauthSessions": {
48315
48998
  capName: "user-management",
48316
48999
  capScope: "system",
@@ -48389,6 +49072,12 @@ Object.freeze({
48389
49072
  addonId: null,
48390
49073
  access: "create"
48391
49074
  },
49075
+ "userManagement.unlinkExternalIdentity": {
49076
+ capName: "user-management",
49077
+ capScope: "system",
49078
+ addonId: null,
49079
+ access: "delete"
49080
+ },
48392
49081
  "userManagement.updateUser": {
48393
49082
  capName: "user-management",
48394
49083
  capScope: "system",
@@ -48701,6 +49390,12 @@ Object.freeze({
48701
49390
  addonId: null,
48702
49391
  access: "create"
48703
49392
  },
49393
+ "webrtcSession.applyDownlinkProbe": {
49394
+ capName: "webrtc-session",
49395
+ capScope: "device",
49396
+ addonId: null,
49397
+ access: "create"
49398
+ },
48704
49399
  "webrtcSession.closeSession": {
48705
49400
  capName: "webrtc-session",
48706
49401
  capScope: "device",
@@ -50512,11 +51207,6 @@ Object.freeze({
50512
51207
  form: "single",
50513
51208
  optional: false
50514
51209
  }],
50515
- "decoder.createSession": [{
50516
- name: "deviceId",
50517
- form: "single",
50518
- optional: true
50519
- }],
50520
51210
  "detectionPipeline.applyDeviceSettingsPatch": [{
50521
51211
  name: "deviceId",
50522
51212
  form: "single",
@@ -51727,6 +52417,11 @@ Object.freeze({
51727
52417
  form: "single",
51728
52418
  optional: false
51729
52419
  }],
52420
+ "pipelineAnalytics.setRetrainFrameComplete": [{
52421
+ name: "deviceId",
52422
+ form: "single",
52423
+ optional: false
52424
+ }],
51730
52425
  "pipelineAnalytics.setTrackFlags": [{
51731
52426
  name: "deviceId",
51732
52427
  form: "single",
@@ -51747,6 +52442,11 @@ Object.freeze({
51747
52442
  form: "single",
51748
52443
  optional: false
51749
52444
  }],
52445
+ "pipelineExecutor.clearModelBoundDeviceOverrides": [{
52446
+ name: "deviceIds",
52447
+ form: "array",
52448
+ optional: true
52449
+ }],
51750
52450
  "pipelineExecutor.runPipeline": [{
51751
52451
  name: "deviceId",
51752
52452
  form: "single",
@@ -51852,6 +52552,11 @@ Object.freeze({
51852
52552
  form: "single",
51853
52553
  optional: false
51854
52554
  }],
52555
+ "pipelineOrchestrator.setCameraStepSettings": [{
52556
+ name: "deviceId",
52557
+ form: "single",
52558
+ optional: false
52559
+ }],
51855
52560
  "pipelineOrchestrator.setCameraStepToggle": [{
51856
52561
  name: "deviceId",
51857
52562
  form: "single",
@@ -52623,6 +53328,11 @@ Object.freeze({
52623
53328
  form: "single",
52624
53329
  optional: false
52625
53330
  }],
53331
+ "webrtcSession.applyDownlinkProbe": [{
53332
+ name: "deviceId",
53333
+ form: "single",
53334
+ optional: false
53335
+ }],
52626
53336
  "webrtcSession.closeSession": [{
52627
53337
  name: "deviceId",
52628
53338
  form: "single",
@@ -52852,6 +53562,8 @@ new Map(Object.entries({
52852
53562
  "detection-blind": "device-events",
52853
53563
  "node-online": "system",
52854
53564
  "node-offline": "system",
53565
+ "node-restarting": "system",
53566
+ "node-updating": "system",
52855
53567
  "node-inference-unavailable": "system",
52856
53568
  "addon-crash-loop": "system",
52857
53569
  "addon-update-available": "system",
@@ -52929,18 +53641,21 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
52929
53641
  kinds: [
52930
53642
  "node-offline",
52931
53643
  "node-online",
53644
+ "node-restarting",
52932
53645
  "node-inference-unavailable"
52933
53646
  ]
52934
53647
  },
52935
53648
  {
52936
53649
  id: "addons",
52937
53650
  family: "system",
52938
- label: "Addons",
52939
- kinds: [
52940
- "addon-crash-loop",
52941
- "addon-update-available",
52942
- "addon-updated"
52943
- ]
53651
+ label: "Addons stopped",
53652
+ kinds: ["addon-crash-loop"]
53653
+ },
53654
+ {
53655
+ id: "addon-updates",
53656
+ family: "system",
53657
+ label: "Addon updates",
53658
+ kinds: ["addon-update-available", "addon-updated"]
52944
53659
  },
52945
53660
  {
52946
53661
  id: "updates",
@@ -52948,6 +53663,7 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
52948
53663
  label: "Server & container updates",
52949
53664
  kinds: [
52950
53665
  "server-update-available",
53666
+ "node-updating",
52951
53667
  "server-updated",
52952
53668
  "wrapper-update-available"
52953
53669
  ]
@@ -53095,18 +53811,21 @@ var STATE_SUMMARY_SECTION_VARS = [
53095
53811
  kinds: [
53096
53812
  "node-offline",
53097
53813
  "node-online",
53814
+ "node-restarting",
53098
53815
  "node-inference-unavailable"
53099
53816
  ]
53100
53817
  },
53101
53818
  {
53102
53819
  name: "summaryAddons",
53103
- label: "Summary: addons",
53104
- example: "@camstack/addon-recorder 1.2.3 → 1.2.4",
53105
- kinds: [
53106
- "addon-crash-loop",
53107
- "addon-update-available",
53108
- "addon-updated"
53109
- ]
53820
+ label: "Summary: addons stopped",
53821
+ example: "hub — recorder stopped after repeated crashes",
53822
+ kinds: ["addon-crash-loop"]
53823
+ },
53824
+ {
53825
+ name: "summaryAddonUpdates",
53826
+ label: "Summary: addon updates",
53827
+ example: "hub:\n• @camstack/addon-recorder 1.2.3 → 1.2.4",
53828
+ kinds: ["addon-update-available", "addon-updated"]
53110
53829
  },
53111
53830
  {
53112
53831
  name: "summaryUpdates",
@@ -53114,6 +53833,7 @@ var STATE_SUMMARY_SECTION_VARS = [
53114
53833
  example: "server 1.2.377 → 1.2.378",
53115
53834
  kinds: [
53116
53835
  "server-update-available",
53836
+ "node-updating",
53117
53837
  "server-updated",
53118
53838
  "wrapper-update-available"
53119
53839
  ]
@@ -53146,7 +53866,7 @@ var STATE_SUMMARY_VARS = [
53146
53866
  {
53147
53867
  name: "summarySection",
53148
53868
  label: "Summary: this section",
53149
- description: "The section a per-section summary row is about (D698); on a summary sent as one message, every section it reports, comma-separated.",
53869
+ description: "The section a per-section summary row is about; on a summary sent as one message, every section it reports, comma-separated.",
53150
53870
  example: "Batterie scariche",
53151
53871
  group: "system",
53152
53872
  families: ["rule"],
@@ -53190,6 +53910,7 @@ var STATE_SUMMARY_VARS = [
53190
53910
  [...RULE_BODY_ONLY],
53191
53911
  [...RULE_TEXT],
53192
53912
  ([...RULE_TEXT], [...DEVICE_EVENTS]),
53913
+ ([...RULE_TEXT], [...COMBINED_ALARM]),
53193
53914
  ([...RULE_TEXT], [...DEVICE_EVENTS]),
53194
53915
  ([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
53195
53916
  ([...RULE_TEXT], [...CONSUMABLE]),
@@ -53230,6 +53951,8 @@ var STATE_SUMMARY_VARS = [
53230
53951
  [...RULE_TEXT],
53231
53952
  [...RULE_TEXT],
53232
53953
  [...RULE_TEXT],
53954
+ [...RULE_TEXT],
53955
+ [...RULE_TEXT],
53233
53956
  ...STATE_SUMMARY_VARS
53234
53957
  ];
53235
53958
  new Set([
@@ -53778,7 +54501,7 @@ var TuyaRegionSchema = _enum(TUYA_REGION_VALUES);
53778
54501
  */
53779
54502
  var tuyaConfigSchema = object({
53780
54503
  accessId: string().min(1).describe("Tuya IoT project Access ID / Client ID"),
53781
- accessSecret: string().min(1).describe("Tuya IoT project Access Secret / Client Secret"),
54504
+ accessSecret: string().min(1).describe("Tuya IoT project Access Secret / Client Secret").meta({ secret: true }),
53782
54505
  region: TuyaRegionSchema.default("eu").describe("Tuya cloud data-centre region"),
53783
54506
  discoveryTimeoutMs: preprocess((v) => v === "" || v === null ? void 0 : v, number().int().min(1e3).max(3e4).default(6e3)).describe("LAN discovery sweep window (ms) used to resolve device IP / protocol version")
53784
54507
  });
@@ -54043,7 +54766,7 @@ var tuyaConnections = new TuyaConnectionResolver();
54043
54766
  var tuyaDeviceConfigSchema = object({
54044
54767
  integrationId: string().min(1).describe("Owning Tuya integration id"),
54045
54768
  tuyaDeviceId: string().min(1).describe("Tuya cloud device id (gwId/devId)"),
54046
- localKey: string().min(1).describe("Device local key (from the Tuya cloud)"),
54769
+ localKey: string().min(1).describe("Device local key (from the Tuya cloud)").meta({ secret: true }),
54047
54770
  host: string().default("").describe("Device LAN IP / host"),
54048
54771
  version: string().default("3.3").describe("Tuya protocol version (3.1–3.5)"),
54049
54772
  switchDp: string().default("1").describe("Boolean DP a raw switch drives"),