@camstack/addon-auth 1.2.129 → 1.2.131

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.
@@ -1,5 +1,5 @@
1
1
  require("node:crypto");
2
- //#region ../types/dist/event-category-BGmz_oxW.mjs
2
+ //#region ../types/dist/event-category-B_0XEcLF.mjs
3
3
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4
4
  EventCategory["SystemBoot"] = "system.boot";
5
5
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -500,15 +500,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
500
500
  EventCategory["AgentWsDisconnected"] = "agent.ws.disconnected";
501
501
  EventCategory["AgentBackupActivated"] = "agent.backup.activated";
502
502
  EventCategory["OrchestrationSettingsUpdated"] = "orchestration.settings-updated";
503
- /**
504
- * Per-agent hwaccel preference changed (user override set, cleared, or
505
- * re-probed). Observability event — decoders pull the current pref at
506
- * `createSession`, so running sessions keep their current backend until
507
- * they rotate naturally (camera add/remove, stream restart). Future
508
- * work can wire a listener in stream-broker that force-rotates live
509
- * sessions; for now this event powers logs + admin-UI toast feedback.
510
- */
511
- EventCategory["PipelineAgentHwaccelChanged"] = "pipeline.agent-hwaccel-changed";
512
503
  EventCategory["MotionAnalysis"] = "detection.motion-analysis";
513
504
  /** All raw motion zones from CCL before minArea filter — for UI debug overlay. */
514
505
  EventCategory["MotionZonesRaw"] = "detection.motion-zones-raw";
