@camstack/addon-provider-tuya 0.2.120 → 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 +1149 -472
  2. package/dist/addon.mjs +1149 -472
  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).
@@ -11417,6 +11335,46 @@ var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { wei
11417
11335
  /** True when the weights or their data forbid commercial use. */
11418
11336
  nonCommercial: boolean().optional()
11419
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
+ ]);
11420
11378
  var ModelCatalogEntrySchema = object({
11421
11379
  id: string(),
11422
11380
  name: string(),
@@ -11482,6 +11440,35 @@ var ModelCatalogEntrySchema = object({
11482
11440
  */
11483
11441
  defaultConfidence: number().min(0).max(1).optional(),
11484
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
+ /**
11485
11472
  * When true, the executor produces a landmark-aligned crop (similarity warp
11486
11473
  * onto the canonical template) before this step runs, instead of a plain
11487
11474
  * axis-aligned bbox crop. Required for face-recognition embedders (ArcFace):
@@ -11543,6 +11530,16 @@ var ModelCatalogEntrySchema = object({
11543
11530
  */
11544
11531
  classMap: DetectionCatalogClassMapSchema.optional(),
11545
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
+ /**
11546
11543
  * The model's CLIP feature-space contract (text encoder, dimension, vector
11547
11544
  * index, token window, search floor) — see `clip-model.ts`. Present ONLY on a
11548
11545
  * CLIP image encoder; its absence is what "not a CLIP model" means to the
@@ -13144,13 +13141,6 @@ var BrokerRtspClientSchema = object({
13144
13141
  lastRtpAt: number(),
13145
13142
  bytesSent: number()
13146
13143
  });
13147
- var BrokerDecodedClientSchema = object({
13148
- tag: string(),
13149
- subscribedAt: number(),
13150
- maxFps: number(),
13151
- framesDelivered: number(),
13152
- framesDropped: number()
13153
- });
13154
13144
  var BrokerAudioClientSchema = object({
13155
13145
  tag: string(),
13156
13146
  subscribedAt: number(),
@@ -13242,7 +13232,6 @@ var BrokerEncodedClientSchema = object({
13242
13232
  });
13243
13233
  var BrokerClientsSchema = object({
13244
13234
  rtsp: array(BrokerRtspClientSchema).readonly(),
13245
- decoded: array(BrokerDecodedClientSchema).readonly(),
13246
13235
  audio: array(BrokerAudioClientSchema).readonly(),
13247
13236
  encoded: array(BrokerEncodedClientSchema).readonly(),
13248
13237
  pipeClients: number(),
@@ -13611,11 +13600,7 @@ method(object({
13611
13600
  auth: "admin"
13612
13601
  }), method(object({ brokerId: string() }), BrokerClientsSchema), method(object({
13613
13602
  brokerId: string(),
13614
- channel: _enum([
13615
- "rtsp",
13616
- "decoded",
13617
- "audio"
13618
- ]),
13603
+ channel: _enum(["rtsp", "audio"]),
13619
13604
  handle: string()
13620
13605
  }), object({ killed: boolean() }), {
13621
13606
  kind: "mutation",
@@ -13650,10 +13635,7 @@ method(object({
13650
13635
  }), method(SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, { kind: "mutation" }), method(object({
13651
13636
  subscriptionId: string(),
13652
13637
  maxCount: number().int().positive().default(8)
13653
- }), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(SubscribeFramesInputSchema, SubscribeFramesResultSchema, { kind: "mutation" }), method(object({
13654
- subscriptionId: string(),
13655
- maxCount: number().int().positive().default(4)
13656
- }), 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({
13657
13639
  brokerId: string(),
13658
13640
  seconds: number().min(0).max(30)
13659
13641
  }), _void(), {
@@ -14912,54 +14894,12 @@ id: union([string(), number()]) }), {
14912
14894
  kind: "mutation",
14913
14895
  auth: "admin"
14914
14896
  });
14915
- /**
14916
- * shm ring usage stats for a `frameSink: 'shm'` decoder session —
14917
- * exposed via `decoder.getShmStats` so downstream consumers can
14918
- * observe ring pressure (slot count, byte budget, hit/miss ratio).
14919
- */
14920
- var ShmRingStatsSchema = object({
14921
- sessionId: string(),
14922
- slotCount: number().int(),
14923
- slotByteLength: number().int(),
14924
- segmentBytes: number().int(),
14925
- budgetMb: number().int(),
14926
- framesWritten: number().int(),
14927
- getFrameHits: number().int(),
14928
- getFrameMisses: number().int()
14929
- });
14930
- method(object({ codec: string() }), boolean()), method(_void(), object({
14897
+ method(_void(), object({
14931
14898
  id: string(),
14932
14899
  name: string(),
14933
- isPullMode: boolean().optional(),
14934
- priority: number().optional(),
14935
14900
  hwaccel: string().optional(),
14936
14901
  probedBestHwaccel: string().optional()
14937
- })), method(DecoderSessionConfigSchema, object({
14938
- sessionId: string(),
14939
- nodeId: string()
14940
- })), method(object({ sessionId: string() }), _void()), method(object({
14941
- sessionId: string(),
14942
- packet: EncodedPacketSchema
14943
- }), _void()), method(object({
14944
- sessionId: string(),
14945
- url: string()
14946
- }), _void()), method(object({
14947
- sessionId: string(),
14948
- maxCount: number().default(1),
14949
- waitMs: number().optional()
14950
- }), array(DecodedFrameSchema)), method(object({
14951
- sessionId: string(),
14952
- maxCount: number().default(1),
14953
- waitMs: number().optional()
14954
- }), array(FrameHandleSchema)), method(object({ handle: FrameHandleSchema }), DecodedFrameSchema.nullable()), method(object({ sessionId: string() }), ShmRingStatsSchema.nullable()), method(object({
14955
- sessionId: string(),
14956
- config: DecoderSessionConfigSchema.partial()
14957
- }), _void()), method(object({ sessionId: string() }), DecoderStatsSchema), method(_void(), array(object({
14958
- sessionId: string(),
14959
- codec: string(),
14960
- outputFormat: string(),
14961
- createdAtMs: number()
14962
- })).readonly()), method(_void(), object({ backend: string() }), {
14902
+ })), method(_void(), object({ backend: string() }), {
14963
14903
  kind: "mutation",
14964
14904
  auth: "admin"
14965
14905
  });
@@ -15976,6 +15916,10 @@ var DeviceInfoSchema = object({
15976
15916
  isCamera: boolean(),
15977
15917
  /** Current config values — serializable snapshot */
15978
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(),
15979
15923
  /** Hardware + identity blob (manufacturer / model / firmware / sn /
15980
15924
  * uid / mac / …). Populated by drivers; editable via setMetadata. */
15981
15925
  metadata: record(string(), unknown()).nullable().optional(),
@@ -16181,7 +16125,13 @@ var DeviceRegisterPayloadSchema = object({
16181
16125
  * call (workers re-register on init), so probe-driven updates
16182
16126
  * (e.g. PTZ flag flipping after the abilities probe) propagate. */
16183
16127
  features: array(string()).optional(),
16184
- 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()
16185
16135
  });
16186
16136
  var DeviceRemovePayloadSchema = object({ deviceId: number() });
16187
16137
  var DevicePersistConfigPayloadSchema = object({
@@ -17008,6 +16958,12 @@ method(_void(), array(string()).readonly(), { auth: "admin" }), method(object({
17008
16958
  kind: "mutation",
17009
16959
  auth: "admin"
17010
16960
  });
16961
+ var HUB_ADDRESS_ROLES = [
16962
+ "appConnections",
16963
+ "notificationTaps",
16964
+ "internal",
16965
+ "publicEndpoint"
16966
+ ];
17011
16967
  /**
17012
16968
  * Transport bounds for AI capability methods.
17013
16969
  *
@@ -17834,7 +17790,14 @@ var LoginMethodContributionSchema = discriminatedUnion("kind", [
17834
17790
  icon: string().optional(),
17835
17791
  /** Addon-owned HTTP route the button navigates to (GET). */
17836
17792
  startUrl: string(),
17837
- 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()
17838
17801
  }),
17839
17802
  object({
17840
17803
  kind: literal("widget"),
@@ -19610,6 +19573,8 @@ var NcSystemEventKindSchema = _enum([
19610
19573
  "stream-offline",
19611
19574
  "node-online",
19612
19575
  "node-offline",
19576
+ "node-restarting",
19577
+ "node-updating",
19613
19578
  "node-inference-unavailable",
19614
19579
  "detection-blind",
19615
19580
  "addon-crash-loop",
@@ -21215,7 +21180,13 @@ var NcAlarmModeDelaysListSchema = array(object({
21215
21180
  * Absent = false (logged, not sent). Even when true it is not sent when that same sensor
21216
21181
  * is the one that starts the entry delay — the entry-delay notification already names it.
21217
21182
  */
21218
- notifySensorRewatched: boolean().optional()
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()
21219
21190
  })).max(8).refine(uniqueModes, { message: "modeDelays: at most one entry per arm mode" });
21220
21191
  var NcAlarmModeDelaysEditListSchema = array(object({
21221
21192
  mode: AlarmArmModeSchema,
@@ -21228,7 +21199,9 @@ var NcAlarmModeDelaysEditListSchema = array(object({
21228
21199
  /** D706: set the switch, or `null` to clear it (back to the default, false). */
21229
21200
  notifyDuringEntryDelay: boolean().nullable().optional(),
21230
21201
  /** D706: set the switch, or `null` to clear it (back to the default, false). */
21231
- notifySensorRewatched: boolean().nullable().optional()
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()
21232
21205
  })).max(8).refine(uniqueModes, { message: "modeDelays: at most one edit per arm mode" });
21233
21206
  /** One switch of the alarm table: put ONE device on, or take it off, ONE mode's list. */
21234
21207
  var NcAlarmNonBlockingEditSchema = object({
@@ -22206,8 +22179,8 @@ Object.freeze(Object.fromEntries([{
22206
22179
  var CLUSTER_STEP_SETTING_FIELDS = [{
22207
22180
  stepId: "face-embedding",
22208
22181
  key: "minLandmarkFaceSize",
22209
- label: "Min face size for recognition (detection px)",
22210
- 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.",
22211
22184
  type: "slider",
22212
22185
  min: 0,
22213
22186
  max: 64,
@@ -23259,7 +23232,13 @@ var RetrainFrameSchema = object({
23259
23232
  sizeBytes: number().int(),
23260
23233
  width: number().int(),
23261
23234
  height: number().int(),
23262
- 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()
23263
23242
  });
23264
23243
  /** Why a copy-on-select could not be honoured — named, never a silent skip. */
23265
23244
  var RetrainCopyRefusalSchema = _enum([
@@ -23280,6 +23259,51 @@ var RetrainFrameListSchema = object({
23280
23259
  /** What the page pre-selects — the native key frame when one survives. */
23281
23260
  autoPickMediaId: number().int().optional()
23282
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
+ });
23283
23307
  /** What the operator asked the assist to look for. */
23284
23308
  var RetrainAssistSubjectSchema = discriminatedUnion("kind", [object({
23285
23309
  kind: literal("package"),
@@ -24074,9 +24098,25 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
24074
24098
  }), RetrainTransitionResultSchema, {
24075
24099
  kind: "mutation",
24076
24100
  auth: "admin"
24077
- }), method(object({ deviceIds: array(number()).optional() }), object({ url: string() }), {
24101
+ }), method(RetrainExportFilterSchema.extend({ layout: RetrainExportLayoutSchema.optional() }), object({ url: string() }), {
24078
24102
  kind: "query",
24079
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
24080
24120
  }), method(object({
24081
24121
  /** Which of the three event tables owns the row. */
24082
24122
  ownerType: EventOwnerTypeSchema,
@@ -24127,6 +24167,34 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
24127
24167
  timestamp: number()
24128
24168
  });
24129
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
+ /**
24130
24198
  * Reference to the frame's retained NATIVE surface + the parent crop's placement
24131
24199
  * within the frame, so the executor can re-cut a leaf child ROI at native
24132
24200
  * resolution on the detail plane. See the `runPipeline` `nativeCropRef` field.
@@ -24174,7 +24242,7 @@ var FrameRefSchema = object({
24174
24242
  timestamp: number(),
24175
24243
  capturedAt: number().optional()
24176
24244
  });
24177
- var ModelFormatSchema$1 = _enum([
24245
+ var ModelFormatSchema$2 = _enum([
24178
24246
  "onnx",
24179
24247
  "coreml",
24180
24248
  "openvino",
@@ -24192,7 +24260,7 @@ var PipelineSlotSchema = _enum([
24192
24260
  var PipelineEngineChoiceSchema = object({
24193
24261
  runtime: literal("python"),
24194
24262
  backend: string(),
24195
- format: ModelFormatSchema$1,
24263
+ format: ModelFormatSchema$2,
24196
24264
  device: string().optional()
24197
24265
  });
24198
24266
  /**
@@ -24231,32 +24299,15 @@ var PipelineDefaultStepSchema = lazy(() => object({
24231
24299
  group: string().optional(),
24232
24300
  settings: record(string(), unknown()).optional()
24233
24301
  }));
24234
- var PipelineTemplateStepSchema = lazy(() => object({
24235
- addonId: string(),
24236
- enabled: boolean(),
24237
- modelId: string(),
24238
- children: array(PipelineTemplateStepSchema).readonly(),
24239
- settings: record(string(), unknown()).optional()
24240
- }));
24241
- var PipelineTemplateSchema$1 = object({
24242
- id: string(),
24243
- name: string(),
24244
- createdAt: string(),
24245
- updatedAt: string(),
24246
- engine: PipelineEngineChoiceSchema,
24247
- steps: array(PipelineTemplateStepSchema).readonly()
24248
- });
24249
24302
  var PipelineModelOptionSchema = object({
24250
24303
  id: string(),
24251
24304
  name: string(),
24252
- formats: record(string(), object({
24253
- downloaded: boolean(),
24254
- sizeMB: number()
24255
- })),
24305
+ formats: record(string(), PipelineModelFormatStatusSchema),
24256
24306
  group: ModelVariantGroupSchema.optional(),
24257
24307
  legacy: boolean().optional(),
24258
24308
  provider: ModelProviderIdSchema.optional(),
24259
- defaultConfidence: number().optional()
24309
+ defaultConfidence: number().optional(),
24310
+ suppliesSteps: array(RootStepSupplySchema).readonly().optional()
24260
24311
  });
24261
24312
  var ConfigFieldBridge = custom();
24262
24313
  var PipelineAddonSchemaSchema = object({
@@ -24418,6 +24469,22 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
24418
24469
  }), {
24419
24470
  kind: "mutation",
24420
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"
24421
24488
  }), method(object({ nodeId: string() }), object({ unhealthy: array(object({
24422
24489
  /** `<backend>:<device>`, e.g. `openvino:gpu`. */
24423
24490
  deviceKey: string(),
@@ -24443,22 +24510,14 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
24443
24510
  }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(object({
24444
24511
  steps: array(PipelineStepInputSchema),
24445
24512
  deviceKey: string().optional()
24446
- }), PipelineValidationResultSchema), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
24447
- name: string(),
24448
- steps: array(PipelineTemplateStepSchema).readonly(),
24449
- engine: PipelineEngineChoiceSchema
24450
- }), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({
24451
- id: string(),
24452
- name: string().optional(),
24453
- steps: array(PipelineTemplateStepSchema).readonly().optional()
24454
- }), 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({
24455
24514
  addonId: string(),
24456
24515
  modelId: string(),
24457
- format: ModelFormatSchema$1
24516
+ format: ModelFormatSchema$2
24458
24517
  }), DownloadModelResultSchema, { kind: "mutation" }), method(object({
24459
24518
  addonId: string(),
24460
24519
  modelId: string(),
24461
- format: ModelFormatSchema$1
24520
+ format: ModelFormatSchema$2
24462
24521
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
24463
24522
  steps: array(PipelineStepInputSchema).min(1),
24464
24523
  frame: FrameInputSchema.optional(),
@@ -24524,7 +24583,16 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
24524
24583
  * `device-not-servable`), and nothing reaches the camera's live
24525
24584
  * trace stream. Absent ⇒ unchanged behaviour.
24526
24585
  */
24527
- 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()
24528
24596
  }), PipelineRunResultBridge, { kind: "mutation" }), method(object({
24529
24597
  steps: array(PipelineStepInputSchema).min(1),
24530
24598
  frames: array(FrameInputSchema).min(1).max(255),
@@ -24606,6 +24674,375 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
24606
24674
  filename: string().optional(),
24607
24675
  settings: record(string(), unknown()).optional()
24608
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
+ });
24609
25046
  object({
24610
25047
  activeCameras: number(),
24611
25048
  throttledCameras: number(),
@@ -25523,14 +25960,15 @@ var RunnerLocalLoadSchema = object({
25523
25960
  * Per-inference-device live load (multi-device C4). One entry per deviceKey
25524
25961
  * this runner currently has attached cameras on, so the orchestrator's second
25525
25962
  * `balance()` pass (over a node's devices) weights on real per-pool session
25526
- * counts. Empty on single-device / pre-multi-device runners. `queueDepthTotal`
25527
- * 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).
25528
25967
  */
25529
25968
  devices: array(object({
25530
25969
  deviceKey: string(),
25531
25970
  backend: string(),
25532
- attachedCameras: number(),
25533
- queueDepthTotal: number()
25971
+ attachedCameras: number()
25534
25972
  })).default([]),
25535
25973
  /** Hardware capability flags reported by this node. */
25536
25974
  hardware: object({
@@ -25666,7 +26104,22 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
25666
26104
  */
25667
26105
  cropJpeg: string().optional(),
25668
26106
  parent: DetailParentSchema,
25669
- 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()
25670
26123
  }), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" }), method(object({
25671
26124
  /** Catalog step id, e.g. `clip-embedding`. */
25672
26125
  stepId: string(),
@@ -25729,14 +26182,6 @@ var CameraPipelineConfigSchema = object({
25729
26182
  settings: record(string(), unknown()).readonly().optional()
25730
26183
  }).nullable().optional()
25731
26184
  });
25732
- var PipelineTemplateSchema = object({
25733
- id: string(),
25734
- name: string(),
25735
- description: string().optional(),
25736
- config: CameraPipelineConfigSchema,
25737
- createdAt: string(),
25738
- updatedAt: string()
25739
- });
25740
26185
  var DeviceStepConfigSchema = object({
25741
26186
  modelId: string().optional(),
25742
26187
  settings: record(string(), unknown()).optional(),
@@ -25810,9 +26255,10 @@ var CameraStepOverridePatchSchema = object({
25810
26255
  modelId: string().optional(),
25811
26256
  settings: record(string(), unknown()).readonly().optional()
25812
26257
  });
26258
+ var CameraStepSettingsSchema = record(string(), record(string(), unknown()).readonly());
25813
26259
  var CameraPipelineSettingsSchema = object({
25814
- pinnedAgentNodeId: string().optional(),
25815
26260
  stepToggles: record(string(), boolean()).optional(),
26261
+ stepSettings: CameraStepSettingsSchema.optional(),
25816
26262
  stepOverridesByDevice: record(string(), record(string(), record(string(), CameraStepOverridePatchSchema))).optional(),
25817
26263
  pipelineByAgent: record(string(), CameraPipelineForAgentSchema).optional()
25818
26264
  });
@@ -25845,7 +26291,10 @@ var PipelineAssignmentSchema = object({
25845
26291
  });
25846
26292
  /**
25847
26293
  * Per-agent load summary surfaced to the load balancer + dashboards.
25848
- * 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.
25849
26298
  */
25850
26299
  var AgentLoadSummarySchema = object({
25851
26300
  nodeId: string(),
@@ -25934,26 +26383,27 @@ var CameraBrokerStatusSchema = object({
25934
26383
  width: number(),
25935
26384
  height: number(),
25936
26385
  subscribers: number(),
25937
- inFps: number(),
25938
- 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()
25939
26394
  })).readonly(),
25940
26395
  webrtcSessions: number(),
25941
26396
  rtspRestream: boolean()
25942
26397
  });
25943
- /** Shared-memory ring statistics within the decoder block. */
25944
- var CameraDecoderShmSchema = object({
25945
- framesWritten: number(),
25946
- getFrameHits: number(),
25947
- getFrameMisses: number(),
25948
- budgetMb: number()
25949
- });
25950
- /** Decoder block — null when the decoder stage is unreachable or inactive. */
25951
- var CameraDecoderStatusSchema = object({
25952
- nodeId: string(),
25953
- formats: array(string()).readonly(),
25954
- sessionCount: number(),
25955
- shm: CameraDecoderShmSchema
25956
- });
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() });
25957
26407
  /** Motion block — null when motion detection is not active for this device. */
25958
26408
  var CameraMotionStatusSchema = object({
25959
26409
  enabled: boolean(),
@@ -26310,12 +26760,6 @@ method(object({
26310
26760
  }), object({ success: literal(true) }), {
26311
26761
  kind: "mutation",
26312
26762
  auth: "admin"
26313
- }), method(object({
26314
- agentNodeId: string(),
26315
- detectWeight: number().positive().nullable()
26316
- }), object({ success: literal(true) }), {
26317
- kind: "mutation",
26318
- auth: "admin"
26319
26763
  }), method(object({
26320
26764
  agentNodeId: string(),
26321
26765
  detect: boolean().nullable().optional(),
@@ -26357,6 +26801,15 @@ method(object({
26357
26801
  }), {
26358
26802
  kind: "mutation",
26359
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"
26360
26813
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
26361
26814
  deviceId: number(),
26362
26815
  addonId: string(),
@@ -26373,6 +26826,13 @@ method(object({
26373
26826
  }), object({ success: literal(true) }), {
26374
26827
  kind: "mutation",
26375
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"
26376
26836
  }), method(object({
26377
26837
  deviceId: number(),
26378
26838
  agentNodeId: string(),
@@ -26396,25 +26856,7 @@ method(object({
26396
26856
  }), method(_void(), DiskReconcileJobSchema, {
26397
26857
  kind: "mutation",
26398
26858
  auth: "admin"
26399
- }), method(_void(), DiskReconcileJobSchema, { auth: "admin" }), method(_void(), array(PipelineTemplateSchema).readonly()), method(object({
26400
- name: string(),
26401
- description: string().optional(),
26402
- config: CameraPipelineConfigSchema
26403
- }), PipelineTemplateSchema, {
26404
- kind: "mutation",
26405
- auth: "admin"
26406
- }), method(object({
26407
- id: string(),
26408
- name: string().optional(),
26409
- description: string().optional(),
26410
- config: CameraPipelineConfigSchema.optional()
26411
- }), PipelineTemplateSchema, {
26412
- kind: "mutation",
26413
- auth: "admin"
26414
- }), method(object({ id: string() }), object({ success: literal(true) }), {
26415
- kind: "mutation",
26416
- auth: "admin"
26417
- });
26859
+ }), method(_void(), DiskReconcileJobSchema, { auth: "admin" });
26418
26860
  /**
26419
26861
  * Cap → event-kind mapping for the SENSOR / CONTROL cap families — the table
26420
26862
  * `pipeline-analytics.listEventKinds` uses to turn a linked device's bound
@@ -27004,7 +27446,19 @@ var SsoBridgeClaimsSchema = object({
27004
27446
  * editing a descriptor must not retroactively extend or shorten a link the
27005
27447
  * operator already consented to.
27006
27448
  */
27007
- 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()
27008
27462
  });
27009
27463
  method(object({
27010
27464
  claims: SsoBridgeClaimsSchema,
@@ -28663,8 +29117,6 @@ var WebrtcStreamChoiceSchema = object({
28663
29117
  ]).nullable(),
28664
29118
  /** Input FPS from the camera (null for adaptive). */
28665
29119
  inputFps: number().nullable(),
28666
- /** Decoded FPS (null for adaptive). */
28667
- decodeFps: number().nullable(),
28668
29120
  /** Bitrate in kbps (null for adaptive). */
28669
29121
  bitrateKbps: number().nullable()
28670
29122
  });
@@ -28941,7 +29393,22 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
28941
29393
  * field their hints were silently stripped by the schema and the
28942
29394
  * adaptive ladder started blind on the client's display size.
28943
29395
  */
28944
- 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()
28945
29412
  }), object({
28946
29413
  sessionId: string(),
28947
29414
  sdpAnswer: string()
@@ -28996,6 +29463,14 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
28996
29463
  */
28997
29464
  alive: boolean()
28998
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({
28999
29474
  deviceId: number().int().nonnegative(),
29000
29475
  sessionId: string()
29001
29476
  }), WebrtcSessionDebugSchema, { kind: "query" });
@@ -29235,6 +29710,59 @@ var AddonAutoUpdateSchema = ChannelWithInheritSchema;
29235
29710
  var RestartAddonResultSchema = unknown();
29236
29711
  var InstallPackageResultSchema = unknown();
29237
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
+ });
29238
29766
  var BulkUpdateItemStatusSchema = _enum([
29239
29767
  "queued",
29240
29768
  "updating",
@@ -29317,10 +29845,14 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
29317
29845
  }), method(object({ packageName: string() }), InstallPackageResultSchema, {
29318
29846
  kind: "mutation",
29319
29847
  auth: "admin"
29320
- }), 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, {
29321
29853
  kind: "mutation",
29322
29854
  auth: "admin"
29323
- }), method(_void(), ReloadPackagesResultSchema, {
29855
+ }), method(object({ packageName: string().optional() }), PackageInstallationsSchema, { auth: "admin" }), method(_void(), ReloadPackagesResultSchema, {
29324
29856
  kind: "mutation",
29325
29857
  auth: "admin"
29326
29858
  }), method(object({ query: string().optional() }), array(SearchResultSchema)), method(object({ nodeId: string().optional() }), array(PackageUpdateSchema).readonly(), { auth: "admin" }), method(object({
@@ -32815,7 +33347,8 @@ var ConnectionEndpointSchema = object({
32815
33347
  "lan-ipv6",
32816
33348
  "public",
32817
33349
  "loopback",
32818
- "app-link"
33350
+ "app-link",
33351
+ "custom"
32819
33352
  ]),
32820
33353
  /**
32821
33354
  * Originating-interface kind — `lan`/`wifi`/`docker`/`vpn`/`other`/
@@ -32884,7 +33417,7 @@ var GetConnectionEndpointsResultSchema = object({
32884
33417
  localPort: AdvertisedLocalPortSchema
32885
33418
  });
32886
33419
  /**
32887
- * The address flagged for notification links. `baseUrl: null` = AUTO, which
33420
+ * The address flagged for notification taps (`notificationTaps`). `baseUrl: null` = AUTO, which
32888
33421
  * since D709 is the CamStack app link; `resolved` reports the effective value,
32889
33422
  * so the UI can show it either way.
32890
33423
  */
@@ -32917,6 +33450,72 @@ var ViewerEndpointsSchema = object({
32917
33450
  /** What the ranking currently resolves to (may be empty if nothing is up). */
32918
33451
  resolved: array(string()).readonly()
32919
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
+ });
32920
33519
  var AllowedAddressesSchema = object({
32921
33520
  /**
32922
33521
  * Allowlist of interface addresses operators have explicitly opted
@@ -32960,10 +33559,27 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
32960
33559
  * tunnel always emits `https://` regardless. */
32961
33560
  scheme: _enum(["http", "https"]).optional(),
32962
33561
  /** Append the CamStack app link entry (`kind: 'app-link'`, D709) —
32963
- * an address notification links can be flagged with, not a hub
33562
+ * an address notification taps can be flagged with, not a hub
32964
33563
  * route. Default `false`: racers and rankers never see it. */
32965
33564
  includeAppLink: boolean().optional()
32966
- }), 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, {
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, {
32967
33583
  kind: "mutation",
32968
33584
  auth: "admin"
32969
33585
  }), method(object({
@@ -33421,7 +34037,8 @@ var MotionStatusSchema = object({
33421
34037
  * writes this slice (not even a boot seed), and neither does the runner's
33422
34038
  * phase machine: its phase is "a session is attached" for every on-motion
33423
34039
  * session, not motion, and it now has its own `DetectionPhaseTransition`.
33424
- * 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`).
33425
34042
  * - **Sensors** (Home Assistant binary sensors, Homematic, Matter, Alexa
33426
34043
  * imports) — the provider pushes both edges itself, from the upstream
33427
34044
  * system's own state change. That is the sensor's own fact.
@@ -39153,6 +39770,32 @@ var TotpStatusSchema = object({
39153
39770
  /** Null when no row exists OR the row is still pending confirmation. */
39154
39771
  confirmedAt: number().nullable()
39155
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
+ });
39156
39799
  method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserInputSchema, UserSummarySchema, {
39157
39800
  kind: "mutation",
39158
39801
  auth: "admin",
@@ -39266,7 +39909,22 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
39266
39909
  userId: string(),
39267
39910
  username: string(),
39268
39911
  scopes: array(TokenScopeSchema)
39269
- }).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() }), {
39270
39928
  kind: "mutation",
39271
39929
  auth: "admin",
39272
39930
  access: "delete"
@@ -39968,6 +40626,16 @@ var zoneRulesCapability = {
39968
40626
  durability: "restored"
39969
40627
  };
39970
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
+ });
39971
40639
  /**
39972
40640
  * Accessory device helpers — shared across drivers.
39973
40641
  *
@@ -41666,6 +42334,12 @@ Object.freeze({
41666
42334
  addonId: null,
41667
42335
  access: "view"
41668
42336
  },
42337
+ "addons.listInstallations": {
42338
+ capName: "addons",
42339
+ capScope: "system",
42340
+ addonId: null,
42341
+ access: "view"
42342
+ },
41669
42343
  "addons.listJobs": {
41670
42344
  capName: "addons",
41671
42345
  capScope: "system",
@@ -42848,90 +43522,18 @@ Object.freeze({
42848
43522
  addonId: null,
42849
43523
  access: "create"
42850
43524
  },
42851
- "decoder.createSession": {
42852
- capName: "decoder",
42853
- capScope: "system",
42854
- addonId: null,
42855
- access: "view"
42856
- },
42857
- "decoder.destroySession": {
42858
- capName: "decoder",
42859
- capScope: "system",
42860
- addonId: null,
42861
- access: "delete"
42862
- },
42863
- "decoder.getFrame": {
42864
- capName: "decoder",
42865
- capScope: "system",
42866
- addonId: null,
42867
- access: "view"
42868
- },
42869
43525
  "decoder.getInfo": {
42870
43526
  capName: "decoder",
42871
43527
  capScope: "system",
42872
43528
  addonId: null,
42873
43529
  access: "view"
42874
43530
  },
42875
- "decoder.getShmStats": {
42876
- capName: "decoder",
42877
- capScope: "system",
42878
- addonId: null,
42879
- access: "view"
42880
- },
42881
- "decoder.getStats": {
42882
- capName: "decoder",
42883
- capScope: "system",
42884
- addonId: null,
42885
- access: "view"
42886
- },
42887
- "decoder.listActiveSessions": {
42888
- capName: "decoder",
42889
- capScope: "system",
42890
- addonId: null,
42891
- access: "view"
42892
- },
42893
- "decoder.openStream": {
42894
- capName: "decoder",
42895
- capScope: "system",
42896
- addonId: null,
42897
- access: "view"
42898
- },
42899
- "decoder.pullFrames": {
42900
- capName: "decoder",
42901
- capScope: "system",
42902
- addonId: null,
42903
- access: "view"
42904
- },
42905
- "decoder.pullHandles": {
42906
- capName: "decoder",
42907
- capScope: "system",
42908
- addonId: null,
42909
- access: "view"
42910
- },
42911
- "decoder.pushPacket": {
42912
- capName: "decoder",
42913
- capScope: "system",
42914
- addonId: null,
42915
- access: "view"
42916
- },
42917
43531
  "decoder.reprobeHwaccel": {
42918
43532
  capName: "decoder",
42919
43533
  capScope: "system",
42920
43534
  addonId: null,
42921
43535
  access: "create"
42922
43536
  },
42923
- "decoder.supportsCodec": {
42924
- capName: "decoder",
42925
- capScope: "system",
42926
- addonId: null,
42927
- access: "view"
42928
- },
42929
- "decoder.updateConfig": {
42930
- capName: "decoder",
42931
- capScope: "system",
42932
- addonId: null,
42933
- access: "view"
42934
- },
42935
43537
  "detectionPipeline.applyDeviceSettingsPatch": {
42936
43538
  capName: "detection-pipeline",
42937
43539
  capScope: "device",
@@ -44420,12 +45022,24 @@ Object.freeze({
44420
45022
  addonId: null,
44421
45023
  access: "view"
44422
45024
  },
45025
+ "localNetwork.addCustomAddress": {
45026
+ capName: "local-network",
45027
+ capScope: "system",
45028
+ addonId: null,
45029
+ access: "create"
45030
+ },
44423
45031
  "localNetwork.downloadCa": {
44424
45032
  capName: "local-network",
44425
45033
  capScope: "system",
44426
45034
  addonId: null,
44427
45035
  access: "view"
44428
45036
  },
45037
+ "localNetwork.getAddresses": {
45038
+ capName: "local-network",
45039
+ capScope: "system",
45040
+ addonId: null,
45041
+ access: "view"
45042
+ },
44429
45043
  "localNetwork.getAllowedAddresses": {
44430
45044
  capName: "local-network",
44431
45045
  capScope: "system",
@@ -44438,6 +45052,12 @@ Object.freeze({
44438
45052
  addonId: null,
44439
45053
  access: "view"
44440
45054
  },
45055
+ "localNetwork.getHubAddresses": {
45056
+ capName: "local-network",
45057
+ capScope: "system",
45058
+ addonId: null,
45059
+ access: "view"
45060
+ },
44441
45061
  "localNetwork.getNotificationEndpoint": {
44442
45062
  capName: "local-network",
44443
45063
  capScope: "system",
@@ -44474,6 +45094,12 @@ Object.freeze({
44474
45094
  addonId: null,
44475
45095
  access: "create"
44476
45096
  },
45097
+ "localNetwork.removeCustomAddress": {
45098
+ capName: "local-network",
45099
+ capScope: "system",
45100
+ addonId: null,
45101
+ access: "delete"
45102
+ },
44477
45103
  "localNetwork.resetAllowlistToBestMatch": {
44478
45104
  capName: "local-network",
44479
45105
  capScope: "system",
@@ -44486,6 +45112,12 @@ Object.freeze({
44486
45112
  addonId: null,
44487
45113
  access: "create"
44488
45114
  },
45115
+ "localNetwork.setAddressRole": {
45116
+ capName: "local-network",
45117
+ capScope: "system",
45118
+ addonId: null,
45119
+ access: "create"
45120
+ },
44489
45121
  "localNetwork.setAllowedAddresses": {
44490
45122
  capName: "local-network",
44491
45123
  capScope: "system",
@@ -45932,6 +46564,12 @@ Object.freeze({
45932
46564
  addonId: null,
45933
46565
  access: "create"
45934
46566
  },
46567
+ "pipelineAnalytics.setRetrainFrameComplete": {
46568
+ capName: "pipeline-analytics",
46569
+ capScope: "device",
46570
+ addonId: null,
46571
+ access: "create"
46572
+ },
45935
46573
  "pipelineAnalytics.setTrackFlags": {
45936
46574
  capName: "pipeline-analytics",
45937
46575
  capScope: "device",
@@ -45968,6 +46606,12 @@ Object.freeze({
45968
46606
  addonId: null,
45969
46607
  access: "delete"
45970
46608
  },
46609
+ "pipelineAnalytics.writeRetrainArchive": {
46610
+ capName: "pipeline-analytics",
46611
+ capScope: "device",
46612
+ addonId: null,
46613
+ access: "create"
46614
+ },
45971
46615
  "pipelineExecutor.cacheFrameInPool": {
45972
46616
  capName: "pipeline-executor",
45973
46617
  capScope: "system",
@@ -45980,13 +46624,13 @@ Object.freeze({
45980
46624
  addonId: null,
45981
46625
  access: "delete"
45982
46626
  },
45983
- "pipelineExecutor.deleteModel": {
46627
+ "pipelineExecutor.clearModelBoundDeviceOverrides": {
45984
46628
  capName: "pipeline-executor",
45985
46629
  capScope: "system",
45986
46630
  addonId: null,
45987
46631
  access: "delete"
45988
46632
  },
45989
- "pipelineExecutor.deleteTemplate": {
46633
+ "pipelineExecutor.deleteModel": {
45990
46634
  capName: "pipeline-executor",
45991
46635
  capScope: "system",
45992
46636
  addonId: null,
@@ -46130,12 +46774,6 @@ Object.freeze({
46130
46774
  addonId: null,
46131
46775
  access: "view"
46132
46776
  },
46133
- "pipelineExecutor.listTemplates": {
46134
- capName: "pipeline-executor",
46135
- capScope: "system",
46136
- addonId: null,
46137
- access: "view"
46138
- },
46139
46777
  "pipelineExecutor.rearmInferenceDevice": {
46140
46778
  capName: "pipeline-executor",
46141
46779
  capScope: "system",
@@ -46160,12 +46798,6 @@ Object.freeze({
46160
46798
  addonId: null,
46161
46799
  access: "create"
46162
46800
  },
46163
- "pipelineExecutor.saveTemplate": {
46164
- capName: "pipeline-executor",
46165
- capScope: "system",
46166
- addonId: null,
46167
- access: "create"
46168
- },
46169
46801
  "pipelineExecutor.setVideoPipelineSteps": {
46170
46802
  capName: "pipeline-executor",
46171
46803
  capScope: "system",
@@ -46184,41 +46816,35 @@ Object.freeze({
46184
46816
  addonId: null,
46185
46817
  access: "create"
46186
46818
  },
46187
- "pipelineExecutor.updateTemplate": {
46188
- capName: "pipeline-executor",
46189
- capScope: "system",
46190
- addonId: null,
46191
- access: "create"
46192
- },
46193
46819
  "pipelineExecutor.validatePipeline": {
46194
46820
  capName: "pipeline-executor",
46195
46821
  capScope: "system",
46196
46822
  addonId: null,
46197
46823
  access: "view"
46198
46824
  },
46199
- "pipelineOrchestrator.applyDeviceSettingsPatch": {
46825
+ "pipelineOrchestrator.applyAutoTune": {
46200
46826
  capName: "pipeline-orchestrator",
46201
46827
  capScope: "system",
46202
46828
  addonId: null,
46203
46829
  access: "create"
46204
46830
  },
46205
- "pipelineOrchestrator.assignAudio": {
46831
+ "pipelineOrchestrator.applyDeviceSettingsPatch": {
46206
46832
  capName: "pipeline-orchestrator",
46207
46833
  capScope: "system",
46208
46834
  addonId: null,
46209
46835
  access: "create"
46210
46836
  },
46211
- "pipelineOrchestrator.assignPipeline": {
46837
+ "pipelineOrchestrator.assignAudio": {
46212
46838
  capName: "pipeline-orchestrator",
46213
46839
  capScope: "system",
46214
46840
  addonId: null,
46215
46841
  access: "create"
46216
46842
  },
46217
- "pipelineOrchestrator.deleteTemplate": {
46843
+ "pipelineOrchestrator.assignPipeline": {
46218
46844
  capName: "pipeline-orchestrator",
46219
46845
  capScope: "system",
46220
46846
  addonId: null,
46221
- access: "delete"
46847
+ access: "create"
46222
46848
  },
46223
46849
  "pipelineOrchestrator.getAgentLoad": {
46224
46850
  capName: "pipeline-orchestrator",
@@ -46310,6 +46936,12 @@ Object.freeze({
46310
46936
  addonId: null,
46311
46937
  access: "view"
46312
46938
  },
46939
+ "pipelineOrchestrator.getEffectiveShares": {
46940
+ capName: "pipeline-orchestrator",
46941
+ capScope: "system",
46942
+ addonId: null,
46943
+ access: "view"
46944
+ },
46313
46945
  "pipelineOrchestrator.getGlobalMetrics": {
46314
46946
  capName: "pipeline-orchestrator",
46315
46947
  capScope: "system",
@@ -46346,19 +46978,19 @@ Object.freeze({
46346
46978
  addonId: null,
46347
46979
  access: "view"
46348
46980
  },
46349
- "pipelineOrchestrator.getReconcileFromDiskStatus": {
46981
+ "pipelineOrchestrator.getPlacementStats": {
46350
46982
  capName: "pipeline-orchestrator",
46351
46983
  capScope: "system",
46352
46984
  addonId: null,
46353
46985
  access: "view"
46354
46986
  },
46355
- "pipelineOrchestrator.listAgentSettings": {
46987
+ "pipelineOrchestrator.getReconcileFromDiskStatus": {
46356
46988
  capName: "pipeline-orchestrator",
46357
46989
  capScope: "system",
46358
46990
  addonId: null,
46359
46991
  access: "view"
46360
46992
  },
46361
- "pipelineOrchestrator.listTemplates": {
46993
+ "pipelineOrchestrator.listAgentSettings": {
46362
46994
  capName: "pipeline-orchestrator",
46363
46995
  capScope: "system",
46364
46996
  addonId: null,
@@ -46370,6 +47002,12 @@ Object.freeze({
46370
47002
  addonId: null,
46371
47003
  access: "create"
46372
47004
  },
47005
+ "pipelineOrchestrator.planAutoTune": {
47006
+ capName: "pipeline-orchestrator",
47007
+ capScope: "system",
47008
+ addonId: null,
47009
+ access: "view"
47010
+ },
46373
47011
  "pipelineOrchestrator.rebalance": {
46374
47012
  capName: "pipeline-orchestrator",
46375
47013
  capScope: "system",
@@ -46412,12 +47050,6 @@ Object.freeze({
46412
47050
  addonId: null,
46413
47051
  access: "create"
46414
47052
  },
46415
- "pipelineOrchestrator.saveTemplate": {
46416
- capName: "pipeline-orchestrator",
46417
- capScope: "system",
46418
- addonId: null,
46419
- access: "create"
46420
- },
46421
47053
  "pipelineOrchestrator.setAgentCapabilities": {
46422
47054
  capName: "pipeline-orchestrator",
46423
47055
  capScope: "system",
@@ -46430,12 +47062,6 @@ Object.freeze({
46430
47062
  addonId: null,
46431
47063
  access: "create"
46432
47064
  },
46433
- "pipelineOrchestrator.setAgentDetectWeight": {
46434
- capName: "pipeline-orchestrator",
46435
- capScope: "system",
46436
- addonId: null,
46437
- access: "create"
46438
- },
46439
47065
  "pipelineOrchestrator.setAgentInferenceDevices": {
46440
47066
  capName: "pipeline-orchestrator",
46441
47067
  capScope: "system",
@@ -46472,6 +47098,12 @@ Object.freeze({
46472
47098
  addonId: null,
46473
47099
  access: "create"
46474
47100
  },
47101
+ "pipelineOrchestrator.setCameraStepSettings": {
47102
+ capName: "pipeline-orchestrator",
47103
+ capScope: "system",
47104
+ addonId: null,
47105
+ access: "create"
47106
+ },
46475
47107
  "pipelineOrchestrator.setCameraStepToggle": {
46476
47108
  capName: "pipeline-orchestrator",
46477
47109
  capScope: "system",
@@ -46490,25 +47122,37 @@ Object.freeze({
46490
47122
  addonId: null,
46491
47123
  access: "create"
46492
47124
  },
47125
+ "pipelineOrchestrator.setLoadBalancingShares": {
47126
+ capName: "pipeline-orchestrator",
47127
+ capScope: "system",
47128
+ addonId: null,
47129
+ access: "create"
47130
+ },
46493
47131
  "pipelineOrchestrator.setPipelineDevicePin": {
46494
47132
  capName: "pipeline-orchestrator",
46495
47133
  capScope: "system",
46496
47134
  addonId: null,
46497
47135
  access: "create"
46498
47136
  },
46499
- "pipelineOrchestrator.unassignAudio": {
47137
+ "pipelineOrchestrator.setShareSource": {
46500
47138
  capName: "pipeline-orchestrator",
46501
47139
  capScope: "system",
46502
47140
  addonId: null,
46503
47141
  access: "create"
46504
47142
  },
46505
- "pipelineOrchestrator.unassignPipeline": {
47143
+ "pipelineOrchestrator.suggestShares": {
47144
+ capName: "pipeline-orchestrator",
47145
+ capScope: "system",
47146
+ addonId: null,
47147
+ access: "view"
47148
+ },
47149
+ "pipelineOrchestrator.unassignAudio": {
46506
47150
  capName: "pipeline-orchestrator",
46507
47151
  capScope: "system",
46508
47152
  addonId: null,
46509
47153
  access: "create"
46510
47154
  },
46511
- "pipelineOrchestrator.updateTemplate": {
47155
+ "pipelineOrchestrator.unassignPipeline": {
46512
47156
  capName: "pipeline-orchestrator",
46513
47157
  capScope: "system",
46514
47158
  addonId: null,
@@ -47948,12 +48592,6 @@ Object.freeze({
47948
48592
  addonId: null,
47949
48593
  access: "view"
47950
48594
  },
47951
- "streamBroker.pullFrameHandles": {
47952
- capName: "stream-broker",
47953
- capScope: "system",
47954
- addonId: null,
47955
- access: "view"
47956
- },
47957
48595
  "streamBroker.regenerateRtspToken": {
47958
48596
  capName: "stream-broker",
47959
48597
  capScope: "system",
@@ -48020,12 +48658,6 @@ Object.freeze({
48020
48658
  addonId: null,
48021
48659
  access: "create"
48022
48660
  },
48023
- "streamBroker.subscribeFrames": {
48024
- capName: "stream-broker",
48025
- capScope: "system",
48026
- addonId: null,
48027
- access: "create"
48028
- },
48029
48661
  "streamBroker.unassignProfile": {
48030
48662
  capName: "stream-broker",
48031
48663
  capScope: "system",
@@ -48038,12 +48670,6 @@ Object.freeze({
48038
48670
  addonId: null,
48039
48671
  access: "create"
48040
48672
  },
48041
- "streamBroker.unsubscribeFrames": {
48042
- capName: "stream-broker",
48043
- capScope: "system",
48044
- addonId: null,
48045
- access: "create"
48046
- },
48047
48673
  "streamCatalog.getCatalog": {
48048
48674
  capName: "stream-catalog",
48049
48675
  capScope: "device",
@@ -48338,18 +48964,36 @@ Object.freeze({
48338
48964
  addonId: null,
48339
48965
  access: "delete"
48340
48966
  },
48967
+ "userManagement.findUserByExternalIdentity": {
48968
+ capName: "user-management",
48969
+ capScope: "system",
48970
+ addonId: null,
48971
+ access: "view"
48972
+ },
48341
48973
  "userManagement.getTotpStatus": {
48342
48974
  capName: "user-management",
48343
48975
  capScope: "system",
48344
48976
  addonId: null,
48345
48977
  access: "view"
48346
48978
  },
48979
+ "userManagement.linkExternalIdentity": {
48980
+ capName: "user-management",
48981
+ capScope: "system",
48982
+ addonId: null,
48983
+ access: "create"
48984
+ },
48347
48985
  "userManagement.listApiKeys": {
48348
48986
  capName: "user-management",
48349
48987
  capScope: "system",
48350
48988
  addonId: null,
48351
48989
  access: "view"
48352
48990
  },
48991
+ "userManagement.listExternalIdentities": {
48992
+ capName: "user-management",
48993
+ capScope: "system",
48994
+ addonId: null,
48995
+ access: "view"
48996
+ },
48353
48997
  "userManagement.listOauthSessions": {
48354
48998
  capName: "user-management",
48355
48999
  capScope: "system",
@@ -48428,6 +49072,12 @@ Object.freeze({
48428
49072
  addonId: null,
48429
49073
  access: "create"
48430
49074
  },
49075
+ "userManagement.unlinkExternalIdentity": {
49076
+ capName: "user-management",
49077
+ capScope: "system",
49078
+ addonId: null,
49079
+ access: "delete"
49080
+ },
48431
49081
  "userManagement.updateUser": {
48432
49082
  capName: "user-management",
48433
49083
  capScope: "system",
@@ -48740,6 +49390,12 @@ Object.freeze({
48740
49390
  addonId: null,
48741
49391
  access: "create"
48742
49392
  },
49393
+ "webrtcSession.applyDownlinkProbe": {
49394
+ capName: "webrtc-session",
49395
+ capScope: "device",
49396
+ addonId: null,
49397
+ access: "create"
49398
+ },
48743
49399
  "webrtcSession.closeSession": {
48744
49400
  capName: "webrtc-session",
48745
49401
  capScope: "device",
@@ -50551,11 +51207,6 @@ Object.freeze({
50551
51207
  form: "single",
50552
51208
  optional: false
50553
51209
  }],
50554
- "decoder.createSession": [{
50555
- name: "deviceId",
50556
- form: "single",
50557
- optional: true
50558
- }],
50559
51210
  "detectionPipeline.applyDeviceSettingsPatch": [{
50560
51211
  name: "deviceId",
50561
51212
  form: "single",
@@ -51766,6 +52417,11 @@ Object.freeze({
51766
52417
  form: "single",
51767
52418
  optional: false
51768
52419
  }],
52420
+ "pipelineAnalytics.setRetrainFrameComplete": [{
52421
+ name: "deviceId",
52422
+ form: "single",
52423
+ optional: false
52424
+ }],
51769
52425
  "pipelineAnalytics.setTrackFlags": [{
51770
52426
  name: "deviceId",
51771
52427
  form: "single",
@@ -51786,6 +52442,11 @@ Object.freeze({
51786
52442
  form: "single",
51787
52443
  optional: false
51788
52444
  }],
52445
+ "pipelineExecutor.clearModelBoundDeviceOverrides": [{
52446
+ name: "deviceIds",
52447
+ form: "array",
52448
+ optional: true
52449
+ }],
51789
52450
  "pipelineExecutor.runPipeline": [{
51790
52451
  name: "deviceId",
51791
52452
  form: "single",
@@ -51891,6 +52552,11 @@ Object.freeze({
51891
52552
  form: "single",
51892
52553
  optional: false
51893
52554
  }],
52555
+ "pipelineOrchestrator.setCameraStepSettings": [{
52556
+ name: "deviceId",
52557
+ form: "single",
52558
+ optional: false
52559
+ }],
51894
52560
  "pipelineOrchestrator.setCameraStepToggle": [{
51895
52561
  name: "deviceId",
51896
52562
  form: "single",
@@ -52662,6 +53328,11 @@ Object.freeze({
52662
53328
  form: "single",
52663
53329
  optional: false
52664
53330
  }],
53331
+ "webrtcSession.applyDownlinkProbe": [{
53332
+ name: "deviceId",
53333
+ form: "single",
53334
+ optional: false
53335
+ }],
52665
53336
  "webrtcSession.closeSession": [{
52666
53337
  name: "deviceId",
52667
53338
  form: "single",
@@ -52891,6 +53562,8 @@ new Map(Object.entries({
52891
53562
  "detection-blind": "device-events",
52892
53563
  "node-online": "system",
52893
53564
  "node-offline": "system",
53565
+ "node-restarting": "system",
53566
+ "node-updating": "system",
52894
53567
  "node-inference-unavailable": "system",
52895
53568
  "addon-crash-loop": "system",
52896
53569
  "addon-update-available": "system",
@@ -52968,6 +53641,7 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
52968
53641
  kinds: [
52969
53642
  "node-offline",
52970
53643
  "node-online",
53644
+ "node-restarting",
52971
53645
  "node-inference-unavailable"
52972
53646
  ]
52973
53647
  },
@@ -52989,6 +53663,7 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
52989
53663
  label: "Server & container updates",
52990
53664
  kinds: [
52991
53665
  "server-update-available",
53666
+ "node-updating",
52992
53667
  "server-updated",
52993
53668
  "wrapper-update-available"
52994
53669
  ]
@@ -53136,6 +53811,7 @@ var STATE_SUMMARY_SECTION_VARS = [
53136
53811
  kinds: [
53137
53812
  "node-offline",
53138
53813
  "node-online",
53814
+ "node-restarting",
53139
53815
  "node-inference-unavailable"
53140
53816
  ]
53141
53817
  },
@@ -53157,6 +53833,7 @@ var STATE_SUMMARY_SECTION_VARS = [
53157
53833
  example: "server 1.2.377 → 1.2.378",
53158
53834
  kinds: [
53159
53835
  "server-update-available",
53836
+ "node-updating",
53160
53837
  "server-updated",
53161
53838
  "wrapper-update-available"
53162
53839
  ]
@@ -53189,7 +53866,7 @@ var STATE_SUMMARY_VARS = [
53189
53866
  {
53190
53867
  name: "summarySection",
53191
53868
  label: "Summary: this section",
53192
- 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.",
53193
53870
  example: "Batterie scariche",
53194
53871
  group: "system",
53195
53872
  families: ["rule"],
@@ -53824,7 +54501,7 @@ var TuyaRegionSchema = _enum(TUYA_REGION_VALUES);
53824
54501
  */
53825
54502
  var tuyaConfigSchema = object({
53826
54503
  accessId: string().min(1).describe("Tuya IoT project Access ID / Client ID"),
53827
- 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 }),
53828
54505
  region: TuyaRegionSchema.default("eu").describe("Tuya cloud data-centre region"),
53829
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")
53830
54507
  });
@@ -54089,7 +54766,7 @@ var tuyaConnections = new TuyaConnectionResolver();
54089
54766
  var tuyaDeviceConfigSchema = object({
54090
54767
  integrationId: string().min(1).describe("Owning Tuya integration id"),
54091
54768
  tuyaDeviceId: string().min(1).describe("Tuya cloud device id (gwId/devId)"),
54092
- 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 }),
54093
54770
  host: string().default("").describe("Device LAN IP / host"),
54094
54771
  version: string().default("3.3").describe("Tuya protocol version (3.1–3.5)"),
54095
54772
  switchDp: string().default("1").describe("Boolean DP a raw switch drives"),