@camstack/addon-export-hap 1.1.19 → 1.1.21
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.
- package/dist/export-hap.addon.js +672 -257
- package/dist/export-hap.addon.mjs +672 -257
- package/package.json +4 -1
package/dist/export-hap.addon.js
CHANGED
|
@@ -4664,7 +4664,7 @@ function _instanceof(cls, params = {}) {
|
|
|
4664
4664
|
return inst;
|
|
4665
4665
|
}
|
|
4666
4666
|
//#endregion
|
|
4667
|
-
//#region ../types/dist/sleep-
|
|
4667
|
+
//#region ../types/dist/sleep-BC9Yqte7.mjs
|
|
4668
4668
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
4669
4669
|
EventCategory["SystemBoot"] = "system.boot";
|
|
4670
4670
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -4850,6 +4850,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
4850
4850
|
*/
|
|
4851
4851
|
EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
|
|
4852
4852
|
/**
|
|
4853
|
+
* The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
|
|
4854
|
+
* Emitted by addon-pipeline-orchestrator whenever it (re)derives node
|
|
4855
|
+
* capabilities — at boot, on agent online/offline, and on an ingest-node
|
|
4856
|
+
* flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
|
|
4857
|
+
* keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
|
|
4858
|
+
* cross-process `getIngestOwner` query (push the authority's decision instead
|
|
4859
|
+
* of polling it on the hot path). Idempotent state — re-emitted on every
|
|
4860
|
+
* topology change, so a dropped event self-heals on the next one (plus the
|
|
4861
|
+
* broker's long backstop reconcile query).
|
|
4862
|
+
*/
|
|
4863
|
+
EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
|
|
4864
|
+
/**
|
|
4853
4865
|
* Periodic snapshot of per-node pipeline-runner load
|
|
4854
4866
|
* (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
|
|
4855
4867
|
* subscribe instead of polling `pipelineRunner.getLocalLoad`.
|
|
@@ -5373,10 +5385,6 @@ function hydrateField(field, values) {
|
|
|
5373
5385
|
};
|
|
5374
5386
|
}
|
|
5375
5387
|
const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
|
|
5376
|
-
if (field.type === "password") return {
|
|
5377
|
-
...field,
|
|
5378
|
-
value: ""
|
|
5379
|
-
};
|
|
5380
5388
|
const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
|
|
5381
5389
|
return {
|
|
5382
5390
|
...field,
|
|
@@ -6760,6 +6768,21 @@ function method(input, output, options) {
|
|
|
6760
6768
|
timeoutMs: options?.timeoutMs
|
|
6761
6769
|
};
|
|
6762
6770
|
}
|
|
6771
|
+
/**
|
|
6772
|
+
* A wrapper/system-only method: served exclusively by the cap's system-level
|
|
6773
|
+
* provider (`InferProvider`), and OPTIONAL on `InferNativeProvider` so per-device
|
|
6774
|
+
* driver natives don't stub out a wrapper concern (e.g. a cross-device cache
|
|
6775
|
+
* overview). The `systemOnly: true` literal is what `InferNativeProvider` keys on.
|
|
6776
|
+
*/
|
|
6777
|
+
function systemMethod(input, output, options) {
|
|
6778
|
+
return {
|
|
6779
|
+
...method(input, output, options),
|
|
6780
|
+
systemOnly: true
|
|
6781
|
+
};
|
|
6782
|
+
}
|
|
6783
|
+
var StaticDirOutputSchema$1 = object({ staticDir: string() });
|
|
6784
|
+
var VersionOutputSchema$1 = object({ version: string() });
|
|
6785
|
+
method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
|
|
6763
6786
|
var StaticDirOutputSchema = object({ staticDir: string() });
|
|
6764
6787
|
var VersionOutputSchema = object({ version: string() });
|
|
6765
6788
|
method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
|
|
@@ -6929,6 +6952,36 @@ var ModelFormatsSchema = object({
|
|
|
6929
6952
|
tflite: ModelFormatEntrySchema.optional(),
|
|
6930
6953
|
pt: ModelFormatEntrySchema.optional()
|
|
6931
6954
|
});
|
|
6955
|
+
/**
|
|
6956
|
+
* Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
|
|
6957
|
+
* the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
|
|
6958
|
+
* grouped Family→Tier→Variant picker renders identically in the config UI and
|
|
6959
|
+
* in the pipeline/device steppers. The flat `id` stays the source of truth for
|
|
6960
|
+
* resolution/download/persistence; this is a presentation overlay resolved back
|
|
6961
|
+
* to an `id`.
|
|
6962
|
+
*/
|
|
6963
|
+
var ModelVariantGroupSchema = object({
|
|
6964
|
+
/** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
|
|
6965
|
+
family: string(),
|
|
6966
|
+
/** Size within the family, e.g. `n` | `s` | `m` | `l`. */
|
|
6967
|
+
tier: string(),
|
|
6968
|
+
/** Quantization axis. Omit ⇒ the fp32 base build. */
|
|
6969
|
+
precision: _enum(["fp32", "int8"]).optional(),
|
|
6970
|
+
/**
|
|
6971
|
+
* Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
|
|
6972
|
+
* latency-optimized export (e.g. ReLU-activation variant) — the slot the
|
|
6973
|
+
* future performance variants plug into.
|
|
6974
|
+
*/
|
|
6975
|
+
optimization: _enum(["standard", "fast"]).optional(),
|
|
6976
|
+
/**
|
|
6977
|
+
* Input-resolution axis (square input side, px). Omit ⇒ the family's native
|
|
6978
|
+
* resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
|
|
6979
|
+
* cheap latency lever — especially on Apple ANE and the Intel N100 — at a
|
|
6980
|
+
* small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
|
|
6981
|
+
* the group so the selector can offer it as a variant axis.
|
|
6982
|
+
*/
|
|
6983
|
+
resolution: number().int().positive().optional()
|
|
6984
|
+
});
|
|
6932
6985
|
var ModelCatalogEntrySchema = object({
|
|
6933
6986
|
id: string(),
|
|
6934
6987
|
name: string(),
|
|
@@ -6958,7 +7011,43 @@ var ModelCatalogEntrySchema = object({
|
|
|
6958
7011
|
* Auxiliary files required at runtime (labels JSON, charset dict, etc.).
|
|
6959
7012
|
* Downloaded into the same modelsDir alongside the model file.
|
|
6960
7013
|
*/
|
|
6961
|
-
extraFiles: array(ModelExtraFileSchema).readonly().optional()
|
|
7014
|
+
extraFiles: array(ModelExtraFileSchema).readonly().optional(),
|
|
7015
|
+
/**
|
|
7016
|
+
* LEGACY entry — retained in the catalog so a persisted operator selection
|
|
7017
|
+
* still RESOLVES (and can be re-activated), but hidden from the selectable
|
|
7018
|
+
* model list and excluded from the auto format-default pick. Set on the
|
|
7019
|
+
* superseded / consolidated models (older lineages, redundant fp16 IRs) so
|
|
7020
|
+
* the active lineup stays the coherent curated ladder without deleting a
|
|
7021
|
+
* model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
|
|
7022
|
+
* an explicit legacy id that has a build for the node's format.
|
|
7023
|
+
*/
|
|
7024
|
+
legacy: boolean().optional(),
|
|
7025
|
+
/**
|
|
7026
|
+
* Measured quality/latency metadata — populated from the benchmark addon on
|
|
7027
|
+
* the real node classes. Absent = not yet measured (most entries today; the
|
|
7028
|
+
* catalog historically carried only `sizeMB`, a poor cross-architecture
|
|
7029
|
+
* speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
|
|
7030
|
+
*/
|
|
7031
|
+
metrics: object({
|
|
7032
|
+
map50: number().optional(),
|
|
7033
|
+
p95LatencyMs: record(string(), number()).optional()
|
|
7034
|
+
}).optional(),
|
|
7035
|
+
/**
|
|
7036
|
+
* SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
|
|
7037
|
+
* YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
|
|
7038
|
+
* the retraining addon and any future commercial distribution.
|
|
7039
|
+
*/
|
|
7040
|
+
license: string().optional(),
|
|
7041
|
+
/**
|
|
7042
|
+
* Variant-selector grouping. The UI groups models by `family` + `tier` and
|
|
7043
|
+
* offers `precision` / `optimization` as variant axes WITHIN a tier — so all
|
|
7044
|
+
* of a family's sizes and quantizations collapse into one grouped picker
|
|
7045
|
+
* instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
|
|
7046
|
+
* (legacy / custom models) — never shown in the grouped selector. The flat
|
|
7047
|
+
* `id` stays the source of truth for resolution/download/persistence; grouping
|
|
7048
|
+
* is a presentation overlay resolved back to an `id`.
|
|
7049
|
+
*/
|
|
7050
|
+
group: ModelVariantGroupSchema.optional()
|
|
6962
7051
|
});
|
|
6963
7052
|
var ConvertTargetSchema = discriminatedUnion("format", [object({
|
|
6964
7053
|
format: literal("openvino"),
|
|
@@ -7019,8 +7108,8 @@ var RecordingModeSchema = _enum([
|
|
|
7019
7108
|
"onAudioThreshold"
|
|
7020
7109
|
]);
|
|
7021
7110
|
/**
|
|
7022
|
-
* First-class, authoritative per-camera storage mode — the
|
|
7023
|
-
* reads directly (never inferred from `rules`):
|
|
7111
|
+
* First-class, authoritative per-camera storage mode — the explicit choice the
|
|
7112
|
+
* UI reads directly (never inferred from `rules`):
|
|
7024
7113
|
* - `off` — not recording.
|
|
7025
7114
|
* - `events` — record only around triggers (motion / audio threshold),
|
|
7026
7115
|
* with pre/post-buffer.
|
|
@@ -8722,26 +8811,13 @@ DeviceType.Light, method(object({
|
|
|
8722
8811
|
percentage: number().min(0).max(100),
|
|
8723
8812
|
lastChangedAt: number()
|
|
8724
8813
|
});
|
|
8814
|
+
/** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
|
|
8725
8815
|
var StreamFormatSchema = _enum([
|
|
8726
8816
|
"webrtc",
|
|
8727
8817
|
"hls",
|
|
8728
8818
|
"mjpeg",
|
|
8729
8819
|
"rtsp"
|
|
8730
8820
|
]);
|
|
8731
|
-
var StreamInfoSchema = object({
|
|
8732
|
-
streamId: string(),
|
|
8733
|
-
format: StreamFormatSchema,
|
|
8734
|
-
url: string().nullable(),
|
|
8735
|
-
active: boolean()
|
|
8736
|
-
});
|
|
8737
|
-
method(object({
|
|
8738
|
-
streamId: string(),
|
|
8739
|
-
sourceUrl: string(),
|
|
8740
|
-
codec: string().optional()
|
|
8741
|
-
}), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
|
|
8742
|
-
streamId: string(),
|
|
8743
|
-
format: StreamFormatSchema
|
|
8744
|
-
}), string().nullable()), method(_void(), array(StreamInfoSchema));
|
|
8745
8821
|
var RtspRestreamEntrySchema = object({
|
|
8746
8822
|
brokerId: string(),
|
|
8747
8823
|
url: string(),
|
|
@@ -9406,7 +9482,7 @@ var ConsumablesStatusSchema = object({
|
|
|
9406
9482
|
})),
|
|
9407
9483
|
lastChangedAt: number()
|
|
9408
9484
|
});
|
|
9409
|
-
|
|
9485
|
+
Object.values(DeviceType), method(object({
|
|
9410
9486
|
deviceId: number().int().nonnegative(),
|
|
9411
9487
|
key: string().min(1)
|
|
9412
9488
|
}), _void(), {
|
|
@@ -10321,7 +10397,7 @@ var BoundingBoxSchema = object({
|
|
|
10321
10397
|
w: number(),
|
|
10322
10398
|
h: number()
|
|
10323
10399
|
});
|
|
10324
|
-
|
|
10400
|
+
object({
|
|
10325
10401
|
class: string(),
|
|
10326
10402
|
originalClass: string(),
|
|
10327
10403
|
score: number(),
|
|
@@ -10456,7 +10532,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
|
|
|
10456
10532
|
enabled: boolean(),
|
|
10457
10533
|
modelId: string(),
|
|
10458
10534
|
children: array(PipelineDefaultStepSchema).readonly(),
|
|
10459
|
-
engine: PipelineEngineChoiceSchema.optional(),
|
|
10460
10535
|
group: string().optional(),
|
|
10461
10536
|
settings: record(string(), unknown()).optional()
|
|
10462
10537
|
}));
|
|
@@ -10481,7 +10556,9 @@ var PipelineModelOptionSchema = object({
|
|
|
10481
10556
|
formats: record(string(), object({
|
|
10482
10557
|
downloaded: boolean(),
|
|
10483
10558
|
sizeMB: number()
|
|
10484
|
-
}))
|
|
10559
|
+
})),
|
|
10560
|
+
group: ModelVariantGroupSchema.optional(),
|
|
10561
|
+
legacy: boolean().optional()
|
|
10485
10562
|
});
|
|
10486
10563
|
var ConfigFieldBridge = custom();
|
|
10487
10564
|
var PipelineAddonSchemaSchema = object({
|
|
@@ -10495,6 +10572,7 @@ var PipelineAddonSchemaSchema = object({
|
|
|
10495
10572
|
defaultModelId: string(),
|
|
10496
10573
|
defaultModelIdByFormat: record(string(), string()).optional(),
|
|
10497
10574
|
enabledByDefault: boolean().optional(),
|
|
10575
|
+
backfillIntoExistingOverrides: boolean().optional(),
|
|
10498
10576
|
defaultConfidence: number(),
|
|
10499
10577
|
group: string().optional(),
|
|
10500
10578
|
configSchema: array(ConfigFieldBridge).readonly().optional()
|
|
@@ -10511,11 +10589,6 @@ var PipelineSchemaSchema = object({
|
|
|
10511
10589
|
selectedEngine: PipelineEngineChoiceSchema,
|
|
10512
10590
|
slots: array(PipelineSlotSchemaSchema).readonly()
|
|
10513
10591
|
});
|
|
10514
|
-
var DetectorOutputSchema = object({
|
|
10515
|
-
detections: array(SpatialDetectionSchema).readonly(),
|
|
10516
|
-
inferenceMs: number(),
|
|
10517
|
-
modelId: string()
|
|
10518
|
-
});
|
|
10519
10592
|
var EngineProvisioningSchema = object({
|
|
10520
10593
|
runtimeId: _enum([
|
|
10521
10594
|
"onnx",
|
|
@@ -10532,15 +10605,42 @@ var EngineProvisioningSchema = object({
|
|
|
10532
10605
|
]),
|
|
10533
10606
|
progress: number().optional(),
|
|
10534
10607
|
error: string().optional(),
|
|
10535
|
-
nextRetryAt: number().optional()
|
|
10608
|
+
nextRetryAt: number().optional(),
|
|
10609
|
+
/**
|
|
10610
|
+
* Gate A (config-correctness gate at engine change): human-readable
|
|
10611
|
+
* config issues surfaced EAGERLY when the node's engine changes — model
|
|
10612
|
+
* substitutions ("chose X, running Y") and zero-build steps ("no model
|
|
10613
|
+
* has a <format> build"). Additive/optional: informational only, never
|
|
10614
|
+
* enforced here — `assertEngineReady` (readiness) still gates inference.
|
|
10615
|
+
* Absent/empty when the node-default tree resolves cleanly.
|
|
10616
|
+
*/
|
|
10617
|
+
configIssues: array(string()).optional()
|
|
10536
10618
|
});
|
|
10537
10619
|
var PipelineStepInputSchema = lazy(() => object({
|
|
10538
10620
|
addonId: string(),
|
|
10539
|
-
modelId: string(),
|
|
10621
|
+
modelId: string().optional(),
|
|
10540
10622
|
enabled: boolean().default(true),
|
|
10541
10623
|
children: array(PipelineStepInputSchema).optional(),
|
|
10542
10624
|
settings: record(string(), unknown()).optional()
|
|
10543
10625
|
}));
|
|
10626
|
+
var ModelSubstitutionSchema = object({
|
|
10627
|
+
addonId: string(),
|
|
10628
|
+
chosen: string(),
|
|
10629
|
+
running: string(),
|
|
10630
|
+
format: string()
|
|
10631
|
+
});
|
|
10632
|
+
var PipelineValidationIssueSchema = object({
|
|
10633
|
+
addonId: string(),
|
|
10634
|
+
kind: _enum(["unknown-addon", "no-format-build"]),
|
|
10635
|
+
detail: string()
|
|
10636
|
+
});
|
|
10637
|
+
var PipelineValidationResultSchema = object({
|
|
10638
|
+
ok: boolean(),
|
|
10639
|
+
issues: array(PipelineValidationIssueSchema).readonly(),
|
|
10640
|
+
substitutions: array(ModelSubstitutionSchema).readonly(),
|
|
10641
|
+
/** The node's `currentEngine.format` this validation ran against. */
|
|
10642
|
+
format: string()
|
|
10643
|
+
});
|
|
10544
10644
|
var ReferenceImageEntrySchema = object({
|
|
10545
10645
|
filename: string(),
|
|
10546
10646
|
stepIds: array(string()).readonly().optional()
|
|
@@ -10611,7 +10711,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
10611
10711
|
})) }), object({ success: literal(true) }), {
|
|
10612
10712
|
kind: "mutation",
|
|
10613
10713
|
auth: "admin"
|
|
10614
|
-
}), method(
|
|
10714
|
+
}), method(object({ nodeId: string() }), object({
|
|
10715
|
+
success: literal(true),
|
|
10716
|
+
clearedDevices: number()
|
|
10717
|
+
}), {
|
|
10718
|
+
kind: "mutation",
|
|
10719
|
+
auth: "admin"
|
|
10720
|
+
}), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(object({ steps: array(PipelineStepInputSchema) }), PipelineValidationResultSchema), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
|
|
10615
10721
|
name: string(),
|
|
10616
10722
|
steps: array(PipelineTemplateStepSchema).readonly(),
|
|
10617
10723
|
engine: PipelineEngineChoiceSchema
|
|
@@ -10628,10 +10734,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
10628
10734
|
modelId: string(),
|
|
10629
10735
|
format: ModelFormatSchema$1
|
|
10630
10736
|
}), object({ success: literal(true) }), { kind: "mutation" }), method(object({
|
|
10631
|
-
addonId: string(),
|
|
10632
|
-
frame: FrameInputSchema,
|
|
10633
|
-
config: record(string(), unknown()).optional()
|
|
10634
|
-
}), DetectorOutputSchema), method(object({
|
|
10635
10737
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
10636
10738
|
steps: array(PipelineStepInputSchema).min(1),
|
|
10637
10739
|
frame: FrameInputSchema.optional(),
|
|
@@ -10777,6 +10879,25 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(ZoneSchema).read
|
|
|
10777
10879
|
auth: "admin"
|
|
10778
10880
|
}), object({ zones: array(ZoneSchema).readonly() });
|
|
10779
10881
|
/**
|
|
10882
|
+
* A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
|
|
10883
|
+
* decode worker resolves it against the RETAINED native frame's real pixel dims,
|
|
10884
|
+
* so the caller supplies only the detection-res bbox divided by the detection
|
|
10885
|
+
* dims — no native resolution to plumb.
|
|
10886
|
+
*/
|
|
10887
|
+
var NativeCropBboxSchema = object({
|
|
10888
|
+
x: number(),
|
|
10889
|
+
y: number(),
|
|
10890
|
+
w: number(),
|
|
10891
|
+
h: number()
|
|
10892
|
+
});
|
|
10893
|
+
/** Result of a best-effort native-resolution crop (`getNativeCrop`). */
|
|
10894
|
+
var NativeCropResultSchema = object({
|
|
10895
|
+
/** Packed rgb (24-bit) pixels of the crop. */
|
|
10896
|
+
bytes: _instanceof(Uint8Array),
|
|
10897
|
+
width: number().int().positive(),
|
|
10898
|
+
height: number().int().positive()
|
|
10899
|
+
});
|
|
10900
|
+
/**
|
|
10780
10901
|
* Per-camera tunable ranges + defaults. Single source of truth used
|
|
10781
10902
|
* by both the Zod data schema (validation + default fallback) and
|
|
10782
10903
|
* the device settings UI (slider min/max/step). Touch one place and
|
|
@@ -10871,6 +10992,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
|
|
|
10871
10992
|
kind: literal("remote-restream"),
|
|
10872
10993
|
/** The camera's source-owner node (slice 1: always the hub). */
|
|
10873
10994
|
ownerNodeId: string(),
|
|
10995
|
+
/**
|
|
10996
|
+
* The owner's LAN-reachable host, resolved by the orchestrator from the
|
|
10997
|
+
* per-node `reachableHost` override (Cluster UI). When present the runner
|
|
10998
|
+
* dials THIS host for the owner's restream, in preference to the
|
|
10999
|
+
* `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
|
|
11000
|
+
*/
|
|
11001
|
+
ownerReachableHost: string().optional(),
|
|
10874
11002
|
/** Operator override for the owner host the runner dials. */
|
|
10875
11003
|
hubHostnameOverride: string().optional()
|
|
10876
11004
|
})]).describe("Per-camera frame-source mode for the runner (P2c)");
|
|
@@ -10879,13 +11007,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
|
|
|
10879
11007
|
* specific runner instance via `attachCamera`. Carries everything the
|
|
10880
11008
|
* runner needs to subscribe to the local broker and execute inference.
|
|
10881
11009
|
*
|
|
10882
|
-
* Stateless-pipeline model: the
|
|
10883
|
-
*
|
|
10884
|
-
*
|
|
10885
|
-
*
|
|
10886
|
-
*
|
|
10887
|
-
* `engine`/`steps`/`audio` are optional during the additive migration
|
|
10888
|
-
* window; once orchestrator + UI are migrated they become required.
|
|
11010
|
+
* Stateless-pipeline model: the pipeline content (`steps`, optional
|
|
11011
|
+
* `audio`) travels with the attach payload. The runner keeps it in RAM
|
|
11012
|
+
* for the lifetime of the attach — on rebalance, edit, or restart the
|
|
11013
|
+
* orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
|
|
11014
|
+
* node-local, resolved by the executing runner at dispatch time.
|
|
10889
11015
|
*/
|
|
10890
11016
|
var RunnerCameraConfigSchema = object({
|
|
10891
11017
|
deviceId: number(),
|
|
@@ -10936,14 +11062,11 @@ var RunnerCameraConfigSchema = object({
|
|
|
10936
11062
|
*/
|
|
10937
11063
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
10938
11064
|
pipelineEnabled: boolean().default(true),
|
|
10939
|
-
/** Engine choice for video steps (runtime+backend+format). */
|
|
10940
|
-
engine: PipelineEngineChoiceSchema.optional(),
|
|
10941
11065
|
/** Ordered tree of video steps. Absent → runner skips video detection. */
|
|
10942
11066
|
steps: array(PipelineStepInputSchema).readonly().optional(),
|
|
10943
11067
|
/** Audio classification branch. `enabled:false` disables, null skips. */
|
|
10944
11068
|
audio: object({
|
|
10945
|
-
|
|
10946
|
-
modelId: string(),
|
|
11069
|
+
modelId: string().optional(),
|
|
10947
11070
|
enabled: boolean()
|
|
10948
11071
|
}).nullable().optional(),
|
|
10949
11072
|
/**
|
|
@@ -11030,7 +11153,11 @@ var RunnerLocalMetricsSchema = object({
|
|
|
11030
11153
|
avgInferenceTimeMs: number(),
|
|
11031
11154
|
queueDepth: number()
|
|
11032
11155
|
});
|
|
11033
|
-
method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mutation" }), method(object({ deviceId: number() }), object({ success: literal(true) }), { kind: "mutation" }), method(ReportMotionInputSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), RunnerLocalLoadSchema), method(_void(), RunnerLocalMetricsSchema), method(object({ deviceId: number() }), CameraMetricsSchema.nullable()), method(_void(), array(CameraMetricsWithDeviceIdSchema).readonly()), method(_void(), array(number()).readonly())
|
|
11156
|
+
method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mutation" }), method(object({ deviceId: number() }), object({ success: literal(true) }), { kind: "mutation" }), method(ReportMotionInputSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), RunnerLocalLoadSchema), method(_void(), RunnerLocalMetricsSchema), method(object({ deviceId: number() }), CameraMetricsSchema.nullable()), method(_void(), array(CameraMetricsWithDeviceIdSchema).readonly()), method(_void(), array(number()).readonly()), method(object({
|
|
11157
|
+
handle: FrameHandleSchema,
|
|
11158
|
+
bbox: NativeCropBboxSchema,
|
|
11159
|
+
maxWidth: number().int().positive().optional()
|
|
11160
|
+
}), NativeCropResultSchema.nullable());
|
|
11034
11161
|
object({
|
|
11035
11162
|
detected: boolean(),
|
|
11036
11163
|
/** Ms epoch of the last detected-true observation. Null if never detected. */
|
|
@@ -12324,7 +12451,9 @@ var AddonPageDeclarationSchema$1 = object({
|
|
|
12324
12451
|
icon: string(),
|
|
12325
12452
|
path: string(),
|
|
12326
12453
|
remoteName: string(),
|
|
12327
|
-
bundle: string()
|
|
12454
|
+
bundle: string(),
|
|
12455
|
+
section: string().optional(),
|
|
12456
|
+
sectionLabel: string().optional()
|
|
12328
12457
|
});
|
|
12329
12458
|
var AddonPageInfoSchema = object({
|
|
12330
12459
|
addonId: string(),
|
|
@@ -12364,7 +12493,18 @@ var AddonPageDeclarationSchema = object({
|
|
|
12364
12493
|
* the static-file route can compute an mtime-based cache-buster URL
|
|
12365
12494
|
* without a separate filesystem stat.
|
|
12366
12495
|
*/
|
|
12367
|
-
bundle: string()
|
|
12496
|
+
bundle: string(),
|
|
12497
|
+
/**
|
|
12498
|
+
* Sidebar section this page docks into. Well-known ids: `'detection'`,
|
|
12499
|
+
* `'cluster'`, `'administration'` — the page renders inside that group.
|
|
12500
|
+
* Any OTHER string creates (or joins) a custom section rendered after
|
|
12501
|
+
* the built-in groups; its label comes from `sectionLabel` (first
|
|
12502
|
+
* declaration wins), falling back to the id. Absent → the legacy
|
|
12503
|
+
* "Addon Pages" group.
|
|
12504
|
+
*/
|
|
12505
|
+
section: string().optional(),
|
|
12506
|
+
/** Display label for a CUSTOM `section` id (ignored for well-known ids). */
|
|
12507
|
+
sectionLabel: string().optional()
|
|
12368
12508
|
});
|
|
12369
12509
|
method(_void(), array(AddonPageDeclarationSchema).readonly());
|
|
12370
12510
|
var AddonHttpRouteSchema = object({
|
|
@@ -12580,6 +12720,17 @@ var WidgetMetadataSchema = object({
|
|
|
12580
12720
|
deviceContext: boolean().default(false),
|
|
12581
12721
|
integrationContext: boolean().default(false)
|
|
12582
12722
|
}),
|
|
12723
|
+
/**
|
|
12724
|
+
* Loadable BEFORE authentication. The normal widget registry listing
|
|
12725
|
+
* (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
|
|
12726
|
+
* (the login page) cannot discover a widget through it. A widget that
|
|
12727
|
+
* declares `preAuth: true` marks itself as safe to mount on a pre-auth
|
|
12728
|
+
* screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
|
|
12729
|
+
* login-method contribution channel (see `login-method.cap.ts`) rather
|
|
12730
|
+
* than the authenticated registry, and its bundle is served by the
|
|
12731
|
+
* public `/api/addon-widgets/:addonId/*` static route. Defaults false.
|
|
12732
|
+
*/
|
|
12733
|
+
preAuth: boolean().optional().default(false),
|
|
12583
12734
|
/** Dashboard placement HINTS (operator can override per instance). */
|
|
12584
12735
|
defaultSize: WidgetSizeEnum.default("md"),
|
|
12585
12736
|
allowedSizes: array(WidgetSizeEnum).readonly().default([
|
|
@@ -12881,6 +13032,66 @@ method(object({
|
|
|
12881
13032
|
password: string()
|
|
12882
13033
|
}), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
|
|
12883
13034
|
/**
|
|
13035
|
+
* `login-method` — collection cap through which auth addons contribute
|
|
13036
|
+
* their pre-auth login surfaces to the login page. This is the SINGLE,
|
|
13037
|
+
* generic mechanism that supersedes the dead `auth.listProviders` reader:
|
|
13038
|
+
* every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
|
|
13039
|
+
* `login-method` provider and the PUBLIC `auth.listLoginMethods`
|
|
13040
|
+
* procedure aggregates them for the unauthenticated login page.
|
|
13041
|
+
*
|
|
13042
|
+
* A contribution is a discriminated union on `kind`:
|
|
13043
|
+
*
|
|
13044
|
+
* - `redirect` — a declarative button. The login page renders a generic
|
|
13045
|
+
* button that navigates to `startUrl` (an addon-owned HTTP route).
|
|
13046
|
+
* Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
|
|
13047
|
+
* ZERO shell-side JS. A future SSO addon plugs in the same way — the
|
|
13048
|
+
* login page needs NO change.
|
|
13049
|
+
*
|
|
13050
|
+
* - `widget` — a Module-Federation widget the login page mounts (via
|
|
13051
|
+
* `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
|
|
13052
|
+
* login ceremony, which must run `@simplewebauthn/browser` INSIDE the
|
|
13053
|
+
* addon bundle. The referenced widget also declares `preAuth: true` in
|
|
13054
|
+
* its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
|
|
13055
|
+
* stamps a public `bundleUrl` from `addonId` + `bundle`.
|
|
13056
|
+
*
|
|
13057
|
+
* Every contribution carries a `stage`:
|
|
13058
|
+
* - `primary` — shown on the first credentials screen (OIDC /
|
|
13059
|
+
* magic-link buttons; a future usernameless passkey).
|
|
13060
|
+
* - `second-factor` — shown AFTER the password leg, gated on the
|
|
13061
|
+
* returned `factors` (passkey-as-2FA today).
|
|
13062
|
+
*
|
|
13063
|
+
* `mount: skip` — the cap is read server-side by the core auth router
|
|
13064
|
+
* (`registry.getCollection('login-method')`), never mounted as its own
|
|
13065
|
+
* tRPC router.
|
|
13066
|
+
*/
|
|
13067
|
+
/** When a login method renders in the two-phase login flow. */
|
|
13068
|
+
var LoginStageEnum = _enum(["primary", "second-factor"]);
|
|
13069
|
+
/** One login-method contribution — redirect button OR pre-auth widget. */
|
|
13070
|
+
var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
|
|
13071
|
+
kind: literal("redirect"),
|
|
13072
|
+
/** Stable id within the login-method set (e.g. `auth-oidc/google`). */
|
|
13073
|
+
id: string(),
|
|
13074
|
+
/** Operator-facing button label. */
|
|
13075
|
+
label: string(),
|
|
13076
|
+
/** lucide-react icon name. */
|
|
13077
|
+
icon: string().optional(),
|
|
13078
|
+
/** Addon-owned HTTP route the button navigates to (GET). */
|
|
13079
|
+
startUrl: string(),
|
|
13080
|
+
stage: LoginStageEnum
|
|
13081
|
+
}), object({
|
|
13082
|
+
kind: literal("widget"),
|
|
13083
|
+
/** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
|
|
13084
|
+
id: string(),
|
|
13085
|
+
/** Owning addon id — drives the public bundle URL + the MF namespace. */
|
|
13086
|
+
addonId: string(),
|
|
13087
|
+
/** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
|
|
13088
|
+
bundle: string(),
|
|
13089
|
+
/** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
|
|
13090
|
+
remote: WidgetRemoteSchema,
|
|
13091
|
+
stage: LoginStageEnum
|
|
13092
|
+
})]);
|
|
13093
|
+
method(_void(), array(LoginMethodContributionSchema).readonly());
|
|
13094
|
+
/**
|
|
12884
13095
|
* Orchestrator-side destination metadata. The orchestrator computes
|
|
12885
13096
|
* `id = <addonId>:<subId>` from its provider lookup so consumers
|
|
12886
13097
|
* (admin UI, restore flow) see one canonical key.
|
|
@@ -15009,7 +15220,17 @@ var TrackSchema = object({
|
|
|
15009
15220
|
/** Cumulative normalized distance travelled (0..1 units = full frame width). */
|
|
15010
15221
|
totalDistance: number(),
|
|
15011
15222
|
state: TrackStateSchema,
|
|
15012
|
-
active: boolean()
|
|
15223
|
+
active: boolean(),
|
|
15224
|
+
/** Deterministic key-event importance score in [0,1] (server-computed at
|
|
15225
|
+
* track expiry, recomputed on late label). Absent on legacy rows written
|
|
15226
|
+
* before scoring shipped — consumers degrade to absence / compute-on-read. */
|
|
15227
|
+
importance: number().optional(),
|
|
15228
|
+
/** Id of the track's highest-confidence ObjectEvent (its representative
|
|
15229
|
+
* "best" frame). Absent when the track produced no object events. */
|
|
15230
|
+
bestEventId: string().optional(),
|
|
15231
|
+
/** Tag of the importance sub-signal that dominated the score
|
|
15232
|
+
* (identity|dwell|proximity|class|confidence|travel|zone). */
|
|
15233
|
+
importanceReason: string().optional()
|
|
15013
15234
|
});
|
|
15014
15235
|
var BaseEventFields = {
|
|
15015
15236
|
id: string(),
|
|
@@ -15074,8 +15295,18 @@ var ObjectEventSchema = object({
|
|
|
15074
15295
|
frameHeight: number().optional(),
|
|
15075
15296
|
/** MediaStore key for the crop attached to this event (if any). */
|
|
15076
15297
|
mediaKey: string().optional(),
|
|
15298
|
+
/** Design B: MediaStore key of the track's native-resolution key frame (the
|
|
15299
|
+
* best-detection full frame). Resolve via the event-media data-plane
|
|
15300
|
+
* (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
|
|
15301
|
+
* draws `bbox` over the native frame. Absent on legacy rows / non-decoded
|
|
15302
|
+
* sources — consumers fall back to `mediaKey` (the tight crop). */
|
|
15303
|
+
keyFrameMediaKey: string().optional(),
|
|
15077
15304
|
/** Populated by B5 (recording playback URL for this event). */
|
|
15078
|
-
mediaUrl: string().optional()
|
|
15305
|
+
mediaUrl: string().optional(),
|
|
15306
|
+
/** The parent track's key-event importance [0,1], propagated to every object
|
|
15307
|
+
* event of the track (so an event row can be sorted by importance without a
|
|
15308
|
+
* track join). Absent on legacy rows / before the track was scored. */
|
|
15309
|
+
importance: number().optional()
|
|
15079
15310
|
});
|
|
15080
15311
|
var AudioEventSchema = object({
|
|
15081
15312
|
...BaseEventFields,
|
|
@@ -15099,7 +15330,8 @@ var MediaFileKindEnum = _enum([
|
|
|
15099
15330
|
"fullFrame",
|
|
15100
15331
|
"fullFrameBoxed",
|
|
15101
15332
|
"faceCrop",
|
|
15102
|
-
"plateCrop"
|
|
15333
|
+
"plateCrop",
|
|
15334
|
+
"keyFrame"
|
|
15103
15335
|
]);
|
|
15104
15336
|
var MediaFileSchema = object({
|
|
15105
15337
|
key: string(),
|
|
@@ -15120,6 +15352,32 @@ var DeviceEventQueryInput = object({
|
|
|
15120
15352
|
projection: _enum(["full", "slim"]).optional()
|
|
15121
15353
|
});
|
|
15122
15354
|
var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
|
|
15355
|
+
var KeyEventQueryInput = object({
|
|
15356
|
+
deviceId: number(),
|
|
15357
|
+
/** Window lower bound (track firstSeen ≥ since). */
|
|
15358
|
+
since: number(),
|
|
15359
|
+
/** Window upper bound (track firstSeen ≤ until). */
|
|
15360
|
+
until: number(),
|
|
15361
|
+
limit: number().int().min(1).max(200).default(50),
|
|
15362
|
+
/** Drop tracks scoring below this importance. */
|
|
15363
|
+
minImportance: number().min(0).max(1).optional(),
|
|
15364
|
+
/** Restrict to a single class (e.g. 'person'). */
|
|
15365
|
+
classFilter: string().optional()
|
|
15366
|
+
});
|
|
15367
|
+
var KeyEventSchema = object({
|
|
15368
|
+
/** The representative event id (the track's best ObjectEvent, else its trackId). */
|
|
15369
|
+
id: string(),
|
|
15370
|
+
trackId: string(),
|
|
15371
|
+
/** Track start time (firstSeen). */
|
|
15372
|
+
timestamp: number(),
|
|
15373
|
+
className: string(),
|
|
15374
|
+
label: string().optional(),
|
|
15375
|
+
importance: number(),
|
|
15376
|
+
/** Highest-confidence ObjectEvent id for the track (empty when none). */
|
|
15377
|
+
bestEventId: string(),
|
|
15378
|
+
/** Track lifetime in ms (lastSeen - firstSeen). */
|
|
15379
|
+
windowMs: number().optional()
|
|
15380
|
+
});
|
|
15123
15381
|
var TrackedDetectionSchema = object({
|
|
15124
15382
|
trackId: string(),
|
|
15125
15383
|
className: string(),
|
|
@@ -15149,7 +15407,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
15149
15407
|
}), array(TrackSchema).readonly()), method(object({ deviceId: number() }), _void(), {
|
|
15150
15408
|
kind: "mutation",
|
|
15151
15409
|
auth: "admin"
|
|
15152
|
-
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({
|
|
15410
|
+
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
|
|
15153
15411
|
deviceId: number(),
|
|
15154
15412
|
since: number(),
|
|
15155
15413
|
until: number(),
|
|
@@ -15194,11 +15452,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
15194
15452
|
timestamp: number()
|
|
15195
15453
|
});
|
|
15196
15454
|
var CameraPipelineConfigSchema = object({
|
|
15197
|
-
engine: PipelineEngineChoiceSchema,
|
|
15455
|
+
engine: PipelineEngineChoiceSchema.optional(),
|
|
15198
15456
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
15199
15457
|
audio: object({
|
|
15200
|
-
engine: PipelineEngineChoiceSchema,
|
|
15201
|
-
modelId: string(),
|
|
15458
|
+
engine: PipelineEngineChoiceSchema.optional(),
|
|
15459
|
+
modelId: string().optional(),
|
|
15202
15460
|
enabled: boolean(),
|
|
15203
15461
|
settings: record(string(), unknown()).readonly().optional()
|
|
15204
15462
|
}).nullable().optional()
|
|
@@ -15213,7 +15471,7 @@ var PipelineTemplateSchema = object({
|
|
|
15213
15471
|
});
|
|
15214
15472
|
var AgentAddonConfigSchema = object({
|
|
15215
15473
|
enabled: boolean(),
|
|
15216
|
-
modelId: string(),
|
|
15474
|
+
modelId: string().optional(),
|
|
15217
15475
|
settings: record(string(), unknown()).readonly()
|
|
15218
15476
|
});
|
|
15219
15477
|
var AgentPipelineSettingsSchema = object({
|
|
@@ -15223,12 +15481,25 @@ var AgentPipelineSettingsSchema = object({
|
|
|
15223
15481
|
detectWeight: number().positive().optional(),
|
|
15224
15482
|
/** Node is eligible to run the detection pipeline (decode + inference). */
|
|
15225
15483
|
detect: boolean().optional(),
|
|
15226
|
-
/**
|
|
15484
|
+
/**
|
|
15485
|
+
* DEPRECATED AND IGNORED. Decode is always co-located with its frame
|
|
15486
|
+
* consumer, so decode eligibility IS detect eligibility. Kept optional in
|
|
15487
|
+
* the schema ONLY so persisted stores written before the removal still
|
|
15488
|
+
* parse — no code reads it and no write path emits it.
|
|
15489
|
+
*/
|
|
15227
15490
|
decode: boolean().optional(),
|
|
15228
15491
|
/** Node is eligible to run audio-analyzer sessions. */
|
|
15229
15492
|
audio: boolean().optional(),
|
|
15230
15493
|
/** Node is eligible to be the ingest / source-owner (serve the restream). */
|
|
15231
|
-
ingest: boolean().optional()
|
|
15494
|
+
ingest: boolean().optional(),
|
|
15495
|
+
/**
|
|
15496
|
+
* Operator override for the LAN host a cross-node decoder dials to reach
|
|
15497
|
+
* THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
|
|
15498
|
+
* falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
|
|
15499
|
+
* it already uses to reach the hub). Set this only when the auto-detected
|
|
15500
|
+
* address is wrong (multi-homed host, NAT, custom interface).
|
|
15501
|
+
*/
|
|
15502
|
+
reachableHost: string().optional()
|
|
15232
15503
|
});
|
|
15233
15504
|
var CameraPipelineForAgentSchema = object({
|
|
15234
15505
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -15276,25 +15547,6 @@ var PipelineAssignmentSchema = object({
|
|
|
15276
15547
|
assignedAt: number()
|
|
15277
15548
|
});
|
|
15278
15549
|
/**
|
|
15279
|
-
* Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
|
|
15280
|
-
* the decoder-node placement domain (`balanceDecoder` decision: manual pin
|
|
15281
|
-
* → co-located with pipeline → capacity).
|
|
15282
|
-
*/
|
|
15283
|
-
var DecoderAssignmentSchema = object({
|
|
15284
|
-
deviceId: number(),
|
|
15285
|
-
/** Moleculer node id of the decoder provider currently responsible for this camera. */
|
|
15286
|
-
decoderNodeId: string(),
|
|
15287
|
-
/** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
|
|
15288
|
-
pinned: boolean(),
|
|
15289
|
-
/** Why this assignment was made — useful for debugging the decoder balancer. */
|
|
15290
|
-
reason: _enum([
|
|
15291
|
-
"manual",
|
|
15292
|
-
"co-located",
|
|
15293
|
-
"capacity",
|
|
15294
|
-
"hardware-affinity"
|
|
15295
|
-
])
|
|
15296
|
-
});
|
|
15297
|
-
/**
|
|
15298
15550
|
* Per-agent load summary surfaced to the load balancer + dashboards.
|
|
15299
15551
|
* Aggregated from each runner's `getLocalLoad` cap call.
|
|
15300
15552
|
*/
|
|
@@ -15334,6 +15586,15 @@ var GlobalMetricsSchema = object({
|
|
|
15334
15586
|
* capability providers.
|
|
15335
15587
|
*/
|
|
15336
15588
|
var CapabilityBindingsSchema = record(string(), string());
|
|
15589
|
+
/**
|
|
15590
|
+
* The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
|
|
15591
|
+
* its LAN-reachable host, if one is registered. See `getIngestOwner`.
|
|
15592
|
+
*/
|
|
15593
|
+
var IngestOwnerSchema = object({
|
|
15594
|
+
ownerNodeId: string(),
|
|
15595
|
+
reachableHost: string().optional(),
|
|
15596
|
+
configIssue: string().optional()
|
|
15597
|
+
});
|
|
15337
15598
|
/** Source block — always present; derives from the stream catalog. */
|
|
15338
15599
|
var CameraSourceStatusSchema = object({ streams: array(object({
|
|
15339
15600
|
camStreamId: string(),
|
|
@@ -15348,6 +15609,14 @@ var CameraAssignmentStatusSchema = object({
|
|
|
15348
15609
|
detectionNodeId: string().nullable(),
|
|
15349
15610
|
decoderNodeId: string().nullable(),
|
|
15350
15611
|
audioNodeId: string().nullable(),
|
|
15612
|
+
/**
|
|
15613
|
+
* The node that OWNS this camera's physical source pull (dials the RTSP and
|
|
15614
|
+
* hosts the broker/restream) — the cluster ingest owner today
|
|
15615
|
+
* (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
|
|
15616
|
+
* the UI show WHERE a camera is sourced without SSH/logs, and is the node the
|
|
15617
|
+
* broker block below was read from (pinned). Nullable only pre-wiring.
|
|
15618
|
+
*/
|
|
15619
|
+
sourceNodeId: string().nullable(),
|
|
15351
15620
|
pinned: object({
|
|
15352
15621
|
detection: boolean(),
|
|
15353
15622
|
decoder: boolean(),
|
|
@@ -15480,16 +15749,7 @@ method(object({
|
|
|
15480
15749
|
}), object({ success: literal(true) }), {
|
|
15481
15750
|
kind: "mutation",
|
|
15482
15751
|
auth: "admin"
|
|
15483
|
-
}), method(object({
|
|
15484
|
-
deviceId: number(),
|
|
15485
|
-
nodeId: string()
|
|
15486
|
-
}), _void(), {
|
|
15487
|
-
kind: "mutation",
|
|
15488
|
-
auth: "admin"
|
|
15489
|
-
}), method(object({ deviceId: number() }), _void(), {
|
|
15490
|
-
kind: "mutation",
|
|
15491
|
-
auth: "admin"
|
|
15492
|
-
}), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
|
|
15752
|
+
}), method(_void(), IngestOwnerSchema), method(object({
|
|
15493
15753
|
deviceId: number(),
|
|
15494
15754
|
nodeId: string()
|
|
15495
15755
|
}), object({ success: literal(true) }), {
|
|
@@ -15510,10 +15770,7 @@ method(object({
|
|
|
15510
15770
|
nodeId: string(),
|
|
15511
15771
|
pinned: boolean(),
|
|
15512
15772
|
assignedAt: number()
|
|
15513
|
-
}))), method(object({
|
|
15514
|
-
deviceId: number(),
|
|
15515
|
-
pipelineNodeId: string().optional()
|
|
15516
|
-
}), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
|
|
15773
|
+
}))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
|
|
15517
15774
|
nodeId: string(),
|
|
15518
15775
|
settings: AgentPipelineSettingsSchema
|
|
15519
15776
|
})).readonly()), method(object({
|
|
@@ -15543,12 +15800,26 @@ method(object({
|
|
|
15543
15800
|
}), method(object({
|
|
15544
15801
|
agentNodeId: string(),
|
|
15545
15802
|
detect: boolean().nullable().optional(),
|
|
15546
|
-
decode: boolean().nullable().optional(),
|
|
15547
15803
|
audio: boolean().nullable().optional(),
|
|
15548
15804
|
ingest: boolean().nullable().optional()
|
|
15549
15805
|
}), object({ success: literal(true) }), {
|
|
15550
15806
|
kind: "mutation",
|
|
15551
15807
|
auth: "admin"
|
|
15808
|
+
}), method(object({
|
|
15809
|
+
agentNodeId: string(),
|
|
15810
|
+
reachableHost: string().nullable()
|
|
15811
|
+
}), object({ success: literal(true) }), {
|
|
15812
|
+
kind: "mutation",
|
|
15813
|
+
auth: "admin"
|
|
15814
|
+
}), method(object({ agentNodeId: string() }), object({
|
|
15815
|
+
success: literal(true),
|
|
15816
|
+
/** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
|
|
15817
|
+
effectiveModelId: string().nullable(),
|
|
15818
|
+
/** Number of cameras whose node-scoped overrides were cleared. */
|
|
15819
|
+
clearedCameraOverrides: number()
|
|
15820
|
+
}), {
|
|
15821
|
+
kind: "mutation",
|
|
15822
|
+
auth: "admin"
|
|
15552
15823
|
}), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
|
|
15553
15824
|
deviceId: number(),
|
|
15554
15825
|
addonId: string(),
|
|
@@ -15593,22 +15864,131 @@ method(object({
|
|
|
15593
15864
|
kind: "mutation",
|
|
15594
15865
|
auth: "admin"
|
|
15595
15866
|
});
|
|
15596
|
-
|
|
15597
|
-
|
|
15598
|
-
|
|
15599
|
-
|
|
15600
|
-
|
|
15601
|
-
|
|
15867
|
+
/**
|
|
15868
|
+
* server-management — per-NODE singleton capability for a node's ROOT
|
|
15869
|
+
* package lifecycle (runtime-updatable node packages, phase 2: hub + docker
|
|
15870
|
+
* agents).
|
|
15871
|
+
*
|
|
15872
|
+
* Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
|
|
15873
|
+
* on agents) carries the whole software stack in its npm dep tree, so ONE
|
|
15874
|
+
* version describes the node. Updates install into
|
|
15875
|
+
* `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
|
|
15876
|
+
* starter (probation boot + auto-rollback to N-1).
|
|
15877
|
+
*
|
|
15878
|
+
* Providers:
|
|
15879
|
+
* - HUB: `ServerUpdateService` behind the `server-provided` mount
|
|
15880
|
+
* (`buildServerProviders` in trpc.router.ts) — the default target for
|
|
15881
|
+
* unpinned calls.
|
|
15882
|
+
* - AGENT: `AgentUpdateService` registered by the agent bootstrap under
|
|
15883
|
+
* the synthetic `agent-runtime` addonId and declared in the agent's
|
|
15884
|
+
* `$hub.registerNode` manifest.
|
|
15885
|
+
*
|
|
15886
|
+
* Node routing: singleton caps get the codegen/runtime-builder `nodeId`
|
|
15887
|
+
* injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
|
|
15888
|
+
* SDK) routes the call to that node's provider via the standard remote
|
|
15889
|
+
* proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
|
|
15890
|
+
* in-process provider lookup). No `nodeId` → the hub's own provider.
|
|
15891
|
+
*
|
|
15892
|
+
* Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
|
|
15893
|
+
*/
|
|
15894
|
+
/**
|
|
15895
|
+
* Where the running hub's code was loaded from:
|
|
15896
|
+
* - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
|
|
15897
|
+
* plain resolution and runtime updates are refused.
|
|
15898
|
+
* - `baked` — the immutable image seed closure (no data-dir root active).
|
|
15899
|
+
* - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
|
|
15900
|
+
*/
|
|
15901
|
+
var ServerBootModeSchema = _enum([
|
|
15902
|
+
"workspace",
|
|
15903
|
+
"baked",
|
|
15904
|
+
"data-root"
|
|
15905
|
+
]);
|
|
15906
|
+
/**
|
|
15907
|
+
* Update lifecycle state:
|
|
15908
|
+
* - `idle` / `checking` / `staging` — steady / in-flight registry work.
|
|
15909
|
+
* - `pending-restart` — a version is staged and the node has NOT yet
|
|
15910
|
+
* restarted onto it (still running the OLD version).
|
|
15911
|
+
* - `awaiting-confirmation` — the node HAS restarted onto the staged version
|
|
15912
|
+
* (it is the active probation boot) and is waiting to confirm boot-health.
|
|
15913
|
+
* Apply/rollback are refused in this state and the node must NOT be
|
|
15914
|
+
* manually restarted, or the probation boot auto-rolls-back.
|
|
15915
|
+
*/
|
|
15916
|
+
var ServerUpdateStateSchema = _enum([
|
|
15917
|
+
"idle",
|
|
15918
|
+
"checking",
|
|
15919
|
+
"staging",
|
|
15920
|
+
"pending-restart",
|
|
15921
|
+
"awaiting-confirmation"
|
|
15922
|
+
]);
|
|
15923
|
+
var ServerRollbackInfoSchema = object({
|
|
15924
|
+
/** The version that failed (or was manually rolled back). */
|
|
15925
|
+
fromVersion: string(),
|
|
15926
|
+
/** The version rolled back to; null = the baked seed. */
|
|
15927
|
+
toVersion: string().nullable(),
|
|
15928
|
+
atMs: number(),
|
|
15929
|
+
reason: string()
|
|
15602
15930
|
});
|
|
15603
|
-
var
|
|
15604
|
-
|
|
15605
|
-
|
|
15606
|
-
|
|
15931
|
+
var ServerPackageStatusSchema = object({
|
|
15932
|
+
/** Root package name (`@camstack/server` on the hub). */
|
|
15933
|
+
packageName: string(),
|
|
15934
|
+
/** Version of the code the running process ACTUALLY loaded. */
|
|
15935
|
+
runningVersion: string().nullable(),
|
|
15936
|
+
/** Node.js runtime version the node's process runs on (`process.versions.node`). */
|
|
15937
|
+
nodeRuntimeVersion: string().nullable(),
|
|
15938
|
+
/** Active data-dir root version; null when booted from seed/workspace. */
|
|
15939
|
+
activeVersion: string().nullable(),
|
|
15940
|
+
/** N-1 version kept for rollback; null when no previous version exists. */
|
|
15941
|
+
previousVersion: string().nullable(),
|
|
15942
|
+
/** Version of the immutable baked seed closure (image fallback). */
|
|
15943
|
+
seedVersion: string().nullable(),
|
|
15944
|
+
/** Latest registry version from the most recent check (null = never checked). */
|
|
15945
|
+
latestVersion: string().nullable(),
|
|
15946
|
+
updateAvailable: boolean(),
|
|
15947
|
+
bootMode: ServerBootModeSchema,
|
|
15948
|
+
updateState: ServerUpdateStateSchema,
|
|
15949
|
+
/** Version staged + awaiting its probation boot, when one is pending. */
|
|
15950
|
+
pendingVersion: string().nullable(),
|
|
15951
|
+
/** Set when the last freshly-activated version failed its boot health-check. */
|
|
15952
|
+
rolledBack: ServerRollbackInfoSchema.nullable(),
|
|
15953
|
+
/**
|
|
15954
|
+
* True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
|
|
15955
|
+
* hub is running from the baked seed (or workspace) while installed data-dir
|
|
15956
|
+
* versions are being IGNORED. Surfaced as a warning in the UI.
|
|
15957
|
+
*/
|
|
15958
|
+
stateFileCorrupt: boolean(),
|
|
15959
|
+
lastCheckedAtMs: number().nullable()
|
|
15960
|
+
});
|
|
15961
|
+
var ServerUpdateCheckResultSchema = object({
|
|
15962
|
+
packageName: string(),
|
|
15963
|
+
runningVersion: string().nullable(),
|
|
15964
|
+
latestVersion: string().nullable(),
|
|
15965
|
+
updateAvailable: boolean(),
|
|
15966
|
+
checkedAtMs: number(),
|
|
15967
|
+
/** Non-null when the registry lookup failed (offline, bad registry, …). */
|
|
15968
|
+
error: string().nullable()
|
|
15969
|
+
});
|
|
15970
|
+
var ServerUpdateActionResultSchema = object({
|
|
15971
|
+
accepted: boolean(),
|
|
15972
|
+
targetVersion: string().nullable(),
|
|
15973
|
+
/** True when a graceful restart was scheduled to apply the change. */
|
|
15974
|
+
restarting: boolean(),
|
|
15975
|
+
message: string()
|
|
15976
|
+
});
|
|
15977
|
+
method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
|
|
15978
|
+
kind: "mutation",
|
|
15979
|
+
auth: "admin"
|
|
15980
|
+
}), method(object({
|
|
15981
|
+
/** Explicit target version; omitted = latest from the registry. */
|
|
15982
|
+
version: string().optional() }), ServerUpdateActionResultSchema, {
|
|
15983
|
+
kind: "mutation",
|
|
15984
|
+
auth: "admin"
|
|
15985
|
+
}), method(_void(), ServerUpdateActionResultSchema, {
|
|
15986
|
+
kind: "mutation",
|
|
15987
|
+
auth: "admin"
|
|
15988
|
+
}), method(_void(), ServerUpdateActionResultSchema, {
|
|
15989
|
+
kind: "mutation",
|
|
15990
|
+
auth: "admin"
|
|
15607
15991
|
});
|
|
15608
|
-
method(object({
|
|
15609
|
-
deviceId: number(),
|
|
15610
|
-
streams: array(RegisteredStreamSchema).readonly()
|
|
15611
|
-
}), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(ExposedResourceSchema).readonly());
|
|
15612
15992
|
/**
|
|
15613
15993
|
* Query filter for settings-store collections.
|
|
15614
15994
|
*/
|
|
@@ -15761,9 +16141,9 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
|
|
|
15761
16141
|
/**
|
|
15762
16142
|
* A single device snapshot returned as base64 JPEG/PNG.
|
|
15763
16143
|
*
|
|
15764
|
-
*
|
|
15765
|
-
*
|
|
15766
|
-
*
|
|
16144
|
+
* The `SnapshotAddon` wrapper returns this shape whether the frame came from
|
|
16145
|
+
* the device-native provider (onboard capture) or from the stream-broker
|
|
16146
|
+
* prebuffer fallback.
|
|
15767
16147
|
*/
|
|
15768
16148
|
var SnapshotImageSchema = object({
|
|
15769
16149
|
base64: string(),
|
|
@@ -15794,11 +16174,12 @@ DeviceType.Camera, method(object({
|
|
|
15794
16174
|
}), SnapshotImageSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
15795
16175
|
kind: "mutation",
|
|
15796
16176
|
auth: "admin"
|
|
15797
|
-
})
|
|
15798
|
-
method(object({ deviceId: number() }), boolean()), method(object({
|
|
16177
|
+
}), systemMethod(object({ deviceIds: array(number()).min(1).max(200) }), array(object({
|
|
15799
16178
|
deviceId: number(),
|
|
15800
|
-
|
|
15801
|
-
|
|
16179
|
+
lastCapturedAt: number().nullable(),
|
|
16180
|
+
cacheAgeMs: number().nullable(),
|
|
16181
|
+
etag: string().nullable()
|
|
16182
|
+
})));
|
|
15802
16183
|
/**
|
|
15803
16184
|
* `sso-bridge` — internal hub-only cap that lets SSO-style auth
|
|
15804
16185
|
* providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
|
|
@@ -16049,10 +16430,32 @@ method(_void(), array(TurnServerSchema).readonly());
|
|
|
16049
16430
|
* b. `finishAuthentication({userId, response})` → server verifies
|
|
16050
16431
|
* the assertion, bumps the credential counter, returns ok.
|
|
16051
16432
|
*
|
|
16433
|
+
* 2b. Usernameless (discoverable-credential) authentication — the
|
|
16434
|
+
* passkey IS the primary factor, no password leg:
|
|
16435
|
+
* a. `beginDiscoverableAuthentication({})` → assertion options with
|
|
16436
|
+
* EMPTY `allowCredentials` (the browser offers every resident
|
|
16437
|
+
* passkey it holds for this RP) + `userVerification: 'required'`
|
|
16438
|
+
* (the passkey replaces both factors, so UV is mandatory).
|
|
16439
|
+
* The challenge is stored server-side, NOT bound to any user.
|
|
16440
|
+
* b. `finishDiscoverableAuthentication({response})` → the provider
|
|
16441
|
+
* resolves the credential by the response's credential id,
|
|
16442
|
+
* verifies the assertion against the stored challenge + that
|
|
16443
|
+
* credential's public key/counter, and returns the OWNING
|
|
16444
|
+
* `userId` — the caller (core auth router) mints the session.
|
|
16445
|
+
*
|
|
16052
16446
|
* 3. Management:
|
|
16053
16447
|
* - `listPasskeys({userId})` — enumerate user's enrolled credentials.
|
|
16054
16448
|
* - `removePasskey({userId, credentialId})` — revoke one credential.
|
|
16055
16449
|
*
|
|
16450
|
+
* 4. Second-factor preference (opt-in, default OFF):
|
|
16451
|
+
* Enrolling a passkey only enables passkey-FIRST sign-in. It is
|
|
16452
|
+
* demanded as a second factor after a password login ONLY when the
|
|
16453
|
+
* user explicitly opts in via `setSecondFactorPreference`.
|
|
16454
|
+
* - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
|
|
16455
|
+
* row ⇒ `enabled: false`).
|
|
16456
|
+
* - `setSecondFactorPreference({userId, enabled})` — persisted by
|
|
16457
|
+
* the providing addon beside its credentials.
|
|
16458
|
+
*
|
|
16056
16459
|
* Challenges are short-lived (5 min, in-memory). The cap is internal —
|
|
16057
16460
|
* the admin-ui composes the begin/finish round-trip and never exposes
|
|
16058
16461
|
* the cap to non-admins.
|
|
@@ -16095,6 +16498,17 @@ method(object({
|
|
|
16095
16498
|
}), object({ verified: boolean() }), {
|
|
16096
16499
|
kind: "mutation",
|
|
16097
16500
|
access: "view"
|
|
16501
|
+
}), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
|
|
16502
|
+
kind: "mutation",
|
|
16503
|
+
access: "view"
|
|
16504
|
+
}), method(object({
|
|
16505
|
+
/** AuthenticationResponseJSON from the browser. */
|
|
16506
|
+
response: record(string(), unknown()) }), object({
|
|
16507
|
+
verified: boolean(),
|
|
16508
|
+
userId: string().nullable()
|
|
16509
|
+
}), {
|
|
16510
|
+
kind: "mutation",
|
|
16511
|
+
access: "view"
|
|
16098
16512
|
}), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
|
|
16099
16513
|
userId: string(),
|
|
16100
16514
|
credentialId: string()
|
|
@@ -16102,6 +16516,13 @@ method(object({
|
|
|
16102
16516
|
kind: "mutation",
|
|
16103
16517
|
auth: "admin",
|
|
16104
16518
|
access: "delete"
|
|
16519
|
+
}), method(object({ userId: string() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
|
|
16520
|
+
userId: string(),
|
|
16521
|
+
enabled: boolean()
|
|
16522
|
+
}), object({ success: literal(true) }), {
|
|
16523
|
+
kind: "mutation",
|
|
16524
|
+
auth: "admin",
|
|
16525
|
+
access: "create"
|
|
16105
16526
|
});
|
|
16106
16527
|
/**
|
|
16107
16528
|
* `videoclips` — the unified, navigable-clip surface for a camera.
|
|
@@ -16159,9 +16580,10 @@ method(object({
|
|
|
16159
16580
|
auth: "admin"
|
|
16160
16581
|
});
|
|
16161
16582
|
/**
|
|
16162
|
-
* Optional client-side hints sent at session creation to help the
|
|
16163
|
-
*
|
|
16164
|
-
*
|
|
16583
|
+
* Optional client-side hints sent at session creation to help the provider
|
|
16584
|
+
* pick the best native source. All fields optional — a viewer that knows
|
|
16585
|
+
* nothing still gets a sane default. (Relocated from the retired `webrtc`
|
|
16586
|
+
* collection cap; this `webrtc-session` cap is the live signaling surface.)
|
|
16165
16587
|
*/
|
|
16166
16588
|
var webrtcClientHintsSchema = object({
|
|
16167
16589
|
viewportWidth: number().int().positive().optional(),
|
|
@@ -16172,22 +16594,6 @@ var webrtcClientHintsSchema = object({
|
|
|
16172
16594
|
/** Hard tier override; takes precedence over scoring when registered. */
|
|
16173
16595
|
prefersTier: string().optional()
|
|
16174
16596
|
}).partial();
|
|
16175
|
-
method(object({
|
|
16176
|
-
streamId: string(),
|
|
16177
|
-
sdpOffer: string()
|
|
16178
|
-
}), string(), { kind: "mutation" }), method(object({ streamId: string() }), boolean()), method(object({
|
|
16179
|
-
streamId: string(),
|
|
16180
|
-
codec: string()
|
|
16181
|
-
}), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
|
|
16182
|
-
streamId: string(),
|
|
16183
|
-
hints: webrtcClientHintsSchema.optional()
|
|
16184
|
-
}), object({
|
|
16185
|
-
sessionId: string(),
|
|
16186
|
-
sdpOffer: string()
|
|
16187
|
-
}), { kind: "mutation" }), method(object({
|
|
16188
|
-
sessionId: string(),
|
|
16189
|
-
sdpAnswer: string()
|
|
16190
|
-
}), _void(), { kind: "mutation" }), method(object({ sessionId: string() }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), boolean());
|
|
16191
16597
|
/**
|
|
16192
16598
|
* Discriminated target for a WebRTC session. The client sends this
|
|
16193
16599
|
* structured object instead of building / parsing brokerId strings;
|
|
@@ -16918,7 +17324,17 @@ var FaceInfoSchema = object({
|
|
|
16918
17324
|
recognizedIdentityId: string().optional(),
|
|
16919
17325
|
identityName: string().optional(),
|
|
16920
17326
|
assigned: boolean(),
|
|
16921
|
-
base64: string().optional()
|
|
17327
|
+
base64: string().optional(),
|
|
17328
|
+
/** Design B: the face bbox (pixel space) on the key frame — lets a detail
|
|
17329
|
+
* view draw the box over the native `keyFrameMediaKey` frame. Absent on
|
|
17330
|
+
* legacy rows written before design B. */
|
|
17331
|
+
faceBbox: BoundingBoxSchema.optional(),
|
|
17332
|
+
/** Design B: MediaStore key of the track's native-resolution key frame.
|
|
17333
|
+
* Fetch the native JPEG via the event-media data-plane
|
|
17334
|
+
* (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
|
|
17335
|
+
* track produced no key frame (e.g. native/onboard source) — the UI falls
|
|
17336
|
+
* back to the inline `base64` face crop. */
|
|
17337
|
+
keyFrameMediaKey: string().optional()
|
|
16922
17338
|
});
|
|
16923
17339
|
var FaceFilterEnum = _enum([
|
|
16924
17340
|
"unassigned",
|
|
@@ -17615,6 +18031,16 @@ var TopologyCategorySchema = object({
|
|
|
17615
18031
|
healthy: number(),
|
|
17616
18032
|
addons: array(TopologyCategoryAddonSchema).readonly()
|
|
17617
18033
|
});
|
|
18034
|
+
/**
|
|
18035
|
+
* The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
|
|
18036
|
+
* `@camstack/agent` on agents) as reported by its `registerNode` manifest —
|
|
18037
|
+
* version visibility for the Server management surface. Nullable: offline
|
|
18038
|
+
* rows and pre-phase-2 nodes report none.
|
|
18039
|
+
*/
|
|
18040
|
+
var TopologyRootPackageSchema = object({
|
|
18041
|
+
name: string(),
|
|
18042
|
+
version: string()
|
|
18043
|
+
});
|
|
17618
18044
|
var TopologyNodeSchema = object({
|
|
17619
18045
|
id: string(),
|
|
17620
18046
|
name: string(),
|
|
@@ -17638,7 +18064,8 @@ var TopologyNodeSchema = object({
|
|
|
17638
18064
|
status: string()
|
|
17639
18065
|
})).readonly(),
|
|
17640
18066
|
processes: array(TopologyProcessSchema).readonly(),
|
|
17641
|
-
categories: array(TopologyCategorySchema).readonly()
|
|
18067
|
+
categories: array(TopologyCategorySchema).readonly(),
|
|
18068
|
+
rootPackage: TopologyRootPackageSchema.nullable()
|
|
17642
18069
|
});
|
|
17643
18070
|
var CapUsageEdgeSchema = object({
|
|
17644
18071
|
callerAddonId: string(),
|
|
@@ -20438,6 +20865,12 @@ Object.freeze({
|
|
|
20438
20865
|
addonId: null,
|
|
20439
20866
|
access: "create"
|
|
20440
20867
|
},
|
|
20868
|
+
"loginMethod.getLoginMethods": {
|
|
20869
|
+
capName: "login-method",
|
|
20870
|
+
capScope: "system",
|
|
20871
|
+
addonId: null,
|
|
20872
|
+
access: "view"
|
|
20873
|
+
},
|
|
20441
20874
|
"mediaPlayer.next": {
|
|
20442
20875
|
capName: "media-player",
|
|
20443
20876
|
capScope: "device",
|
|
@@ -21020,6 +21453,12 @@ Object.freeze({
|
|
|
21020
21453
|
addonId: null,
|
|
21021
21454
|
access: "view"
|
|
21022
21455
|
},
|
|
21456
|
+
"pipelineAnalytics.getKeyEvents": {
|
|
21457
|
+
capName: "pipeline-analytics",
|
|
21458
|
+
capScope: "device",
|
|
21459
|
+
addonId: null,
|
|
21460
|
+
access: "view"
|
|
21461
|
+
},
|
|
21023
21462
|
"pipelineAnalytics.getMotionEvents": {
|
|
21024
21463
|
capName: "pipeline-analytics",
|
|
21025
21464
|
capScope: "device",
|
|
@@ -21068,23 +21507,23 @@ Object.freeze({
|
|
|
21068
21507
|
addonId: null,
|
|
21069
21508
|
access: "create"
|
|
21070
21509
|
},
|
|
21071
|
-
"pipelineExecutor.
|
|
21510
|
+
"pipelineExecutor.clearDeviceOverrides": {
|
|
21072
21511
|
capName: "pipeline-executor",
|
|
21073
21512
|
capScope: "system",
|
|
21074
21513
|
addonId: null,
|
|
21075
21514
|
access: "delete"
|
|
21076
21515
|
},
|
|
21077
|
-
"pipelineExecutor.
|
|
21516
|
+
"pipelineExecutor.deleteModel": {
|
|
21078
21517
|
capName: "pipeline-executor",
|
|
21079
21518
|
capScope: "system",
|
|
21080
21519
|
addonId: null,
|
|
21081
21520
|
access: "delete"
|
|
21082
21521
|
},
|
|
21083
|
-
"pipelineExecutor.
|
|
21522
|
+
"pipelineExecutor.deleteTemplate": {
|
|
21084
21523
|
capName: "pipeline-executor",
|
|
21085
21524
|
capScope: "system",
|
|
21086
21525
|
addonId: null,
|
|
21087
|
-
access: "
|
|
21526
|
+
access: "delete"
|
|
21088
21527
|
},
|
|
21089
21528
|
"pipelineExecutor.downloadModel": {
|
|
21090
21529
|
capName: "pipeline-executor",
|
|
@@ -21278,13 +21717,13 @@ Object.freeze({
|
|
|
21278
21717
|
addonId: null,
|
|
21279
21718
|
access: "create"
|
|
21280
21719
|
},
|
|
21281
|
-
"
|
|
21282
|
-
capName: "pipeline-
|
|
21720
|
+
"pipelineExecutor.validatePipeline": {
|
|
21721
|
+
capName: "pipeline-executor",
|
|
21283
21722
|
capScope: "system",
|
|
21284
21723
|
addonId: null,
|
|
21285
|
-
access: "
|
|
21724
|
+
access: "view"
|
|
21286
21725
|
},
|
|
21287
|
-
"pipelineOrchestrator.
|
|
21726
|
+
"pipelineOrchestrator.assignAudio": {
|
|
21288
21727
|
capName: "pipeline-orchestrator",
|
|
21289
21728
|
capScope: "system",
|
|
21290
21729
|
addonId: null,
|
|
@@ -21368,19 +21807,13 @@ Object.freeze({
|
|
|
21368
21807
|
addonId: null,
|
|
21369
21808
|
access: "view"
|
|
21370
21809
|
},
|
|
21371
|
-
"pipelineOrchestrator.
|
|
21372
|
-
capName: "pipeline-orchestrator",
|
|
21373
|
-
capScope: "system",
|
|
21374
|
-
addonId: null,
|
|
21375
|
-
access: "view"
|
|
21376
|
-
},
|
|
21377
|
-
"pipelineOrchestrator.getDecoderAssignments": {
|
|
21810
|
+
"pipelineOrchestrator.getGlobalMetrics": {
|
|
21378
21811
|
capName: "pipeline-orchestrator",
|
|
21379
21812
|
capScope: "system",
|
|
21380
21813
|
addonId: null,
|
|
21381
21814
|
access: "view"
|
|
21382
21815
|
},
|
|
21383
|
-
"pipelineOrchestrator.
|
|
21816
|
+
"pipelineOrchestrator.getIngestOwner": {
|
|
21384
21817
|
capName: "pipeline-orchestrator",
|
|
21385
21818
|
capScope: "system",
|
|
21386
21819
|
addonId: null,
|
|
@@ -21422,6 +21855,12 @@ Object.freeze({
|
|
|
21422
21855
|
addonId: null,
|
|
21423
21856
|
access: "delete"
|
|
21424
21857
|
},
|
|
21858
|
+
"pipelineOrchestrator.resetNodePipelineDefaults": {
|
|
21859
|
+
capName: "pipeline-orchestrator",
|
|
21860
|
+
capScope: "system",
|
|
21861
|
+
addonId: null,
|
|
21862
|
+
access: "delete"
|
|
21863
|
+
},
|
|
21425
21864
|
"pipelineOrchestrator.resolvePipeline": {
|
|
21426
21865
|
capName: "pipeline-orchestrator",
|
|
21427
21866
|
capScope: "system",
|
|
@@ -21458,37 +21897,37 @@ Object.freeze({
|
|
|
21458
21897
|
addonId: null,
|
|
21459
21898
|
access: "create"
|
|
21460
21899
|
},
|
|
21461
|
-
"pipelineOrchestrator.
|
|
21900
|
+
"pipelineOrchestrator.setAgentReachableHost": {
|
|
21462
21901
|
capName: "pipeline-orchestrator",
|
|
21463
21902
|
capScope: "system",
|
|
21464
21903
|
addonId: null,
|
|
21465
21904
|
access: "create"
|
|
21466
21905
|
},
|
|
21467
|
-
"pipelineOrchestrator.
|
|
21906
|
+
"pipelineOrchestrator.setCameraPipelineForAgent": {
|
|
21468
21907
|
capName: "pipeline-orchestrator",
|
|
21469
21908
|
capScope: "system",
|
|
21470
21909
|
addonId: null,
|
|
21471
21910
|
access: "create"
|
|
21472
21911
|
},
|
|
21473
|
-
"pipelineOrchestrator.
|
|
21912
|
+
"pipelineOrchestrator.setCameraStepOverride": {
|
|
21474
21913
|
capName: "pipeline-orchestrator",
|
|
21475
21914
|
capScope: "system",
|
|
21476
21915
|
addonId: null,
|
|
21477
21916
|
access: "create"
|
|
21478
21917
|
},
|
|
21479
|
-
"pipelineOrchestrator.
|
|
21918
|
+
"pipelineOrchestrator.setCameraStepToggle": {
|
|
21480
21919
|
capName: "pipeline-orchestrator",
|
|
21481
21920
|
capScope: "system",
|
|
21482
21921
|
addonId: null,
|
|
21483
21922
|
access: "create"
|
|
21484
21923
|
},
|
|
21485
|
-
"pipelineOrchestrator.
|
|
21924
|
+
"pipelineOrchestrator.setCapabilityBinding": {
|
|
21486
21925
|
capName: "pipeline-orchestrator",
|
|
21487
21926
|
capScope: "system",
|
|
21488
21927
|
addonId: null,
|
|
21489
21928
|
access: "create"
|
|
21490
21929
|
},
|
|
21491
|
-
"pipelineOrchestrator.
|
|
21930
|
+
"pipelineOrchestrator.unassignAudio": {
|
|
21492
21931
|
capName: "pipeline-orchestrator",
|
|
21493
21932
|
capScope: "system",
|
|
21494
21933
|
addonId: null,
|
|
@@ -21548,6 +21987,12 @@ Object.freeze({
|
|
|
21548
21987
|
addonId: null,
|
|
21549
21988
|
access: "view"
|
|
21550
21989
|
},
|
|
21990
|
+
"pipelineRunner.getNativeCrop": {
|
|
21991
|
+
capName: "pipeline-runner",
|
|
21992
|
+
capScope: "system",
|
|
21993
|
+
addonId: null,
|
|
21994
|
+
access: "view"
|
|
21995
|
+
},
|
|
21551
21996
|
"pipelineRunner.reportMotion": {
|
|
21552
21997
|
capName: "pipeline-runner",
|
|
21553
21998
|
capScope: "system",
|
|
@@ -21788,33 +22233,45 @@ Object.freeze({
|
|
|
21788
22233
|
addonId: null,
|
|
21789
22234
|
access: "create"
|
|
21790
22235
|
},
|
|
21791
|
-
"
|
|
21792
|
-
capName: "
|
|
22236
|
+
"scriptRunner.run": {
|
|
22237
|
+
capName: "script-runner",
|
|
22238
|
+
capScope: "device",
|
|
22239
|
+
addonId: null,
|
|
22240
|
+
access: "create"
|
|
22241
|
+
},
|
|
22242
|
+
"scriptRunner.stop": {
|
|
22243
|
+
capName: "script-runner",
|
|
22244
|
+
capScope: "device",
|
|
22245
|
+
addonId: null,
|
|
22246
|
+
access: "create"
|
|
22247
|
+
},
|
|
22248
|
+
"serverManagement.applyServerUpdate": {
|
|
22249
|
+
capName: "server-management",
|
|
21793
22250
|
capScope: "system",
|
|
21794
22251
|
addonId: null,
|
|
21795
|
-
access: "
|
|
22252
|
+
access: "create"
|
|
21796
22253
|
},
|
|
21797
|
-
"
|
|
21798
|
-
capName: "
|
|
22254
|
+
"serverManagement.checkServerUpdate": {
|
|
22255
|
+
capName: "server-management",
|
|
21799
22256
|
capScope: "system",
|
|
21800
22257
|
addonId: null,
|
|
21801
22258
|
access: "create"
|
|
21802
22259
|
},
|
|
21803
|
-
"
|
|
21804
|
-
capName: "
|
|
22260
|
+
"serverManagement.getServerPackageStatus": {
|
|
22261
|
+
capName: "server-management",
|
|
21805
22262
|
capScope: "system",
|
|
21806
22263
|
addonId: null,
|
|
21807
|
-
access: "
|
|
22264
|
+
access: "view"
|
|
21808
22265
|
},
|
|
21809
|
-
"
|
|
21810
|
-
capName: "
|
|
21811
|
-
capScope: "
|
|
22266
|
+
"serverManagement.restartServer": {
|
|
22267
|
+
capName: "server-management",
|
|
22268
|
+
capScope: "system",
|
|
21812
22269
|
addonId: null,
|
|
21813
22270
|
access: "create"
|
|
21814
22271
|
},
|
|
21815
|
-
"
|
|
21816
|
-
capName: "
|
|
21817
|
-
capScope: "
|
|
22272
|
+
"serverManagement.rollbackServerUpdate": {
|
|
22273
|
+
capName: "server-management",
|
|
22274
|
+
capScope: "system",
|
|
21818
22275
|
addonId: null,
|
|
21819
22276
|
access: "create"
|
|
21820
22277
|
},
|
|
@@ -21902,23 +22359,17 @@ Object.freeze({
|
|
|
21902
22359
|
addonId: null,
|
|
21903
22360
|
access: "view"
|
|
21904
22361
|
},
|
|
21905
|
-
"snapshot.
|
|
22362
|
+
"snapshot.getSnapshotOverview": {
|
|
21906
22363
|
capName: "snapshot",
|
|
21907
22364
|
capScope: "device",
|
|
21908
22365
|
addonId: null,
|
|
21909
|
-
access: "create"
|
|
21910
|
-
},
|
|
21911
|
-
"snapshotProvider.getSnapshot": {
|
|
21912
|
-
capName: "snapshot-provider",
|
|
21913
|
-
capScope: "system",
|
|
21914
|
-
addonId: null,
|
|
21915
22366
|
access: "view"
|
|
21916
22367
|
},
|
|
21917
|
-
"
|
|
21918
|
-
capName: "snapshot
|
|
21919
|
-
capScope: "
|
|
22368
|
+
"snapshot.invalidateCache": {
|
|
22369
|
+
capName: "snapshot",
|
|
22370
|
+
capScope: "device",
|
|
21920
22371
|
addonId: null,
|
|
21921
|
-
access: "
|
|
22372
|
+
access: "create"
|
|
21922
22373
|
},
|
|
21923
22374
|
"ssoBridge.signBridgeToken": {
|
|
21924
22375
|
capName: "sso-bridge",
|
|
@@ -22346,30 +22797,6 @@ Object.freeze({
|
|
|
22346
22797
|
addonId: null,
|
|
22347
22798
|
access: "view"
|
|
22348
22799
|
},
|
|
22349
|
-
"streamingEngine.getStreamUrl": {
|
|
22350
|
-
capName: "streaming-engine",
|
|
22351
|
-
capScope: "system",
|
|
22352
|
-
addonId: null,
|
|
22353
|
-
access: "view"
|
|
22354
|
-
},
|
|
22355
|
-
"streamingEngine.listStreams": {
|
|
22356
|
-
capName: "streaming-engine",
|
|
22357
|
-
capScope: "system",
|
|
22358
|
-
addonId: null,
|
|
22359
|
-
access: "view"
|
|
22360
|
-
},
|
|
22361
|
-
"streamingEngine.registerStream": {
|
|
22362
|
-
capName: "streaming-engine",
|
|
22363
|
-
capScope: "system",
|
|
22364
|
-
addonId: null,
|
|
22365
|
-
access: "create"
|
|
22366
|
-
},
|
|
22367
|
-
"streamingEngine.unregisterStream": {
|
|
22368
|
-
capName: "streaming-engine",
|
|
22369
|
-
capScope: "system",
|
|
22370
|
-
addonId: null,
|
|
22371
|
-
access: "delete"
|
|
22372
|
-
},
|
|
22373
22800
|
"streamParams.getConfigSchema": {
|
|
22374
22801
|
capName: "stream-params",
|
|
22375
22802
|
capScope: "device",
|
|
@@ -22616,6 +23043,12 @@ Object.freeze({
|
|
|
22616
23043
|
addonId: null,
|
|
22617
23044
|
access: "view"
|
|
22618
23045
|
},
|
|
23046
|
+
"userPasskeys.beginDiscoverableAuthentication": {
|
|
23047
|
+
capName: "user-passkeys",
|
|
23048
|
+
capScope: "system",
|
|
23049
|
+
addonId: null,
|
|
23050
|
+
access: "view"
|
|
23051
|
+
},
|
|
22619
23052
|
"userPasskeys.beginRegistration": {
|
|
22620
23053
|
capName: "user-passkeys",
|
|
22621
23054
|
capScope: "system",
|
|
@@ -22628,12 +23061,24 @@ Object.freeze({
|
|
|
22628
23061
|
addonId: null,
|
|
22629
23062
|
access: "view"
|
|
22630
23063
|
},
|
|
23064
|
+
"userPasskeys.finishDiscoverableAuthentication": {
|
|
23065
|
+
capName: "user-passkeys",
|
|
23066
|
+
capScope: "system",
|
|
23067
|
+
addonId: null,
|
|
23068
|
+
access: "view"
|
|
23069
|
+
},
|
|
22631
23070
|
"userPasskeys.finishRegistration": {
|
|
22632
23071
|
capName: "user-passkeys",
|
|
22633
23072
|
capScope: "system",
|
|
22634
23073
|
addonId: null,
|
|
22635
23074
|
access: "create"
|
|
22636
23075
|
},
|
|
23076
|
+
"userPasskeys.getSecondFactorPreference": {
|
|
23077
|
+
capName: "user-passkeys",
|
|
23078
|
+
capScope: "system",
|
|
23079
|
+
addonId: null,
|
|
23080
|
+
access: "view"
|
|
23081
|
+
},
|
|
22637
23082
|
"userPasskeys.listPasskeys": {
|
|
22638
23083
|
capName: "user-passkeys",
|
|
22639
23084
|
capScope: "system",
|
|
@@ -22646,6 +23091,12 @@ Object.freeze({
|
|
|
22646
23091
|
addonId: null,
|
|
22647
23092
|
access: "delete"
|
|
22648
23093
|
},
|
|
23094
|
+
"userPasskeys.setSecondFactorPreference": {
|
|
23095
|
+
capName: "user-passkeys",
|
|
23096
|
+
capScope: "system",
|
|
23097
|
+
addonId: null,
|
|
23098
|
+
access: "create"
|
|
23099
|
+
},
|
|
22649
23100
|
"vacuumControl.locate": {
|
|
22650
23101
|
capName: "vacuum-control",
|
|
22651
23102
|
capScope: "device",
|
|
@@ -22718,6 +23169,18 @@ Object.freeze({
|
|
|
22718
23169
|
addonId: null,
|
|
22719
23170
|
access: "view"
|
|
22720
23171
|
},
|
|
23172
|
+
"viewerUi.getStaticDir": {
|
|
23173
|
+
capName: "viewer-ui",
|
|
23174
|
+
capScope: "system",
|
|
23175
|
+
addonId: null,
|
|
23176
|
+
access: "view"
|
|
23177
|
+
},
|
|
23178
|
+
"viewerUi.getVersion": {
|
|
23179
|
+
capName: "viewer-ui",
|
|
23180
|
+
capScope: "system",
|
|
23181
|
+
addonId: null,
|
|
23182
|
+
access: "view"
|
|
23183
|
+
},
|
|
22721
23184
|
"waterHeater.setAway": {
|
|
22722
23185
|
capName: "water-heater",
|
|
22723
23186
|
capScope: "device",
|
|
@@ -22736,54 +23199,6 @@ Object.freeze({
|
|
|
22736
23199
|
addonId: null,
|
|
22737
23200
|
access: "create"
|
|
22738
23201
|
},
|
|
22739
|
-
"webrtc.closeSession": {
|
|
22740
|
-
capName: "webrtc",
|
|
22741
|
-
capScope: "system",
|
|
22742
|
-
addonId: null,
|
|
22743
|
-
access: "create"
|
|
22744
|
-
},
|
|
22745
|
-
"webrtc.createSession": {
|
|
22746
|
-
capName: "webrtc",
|
|
22747
|
-
capScope: "system",
|
|
22748
|
-
addonId: null,
|
|
22749
|
-
access: "create"
|
|
22750
|
-
},
|
|
22751
|
-
"webrtc.handleAnswer": {
|
|
22752
|
-
capName: "webrtc",
|
|
22753
|
-
capScope: "system",
|
|
22754
|
-
addonId: null,
|
|
22755
|
-
access: "create"
|
|
22756
|
-
},
|
|
22757
|
-
"webrtc.handleOffer": {
|
|
22758
|
-
capName: "webrtc",
|
|
22759
|
-
capScope: "system",
|
|
22760
|
-
addonId: null,
|
|
22761
|
-
access: "create"
|
|
22762
|
-
},
|
|
22763
|
-
"webrtc.hasAdaptiveBitrate": {
|
|
22764
|
-
capName: "webrtc",
|
|
22765
|
-
capScope: "system",
|
|
22766
|
-
addonId: null,
|
|
22767
|
-
access: "view"
|
|
22768
|
-
},
|
|
22769
|
-
"webrtc.registerStream": {
|
|
22770
|
-
capName: "webrtc",
|
|
22771
|
-
capScope: "system",
|
|
22772
|
-
addonId: null,
|
|
22773
|
-
access: "create"
|
|
22774
|
-
},
|
|
22775
|
-
"webrtc.supportsStream": {
|
|
22776
|
-
capName: "webrtc",
|
|
22777
|
-
capScope: "system",
|
|
22778
|
-
addonId: null,
|
|
22779
|
-
access: "view"
|
|
22780
|
-
},
|
|
22781
|
-
"webrtc.unregisterStream": {
|
|
22782
|
-
capName: "webrtc",
|
|
22783
|
-
capScope: "system",
|
|
22784
|
-
addonId: null,
|
|
22785
|
-
access: "delete"
|
|
22786
|
-
},
|
|
22787
23202
|
"webrtcSession.addIceCandidate": {
|
|
22788
23203
|
capName: "webrtc-session",
|
|
22789
23204
|
capScope: "device",
|