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