@camstack/addon-provider-rademacher 0.1.5 → 0.1.7
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/addon.js +681 -288
- package/dist/addon.mjs +681 -288
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -5627,7 +5627,7 @@ function preprocess(fn, schema) {
|
|
|
5627
5627
|
});
|
|
5628
5628
|
}
|
|
5629
5629
|
//#endregion
|
|
5630
|
-
//#region ../types/dist/sleep-
|
|
5630
|
+
//#region ../types/dist/sleep-BC9Yqte7.mjs
|
|
5631
5631
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
5632
5632
|
EventCategory["SystemBoot"] = "system.boot";
|
|
5633
5633
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -5813,6 +5813,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
5813
5813
|
*/
|
|
5814
5814
|
EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
|
|
5815
5815
|
/**
|
|
5816
|
+
* The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
|
|
5817
|
+
* Emitted by addon-pipeline-orchestrator whenever it (re)derives node
|
|
5818
|
+
* capabilities — at boot, on agent online/offline, and on an ingest-node
|
|
5819
|
+
* flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
|
|
5820
|
+
* keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
|
|
5821
|
+
* cross-process `getIngestOwner` query (push the authority's decision instead
|
|
5822
|
+
* of polling it on the hot path). Idempotent state — re-emitted on every
|
|
5823
|
+
* topology change, so a dropped event self-heals on the next one (plus the
|
|
5824
|
+
* broker's long backstop reconcile query).
|
|
5825
|
+
*/
|
|
5826
|
+
EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
|
|
5827
|
+
/**
|
|
5816
5828
|
* Periodic snapshot of per-node pipeline-runner load
|
|
5817
5829
|
* (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
|
|
5818
5830
|
* subscribe instead of polling `pipelineRunner.getLocalLoad`.
|
|
@@ -6336,10 +6348,6 @@ function hydrateField(field, values) {
|
|
|
6336
6348
|
};
|
|
6337
6349
|
}
|
|
6338
6350
|
const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
|
|
6339
|
-
if (field.type === "password") return {
|
|
6340
|
-
...field,
|
|
6341
|
-
value: ""
|
|
6342
|
-
};
|
|
6343
6351
|
const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
|
|
6344
6352
|
return {
|
|
6345
6353
|
...field,
|
|
@@ -7723,10 +7731,25 @@ function method(input, output, options) {
|
|
|
7723
7731
|
timeoutMs: options?.timeoutMs
|
|
7724
7732
|
};
|
|
7725
7733
|
}
|
|
7734
|
+
/**
|
|
7735
|
+
* A wrapper/system-only method: served exclusively by the cap's system-level
|
|
7736
|
+
* provider (`InferProvider`), and OPTIONAL on `InferNativeProvider` so per-device
|
|
7737
|
+
* driver natives don't stub out a wrapper concern (e.g. a cross-device cache
|
|
7738
|
+
* overview). The `systemOnly: true` literal is what `InferNativeProvider` keys on.
|
|
7739
|
+
*/
|
|
7740
|
+
function systemMethod(input, output, options) {
|
|
7741
|
+
return {
|
|
7742
|
+
...method(input, output, options),
|
|
7743
|
+
systemOnly: true
|
|
7744
|
+
};
|
|
7745
|
+
}
|
|
7726
7746
|
/** Shorthand to define an event schema */
|
|
7727
7747
|
function event(data) {
|
|
7728
7748
|
return { data };
|
|
7729
7749
|
}
|
|
7750
|
+
var StaticDirOutputSchema$1 = object({ staticDir: string() });
|
|
7751
|
+
var VersionOutputSchema$1 = object({ version: string() });
|
|
7752
|
+
method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
|
|
7730
7753
|
var StaticDirOutputSchema = object({ staticDir: string() });
|
|
7731
7754
|
var VersionOutputSchema = object({ version: string() });
|
|
7732
7755
|
method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
|
|
@@ -7908,6 +7931,36 @@ var ModelFormatsSchema = object({
|
|
|
7908
7931
|
tflite: ModelFormatEntrySchema.optional(),
|
|
7909
7932
|
pt: ModelFormatEntrySchema.optional()
|
|
7910
7933
|
});
|
|
7934
|
+
/**
|
|
7935
|
+
* Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
|
|
7936
|
+
* the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
|
|
7937
|
+
* grouped Family→Tier→Variant picker renders identically in the config UI and
|
|
7938
|
+
* in the pipeline/device steppers. The flat `id` stays the source of truth for
|
|
7939
|
+
* resolution/download/persistence; this is a presentation overlay resolved back
|
|
7940
|
+
* to an `id`.
|
|
7941
|
+
*/
|
|
7942
|
+
var ModelVariantGroupSchema = object({
|
|
7943
|
+
/** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
|
|
7944
|
+
family: string(),
|
|
7945
|
+
/** Size within the family, e.g. `n` | `s` | `m` | `l`. */
|
|
7946
|
+
tier: string(),
|
|
7947
|
+
/** Quantization axis. Omit ⇒ the fp32 base build. */
|
|
7948
|
+
precision: _enum(["fp32", "int8"]).optional(),
|
|
7949
|
+
/**
|
|
7950
|
+
* Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
|
|
7951
|
+
* latency-optimized export (e.g. ReLU-activation variant) — the slot the
|
|
7952
|
+
* future performance variants plug into.
|
|
7953
|
+
*/
|
|
7954
|
+
optimization: _enum(["standard", "fast"]).optional(),
|
|
7955
|
+
/**
|
|
7956
|
+
* Input-resolution axis (square input side, px). Omit ⇒ the family's native
|
|
7957
|
+
* resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
|
|
7958
|
+
* cheap latency lever — especially on Apple ANE and the Intel N100 — at a
|
|
7959
|
+
* small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
|
|
7960
|
+
* the group so the selector can offer it as a variant axis.
|
|
7961
|
+
*/
|
|
7962
|
+
resolution: number().int().positive().optional()
|
|
7963
|
+
});
|
|
7911
7964
|
var ModelCatalogEntrySchema = object({
|
|
7912
7965
|
id: string(),
|
|
7913
7966
|
name: string(),
|
|
@@ -7937,7 +7990,43 @@ var ModelCatalogEntrySchema = object({
|
|
|
7937
7990
|
* Auxiliary files required at runtime (labels JSON, charset dict, etc.).
|
|
7938
7991
|
* Downloaded into the same modelsDir alongside the model file.
|
|
7939
7992
|
*/
|
|
7940
|
-
extraFiles: array(ModelExtraFileSchema).readonly().optional()
|
|
7993
|
+
extraFiles: array(ModelExtraFileSchema).readonly().optional(),
|
|
7994
|
+
/**
|
|
7995
|
+
* LEGACY entry — retained in the catalog so a persisted operator selection
|
|
7996
|
+
* still RESOLVES (and can be re-activated), but hidden from the selectable
|
|
7997
|
+
* model list and excluded from the auto format-default pick. Set on the
|
|
7998
|
+
* superseded / consolidated models (older lineages, redundant fp16 IRs) so
|
|
7999
|
+
* the active lineup stays the coherent curated ladder without deleting a
|
|
8000
|
+
* model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
|
|
8001
|
+
* an explicit legacy id that has a build for the node's format.
|
|
8002
|
+
*/
|
|
8003
|
+
legacy: boolean().optional(),
|
|
8004
|
+
/**
|
|
8005
|
+
* Measured quality/latency metadata — populated from the benchmark addon on
|
|
8006
|
+
* the real node classes. Absent = not yet measured (most entries today; the
|
|
8007
|
+
* catalog historically carried only `sizeMB`, a poor cross-architecture
|
|
8008
|
+
* speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
|
|
8009
|
+
*/
|
|
8010
|
+
metrics: object({
|
|
8011
|
+
map50: number().optional(),
|
|
8012
|
+
p95LatencyMs: record(string(), number()).optional()
|
|
8013
|
+
}).optional(),
|
|
8014
|
+
/**
|
|
8015
|
+
* SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
|
|
8016
|
+
* YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
|
|
8017
|
+
* the retraining addon and any future commercial distribution.
|
|
8018
|
+
*/
|
|
8019
|
+
license: string().optional(),
|
|
8020
|
+
/**
|
|
8021
|
+
* Variant-selector grouping. The UI groups models by `family` + `tier` and
|
|
8022
|
+
* offers `precision` / `optimization` as variant axes WITHIN a tier — so all
|
|
8023
|
+
* of a family's sizes and quantizations collapse into one grouped picker
|
|
8024
|
+
* instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
|
|
8025
|
+
* (legacy / custom models) — never shown in the grouped selector. The flat
|
|
8026
|
+
* `id` stays the source of truth for resolution/download/persistence; grouping
|
|
8027
|
+
* is a presentation overlay resolved back to an `id`.
|
|
8028
|
+
*/
|
|
8029
|
+
group: ModelVariantGroupSchema.optional()
|
|
7941
8030
|
});
|
|
7942
8031
|
var ConvertTargetSchema = discriminatedUnion("format", [object({
|
|
7943
8032
|
format: literal("openvino"),
|
|
@@ -7998,8 +8087,8 @@ var RecordingModeSchema = _enum([
|
|
|
7998
8087
|
"onAudioThreshold"
|
|
7999
8088
|
]);
|
|
8000
8089
|
/**
|
|
8001
|
-
* First-class, authoritative per-camera storage mode — the
|
|
8002
|
-
* reads directly (never inferred from `rules`):
|
|
8090
|
+
* First-class, authoritative per-camera storage mode — the explicit choice the
|
|
8091
|
+
* UI reads directly (never inferred from `rules`):
|
|
8003
8092
|
* - `off` — not recording.
|
|
8004
8093
|
* - `events` — record only around triggers (motion / audio threshold),
|
|
8005
8094
|
* with pre/post-buffer.
|
|
@@ -10162,26 +10251,13 @@ onBrightnessChanged: { data: object({
|
|
|
10162
10251
|
*/
|
|
10163
10252
|
runtimeState: BrightnessStatusSchema
|
|
10164
10253
|
};
|
|
10254
|
+
/** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
|
|
10165
10255
|
var StreamFormatSchema = _enum([
|
|
10166
10256
|
"webrtc",
|
|
10167
10257
|
"hls",
|
|
10168
10258
|
"mjpeg",
|
|
10169
10259
|
"rtsp"
|
|
10170
10260
|
]);
|
|
10171
|
-
var StreamInfoSchema = object({
|
|
10172
|
-
streamId: string(),
|
|
10173
|
-
format: StreamFormatSchema,
|
|
10174
|
-
url: string().nullable(),
|
|
10175
|
-
active: boolean()
|
|
10176
|
-
});
|
|
10177
|
-
method(object({
|
|
10178
|
-
streamId: string(),
|
|
10179
|
-
sourceUrl: string(),
|
|
10180
|
-
codec: string().optional()
|
|
10181
|
-
}), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
|
|
10182
|
-
streamId: string(),
|
|
10183
|
-
format: StreamFormatSchema
|
|
10184
|
-
}), string().nullable()), method(_void(), array(StreamInfoSchema));
|
|
10185
10261
|
var RtspRestreamEntrySchema = object({
|
|
10186
10262
|
brokerId: string(),
|
|
10187
10263
|
url: string(),
|
|
@@ -11049,37 +11125,7 @@ var consumablesCapability = {
|
|
|
11049
11125
|
scope: "device",
|
|
11050
11126
|
deviceNative: true,
|
|
11051
11127
|
mode: "singleton",
|
|
11052
|
-
deviceTypes:
|
|
11053
|
-
DeviceType.Camera,
|
|
11054
|
-
DeviceType.Hub,
|
|
11055
|
-
DeviceType.Light,
|
|
11056
|
-
DeviceType.Siren,
|
|
11057
|
-
DeviceType.Switch,
|
|
11058
|
-
DeviceType.Sensor,
|
|
11059
|
-
DeviceType.Thermostat,
|
|
11060
|
-
DeviceType.Button,
|
|
11061
|
-
DeviceType.EventEmitter,
|
|
11062
|
-
DeviceType.Update,
|
|
11063
|
-
DeviceType.Generic,
|
|
11064
|
-
DeviceType.Notifier,
|
|
11065
|
-
DeviceType.Script,
|
|
11066
|
-
DeviceType.Automation,
|
|
11067
|
-
DeviceType.Lock,
|
|
11068
|
-
DeviceType.Cover,
|
|
11069
|
-
DeviceType.Valve,
|
|
11070
|
-
DeviceType.Humidifier,
|
|
11071
|
-
DeviceType.WaterHeater,
|
|
11072
|
-
DeviceType.Fan,
|
|
11073
|
-
DeviceType.MediaPlayer,
|
|
11074
|
-
DeviceType.AlarmPanel,
|
|
11075
|
-
DeviceType.Control,
|
|
11076
|
-
DeviceType.Presence,
|
|
11077
|
-
DeviceType.Weather,
|
|
11078
|
-
DeviceType.Vacuum,
|
|
11079
|
-
DeviceType.LawnMower,
|
|
11080
|
-
DeviceType.Container,
|
|
11081
|
-
DeviceType.Image
|
|
11082
|
-
],
|
|
11128
|
+
deviceTypes: Object.values(DeviceType),
|
|
11083
11129
|
deviceConfig: { ui: {
|
|
11084
11130
|
kind: "widget",
|
|
11085
11131
|
widgetId: "host/consumables-panel",
|
|
@@ -12537,7 +12583,7 @@ var BoundingBoxSchema = object({
|
|
|
12537
12583
|
w: number(),
|
|
12538
12584
|
h: number()
|
|
12539
12585
|
});
|
|
12540
|
-
|
|
12586
|
+
object({
|
|
12541
12587
|
class: string(),
|
|
12542
12588
|
originalClass: string(),
|
|
12543
12589
|
score: number(),
|
|
@@ -12672,7 +12718,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
|
|
|
12672
12718
|
enabled: boolean(),
|
|
12673
12719
|
modelId: string(),
|
|
12674
12720
|
children: array(PipelineDefaultStepSchema).readonly(),
|
|
12675
|
-
engine: PipelineEngineChoiceSchema.optional(),
|
|
12676
12721
|
group: string().optional(),
|
|
12677
12722
|
settings: record(string(), unknown()).optional()
|
|
12678
12723
|
}));
|
|
@@ -12697,7 +12742,9 @@ var PipelineModelOptionSchema = object({
|
|
|
12697
12742
|
formats: record(string(), object({
|
|
12698
12743
|
downloaded: boolean(),
|
|
12699
12744
|
sizeMB: number()
|
|
12700
|
-
}))
|
|
12745
|
+
})),
|
|
12746
|
+
group: ModelVariantGroupSchema.optional(),
|
|
12747
|
+
legacy: boolean().optional()
|
|
12701
12748
|
});
|
|
12702
12749
|
var ConfigFieldBridge = custom();
|
|
12703
12750
|
var PipelineAddonSchemaSchema = object({
|
|
@@ -12711,6 +12758,7 @@ var PipelineAddonSchemaSchema = object({
|
|
|
12711
12758
|
defaultModelId: string(),
|
|
12712
12759
|
defaultModelIdByFormat: record(string(), string()).optional(),
|
|
12713
12760
|
enabledByDefault: boolean().optional(),
|
|
12761
|
+
backfillIntoExistingOverrides: boolean().optional(),
|
|
12714
12762
|
defaultConfidence: number(),
|
|
12715
12763
|
group: string().optional(),
|
|
12716
12764
|
configSchema: array(ConfigFieldBridge).readonly().optional()
|
|
@@ -12727,11 +12775,6 @@ var PipelineSchemaSchema = object({
|
|
|
12727
12775
|
selectedEngine: PipelineEngineChoiceSchema,
|
|
12728
12776
|
slots: array(PipelineSlotSchemaSchema).readonly()
|
|
12729
12777
|
});
|
|
12730
|
-
var DetectorOutputSchema = object({
|
|
12731
|
-
detections: array(SpatialDetectionSchema).readonly(),
|
|
12732
|
-
inferenceMs: number(),
|
|
12733
|
-
modelId: string()
|
|
12734
|
-
});
|
|
12735
12778
|
var EngineProvisioningSchema = object({
|
|
12736
12779
|
runtimeId: _enum([
|
|
12737
12780
|
"onnx",
|
|
@@ -12748,15 +12791,42 @@ var EngineProvisioningSchema = object({
|
|
|
12748
12791
|
]),
|
|
12749
12792
|
progress: number().optional(),
|
|
12750
12793
|
error: string().optional(),
|
|
12751
|
-
nextRetryAt: number().optional()
|
|
12794
|
+
nextRetryAt: number().optional(),
|
|
12795
|
+
/**
|
|
12796
|
+
* Gate A (config-correctness gate at engine change): human-readable
|
|
12797
|
+
* config issues surfaced EAGERLY when the node's engine changes — model
|
|
12798
|
+
* substitutions ("chose X, running Y") and zero-build steps ("no model
|
|
12799
|
+
* has a <format> build"). Additive/optional: informational only, never
|
|
12800
|
+
* enforced here — `assertEngineReady` (readiness) still gates inference.
|
|
12801
|
+
* Absent/empty when the node-default tree resolves cleanly.
|
|
12802
|
+
*/
|
|
12803
|
+
configIssues: array(string()).optional()
|
|
12752
12804
|
});
|
|
12753
12805
|
var PipelineStepInputSchema = lazy(() => object({
|
|
12754
12806
|
addonId: string(),
|
|
12755
|
-
modelId: string(),
|
|
12807
|
+
modelId: string().optional(),
|
|
12756
12808
|
enabled: boolean().default(true),
|
|
12757
12809
|
children: array(PipelineStepInputSchema).optional(),
|
|
12758
12810
|
settings: record(string(), unknown()).optional()
|
|
12759
12811
|
}));
|
|
12812
|
+
var ModelSubstitutionSchema = object({
|
|
12813
|
+
addonId: string(),
|
|
12814
|
+
chosen: string(),
|
|
12815
|
+
running: string(),
|
|
12816
|
+
format: string()
|
|
12817
|
+
});
|
|
12818
|
+
var PipelineValidationIssueSchema = object({
|
|
12819
|
+
addonId: string(),
|
|
12820
|
+
kind: _enum(["unknown-addon", "no-format-build"]),
|
|
12821
|
+
detail: string()
|
|
12822
|
+
});
|
|
12823
|
+
var PipelineValidationResultSchema = object({
|
|
12824
|
+
ok: boolean(),
|
|
12825
|
+
issues: array(PipelineValidationIssueSchema).readonly(),
|
|
12826
|
+
substitutions: array(ModelSubstitutionSchema).readonly(),
|
|
12827
|
+
/** The node's `currentEngine.format` this validation ran against. */
|
|
12828
|
+
format: string()
|
|
12829
|
+
});
|
|
12760
12830
|
var ReferenceImageEntrySchema = object({
|
|
12761
12831
|
filename: string(),
|
|
12762
12832
|
stepIds: array(string()).readonly().optional()
|
|
@@ -12827,7 +12897,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
12827
12897
|
})) }), object({ success: literal(true) }), {
|
|
12828
12898
|
kind: "mutation",
|
|
12829
12899
|
auth: "admin"
|
|
12830
|
-
}), method(
|
|
12900
|
+
}), method(object({ nodeId: string() }), object({
|
|
12901
|
+
success: literal(true),
|
|
12902
|
+
clearedDevices: number()
|
|
12903
|
+
}), {
|
|
12904
|
+
kind: "mutation",
|
|
12905
|
+
auth: "admin"
|
|
12906
|
+
}), 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({
|
|
12831
12907
|
name: string(),
|
|
12832
12908
|
steps: array(PipelineTemplateStepSchema).readonly(),
|
|
12833
12909
|
engine: PipelineEngineChoiceSchema
|
|
@@ -12844,10 +12920,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
12844
12920
|
modelId: string(),
|
|
12845
12921
|
format: ModelFormatSchema$1
|
|
12846
12922
|
}), object({ success: literal(true) }), { kind: "mutation" }), method(object({
|
|
12847
|
-
addonId: string(),
|
|
12848
|
-
frame: FrameInputSchema,
|
|
12849
|
-
config: record(string(), unknown()).optional()
|
|
12850
|
-
}), DetectorOutputSchema), method(object({
|
|
12851
12923
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
12852
12924
|
steps: array(PipelineStepInputSchema).min(1),
|
|
12853
12925
|
frame: FrameInputSchema.optional(),
|
|
@@ -13026,6 +13098,25 @@ var zonesCapability = {
|
|
|
13026
13098
|
runtimeState: object({ zones: array(ZoneSchema).readonly() })
|
|
13027
13099
|
};
|
|
13028
13100
|
/**
|
|
13101
|
+
* A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
|
|
13102
|
+
* decode worker resolves it against the RETAINED native frame's real pixel dims,
|
|
13103
|
+
* so the caller supplies only the detection-res bbox divided by the detection
|
|
13104
|
+
* dims — no native resolution to plumb.
|
|
13105
|
+
*/
|
|
13106
|
+
var NativeCropBboxSchema = object({
|
|
13107
|
+
x: number(),
|
|
13108
|
+
y: number(),
|
|
13109
|
+
w: number(),
|
|
13110
|
+
h: number()
|
|
13111
|
+
});
|
|
13112
|
+
/** Result of a best-effort native-resolution crop (`getNativeCrop`). */
|
|
13113
|
+
var NativeCropResultSchema = object({
|
|
13114
|
+
/** Packed rgb (24-bit) pixels of the crop. */
|
|
13115
|
+
bytes: _instanceof(Uint8Array),
|
|
13116
|
+
width: number().int().positive(),
|
|
13117
|
+
height: number().int().positive()
|
|
13118
|
+
});
|
|
13119
|
+
/**
|
|
13029
13120
|
* Per-camera tunable ranges + defaults. Single source of truth used
|
|
13030
13121
|
* by both the Zod data schema (validation + default fallback) and
|
|
13031
13122
|
* the device settings UI (slider min/max/step). Touch one place and
|
|
@@ -13120,6 +13211,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
|
|
|
13120
13211
|
kind: literal("remote-restream"),
|
|
13121
13212
|
/** The camera's source-owner node (slice 1: always the hub). */
|
|
13122
13213
|
ownerNodeId: string(),
|
|
13214
|
+
/**
|
|
13215
|
+
* The owner's LAN-reachable host, resolved by the orchestrator from the
|
|
13216
|
+
* per-node `reachableHost` override (Cluster UI). When present the runner
|
|
13217
|
+
* dials THIS host for the owner's restream, in preference to the
|
|
13218
|
+
* `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
|
|
13219
|
+
*/
|
|
13220
|
+
ownerReachableHost: string().optional(),
|
|
13123
13221
|
/** Operator override for the owner host the runner dials. */
|
|
13124
13222
|
hubHostnameOverride: string().optional()
|
|
13125
13223
|
})]).describe("Per-camera frame-source mode for the runner (P2c)");
|
|
@@ -13128,13 +13226,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
|
|
|
13128
13226
|
* specific runner instance via `attachCamera`. Carries everything the
|
|
13129
13227
|
* runner needs to subscribe to the local broker and execute inference.
|
|
13130
13228
|
*
|
|
13131
|
-
* Stateless-pipeline model: the
|
|
13132
|
-
*
|
|
13133
|
-
*
|
|
13134
|
-
*
|
|
13135
|
-
*
|
|
13136
|
-
* `engine`/`steps`/`audio` are optional during the additive migration
|
|
13137
|
-
* window; once orchestrator + UI are migrated they become required.
|
|
13229
|
+
* Stateless-pipeline model: the pipeline content (`steps`, optional
|
|
13230
|
+
* `audio`) travels with the attach payload. The runner keeps it in RAM
|
|
13231
|
+
* for the lifetime of the attach — on rebalance, edit, or restart the
|
|
13232
|
+
* orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
|
|
13233
|
+
* node-local, resolved by the executing runner at dispatch time.
|
|
13138
13234
|
*/
|
|
13139
13235
|
var RunnerCameraConfigSchema = object({
|
|
13140
13236
|
deviceId: number(),
|
|
@@ -13185,14 +13281,11 @@ var RunnerCameraConfigSchema = object({
|
|
|
13185
13281
|
*/
|
|
13186
13282
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
13187
13283
|
pipelineEnabled: boolean().default(true),
|
|
13188
|
-
/** Engine choice for video steps (runtime+backend+format). */
|
|
13189
|
-
engine: PipelineEngineChoiceSchema.optional(),
|
|
13190
13284
|
/** Ordered tree of video steps. Absent → runner skips video detection. */
|
|
13191
13285
|
steps: array(PipelineStepInputSchema).readonly().optional(),
|
|
13192
13286
|
/** Audio classification branch. `enabled:false` disables, null skips. */
|
|
13193
13287
|
audio: object({
|
|
13194
|
-
|
|
13195
|
-
modelId: string(),
|
|
13288
|
+
modelId: string().optional(),
|
|
13196
13289
|
enabled: boolean()
|
|
13197
13290
|
}).nullable().optional(),
|
|
13198
13291
|
/**
|
|
@@ -13279,7 +13372,11 @@ var RunnerLocalMetricsSchema = object({
|
|
|
13279
13372
|
avgInferenceTimeMs: number(),
|
|
13280
13373
|
queueDepth: number()
|
|
13281
13374
|
});
|
|
13282
|
-
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())
|
|
13375
|
+
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({
|
|
13376
|
+
handle: FrameHandleSchema,
|
|
13377
|
+
bbox: NativeCropBboxSchema,
|
|
13378
|
+
maxWidth: number().int().positive().optional()
|
|
13379
|
+
}), NativeCropResultSchema.nullable());
|
|
13283
13380
|
/**
|
|
13284
13381
|
* Hardware / firmware motion sensor cap — binary detected state plus
|
|
13285
13382
|
* a timestamp of the last observation. Distinct from
|
|
@@ -16210,7 +16307,9 @@ var AddonPageDeclarationSchema$1 = object({
|
|
|
16210
16307
|
icon: string(),
|
|
16211
16308
|
path: string(),
|
|
16212
16309
|
remoteName: string(),
|
|
16213
|
-
bundle: string()
|
|
16310
|
+
bundle: string(),
|
|
16311
|
+
section: string().optional(),
|
|
16312
|
+
sectionLabel: string().optional()
|
|
16214
16313
|
});
|
|
16215
16314
|
var AddonPageInfoSchema = object({
|
|
16216
16315
|
addonId: string(),
|
|
@@ -16250,7 +16349,18 @@ var AddonPageDeclarationSchema = object({
|
|
|
16250
16349
|
* the static-file route can compute an mtime-based cache-buster URL
|
|
16251
16350
|
* without a separate filesystem stat.
|
|
16252
16351
|
*/
|
|
16253
|
-
bundle: string()
|
|
16352
|
+
bundle: string(),
|
|
16353
|
+
/**
|
|
16354
|
+
* Sidebar section this page docks into. Well-known ids: `'detection'`,
|
|
16355
|
+
* `'cluster'`, `'administration'` — the page renders inside that group.
|
|
16356
|
+
* Any OTHER string creates (or joins) a custom section rendered after
|
|
16357
|
+
* the built-in groups; its label comes from `sectionLabel` (first
|
|
16358
|
+
* declaration wins), falling back to the id. Absent → the legacy
|
|
16359
|
+
* "Addon Pages" group.
|
|
16360
|
+
*/
|
|
16361
|
+
section: string().optional(),
|
|
16362
|
+
/** Display label for a CUSTOM `section` id (ignored for well-known ids). */
|
|
16363
|
+
sectionLabel: string().optional()
|
|
16254
16364
|
});
|
|
16255
16365
|
method(_void(), array(AddonPageDeclarationSchema).readonly());
|
|
16256
16366
|
var AddonHttpRouteSchema = object({
|
|
@@ -16466,6 +16576,17 @@ var WidgetMetadataSchema = object({
|
|
|
16466
16576
|
deviceContext: boolean().default(false),
|
|
16467
16577
|
integrationContext: boolean().default(false)
|
|
16468
16578
|
}),
|
|
16579
|
+
/**
|
|
16580
|
+
* Loadable BEFORE authentication. The normal widget registry listing
|
|
16581
|
+
* (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
|
|
16582
|
+
* (the login page) cannot discover a widget through it. A widget that
|
|
16583
|
+
* declares `preAuth: true` marks itself as safe to mount on a pre-auth
|
|
16584
|
+
* screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
|
|
16585
|
+
* login-method contribution channel (see `login-method.cap.ts`) rather
|
|
16586
|
+
* than the authenticated registry, and its bundle is served by the
|
|
16587
|
+
* public `/api/addon-widgets/:addonId/*` static route. Defaults false.
|
|
16588
|
+
*/
|
|
16589
|
+
preAuth: boolean().optional().default(false),
|
|
16469
16590
|
/** Dashboard placement HINTS (operator can override per instance). */
|
|
16470
16591
|
defaultSize: WidgetSizeEnum.default("md"),
|
|
16471
16592
|
allowedSizes: array(WidgetSizeEnum).readonly().default([
|
|
@@ -16767,6 +16888,66 @@ method(object({
|
|
|
16767
16888
|
password: string()
|
|
16768
16889
|
}), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
|
|
16769
16890
|
/**
|
|
16891
|
+
* `login-method` — collection cap through which auth addons contribute
|
|
16892
|
+
* their pre-auth login surfaces to the login page. This is the SINGLE,
|
|
16893
|
+
* generic mechanism that supersedes the dead `auth.listProviders` reader:
|
|
16894
|
+
* every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
|
|
16895
|
+
* `login-method` provider and the PUBLIC `auth.listLoginMethods`
|
|
16896
|
+
* procedure aggregates them for the unauthenticated login page.
|
|
16897
|
+
*
|
|
16898
|
+
* A contribution is a discriminated union on `kind`:
|
|
16899
|
+
*
|
|
16900
|
+
* - `redirect` — a declarative button. The login page renders a generic
|
|
16901
|
+
* button that navigates to `startUrl` (an addon-owned HTTP route).
|
|
16902
|
+
* Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
|
|
16903
|
+
* ZERO shell-side JS. A future SSO addon plugs in the same way — the
|
|
16904
|
+
* login page needs NO change.
|
|
16905
|
+
*
|
|
16906
|
+
* - `widget` — a Module-Federation widget the login page mounts (via
|
|
16907
|
+
* `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
|
|
16908
|
+
* login ceremony, which must run `@simplewebauthn/browser` INSIDE the
|
|
16909
|
+
* addon bundle. The referenced widget also declares `preAuth: true` in
|
|
16910
|
+
* its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
|
|
16911
|
+
* stamps a public `bundleUrl` from `addonId` + `bundle`.
|
|
16912
|
+
*
|
|
16913
|
+
* Every contribution carries a `stage`:
|
|
16914
|
+
* - `primary` — shown on the first credentials screen (OIDC /
|
|
16915
|
+
* magic-link buttons; a future usernameless passkey).
|
|
16916
|
+
* - `second-factor` — shown AFTER the password leg, gated on the
|
|
16917
|
+
* returned `factors` (passkey-as-2FA today).
|
|
16918
|
+
*
|
|
16919
|
+
* `mount: skip` — the cap is read server-side by the core auth router
|
|
16920
|
+
* (`registry.getCollection('login-method')`), never mounted as its own
|
|
16921
|
+
* tRPC router.
|
|
16922
|
+
*/
|
|
16923
|
+
/** When a login method renders in the two-phase login flow. */
|
|
16924
|
+
var LoginStageEnum = _enum(["primary", "second-factor"]);
|
|
16925
|
+
/** One login-method contribution — redirect button OR pre-auth widget. */
|
|
16926
|
+
var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
|
|
16927
|
+
kind: literal("redirect"),
|
|
16928
|
+
/** Stable id within the login-method set (e.g. `auth-oidc/google`). */
|
|
16929
|
+
id: string(),
|
|
16930
|
+
/** Operator-facing button label. */
|
|
16931
|
+
label: string(),
|
|
16932
|
+
/** lucide-react icon name. */
|
|
16933
|
+
icon: string().optional(),
|
|
16934
|
+
/** Addon-owned HTTP route the button navigates to (GET). */
|
|
16935
|
+
startUrl: string(),
|
|
16936
|
+
stage: LoginStageEnum
|
|
16937
|
+
}), object({
|
|
16938
|
+
kind: literal("widget"),
|
|
16939
|
+
/** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
|
|
16940
|
+
id: string(),
|
|
16941
|
+
/** Owning addon id — drives the public bundle URL + the MF namespace. */
|
|
16942
|
+
addonId: string(),
|
|
16943
|
+
/** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
|
|
16944
|
+
bundle: string(),
|
|
16945
|
+
/** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
|
|
16946
|
+
remote: WidgetRemoteSchema,
|
|
16947
|
+
stage: LoginStageEnum
|
|
16948
|
+
})]);
|
|
16949
|
+
method(_void(), array(LoginMethodContributionSchema).readonly());
|
|
16950
|
+
/**
|
|
16770
16951
|
* Orchestrator-side destination metadata. The orchestrator computes
|
|
16771
16952
|
* `id = <addonId>:<subId>` from its provider lookup so consumers
|
|
16772
16953
|
* (admin UI, restore flow) see one canonical key.
|
|
@@ -18870,7 +19051,17 @@ var TrackSchema = object({
|
|
|
18870
19051
|
/** Cumulative normalized distance travelled (0..1 units = full frame width). */
|
|
18871
19052
|
totalDistance: number(),
|
|
18872
19053
|
state: TrackStateSchema,
|
|
18873
|
-
active: boolean()
|
|
19054
|
+
active: boolean(),
|
|
19055
|
+
/** Deterministic key-event importance score in [0,1] (server-computed at
|
|
19056
|
+
* track expiry, recomputed on late label). Absent on legacy rows written
|
|
19057
|
+
* before scoring shipped — consumers degrade to absence / compute-on-read. */
|
|
19058
|
+
importance: number().optional(),
|
|
19059
|
+
/** Id of the track's highest-confidence ObjectEvent (its representative
|
|
19060
|
+
* "best" frame). Absent when the track produced no object events. */
|
|
19061
|
+
bestEventId: string().optional(),
|
|
19062
|
+
/** Tag of the importance sub-signal that dominated the score
|
|
19063
|
+
* (identity|dwell|proximity|class|confidence|travel|zone). */
|
|
19064
|
+
importanceReason: string().optional()
|
|
18874
19065
|
});
|
|
18875
19066
|
var BaseEventFields = {
|
|
18876
19067
|
id: string(),
|
|
@@ -18935,8 +19126,18 @@ var ObjectEventSchema = object({
|
|
|
18935
19126
|
frameHeight: number().optional(),
|
|
18936
19127
|
/** MediaStore key for the crop attached to this event (if any). */
|
|
18937
19128
|
mediaKey: string().optional(),
|
|
19129
|
+
/** Design B: MediaStore key of the track's native-resolution key frame (the
|
|
19130
|
+
* best-detection full frame). Resolve via the event-media data-plane
|
|
19131
|
+
* (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
|
|
19132
|
+
* draws `bbox` over the native frame. Absent on legacy rows / non-decoded
|
|
19133
|
+
* sources — consumers fall back to `mediaKey` (the tight crop). */
|
|
19134
|
+
keyFrameMediaKey: string().optional(),
|
|
18938
19135
|
/** Populated by B5 (recording playback URL for this event). */
|
|
18939
|
-
mediaUrl: string().optional()
|
|
19136
|
+
mediaUrl: string().optional(),
|
|
19137
|
+
/** The parent track's key-event importance [0,1], propagated to every object
|
|
19138
|
+
* event of the track (so an event row can be sorted by importance without a
|
|
19139
|
+
* track join). Absent on legacy rows / before the track was scored. */
|
|
19140
|
+
importance: number().optional()
|
|
18940
19141
|
});
|
|
18941
19142
|
var AudioEventSchema = object({
|
|
18942
19143
|
...BaseEventFields,
|
|
@@ -18960,7 +19161,8 @@ var MediaFileKindEnum = _enum([
|
|
|
18960
19161
|
"fullFrame",
|
|
18961
19162
|
"fullFrameBoxed",
|
|
18962
19163
|
"faceCrop",
|
|
18963
|
-
"plateCrop"
|
|
19164
|
+
"plateCrop",
|
|
19165
|
+
"keyFrame"
|
|
18964
19166
|
]);
|
|
18965
19167
|
var MediaFileSchema = object({
|
|
18966
19168
|
key: string(),
|
|
@@ -18981,6 +19183,32 @@ var DeviceEventQueryInput = object({
|
|
|
18981
19183
|
projection: _enum(["full", "slim"]).optional()
|
|
18982
19184
|
});
|
|
18983
19185
|
var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
|
|
19186
|
+
var KeyEventQueryInput = object({
|
|
19187
|
+
deviceId: number(),
|
|
19188
|
+
/** Window lower bound (track firstSeen ≥ since). */
|
|
19189
|
+
since: number(),
|
|
19190
|
+
/** Window upper bound (track firstSeen ≤ until). */
|
|
19191
|
+
until: number(),
|
|
19192
|
+
limit: number().int().min(1).max(200).default(50),
|
|
19193
|
+
/** Drop tracks scoring below this importance. */
|
|
19194
|
+
minImportance: number().min(0).max(1).optional(),
|
|
19195
|
+
/** Restrict to a single class (e.g. 'person'). */
|
|
19196
|
+
classFilter: string().optional()
|
|
19197
|
+
});
|
|
19198
|
+
var KeyEventSchema = object({
|
|
19199
|
+
/** The representative event id (the track's best ObjectEvent, else its trackId). */
|
|
19200
|
+
id: string(),
|
|
19201
|
+
trackId: string(),
|
|
19202
|
+
/** Track start time (firstSeen). */
|
|
19203
|
+
timestamp: number(),
|
|
19204
|
+
className: string(),
|
|
19205
|
+
label: string().optional(),
|
|
19206
|
+
importance: number(),
|
|
19207
|
+
/** Highest-confidence ObjectEvent id for the track (empty when none). */
|
|
19208
|
+
bestEventId: string(),
|
|
19209
|
+
/** Track lifetime in ms (lastSeen - firstSeen). */
|
|
19210
|
+
windowMs: number().optional()
|
|
19211
|
+
});
|
|
18984
19212
|
var TrackedDetectionSchema = object({
|
|
18985
19213
|
trackId: string(),
|
|
18986
19214
|
className: string(),
|
|
@@ -19010,7 +19238,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
19010
19238
|
}), array(TrackSchema).readonly()), method(object({ deviceId: number() }), _void(), {
|
|
19011
19239
|
kind: "mutation",
|
|
19012
19240
|
auth: "admin"
|
|
19013
|
-
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({
|
|
19241
|
+
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
|
|
19014
19242
|
deviceId: number(),
|
|
19015
19243
|
since: number(),
|
|
19016
19244
|
until: number(),
|
|
@@ -19055,11 +19283,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
19055
19283
|
timestamp: number()
|
|
19056
19284
|
});
|
|
19057
19285
|
var CameraPipelineConfigSchema = object({
|
|
19058
|
-
engine: PipelineEngineChoiceSchema,
|
|
19286
|
+
engine: PipelineEngineChoiceSchema.optional(),
|
|
19059
19287
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
19060
19288
|
audio: object({
|
|
19061
|
-
engine: PipelineEngineChoiceSchema,
|
|
19062
|
-
modelId: string(),
|
|
19289
|
+
engine: PipelineEngineChoiceSchema.optional(),
|
|
19290
|
+
modelId: string().optional(),
|
|
19063
19291
|
enabled: boolean(),
|
|
19064
19292
|
settings: record(string(), unknown()).readonly().optional()
|
|
19065
19293
|
}).nullable().optional()
|
|
@@ -19074,7 +19302,7 @@ var PipelineTemplateSchema = object({
|
|
|
19074
19302
|
});
|
|
19075
19303
|
var AgentAddonConfigSchema = object({
|
|
19076
19304
|
enabled: boolean(),
|
|
19077
|
-
modelId: string(),
|
|
19305
|
+
modelId: string().optional(),
|
|
19078
19306
|
settings: record(string(), unknown()).readonly()
|
|
19079
19307
|
});
|
|
19080
19308
|
var AgentPipelineSettingsSchema = object({
|
|
@@ -19084,12 +19312,25 @@ var AgentPipelineSettingsSchema = object({
|
|
|
19084
19312
|
detectWeight: number().positive().optional(),
|
|
19085
19313
|
/** Node is eligible to run the detection pipeline (decode + inference). */
|
|
19086
19314
|
detect: boolean().optional(),
|
|
19087
|
-
/**
|
|
19315
|
+
/**
|
|
19316
|
+
* DEPRECATED AND IGNORED. Decode is always co-located with its frame
|
|
19317
|
+
* consumer, so decode eligibility IS detect eligibility. Kept optional in
|
|
19318
|
+
* the schema ONLY so persisted stores written before the removal still
|
|
19319
|
+
* parse — no code reads it and no write path emits it.
|
|
19320
|
+
*/
|
|
19088
19321
|
decode: boolean().optional(),
|
|
19089
19322
|
/** Node is eligible to run audio-analyzer sessions. */
|
|
19090
19323
|
audio: boolean().optional(),
|
|
19091
19324
|
/** Node is eligible to be the ingest / source-owner (serve the restream). */
|
|
19092
|
-
ingest: boolean().optional()
|
|
19325
|
+
ingest: boolean().optional(),
|
|
19326
|
+
/**
|
|
19327
|
+
* Operator override for the LAN host a cross-node decoder dials to reach
|
|
19328
|
+
* THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
|
|
19329
|
+
* falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
|
|
19330
|
+
* it already uses to reach the hub). Set this only when the auto-detected
|
|
19331
|
+
* address is wrong (multi-homed host, NAT, custom interface).
|
|
19332
|
+
*/
|
|
19333
|
+
reachableHost: string().optional()
|
|
19093
19334
|
});
|
|
19094
19335
|
var CameraPipelineForAgentSchema = object({
|
|
19095
19336
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -19137,25 +19378,6 @@ var PipelineAssignmentSchema = object({
|
|
|
19137
19378
|
assignedAt: number()
|
|
19138
19379
|
});
|
|
19139
19380
|
/**
|
|
19140
|
-
* Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
|
|
19141
|
-
* the decoder-node placement domain (`balanceDecoder` decision: manual pin
|
|
19142
|
-
* → co-located with pipeline → capacity).
|
|
19143
|
-
*/
|
|
19144
|
-
var DecoderAssignmentSchema = object({
|
|
19145
|
-
deviceId: number(),
|
|
19146
|
-
/** Moleculer node id of the decoder provider currently responsible for this camera. */
|
|
19147
|
-
decoderNodeId: string(),
|
|
19148
|
-
/** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
|
|
19149
|
-
pinned: boolean(),
|
|
19150
|
-
/** Why this assignment was made — useful for debugging the decoder balancer. */
|
|
19151
|
-
reason: _enum([
|
|
19152
|
-
"manual",
|
|
19153
|
-
"co-located",
|
|
19154
|
-
"capacity",
|
|
19155
|
-
"hardware-affinity"
|
|
19156
|
-
])
|
|
19157
|
-
});
|
|
19158
|
-
/**
|
|
19159
19381
|
* Per-agent load summary surfaced to the load balancer + dashboards.
|
|
19160
19382
|
* Aggregated from each runner's `getLocalLoad` cap call.
|
|
19161
19383
|
*/
|
|
@@ -19195,6 +19417,15 @@ var GlobalMetricsSchema = object({
|
|
|
19195
19417
|
* capability providers.
|
|
19196
19418
|
*/
|
|
19197
19419
|
var CapabilityBindingsSchema = record(string(), string());
|
|
19420
|
+
/**
|
|
19421
|
+
* The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
|
|
19422
|
+
* its LAN-reachable host, if one is registered. See `getIngestOwner`.
|
|
19423
|
+
*/
|
|
19424
|
+
var IngestOwnerSchema = object({
|
|
19425
|
+
ownerNodeId: string(),
|
|
19426
|
+
reachableHost: string().optional(),
|
|
19427
|
+
configIssue: string().optional()
|
|
19428
|
+
});
|
|
19198
19429
|
/** Source block — always present; derives from the stream catalog. */
|
|
19199
19430
|
var CameraSourceStatusSchema = object({ streams: array(object({
|
|
19200
19431
|
camStreamId: string(),
|
|
@@ -19209,6 +19440,14 @@ var CameraAssignmentStatusSchema = object({
|
|
|
19209
19440
|
detectionNodeId: string().nullable(),
|
|
19210
19441
|
decoderNodeId: string().nullable(),
|
|
19211
19442
|
audioNodeId: string().nullable(),
|
|
19443
|
+
/**
|
|
19444
|
+
* The node that OWNS this camera's physical source pull (dials the RTSP and
|
|
19445
|
+
* hosts the broker/restream) — the cluster ingest owner today
|
|
19446
|
+
* (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
|
|
19447
|
+
* the UI show WHERE a camera is sourced without SSH/logs, and is the node the
|
|
19448
|
+
* broker block below was read from (pinned). Nullable only pre-wiring.
|
|
19449
|
+
*/
|
|
19450
|
+
sourceNodeId: string().nullable(),
|
|
19212
19451
|
pinned: object({
|
|
19213
19452
|
detection: boolean(),
|
|
19214
19453
|
decoder: boolean(),
|
|
@@ -19341,16 +19580,7 @@ method(object({
|
|
|
19341
19580
|
}), object({ success: literal(true) }), {
|
|
19342
19581
|
kind: "mutation",
|
|
19343
19582
|
auth: "admin"
|
|
19344
|
-
}), method(object({
|
|
19345
|
-
deviceId: number(),
|
|
19346
|
-
nodeId: string()
|
|
19347
|
-
}), _void(), {
|
|
19348
|
-
kind: "mutation",
|
|
19349
|
-
auth: "admin"
|
|
19350
|
-
}), method(object({ deviceId: number() }), _void(), {
|
|
19351
|
-
kind: "mutation",
|
|
19352
|
-
auth: "admin"
|
|
19353
|
-
}), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
|
|
19583
|
+
}), method(_void(), IngestOwnerSchema), method(object({
|
|
19354
19584
|
deviceId: number(),
|
|
19355
19585
|
nodeId: string()
|
|
19356
19586
|
}), object({ success: literal(true) }), {
|
|
@@ -19371,10 +19601,7 @@ method(object({
|
|
|
19371
19601
|
nodeId: string(),
|
|
19372
19602
|
pinned: boolean(),
|
|
19373
19603
|
assignedAt: number()
|
|
19374
|
-
}))), method(object({
|
|
19375
|
-
deviceId: number(),
|
|
19376
|
-
pipelineNodeId: string().optional()
|
|
19377
|
-
}), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
|
|
19604
|
+
}))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
|
|
19378
19605
|
nodeId: string(),
|
|
19379
19606
|
settings: AgentPipelineSettingsSchema
|
|
19380
19607
|
})).readonly()), method(object({
|
|
@@ -19404,12 +19631,26 @@ method(object({
|
|
|
19404
19631
|
}), method(object({
|
|
19405
19632
|
agentNodeId: string(),
|
|
19406
19633
|
detect: boolean().nullable().optional(),
|
|
19407
|
-
decode: boolean().nullable().optional(),
|
|
19408
19634
|
audio: boolean().nullable().optional(),
|
|
19409
19635
|
ingest: boolean().nullable().optional()
|
|
19410
19636
|
}), object({ success: literal(true) }), {
|
|
19411
19637
|
kind: "mutation",
|
|
19412
19638
|
auth: "admin"
|
|
19639
|
+
}), method(object({
|
|
19640
|
+
agentNodeId: string(),
|
|
19641
|
+
reachableHost: string().nullable()
|
|
19642
|
+
}), object({ success: literal(true) }), {
|
|
19643
|
+
kind: "mutation",
|
|
19644
|
+
auth: "admin"
|
|
19645
|
+
}), method(object({ agentNodeId: string() }), object({
|
|
19646
|
+
success: literal(true),
|
|
19647
|
+
/** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
|
|
19648
|
+
effectiveModelId: string().nullable(),
|
|
19649
|
+
/** Number of cameras whose node-scoped overrides were cleared. */
|
|
19650
|
+
clearedCameraOverrides: number()
|
|
19651
|
+
}), {
|
|
19652
|
+
kind: "mutation",
|
|
19653
|
+
auth: "admin"
|
|
19413
19654
|
}), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
|
|
19414
19655
|
deviceId: number(),
|
|
19415
19656
|
addonId: string(),
|
|
@@ -19454,22 +19695,131 @@ method(object({
|
|
|
19454
19695
|
kind: "mutation",
|
|
19455
19696
|
auth: "admin"
|
|
19456
19697
|
});
|
|
19457
|
-
|
|
19458
|
-
|
|
19459
|
-
|
|
19460
|
-
|
|
19461
|
-
|
|
19462
|
-
|
|
19698
|
+
/**
|
|
19699
|
+
* server-management — per-NODE singleton capability for a node's ROOT
|
|
19700
|
+
* package lifecycle (runtime-updatable node packages, phase 2: hub + docker
|
|
19701
|
+
* agents).
|
|
19702
|
+
*
|
|
19703
|
+
* Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
|
|
19704
|
+
* on agents) carries the whole software stack in its npm dep tree, so ONE
|
|
19705
|
+
* version describes the node. Updates install into
|
|
19706
|
+
* `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
|
|
19707
|
+
* starter (probation boot + auto-rollback to N-1).
|
|
19708
|
+
*
|
|
19709
|
+
* Providers:
|
|
19710
|
+
* - HUB: `ServerUpdateService` behind the `server-provided` mount
|
|
19711
|
+
* (`buildServerProviders` in trpc.router.ts) — the default target for
|
|
19712
|
+
* unpinned calls.
|
|
19713
|
+
* - AGENT: `AgentUpdateService` registered by the agent bootstrap under
|
|
19714
|
+
* the synthetic `agent-runtime` addonId and declared in the agent's
|
|
19715
|
+
* `$hub.registerNode` manifest.
|
|
19716
|
+
*
|
|
19717
|
+
* Node routing: singleton caps get the codegen/runtime-builder `nodeId`
|
|
19718
|
+
* injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
|
|
19719
|
+
* SDK) routes the call to that node's provider via the standard remote
|
|
19720
|
+
* proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
|
|
19721
|
+
* in-process provider lookup). No `nodeId` → the hub's own provider.
|
|
19722
|
+
*
|
|
19723
|
+
* Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
|
|
19724
|
+
*/
|
|
19725
|
+
/**
|
|
19726
|
+
* Where the running hub's code was loaded from:
|
|
19727
|
+
* - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
|
|
19728
|
+
* plain resolution and runtime updates are refused.
|
|
19729
|
+
* - `baked` — the immutable image seed closure (no data-dir root active).
|
|
19730
|
+
* - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
|
|
19731
|
+
*/
|
|
19732
|
+
var ServerBootModeSchema = _enum([
|
|
19733
|
+
"workspace",
|
|
19734
|
+
"baked",
|
|
19735
|
+
"data-root"
|
|
19736
|
+
]);
|
|
19737
|
+
/**
|
|
19738
|
+
* Update lifecycle state:
|
|
19739
|
+
* - `idle` / `checking` / `staging` — steady / in-flight registry work.
|
|
19740
|
+
* - `pending-restart` — a version is staged and the node has NOT yet
|
|
19741
|
+
* restarted onto it (still running the OLD version).
|
|
19742
|
+
* - `awaiting-confirmation` — the node HAS restarted onto the staged version
|
|
19743
|
+
* (it is the active probation boot) and is waiting to confirm boot-health.
|
|
19744
|
+
* Apply/rollback are refused in this state and the node must NOT be
|
|
19745
|
+
* manually restarted, or the probation boot auto-rolls-back.
|
|
19746
|
+
*/
|
|
19747
|
+
var ServerUpdateStateSchema = _enum([
|
|
19748
|
+
"idle",
|
|
19749
|
+
"checking",
|
|
19750
|
+
"staging",
|
|
19751
|
+
"pending-restart",
|
|
19752
|
+
"awaiting-confirmation"
|
|
19753
|
+
]);
|
|
19754
|
+
var ServerRollbackInfoSchema = object({
|
|
19755
|
+
/** The version that failed (or was manually rolled back). */
|
|
19756
|
+
fromVersion: string(),
|
|
19757
|
+
/** The version rolled back to; null = the baked seed. */
|
|
19758
|
+
toVersion: string().nullable(),
|
|
19759
|
+
atMs: number(),
|
|
19760
|
+
reason: string()
|
|
19463
19761
|
});
|
|
19464
|
-
var
|
|
19465
|
-
|
|
19466
|
-
|
|
19467
|
-
|
|
19762
|
+
var ServerPackageStatusSchema = object({
|
|
19763
|
+
/** Root package name (`@camstack/server` on the hub). */
|
|
19764
|
+
packageName: string(),
|
|
19765
|
+
/** Version of the code the running process ACTUALLY loaded. */
|
|
19766
|
+
runningVersion: string().nullable(),
|
|
19767
|
+
/** Node.js runtime version the node's process runs on (`process.versions.node`). */
|
|
19768
|
+
nodeRuntimeVersion: string().nullable(),
|
|
19769
|
+
/** Active data-dir root version; null when booted from seed/workspace. */
|
|
19770
|
+
activeVersion: string().nullable(),
|
|
19771
|
+
/** N-1 version kept for rollback; null when no previous version exists. */
|
|
19772
|
+
previousVersion: string().nullable(),
|
|
19773
|
+
/** Version of the immutable baked seed closure (image fallback). */
|
|
19774
|
+
seedVersion: string().nullable(),
|
|
19775
|
+
/** Latest registry version from the most recent check (null = never checked). */
|
|
19776
|
+
latestVersion: string().nullable(),
|
|
19777
|
+
updateAvailable: boolean(),
|
|
19778
|
+
bootMode: ServerBootModeSchema,
|
|
19779
|
+
updateState: ServerUpdateStateSchema,
|
|
19780
|
+
/** Version staged + awaiting its probation boot, when one is pending. */
|
|
19781
|
+
pendingVersion: string().nullable(),
|
|
19782
|
+
/** Set when the last freshly-activated version failed its boot health-check. */
|
|
19783
|
+
rolledBack: ServerRollbackInfoSchema.nullable(),
|
|
19784
|
+
/**
|
|
19785
|
+
* True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
|
|
19786
|
+
* hub is running from the baked seed (or workspace) while installed data-dir
|
|
19787
|
+
* versions are being IGNORED. Surfaced as a warning in the UI.
|
|
19788
|
+
*/
|
|
19789
|
+
stateFileCorrupt: boolean(),
|
|
19790
|
+
lastCheckedAtMs: number().nullable()
|
|
19791
|
+
});
|
|
19792
|
+
var ServerUpdateCheckResultSchema = object({
|
|
19793
|
+
packageName: string(),
|
|
19794
|
+
runningVersion: string().nullable(),
|
|
19795
|
+
latestVersion: string().nullable(),
|
|
19796
|
+
updateAvailable: boolean(),
|
|
19797
|
+
checkedAtMs: number(),
|
|
19798
|
+
/** Non-null when the registry lookup failed (offline, bad registry, …). */
|
|
19799
|
+
error: string().nullable()
|
|
19800
|
+
});
|
|
19801
|
+
var ServerUpdateActionResultSchema = object({
|
|
19802
|
+
accepted: boolean(),
|
|
19803
|
+
targetVersion: string().nullable(),
|
|
19804
|
+
/** True when a graceful restart was scheduled to apply the change. */
|
|
19805
|
+
restarting: boolean(),
|
|
19806
|
+
message: string()
|
|
19807
|
+
});
|
|
19808
|
+
method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
|
|
19809
|
+
kind: "mutation",
|
|
19810
|
+
auth: "admin"
|
|
19811
|
+
}), method(object({
|
|
19812
|
+
/** Explicit target version; omitted = latest from the registry. */
|
|
19813
|
+
version: string().optional() }), ServerUpdateActionResultSchema, {
|
|
19814
|
+
kind: "mutation",
|
|
19815
|
+
auth: "admin"
|
|
19816
|
+
}), method(_void(), ServerUpdateActionResultSchema, {
|
|
19817
|
+
kind: "mutation",
|
|
19818
|
+
auth: "admin"
|
|
19819
|
+
}), method(_void(), ServerUpdateActionResultSchema, {
|
|
19820
|
+
kind: "mutation",
|
|
19821
|
+
auth: "admin"
|
|
19468
19822
|
});
|
|
19469
|
-
method(object({
|
|
19470
|
-
deviceId: number(),
|
|
19471
|
-
streams: array(RegisteredStreamSchema).readonly()
|
|
19472
|
-
}), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(ExposedResourceSchema).readonly());
|
|
19473
19823
|
/**
|
|
19474
19824
|
* Query filter for settings-store collections.
|
|
19475
19825
|
*/
|
|
@@ -19622,9 +19972,9 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
|
|
|
19622
19972
|
/**
|
|
19623
19973
|
* A single device snapshot returned as base64 JPEG/PNG.
|
|
19624
19974
|
*
|
|
19625
|
-
*
|
|
19626
|
-
*
|
|
19627
|
-
*
|
|
19975
|
+
* The `SnapshotAddon` wrapper returns this shape whether the frame came from
|
|
19976
|
+
* the device-native provider (onboard capture) or from the stream-broker
|
|
19977
|
+
* prebuffer fallback.
|
|
19628
19978
|
*/
|
|
19629
19979
|
var SnapshotImageSchema = object({
|
|
19630
19980
|
base64: string(),
|
|
@@ -19655,11 +20005,12 @@ DeviceType.Camera, method(object({
|
|
|
19655
20005
|
}), SnapshotImageSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
19656
20006
|
kind: "mutation",
|
|
19657
20007
|
auth: "admin"
|
|
19658
|
-
})
|
|
19659
|
-
method(object({ deviceId: number() }), boolean()), method(object({
|
|
20008
|
+
}), systemMethod(object({ deviceIds: array(number()).min(1).max(200) }), array(object({
|
|
19660
20009
|
deviceId: number(),
|
|
19661
|
-
|
|
19662
|
-
|
|
20010
|
+
lastCapturedAt: number().nullable(),
|
|
20011
|
+
cacheAgeMs: number().nullable(),
|
|
20012
|
+
etag: string().nullable()
|
|
20013
|
+
})));
|
|
19663
20014
|
/**
|
|
19664
20015
|
* `sso-bridge` — internal hub-only cap that lets SSO-style auth
|
|
19665
20016
|
* providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
|
|
@@ -19910,10 +20261,32 @@ method(_void(), array(TurnServerSchema).readonly());
|
|
|
19910
20261
|
* b. `finishAuthentication({userId, response})` → server verifies
|
|
19911
20262
|
* the assertion, bumps the credential counter, returns ok.
|
|
19912
20263
|
*
|
|
20264
|
+
* 2b. Usernameless (discoverable-credential) authentication — the
|
|
20265
|
+
* passkey IS the primary factor, no password leg:
|
|
20266
|
+
* a. `beginDiscoverableAuthentication({})` → assertion options with
|
|
20267
|
+
* EMPTY `allowCredentials` (the browser offers every resident
|
|
20268
|
+
* passkey it holds for this RP) + `userVerification: 'required'`
|
|
20269
|
+
* (the passkey replaces both factors, so UV is mandatory).
|
|
20270
|
+
* The challenge is stored server-side, NOT bound to any user.
|
|
20271
|
+
* b. `finishDiscoverableAuthentication({response})` → the provider
|
|
20272
|
+
* resolves the credential by the response's credential id,
|
|
20273
|
+
* verifies the assertion against the stored challenge + that
|
|
20274
|
+
* credential's public key/counter, and returns the OWNING
|
|
20275
|
+
* `userId` — the caller (core auth router) mints the session.
|
|
20276
|
+
*
|
|
19913
20277
|
* 3. Management:
|
|
19914
20278
|
* - `listPasskeys({userId})` — enumerate user's enrolled credentials.
|
|
19915
20279
|
* - `removePasskey({userId, credentialId})` — revoke one credential.
|
|
19916
20280
|
*
|
|
20281
|
+
* 4. Second-factor preference (opt-in, default OFF):
|
|
20282
|
+
* Enrolling a passkey only enables passkey-FIRST sign-in. It is
|
|
20283
|
+
* demanded as a second factor after a password login ONLY when the
|
|
20284
|
+
* user explicitly opts in via `setSecondFactorPreference`.
|
|
20285
|
+
* - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
|
|
20286
|
+
* row ⇒ `enabled: false`).
|
|
20287
|
+
* - `setSecondFactorPreference({userId, enabled})` — persisted by
|
|
20288
|
+
* the providing addon beside its credentials.
|
|
20289
|
+
*
|
|
19917
20290
|
* Challenges are short-lived (5 min, in-memory). The cap is internal —
|
|
19918
20291
|
* the admin-ui composes the begin/finish round-trip and never exposes
|
|
19919
20292
|
* the cap to non-admins.
|
|
@@ -19956,6 +20329,17 @@ method(object({
|
|
|
19956
20329
|
}), object({ verified: boolean() }), {
|
|
19957
20330
|
kind: "mutation",
|
|
19958
20331
|
access: "view"
|
|
20332
|
+
}), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
|
|
20333
|
+
kind: "mutation",
|
|
20334
|
+
access: "view"
|
|
20335
|
+
}), method(object({
|
|
20336
|
+
/** AuthenticationResponseJSON from the browser. */
|
|
20337
|
+
response: record(string(), unknown()) }), object({
|
|
20338
|
+
verified: boolean(),
|
|
20339
|
+
userId: string().nullable()
|
|
20340
|
+
}), {
|
|
20341
|
+
kind: "mutation",
|
|
20342
|
+
access: "view"
|
|
19959
20343
|
}), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
|
|
19960
20344
|
userId: string(),
|
|
19961
20345
|
credentialId: string()
|
|
@@ -19963,6 +20347,13 @@ method(object({
|
|
|
19963
20347
|
kind: "mutation",
|
|
19964
20348
|
auth: "admin",
|
|
19965
20349
|
access: "delete"
|
|
20350
|
+
}), method(object({ userId: string() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
|
|
20351
|
+
userId: string(),
|
|
20352
|
+
enabled: boolean()
|
|
20353
|
+
}), object({ success: literal(true) }), {
|
|
20354
|
+
kind: "mutation",
|
|
20355
|
+
auth: "admin",
|
|
20356
|
+
access: "create"
|
|
19966
20357
|
});
|
|
19967
20358
|
/**
|
|
19968
20359
|
* `videoclips` — the unified, navigable-clip surface for a camera.
|
|
@@ -20020,9 +20411,10 @@ method(object({
|
|
|
20020
20411
|
auth: "admin"
|
|
20021
20412
|
});
|
|
20022
20413
|
/**
|
|
20023
|
-
* Optional client-side hints sent at session creation to help the
|
|
20024
|
-
*
|
|
20025
|
-
*
|
|
20414
|
+
* Optional client-side hints sent at session creation to help the provider
|
|
20415
|
+
* pick the best native source. All fields optional — a viewer that knows
|
|
20416
|
+
* nothing still gets a sane default. (Relocated from the retired `webrtc`
|
|
20417
|
+
* collection cap; this `webrtc-session` cap is the live signaling surface.)
|
|
20026
20418
|
*/
|
|
20027
20419
|
var webrtcClientHintsSchema = object({
|
|
20028
20420
|
viewportWidth: number().int().positive().optional(),
|
|
@@ -20033,22 +20425,6 @@ var webrtcClientHintsSchema = object({
|
|
|
20033
20425
|
/** Hard tier override; takes precedence over scoring when registered. */
|
|
20034
20426
|
prefersTier: string().optional()
|
|
20035
20427
|
}).partial();
|
|
20036
|
-
method(object({
|
|
20037
|
-
streamId: string(),
|
|
20038
|
-
sdpOffer: string()
|
|
20039
|
-
}), string(), { kind: "mutation" }), method(object({ streamId: string() }), boolean()), method(object({
|
|
20040
|
-
streamId: string(),
|
|
20041
|
-
codec: string()
|
|
20042
|
-
}), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
|
|
20043
|
-
streamId: string(),
|
|
20044
|
-
hints: webrtcClientHintsSchema.optional()
|
|
20045
|
-
}), object({
|
|
20046
|
-
sessionId: string(),
|
|
20047
|
-
sdpOffer: string()
|
|
20048
|
-
}), { kind: "mutation" }), method(object({
|
|
20049
|
-
sessionId: string(),
|
|
20050
|
-
sdpAnswer: string()
|
|
20051
|
-
}), _void(), { kind: "mutation" }), method(object({ sessionId: string() }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), boolean());
|
|
20052
20428
|
/**
|
|
20053
20429
|
* Discriminated target for a WebRTC session. The client sends this
|
|
20054
20430
|
* structured object instead of building / parsing brokerId strings;
|
|
@@ -20535,7 +20911,15 @@ var FrameworkPackageStatusSchema = object({
|
|
|
20535
20911
|
latestVersion: string().nullable(),
|
|
20536
20912
|
hasUpdate: boolean(),
|
|
20537
20913
|
/** Optional manifest description for the row tooltip. */
|
|
20538
|
-
description: string().optional()
|
|
20914
|
+
description: string().optional(),
|
|
20915
|
+
/**
|
|
20916
|
+
* Content build-id (md5 of the resolved `dist/` tree) of the code the hub
|
|
20917
|
+
* ACTUALLY loaded. Framework packages ship code changes without always
|
|
20918
|
+
* bumping `currentVersion`, so semver alone hides "same version, new code".
|
|
20919
|
+
* `null` when the dist can't be hashed (not installed / empty). The admin-UI
|
|
20920
|
+
* surfaces this so a stale-code hub is visible even at an unchanged version.
|
|
20921
|
+
*/
|
|
20922
|
+
buildId: string().nullable()
|
|
20539
20923
|
});
|
|
20540
20924
|
var LogStreamEntrySchema = object({
|
|
20541
20925
|
timestamp: string(),
|
|
@@ -20771,7 +21155,17 @@ var FaceInfoSchema = object({
|
|
|
20771
21155
|
recognizedIdentityId: string().optional(),
|
|
20772
21156
|
identityName: string().optional(),
|
|
20773
21157
|
assigned: boolean(),
|
|
20774
|
-
base64: string().optional()
|
|
21158
|
+
base64: string().optional(),
|
|
21159
|
+
/** Design B: the face bbox (pixel space) on the key frame — lets a detail
|
|
21160
|
+
* view draw the box over the native `keyFrameMediaKey` frame. Absent on
|
|
21161
|
+
* legacy rows written before design B. */
|
|
21162
|
+
faceBbox: BoundingBoxSchema.optional(),
|
|
21163
|
+
/** Design B: MediaStore key of the track's native-resolution key frame.
|
|
21164
|
+
* Fetch the native JPEG via the event-media data-plane
|
|
21165
|
+
* (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
|
|
21166
|
+
* track produced no key frame (e.g. native/onboard source) — the UI falls
|
|
21167
|
+
* back to the inline `base64` face crop. */
|
|
21168
|
+
keyFrameMediaKey: string().optional()
|
|
20775
21169
|
});
|
|
20776
21170
|
var FaceFilterEnum = _enum([
|
|
20777
21171
|
"unassigned",
|
|
@@ -21468,6 +21862,16 @@ var TopologyCategorySchema = object({
|
|
|
21468
21862
|
healthy: number(),
|
|
21469
21863
|
addons: array(TopologyCategoryAddonSchema).readonly()
|
|
21470
21864
|
});
|
|
21865
|
+
/**
|
|
21866
|
+
* The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
|
|
21867
|
+
* `@camstack/agent` on agents) as reported by its `registerNode` manifest —
|
|
21868
|
+
* version visibility for the Server management surface. Nullable: offline
|
|
21869
|
+
* rows and pre-phase-2 nodes report none.
|
|
21870
|
+
*/
|
|
21871
|
+
var TopologyRootPackageSchema = object({
|
|
21872
|
+
name: string(),
|
|
21873
|
+
version: string()
|
|
21874
|
+
});
|
|
21471
21875
|
var TopologyNodeSchema = object({
|
|
21472
21876
|
id: string(),
|
|
21473
21877
|
name: string(),
|
|
@@ -21491,7 +21895,8 @@ var TopologyNodeSchema = object({
|
|
|
21491
21895
|
status: string()
|
|
21492
21896
|
})).readonly(),
|
|
21493
21897
|
processes: array(TopologyProcessSchema).readonly(),
|
|
21494
|
-
categories: array(TopologyCategorySchema).readonly()
|
|
21898
|
+
categories: array(TopologyCategorySchema).readonly(),
|
|
21899
|
+
rootPackage: TopologyRootPackageSchema.nullable()
|
|
21495
21900
|
});
|
|
21496
21901
|
var CapUsageEdgeSchema = object({
|
|
21497
21902
|
callerAddonId: string(),
|
|
@@ -24291,6 +24696,12 @@ Object.freeze({
|
|
|
24291
24696
|
addonId: null,
|
|
24292
24697
|
access: "create"
|
|
24293
24698
|
},
|
|
24699
|
+
"loginMethod.getLoginMethods": {
|
|
24700
|
+
capName: "login-method",
|
|
24701
|
+
capScope: "system",
|
|
24702
|
+
addonId: null,
|
|
24703
|
+
access: "view"
|
|
24704
|
+
},
|
|
24294
24705
|
"mediaPlayer.next": {
|
|
24295
24706
|
capName: "media-player",
|
|
24296
24707
|
capScope: "device",
|
|
@@ -24873,6 +25284,12 @@ Object.freeze({
|
|
|
24873
25284
|
addonId: null,
|
|
24874
25285
|
access: "view"
|
|
24875
25286
|
},
|
|
25287
|
+
"pipelineAnalytics.getKeyEvents": {
|
|
25288
|
+
capName: "pipeline-analytics",
|
|
25289
|
+
capScope: "device",
|
|
25290
|
+
addonId: null,
|
|
25291
|
+
access: "view"
|
|
25292
|
+
},
|
|
24876
25293
|
"pipelineAnalytics.getMotionEvents": {
|
|
24877
25294
|
capName: "pipeline-analytics",
|
|
24878
25295
|
capScope: "device",
|
|
@@ -24921,23 +25338,23 @@ Object.freeze({
|
|
|
24921
25338
|
addonId: null,
|
|
24922
25339
|
access: "create"
|
|
24923
25340
|
},
|
|
24924
|
-
"pipelineExecutor.
|
|
25341
|
+
"pipelineExecutor.clearDeviceOverrides": {
|
|
24925
25342
|
capName: "pipeline-executor",
|
|
24926
25343
|
capScope: "system",
|
|
24927
25344
|
addonId: null,
|
|
24928
25345
|
access: "delete"
|
|
24929
25346
|
},
|
|
24930
|
-
"pipelineExecutor.
|
|
25347
|
+
"pipelineExecutor.deleteModel": {
|
|
24931
25348
|
capName: "pipeline-executor",
|
|
24932
25349
|
capScope: "system",
|
|
24933
25350
|
addonId: null,
|
|
24934
25351
|
access: "delete"
|
|
24935
25352
|
},
|
|
24936
|
-
"pipelineExecutor.
|
|
25353
|
+
"pipelineExecutor.deleteTemplate": {
|
|
24937
25354
|
capName: "pipeline-executor",
|
|
24938
25355
|
capScope: "system",
|
|
24939
25356
|
addonId: null,
|
|
24940
|
-
access: "
|
|
25357
|
+
access: "delete"
|
|
24941
25358
|
},
|
|
24942
25359
|
"pipelineExecutor.downloadModel": {
|
|
24943
25360
|
capName: "pipeline-executor",
|
|
@@ -25131,13 +25548,13 @@ Object.freeze({
|
|
|
25131
25548
|
addonId: null,
|
|
25132
25549
|
access: "create"
|
|
25133
25550
|
},
|
|
25134
|
-
"
|
|
25135
|
-
capName: "pipeline-
|
|
25551
|
+
"pipelineExecutor.validatePipeline": {
|
|
25552
|
+
capName: "pipeline-executor",
|
|
25136
25553
|
capScope: "system",
|
|
25137
25554
|
addonId: null,
|
|
25138
|
-
access: "
|
|
25555
|
+
access: "view"
|
|
25139
25556
|
},
|
|
25140
|
-
"pipelineOrchestrator.
|
|
25557
|
+
"pipelineOrchestrator.assignAudio": {
|
|
25141
25558
|
capName: "pipeline-orchestrator",
|
|
25142
25559
|
capScope: "system",
|
|
25143
25560
|
addonId: null,
|
|
@@ -25221,19 +25638,13 @@ Object.freeze({
|
|
|
25221
25638
|
addonId: null,
|
|
25222
25639
|
access: "view"
|
|
25223
25640
|
},
|
|
25224
|
-
"pipelineOrchestrator.
|
|
25225
|
-
capName: "pipeline-orchestrator",
|
|
25226
|
-
capScope: "system",
|
|
25227
|
-
addonId: null,
|
|
25228
|
-
access: "view"
|
|
25229
|
-
},
|
|
25230
|
-
"pipelineOrchestrator.getDecoderAssignments": {
|
|
25641
|
+
"pipelineOrchestrator.getGlobalMetrics": {
|
|
25231
25642
|
capName: "pipeline-orchestrator",
|
|
25232
25643
|
capScope: "system",
|
|
25233
25644
|
addonId: null,
|
|
25234
25645
|
access: "view"
|
|
25235
25646
|
},
|
|
25236
|
-
"pipelineOrchestrator.
|
|
25647
|
+
"pipelineOrchestrator.getIngestOwner": {
|
|
25237
25648
|
capName: "pipeline-orchestrator",
|
|
25238
25649
|
capScope: "system",
|
|
25239
25650
|
addonId: null,
|
|
@@ -25275,6 +25686,12 @@ Object.freeze({
|
|
|
25275
25686
|
addonId: null,
|
|
25276
25687
|
access: "delete"
|
|
25277
25688
|
},
|
|
25689
|
+
"pipelineOrchestrator.resetNodePipelineDefaults": {
|
|
25690
|
+
capName: "pipeline-orchestrator",
|
|
25691
|
+
capScope: "system",
|
|
25692
|
+
addonId: null,
|
|
25693
|
+
access: "delete"
|
|
25694
|
+
},
|
|
25278
25695
|
"pipelineOrchestrator.resolvePipeline": {
|
|
25279
25696
|
capName: "pipeline-orchestrator",
|
|
25280
25697
|
capScope: "system",
|
|
@@ -25311,37 +25728,37 @@ Object.freeze({
|
|
|
25311
25728
|
addonId: null,
|
|
25312
25729
|
access: "create"
|
|
25313
25730
|
},
|
|
25314
|
-
"pipelineOrchestrator.
|
|
25731
|
+
"pipelineOrchestrator.setAgentReachableHost": {
|
|
25315
25732
|
capName: "pipeline-orchestrator",
|
|
25316
25733
|
capScope: "system",
|
|
25317
25734
|
addonId: null,
|
|
25318
25735
|
access: "create"
|
|
25319
25736
|
},
|
|
25320
|
-
"pipelineOrchestrator.
|
|
25737
|
+
"pipelineOrchestrator.setCameraPipelineForAgent": {
|
|
25321
25738
|
capName: "pipeline-orchestrator",
|
|
25322
25739
|
capScope: "system",
|
|
25323
25740
|
addonId: null,
|
|
25324
25741
|
access: "create"
|
|
25325
25742
|
},
|
|
25326
|
-
"pipelineOrchestrator.
|
|
25743
|
+
"pipelineOrchestrator.setCameraStepOverride": {
|
|
25327
25744
|
capName: "pipeline-orchestrator",
|
|
25328
25745
|
capScope: "system",
|
|
25329
25746
|
addonId: null,
|
|
25330
25747
|
access: "create"
|
|
25331
25748
|
},
|
|
25332
|
-
"pipelineOrchestrator.
|
|
25749
|
+
"pipelineOrchestrator.setCameraStepToggle": {
|
|
25333
25750
|
capName: "pipeline-orchestrator",
|
|
25334
25751
|
capScope: "system",
|
|
25335
25752
|
addonId: null,
|
|
25336
25753
|
access: "create"
|
|
25337
25754
|
},
|
|
25338
|
-
"pipelineOrchestrator.
|
|
25755
|
+
"pipelineOrchestrator.setCapabilityBinding": {
|
|
25339
25756
|
capName: "pipeline-orchestrator",
|
|
25340
25757
|
capScope: "system",
|
|
25341
25758
|
addonId: null,
|
|
25342
25759
|
access: "create"
|
|
25343
25760
|
},
|
|
25344
|
-
"pipelineOrchestrator.
|
|
25761
|
+
"pipelineOrchestrator.unassignAudio": {
|
|
25345
25762
|
capName: "pipeline-orchestrator",
|
|
25346
25763
|
capScope: "system",
|
|
25347
25764
|
addonId: null,
|
|
@@ -25401,6 +25818,12 @@ Object.freeze({
|
|
|
25401
25818
|
addonId: null,
|
|
25402
25819
|
access: "view"
|
|
25403
25820
|
},
|
|
25821
|
+
"pipelineRunner.getNativeCrop": {
|
|
25822
|
+
capName: "pipeline-runner",
|
|
25823
|
+
capScope: "system",
|
|
25824
|
+
addonId: null,
|
|
25825
|
+
access: "view"
|
|
25826
|
+
},
|
|
25404
25827
|
"pipelineRunner.reportMotion": {
|
|
25405
25828
|
capName: "pipeline-runner",
|
|
25406
25829
|
capScope: "system",
|
|
@@ -25641,33 +26064,45 @@ Object.freeze({
|
|
|
25641
26064
|
addonId: null,
|
|
25642
26065
|
access: "create"
|
|
25643
26066
|
},
|
|
25644
|
-
"
|
|
25645
|
-
capName: "
|
|
26067
|
+
"scriptRunner.run": {
|
|
26068
|
+
capName: "script-runner",
|
|
26069
|
+
capScope: "device",
|
|
26070
|
+
addonId: null,
|
|
26071
|
+
access: "create"
|
|
26072
|
+
},
|
|
26073
|
+
"scriptRunner.stop": {
|
|
26074
|
+
capName: "script-runner",
|
|
26075
|
+
capScope: "device",
|
|
26076
|
+
addonId: null,
|
|
26077
|
+
access: "create"
|
|
26078
|
+
},
|
|
26079
|
+
"serverManagement.applyServerUpdate": {
|
|
26080
|
+
capName: "server-management",
|
|
25646
26081
|
capScope: "system",
|
|
25647
26082
|
addonId: null,
|
|
25648
|
-
access: "
|
|
26083
|
+
access: "create"
|
|
25649
26084
|
},
|
|
25650
|
-
"
|
|
25651
|
-
capName: "
|
|
26085
|
+
"serverManagement.checkServerUpdate": {
|
|
26086
|
+
capName: "server-management",
|
|
25652
26087
|
capScope: "system",
|
|
25653
26088
|
addonId: null,
|
|
25654
26089
|
access: "create"
|
|
25655
26090
|
},
|
|
25656
|
-
"
|
|
25657
|
-
capName: "
|
|
26091
|
+
"serverManagement.getServerPackageStatus": {
|
|
26092
|
+
capName: "server-management",
|
|
25658
26093
|
capScope: "system",
|
|
25659
26094
|
addonId: null,
|
|
25660
|
-
access: "
|
|
26095
|
+
access: "view"
|
|
25661
26096
|
},
|
|
25662
|
-
"
|
|
25663
|
-
capName: "
|
|
25664
|
-
capScope: "
|
|
26097
|
+
"serverManagement.restartServer": {
|
|
26098
|
+
capName: "server-management",
|
|
26099
|
+
capScope: "system",
|
|
25665
26100
|
addonId: null,
|
|
25666
26101
|
access: "create"
|
|
25667
26102
|
},
|
|
25668
|
-
"
|
|
25669
|
-
capName: "
|
|
25670
|
-
capScope: "
|
|
26103
|
+
"serverManagement.rollbackServerUpdate": {
|
|
26104
|
+
capName: "server-management",
|
|
26105
|
+
capScope: "system",
|
|
25671
26106
|
addonId: null,
|
|
25672
26107
|
access: "create"
|
|
25673
26108
|
},
|
|
@@ -25755,23 +26190,17 @@ Object.freeze({
|
|
|
25755
26190
|
addonId: null,
|
|
25756
26191
|
access: "view"
|
|
25757
26192
|
},
|
|
25758
|
-
"snapshot.
|
|
26193
|
+
"snapshot.getSnapshotOverview": {
|
|
25759
26194
|
capName: "snapshot",
|
|
25760
26195
|
capScope: "device",
|
|
25761
26196
|
addonId: null,
|
|
25762
|
-
access: "create"
|
|
25763
|
-
},
|
|
25764
|
-
"snapshotProvider.getSnapshot": {
|
|
25765
|
-
capName: "snapshot-provider",
|
|
25766
|
-
capScope: "system",
|
|
25767
|
-
addonId: null,
|
|
25768
26197
|
access: "view"
|
|
25769
26198
|
},
|
|
25770
|
-
"
|
|
25771
|
-
capName: "snapshot
|
|
25772
|
-
capScope: "
|
|
26199
|
+
"snapshot.invalidateCache": {
|
|
26200
|
+
capName: "snapshot",
|
|
26201
|
+
capScope: "device",
|
|
25773
26202
|
addonId: null,
|
|
25774
|
-
access: "
|
|
26203
|
+
access: "create"
|
|
25775
26204
|
},
|
|
25776
26205
|
"ssoBridge.signBridgeToken": {
|
|
25777
26206
|
capName: "sso-bridge",
|
|
@@ -26199,30 +26628,6 @@ Object.freeze({
|
|
|
26199
26628
|
addonId: null,
|
|
26200
26629
|
access: "view"
|
|
26201
26630
|
},
|
|
26202
|
-
"streamingEngine.getStreamUrl": {
|
|
26203
|
-
capName: "streaming-engine",
|
|
26204
|
-
capScope: "system",
|
|
26205
|
-
addonId: null,
|
|
26206
|
-
access: "view"
|
|
26207
|
-
},
|
|
26208
|
-
"streamingEngine.listStreams": {
|
|
26209
|
-
capName: "streaming-engine",
|
|
26210
|
-
capScope: "system",
|
|
26211
|
-
addonId: null,
|
|
26212
|
-
access: "view"
|
|
26213
|
-
},
|
|
26214
|
-
"streamingEngine.registerStream": {
|
|
26215
|
-
capName: "streaming-engine",
|
|
26216
|
-
capScope: "system",
|
|
26217
|
-
addonId: null,
|
|
26218
|
-
access: "create"
|
|
26219
|
-
},
|
|
26220
|
-
"streamingEngine.unregisterStream": {
|
|
26221
|
-
capName: "streaming-engine",
|
|
26222
|
-
capScope: "system",
|
|
26223
|
-
addonId: null,
|
|
26224
|
-
access: "delete"
|
|
26225
|
-
},
|
|
26226
26631
|
"streamParams.getConfigSchema": {
|
|
26227
26632
|
capName: "stream-params",
|
|
26228
26633
|
capScope: "device",
|
|
@@ -26469,6 +26874,12 @@ Object.freeze({
|
|
|
26469
26874
|
addonId: null,
|
|
26470
26875
|
access: "view"
|
|
26471
26876
|
},
|
|
26877
|
+
"userPasskeys.beginDiscoverableAuthentication": {
|
|
26878
|
+
capName: "user-passkeys",
|
|
26879
|
+
capScope: "system",
|
|
26880
|
+
addonId: null,
|
|
26881
|
+
access: "view"
|
|
26882
|
+
},
|
|
26472
26883
|
"userPasskeys.beginRegistration": {
|
|
26473
26884
|
capName: "user-passkeys",
|
|
26474
26885
|
capScope: "system",
|
|
@@ -26481,12 +26892,24 @@ Object.freeze({
|
|
|
26481
26892
|
addonId: null,
|
|
26482
26893
|
access: "view"
|
|
26483
26894
|
},
|
|
26895
|
+
"userPasskeys.finishDiscoverableAuthentication": {
|
|
26896
|
+
capName: "user-passkeys",
|
|
26897
|
+
capScope: "system",
|
|
26898
|
+
addonId: null,
|
|
26899
|
+
access: "view"
|
|
26900
|
+
},
|
|
26484
26901
|
"userPasskeys.finishRegistration": {
|
|
26485
26902
|
capName: "user-passkeys",
|
|
26486
26903
|
capScope: "system",
|
|
26487
26904
|
addonId: null,
|
|
26488
26905
|
access: "create"
|
|
26489
26906
|
},
|
|
26907
|
+
"userPasskeys.getSecondFactorPreference": {
|
|
26908
|
+
capName: "user-passkeys",
|
|
26909
|
+
capScope: "system",
|
|
26910
|
+
addonId: null,
|
|
26911
|
+
access: "view"
|
|
26912
|
+
},
|
|
26490
26913
|
"userPasskeys.listPasskeys": {
|
|
26491
26914
|
capName: "user-passkeys",
|
|
26492
26915
|
capScope: "system",
|
|
@@ -26499,6 +26922,12 @@ Object.freeze({
|
|
|
26499
26922
|
addonId: null,
|
|
26500
26923
|
access: "delete"
|
|
26501
26924
|
},
|
|
26925
|
+
"userPasskeys.setSecondFactorPreference": {
|
|
26926
|
+
capName: "user-passkeys",
|
|
26927
|
+
capScope: "system",
|
|
26928
|
+
addonId: null,
|
|
26929
|
+
access: "create"
|
|
26930
|
+
},
|
|
26502
26931
|
"vacuumControl.locate": {
|
|
26503
26932
|
capName: "vacuum-control",
|
|
26504
26933
|
capScope: "device",
|
|
@@ -26571,6 +27000,18 @@ Object.freeze({
|
|
|
26571
27000
|
addonId: null,
|
|
26572
27001
|
access: "view"
|
|
26573
27002
|
},
|
|
27003
|
+
"viewerUi.getStaticDir": {
|
|
27004
|
+
capName: "viewer-ui",
|
|
27005
|
+
capScope: "system",
|
|
27006
|
+
addonId: null,
|
|
27007
|
+
access: "view"
|
|
27008
|
+
},
|
|
27009
|
+
"viewerUi.getVersion": {
|
|
27010
|
+
capName: "viewer-ui",
|
|
27011
|
+
capScope: "system",
|
|
27012
|
+
addonId: null,
|
|
27013
|
+
access: "view"
|
|
27014
|
+
},
|
|
26574
27015
|
"waterHeater.setAway": {
|
|
26575
27016
|
capName: "water-heater",
|
|
26576
27017
|
capScope: "device",
|
|
@@ -26589,54 +27030,6 @@ Object.freeze({
|
|
|
26589
27030
|
addonId: null,
|
|
26590
27031
|
access: "create"
|
|
26591
27032
|
},
|
|
26592
|
-
"webrtc.closeSession": {
|
|
26593
|
-
capName: "webrtc",
|
|
26594
|
-
capScope: "system",
|
|
26595
|
-
addonId: null,
|
|
26596
|
-
access: "create"
|
|
26597
|
-
},
|
|
26598
|
-
"webrtc.createSession": {
|
|
26599
|
-
capName: "webrtc",
|
|
26600
|
-
capScope: "system",
|
|
26601
|
-
addonId: null,
|
|
26602
|
-
access: "create"
|
|
26603
|
-
},
|
|
26604
|
-
"webrtc.handleAnswer": {
|
|
26605
|
-
capName: "webrtc",
|
|
26606
|
-
capScope: "system",
|
|
26607
|
-
addonId: null,
|
|
26608
|
-
access: "create"
|
|
26609
|
-
},
|
|
26610
|
-
"webrtc.handleOffer": {
|
|
26611
|
-
capName: "webrtc",
|
|
26612
|
-
capScope: "system",
|
|
26613
|
-
addonId: null,
|
|
26614
|
-
access: "create"
|
|
26615
|
-
},
|
|
26616
|
-
"webrtc.hasAdaptiveBitrate": {
|
|
26617
|
-
capName: "webrtc",
|
|
26618
|
-
capScope: "system",
|
|
26619
|
-
addonId: null,
|
|
26620
|
-
access: "view"
|
|
26621
|
-
},
|
|
26622
|
-
"webrtc.registerStream": {
|
|
26623
|
-
capName: "webrtc",
|
|
26624
|
-
capScope: "system",
|
|
26625
|
-
addonId: null,
|
|
26626
|
-
access: "create"
|
|
26627
|
-
},
|
|
26628
|
-
"webrtc.supportsStream": {
|
|
26629
|
-
capName: "webrtc",
|
|
26630
|
-
capScope: "system",
|
|
26631
|
-
addonId: null,
|
|
26632
|
-
access: "view"
|
|
26633
|
-
},
|
|
26634
|
-
"webrtc.unregisterStream": {
|
|
26635
|
-
capName: "webrtc",
|
|
26636
|
-
capScope: "system",
|
|
26637
|
-
addonId: null,
|
|
26638
|
-
access: "delete"
|
|
26639
|
-
},
|
|
26640
27033
|
"webrtcSession.addIceCandidate": {
|
|
26641
27034
|
capName: "webrtc-session",
|
|
26642
27035
|
capScope: "device",
|