@@ -5379,7 +5370,7 @@ var ZodIssueCode = {
5379
5370
  var ZodFirstPartyTypeKind;
5380
5371
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5381
5372
  //#endregion
5382
- //#region ../types/dist/sleep-C16NCZR2.mjs
5373
+ //#region ../types/dist/sleep-B0JG7-_F.mjs
5383
5374
  /**
5384
5375
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5385
5376
  * window to float samples (D455).
@@ -6745,32 +6736,12 @@ object({
6745
6736
  audioCodec: string().optional(),
6746
6737
  metadata: record(string(), unknown()).readonly().optional()
6747
6738
  });
6748
- var EncodedPacketSchema = object({
6749
- type: _enum(["video", "audio"]),
6750
- data: _instanceof(Uint8Array),
6751
- pts: number(),
6752
- dts: number(),
6753
- keyframe: boolean(),
6754
- codec: string()
6755
- });
6756
- var DecodedFrameSchema = object({
6757
- data: _instanceof(Uint8Array),
6758
- width: number(),
6759
- height: number(),
6760
- format: _enum([
6761
- "jpeg",
6762
- "rgb",
6763
- "bgr",
6764
- "yuv420",
6765
- "gray"
6766
- ]),
6767
- timestamp: number()
6768
- });
6769
6739
  /**
6770
6740
  * Wire schema for `FrameHandle` — a zero-pixel, serialisable reference to a
6771
6741
  * frame in a shared-memory ring (Phase 5 / D9). Mirrors the `FrameHandle` TS
6772
- * interface in `interfaces/frame-handle.ts` field-for-field so a decoder cap
6773
- * method (`pullHandles`) can carry handles over tRPC / Moleculer.
6742
+ * interface in `interfaces/frame-handle.ts` field-for-field so a cap method
6743
+ * (the runner's native-crop and pipeline-executor inputs) can carry handles
6744
+ * over tRPC / Moleculer.
6774
6745
  *
6775
6746
  * The `satisfies` assertion below pins this schema to the interface: if a
6776
6747
  * field is added to / removed from `FrameHandle` without a matching schema
@@ -6796,50 +6767,6 @@ var FrameHandleSchema = object({
6796
6767
  slotCount: number().int().positive()
6797
6768
  });
6798
6769
  /**
6799
- * Pixel format a frame-handle subscriber can request from the broker
6800
- * (Phase 5 / D9). The packed, raster subset of `FrameFormat` — the formats a
6801
- * `frameSink: 'shm'` decoder session can write into a `FrameRing` slot.
6802
- * `jpeg` is excluded: a variable-length stream is not a fixed-stride ring
6803
- * payload, and no decoded-frame consumer requests it over the shm plane.
6804
- */
6805
- var FrameHandleFormatSchema = _enum([
6806
- "rgb",
6807
- "bgr",
6808
- "yuv420",
6809
- "gray"
6810
- ]);
6811
- /**
6812
- * Input for `stream-broker.subscribeFrames` (Phase 5 / D9). A consumer asks the
6813
- * broker for a `FrameHandle` stream of one `format`; the broker maintains one
6814
- * shared-memory ring per `(brokerId, format)` actually requested, so a `gray`
6815
- * subscriber (motion) and an `rgb` subscriber (detection) each read the format
6816
- * they asked for with no broker-side conversion.
6817
- */
6818
- var SubscribeFramesInputSchema = object({
6819
- brokerId: string(),
6820
- format: FrameHandleFormatSchema,
6821
- /**
6822
- * Optional reader-side cadence hint in frames per second. The broker does
6823
- * NOT throttle — latest-wins ring reads drop frames implicitly for a slow
6824
- * consumer. The value is echoed back in `SubscribeFramesResult.maxFps` so
6825
- * the consumer can pace its own `pullFrameHandles` polling.
6826
- */
6827
- maxFps: number().positive().optional(),
6828
- /** Short caller-identity tag (`motion`, `detection`, …) for diagnostics. */
6829
- tag: string().optional()
6830
- });
6831
- /**
6832
- * Result of `stream-broker.subscribeFrames`. The consumer then polls
6833
- * `pullFrameHandles({ subscriptionId, maxCount })` and feeds each returned
6834
- * `FrameHandle` to a `FrameRingReader`.
6835
- */
6836
- var SubscribeFramesResultSchema = object({
6837
- /** Opaque id the consumer passes to `pullFrameHandles` / `unsubscribeFrames`. */
6838
- subscriptionId: string(),
6839
- /** Reader-side cadence hint (frames/s) — echoes `SubscribeFramesInput.maxFps`. */
6840
- maxFps: number().nonnegative()
6841
- });
6842
- /**
6843
6770
  * Wire schema for a decoded audio chunk (Phase 5 / D9). Mirrors the
6844
6771
  * `DecodedAudioChunk` TS interface in `interfaces/stream-broker.ts`: PCM
6845
6772
  * sample bytes plus the track parameters a consumer needs to interpret them.
@@ -6847,8 +6774,8 @@ var SubscribeFramesResultSchema = object({
6847
6774
  * Audio chunks are tiny (a ~500ms AudioCodecSession window is a few KB of
6848
6775
  * Float32 PCM), so unlike video frames they ship their bytes INLINE over
6849
6776
  * tRPC / Moleculer — no shared-memory plane. `data` is typed `Uint8Array`
6850
- * (the wire-serialisable supertype of `Buffer`) to match `DecodedFrameSchema`
6851
- * / `EncodedPacketSchema`'s precedent; a `Buffer` is assignable to it.
6777
+ * (the wire-serialisable supertype of `Buffer`); a `Buffer` is assignable to
6778
+ * it.
6852
6779
  */
6853
6780
  var AudioChunkFormatSchema = _enum(AUDIO_CHUNK_FORMATS);
6854
6781
  var DecodedAudioChunkSchema = object({
@@ -6866,11 +6793,10 @@ var DecodedAudioChunkSchema = object({
6866
6793
  format: AudioChunkFormatSchema.optional()
6867
6794
  });
6868
6795
  /**
6869
- * Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9). The
6870
- * handle-free, ship-bytes-inline analogue of `subscribeFrames`: a consumer
6871
- * asks the broker for the decoded audio-chunk stream of one broker; the
6872
- * broker keeps a per-subscription bounded FIFO queue the consumer drains via
6873
- * `pullAudioChunks`.
6796
+ * Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9). Audio ships
6797
+ * its bytes inline: a consumer asks the broker for the decoded audio-chunk
6798
+ * stream of one broker; the broker keeps a per-subscription bounded FIFO queue
6799
+ * the consumer drains via `pullAudioChunks`.
6874
6800
  */
6875
6801
  var SubscribeAudioChunksInputSchema = object({
6876
6802
  brokerId: string(),
@@ -6901,9 +6827,7 @@ var BrokerStatsSchema = object({
6901
6827
  "stopped"
6902
6828
  ]),
6903
6829
  inputFps: number(),
6904
- decodeFps: number(),
6905
6830
  encodedSubscribers: number(),
6906
- decodedSubscribers: number(),
6907
6831
  uptimeMs: number(),
6908
6832
  bitrateKbps: number(),
6909
6833
  idrIntervalMs: number(),
@@ -6916,14 +6840,6 @@ var BrokerStatsSchema = object({
6916
6840
  preBufferMs: number(),
6917
6841
  preBufferPackets: number(),
6918
6842
  /**
6919
- * Moleculer node id of the decoder provider currently servicing this
6920
- * stream's decoded subscribers. `null` until the deferred decoder is
6921
- * created (no decoded clients yet, or codec not detected). Surfaces the
6922
- * runtime decoder placement so the UI can show "Decoder: <agent>" without
6923
- * a separate cap call per broker.
6924
- */
6925
- decoderNodeId: string().nullable(),
6926
- /**
6927
6843
  * Detected audio track parameters from the RTSP DESCRIBE / SDP. `null`
6928
6844
  * when the stream has no audio track or the broker is in cold start.
6929
6845
  * `supported = false` means the codec was detected but the local
@@ -8389,8 +8305,8 @@ function buildAddonRouteProvider(id, routes) {
8389
8305
  const reply = buildCapturingReply(envelope);
8390
8306
  const request = {
8391
8307
  params: {
8392
- ...input.params,
8393
- ...match.params
8308
+ ...match.params,
8309
+ ...input.params
8394
8310
  },
8395
8311
  query: input.query,
8396
8312
  body: input.body,
@@ -10372,70 +10288,6 @@ var StorageLocationDeclarationSchema = object({
10372
10288
  "backup"
10373
10289
  ]).optional()
10374
10290
  });
10375
- var DecoderStatsSchema = object({
10376
- inputFps: number(),
10377
- outputFps: number(),
10378
- avgDecodeTimeMs: number(),
10379
- droppedFrames: number(),
10380
- /**
10381
- * Pull-mode adaptive-fps telemetry (optional — only pull sessions run the
10382
- * lag-driven controller; push sessions omit these). `lagMs` is the EWMA of
10383
- * the decoder's real-time drift (rising = falling behind live); `adaptiveFps`
10384
- * is the current lag-throttled emit rate (≤ `effectiveFps` ceiling).
10385
- */
10386
- lagMs: number().optional(),
10387
- effectiveFps: number().optional(),
10388
- adaptiveFps: number().optional()
10389
- });
10390
- var DecoderSessionConfigSchema = object({
10391
- codec: string(),
10392
- maxFps: number().default(0),
10393
- outputFormat: _enum([
10394
- "jpeg",
10395
- "rgb",
10396
- "bgr",
10397
- "yuv420",
10398
- "gray"
10399
- ]).default("jpeg"),
10400
- scale: number().default(1),
10401
- width: number().optional(),
10402
- height: number().optional(),
10403
- /**
10404
- * Identifier of the camera this decoder session serves. Optional
10405
- * because the cap is generic (any caller could request decode), but
10406
- * stream-broker passes it so decoder logs include `deviceId` for
10407
- * per-camera filtering when diagnosing failures (e.g. node-av
10408
- * sendPacket errors on a single hung camera).
10409
- */
10410
- deviceId: number().int().nonnegative().optional(),
10411
- /**
10412
- * Free-form tag for log scoping. Stream-broker uses
10413
- * `broker:<deviceId>/<profile>`. Decoder session logger surfaces it
10414
- * on every line so `grep tag=broker:5/high` filters one camera
10415
- * profile cleanly.
10416
- */
10417
- tag: string().optional(),
10418
- /**
10419
- * Where the session delivers decoded frames (Phase 5 / D9):
10420
- *
10421
- * - `'callback'` (default) — the legacy pixel path: decoded frames are
10422
- * buffered as `DecodedFrame`s and drained via `pullFrames`.
10423
- * - `'shm'` — the shared-memory frame plane: decoded frames are written
10424
- * into an OS shared-memory ring and drained as zero-pixel
10425
- * `FrameHandle`s via `pullHandles`. A session is one mode or the
10426
- * other — `pullFrames` returns nothing for an `'shm'` session and
10427
- * `pullHandles` returns nothing for a `'callback'` session.
10428
- */
10429
- frameSink: _enum(["callback", "shm"]).default("callback"),
10430
- /**
10431
- * Per-camera decoder DEBUG facility. When `true`, a pull-mode session emits
10432
- * a throttled (~1Hz) structured `decoder debug` line (effective/adaptive fps,
10433
- * real-time lag, dropped-frame delta, avg decode time, hwaccel). Mirrors the
10434
- * stream-broker's `streamingDebug` gate — off by default so production logs
10435
- * stay quiet and the emit path pays zero per-frame cost when disabled.
10436
- */
10437
- debug: boolean().optional()
10438
- });
10439
10291
  /**
10440
10292
  * Per-component log CHANNELS — the gate a hot path consults, and the registry
10441
10293
  * an addon declares its channels in.
@@ -10586,7 +10438,18 @@ var LABEL_SUPPLY_STEP_IDS = [
10586
10438
  ];
10587
10439
  /** Steps whose box a root detection can BE. */
10588
10440
  var CROP_SUPPLY_STEP_IDS = ["plate-detection", "face-detection"];
10589
- [...LABEL_SUPPLY_STEP_IDS, ...CROP_SUPPLY_STEP_IDS];
10441
+ /**
10442
+ * Steps whose per-detection MASK a root detection can carry (D737). The live
10443
+ * mask step is `segmentation` — a frame-plane refiner that runs its own model
10444
+ * once per detection crop. (`instance-segmentation` is a dormant step id that
10445
+ * no camera tree carries.)
10446
+ */
10447
+ var MASK_SUPPLY_STEP_IDS = ["segmentation"];
10448
+ [
10449
+ ...LABEL_SUPPLY_STEP_IDS,
10450
+ ...CROP_SUPPLY_STEP_IDS,
10451
+ ...MASK_SUPPLY_STEP_IDS
10452
+ ];
10590
10453
  var MODEL_FORMATS = [
10591
10454
  "onnx",
10592
10455
  "coreml",
@@ -10615,7 +10478,53 @@ var ModelFormatEntrySchema = object({
10615
10478
  /** Multi-file payload (directory members or sibling files). */
10616
10479
  files: array(string()).readonly().optional(),
10617
10480
  /** Runtime(s) that can use this format. If omitted, inferred from ModelFormat key */
10618
- runtimes: array(_enum(["python"])).readonly().optional()
10481
+ runtimes: array(_enum(["python"])).readonly().optional(),
10482
+ /**
10483
+ * Content revision of the artefact, for one hosted OFF the CamStack mirror.
10484
+ * A format on the mirror leaves it unset: its revision (the sha256 of its
10485
+ * weight file) comes from the downloader's generated table, kept in step
10486
+ * with the mirror by `scripts/check-hosted-model-revisions.ts` (D744). A
10487
+ * node records the revision it downloaded next to the file
10488
+ * (`<file>.revision`); a copy with no record or a different one is stale
10489
+ * unless its weight file hashes to the revision, and a stale copy is
10490
+ * downloaded again, the old one serving until the new one is complete. No
10491
+ * revision at all ⇒ a file on disk is current, whatever it holds (D743).
10492
+ */
10493
+ revision: string().min(1).optional()
10494
+ });
10495
+ /**
10496
+ * What a node holds for one (model, format) (D746). `current` is a complete
10497
+ * copy at its catalog revision — exactly what `downloaded: true` means.
10498
+ * `stale` is bytes on disk that are not (yet) proven current under D743/D744:
10499
+ * no or a different revision record, or a missing sibling. `missing` is no
10500
+ * copy. `downloaded` alone folds `stale` into "not downloaded", which hid
10501
+ * reclaimable bytes and a copy about to be replaced.
10502
+ */
10503
+ var ModelOnDiskStateSchema = _enum([
10504
+ "current",
10505
+ "stale",
10506
+ "missing"
10507
+ ]);
10508
+ /**
10509
+ * The numeric precision of one format's BUILD (D746) — reported only when the
10510
+ * build states it (file-name token, an INT8 variant, an EdgeTPU compile, a
10511
+ * CamStack Core ML export). Absent means "not stated", never "fp32".
10512
+ */
10513
+ var ModelFormatPrecisionSchema = _enum([
10514
+ "fp32",
10515
+ "fp16",
10516
+ "int8"
10517
+ ]);
10518
+ /**
10519
+ * One format of one model as a node's `pipelineExecutor.getSchema` reports it.
10520
+ * `onDisk` / `precision` are optional for version skew: a runner that predates
10521
+ * them omits them, and a reader falls back to `downloaded`.
10522
+ */
10523
+ var PipelineModelFormatStatusSchema = object({
10524
+ downloaded: boolean(),
10525
+ sizeMB: number(),
10526
+ onDisk: ModelOnDiskStateSchema.optional(),
10527
+ precision: ModelFormatPrecisionSchema.optional()
10619
10528
  });
10620
10529
  /**
10621
10530
  * Extra file that must be downloaded alongside the model (e.g., labels JSON, dict.txt).
@@ -10729,25 +10638,36 @@ var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { wei
10729
10638
  * - `crop`: the root draws the box the step would have found (`license_plate`
10730
10639
  * for plate-detection, `face` for face-detection). The box becomes a detail
10731
10640
  * child of the `parentMacro` detection that contains it — never a track.
10641
+ * - `mask`: the root's decode emits an instance mask with every detection (a
10642
+ * YOLO26-seg root, D737) — the `segmentation` step's result, carried on the
10643
+ * detection in the shape that step produces. Derived from the model's
10644
+ * postprocessor on read, never stored by an import.
10732
10645
  */
10733
- var RootStepSupplySchema = discriminatedUnion("kind", [object({
10734
- kind: literal("label"),
10735
- stepId: _enum(LABEL_SUPPLY_STEP_IDS),
10736
- labelToEffect: record(string(), string()),
10737
- uncovered: array(string()).readonly()
10738
- }), object({
10739
- kind: literal("crop"),
10740
- stepId: _enum(CROP_SUPPLY_STEP_IDS),
10741
- rootLabels: array(string()).readonly(),
10742
- parentMacro: _enum(["vehicle", "person"]),
10743
- childClass: _enum(["plate", "face"]),
10744
- /**
10745
- * The root's smaller input side, stamped on read by `rootSuppliesOf` from
10746
- * the model entry — what a step's `minRootInputPx` gate judges. Never
10747
- * stored by an import.
10748
- */
10749
- rootInputPx: number().int().positive().optional()
10750
- })]);
10646
+ var RootStepSupplySchema = discriminatedUnion("kind", [
10647
+ object({
10648
+ kind: literal("label"),
10649
+ stepId: _enum(LABEL_SUPPLY_STEP_IDS),
10650
+ labelToEffect: record(string(), string()),
10651
+ uncovered: array(string()).readonly()
10652
+ }),
10653
+ object({
10654
+ kind: literal("crop"),
10655
+ stepId: _enum(CROP_SUPPLY_STEP_IDS),
10656
+ rootLabels: array(string()).readonly(),
10657
+ parentMacro: _enum(["vehicle", "person"]),
10658
+ childClass: _enum(["plate", "face"]),
10659
+ /**
10660
+ * The root's smaller input side, stamped on read by `rootSuppliesOf` from
10661
+ * the model entry — what a step's `minRootInputPx` gate judges. Never
10662
+ * stored by an import.
10663
+ */
10664
+ rootInputPx: number().int().positive().optional()
10665
+ }),
10666
+ object({
10667
+ kind: literal("mask"),
10668
+ stepId: _enum(MASK_SUPPLY_STEP_IDS)
10669
+ })
10670
+ ]);
10751
10671
  var ModelCatalogEntrySchema = object({
10752
10672
  id: string(),
10753
10673
  name: string(),
@@ -10813,6 +10733,35 @@ var ModelCatalogEntrySchema = object({
10813
10733
  */
10814
10734
  defaultConfidence: number().min(0).max(1).optional(),
10815
10735
  /**
10736
+ * Per-MODEL default of the per-class confidence floors (`minConfidence<Macro>`
10737
+ * on a detector step), keyed by macro class: `{ person: 0.45 }`. A class
10738
+ * absent here runs at the step slider's global default. The same row shape
10739
+ * the floor measurement produces (`model-floors.json`: modelId → floors), so
10740
+ * a measured table is copied in as-is. An operator override is bound to the
10741
+ * model it was made for and does not survive a model change (D738). A custom
10742
+ * / imported model may declare it; without it, the global defaults apply.
10743
+ */
10744
+ defaultClassFloors: record(string(), number().min(0).max(1)).optional(),
10745
+ /**
10746
+ * The inference precision this model's OpenVINO IR needs on an Intel GPU.
10747
+ * Absent ⇒ the device default (f16 on a GPU). Set to `'f32'` for an FP32 IR
10748
+ * that produces invalid output at f16 — measured 2026-10-07 for YOLO26
10749
+ * base IRs (`yolo26s`: 0 true / 146 false positives; `yolo26m*`: NaN
10750
+ * scores) on the Core Ultra iGPU and the N100. Threaded to the pool as
10751
+ * `PoolModelConfig.gpuInferencePrecision`; the pool sets
10752
+ * INFERENCE_PRECISION_HINT on a GPU only. Costs ~60% latency on the GPU.
10753
+ */
10754
+ gpuInferencePrecision: _enum(["f32", "f16"]).optional(),
10755
+ /**
10756
+ * ROOT detectors only: per supplied step (`animal-classifier`, …), the
10757
+ * minimum DETECTION score from which this root's own fine label (species,
10758
+ * vehicle type — D736 root supply) is taken (D741). Below it the detection
10759
+ * keeps its macro class without the fine label. `1` = never take it from
10760
+ * this root. Absent ⇒ no floor beyond the macro floor. The supplied step's
10761
+ * `minConfidence` slider, bound to the ROOT model, overrides it.
10762
+ */
10763
+ suppliedLabelFloors: record(string(), number().min(0).max(1)).optional(),
10764
+ /**
10816
10765
  * When true, the executor produces a landmark-aligned crop (similarity warp
10817
10766
  * onto the canonical template) before this step runs, instead of a plain
10818
10767
  * axis-aligned bbox crop. Required for face-recognition embedders (ArcFace):
@@ -12536,13 +12485,6 @@ var BrokerRtspClientSchema = object({
12536
12485
  lastRtpAt: number(),
12537
12486
  bytesSent: number()
12538
12487
  });
12539
- var BrokerDecodedClientSchema = object({
12540
- tag: string(),
12541
- subscribedAt: number(),
12542
- maxFps: number(),
12543
- framesDelivered: number(),
12544
- framesDropped: number()
12545
- });
12546
12488
  var BrokerAudioClientSchema = object({
12547
12489
  tag: string(),
12548
12490
  subscribedAt: number(),
@@ -12634,7 +12576,6 @@ var BrokerEncodedClientSchema = object({
12634
12576
  });
12635
12577
  var BrokerClientsSchema = object({
12636
12578
  rtsp: array(BrokerRtspClientSchema).readonly(),
12637
- decoded: array(BrokerDecodedClientSchema).readonly(),
12638
12579
  audio: array(BrokerAudioClientSchema).readonly(),
12639
12580
  encoded: array(BrokerEncodedClientSchema).readonly(),
12640
12581
  pipeClients: number(),
@@ -13003,11 +12944,7 @@ method(object({
13003
12944
  auth: "admin"
13004
12945
  }), method(object({ brokerId: string() }), BrokerClientsSchema), method(object({
13005
12946
  brokerId: string(),
13006
- channel: _enum([
13007
- "rtsp",
13008
- "decoded",
13009
- "audio"
13010
- ]),
12947
+ channel: _enum(["rtsp", "audio"]),
13011
12948
  handle: string()
13012
12949
  }), object({ killed: boolean() }), {
13013
12950
  kind: "mutation",
@@ -13042,10 +12979,7 @@ method(object({
13042
12979
  }), method(SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, { kind: "mutation" }), method(object({
13043
12980
  subscriptionId: string(),
13044
12981
  maxCount: number().int().positive().default(8)
13045
- }), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(SubscribeFramesInputSchema, SubscribeFramesResultSchema, { kind: "mutation" }), method(object({
13046
- subscriptionId: string(),
13047
- maxCount: number().int().positive().default(4)
13048
- }), array(FrameHandleSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(object({
12982
+ }), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(object({
13049
12983
  brokerId: string(),
13050
12984
  seconds: number().min(0).max(30)
13051
12985
  }), _void(), {
@@ -14202,54 +14136,12 @@ id: union([string(), number()]) }), {
14202
14136
  kind: "mutation",
14203
14137
  auth: "admin"
14204
14138
  });
14205
- /**
14206
- * shm ring usage stats for a `frameSink: 'shm'` decoder session —
14207
- * exposed via `decoder.getShmStats` so downstream consumers can
14208
- * observe ring pressure (slot count, byte budget, hit/miss ratio).
14209
- */
14210
- var ShmRingStatsSchema = object({
14211
- sessionId: string(),
14212
- slotCount: number().int(),
14213
- slotByteLength: number().int(),
14214
- segmentBytes: number().int(),
14215
- budgetMb: number().int(),
14216
- framesWritten: number().int(),
14217
- getFrameHits: number().int(),
14218
- getFrameMisses: number().int()
14219
- });
14220
- method(object({ codec: string() }), boolean()), method(_void(), object({
14139
+ method(_void(), object({
14221
14140
  id: string(),
14222
14141
  name: string(),
14223
- isPullMode: boolean().optional(),
14224
- priority: number().optional(),
14225
14142
  hwaccel: string().optional(),
14226
14143
  probedBestHwaccel: string().optional()
14227
- })), method(DecoderSessionConfigSchema, object({
14228
- sessionId: string(),
14229
- nodeId: string()
14230
- })), method(object({ sessionId: string() }), _void()), method(object({
14231
- sessionId: string(),
14232
- packet: EncodedPacketSchema
14233
- }), _void()), method(object({
14234
- sessionId: string(),
14235
- url: string()
14236
- }), _void()), method(object({
14237
- sessionId: string(),
14238
- maxCount: number().default(1),
14239
- waitMs: number().optional()
14240
- }), array(DecodedFrameSchema)), method(object({
14241
- sessionId: string(),
14242
- maxCount: number().default(1),
14243
- waitMs: number().optional()
14244
- }), array(FrameHandleSchema)), method(object({ handle: FrameHandleSchema }), DecodedFrameSchema.nullable()), method(object({ sessionId: string() }), ShmRingStatsSchema.nullable()), method(object({
14245
- sessionId: string(),
14246
- config: DecoderSessionConfigSchema.partial()
14247
- }), _void()), method(object({ sessionId: string() }), DecoderStatsSchema), method(_void(), array(object({
14248
- sessionId: string(),
14249
- codec: string(),
14250
- outputFormat: string(),
14251
- createdAtMs: number()
14252
- })).readonly()), method(_void(), object({ backend: string() }), {
14144
+ })), method(_void(), object({ backend: string() }), {
14253
14145
  kind: "mutation",
14254
14146
  auth: "admin"
14255
14147
  });
@@ -15061,6 +14953,10 @@ var DeviceInfoSchema = object({
15061
14953
  isCamera: boolean(),
15062
14954
  /** Current config values — serializable snapshot */
15063
14955
  config: record(string(), unknown()),
14956
+ /** Paths inside `config` the device's schema declares secret (D783) —
14957
+ * what the non-admin redaction withholds. Paths, never values. Absent
14958
+ * when the owning runner has not reported them. */
14959
+ secretConfigPaths: array(string()).optional(),
15064
14960
  /** Hardware + identity blob (manufacturer / model / firmware / sn /
15065
14961
  * uid / mac / …). Populated by drivers; editable via setMetadata. */
15066
14962
  metadata: record(string(), unknown()).nullable().optional(),
@@ -15266,7 +15162,13 @@ var DeviceRegisterPayloadSchema = object({
15266
15162
  * call (workers re-register on init), so probe-driven updates
15267
15163
  * (e.g. PTZ flag flipping after the abilities probe) propagate. */
15268
15164
  features: array(string()).optional(),
15269
- config: record(string(), unknown())
15165
+ config: record(string(), unknown()),
15166
+ /** Config paths the device's own schema DECLARES secret
15167
+ * (`.meta({ secret: true })` — dotted, `[]` for array items, e.g.
15168
+ * `connection.password`). Re-published on every register; the non-admin
15169
+ * redaction withholds them at any depth (D783). Optional: an older runner
15170
+ * omits it and the keyword backstop applies. */
15171
+ secretConfigPaths: array(string()).optional()
15270
15172
  });
15271
15173
  var DeviceRemovePayloadSchema = object({ deviceId: number() });
15272
15174
  var DevicePersistConfigPayloadSchema = object({
@@ -16093,6 +15995,12 @@ method(_void(), array(string()).readonly(), { auth: "admin" }), method(object({
16093
15995
  kind: "mutation",
16094
15996
  auth: "admin"
16095
15997
  });
15998
+ var HUB_ADDRESS_ROLES = [
15999
+ "appConnections",
16000
+ "notificationTaps",
16001
+ "internal",
16002
+ "publicEndpoint"
16003
+ ];
16096
16004
  /**
16097
16005
  * Transport bounds for AI capability methods.
16098
16006
  *
@@ -16919,7 +16827,14 @@ var LoginMethodContributionSchema = discriminatedUnion("kind", [
16919
16827
  icon: string().optional(),
16920
16828
  /** Addon-owned HTTP route the button navigates to (GET). */
16921
16829
  startUrl: string(),
16922
- stage: LoginStageEnum
16830
+ stage: LoginStageEnum,
16831
+ /**
16832
+ * The provider names an external identity a signed-in user can link to
16833
+ * their own account (D782): `auth.listLinkableProviders` /
16834
+ * `beginExternalLink` offer exactly the redirect methods that set this,
16835
+ * whatever their id. Absent / false — a login button only (magic-link).
16836
+ */
16837
+ linkable: boolean().optional()
16923
16838
  }),
16924
16839
  object({
16925
16840
  kind: literal("widget"),
@@ -20272,7 +20187,13 @@ var NcAlarmModeDelaysListSchema = array(object({
20272
20187
  * Absent = false (logged, not sent). Even when true it is not sent when that same sensor
20273
20188
  * is the one that starts the entry delay — the entry-delay notification already names it.
20274
20189
  */
20275
- notifySensorRewatched: boolean().optional()
20190
+ notifySensorRewatched: boolean().optional(),
20191
+ /**
20192
+ * D735: notify "ignored" when a sensor this arm bypassed really MOVED while armed (its own
20193
+ * change time is after the arm) and set nothing off. Absent = false (logged, not sent). A
20194
+ * re-sync, a recovery from `unavailable` or a duplicate is never announced, switch or not.
20195
+ */
20196
+ notifySensorIgnored: boolean().optional()
20276
20197
  })).max(8).refine(uniqueModes, { message: "modeDelays: at most one entry per arm mode" });
20277
20198
  var NcAlarmModeDelaysEditListSchema = array(object({
20278
20199
  mode: AlarmArmModeSchema,
@@ -20285,7 +20206,9 @@ var NcAlarmModeDelaysEditListSchema = array(object({
20285
20206
  /** D706: set the switch, or `null` to clear it (back to the default, false). */
20286
20207
  notifyDuringEntryDelay: boolean().nullable().optional(),
20287
20208
  /** D706: set the switch, or `null` to clear it (back to the default, false). */
20288
- notifySensorRewatched: boolean().nullable().optional()
20209
+ notifySensorRewatched: boolean().nullable().optional(),
20210
+ /** D735: set the switch, or `null` to clear it (back to the default, false). */
20211
+ notifySensorIgnored: boolean().nullable().optional()
20289
20212
  })).max(8).refine(uniqueModes, { message: "modeDelays: at most one edit per arm mode" });
20290
20213
  /** One switch of the alarm table: put ONE device on, or take it off, ONE mode's list. */
20291
20214
  var NcAlarmNonBlockingEditSchema = object({
@@ -21263,8 +21186,8 @@ Object.freeze(Object.fromEntries([{
21263
21186
  var CLUSTER_STEP_SETTING_FIELDS = [{
21264
21187
  stepId: "face-embedding",
21265
21188
  key: "minLandmarkFaceSize",
21266
- label: "Min face size for recognition (detection px)",
21267
- 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.",
21189
+ label: "Min face size to embed (detection-frame px)",
21190
+ 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.",
21268
21191
  type: "slider",
21269
21192
  min: 0,
21270
21193
  max: 64,
@@ -22316,7 +22239,13 @@ var RetrainFrameSchema = object({
22316
22239
  sizeBytes: number().int(),
22317
22240
  width: number().int(),
22318
22241
  height: number().int(),
22319
- copiedAt: number()
22242
+ copiedAt: number(),
22243
+ /** When the CAMERA captured the frame. Absent on a copy taken before D785. */
22244
+ capturedAt: number().optional(),
22245
+ /** The operator's "every subject in this frame is boxed". Detector
22246
+ * evaluation keeps only complete frames: an unboxed subject would count as
22247
+ * a false positive. */
22248
+ complete: boolean()
22320
22249
  });
22321
22250
  /** Why a copy-on-select could not be honoured — named, never a silent skip. */
22322
22251
  var RetrainCopyRefusalSchema = _enum([
@@ -22337,6 +22266,51 @@ var RetrainFrameListSchema = object({
22337
22266
  /** What the page pre-selects — the native key frame when one survives. */
22338
22267
  autoPickMediaId: number().int().optional()
22339
22268
  });
22269
+ /**
22270
+ * Which frames an annotated export carries. Every field narrows; an empty
22271
+ * filter is every annotated copy. A dataset VERSION is a frozen `frameIds`
22272
+ * list owned by whoever trains (the training orchestrator), so `frameIds` is
22273
+ * the primitive a version export uses; `batchId` re-selects what an earlier
22274
+ * export carried (`exportedInBatch`).
22275
+ */
22276
+ var RetrainExportFilterSchema = object({
22277
+ deviceIds: array(number()).optional(),
22278
+ frameIds: array(string()).max(2e4).optional(),
22279
+ batchId: string().optional(),
22280
+ /** Only frames the operator marked complete (all subjects boxed). */
22281
+ completeOnly: boolean().optional()
22282
+ });
22283
+ /**
22284
+ * `frames`: the full frame copies, boxes in `annotations.json`.
22285
+ * `crops`: additionally one JPEG per subject, cut with the runtime detail-crop
22286
+ * convention — the classifier layout.
22287
+ */
22288
+ var RetrainExportLayoutSchema = _enum(["frames", "crops"]);
22289
+ /**
22290
+ * Where `writeRetrainArchive` streams the tar: one HTTP request whose body is
22291
+ * the archive, sent chunk by chunk. Covers a presigned PUT and a provider
22292
+ * addon's data-plane upload route alike. Headers are sent verbatim and never
22293
+ * logged.
22294
+ */
22295
+ var RetrainArchiveTargetSchema = object({
22296
+ kind: literal("http"),
22297
+ method: _enum(["PUT", "POST"]),
22298
+ url: string().url(),
22299
+ headers: record(string(), string()).optional()
22300
+ });
22301
+ var RetrainArchiveResultSchema = object({
22302
+ batchId: string(),
22303
+ frames: number().int(),
22304
+ crops: number().int(),
22305
+ annotations: number().int(),
22306
+ /** Frames planned but not shipped (unreadable copy, path too long). */
22307
+ missing: number().int(),
22308
+ bytes: number().int(),
22309
+ /** sha256 of the exact bytes sent. */
22310
+ sha256: string(),
22311
+ /** The target's HTTP status. */
22312
+ status: number().int()
22313
+ });
22340
22314
  /** What the operator asked the assist to look for. */
22341
22315
  var RetrainAssistSubjectSchema = discriminatedUnion("kind", [object({
22342
22316
  kind: literal("package"),
@@ -23131,9 +23105,25 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
23131
23105
  }), RetrainTransitionResultSchema, {
23132
23106
  kind: "mutation",
23133
23107
  auth: "admin"
23134
- }), method(object({ deviceIds: array(number()).optional() }), object({ url: string() }), {
23108
+ }), method(RetrainExportFilterSchema.extend({ layout: RetrainExportLayoutSchema.optional() }), object({ url: string() }), {
23135
23109
  kind: "query",
23136
23110
  auth: "admin"
23111
+ }), method(object({
23112
+ deviceId: number(),
23113
+ trackId: string(),
23114
+ frameId: string(),
23115
+ complete: boolean()
23116
+ }), RetrainFrameSchema, {
23117
+ kind: "mutation",
23118
+ auth: "admin"
23119
+ }), method(object({
23120
+ filter: RetrainExportFilterSchema,
23121
+ layout: RetrainExportLayoutSchema,
23122
+ target: RetrainArchiveTargetSchema
23123
+ }), RetrainArchiveResultSchema, {
23124
+ kind: "mutation",
23125
+ auth: "admin",
23126
+ timeoutMs: 60 * 6e4
23137
23127
  }), method(object({
23138
23128
  /** Which of the three event tables owns the row. */
23139
23129
  ownerType: EventOwnerTypeSchema,
@@ -23259,7 +23249,7 @@ var FrameRefSchema = object({
23259
23249
  timestamp: number(),
23260
23250
  capturedAt: number().optional()
23261
23251
  });
23262
- var ModelFormatSchema$1 = _enum([
23252
+ var ModelFormatSchema$2 = _enum([
23263
23253
  "onnx",
23264
23254
  "coreml",
23265
23255
  "openvino",
@@ -23277,7 +23267,7 @@ var PipelineSlotSchema = _enum([
23277
23267
  var PipelineEngineChoiceSchema = object({
23278
23268
  runtime: literal("python"),
23279
23269
  backend: string(),
23280
- format: ModelFormatSchema$1,
23270
+ format: ModelFormatSchema$2,
23281
23271
  device: string().optional()
23282
23272
  });
23283
23273
  /**
@@ -23316,28 +23306,10 @@ var PipelineDefaultStepSchema = lazy(() => object({
23316
23306
  group: string().optional(),
23317
23307
  settings: record(string(), unknown()).optional()
23318
23308
  }));
23319
- var PipelineTemplateStepSchema = lazy(() => object({
23320
- addonId: string(),
23321
- enabled: boolean(),
23322
- modelId: string(),
23323
- children: array(PipelineTemplateStepSchema).readonly(),
23324
- settings: record(string(), unknown()).optional()
23325
- }));
23326
- var PipelineTemplateSchema$1 = object({
23327
- id: string(),
23328
- name: string(),
23329
- createdAt: string(),
23330
- updatedAt: string(),
23331
- engine: PipelineEngineChoiceSchema,
23332
- steps: array(PipelineTemplateStepSchema).readonly()
23333
- });
23334
23309
  var PipelineModelOptionSchema = object({
23335
23310
  id: string(),
23336
23311
  name: string(),
23337
- formats: record(string(), object({
23338
- downloaded: boolean(),
23339
- sizeMB: number()
23340
- })),
23312
+ formats: record(string(), PipelineModelFormatStatusSchema),
23341
23313
  group: ModelVariantGroupSchema.optional(),
23342
23314
  legacy: boolean().optional(),
23343
23315
  provider: ModelProviderIdSchema.optional(),
@@ -23504,6 +23476,22 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
23504
23476
  }), {
23505
23477
  kind: "mutation",
23506
23478
  auth: "admin"
23479
+ }), method(object({
23480
+ nodeId: string(),
23481
+ deviceIds: array(number()).readonly().optional(),
23482
+ dryRun: boolean()
23483
+ }), object({
23484
+ entries: array(object({
23485
+ deviceId: number(),
23486
+ keys: array(string()).readonly()
23487
+ })).readonly(),
23488
+ refused: array(object({
23489
+ deviceId: number(),
23490
+ reason: string()
23491
+ })).readonly()
23492
+ }), {
23493
+ kind: "mutation",
23494
+ auth: "admin"
23507
23495
  }), method(object({ nodeId: string() }), object({ unhealthy: array(object({
23508
23496
  /** `<backend>:<device>`, e.g. `openvino:gpu`. */
23509
23497
  deviceKey: string(),
@@ -23529,22 +23517,14 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
23529
23517
  }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(object({
23530
23518
  steps: array(PipelineStepInputSchema),
23531
23519
  deviceKey: string().optional()
23532
- }), PipelineValidationResultSchema), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
23533
- name: string(),
23534
- steps: array(PipelineTemplateStepSchema).readonly(),
23535
- engine: PipelineEngineChoiceSchema
23536
- }), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({
23537
- id: string(),
23538
- name: string().optional(),
23539
- steps: array(PipelineTemplateStepSchema).readonly().optional()
23540
- }), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({ id: string() }), _void(), { kind: "mutation" }), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string() }), ModelAvailabilityListBridge), method(object({
23520
+ }), PipelineValidationResultSchema), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string() }), ModelAvailabilityListBridge), method(object({
23541
23521
  addonId: string(),
23542
23522
  modelId: string(),
23543
- format: ModelFormatSchema$1
23523
+ format: ModelFormatSchema$2
23544
23524
  }), DownloadModelResultSchema, { kind: "mutation" }), method(object({
23545
23525
  addonId: string(),
23546
23526
  modelId: string(),
23547
- format: ModelFormatSchema$1
23527
+ format: ModelFormatSchema$2
23548
23528
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
23549
23529
  steps: array(PipelineStepInputSchema).min(1),
23550
23530
  frame: FrameInputSchema.optional(),
@@ -23701,6 +23681,375 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
23701
23681
  filename: string().optional(),
23702
23682
  settings: record(string(), unknown()).optional()
23703
23683
  }), AudioTestResultSchema, { kind: "mutation" }), method(_void(), ConfigUISchemaNullableBridge);
23684
+ /**
23685
+ * The wire shapes of the Auto tune plan and apply (D745), used by the
23686
+ * `pipeline-orchestrator` cap. The recommender's own types
23687
+ * (`recommend.ts`) are the TS face of the same data; these
23688
+ * schemas are what crosses the cap boundary.
23689
+ */
23690
+ var ModelFormatSchema$1 = _enum(MODEL_FORMATS);
23691
+ /** The operator's range for it. */
23692
+ var MIN_SESSIONS_PER_DEVICE_RANGE = {
23693
+ min: 1,
23694
+ max: 8
23695
+ };
23696
+ var HardwareClassIdSchema = _enum([
23697
+ "intel-core-ultra",
23698
+ "intel-n-series",
23699
+ "apple-m-base",
23700
+ "apple-m-pro",
23701
+ "unknown"
23702
+ ]);
23703
+ var AcceleratorKindSchema = _enum([
23704
+ "intel-npu",
23705
+ "intel-igpu",
23706
+ "x86-cpu",
23707
+ "arm-cpu",
23708
+ "apple-ane",
23709
+ "coral"
23710
+ ]);
23711
+ var RecommendationReasonSchema = discriminatedUnion("kind", [
23712
+ object({
23713
+ kind: literal("capacity"),
23714
+ sessions: number(),
23715
+ minSessions: number()
23716
+ }),
23717
+ object({
23718
+ kind: literal("tie-faster"),
23719
+ over: string(),
23720
+ recallDelta: number()
23721
+ }),
23722
+ object({
23723
+ kind: literal("stepped-down"),
23724
+ from: string(),
23725
+ to: string(),
23726
+ limitedBy: string()
23727
+ }),
23728
+ object({
23729
+ kind: literal("no-fit-lightest"),
23730
+ sessions: number(),
23731
+ minSessions: number()
23732
+ }),
23733
+ object({
23734
+ kind: literal("derived-latency"),
23735
+ modelId: string()
23736
+ }),
23737
+ object({ kind: literal("cpu-device") }),
23738
+ object({ kind: literal("coral-untouched") }),
23739
+ object({ kind: literal("device-disabled") }),
23740
+ object({ kind: literal("device-unavailable") }),
23741
+ object({ kind: literal("node-offline") }),
23742
+ object({ kind: literal("no-hardware-facts") }),
23743
+ object({
23744
+ kind: literal("no-measured-data"),
23745
+ hardwareClass: HardwareClassIdSchema
23746
+ }),
23747
+ object({
23748
+ kind: literal("no-family-build"),
23749
+ format: ModelFormatSchema$1
23750
+ })
23751
+ ]);
23752
+ var DeviceModelChoiceSchema = object({
23753
+ modelId: string(),
23754
+ p50Ms: number(),
23755
+ fps: number(),
23756
+ measured: boolean(),
23757
+ /** Parallel sessions at the camera rate with the headroom kept free: ⌊fps × (1 − headroom) / camera fps⌋. */
23758
+ capacitySessions: number(),
23759
+ personRecall: number()
23760
+ });
23761
+ var DeviceRecommendationSchema = object({
23762
+ deviceKey: string(),
23763
+ accelerator: AcceleratorKindSchema.nullable(),
23764
+ enabled: boolean(),
23765
+ available: boolean(),
23766
+ chosen: DeviceModelChoiceSchema.nullable(),
23767
+ reasons: array(RecommendationReasonSchema).readonly()
23768
+ });
23769
+ var NodeRecommendationSchema = object({
23770
+ nodeId: string(),
23771
+ reachable: boolean(),
23772
+ hardwareClass: HardwareClassIdSchema.nullable(),
23773
+ cpuModel: string().nullable(),
23774
+ skipped: boolean(),
23775
+ acceleratorModelId: string().nullable(),
23776
+ devices: array(DeviceRecommendationSchema).readonly(),
23777
+ reasons: array(RecommendationReasonSchema).readonly()
23778
+ });
23779
+ var ModelPinChangeSchema = object({
23780
+ stepId: string(),
23781
+ before: string().nullable(),
23782
+ after: string().nullable()
23783
+ });
23784
+ var NodeDeviceChangeSchema = object({
23785
+ nodeId: string(),
23786
+ deviceKey: string(),
23787
+ madeExplicit: boolean(),
23788
+ modelPins: array(ModelPinChangeSchema).readonly(),
23789
+ thresholds: array(object({
23790
+ stepId: string(),
23791
+ keys: array(string()).readonly()
23792
+ })).readonly()
23793
+ });
23794
+ var CameraOverrideClearSchema = object({
23795
+ deviceId: number(),
23796
+ source: _enum(["step-override", "wholesale"]),
23797
+ nodeId: string(),
23798
+ deviceKey: string().nullable(),
23799
+ stepId: string(),
23800
+ modelIdBefore: string().nullable(),
23801
+ keys: array(string()).readonly()
23802
+ });
23803
+ var DetectorStoreClearSchema = object({
23804
+ deviceId: number(),
23805
+ keys: array(string()).readonly()
23806
+ });
23807
+ var AutoTuneWarningSchema = discriminatedUnion("kind", [
23808
+ object({
23809
+ kind: literal("detector-store-cluster-wide"),
23810
+ skippedNodes: array(string()).readonly()
23811
+ }),
23812
+ object({
23813
+ kind: literal("detector-store-unreadable"),
23814
+ error: string()
23815
+ }),
23816
+ object({
23817
+ kind: literal("coral-enabled"),
23818
+ nodeId: string(),
23819
+ deviceKey: string()
23820
+ })
23821
+ ]);
23822
+ var AutoTuneOptionsSchema = object({
23823
+ /** Share of each accelerator's throughput kept free (0.3–0.5). */
23824
+ headroom: number().min(.3).max(.5).default(.4),
23825
+ /**
23826
+ * The least number of parallel sessions every device must sustain at the
23827
+ * camera rate with the headroom kept free (D755). The most accurate model
23828
+ * that reaches it wins.
23829
+ */
23830
+ minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
23831
+ });
23832
+ var AutoTunePlanSchema = object({
23833
+ /** Hash of everything the apply will write — the apply refuses a different one. */
23834
+ planHash: string(),
23835
+ family: literal("yolov9"),
23836
+ headroom: number(),
23837
+ minSessionsPerDevice: number(),
23838
+ /** The detection rate a session is counted at (the fastest camera running the pipeline root). */
23839
+ cameraFps: number(),
23840
+ generatedAt: number(),
23841
+ nodes: array(NodeRecommendationSchema).readonly(),
23842
+ nodeChanges: array(NodeDeviceChangeSchema).readonly(),
23843
+ cameraClears: array(CameraOverrideClearSchema).readonly(),
23844
+ detectorStoreClears: array(DetectorStoreClearSchema).readonly(),
23845
+ warnings: array(AutoTuneWarningSchema).readonly()
23846
+ });
23847
+ var AutoTuneApplyInputSchema = object({
23848
+ planHash: string(),
23849
+ headroom: number().min(.3).max(.5).default(.4),
23850
+ minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
23851
+ });
23852
+ var AutoTunePhaseResultSchema = object({
23853
+ phase: _enum([
23854
+ "download",
23855
+ "camera-overrides",
23856
+ "detector-thresholds",
23857
+ "node-models",
23858
+ "redispatch"
23859
+ ]),
23860
+ ok: boolean(),
23861
+ detail: string()
23862
+ });
23863
+ var AutoTuneApplyResultSchema = discriminatedUnion("kind", [
23864
+ object({
23865
+ kind: literal("applied"),
23866
+ planHash: string(),
23867
+ phases: array(AutoTunePhaseResultSchema).readonly()
23868
+ }),
23869
+ object({
23870
+ kind: literal("aborted"),
23871
+ phases: array(AutoTunePhaseResultSchema).readonly()
23872
+ }),
23873
+ object({
23874
+ kind: literal("stale"),
23875
+ plan: AutoTunePlanSchema
23876
+ }),
23877
+ object({
23878
+ kind: literal("refused"),
23879
+ reason: _enum(["apply-in-progress"])
23880
+ })
23881
+ ]);
23882
+ /**
23883
+ * Wire shapes of the Load balancing surface (D748): the session placement
23884
+ * policy, the atomic share write, the observed placement statistics, the
23885
+ * hardware share suggestion and the stale device pins.
23886
+ */
23887
+ /**
23888
+ * How a new detection session picks its node and device.
23889
+ * - `least-loaded` — the historical rule: lowest `attached / weight`, a
23890
+ * constant node order at a tie (D37). An idle node always ties at 0, so a
23891
+ * weight only bites once a node already holds a session.
23892
+ * - `share` — the share of PARALLEL sessions is held to the weights, and a
23893
+ * full or drowning node yields to a free one (D748).
23894
+ */
23895
+ var SessionPlacementPolicySchema = _enum(["least-loaded", "share"]);
23896
+ var LoadBalancingSharesInputSchema = object({
23897
+ /** nodeId → share (> 0). A node left out keeps its weight. */
23898
+ nodes: record(string(), number().positive()).default({}),
23899
+ /** nodeId → deviceKey → share (> 0). A device left out keeps its weight. */
23900
+ devices: record(string(), record(string(), number().positive())).default({})
23901
+ });
23902
+ var PlacementStatsInputSchema = object({
23903
+ /** Window the observed shares are averaged over (default 1 h, max 24 h). */
23904
+ windowMs: number().int().min(6e4).max(1440 * 60 * 1e3).default(3600 * 1e3) });
23905
+ var PlacementDeviceStatsSchema = object({
23906
+ deviceKey: string(),
23907
+ /** Sessions running on this device now. */
23908
+ sessionsNow: number(),
23909
+ /** Sessions started on this device inside the window. */
23910
+ sessionsStarted: number(),
23911
+ /** Time-weighted share of the node's parallel sessions over the window (0–1); null = no session ran. */
23912
+ observedShare: number().nullable()
23913
+ });
23914
+ var PlacementNodeStatsSchema = object({
23915
+ nodeId: string(),
23916
+ sessionsNow: number(),
23917
+ sessionsStarted: number(),
23918
+ /** Time-weighted share of the cluster's parallel sessions over the window (0–1); null = none ran. */
23919
+ observedShare: number().nullable(),
23920
+ /** Most sessions this node ran at once inside the window. */
23921
+ peakSessions: number(),
23922
+ /** Sessions a share election handed elsewhere because this node was full or drowning. */
23923
+ yieldsAway: number(),
23924
+ devices: array(PlacementDeviceStatsSchema).readonly()
23925
+ });
23926
+ /** A camera's device pin that the session path cannot honour. */
23927
+ var StaleDevicePinSchema = object({
23928
+ deviceId: number(),
23929
+ deviceKey: string(),
23930
+ /** `disabled` — the key exists on some node but is not enabled anywhere; `absent` — no node has it. */
23931
+ reason: _enum(["disabled", "absent"])
23932
+ });
23933
+ var PlacementStatsSchema = object({
23934
+ policy: SessionPlacementPolicySchema,
23935
+ windowMs: number(),
23936
+ /** How much of the window was actually observed (the hub keeps it in memory). */
23937
+ observedForMs: number(),
23938
+ sessionsNow: number(),
23939
+ /** Most parallel sessions across the cluster inside the window. */
23940
+ clusterPeakSessions: number(),
23941
+ nodes: array(PlacementNodeStatsSchema).readonly(),
23942
+ stalePins: array(StaleDevicePinSchema).readonly()
23943
+ });
23944
+ /**
23945
+ * Where an automatic share's capacity comes from (D755).
23946
+ * - `hardware` — the static capacity of each device at its Auto tune model:
23947
+ * the measured latency table for the node's hardware class.
23948
+ * - `benchmark` — the node's own measured capacity (node benchmark results).
23949
+ * A node with no results falls back to `hardware`, and says so.
23950
+ */
23951
+ var CapacitySourceSchema = _enum(["hardware", "benchmark"]);
23952
+ /** Why a node under the `benchmark` source was sized from hardware instead. */
23953
+ var CapacityFallbackSchema = _enum(["no-benchmark-results", "partial-benchmark-results"]);
23954
+ var SuggestSharesInputSchema = object({
23955
+ headroom: number().min(.3).max(.5).default(.4),
23956
+ /** Default `hardware`. */
23957
+ source: CapacitySourceSchema.default("hardware")
23958
+ });
23959
+ var SuggestedDeviceShareSchema = object({
23960
+ deviceKey: string(),
23961
+ /** Share of the node (0–100, rounded). */
23962
+ share: number(),
23963
+ modelId: string().nullable(),
23964
+ /** Inferences per second at that model, from the measured table; null when sized by a benchmark. */
23965
+ fps: number().nullable(),
23966
+ /** False for a table cell derived from another chip; true for a measured cell or a benchmark. */
23967
+ measured: boolean(),
23968
+ /**
23969
+ * Advisory session cap: ⌊fps × (1 − headroom) / camera fps⌋ from the table,
23970
+ * or the benchmark's measured max sessions. Never enforced.
23971
+ */
23972
+ suggestedMaxSessions: number().nullable()
23973
+ });
23974
+ var SuggestedNodeShareSchema = object({
23975
+ nodeId: string(),
23976
+ /** Share of the cluster (0–100, rounded); null = node skipped (offline, unknown hardware). */
23977
+ share: number().nullable(),
23978
+ /** Parallel sessions the node sustains at the suggested models with the headroom kept free. */
23979
+ capacitySessions: number(),
23980
+ devices: array(SuggestedDeviceShareSchema).readonly(),
23981
+ skippedReason: string().nullable(),
23982
+ /** What this node's capacity was read from; null when the node is skipped. */
23983
+ capacitySource: CapacitySourceSchema.nullable(),
23984
+ /** Set when the `benchmark` source was asked for and this node used `hardware`. */
23985
+ capacityFallback: CapacityFallbackSchema.nullable()
23986
+ });
23987
+ var SuggestSharesResultSchema = object({
23988
+ headroom: number(),
23989
+ /** The source asked for; each node says what it actually used. */
23990
+ source: CapacitySourceSchema,
23991
+ /** Camera detection rate the capacity is counted in (the fastest camera's fps). */
23992
+ cameraFps: number(),
23993
+ /** The Auto tune capacity floor the models were picked at. */
23994
+ minSessionsPerDevice: number(),
23995
+ nodes: array(SuggestedNodeShareSchema).readonly()
23996
+ });
23997
+ /**
23998
+ * Where the node and device shares come from (D750, D755).
23999
+ * - `hardware` (default) — computed by the system from each node's static
24000
+ * capacity (its accelerators at their Auto tune models, from the measured
24001
+ * latency table), recomputed whenever a node or device joins, leaves, is
24002
+ * switched on or off, or changes model. No load input.
24003
+ * - `benchmark` — the same, from each node's measured capacity (node
24004
+ * benchmark results); a node without results falls back to `hardware`.
24005
+ * - `manual` — the operator's stored sliders.
24006
+ * Either way a node or device that cannot take sessions gives its share to
24007
+ * the others in proportion; the stored values are never rewritten for that.
24008
+ */
24009
+ var ShareSourceSchema = _enum([
24010
+ "hardware",
24011
+ "benchmark",
24012
+ "manual"
24013
+ ]);
24014
+ var SetShareSourceInputSchema = object({ source: ShareSourceSchema });
24015
+ object({
24016
+ nodes: record(string(), number()),
24017
+ devices: record(string(), record(string(), number()))
24018
+ });
24019
+ var EffectiveDeviceShareSchema = object({
24020
+ deviceKey: string(),
24021
+ /** Can take sessions now (enabled, available, can run the root). */
24022
+ eligible: boolean(),
24023
+ /** The share the source assigns, as a percentage of the node's devices. */
24024
+ configuredPct: number(),
24025
+ /** The share actually used, after an ineligible device's share went to the others. */
24026
+ effectivePct: number()
24027
+ });
24028
+ var EffectiveNodeShareSchema = object({
24029
+ nodeId: string(),
24030
+ eligible: boolean(),
24031
+ configuredPct: number(),
24032
+ effectivePct: number(),
24033
+ /** Automatic sources: what this node's share was computed from; null under `manual` or before the first answer. */
24034
+ capacitySource: CapacitySourceSchema.nullable(),
24035
+ /** Automatic `benchmark`: why this node used `hardware` instead. */
24036
+ capacityFallback: CapacityFallbackSchema.nullable(),
24037
+ devices: array(EffectiveDeviceShareSchema).readonly()
24038
+ });
24039
+ var EffectiveSharesSchema = object({
24040
+ source: ShareSourceSchema,
24041
+ policy: SessionPlacementPolicySchema,
24042
+ /** An automatic source with no computed answer yet: the stored sliders are used meanwhile. */
24043
+ autoPending: boolean(),
24044
+ /** When the automatic shares were last computed (ms epoch); null = never. */
24045
+ computedAt: number().nullable(),
24046
+ /** What made the system recompute them last. */
24047
+ trigger: string().nullable(),
24048
+ nodes: array(EffectiveNodeShareSchema).readonly(),
24049
+ /** The relative weights the election reads (before eligibility). */
24050
+ nodeWeights: record(string(), number()),
24051
+ deviceWeights: record(string(), record(string(), number()))
24052
+ });
23704
24053
  object({
23705
24054
  activeCameras: number(),
23706
24055
  throttledCameras: number(),
@@ -24578,14 +24927,15 @@ var RunnerLocalLoadSchema = object({
24578
24927
  * Per-inference-device live load (multi-device C4). One entry per deviceKey
24579
24928
  * this runner currently has attached cameras on, so the orchestrator's second
24580
24929
  * `balance()` pass (over a node's devices) weights on real per-pool session
24581
- * counts. Empty on single-device / pre-multi-device runners. `queueDepthTotal`
24582
- * per device is 0 until the pool backlog gets a public accessor (follow-up).
24930
+ * counts. Empty on single-device / pre-multi-device runners. There is no
24931
+ * per-device queue depth: the inference pool's backlog has no accessor, and
24932
+ * a field that always read 0 was removed rather than shown as a measurement
24933
+ * (D762).
24583
24934
  */
24584
24935
  devices: array(object({
24585
24936
  deviceKey: string(),
24586
24937
  backend: string(),
24587
- attachedCameras: number(),
24588
- queueDepthTotal: number()
24938
+ attachedCameras: number()
24589
24939
  })).default([]),
24590
24940
  /** Hardware capability flags reported by this node. */
24591
24941
  hardware: object({
@@ -24799,14 +25149,6 @@ var CameraPipelineConfigSchema = object({
24799
25149
  settings: record(string(), unknown()).readonly().optional()
24800
25150
  }).nullable().optional()
24801
25151
  });
24802
- var PipelineTemplateSchema = object({
24803
- id: string(),
24804
- name: string(),
24805
- description: string().optional(),
24806
- config: CameraPipelineConfigSchema,
24807
- createdAt: string(),
24808
- updatedAt: string()
24809
- });
24810
25152
  var DeviceStepConfigSchema = object({
24811
25153
  modelId: string().optional(),
24812
25154
  settings: record(string(), unknown()).optional(),
@@ -24880,9 +25222,10 @@ var CameraStepOverridePatchSchema = object({
24880
25222
  modelId: string().optional(),
24881
25223
  settings: record(string(), unknown()).readonly().optional()
24882
25224
  });
25225
+ var CameraStepSettingsSchema = record(string(), record(string(), unknown()).readonly());
24883
25226
  var CameraPipelineSettingsSchema = object({
24884
- pinnedAgentNodeId: string().optional(),
24885
25227
  stepToggles: record(string(), boolean()).optional(),
25228
+ stepSettings: CameraStepSettingsSchema.optional(),
24886
25229
  stepOverridesByDevice: record(string(), record(string(), record(string(), CameraStepOverridePatchSchema))).optional(),
24887
25230
  pipelineByAgent: record(string(), CameraPipelineForAgentSchema).optional()
24888
25231
  });
@@ -24915,7 +25258,10 @@ var PipelineAssignmentSchema = object({
24915
25258
  });
24916
25259
  /**
24917
25260
  * Per-agent load summary surfaced to the load balancer + dashboards.
24918
- * Aggregated from each runner's `getLocalLoad` cap call.
25261
+ * Aggregated from each runner's `getLocalLoad` cap call. In the
25262
+ * `getAgentLoad` report, a single-device node's default-pool sessions (no
25263
+ * `deviceKey`) are credited to its one eligible device in `load.devices` —
25264
+ * the default pool IS that device (D745); the balancer's census stays raw.
24919
25265
  */
24920
25266
  var AgentLoadSummarySchema = object({
24921
25267
  nodeId: string(),
@@ -25004,26 +25350,27 @@ var CameraBrokerStatusSchema = object({
25004
25350
  width: number(),
25005
25351
  height: number(),
25006
25352
  subscribers: number(),
25007
- inFps: number(),
25008
- outFps: number()
25353
+ /**
25354
+ * Encoded packets/s the broker receives from the camera. null when the
25355
+ * broker's stats read failed — unknown, never 0 (a 0 here reads as a stall).
25356
+ * There is no output rate: decoding runs in the session decode workers, not
25357
+ * in the broker, so the broker's own decoded-frame rate is 0 on every live
25358
+ * camera and is not served (D758).
25359
+ */
25360
+ inFps: number().nullable()
25009
25361
  })).readonly(),
25010
25362
  webrtcSessions: number(),
25011
25363
  rtspRestream: boolean()
25012
25364
  });
25013
- /** Shared-memory ring statistics within the decoder block. */
25014
- var CameraDecoderShmSchema = object({
25015
- framesWritten: number(),
25016
- getFrameHits: number(),
25017
- getFrameMisses: number(),
25018
- budgetMb: number()
25019
- });
25020
- /** Decoder block — null when the decoder stage is unreachable or inactive. */
25021
- var CameraDecoderStatusSchema = object({
25022
- nodeId: string(),
25023
- formats: array(string()).readonly(),
25024
- sessionCount: number(),
25025
- shm: CameraDecoderShmSchema
25026
- });
25365
+ /**
25366
+ * Decoder block — WHERE decode runs (co-located with the detection node by
25367
+ * construction); null when the camera has no detection node. It carries no
25368
+ * frame counter: the shared-memory plane whose counters it used to serve is
25369
+ * gone, and those fields read 0 forever. Whether frames actually flow is read
25370
+ * from `detection.actualFps` (frames delivered to and processed by the
25371
+ * detector), never from a counter nothing feeds.
25372
+ */
25373
+ var CameraDecoderStatusSchema = object({ nodeId: string() });
25027
25374
  /** Motion block — null when motion detection is not active for this device. */
25028
25375
  var CameraMotionStatusSchema = object({
25029
25376
  enabled: boolean(),
@@ -25380,12 +25727,6 @@ method(object({
25380
25727
  }), object({ success: literal(true) }), {
25381
25728
  kind: "mutation",
25382
25729
  auth: "admin"
25383
- }), method(object({
25384
- agentNodeId: string(),
25385
- detectWeight: number().positive().nullable()
25386
- }), object({ success: literal(true) }), {
25387
- kind: "mutation",
25388
- auth: "admin"
25389
25730
  }), method(object({
25390
25731
  agentNodeId: string(),
25391
25732
  detect: boolean().nullable().optional(),
@@ -25427,6 +25768,15 @@ method(object({
25427
25768
  }), {
25428
25769
  kind: "mutation",
25429
25770
  auth: "admin"
25771
+ }), method(AutoTuneOptionsSchema, AutoTunePlanSchema, { auth: "admin" }), method(AutoTuneApplyInputSchema, AutoTuneApplyResultSchema, {
25772
+ kind: "mutation",
25773
+ auth: "admin"
25774
+ }), method(LoadBalancingSharesInputSchema, object({ success: literal(true) }), {
25775
+ kind: "mutation",
25776
+ auth: "admin"
25777
+ }), method(PlacementStatsInputSchema, PlacementStatsSchema, { auth: "admin" }), method(SuggestSharesInputSchema, SuggestSharesResultSchema, { auth: "admin" }), method(_void(), EffectiveSharesSchema, { auth: "admin" }), method(SetShareSourceInputSchema, object({ success: literal(true) }), {
25778
+ kind: "mutation",
25779
+ auth: "admin"
25430
25780
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
25431
25781
  deviceId: number(),
25432
25782
  addonId: string(),
@@ -25443,6 +25793,13 @@ method(object({
25443
25793
  }), object({ success: literal(true) }), {
25444
25794
  kind: "mutation",
25445
25795
  auth: "admin"
25796
+ }), method(object({
25797
+ deviceId: number(),
25798
+ addonId: string(),
25799
+ settings: record(string(), unknown()).nullable()
25800
+ }), object({ success: literal(true) }), {
25801
+ kind: "mutation",
25802
+ auth: "admin"
25446
25803
  }), method(object({
25447
25804
  deviceId: number(),
25448
25805
  agentNodeId: string(),
@@ -25466,25 +25823,7 @@ method(object({
25466
25823
  }), method(_void(), DiskReconcileJobSchema, {
25467
25824
  kind: "mutation",
25468
25825
  auth: "admin"
25469
- }), method(_void(), DiskReconcileJobSchema, { auth: "admin" }), method(_void(), array(PipelineTemplateSchema).readonly()), method(object({
25470
- name: string(),
25471
- description: string().optional(),
25472
- config: CameraPipelineConfigSchema
25473
- }), PipelineTemplateSchema, {
25474
- kind: "mutation",
25475
- auth: "admin"
25476
- }), method(object({
25477
- id: string(),
25478
- name: string().optional(),
25479
- description: string().optional(),
25480
- config: CameraPipelineConfigSchema.optional()
25481
- }), PipelineTemplateSchema, {
25482
- kind: "mutation",
25483
- auth: "admin"
25484
- }), method(object({ id: string() }), object({ success: literal(true) }), {
25485
- kind: "mutation",
25486
- auth: "admin"
25487
- });
25826
+ }), method(_void(), DiskReconcileJobSchema, { auth: "admin" });
25488
25827
  /**
25489
25828
  * Cap → event-kind mapping for the SENSOR / CONTROL cap families — the table
25490
25829
  * `pipeline-analytics.listEventKinds` uses to turn a linked device's bound
@@ -26074,7 +26413,19 @@ var SsoBridgeClaimsSchema = object({
26074
26413
  * editing a descriptor must not retroactively extend or shorten a link the
26075
26414
  * operator already consented to.
26076
26415
  */
26077
- refreshTtl: union([number().int().positive(), literal("never")]).optional()
26416
+ refreshTtl: union([number().int().positive(), literal("never")]).optional(),
26417
+ /**
26418
+ * Opaque handle of a hub-side LINK intent (D782). Set by an OIDC callback
26419
+ * that was started from a signed-in user's "Link" button: the finish then
26420
+ * links this identity to the intent's user instead of signing anyone in.
26421
+ * The handle carries no user id — the hub resolves it, single-use.
26422
+ */
26423
+ linkIntent: string().optional(),
26424
+ /**
26425
+ * Verified `iss` of the id_token behind an OIDC login bridge (D782). A
26426
+ * subject is unique only per issuer, so a link is bound to it.
26427
+ */
26428
+ issuer: string().optional()
26078
26429
  });
26079
26430
  method(object({
26080
26431
  claims: SsoBridgeClaimsSchema,
@@ -27739,8 +28090,6 @@ var WebrtcStreamChoiceSchema = object({
27739
28090
  ]).nullable(),
27740
28091
  /** Input FPS from the camera (null for adaptive). */
27741
28092
  inputFps: number().nullable(),
27742
- /** Decoded FPS (null for adaptive). */
27743
- decodeFps: number().nullable(),
27744
28093
  /** Bitrate in kbps (null for adaptive). */
27745
28094
  bitrateKbps: number().nullable()
27746
28095
  });
@@ -28017,7 +28366,22 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
28017
28366
  * field their hints were silently stripped by the schema and the
28018
28367
  * adaptive ladder started blind on the client's display size.
28019
28368
  */
28020
- hints: webrtcClientHintsSchema.optional()
28369
+ hints: webrtcClientHintsSchema.optional(),
28370
+ /**
28371
+ * Talk-back (D771): relay the PEER's audio to the device's speaker
28372
+ * through the `intercom` cap's push-talk triple. When `true` and the
28373
+ * offer lets the peer send audio, the answer's audio is `sendrecv`
28374
+ * and every inbound frame goes to `intercom.pushTalkAudio` for this
28375
+ * `deviceId`; absent/false answers `sendonly`, as for every viewer.
28376
+ *
28377
+ * TRUSTED-CALLER ONLY. Set by the Alexa export for an Echo on a camera
28378
+ * with `intercom`, when the linked user may control that camera. The
28379
+ * hub STRIPS it from every request-bound call (a browser), exactly as
28380
+ * it overwrites `relayOnly` — a viewer's talk permission is the
28381
+ * intercom cap's own surface (share tokens gate it there), and this
28382
+ * flag must not become a second door to the camera's speaker.
28383
+ */
28384
+ talkback: boolean().optional()
28021
28385
  }), object({
28022
28386
  sessionId: string(),
28023
28387
  sdpAnswer: string()
@@ -28319,6 +28683,59 @@ var AddonAutoUpdateSchema = ChannelWithInheritSchema;
28319
28683
  var RestartAddonResultSchema = unknown();
28320
28684
  var InstallPackageResultSchema = unknown();
28321
28685
  var ReloadPackagesResultSchema = unknown();
28686
+ /**
28687
+ * What an uninstall did on ONE node.
28688
+ * - `uninstalled` — removed: runner(s) stopped, caps gone, code deleted.
28689
+ * - `not-installed` — the node did not have it (nothing to do).
28690
+ * - `refused` — protected / bootstrap package; nothing touched.
28691
+ * - `failed` — attempted and did not complete; `error` says why.
28692
+ * - `pending-reconnect` — the node is OFFLINE: its record was pruned so the
28693
+ * back-fill never returns the package, and the stale-addon sweep removes the
28694
+ * copy when the node registers again (only once the hub no longer has it).
28695
+ */
28696
+ var UninstallNodeOutcomeSchema = _enum([
28697
+ "uninstalled",
28698
+ "not-installed",
28699
+ "refused",
28700
+ "failed",
28701
+ "pending-reconnect"
28702
+ ]);
28703
+ var UninstallNodeResultSchema = object({
28704
+ nodeId: string(),
28705
+ outcome: UninstallNodeOutcomeSchema,
28706
+ error: string().optional(),
28707
+ addonIds: array(string()).readonly(),
28708
+ runnersStopped: array(string()).readonly(),
28709
+ warnings: array(string()).readonly()
28710
+ });
28711
+ var UninstallPackageResultSchema = object({
28712
+ /** Every targeted node ended `uninstalled`, `not-installed` or `pending-reconnect`. */
28713
+ success: boolean(),
28714
+ packageName: string(),
28715
+ results: array(UninstallNodeResultSchema).readonly()
28716
+ });
28717
+ /**
28718
+ * `unreachable` lists online agents whose status read FAILED — absence from
28719
+ * `installations` is only "not installed" for a node that answered (D315).
28720
+ */
28721
+ var PackageInstallationsSchema = object({
28722
+ installations: array(object({
28723
+ packageName: string(),
28724
+ nodeId: string(),
28725
+ nodeName: string(),
28726
+ isHub: boolean(),
28727
+ isOnline: boolean(),
28728
+ version: string().nullable(),
28729
+ addonIds: array(string()).readonly(),
28730
+ source: _enum(["live", "recorded"]),
28731
+ /** The hub installs this package too. `false` on an agent row = an orphan. */
28732
+ onHub: boolean()
28733
+ })).readonly(),
28734
+ unreachable: array(object({
28735
+ nodeId: string(),
28736
+ error: string()
28737
+ })).readonly()
28738
+ });
28322
28739
  var BulkUpdateItemStatusSchema = _enum([
28323
28740
  "queued",
28324
28741
  "updating",
@@ -28401,10 +28818,14 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
28401
28818
  }), method(object({ packageName: string() }), InstallPackageResultSchema, {
28402
28819
  kind: "mutation",
28403
28820
  auth: "admin"
28404
- }), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({ packageName: string() }), unknown(), {
28821
+ }), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({
28822
+ packageName: string().min(1),
28823
+ nodeId: string().optional(),
28824
+ everywhere: boolean().optional()
28825
+ }), UninstallPackageResultSchema, {
28405
28826
  kind: "mutation",
28406
28827
  auth: "admin"
28407
- }), method(_void(), ReloadPackagesResultSchema, {
28828
+ }), method(object({ packageName: string().optional() }), PackageInstallationsSchema, { auth: "admin" }), method(_void(), ReloadPackagesResultSchema, {
28408
28829
  kind: "mutation",
28409
28830
  auth: "admin"
28410
28831
  }), method(object({ query: string().optional() }), array(SearchResultSchema)), method(object({ nodeId: string().optional() }), array(PackageUpdateSchema).readonly(), { auth: "admin" }), method(object({
@@ -30825,7 +31246,7 @@ var GetConnectionEndpointsResultSchema = object({
30825
31246
  localPort: AdvertisedLocalPortSchema
30826
31247
  });
30827
31248
  /**
30828
- * The address flagged for notification links. `baseUrl: null` = AUTO, which
31249
+ * The address flagged for notification taps (`notificationTaps`). `baseUrl: null` = AUTO, which
30829
31250
  * since D709 is the CamStack app link; `resolved` reports the effective value,
30830
31251
  * so the UI can show it either way.
30831
31252
  */
@@ -30860,8 +31281,8 @@ var ViewerEndpointsSchema = object({
30860
31281
  });
30861
31282
  /**
30862
31283
  * DEPRECATED compatibility shape of `getHubAddresses` (D729 amendment, kept
30863
- * one release for addons built against it): `cluster` is the `agents` role,
30864
- * `browser` the `signIn` role; `override` is the flagged address.
31284
+ * for addons built against it): `cluster` is the `internal` role, `browser`
31285
+ * the `publicEndpoint` role; `override` is the flagged address.
30865
31286
  */
30866
31287
  var HubAddressSnapshotSchema = object({
30867
31288
  override: string().nullable(),
@@ -30877,15 +31298,11 @@ var HubAddressesSchema = object({
30877
31298
  browser: HubAddressSnapshotSchema
30878
31299
  });
30879
31300
  /**
30880
- * What an address is used for (`hub-address.ts`). `viewer` is many-valued;
30881
- * `notifications`, `agents` and `signIn` are carried by at most one address.
31301
+ * What an address is used for (`hub-address.ts`, D734). `appConnections` is
31302
+ * many-valued; `notificationTaps`, `publicEndpoint` and `internal` are carried
31303
+ * by at most one address.
30882
31304
  */
30883
- var HubAddressRoleSchema = _enum([
30884
- "viewer",
30885
- "notifications",
30886
- "agents",
30887
- "signIn"
30888
- ]);
31305
+ var HubAddressRoleSchema = _enum(HUB_ADDRESS_ROLES);
30889
31306
  var RoleSourceSchema = _enum([
30890
31307
  "flagged",
30891
31308
  "auto",
@@ -30899,8 +31316,8 @@ var HubAddressRoleResolutionSchema = object({
30899
31316
  resolved: string().nullable(),
30900
31317
  source: RoleSourceSchema
30901
31318
  });
30902
- var HubViewerResolutionSchema = object({
30903
- /** The addresses flagged `viewer`, or empty = automatic. */
31319
+ var HubAppConnectionsResolutionSchema = object({
31320
+ /** The addresses flagged `appConnections`, or empty = automatic. */
30904
31321
  flagged: array(string()).readonly(),
30905
31322
  /** What the apps race right now. */
30906
31323
  resolved: array(string()).readonly(),
@@ -30920,10 +31337,10 @@ var HubAddressBookSchema = object({
30920
31337
  eligible: array(HubAddressRoleSchema).readonly()
30921
31338
  })).readonly(),
30922
31339
  roles: object({
30923
- viewer: HubViewerResolutionSchema,
30924
- notifications: HubAddressRoleResolutionSchema,
30925
- agents: HubAddressRoleResolutionSchema,
30926
- signIn: HubAddressRoleResolutionSchema
31340
+ appConnections: HubAppConnectionsResolutionSchema,
31341
+ notificationTaps: HubAddressRoleResolutionSchema,
31342
+ internal: HubAddressRoleResolutionSchema,
31343
+ publicEndpoint: HubAddressRoleResolutionSchema
30927
31344
  }),
30928
31345
  /** The `hub=` an app link carries (D709), or null. */
30929
31346
  appLinkHub: string().nullable()
@@ -30971,7 +31388,7 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
30971
31388
  * tunnel always emits `https://` regardless. */
30972
31389
  scheme: _enum(["http", "https"]).optional(),
30973
31390
  /** Append the CamStack app link entry (`kind: 'app-link'`, D709) —
30974
- * an address notification links can be flagged with, not a hub
31391
+ * an address notification taps can be flagged with, not a hub
30975
31392
  * route. Default `false`: racers and rankers never see it. */
30976
31393
  includeAppLink: boolean().optional()
30977
31394
  }), 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({
@@ -36008,6 +36425,32 @@ var TotpStatusSchema = object({
36008
36425
  /** Null when no row exists OR the row is still pending confirmation. */
36009
36426
  confirmedAt: number().nullable()
36010
36427
  });
36428
+ /**
36429
+ * user-management — singleton capability for user accounts, API keys,
36430
+ * and scoped tokens.
36431
+ *
36432
+ * v2 model: every method gated by `auth: 'admin'`. Admin-only delegation
36433
+ * — the subset check on `setUserScopes` / `createScopedToken` is moot
36434
+ * because non-admins never reach these. If/when we open non-admin
36435
+ * delegation, structural caller-scope subset check goes inside the
36436
+ * provider.
36437
+ */
36438
+ var ExternalIdentitySchema = object({
36439
+ /** Login-method id of the provider instance, e.g. `auth-oidc/authentik`. */
36440
+ provider: string(),
36441
+ /** The IdP's stable subject (`sub`) for this account. */
36442
+ subject: string(),
36443
+ /** The verified `iss` of the IdP the identity was linked under — `sub` is unique only per issuer. */
36444
+ issuer: string(),
36445
+ userId: string(),
36446
+ /** What the IdP called the account at link time (username / email) — display only. */
36447
+ label: string().optional(),
36448
+ linkedAt: number()
36449
+ });
36450
+ var ExternalIdentityKeySchema = object({
36451
+ provider: string().min(1),
36452
+ subject: string().min(1)
36453
+ });
36011
36454
  method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserInputSchema, UserSummarySchema, {
36012
36455
  kind: "mutation",
36013
36456
  auth: "admin",
@@ -36121,7 +36564,22 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
36121
36564
  userId: string(),
36122
36565
  username: string(),
36123
36566
  scopes: array(TokenScopeSchema)
36124
- }).nullable(), { access: "view" }), method(_void(), array(OauthSessionSummarySchema), { auth: "admin" }), method(object({ id: string() }), object({ success: boolean() }), {
36567
+ }).nullable(), { access: "view" }), method(object({ userId: string() }), array(ExternalIdentitySchema), { auth: "admin" }), method(ExternalIdentityKeySchema, object({
36568
+ userId: string(),
36569
+ issuer: string()
36570
+ }).nullable(), { auth: "admin" }), method(ExternalIdentityKeySchema.extend({
36571
+ userId: string(),
36572
+ issuer: string().min(1),
36573
+ label: string().optional()
36574
+ }), object({ success: literal(true) }), {
36575
+ kind: "mutation",
36576
+ auth: "admin",
36577
+ access: "create"
36578
+ }), method(ExternalIdentityKeySchema.extend({ userId: string() }), object({ success: boolean() }), {
36579
+ kind: "mutation",
36580
+ auth: "admin",
36581
+ access: "delete"
36582
+ }), method(_void(), array(OauthSessionSummarySchema), { auth: "admin" }), method(object({ id: string() }), object({ success: boolean() }), {
36125
36583
  kind: "mutation",
36126
36584
  auth: "admin",
36127
36585
  access: "delete"
@@ -36513,6 +36971,16 @@ DeviceType.Camera, method(object({
36513
36971
  package: array(ZoneRuleSchema).readonly()
36514
36972
  });
36515
36973
  SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
36974
+ Object.freeze({
36975
+ person: .5,
36976
+ vehicle: .5,
36977
+ animal: .5
36978
+ });
36979
+ Object.freeze({
36980
+ person: .65,
36981
+ vehicle: .65,
36982
+ animal: .65
36983
+ });
36516
36984
  /**
36517
36985
  * Accessory device helpers — shared across drivers.
36518
36986
  *
@@ -36687,6 +37155,12 @@ Object.freeze({
36687
37155
  addonId: null,
36688
37156
  access: "view"
36689
37157
  },
37158
+ "addons.listInstallations": {
37159
+ capName: "addons",
37160
+ capScope: "system",
37161
+ addonId: null,
37162
+ access: "view"
37163
+ },
36690
37164
  "addons.listJobs": {
36691
37165
  capName: "addons",
36692
37166
  capScope: "system",
@@ -37869,90 +38343,18 @@ Object.freeze({
37869
38343
  addonId: null,
37870
38344
  access: "create"
37871
38345
  },
37872
- "decoder.createSession": {
37873
- capName: "decoder",
37874
- capScope: "system",
37875
- addonId: null,
37876
- access: "view"
37877
- },
37878
- "decoder.destroySession": {
37879
- capName: "decoder",
37880
- capScope: "system",
37881
- addonId: null,
37882
- access: "delete"
37883
- },
37884
- "decoder.getFrame": {
37885
- capName: "decoder",
37886
- capScope: "system",
37887
- addonId: null,
37888
- access: "view"
37889
- },
37890
38346
  "decoder.getInfo": {
37891
38347
  capName: "decoder",
37892
38348
  capScope: "system",
37893
38349
  addonId: null,
37894
38350
  access: "view"
37895
38351
  },
37896
- "decoder.getShmStats": {
37897
- capName: "decoder",
37898
- capScope: "system",
37899
- addonId: null,
37900
- access: "view"
37901
- },
37902
- "decoder.getStats": {
37903
- capName: "decoder",
37904
- capScope: "system",
37905
- addonId: null,
37906
- access: "view"
37907
- },
37908
- "decoder.listActiveSessions": {
37909
- capName: "decoder",
37910
- capScope: "system",
37911
- addonId: null,
37912
- access: "view"
37913
- },
37914
- "decoder.openStream": {
37915
- capName: "decoder",
37916
- capScope: "system",
37917
- addonId: null,
37918
- access: "view"
37919
- },
37920
- "decoder.pullFrames": {
37921
- capName: "decoder",
37922
- capScope: "system",
37923
- addonId: null,
37924
- access: "view"
37925
- },
37926
- "decoder.pullHandles": {
37927
- capName: "decoder",
37928
- capScope: "system",
37929
- addonId: null,
37930
- access: "view"
37931
- },
37932
- "decoder.pushPacket": {
37933
- capName: "decoder",
37934
- capScope: "system",
37935
- addonId: null,
37936
- access: "view"
37937
- },
37938
38352
  "decoder.reprobeHwaccel": {
37939
38353
  capName: "decoder",
37940
38354
  capScope: "system",
37941
38355
  addonId: null,
37942
38356
  access: "create"
37943
38357
  },
37944
- "decoder.supportsCodec": {
37945
- capName: "decoder",
37946
- capScope: "system",
37947
- addonId: null,
37948
- access: "view"
37949
- },
37950
- "decoder.updateConfig": {
37951
- capName: "decoder",
37952
- capScope: "system",
37953
- addonId: null,
37954
- access: "view"
37955
- },
37956
38358
  "detectionPipeline.applyDeviceSettingsPatch": {
37957
38359
  capName: "detection-pipeline",
37958
38360
  capScope: "device",
@@ -40983,6 +41385,12 @@ Object.freeze({
40983
41385
  addonId: null,
40984
41386
  access: "create"
40985
41387
  },
41388
+ "pipelineAnalytics.setRetrainFrameComplete": {
41389
+ capName: "pipeline-analytics",
41390
+ capScope: "device",
41391
+ addonId: null,
41392
+ access: "create"
41393
+ },
40986
41394
  "pipelineAnalytics.setTrackFlags": {
40987
41395
  capName: "pipeline-analytics",
40988
41396
  capScope: "device",
@@ -41019,6 +41427,12 @@ Object.freeze({
41019
41427
  addonId: null,
41020
41428
  access: "delete"
41021
41429
  },
41430
+ "pipelineAnalytics.writeRetrainArchive": {
41431
+ capName: "pipeline-analytics",
41432
+ capScope: "device",
41433
+ addonId: null,
41434
+ access: "create"
41435
+ },
41022
41436
  "pipelineExecutor.cacheFrameInPool": {
41023
41437
  capName: "pipeline-executor",
41024
41438
  capScope: "system",
@@ -41031,13 +41445,13 @@ Object.freeze({
41031
41445
  addonId: null,
41032
41446
  access: "delete"
41033
41447
  },
41034
- "pipelineExecutor.deleteModel": {
41448
+ "pipelineExecutor.clearModelBoundDeviceOverrides": {
41035
41449
  capName: "pipeline-executor",
41036
41450
  capScope: "system",
41037
41451
  addonId: null,
41038
41452
  access: "delete"
41039
41453
  },
41040
- "pipelineExecutor.deleteTemplate": {
41454
+ "pipelineExecutor.deleteModel": {
41041
41455
  capName: "pipeline-executor",
41042
41456
  capScope: "system",
41043
41457
  addonId: null,
@@ -41181,12 +41595,6 @@ Object.freeze({
41181
41595
  addonId: null,
41182
41596
  access: "view"
41183
41597
  },
41184
- "pipelineExecutor.listTemplates": {
41185
- capName: "pipeline-executor",
41186
- capScope: "system",
41187
- addonId: null,
41188
- access: "view"
41189
- },
41190
41598
  "pipelineExecutor.rearmInferenceDevice": {
41191
41599
  capName: "pipeline-executor",
41192
41600
  capScope: "system",
@@ -41211,12 +41619,6 @@ Object.freeze({
41211
41619
  addonId: null,
41212
41620
  access: "create"
41213
41621
  },
41214
- "pipelineExecutor.saveTemplate": {
41215
- capName: "pipeline-executor",
41216
- capScope: "system",
41217
- addonId: null,
41218
- access: "create"
41219
- },
41220
41622
  "pipelineExecutor.setVideoPipelineSteps": {
41221
41623
  capName: "pipeline-executor",
41222
41624
  capScope: "system",
@@ -41235,41 +41637,35 @@ Object.freeze({
41235
41637
  addonId: null,
41236
41638
  access: "create"
41237
41639
  },
41238
- "pipelineExecutor.updateTemplate": {
41239
- capName: "pipeline-executor",
41240
- capScope: "system",
41241
- addonId: null,
41242
- access: "create"
41243
- },
41244
41640
  "pipelineExecutor.validatePipeline": {
41245
41641
  capName: "pipeline-executor",
41246
41642
  capScope: "system",
41247
41643
  addonId: null,
41248
41644
  access: "view"
41249
41645
  },
41250
- "pipelineOrchestrator.applyDeviceSettingsPatch": {
41646
+ "pipelineOrchestrator.applyAutoTune": {
41251
41647
  capName: "pipeline-orchestrator",
41252
41648
  capScope: "system",
41253
41649
  addonId: null,
41254
41650
  access: "create"
41255
41651
  },
41256
- "pipelineOrchestrator.assignAudio": {
41652
+ "pipelineOrchestrator.applyDeviceSettingsPatch": {
41257
41653
  capName: "pipeline-orchestrator",
41258
41654
  capScope: "system",
41259
41655
  addonId: null,
41260
41656
  access: "create"
41261
41657
  },
41262
- "pipelineOrchestrator.assignPipeline": {
41658
+ "pipelineOrchestrator.assignAudio": {
41263
41659
  capName: "pipeline-orchestrator",
41264
41660
  capScope: "system",
41265
41661
  addonId: null,
41266
41662
  access: "create"
41267
41663
  },
41268
- "pipelineOrchestrator.deleteTemplate": {
41664
+ "pipelineOrchestrator.assignPipeline": {
41269
41665
  capName: "pipeline-orchestrator",
41270
41666
  capScope: "system",
41271
41667
  addonId: null,
41272
- access: "delete"
41668
+ access: "create"
41273
41669
  },
41274
41670
  "pipelineOrchestrator.getAgentLoad": {
41275
41671
  capName: "pipeline-orchestrator",
@@ -41361,6 +41757,12 @@ Object.freeze({
41361
41757
  addonId: null,
41362
41758
  access: "view"
41363
41759
  },
41760
+ "pipelineOrchestrator.getEffectiveShares": {
41761
+ capName: "pipeline-orchestrator",
41762
+ capScope: "system",
41763
+ addonId: null,
41764
+ access: "view"
41765
+ },
41364
41766
  "pipelineOrchestrator.getGlobalMetrics": {
41365
41767
  capName: "pipeline-orchestrator",
41366
41768
  capScope: "system",
@@ -41397,19 +41799,19 @@ Object.freeze({
41397
41799
  addonId: null,
41398
41800
  access: "view"
41399
41801
  },
41400
- "pipelineOrchestrator.getReconcileFromDiskStatus": {
41802
+ "pipelineOrchestrator.getPlacementStats": {
41401
41803
  capName: "pipeline-orchestrator",
41402
41804
  capScope: "system",
41403
41805
  addonId: null,
41404
41806
  access: "view"
41405
41807
  },
41406
- "pipelineOrchestrator.listAgentSettings": {
41808
+ "pipelineOrchestrator.getReconcileFromDiskStatus": {
41407
41809
  capName: "pipeline-orchestrator",
41408
41810
  capScope: "system",
41409
41811
  addonId: null,
41410
41812
  access: "view"
41411
41813
  },
41412
- "pipelineOrchestrator.listTemplates": {
41814
+ "pipelineOrchestrator.listAgentSettings": {
41413
41815
  capName: "pipeline-orchestrator",
41414
41816
  capScope: "system",
41415
41817
  addonId: null,
@@ -41421,6 +41823,12 @@ Object.freeze({
41421
41823
  addonId: null,
41422
41824
  access: "create"
41423
41825
  },
41826
+ "pipelineOrchestrator.planAutoTune": {
41827
+ capName: "pipeline-orchestrator",
41828
+ capScope: "system",
41829
+ addonId: null,
41830
+ access: "view"
41831
+ },
41424
41832
  "pipelineOrchestrator.rebalance": {
41425
41833
  capName: "pipeline-orchestrator",
41426
41834
  capScope: "system",
@@ -41463,12 +41871,6 @@ Object.freeze({
41463
41871
  addonId: null,
41464
41872
  access: "create"
41465
41873
  },
41466
- "pipelineOrchestrator.saveTemplate": {
41467
- capName: "pipeline-orchestrator",
41468
- capScope: "system",
41469
- addonId: null,
41470
- access: "create"
41471
- },
41472
41874
  "pipelineOrchestrator.setAgentCapabilities": {
41473
41875
  capName: "pipeline-orchestrator",
41474
41876
  capScope: "system",
@@ -41481,12 +41883,6 @@ Object.freeze({
41481
41883
  addonId: null,
41482
41884
  access: "create"
41483
41885
  },
41484
- "pipelineOrchestrator.setAgentDetectWeight": {
41485
- capName: "pipeline-orchestrator",
41486
- capScope: "system",
41487
- addonId: null,
41488
- access: "create"
41489
- },
41490
41886
  "pipelineOrchestrator.setAgentInferenceDevices": {
41491
41887
  capName: "pipeline-orchestrator",
41492
41888
  capScope: "system",
@@ -41523,6 +41919,12 @@ Object.freeze({
41523
41919
  addonId: null,
41524
41920
  access: "create"
41525
41921
  },
41922
+ "pipelineOrchestrator.setCameraStepSettings": {
41923
+ capName: "pipeline-orchestrator",
41924
+ capScope: "system",
41925
+ addonId: null,
41926
+ access: "create"
41927
+ },
41526
41928
  "pipelineOrchestrator.setCameraStepToggle": {
41527
41929
  capName: "pipeline-orchestrator",
41528
41930
  capScope: "system",
@@ -41541,25 +41943,37 @@ Object.freeze({
41541
41943
  addonId: null,
41542
41944
  access: "create"
41543
41945
  },
41946
+ "pipelineOrchestrator.setLoadBalancingShares": {
41947
+ capName: "pipeline-orchestrator",
41948
+ capScope: "system",
41949
+ addonId: null,
41950
+ access: "create"
41951
+ },
41544
41952
  "pipelineOrchestrator.setPipelineDevicePin": {
41545
41953
  capName: "pipeline-orchestrator",
41546
41954
  capScope: "system",
41547
41955
  addonId: null,
41548
41956
  access: "create"
41549
41957
  },
41550
- "pipelineOrchestrator.unassignAudio": {
41958
+ "pipelineOrchestrator.setShareSource": {
41551
41959
  capName: "pipeline-orchestrator",
41552
41960
  capScope: "system",
41553
41961
  addonId: null,
41554
41962
  access: "create"
41555
41963
  },
41556
- "pipelineOrchestrator.unassignPipeline": {
41964
+ "pipelineOrchestrator.suggestShares": {
41965
+ capName: "pipeline-orchestrator",
41966
+ capScope: "system",
41967
+ addonId: null,
41968
+ access: "view"
41969
+ },
41970
+ "pipelineOrchestrator.unassignAudio": {
41557
41971
  capName: "pipeline-orchestrator",
41558
41972
  capScope: "system",
41559
41973
  addonId: null,
41560
41974
  access: "create"
41561
41975
  },
41562
- "pipelineOrchestrator.updateTemplate": {
41976
+ "pipelineOrchestrator.unassignPipeline": {
41563
41977
  capName: "pipeline-orchestrator",
41564
41978
  capScope: "system",
41565
41979
  addonId: null,
@@ -42999,12 +43413,6 @@ Object.freeze({
42999
43413
  addonId: null,
43000
43414
  access: "view"
43001
43415
  },
43002
- "streamBroker.pullFrameHandles": {
43003
- capName: "stream-broker",
43004
- capScope: "system",
43005
- addonId: null,
43006
- access: "view"
43007
- },
43008
43416
  "streamBroker.regenerateRtspToken": {
43009
43417
  capName: "stream-broker",
43010
43418
  capScope: "system",
@@ -43071,12 +43479,6 @@ Object.freeze({
43071
43479
  addonId: null,
43072
43480
  access: "create"
43073
43481
  },
43074
- "streamBroker.subscribeFrames": {
43075
- capName: "stream-broker",
43076
- capScope: "system",
43077
- addonId: null,
43078
- access: "create"
43079
- },
43080
43482
  "streamBroker.unassignProfile": {
43081
43483
  capName: "stream-broker",
43082
43484
  capScope: "system",
@@ -43089,12 +43491,6 @@ Object.freeze({
43089
43491
  addonId: null,
43090
43492
  access: "create"
43091
43493
  },
43092
- "streamBroker.unsubscribeFrames": {
43093
- capName: "stream-broker",
43094
- capScope: "system",
43095
- addonId: null,
43096
- access: "create"
43097
- },
43098
43494
  "streamCatalog.getCatalog": {
43099
43495
  capName: "stream-catalog",
43100
43496
  capScope: "device",
@@ -43389,18 +43785,36 @@ Object.freeze({
43389
43785
  addonId: null,
43390
43786
  access: "delete"
43391
43787
  },
43788
+ "userManagement.findUserByExternalIdentity": {
43789
+ capName: "user-management",
43790
+ capScope: "system",
43791
+ addonId: null,
43792
+ access: "view"
43793
+ },
43392
43794
  "userManagement.getTotpStatus": {
43393
43795
  capName: "user-management",
43394
43796
  capScope: "system",
43395
43797
  addonId: null,
43396
43798
  access: "view"
43397
43799
  },
43800
+ "userManagement.linkExternalIdentity": {
43801
+ capName: "user-management",
43802
+ capScope: "system",
43803
+ addonId: null,
43804
+ access: "create"
43805
+ },
43398
43806
  "userManagement.listApiKeys": {
43399
43807
  capName: "user-management",
43400
43808
  capScope: "system",
43401
43809
  addonId: null,
43402
43810
  access: "view"
43403
43811
  },
43812
+ "userManagement.listExternalIdentities": {
43813
+ capName: "user-management",
43814
+ capScope: "system",
43815
+ addonId: null,
43816
+ access: "view"
43817
+ },
43404
43818
  "userManagement.listOauthSessions": {
43405
43819
  capName: "user-management",
43406
43820
  capScope: "system",
@@ -43479,6 +43893,12 @@ Object.freeze({
43479
43893
  addonId: null,
43480
43894
  access: "create"
43481
43895
  },
43896
+ "userManagement.unlinkExternalIdentity": {
43897
+ capName: "user-management",
43898
+ capScope: "system",
43899
+ addonId: null,
43900
+ access: "delete"
43901
+ },
43482
43902
  "userManagement.updateUser": {
43483
43903
  capName: "user-management",
43484
43904
  capScope: "system",
@@ -45242,7 +45662,11 @@ var DISPLAY_ICON_VOCABULARY = [
45242
45662
  ];
45243
45663
  DISPLAY_ICON_VOCABULARY.map((e) => e.key);
45244
45664
  DISPLAY_ICON_VOCABULARY.filter((e) => e.aliasOf === void 0).map((e) => e.key);
45245
- new Map(DISPLAY_ICON_VOCABULARY.map((e) => [e.key, e]));
45665
+ var ENTRY_BY_KEY = new Map(DISPLAY_ICON_VOCABULARY.map((e) => [e.key, e]));
45666
+ /** Is this a key of the shared vocabulary? */
45667
+ function isDisplayIconKey(value) {
45668
+ return typeof value === "string" && ENTRY_BY_KEY.has(value);
45669
+ }
45246
45670
  Object.freeze({
45247
45671
  "accessories.getStatus": [{
45248
45672
  name: "deviceId",
@@ -45608,11 +46032,6 @@ Object.freeze({
45608
46032
  form: "single",
45609
46033
  optional: false
45610
46034
  }],
45611
- "decoder.createSession": [{
45612
- name: "deviceId",
45613
- form: "single",
45614
- optional: true
45615
- }],
45616
46035
  "detectionPipeline.applyDeviceSettingsPatch": [{
45617
46036
  name: "deviceId",
45618
46037
  form: "single",
@@ -46823,6 +47242,11 @@ Object.freeze({
46823
47242
  form: "single",
46824
47243
  optional: false
46825
47244
  }],
47245
+ "pipelineAnalytics.setRetrainFrameComplete": [{
47246
+ name: "deviceId",
47247
+ form: "single",
47248
+ optional: false
47249
+ }],
46826
47250
  "pipelineAnalytics.setTrackFlags": [{
46827
47251
  name: "deviceId",
46828
47252
  form: "single",
@@ -46843,6 +47267,11 @@ Object.freeze({
46843
47267
  form: "single",
46844
47268
  optional: false
46845
47269
  }],
47270
+ "pipelineExecutor.clearModelBoundDeviceOverrides": [{
47271
+ name: "deviceIds",
47272
+ form: "array",
47273
+ optional: true
47274
+ }],
46846
47275
  "pipelineExecutor.runPipeline": [{
46847
47276
  name: "deviceId",
46848
47277
  form: "single",
@@ -46948,6 +47377,11 @@ Object.freeze({
46948
47377
  form: "single",
46949
47378
  optional: false
46950
47379
  }],
47380
+ "pipelineOrchestrator.setCameraStepSettings": [{
47381
+ name: "deviceId",
47382
+ form: "single",
47383
+ optional: false
47384
+ }],
46951
47385
  "pipelineOrchestrator.setCameraStepToggle": [{
46952
47386
  name: "deviceId",
46953
47387
  form: "single",
@@ -48867,7 +49301,7 @@ var MB = 1024 * 1024;
48867
49301
  //#region src/hub-browser-origin.ts
48868
49302
  async function hubBrowserOrigin(localNetwork, logger) {
48869
49303
  try {
48870
- return (await localNetwork.getAddresses.query()).roles.signIn.resolved;
49304
+ return (await localNetwork.getAddresses.query()).roles.publicEndpoint.resolved;
48871
49305
  } catch (err) {
48872
49306
  logger.warn("hub address unavailable from local-network — using the localhost default", { meta: { error: err instanceof Error ? err.message : String(err) } });
48873
49307
  return null;
@@ -48928,6 +49362,12 @@ Object.defineProperty(exports, "hubBrowserOrigin", {
48928
49362
  return hubBrowserOrigin;
48929
49363
  }
48930
49364
  });
49365
+ Object.defineProperty(exports, "isDisplayIconKey", {
49366
+ enumerable: true,
49367
+ get: function() {
49368
+ return isDisplayIconKey;
49369
+ }
49370
+ });
48931
49371
  Object.defineProperty(exports, "loginMethodCapability", {
48932
49372
  enumerable: true,
48933
49373
  get: function() {