@camstack/addon-provider-homeassistant 1.1.21 → 1.1.23
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.mjs
CHANGED
|
@@ -4628,7 +4628,7 @@ function _instanceof(cls, params = {}) {
|
|
|
4628
4628
|
return inst;
|
|
4629
4629
|
}
|
|
4630
4630
|
//#endregion
|
|
4631
|
-
//#region ../types/dist/sleep-
|
|
4631
|
+
//#region ../types/dist/sleep-BC9Yqte7.mjs
|
|
4632
4632
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
4633
4633
|
EventCategory["SystemBoot"] = "system.boot";
|
|
4634
4634
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -4814,6 +4814,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
4814
4814
|
*/
|
|
4815
4815
|
EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
|
|
4816
4816
|
/**
|
|
4817
|
+
* The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
|
|
4818
|
+
* Emitted by addon-pipeline-orchestrator whenever it (re)derives node
|
|
4819
|
+
* capabilities — at boot, on agent online/offline, and on an ingest-node
|
|
4820
|
+
* flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
|
|
4821
|
+
* keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
|
|
4822
|
+
* cross-process `getIngestOwner` query (push the authority's decision instead
|
|
4823
|
+
* of polling it on the hot path). Idempotent state — re-emitted on every
|
|
4824
|
+
* topology change, so a dropped event self-heals on the next one (plus the
|
|
4825
|
+
* broker's long backstop reconcile query).
|
|
4826
|
+
*/
|
|
4827
|
+
EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
|
|
4828
|
+
/**
|
|
4817
4829
|
* Periodic snapshot of per-node pipeline-runner load
|
|
4818
4830
|
* (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
|
|
4819
4831
|
* subscribe instead of polling `pipelineRunner.getLocalLoad`.
|
|
@@ -5337,10 +5349,6 @@ function hydrateField(field, values) {
|
|
|
5337
5349
|
};
|
|
5338
5350
|
}
|
|
5339
5351
|
const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
|
|
5340
|
-
if (field.type === "password") return {
|
|
5341
|
-
...field,
|
|
5342
|
-
value: ""
|
|
5343
|
-
};
|
|
5344
5352
|
const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
|
|
5345
5353
|
return {
|
|
5346
5354
|
...field,
|
|
@@ -6724,10 +6732,25 @@ function method(input, output, options) {
|
|
|
6724
6732
|
timeoutMs: options?.timeoutMs
|
|
6725
6733
|
};
|
|
6726
6734
|
}
|
|
6735
|
+
/**
|
|
6736
|
+
* A wrapper/system-only method: served exclusively by the cap's system-level
|
|
6737
|
+
* provider (`InferProvider`), and OPTIONAL on `InferNativeProvider` so per-device
|
|
6738
|
+
* driver natives don't stub out a wrapper concern (e.g. a cross-device cache
|
|
6739
|
+
* overview). The `systemOnly: true` literal is what `InferNativeProvider` keys on.
|
|
6740
|
+
*/
|
|
6741
|
+
function systemMethod(input, output, options) {
|
|
6742
|
+
return {
|
|
6743
|
+
...method(input, output, options),
|
|
6744
|
+
systemOnly: true
|
|
6745
|
+
};
|
|
6746
|
+
}
|
|
6727
6747
|
/** Shorthand to define an event schema */
|
|
6728
6748
|
function event(data) {
|
|
6729
6749
|
return { data };
|
|
6730
6750
|
}
|
|
6751
|
+
var StaticDirOutputSchema$1 = object({ staticDir: string() });
|
|
6752
|
+
var VersionOutputSchema$1 = object({ version: string() });
|
|
6753
|
+
method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
|
|
6731
6754
|
var StaticDirOutputSchema = object({ staticDir: string() });
|
|
6732
6755
|
var VersionOutputSchema = object({ version: string() });
|
|
6733
6756
|
method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
|
|
@@ -6909,6 +6932,36 @@ var ModelFormatsSchema = object({
|
|
|
6909
6932
|
tflite: ModelFormatEntrySchema.optional(),
|
|
6910
6933
|
pt: ModelFormatEntrySchema.optional()
|
|
6911
6934
|
});
|
|
6935
|
+
/**
|
|
6936
|
+
* Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
|
|
6937
|
+
* the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
|
|
6938
|
+
* grouped Family→Tier→Variant picker renders identically in the config UI and
|
|
6939
|
+
* in the pipeline/device steppers. The flat `id` stays the source of truth for
|
|
6940
|
+
* resolution/download/persistence; this is a presentation overlay resolved back
|
|
6941
|
+
* to an `id`.
|
|
6942
|
+
*/
|
|
6943
|
+
var ModelVariantGroupSchema = object({
|
|
6944
|
+
/** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
|
|
6945
|
+
family: string(),
|
|
6946
|
+
/** Size within the family, e.g. `n` | `s` | `m` | `l`. */
|
|
6947
|
+
tier: string(),
|
|
6948
|
+
/** Quantization axis. Omit ⇒ the fp32 base build. */
|
|
6949
|
+
precision: _enum(["fp32", "int8"]).optional(),
|
|
6950
|
+
/**
|
|
6951
|
+
* Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
|
|
6952
|
+
* latency-optimized export (e.g. ReLU-activation variant) — the slot the
|
|
6953
|
+
* future performance variants plug into.
|
|
6954
|
+
*/
|
|
6955
|
+
optimization: _enum(["standard", "fast"]).optional(),
|
|
6956
|
+
/**
|
|
6957
|
+
* Input-resolution axis (square input side, px). Omit ⇒ the family's native
|
|
6958
|
+
* resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
|
|
6959
|
+
* cheap latency lever — especially on Apple ANE and the Intel N100 — at a
|
|
6960
|
+
* small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
|
|
6961
|
+
* the group so the selector can offer it as a variant axis.
|
|
6962
|
+
*/
|
|
6963
|
+
resolution: number().int().positive().optional()
|
|
6964
|
+
});
|
|
6912
6965
|
var ModelCatalogEntrySchema = object({
|
|
6913
6966
|
id: string(),
|
|
6914
6967
|
name: string(),
|
|
@@ -6938,7 +6991,43 @@ var ModelCatalogEntrySchema = object({
|
|
|
6938
6991
|
* Auxiliary files required at runtime (labels JSON, charset dict, etc.).
|
|
6939
6992
|
* Downloaded into the same modelsDir alongside the model file.
|
|
6940
6993
|
*/
|
|
6941
|
-
extraFiles: array(ModelExtraFileSchema).readonly().optional()
|
|
6994
|
+
extraFiles: array(ModelExtraFileSchema).readonly().optional(),
|
|
6995
|
+
/**
|
|
6996
|
+
* LEGACY entry — retained in the catalog so a persisted operator selection
|
|
6997
|
+
* still RESOLVES (and can be re-activated), but hidden from the selectable
|
|
6998
|
+
* model list and excluded from the auto format-default pick. Set on the
|
|
6999
|
+
* superseded / consolidated models (older lineages, redundant fp16 IRs) so
|
|
7000
|
+
* the active lineup stays the coherent curated ladder without deleting a
|
|
7001
|
+
* model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
|
|
7002
|
+
* an explicit legacy id that has a build for the node's format.
|
|
7003
|
+
*/
|
|
7004
|
+
legacy: boolean().optional(),
|
|
7005
|
+
/**
|
|
7006
|
+
* Measured quality/latency metadata — populated from the benchmark addon on
|
|
7007
|
+
* the real node classes. Absent = not yet measured (most entries today; the
|
|
7008
|
+
* catalog historically carried only `sizeMB`, a poor cross-architecture
|
|
7009
|
+
* speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
|
|
7010
|
+
*/
|
|
7011
|
+
metrics: object({
|
|
7012
|
+
map50: number().optional(),
|
|
7013
|
+
p95LatencyMs: record(string(), number()).optional()
|
|
7014
|
+
}).optional(),
|
|
7015
|
+
/**
|
|
7016
|
+
* SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
|
|
7017
|
+
* YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
|
|
7018
|
+
* the retraining addon and any future commercial distribution.
|
|
7019
|
+
*/
|
|
7020
|
+
license: string().optional(),
|
|
7021
|
+
/**
|
|
7022
|
+
* Variant-selector grouping. The UI groups models by `family` + `tier` and
|
|
7023
|
+
* offers `precision` / `optimization` as variant axes WITHIN a tier — so all
|
|
7024
|
+
* of a family's sizes and quantizations collapse into one grouped picker
|
|
7025
|
+
* instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
|
|
7026
|
+
* (legacy / custom models) — never shown in the grouped selector. The flat
|
|
7027
|
+
* `id` stays the source of truth for resolution/download/persistence; grouping
|
|
7028
|
+
* is a presentation overlay resolved back to an `id`.
|
|
7029
|
+
*/
|
|
7030
|
+
group: ModelVariantGroupSchema.optional()
|
|
6942
7031
|
});
|
|
6943
7032
|
var ConvertTargetSchema = discriminatedUnion("format", [object({
|
|
6944
7033
|
format: literal("openvino"),
|
|
@@ -6999,8 +7088,8 @@ var RecordingModeSchema = _enum([
|
|
|
6999
7088
|
"onAudioThreshold"
|
|
7000
7089
|
]);
|
|
7001
7090
|
/**
|
|
7002
|
-
* First-class, authoritative per-camera storage mode — the
|
|
7003
|
-
* reads directly (never inferred from `rules`):
|
|
7091
|
+
* First-class, authoritative per-camera storage mode — the explicit choice the
|
|
7092
|
+
* UI reads directly (never inferred from `rules`):
|
|
7004
7093
|
* - `off` — not recording.
|
|
7005
7094
|
* - `events` — record only around triggers (motion / audio threshold),
|
|
7006
7095
|
* with pre/post-buffer.
|
|
@@ -9356,26 +9445,13 @@ onBrightnessChanged: { data: object({
|
|
|
9356
9445
|
*/
|
|
9357
9446
|
runtimeState: BrightnessStatusSchema
|
|
9358
9447
|
};
|
|
9448
|
+
/** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
|
|
9359
9449
|
var StreamFormatSchema = _enum([
|
|
9360
9450
|
"webrtc",
|
|
9361
9451
|
"hls",
|
|
9362
9452
|
"mjpeg",
|
|
9363
9453
|
"rtsp"
|
|
9364
9454
|
]);
|
|
9365
|
-
var StreamInfoSchema = object({
|
|
9366
|
-
streamId: string(),
|
|
9367
|
-
format: StreamFormatSchema,
|
|
9368
|
-
url: string().nullable(),
|
|
9369
|
-
active: boolean()
|
|
9370
|
-
});
|
|
9371
|
-
method(object({
|
|
9372
|
-
streamId: string(),
|
|
9373
|
-
sourceUrl: string(),
|
|
9374
|
-
codec: string().optional()
|
|
9375
|
-
}), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
|
|
9376
|
-
streamId: string(),
|
|
9377
|
-
format: StreamFormatSchema
|
|
9378
|
-
}), string().nullable()), method(_void(), array(StreamInfoSchema));
|
|
9379
9455
|
var RtspRestreamEntrySchema = object({
|
|
9380
9456
|
brokerId: string(),
|
|
9381
9457
|
url: string(),
|
|
@@ -10243,37 +10319,7 @@ var consumablesCapability = {
|
|
|
10243
10319
|
scope: "device",
|
|
10244
10320
|
deviceNative: true,
|
|
10245
10321
|
mode: "singleton",
|
|
10246
|
-
deviceTypes:
|
|
10247
|
-
DeviceType.Camera,
|
|
10248
|
-
DeviceType.Hub,
|
|
10249
|
-
DeviceType.Light,
|
|
10250
|
-
DeviceType.Siren,
|
|
10251
|
-
DeviceType.Switch,
|
|
10252
|
-
DeviceType.Sensor,
|
|
10253
|
-
DeviceType.Thermostat,
|
|
10254
|
-
DeviceType.Button,
|
|
10255
|
-
DeviceType.EventEmitter,
|
|
10256
|
-
DeviceType.Update,
|
|
10257
|
-
DeviceType.Generic,
|
|
10258
|
-
DeviceType.Notifier,
|
|
10259
|
-
DeviceType.Script,
|
|
10260
|
-
DeviceType.Automation,
|
|
10261
|
-
DeviceType.Lock,
|
|
10262
|
-
DeviceType.Cover,
|
|
10263
|
-
DeviceType.Valve,
|
|
10264
|
-
DeviceType.Humidifier,
|
|
10265
|
-
DeviceType.WaterHeater,
|
|
10266
|
-
DeviceType.Fan,
|
|
10267
|
-
DeviceType.MediaPlayer,
|
|
10268
|
-
DeviceType.AlarmPanel,
|
|
10269
|
-
DeviceType.Control,
|
|
10270
|
-
DeviceType.Presence,
|
|
10271
|
-
DeviceType.Weather,
|
|
10272
|
-
DeviceType.Vacuum,
|
|
10273
|
-
DeviceType.LawnMower,
|
|
10274
|
-
DeviceType.Container,
|
|
10275
|
-
DeviceType.Image
|
|
10276
|
-
],
|
|
10322
|
+
deviceTypes: Object.values(DeviceType),
|
|
10277
10323
|
deviceConfig: { ui: {
|
|
10278
10324
|
kind: "widget",
|
|
10279
10325
|
widgetId: "host/consumables-panel",
|
|
@@ -11776,7 +11822,7 @@ var BoundingBoxSchema = object({
|
|
|
11776
11822
|
w: number(),
|
|
11777
11823
|
h: number()
|
|
11778
11824
|
});
|
|
11779
|
-
|
|
11825
|
+
object({
|
|
11780
11826
|
class: string(),
|
|
11781
11827
|
originalClass: string(),
|
|
11782
11828
|
score: number(),
|
|
@@ -11911,7 +11957,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
|
|
|
11911
11957
|
enabled: boolean(),
|
|
11912
11958
|
modelId: string(),
|
|
11913
11959
|
children: array(PipelineDefaultStepSchema).readonly(),
|
|
11914
|
-
engine: PipelineEngineChoiceSchema.optional(),
|
|
11915
11960
|
group: string().optional(),
|
|
11916
11961
|
settings: record(string(), unknown()).optional()
|
|
11917
11962
|
}));
|
|
@@ -11936,7 +11981,9 @@ var PipelineModelOptionSchema = object({
|
|
|
11936
11981
|
formats: record(string(), object({
|
|
11937
11982
|
downloaded: boolean(),
|
|
11938
11983
|
sizeMB: number()
|
|
11939
|
-
}))
|
|
11984
|
+
})),
|
|
11985
|
+
group: ModelVariantGroupSchema.optional(),
|
|
11986
|
+
legacy: boolean().optional()
|
|
11940
11987
|
});
|
|
11941
11988
|
var ConfigFieldBridge = custom();
|
|
11942
11989
|
var PipelineAddonSchemaSchema = object({
|
|
@@ -11950,6 +11997,7 @@ var PipelineAddonSchemaSchema = object({
|
|
|
11950
11997
|
defaultModelId: string(),
|
|
11951
11998
|
defaultModelIdByFormat: record(string(), string()).optional(),
|
|
11952
11999
|
enabledByDefault: boolean().optional(),
|
|
12000
|
+
backfillIntoExistingOverrides: boolean().optional(),
|
|
11953
12001
|
defaultConfidence: number(),
|
|
11954
12002
|
group: string().optional(),
|
|
11955
12003
|
configSchema: array(ConfigFieldBridge).readonly().optional()
|
|
@@ -11966,11 +12014,6 @@ var PipelineSchemaSchema = object({
|
|
|
11966
12014
|
selectedEngine: PipelineEngineChoiceSchema,
|
|
11967
12015
|
slots: array(PipelineSlotSchemaSchema).readonly()
|
|
11968
12016
|
});
|
|
11969
|
-
var DetectorOutputSchema = object({
|
|
11970
|
-
detections: array(SpatialDetectionSchema).readonly(),
|
|
11971
|
-
inferenceMs: number(),
|
|
11972
|
-
modelId: string()
|
|
11973
|
-
});
|
|
11974
12017
|
var EngineProvisioningSchema = object({
|
|
11975
12018
|
runtimeId: _enum([
|
|
11976
12019
|
"onnx",
|
|
@@ -11987,15 +12030,42 @@ var EngineProvisioningSchema = object({
|
|
|
11987
12030
|
]),
|
|
11988
12031
|
progress: number().optional(),
|
|
11989
12032
|
error: string().optional(),
|
|
11990
|
-
nextRetryAt: number().optional()
|
|
12033
|
+
nextRetryAt: number().optional(),
|
|
12034
|
+
/**
|
|
12035
|
+
* Gate A (config-correctness gate at engine change): human-readable
|
|
12036
|
+
* config issues surfaced EAGERLY when the node's engine changes — model
|
|
12037
|
+
* substitutions ("chose X, running Y") and zero-build steps ("no model
|
|
12038
|
+
* has a <format> build"). Additive/optional: informational only, never
|
|
12039
|
+
* enforced here — `assertEngineReady` (readiness) still gates inference.
|
|
12040
|
+
* Absent/empty when the node-default tree resolves cleanly.
|
|
12041
|
+
*/
|
|
12042
|
+
configIssues: array(string()).optional()
|
|
11991
12043
|
});
|
|
11992
12044
|
var PipelineStepInputSchema = lazy(() => object({
|
|
11993
12045
|
addonId: string(),
|
|
11994
|
-
modelId: string(),
|
|
12046
|
+
modelId: string().optional(),
|
|
11995
12047
|
enabled: boolean().default(true),
|
|
11996
12048
|
children: array(PipelineStepInputSchema).optional(),
|
|
11997
12049
|
settings: record(string(), unknown()).optional()
|
|
11998
12050
|
}));
|
|
12051
|
+
var ModelSubstitutionSchema = object({
|
|
12052
|
+
addonId: string(),
|
|
12053
|
+
chosen: string(),
|
|
12054
|
+
running: string(),
|
|
12055
|
+
format: string()
|
|
12056
|
+
});
|
|
12057
|
+
var PipelineValidationIssueSchema = object({
|
|
12058
|
+
addonId: string(),
|
|
12059
|
+
kind: _enum(["unknown-addon", "no-format-build"]),
|
|
12060
|
+
detail: string()
|
|
12061
|
+
});
|
|
12062
|
+
var PipelineValidationResultSchema = object({
|
|
12063
|
+
ok: boolean(),
|
|
12064
|
+
issues: array(PipelineValidationIssueSchema).readonly(),
|
|
12065
|
+
substitutions: array(ModelSubstitutionSchema).readonly(),
|
|
12066
|
+
/** The node's `currentEngine.format` this validation ran against. */
|
|
12067
|
+
format: string()
|
|
12068
|
+
});
|
|
11999
12069
|
var ReferenceImageEntrySchema = object({
|
|
12000
12070
|
filename: string(),
|
|
12001
12071
|
stepIds: array(string()).readonly().optional()
|
|
@@ -12066,7 +12136,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
12066
12136
|
})) }), object({ success: literal(true) }), {
|
|
12067
12137
|
kind: "mutation",
|
|
12068
12138
|
auth: "admin"
|
|
12069
|
-
}), method(
|
|
12139
|
+
}), method(object({ nodeId: string() }), object({
|
|
12140
|
+
success: literal(true),
|
|
12141
|
+
clearedDevices: number()
|
|
12142
|
+
}), {
|
|
12143
|
+
kind: "mutation",
|
|
12144
|
+
auth: "admin"
|
|
12145
|
+
}), 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({
|
|
12070
12146
|
name: string(),
|
|
12071
12147
|
steps: array(PipelineTemplateStepSchema).readonly(),
|
|
12072
12148
|
engine: PipelineEngineChoiceSchema
|
|
@@ -12083,10 +12159,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
12083
12159
|
modelId: string(),
|
|
12084
12160
|
format: ModelFormatSchema$1
|
|
12085
12161
|
}), object({ success: literal(true) }), { kind: "mutation" }), method(object({
|
|
12086
|
-
addonId: string(),
|
|
12087
|
-
frame: FrameInputSchema,
|
|
12088
|
-
config: record(string(), unknown()).optional()
|
|
12089
|
-
}), DetectorOutputSchema), method(object({
|
|
12090
12162
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
12091
12163
|
steps: array(PipelineStepInputSchema).min(1),
|
|
12092
12164
|
frame: FrameInputSchema.optional(),
|
|
@@ -12265,6 +12337,25 @@ var zonesCapability = {
|
|
|
12265
12337
|
runtimeState: object({ zones: array(ZoneSchema).readonly() })
|
|
12266
12338
|
};
|
|
12267
12339
|
/**
|
|
12340
|
+
* A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
|
|
12341
|
+
* decode worker resolves it against the RETAINED native frame's real pixel dims,
|
|
12342
|
+
* so the caller supplies only the detection-res bbox divided by the detection
|
|
12343
|
+
* dims — no native resolution to plumb.
|
|
12344
|
+
*/
|
|
12345
|
+
var NativeCropBboxSchema = object({
|
|
12346
|
+
x: number(),
|
|
12347
|
+
y: number(),
|
|
12348
|
+
w: number(),
|
|
12349
|
+
h: number()
|
|
12350
|
+
});
|
|
12351
|
+
/** Result of a best-effort native-resolution crop (`getNativeCrop`). */
|
|
12352
|
+
var NativeCropResultSchema = object({
|
|
12353
|
+
/** Packed rgb (24-bit) pixels of the crop. */
|
|
12354
|
+
bytes: _instanceof(Uint8Array),
|
|
12355
|
+
width: number().int().positive(),
|
|
12356
|
+
height: number().int().positive()
|
|
12357
|
+
});
|
|
12358
|
+
/**
|
|
12268
12359
|
* Per-camera tunable ranges + defaults. Single source of truth used
|
|
12269
12360
|
* by both the Zod data schema (validation + default fallback) and
|
|
12270
12361
|
* the device settings UI (slider min/max/step). Touch one place and
|
|
@@ -12359,6 +12450,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
|
|
|
12359
12450
|
kind: literal("remote-restream"),
|
|
12360
12451
|
/** The camera's source-owner node (slice 1: always the hub). */
|
|
12361
12452
|
ownerNodeId: string(),
|
|
12453
|
+
/**
|
|
12454
|
+
* The owner's LAN-reachable host, resolved by the orchestrator from the
|
|
12455
|
+
* per-node `reachableHost` override (Cluster UI). When present the runner
|
|
12456
|
+
* dials THIS host for the owner's restream, in preference to the
|
|
12457
|
+
* `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
|
|
12458
|
+
*/
|
|
12459
|
+
ownerReachableHost: string().optional(),
|
|
12362
12460
|
/** Operator override for the owner host the runner dials. */
|
|
12363
12461
|
hubHostnameOverride: string().optional()
|
|
12364
12462
|
})]).describe("Per-camera frame-source mode for the runner (P2c)");
|
|
@@ -12367,13 +12465,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
|
|
|
12367
12465
|
* specific runner instance via `attachCamera`. Carries everything the
|
|
12368
12466
|
* runner needs to subscribe to the local broker and execute inference.
|
|
12369
12467
|
*
|
|
12370
|
-
* Stateless-pipeline model: the
|
|
12371
|
-
*
|
|
12372
|
-
*
|
|
12373
|
-
*
|
|
12374
|
-
*
|
|
12375
|
-
* `engine`/`steps`/`audio` are optional during the additive migration
|
|
12376
|
-
* window; once orchestrator + UI are migrated they become required.
|
|
12468
|
+
* Stateless-pipeline model: the pipeline content (`steps`, optional
|
|
12469
|
+
* `audio`) travels with the attach payload. The runner keeps it in RAM
|
|
12470
|
+
* for the lifetime of the attach — on rebalance, edit, or restart the
|
|
12471
|
+
* orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
|
|
12472
|
+
* node-local, resolved by the executing runner at dispatch time.
|
|
12377
12473
|
*/
|
|
12378
12474
|
var RunnerCameraConfigSchema = object({
|
|
12379
12475
|
deviceId: number(),
|
|
@@ -12424,14 +12520,11 @@ var RunnerCameraConfigSchema = object({
|
|
|
12424
12520
|
*/
|
|
12425
12521
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
12426
12522
|
pipelineEnabled: boolean().default(true),
|
|
12427
|
-
/** Engine choice for video steps (runtime+backend+format). */
|
|
12428
|
-
engine: PipelineEngineChoiceSchema.optional(),
|
|
12429
12523
|
/** Ordered tree of video steps. Absent → runner skips video detection. */
|
|
12430
12524
|
steps: array(PipelineStepInputSchema).readonly().optional(),
|
|
12431
12525
|
/** Audio classification branch. `enabled:false` disables, null skips. */
|
|
12432
12526
|
audio: object({
|
|
12433
|
-
|
|
12434
|
-
modelId: string(),
|
|
12527
|
+
modelId: string().optional(),
|
|
12435
12528
|
enabled: boolean()
|
|
12436
12529
|
}).nullable().optional(),
|
|
12437
12530
|
/**
|
|
@@ -12518,7 +12611,11 @@ var RunnerLocalMetricsSchema = object({
|
|
|
12518
12611
|
avgInferenceTimeMs: number(),
|
|
12519
12612
|
queueDepth: number()
|
|
12520
12613
|
});
|
|
12521
|
-
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())
|
|
12614
|
+
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({
|
|
12615
|
+
handle: FrameHandleSchema,
|
|
12616
|
+
bbox: NativeCropBboxSchema,
|
|
12617
|
+
maxWidth: number().int().positive().optional()
|
|
12618
|
+
}), NativeCropResultSchema.nullable());
|
|
12522
12619
|
/**
|
|
12523
12620
|
* Hardware / firmware motion sensor cap — binary detected state plus
|
|
12524
12621
|
* a timestamp of the last observation. Distinct from
|
|
@@ -15449,7 +15546,9 @@ var AddonPageDeclarationSchema$1 = object({
|
|
|
15449
15546
|
icon: string(),
|
|
15450
15547
|
path: string(),
|
|
15451
15548
|
remoteName: string(),
|
|
15452
|
-
bundle: string()
|
|
15549
|
+
bundle: string(),
|
|
15550
|
+
section: string().optional(),
|
|
15551
|
+
sectionLabel: string().optional()
|
|
15453
15552
|
});
|
|
15454
15553
|
var AddonPageInfoSchema = object({
|
|
15455
15554
|
addonId: string(),
|
|
@@ -15489,7 +15588,18 @@ var AddonPageDeclarationSchema = object({
|
|
|
15489
15588
|
* the static-file route can compute an mtime-based cache-buster URL
|
|
15490
15589
|
* without a separate filesystem stat.
|
|
15491
15590
|
*/
|
|
15492
|
-
bundle: string()
|
|
15591
|
+
bundle: string(),
|
|
15592
|
+
/**
|
|
15593
|
+
* Sidebar section this page docks into. Well-known ids: `'detection'`,
|
|
15594
|
+
* `'cluster'`, `'administration'` — the page renders inside that group.
|
|
15595
|
+
* Any OTHER string creates (or joins) a custom section rendered after
|
|
15596
|
+
* the built-in groups; its label comes from `sectionLabel` (first
|
|
15597
|
+
* declaration wins), falling back to the id. Absent → the legacy
|
|
15598
|
+
* "Addon Pages" group.
|
|
15599
|
+
*/
|
|
15600
|
+
section: string().optional(),
|
|
15601
|
+
/** Display label for a CUSTOM `section` id (ignored for well-known ids). */
|
|
15602
|
+
sectionLabel: string().optional()
|
|
15493
15603
|
});
|
|
15494
15604
|
method(_void(), array(AddonPageDeclarationSchema).readonly());
|
|
15495
15605
|
var AddonHttpRouteSchema = object({
|
|
@@ -15705,6 +15815,17 @@ var WidgetMetadataSchema = object({
|
|
|
15705
15815
|
deviceContext: boolean().default(false),
|
|
15706
15816
|
integrationContext: boolean().default(false)
|
|
15707
15817
|
}),
|
|
15818
|
+
/**
|
|
15819
|
+
* Loadable BEFORE authentication. The normal widget registry listing
|
|
15820
|
+
* (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
|
|
15821
|
+
* (the login page) cannot discover a widget through it. A widget that
|
|
15822
|
+
* declares `preAuth: true` marks itself as safe to mount on a pre-auth
|
|
15823
|
+
* screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
|
|
15824
|
+
* login-method contribution channel (see `login-method.cap.ts`) rather
|
|
15825
|
+
* than the authenticated registry, and its bundle is served by the
|
|
15826
|
+
* public `/api/addon-widgets/:addonId/*` static route. Defaults false.
|
|
15827
|
+
*/
|
|
15828
|
+
preAuth: boolean().optional().default(false),
|
|
15708
15829
|
/** Dashboard placement HINTS (operator can override per instance). */
|
|
15709
15830
|
defaultSize: WidgetSizeEnum.default("md"),
|
|
15710
15831
|
allowedSizes: array(WidgetSizeEnum).readonly().default([
|
|
@@ -16006,6 +16127,66 @@ method(object({
|
|
|
16006
16127
|
password: string()
|
|
16007
16128
|
}), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
|
|
16008
16129
|
/**
|
|
16130
|
+
* `login-method` — collection cap through which auth addons contribute
|
|
16131
|
+
* their pre-auth login surfaces to the login page. This is the SINGLE,
|
|
16132
|
+
* generic mechanism that supersedes the dead `auth.listProviders` reader:
|
|
16133
|
+
* every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
|
|
16134
|
+
* `login-method` provider and the PUBLIC `auth.listLoginMethods`
|
|
16135
|
+
* procedure aggregates them for the unauthenticated login page.
|
|
16136
|
+
*
|
|
16137
|
+
* A contribution is a discriminated union on `kind`:
|
|
16138
|
+
*
|
|
16139
|
+
* - `redirect` — a declarative button. The login page renders a generic
|
|
16140
|
+
* button that navigates to `startUrl` (an addon-owned HTTP route).
|
|
16141
|
+
* Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
|
|
16142
|
+
* ZERO shell-side JS. A future SSO addon plugs in the same way — the
|
|
16143
|
+
* login page needs NO change.
|
|
16144
|
+
*
|
|
16145
|
+
* - `widget` — a Module-Federation widget the login page mounts (via
|
|
16146
|
+
* `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
|
|
16147
|
+
* login ceremony, which must run `@simplewebauthn/browser` INSIDE the
|
|
16148
|
+
* addon bundle. The referenced widget also declares `preAuth: true` in
|
|
16149
|
+
* its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
|
|
16150
|
+
* stamps a public `bundleUrl` from `addonId` + `bundle`.
|
|
16151
|
+
*
|
|
16152
|
+
* Every contribution carries a `stage`:
|
|
16153
|
+
* - `primary` — shown on the first credentials screen (OIDC /
|
|
16154
|
+
* magic-link buttons; a future usernameless passkey).
|
|
16155
|
+
* - `second-factor` — shown AFTER the password leg, gated on the
|
|
16156
|
+
* returned `factors` (passkey-as-2FA today).
|
|
16157
|
+
*
|
|
16158
|
+
* `mount: skip` — the cap is read server-side by the core auth router
|
|
16159
|
+
* (`registry.getCollection('login-method')`), never mounted as its own
|
|
16160
|
+
* tRPC router.
|
|
16161
|
+
*/
|
|
16162
|
+
/** When a login method renders in the two-phase login flow. */
|
|
16163
|
+
var LoginStageEnum = _enum(["primary", "second-factor"]);
|
|
16164
|
+
/** One login-method contribution — redirect button OR pre-auth widget. */
|
|
16165
|
+
var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
|
|
16166
|
+
kind: literal("redirect"),
|
|
16167
|
+
/** Stable id within the login-method set (e.g. `auth-oidc/google`). */
|
|
16168
|
+
id: string(),
|
|
16169
|
+
/** Operator-facing button label. */
|
|
16170
|
+
label: string(),
|
|
16171
|
+
/** lucide-react icon name. */
|
|
16172
|
+
icon: string().optional(),
|
|
16173
|
+
/** Addon-owned HTTP route the button navigates to (GET). */
|
|
16174
|
+
startUrl: string(),
|
|
16175
|
+
stage: LoginStageEnum
|
|
16176
|
+
}), object({
|
|
16177
|
+
kind: literal("widget"),
|
|
16178
|
+
/** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
|
|
16179
|
+
id: string(),
|
|
16180
|
+
/** Owning addon id — drives the public bundle URL + the MF namespace. */
|
|
16181
|
+
addonId: string(),
|
|
16182
|
+
/** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
|
|
16183
|
+
bundle: string(),
|
|
16184
|
+
/** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
|
|
16185
|
+
remote: WidgetRemoteSchema,
|
|
16186
|
+
stage: LoginStageEnum
|
|
16187
|
+
})]);
|
|
16188
|
+
method(_void(), array(LoginMethodContributionSchema).readonly());
|
|
16189
|
+
/**
|
|
16009
16190
|
* Orchestrator-side destination metadata. The orchestrator computes
|
|
16010
16191
|
* `id = <addonId>:<subId>` from its provider lookup so consumers
|
|
16011
16192
|
* (admin UI, restore flow) see one canonical key.
|
|
@@ -18189,7 +18370,17 @@ var TrackSchema = object({
|
|
|
18189
18370
|
/** Cumulative normalized distance travelled (0..1 units = full frame width). */
|
|
18190
18371
|
totalDistance: number(),
|
|
18191
18372
|
state: TrackStateSchema,
|
|
18192
|
-
active: boolean()
|
|
18373
|
+
active: boolean(),
|
|
18374
|
+
/** Deterministic key-event importance score in [0,1] (server-computed at
|
|
18375
|
+
* track expiry, recomputed on late label). Absent on legacy rows written
|
|
18376
|
+
* before scoring shipped — consumers degrade to absence / compute-on-read. */
|
|
18377
|
+
importance: number().optional(),
|
|
18378
|
+
/** Id of the track's highest-confidence ObjectEvent (its representative
|
|
18379
|
+
* "best" frame). Absent when the track produced no object events. */
|
|
18380
|
+
bestEventId: string().optional(),
|
|
18381
|
+
/** Tag of the importance sub-signal that dominated the score
|
|
18382
|
+
* (identity|dwell|proximity|class|confidence|travel|zone). */
|
|
18383
|
+
importanceReason: string().optional()
|
|
18193
18384
|
});
|
|
18194
18385
|
var BaseEventFields = {
|
|
18195
18386
|
id: string(),
|
|
@@ -18254,8 +18445,18 @@ var ObjectEventSchema = object({
|
|
|
18254
18445
|
frameHeight: number().optional(),
|
|
18255
18446
|
/** MediaStore key for the crop attached to this event (if any). */
|
|
18256
18447
|
mediaKey: string().optional(),
|
|
18448
|
+
/** Design B: MediaStore key of the track's native-resolution key frame (the
|
|
18449
|
+
* best-detection full frame). Resolve via the event-media data-plane
|
|
18450
|
+
* (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
|
|
18451
|
+
* draws `bbox` over the native frame. Absent on legacy rows / non-decoded
|
|
18452
|
+
* sources — consumers fall back to `mediaKey` (the tight crop). */
|
|
18453
|
+
keyFrameMediaKey: string().optional(),
|
|
18257
18454
|
/** Populated by B5 (recording playback URL for this event). */
|
|
18258
|
-
mediaUrl: string().optional()
|
|
18455
|
+
mediaUrl: string().optional(),
|
|
18456
|
+
/** The parent track's key-event importance [0,1], propagated to every object
|
|
18457
|
+
* event of the track (so an event row can be sorted by importance without a
|
|
18458
|
+
* track join). Absent on legacy rows / before the track was scored. */
|
|
18459
|
+
importance: number().optional()
|
|
18259
18460
|
});
|
|
18260
18461
|
var AudioEventSchema = object({
|
|
18261
18462
|
...BaseEventFields,
|
|
@@ -18279,7 +18480,8 @@ var MediaFileKindEnum = _enum([
|
|
|
18279
18480
|
"fullFrame",
|
|
18280
18481
|
"fullFrameBoxed",
|
|
18281
18482
|
"faceCrop",
|
|
18282
|
-
"plateCrop"
|
|
18483
|
+
"plateCrop",
|
|
18484
|
+
"keyFrame"
|
|
18283
18485
|
]);
|
|
18284
18486
|
var MediaFileSchema = object({
|
|
18285
18487
|
key: string(),
|
|
@@ -18300,6 +18502,32 @@ var DeviceEventQueryInput = object({
|
|
|
18300
18502
|
projection: _enum(["full", "slim"]).optional()
|
|
18301
18503
|
});
|
|
18302
18504
|
var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
|
|
18505
|
+
var KeyEventQueryInput = object({
|
|
18506
|
+
deviceId: number(),
|
|
18507
|
+
/** Window lower bound (track firstSeen ≥ since). */
|
|
18508
|
+
since: number(),
|
|
18509
|
+
/** Window upper bound (track firstSeen ≤ until). */
|
|
18510
|
+
until: number(),
|
|
18511
|
+
limit: number().int().min(1).max(200).default(50),
|
|
18512
|
+
/** Drop tracks scoring below this importance. */
|
|
18513
|
+
minImportance: number().min(0).max(1).optional(),
|
|
18514
|
+
/** Restrict to a single class (e.g. 'person'). */
|
|
18515
|
+
classFilter: string().optional()
|
|
18516
|
+
});
|
|
18517
|
+
var KeyEventSchema = object({
|
|
18518
|
+
/** The representative event id (the track's best ObjectEvent, else its trackId). */
|
|
18519
|
+
id: string(),
|
|
18520
|
+
trackId: string(),
|
|
18521
|
+
/** Track start time (firstSeen). */
|
|
18522
|
+
timestamp: number(),
|
|
18523
|
+
className: string(),
|
|
18524
|
+
label: string().optional(),
|
|
18525
|
+
importance: number(),
|
|
18526
|
+
/** Highest-confidence ObjectEvent id for the track (empty when none). */
|
|
18527
|
+
bestEventId: string(),
|
|
18528
|
+
/** Track lifetime in ms (lastSeen - firstSeen). */
|
|
18529
|
+
windowMs: number().optional()
|
|
18530
|
+
});
|
|
18303
18531
|
var TrackedDetectionSchema = object({
|
|
18304
18532
|
trackId: string(),
|
|
18305
18533
|
className: string(),
|
|
@@ -18329,7 +18557,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
18329
18557
|
}), array(TrackSchema).readonly()), method(object({ deviceId: number() }), _void(), {
|
|
18330
18558
|
kind: "mutation",
|
|
18331
18559
|
auth: "admin"
|
|
18332
|
-
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({
|
|
18560
|
+
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
|
|
18333
18561
|
deviceId: number(),
|
|
18334
18562
|
since: number(),
|
|
18335
18563
|
until: number(),
|
|
@@ -18374,11 +18602,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
18374
18602
|
timestamp: number()
|
|
18375
18603
|
});
|
|
18376
18604
|
var CameraPipelineConfigSchema = object({
|
|
18377
|
-
engine: PipelineEngineChoiceSchema,
|
|
18605
|
+
engine: PipelineEngineChoiceSchema.optional(),
|
|
18378
18606
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
18379
18607
|
audio: object({
|
|
18380
|
-
engine: PipelineEngineChoiceSchema,
|
|
18381
|
-
modelId: string(),
|
|
18608
|
+
engine: PipelineEngineChoiceSchema.optional(),
|
|
18609
|
+
modelId: string().optional(),
|
|
18382
18610
|
enabled: boolean(),
|
|
18383
18611
|
settings: record(string(), unknown()).readonly().optional()
|
|
18384
18612
|
}).nullable().optional()
|
|
@@ -18393,7 +18621,7 @@ var PipelineTemplateSchema = object({
|
|
|
18393
18621
|
});
|
|
18394
18622
|
var AgentAddonConfigSchema = object({
|
|
18395
18623
|
enabled: boolean(),
|
|
18396
|
-
modelId: string(),
|
|
18624
|
+
modelId: string().optional(),
|
|
18397
18625
|
settings: record(string(), unknown()).readonly()
|
|
18398
18626
|
});
|
|
18399
18627
|
var AgentPipelineSettingsSchema = object({
|
|
@@ -18403,12 +18631,25 @@ var AgentPipelineSettingsSchema = object({
|
|
|
18403
18631
|
detectWeight: number().positive().optional(),
|
|
18404
18632
|
/** Node is eligible to run the detection pipeline (decode + inference). */
|
|
18405
18633
|
detect: boolean().optional(),
|
|
18406
|
-
/**
|
|
18634
|
+
/**
|
|
18635
|
+
* DEPRECATED AND IGNORED. Decode is always co-located with its frame
|
|
18636
|
+
* consumer, so decode eligibility IS detect eligibility. Kept optional in
|
|
18637
|
+
* the schema ONLY so persisted stores written before the removal still
|
|
18638
|
+
* parse — no code reads it and no write path emits it.
|
|
18639
|
+
*/
|
|
18407
18640
|
decode: boolean().optional(),
|
|
18408
18641
|
/** Node is eligible to run audio-analyzer sessions. */
|
|
18409
18642
|
audio: boolean().optional(),
|
|
18410
18643
|
/** Node is eligible to be the ingest / source-owner (serve the restream). */
|
|
18411
|
-
ingest: boolean().optional()
|
|
18644
|
+
ingest: boolean().optional(),
|
|
18645
|
+
/**
|
|
18646
|
+
* Operator override for the LAN host a cross-node decoder dials to reach
|
|
18647
|
+
* THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
|
|
18648
|
+
* falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
|
|
18649
|
+
* it already uses to reach the hub). Set this only when the auto-detected
|
|
18650
|
+
* address is wrong (multi-homed host, NAT, custom interface).
|
|
18651
|
+
*/
|
|
18652
|
+
reachableHost: string().optional()
|
|
18412
18653
|
});
|
|
18413
18654
|
var CameraPipelineForAgentSchema = object({
|
|
18414
18655
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -18456,25 +18697,6 @@ var PipelineAssignmentSchema = object({
|
|
|
18456
18697
|
assignedAt: number()
|
|
18457
18698
|
});
|
|
18458
18699
|
/**
|
|
18459
|
-
* Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
|
|
18460
|
-
* the decoder-node placement domain (`balanceDecoder` decision: manual pin
|
|
18461
|
-
* → co-located with pipeline → capacity).
|
|
18462
|
-
*/
|
|
18463
|
-
var DecoderAssignmentSchema = object({
|
|
18464
|
-
deviceId: number(),
|
|
18465
|
-
/** Moleculer node id of the decoder provider currently responsible for this camera. */
|
|
18466
|
-
decoderNodeId: string(),
|
|
18467
|
-
/** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
|
|
18468
|
-
pinned: boolean(),
|
|
18469
|
-
/** Why this assignment was made — useful for debugging the decoder balancer. */
|
|
18470
|
-
reason: _enum([
|
|
18471
|
-
"manual",
|
|
18472
|
-
"co-located",
|
|
18473
|
-
"capacity",
|
|
18474
|
-
"hardware-affinity"
|
|
18475
|
-
])
|
|
18476
|
-
});
|
|
18477
|
-
/**
|
|
18478
18700
|
* Per-agent load summary surfaced to the load balancer + dashboards.
|
|
18479
18701
|
* Aggregated from each runner's `getLocalLoad` cap call.
|
|
18480
18702
|
*/
|
|
@@ -18514,6 +18736,15 @@ var GlobalMetricsSchema = object({
|
|
|
18514
18736
|
* capability providers.
|
|
18515
18737
|
*/
|
|
18516
18738
|
var CapabilityBindingsSchema = record(string(), string());
|
|
18739
|
+
/**
|
|
18740
|
+
* The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
|
|
18741
|
+
* its LAN-reachable host, if one is registered. See `getIngestOwner`.
|
|
18742
|
+
*/
|
|
18743
|
+
var IngestOwnerSchema = object({
|
|
18744
|
+
ownerNodeId: string(),
|
|
18745
|
+
reachableHost: string().optional(),
|
|
18746
|
+
configIssue: string().optional()
|
|
18747
|
+
});
|
|
18517
18748
|
/** Source block — always present; derives from the stream catalog. */
|
|
18518
18749
|
var CameraSourceStatusSchema = object({ streams: array(object({
|
|
18519
18750
|
camStreamId: string(),
|
|
@@ -18528,6 +18759,14 @@ var CameraAssignmentStatusSchema = object({
|
|
|
18528
18759
|
detectionNodeId: string().nullable(),
|
|
18529
18760
|
decoderNodeId: string().nullable(),
|
|
18530
18761
|
audioNodeId: string().nullable(),
|
|
18762
|
+
/**
|
|
18763
|
+
* The node that OWNS this camera's physical source pull (dials the RTSP and
|
|
18764
|
+
* hosts the broker/restream) — the cluster ingest owner today
|
|
18765
|
+
* (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
|
|
18766
|
+
* the UI show WHERE a camera is sourced without SSH/logs, and is the node the
|
|
18767
|
+
* broker block below was read from (pinned). Nullable only pre-wiring.
|
|
18768
|
+
*/
|
|
18769
|
+
sourceNodeId: string().nullable(),
|
|
18531
18770
|
pinned: object({
|
|
18532
18771
|
detection: boolean(),
|
|
18533
18772
|
decoder: boolean(),
|
|
@@ -18660,16 +18899,7 @@ method(object({
|
|
|
18660
18899
|
}), object({ success: literal(true) }), {
|
|
18661
18900
|
kind: "mutation",
|
|
18662
18901
|
auth: "admin"
|
|
18663
|
-
}), method(object({
|
|
18664
|
-
deviceId: number(),
|
|
18665
|
-
nodeId: string()
|
|
18666
|
-
}), _void(), {
|
|
18667
|
-
kind: "mutation",
|
|
18668
|
-
auth: "admin"
|
|
18669
|
-
}), method(object({ deviceId: number() }), _void(), {
|
|
18670
|
-
kind: "mutation",
|
|
18671
|
-
auth: "admin"
|
|
18672
|
-
}), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
|
|
18902
|
+
}), method(_void(), IngestOwnerSchema), method(object({
|
|
18673
18903
|
deviceId: number(),
|
|
18674
18904
|
nodeId: string()
|
|
18675
18905
|
}), object({ success: literal(true) }), {
|
|
@@ -18690,10 +18920,7 @@ method(object({
|
|
|
18690
18920
|
nodeId: string(),
|
|
18691
18921
|
pinned: boolean(),
|
|
18692
18922
|
assignedAt: number()
|
|
18693
|
-
}))), method(object({
|
|
18694
|
-
deviceId: number(),
|
|
18695
|
-
pipelineNodeId: string().optional()
|
|
18696
|
-
}), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
|
|
18923
|
+
}))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
|
|
18697
18924
|
nodeId: string(),
|
|
18698
18925
|
settings: AgentPipelineSettingsSchema
|
|
18699
18926
|
})).readonly()), method(object({
|
|
@@ -18723,12 +18950,26 @@ method(object({
|
|
|
18723
18950
|
}), method(object({
|
|
18724
18951
|
agentNodeId: string(),
|
|
18725
18952
|
detect: boolean().nullable().optional(),
|
|
18726
|
-
decode: boolean().nullable().optional(),
|
|
18727
18953
|
audio: boolean().nullable().optional(),
|
|
18728
18954
|
ingest: boolean().nullable().optional()
|
|
18729
18955
|
}), object({ success: literal(true) }), {
|
|
18730
18956
|
kind: "mutation",
|
|
18731
18957
|
auth: "admin"
|
|
18958
|
+
}), method(object({
|
|
18959
|
+
agentNodeId: string(),
|
|
18960
|
+
reachableHost: string().nullable()
|
|
18961
|
+
}), object({ success: literal(true) }), {
|
|
18962
|
+
kind: "mutation",
|
|
18963
|
+
auth: "admin"
|
|
18964
|
+
}), method(object({ agentNodeId: string() }), object({
|
|
18965
|
+
success: literal(true),
|
|
18966
|
+
/** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
|
|
18967
|
+
effectiveModelId: string().nullable(),
|
|
18968
|
+
/** Number of cameras whose node-scoped overrides were cleared. */
|
|
18969
|
+
clearedCameraOverrides: number()
|
|
18970
|
+
}), {
|
|
18971
|
+
kind: "mutation",
|
|
18972
|
+
auth: "admin"
|
|
18732
18973
|
}), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
|
|
18733
18974
|
deviceId: number(),
|
|
18734
18975
|
addonId: string(),
|
|
@@ -18773,22 +19014,131 @@ method(object({
|
|
|
18773
19014
|
kind: "mutation",
|
|
18774
19015
|
auth: "admin"
|
|
18775
19016
|
});
|
|
18776
|
-
|
|
18777
|
-
|
|
18778
|
-
|
|
18779
|
-
|
|
18780
|
-
|
|
18781
|
-
|
|
19017
|
+
/**
|
|
19018
|
+
* server-management — per-NODE singleton capability for a node's ROOT
|
|
19019
|
+
* package lifecycle (runtime-updatable node packages, phase 2: hub + docker
|
|
19020
|
+
* agents).
|
|
19021
|
+
*
|
|
19022
|
+
* Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
|
|
19023
|
+
* on agents) carries the whole software stack in its npm dep tree, so ONE
|
|
19024
|
+
* version describes the node. Updates install into
|
|
19025
|
+
* `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
|
|
19026
|
+
* starter (probation boot + auto-rollback to N-1).
|
|
19027
|
+
*
|
|
19028
|
+
* Providers:
|
|
19029
|
+
* - HUB: `ServerUpdateService` behind the `server-provided` mount
|
|
19030
|
+
* (`buildServerProviders` in trpc.router.ts) — the default target for
|
|
19031
|
+
* unpinned calls.
|
|
19032
|
+
* - AGENT: `AgentUpdateService` registered by the agent bootstrap under
|
|
19033
|
+
* the synthetic `agent-runtime` addonId and declared in the agent's
|
|
19034
|
+
* `$hub.registerNode` manifest.
|
|
19035
|
+
*
|
|
19036
|
+
* Node routing: singleton caps get the codegen/runtime-builder `nodeId`
|
|
19037
|
+
* injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
|
|
19038
|
+
* SDK) routes the call to that node's provider via the standard remote
|
|
19039
|
+
* proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
|
|
19040
|
+
* in-process provider lookup). No `nodeId` → the hub's own provider.
|
|
19041
|
+
*
|
|
19042
|
+
* Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
|
|
19043
|
+
*/
|
|
19044
|
+
/**
|
|
19045
|
+
* Where the running hub's code was loaded from:
|
|
19046
|
+
* - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
|
|
19047
|
+
* plain resolution and runtime updates are refused.
|
|
19048
|
+
* - `baked` — the immutable image seed closure (no data-dir root active).
|
|
19049
|
+
* - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
|
|
19050
|
+
*/
|
|
19051
|
+
var ServerBootModeSchema = _enum([
|
|
19052
|
+
"workspace",
|
|
19053
|
+
"baked",
|
|
19054
|
+
"data-root"
|
|
19055
|
+
]);
|
|
19056
|
+
/**
|
|
19057
|
+
* Update lifecycle state:
|
|
19058
|
+
* - `idle` / `checking` / `staging` — steady / in-flight registry work.
|
|
19059
|
+
* - `pending-restart` — a version is staged and the node has NOT yet
|
|
19060
|
+
* restarted onto it (still running the OLD version).
|
|
19061
|
+
* - `awaiting-confirmation` — the node HAS restarted onto the staged version
|
|
19062
|
+
* (it is the active probation boot) and is waiting to confirm boot-health.
|
|
19063
|
+
* Apply/rollback are refused in this state and the node must NOT be
|
|
19064
|
+
* manually restarted, or the probation boot auto-rolls-back.
|
|
19065
|
+
*/
|
|
19066
|
+
var ServerUpdateStateSchema = _enum([
|
|
19067
|
+
"idle",
|
|
19068
|
+
"checking",
|
|
19069
|
+
"staging",
|
|
19070
|
+
"pending-restart",
|
|
19071
|
+
"awaiting-confirmation"
|
|
19072
|
+
]);
|
|
19073
|
+
var ServerRollbackInfoSchema = object({
|
|
19074
|
+
/** The version that failed (or was manually rolled back). */
|
|
19075
|
+
fromVersion: string(),
|
|
19076
|
+
/** The version rolled back to; null = the baked seed. */
|
|
19077
|
+
toVersion: string().nullable(),
|
|
19078
|
+
atMs: number(),
|
|
19079
|
+
reason: string()
|
|
18782
19080
|
});
|
|
18783
|
-
var
|
|
18784
|
-
|
|
18785
|
-
|
|
18786
|
-
|
|
19081
|
+
var ServerPackageStatusSchema = object({
|
|
19082
|
+
/** Root package name (`@camstack/server` on the hub). */
|
|
19083
|
+
packageName: string(),
|
|
19084
|
+
/** Version of the code the running process ACTUALLY loaded. */
|
|
19085
|
+
runningVersion: string().nullable(),
|
|
19086
|
+
/** Node.js runtime version the node's process runs on (`process.versions.node`). */
|
|
19087
|
+
nodeRuntimeVersion: string().nullable(),
|
|
19088
|
+
/** Active data-dir root version; null when booted from seed/workspace. */
|
|
19089
|
+
activeVersion: string().nullable(),
|
|
19090
|
+
/** N-1 version kept for rollback; null when no previous version exists. */
|
|
19091
|
+
previousVersion: string().nullable(),
|
|
19092
|
+
/** Version of the immutable baked seed closure (image fallback). */
|
|
19093
|
+
seedVersion: string().nullable(),
|
|
19094
|
+
/** Latest registry version from the most recent check (null = never checked). */
|
|
19095
|
+
latestVersion: string().nullable(),
|
|
19096
|
+
updateAvailable: boolean(),
|
|
19097
|
+
bootMode: ServerBootModeSchema,
|
|
19098
|
+
updateState: ServerUpdateStateSchema,
|
|
19099
|
+
/** Version staged + awaiting its probation boot, when one is pending. */
|
|
19100
|
+
pendingVersion: string().nullable(),
|
|
19101
|
+
/** Set when the last freshly-activated version failed its boot health-check. */
|
|
19102
|
+
rolledBack: ServerRollbackInfoSchema.nullable(),
|
|
19103
|
+
/**
|
|
19104
|
+
* True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
|
|
19105
|
+
* hub is running from the baked seed (or workspace) while installed data-dir
|
|
19106
|
+
* versions are being IGNORED. Surfaced as a warning in the UI.
|
|
19107
|
+
*/
|
|
19108
|
+
stateFileCorrupt: boolean(),
|
|
19109
|
+
lastCheckedAtMs: number().nullable()
|
|
19110
|
+
});
|
|
19111
|
+
var ServerUpdateCheckResultSchema = object({
|
|
19112
|
+
packageName: string(),
|
|
19113
|
+
runningVersion: string().nullable(),
|
|
19114
|
+
latestVersion: string().nullable(),
|
|
19115
|
+
updateAvailable: boolean(),
|
|
19116
|
+
checkedAtMs: number(),
|
|
19117
|
+
/** Non-null when the registry lookup failed (offline, bad registry, …). */
|
|
19118
|
+
error: string().nullable()
|
|
19119
|
+
});
|
|
19120
|
+
var ServerUpdateActionResultSchema = object({
|
|
19121
|
+
accepted: boolean(),
|
|
19122
|
+
targetVersion: string().nullable(),
|
|
19123
|
+
/** True when a graceful restart was scheduled to apply the change. */
|
|
19124
|
+
restarting: boolean(),
|
|
19125
|
+
message: string()
|
|
19126
|
+
});
|
|
19127
|
+
method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
|
|
19128
|
+
kind: "mutation",
|
|
19129
|
+
auth: "admin"
|
|
19130
|
+
}), method(object({
|
|
19131
|
+
/** Explicit target version; omitted = latest from the registry. */
|
|
19132
|
+
version: string().optional() }), ServerUpdateActionResultSchema, {
|
|
19133
|
+
kind: "mutation",
|
|
19134
|
+
auth: "admin"
|
|
19135
|
+
}), method(_void(), ServerUpdateActionResultSchema, {
|
|
19136
|
+
kind: "mutation",
|
|
19137
|
+
auth: "admin"
|
|
19138
|
+
}), method(_void(), ServerUpdateActionResultSchema, {
|
|
19139
|
+
kind: "mutation",
|
|
19140
|
+
auth: "admin"
|
|
18787
19141
|
});
|
|
18788
|
-
method(object({
|
|
18789
|
-
deviceId: number(),
|
|
18790
|
-
streams: array(RegisteredStreamSchema).readonly()
|
|
18791
|
-
}), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(ExposedResourceSchema).readonly());
|
|
18792
19142
|
/**
|
|
18793
19143
|
* Query filter for settings-store collections.
|
|
18794
19144
|
*/
|
|
@@ -18941,9 +19291,9 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
|
|
|
18941
19291
|
/**
|
|
18942
19292
|
* A single device snapshot returned as base64 JPEG/PNG.
|
|
18943
19293
|
*
|
|
18944
|
-
*
|
|
18945
|
-
*
|
|
18946
|
-
*
|
|
19294
|
+
* The `SnapshotAddon` wrapper returns this shape whether the frame came from
|
|
19295
|
+
* the device-native provider (onboard capture) or from the stream-broker
|
|
19296
|
+
* prebuffer fallback.
|
|
18947
19297
|
*/
|
|
18948
19298
|
var SnapshotImageSchema = object({
|
|
18949
19299
|
base64: string(),
|
|
@@ -18974,11 +19324,12 @@ DeviceType.Camera, method(object({
|
|
|
18974
19324
|
}), SnapshotImageSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
18975
19325
|
kind: "mutation",
|
|
18976
19326
|
auth: "admin"
|
|
18977
|
-
})
|
|
18978
|
-
method(object({ deviceId: number() }), boolean()), method(object({
|
|
19327
|
+
}), systemMethod(object({ deviceIds: array(number()).min(1).max(200) }), array(object({
|
|
18979
19328
|
deviceId: number(),
|
|
18980
|
-
|
|
18981
|
-
|
|
19329
|
+
lastCapturedAt: number().nullable(),
|
|
19330
|
+
cacheAgeMs: number().nullable(),
|
|
19331
|
+
etag: string().nullable()
|
|
19332
|
+
})));
|
|
18982
19333
|
/**
|
|
18983
19334
|
* `sso-bridge` — internal hub-only cap that lets SSO-style auth
|
|
18984
19335
|
* providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
|
|
@@ -19229,10 +19580,32 @@ method(_void(), array(TurnServerSchema).readonly());
|
|
|
19229
19580
|
* b. `finishAuthentication({userId, response})` → server verifies
|
|
19230
19581
|
* the assertion, bumps the credential counter, returns ok.
|
|
19231
19582
|
*
|
|
19583
|
+
* 2b. Usernameless (discoverable-credential) authentication — the
|
|
19584
|
+
* passkey IS the primary factor, no password leg:
|
|
19585
|
+
* a. `beginDiscoverableAuthentication({})` → assertion options with
|
|
19586
|
+
* EMPTY `allowCredentials` (the browser offers every resident
|
|
19587
|
+
* passkey it holds for this RP) + `userVerification: 'required'`
|
|
19588
|
+
* (the passkey replaces both factors, so UV is mandatory).
|
|
19589
|
+
* The challenge is stored server-side, NOT bound to any user.
|
|
19590
|
+
* b. `finishDiscoverableAuthentication({response})` → the provider
|
|
19591
|
+
* resolves the credential by the response's credential id,
|
|
19592
|
+
* verifies the assertion against the stored challenge + that
|
|
19593
|
+
* credential's public key/counter, and returns the OWNING
|
|
19594
|
+
* `userId` — the caller (core auth router) mints the session.
|
|
19595
|
+
*
|
|
19232
19596
|
* 3. Management:
|
|
19233
19597
|
* - `listPasskeys({userId})` — enumerate user's enrolled credentials.
|
|
19234
19598
|
* - `removePasskey({userId, credentialId})` — revoke one credential.
|
|
19235
19599
|
*
|
|
19600
|
+
* 4. Second-factor preference (opt-in, default OFF):
|
|
19601
|
+
* Enrolling a passkey only enables passkey-FIRST sign-in. It is
|
|
19602
|
+
* demanded as a second factor after a password login ONLY when the
|
|
19603
|
+
* user explicitly opts in via `setSecondFactorPreference`.
|
|
19604
|
+
* - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
|
|
19605
|
+
* row ⇒ `enabled: false`).
|
|
19606
|
+
* - `setSecondFactorPreference({userId, enabled})` — persisted by
|
|
19607
|
+
* the providing addon beside its credentials.
|
|
19608
|
+
*
|
|
19236
19609
|
* Challenges are short-lived (5 min, in-memory). The cap is internal —
|
|
19237
19610
|
* the admin-ui composes the begin/finish round-trip and never exposes
|
|
19238
19611
|
* the cap to non-admins.
|
|
@@ -19275,6 +19648,17 @@ method(object({
|
|
|
19275
19648
|
}), object({ verified: boolean() }), {
|
|
19276
19649
|
kind: "mutation",
|
|
19277
19650
|
access: "view"
|
|
19651
|
+
}), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
|
|
19652
|
+
kind: "mutation",
|
|
19653
|
+
access: "view"
|
|
19654
|
+
}), method(object({
|
|
19655
|
+
/** AuthenticationResponseJSON from the browser. */
|
|
19656
|
+
response: record(string(), unknown()) }), object({
|
|
19657
|
+
verified: boolean(),
|
|
19658
|
+
userId: string().nullable()
|
|
19659
|
+
}), {
|
|
19660
|
+
kind: "mutation",
|
|
19661
|
+
access: "view"
|
|
19278
19662
|
}), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
|
|
19279
19663
|
userId: string(),
|
|
19280
19664
|
credentialId: string()
|
|
@@ -19282,6 +19666,13 @@ method(object({
|
|
|
19282
19666
|
kind: "mutation",
|
|
19283
19667
|
auth: "admin",
|
|
19284
19668
|
access: "delete"
|
|
19669
|
+
}), method(object({ userId: string() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
|
|
19670
|
+
userId: string(),
|
|
19671
|
+
enabled: boolean()
|
|
19672
|
+
}), object({ success: literal(true) }), {
|
|
19673
|
+
kind: "mutation",
|
|
19674
|
+
auth: "admin",
|
|
19675
|
+
access: "create"
|
|
19285
19676
|
});
|
|
19286
19677
|
/**
|
|
19287
19678
|
* `videoclips` — the unified, navigable-clip surface for a camera.
|
|
@@ -19339,9 +19730,10 @@ method(object({
|
|
|
19339
19730
|
auth: "admin"
|
|
19340
19731
|
});
|
|
19341
19732
|
/**
|
|
19342
|
-
* Optional client-side hints sent at session creation to help the
|
|
19343
|
-
*
|
|
19344
|
-
*
|
|
19733
|
+
* Optional client-side hints sent at session creation to help the provider
|
|
19734
|
+
* pick the best native source. All fields optional — a viewer that knows
|
|
19735
|
+
* nothing still gets a sane default. (Relocated from the retired `webrtc`
|
|
19736
|
+
* collection cap; this `webrtc-session` cap is the live signaling surface.)
|
|
19345
19737
|
*/
|
|
19346
19738
|
var webrtcClientHintsSchema = object({
|
|
19347
19739
|
viewportWidth: number().int().positive().optional(),
|
|
@@ -19352,22 +19744,6 @@ var webrtcClientHintsSchema = object({
|
|
|
19352
19744
|
/** Hard tier override; takes precedence over scoring when registered. */
|
|
19353
19745
|
prefersTier: string().optional()
|
|
19354
19746
|
}).partial();
|
|
19355
|
-
method(object({
|
|
19356
|
-
streamId: string(),
|
|
19357
|
-
sdpOffer: string()
|
|
19358
|
-
}), string(), { kind: "mutation" }), method(object({ streamId: string() }), boolean()), method(object({
|
|
19359
|
-
streamId: string(),
|
|
19360
|
-
codec: string()
|
|
19361
|
-
}), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
|
|
19362
|
-
streamId: string(),
|
|
19363
|
-
hints: webrtcClientHintsSchema.optional()
|
|
19364
|
-
}), object({
|
|
19365
|
-
sessionId: string(),
|
|
19366
|
-
sdpOffer: string()
|
|
19367
|
-
}), { kind: "mutation" }), method(object({
|
|
19368
|
-
sessionId: string(),
|
|
19369
|
-
sdpAnswer: string()
|
|
19370
|
-
}), _void(), { kind: "mutation" }), method(object({ sessionId: string() }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), boolean());
|
|
19371
19747
|
/**
|
|
19372
19748
|
* Discriminated target for a WebRTC session. The client sends this
|
|
19373
19749
|
* structured object instead of building / parsing brokerId strings;
|
|
@@ -19926,7 +20302,15 @@ var FrameworkPackageStatusSchema = object({
|
|
|
19926
20302
|
latestVersion: string().nullable(),
|
|
19927
20303
|
hasUpdate: boolean(),
|
|
19928
20304
|
/** Optional manifest description for the row tooltip. */
|
|
19929
|
-
description: string().optional()
|
|
20305
|
+
description: string().optional(),
|
|
20306
|
+
/**
|
|
20307
|
+
* Content build-id (md5 of the resolved `dist/` tree) of the code the hub
|
|
20308
|
+
* ACTUALLY loaded. Framework packages ship code changes without always
|
|
20309
|
+
* bumping `currentVersion`, so semver alone hides "same version, new code".
|
|
20310
|
+
* `null` when the dist can't be hashed (not installed / empty). The admin-UI
|
|
20311
|
+
* surfaces this so a stale-code hub is visible even at an unchanged version.
|
|
20312
|
+
*/
|
|
20313
|
+
buildId: string().nullable()
|
|
19930
20314
|
});
|
|
19931
20315
|
var LogStreamEntrySchema = object({
|
|
19932
20316
|
timestamp: string(),
|
|
@@ -20179,7 +20563,17 @@ var FaceInfoSchema = object({
|
|
|
20179
20563
|
recognizedIdentityId: string().optional(),
|
|
20180
20564
|
identityName: string().optional(),
|
|
20181
20565
|
assigned: boolean(),
|
|
20182
|
-
base64: string().optional()
|
|
20566
|
+
base64: string().optional(),
|
|
20567
|
+
/** Design B: the face bbox (pixel space) on the key frame — lets a detail
|
|
20568
|
+
* view draw the box over the native `keyFrameMediaKey` frame. Absent on
|
|
20569
|
+
* legacy rows written before design B. */
|
|
20570
|
+
faceBbox: BoundingBoxSchema.optional(),
|
|
20571
|
+
/** Design B: MediaStore key of the track's native-resolution key frame.
|
|
20572
|
+
* Fetch the native JPEG via the event-media data-plane
|
|
20573
|
+
* (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
|
|
20574
|
+
* track produced no key frame (e.g. native/onboard source) — the UI falls
|
|
20575
|
+
* back to the inline `base64` face crop. */
|
|
20576
|
+
keyFrameMediaKey: string().optional()
|
|
20183
20577
|
});
|
|
20184
20578
|
var FaceFilterEnum = _enum([
|
|
20185
20579
|
"unassigned",
|
|
@@ -20876,6 +21270,16 @@ var TopologyCategorySchema = object({
|
|
|
20876
21270
|
healthy: number(),
|
|
20877
21271
|
addons: array(TopologyCategoryAddonSchema).readonly()
|
|
20878
21272
|
});
|
|
21273
|
+
/**
|
|
21274
|
+
* The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
|
|
21275
|
+
* `@camstack/agent` on agents) as reported by its `registerNode` manifest —
|
|
21276
|
+
* version visibility for the Server management surface. Nullable: offline
|
|
21277
|
+
* rows and pre-phase-2 nodes report none.
|
|
21278
|
+
*/
|
|
21279
|
+
var TopologyRootPackageSchema = object({
|
|
21280
|
+
name: string(),
|
|
21281
|
+
version: string()
|
|
21282
|
+
});
|
|
20879
21283
|
var TopologyNodeSchema = object({
|
|
20880
21284
|
id: string(),
|
|
20881
21285
|
name: string(),
|
|
@@ -20899,7 +21303,8 @@ var TopologyNodeSchema = object({
|
|
|
20899
21303
|
status: string()
|
|
20900
21304
|
})).readonly(),
|
|
20901
21305
|
processes: array(TopologyProcessSchema).readonly(),
|
|
20902
|
-
categories: array(TopologyCategorySchema).readonly()
|
|
21306
|
+
categories: array(TopologyCategorySchema).readonly(),
|
|
21307
|
+
rootPackage: TopologyRootPackageSchema.nullable()
|
|
20903
21308
|
});
|
|
20904
21309
|
var CapUsageEdgeSchema = object({
|
|
20905
21310
|
callerAddonId: string(),
|
|
@@ -23699,6 +24104,12 @@ Object.freeze({
|
|
|
23699
24104
|
addonId: null,
|
|
23700
24105
|
access: "create"
|
|
23701
24106
|
},
|
|
24107
|
+
"loginMethod.getLoginMethods": {
|
|
24108
|
+
capName: "login-method",
|
|
24109
|
+
capScope: "system",
|
|
24110
|
+
addonId: null,
|
|
24111
|
+
access: "view"
|
|
24112
|
+
},
|
|
23702
24113
|
"mediaPlayer.next": {
|
|
23703
24114
|
capName: "media-player",
|
|
23704
24115
|
capScope: "device",
|
|
@@ -24281,6 +24692,12 @@ Object.freeze({
|
|
|
24281
24692
|
addonId: null,
|
|
24282
24693
|
access: "view"
|
|
24283
24694
|
},
|
|
24695
|
+
"pipelineAnalytics.getKeyEvents": {
|
|
24696
|
+
capName: "pipeline-analytics",
|
|
24697
|
+
capScope: "device",
|
|
24698
|
+
addonId: null,
|
|
24699
|
+
access: "view"
|
|
24700
|
+
},
|
|
24284
24701
|
"pipelineAnalytics.getMotionEvents": {
|
|
24285
24702
|
capName: "pipeline-analytics",
|
|
24286
24703
|
capScope: "device",
|
|
@@ -24329,23 +24746,23 @@ Object.freeze({
|
|
|
24329
24746
|
addonId: null,
|
|
24330
24747
|
access: "create"
|
|
24331
24748
|
},
|
|
24332
|
-
"pipelineExecutor.
|
|
24749
|
+
"pipelineExecutor.clearDeviceOverrides": {
|
|
24333
24750
|
capName: "pipeline-executor",
|
|
24334
24751
|
capScope: "system",
|
|
24335
24752
|
addonId: null,
|
|
24336
24753
|
access: "delete"
|
|
24337
24754
|
},
|
|
24338
|
-
"pipelineExecutor.
|
|
24755
|
+
"pipelineExecutor.deleteModel": {
|
|
24339
24756
|
capName: "pipeline-executor",
|
|
24340
24757
|
capScope: "system",
|
|
24341
24758
|
addonId: null,
|
|
24342
24759
|
access: "delete"
|
|
24343
24760
|
},
|
|
24344
|
-
"pipelineExecutor.
|
|
24761
|
+
"pipelineExecutor.deleteTemplate": {
|
|
24345
24762
|
capName: "pipeline-executor",
|
|
24346
24763
|
capScope: "system",
|
|
24347
24764
|
addonId: null,
|
|
24348
|
-
access: "
|
|
24765
|
+
access: "delete"
|
|
24349
24766
|
},
|
|
24350
24767
|
"pipelineExecutor.downloadModel": {
|
|
24351
24768
|
capName: "pipeline-executor",
|
|
@@ -24539,13 +24956,13 @@ Object.freeze({
|
|
|
24539
24956
|
addonId: null,
|
|
24540
24957
|
access: "create"
|
|
24541
24958
|
},
|
|
24542
|
-
"
|
|
24543
|
-
capName: "pipeline-
|
|
24959
|
+
"pipelineExecutor.validatePipeline": {
|
|
24960
|
+
capName: "pipeline-executor",
|
|
24544
24961
|
capScope: "system",
|
|
24545
24962
|
addonId: null,
|
|
24546
|
-
access: "
|
|
24963
|
+
access: "view"
|
|
24547
24964
|
},
|
|
24548
|
-
"pipelineOrchestrator.
|
|
24965
|
+
"pipelineOrchestrator.assignAudio": {
|
|
24549
24966
|
capName: "pipeline-orchestrator",
|
|
24550
24967
|
capScope: "system",
|
|
24551
24968
|
addonId: null,
|
|
@@ -24629,19 +25046,13 @@ Object.freeze({
|
|
|
24629
25046
|
addonId: null,
|
|
24630
25047
|
access: "view"
|
|
24631
25048
|
},
|
|
24632
|
-
"pipelineOrchestrator.
|
|
24633
|
-
capName: "pipeline-orchestrator",
|
|
24634
|
-
capScope: "system",
|
|
24635
|
-
addonId: null,
|
|
24636
|
-
access: "view"
|
|
24637
|
-
},
|
|
24638
|
-
"pipelineOrchestrator.getDecoderAssignments": {
|
|
25049
|
+
"pipelineOrchestrator.getGlobalMetrics": {
|
|
24639
25050
|
capName: "pipeline-orchestrator",
|
|
24640
25051
|
capScope: "system",
|
|
24641
25052
|
addonId: null,
|
|
24642
25053
|
access: "view"
|
|
24643
25054
|
},
|
|
24644
|
-
"pipelineOrchestrator.
|
|
25055
|
+
"pipelineOrchestrator.getIngestOwner": {
|
|
24645
25056
|
capName: "pipeline-orchestrator",
|
|
24646
25057
|
capScope: "system",
|
|
24647
25058
|
addonId: null,
|
|
@@ -24683,6 +25094,12 @@ Object.freeze({
|
|
|
24683
25094
|
addonId: null,
|
|
24684
25095
|
access: "delete"
|
|
24685
25096
|
},
|
|
25097
|
+
"pipelineOrchestrator.resetNodePipelineDefaults": {
|
|
25098
|
+
capName: "pipeline-orchestrator",
|
|
25099
|
+
capScope: "system",
|
|
25100
|
+
addonId: null,
|
|
25101
|
+
access: "delete"
|
|
25102
|
+
},
|
|
24686
25103
|
"pipelineOrchestrator.resolvePipeline": {
|
|
24687
25104
|
capName: "pipeline-orchestrator",
|
|
24688
25105
|
capScope: "system",
|
|
@@ -24719,37 +25136,37 @@ Object.freeze({
|
|
|
24719
25136
|
addonId: null,
|
|
24720
25137
|
access: "create"
|
|
24721
25138
|
},
|
|
24722
|
-
"pipelineOrchestrator.
|
|
25139
|
+
"pipelineOrchestrator.setAgentReachableHost": {
|
|
24723
25140
|
capName: "pipeline-orchestrator",
|
|
24724
25141
|
capScope: "system",
|
|
24725
25142
|
addonId: null,
|
|
24726
25143
|
access: "create"
|
|
24727
25144
|
},
|
|
24728
|
-
"pipelineOrchestrator.
|
|
25145
|
+
"pipelineOrchestrator.setCameraPipelineForAgent": {
|
|
24729
25146
|
capName: "pipeline-orchestrator",
|
|
24730
25147
|
capScope: "system",
|
|
24731
25148
|
addonId: null,
|
|
24732
25149
|
access: "create"
|
|
24733
25150
|
},
|
|
24734
|
-
"pipelineOrchestrator.
|
|
25151
|
+
"pipelineOrchestrator.setCameraStepOverride": {
|
|
24735
25152
|
capName: "pipeline-orchestrator",
|
|
24736
25153
|
capScope: "system",
|
|
24737
25154
|
addonId: null,
|
|
24738
25155
|
access: "create"
|
|
24739
25156
|
},
|
|
24740
|
-
"pipelineOrchestrator.
|
|
25157
|
+
"pipelineOrchestrator.setCameraStepToggle": {
|
|
24741
25158
|
capName: "pipeline-orchestrator",
|
|
24742
25159
|
capScope: "system",
|
|
24743
25160
|
addonId: null,
|
|
24744
25161
|
access: "create"
|
|
24745
25162
|
},
|
|
24746
|
-
"pipelineOrchestrator.
|
|
25163
|
+
"pipelineOrchestrator.setCapabilityBinding": {
|
|
24747
25164
|
capName: "pipeline-orchestrator",
|
|
24748
25165
|
capScope: "system",
|
|
24749
25166
|
addonId: null,
|
|
24750
25167
|
access: "create"
|
|
24751
25168
|
},
|
|
24752
|
-
"pipelineOrchestrator.
|
|
25169
|
+
"pipelineOrchestrator.unassignAudio": {
|
|
24753
25170
|
capName: "pipeline-orchestrator",
|
|
24754
25171
|
capScope: "system",
|
|
24755
25172
|
addonId: null,
|
|
@@ -24809,6 +25226,12 @@ Object.freeze({
|
|
|
24809
25226
|
addonId: null,
|
|
24810
25227
|
access: "view"
|
|
24811
25228
|
},
|
|
25229
|
+
"pipelineRunner.getNativeCrop": {
|
|
25230
|
+
capName: "pipeline-runner",
|
|
25231
|
+
capScope: "system",
|
|
25232
|
+
addonId: null,
|
|
25233
|
+
access: "view"
|
|
25234
|
+
},
|
|
24812
25235
|
"pipelineRunner.reportMotion": {
|
|
24813
25236
|
capName: "pipeline-runner",
|
|
24814
25237
|
capScope: "system",
|
|
@@ -25049,33 +25472,45 @@ Object.freeze({
|
|
|
25049
25472
|
addonId: null,
|
|
25050
25473
|
access: "create"
|
|
25051
25474
|
},
|
|
25052
|
-
"
|
|
25053
|
-
capName: "
|
|
25475
|
+
"scriptRunner.run": {
|
|
25476
|
+
capName: "script-runner",
|
|
25477
|
+
capScope: "device",
|
|
25478
|
+
addonId: null,
|
|
25479
|
+
access: "create"
|
|
25480
|
+
},
|
|
25481
|
+
"scriptRunner.stop": {
|
|
25482
|
+
capName: "script-runner",
|
|
25483
|
+
capScope: "device",
|
|
25484
|
+
addonId: null,
|
|
25485
|
+
access: "create"
|
|
25486
|
+
},
|
|
25487
|
+
"serverManagement.applyServerUpdate": {
|
|
25488
|
+
capName: "server-management",
|
|
25054
25489
|
capScope: "system",
|
|
25055
25490
|
addonId: null,
|
|
25056
|
-
access: "
|
|
25491
|
+
access: "create"
|
|
25057
25492
|
},
|
|
25058
|
-
"
|
|
25059
|
-
capName: "
|
|
25493
|
+
"serverManagement.checkServerUpdate": {
|
|
25494
|
+
capName: "server-management",
|
|
25060
25495
|
capScope: "system",
|
|
25061
25496
|
addonId: null,
|
|
25062
25497
|
access: "create"
|
|
25063
25498
|
},
|
|
25064
|
-
"
|
|
25065
|
-
capName: "
|
|
25499
|
+
"serverManagement.getServerPackageStatus": {
|
|
25500
|
+
capName: "server-management",
|
|
25066
25501
|
capScope: "system",
|
|
25067
25502
|
addonId: null,
|
|
25068
|
-
access: "
|
|
25503
|
+
access: "view"
|
|
25069
25504
|
},
|
|
25070
|
-
"
|
|
25071
|
-
capName: "
|
|
25072
|
-
capScope: "
|
|
25505
|
+
"serverManagement.restartServer": {
|
|
25506
|
+
capName: "server-management",
|
|
25507
|
+
capScope: "system",
|
|
25073
25508
|
addonId: null,
|
|
25074
25509
|
access: "create"
|
|
25075
25510
|
},
|
|
25076
|
-
"
|
|
25077
|
-
capName: "
|
|
25078
|
-
capScope: "
|
|
25511
|
+
"serverManagement.rollbackServerUpdate": {
|
|
25512
|
+
capName: "server-management",
|
|
25513
|
+
capScope: "system",
|
|
25079
25514
|
addonId: null,
|
|
25080
25515
|
access: "create"
|
|
25081
25516
|
},
|
|
@@ -25163,23 +25598,17 @@ Object.freeze({
|
|
|
25163
25598
|
addonId: null,
|
|
25164
25599
|
access: "view"
|
|
25165
25600
|
},
|
|
25166
|
-
"snapshot.
|
|
25601
|
+
"snapshot.getSnapshotOverview": {
|
|
25167
25602
|
capName: "snapshot",
|
|
25168
25603
|
capScope: "device",
|
|
25169
25604
|
addonId: null,
|
|
25170
|
-
access: "create"
|
|
25171
|
-
},
|
|
25172
|
-
"snapshotProvider.getSnapshot": {
|
|
25173
|
-
capName: "snapshot-provider",
|
|
25174
|
-
capScope: "system",
|
|
25175
|
-
addonId: null,
|
|
25176
25605
|
access: "view"
|
|
25177
25606
|
},
|
|
25178
|
-
"
|
|
25179
|
-
capName: "snapshot
|
|
25180
|
-
capScope: "
|
|
25607
|
+
"snapshot.invalidateCache": {
|
|
25608
|
+
capName: "snapshot",
|
|
25609
|
+
capScope: "device",
|
|
25181
25610
|
addonId: null,
|
|
25182
|
-
access: "
|
|
25611
|
+
access: "create"
|
|
25183
25612
|
},
|
|
25184
25613
|
"ssoBridge.signBridgeToken": {
|
|
25185
25614
|
capName: "sso-bridge",
|
|
@@ -25607,30 +26036,6 @@ Object.freeze({
|
|
|
25607
26036
|
addonId: null,
|
|
25608
26037
|
access: "view"
|
|
25609
26038
|
},
|
|
25610
|
-
"streamingEngine.getStreamUrl": {
|
|
25611
|
-
capName: "streaming-engine",
|
|
25612
|
-
capScope: "system",
|
|
25613
|
-
addonId: null,
|
|
25614
|
-
access: "view"
|
|
25615
|
-
},
|
|
25616
|
-
"streamingEngine.listStreams": {
|
|
25617
|
-
capName: "streaming-engine",
|
|
25618
|
-
capScope: "system",
|
|
25619
|
-
addonId: null,
|
|
25620
|
-
access: "view"
|
|
25621
|
-
},
|
|
25622
|
-
"streamingEngine.registerStream": {
|
|
25623
|
-
capName: "streaming-engine",
|
|
25624
|
-
capScope: "system",
|
|
25625
|
-
addonId: null,
|
|
25626
|
-
access: "create"
|
|
25627
|
-
},
|
|
25628
|
-
"streamingEngine.unregisterStream": {
|
|
25629
|
-
capName: "streaming-engine",
|
|
25630
|
-
capScope: "system",
|
|
25631
|
-
addonId: null,
|
|
25632
|
-
access: "delete"
|
|
25633
|
-
},
|
|
25634
26039
|
"streamParams.getConfigSchema": {
|
|
25635
26040
|
capName: "stream-params",
|
|
25636
26041
|
capScope: "device",
|
|
@@ -25877,6 +26282,12 @@ Object.freeze({
|
|
|
25877
26282
|
addonId: null,
|
|
25878
26283
|
access: "view"
|
|
25879
26284
|
},
|
|
26285
|
+
"userPasskeys.beginDiscoverableAuthentication": {
|
|
26286
|
+
capName: "user-passkeys",
|
|
26287
|
+
capScope: "system",
|
|
26288
|
+
addonId: null,
|
|
26289
|
+
access: "view"
|
|
26290
|
+
},
|
|
25880
26291
|
"userPasskeys.beginRegistration": {
|
|
25881
26292
|
capName: "user-passkeys",
|
|
25882
26293
|
capScope: "system",
|
|
@@ -25889,12 +26300,24 @@ Object.freeze({
|
|
|
25889
26300
|
addonId: null,
|
|
25890
26301
|
access: "view"
|
|
25891
26302
|
},
|
|
26303
|
+
"userPasskeys.finishDiscoverableAuthentication": {
|
|
26304
|
+
capName: "user-passkeys",
|
|
26305
|
+
capScope: "system",
|
|
26306
|
+
addonId: null,
|
|
26307
|
+
access: "view"
|
|
26308
|
+
},
|
|
25892
26309
|
"userPasskeys.finishRegistration": {
|
|
25893
26310
|
capName: "user-passkeys",
|
|
25894
26311
|
capScope: "system",
|
|
25895
26312
|
addonId: null,
|
|
25896
26313
|
access: "create"
|
|
25897
26314
|
},
|
|
26315
|
+
"userPasskeys.getSecondFactorPreference": {
|
|
26316
|
+
capName: "user-passkeys",
|
|
26317
|
+
capScope: "system",
|
|
26318
|
+
addonId: null,
|
|
26319
|
+
access: "view"
|
|
26320
|
+
},
|
|
25898
26321
|
"userPasskeys.listPasskeys": {
|
|
25899
26322
|
capName: "user-passkeys",
|
|
25900
26323
|
capScope: "system",
|
|
@@ -25907,6 +26330,12 @@ Object.freeze({
|
|
|
25907
26330
|
addonId: null,
|
|
25908
26331
|
access: "delete"
|
|
25909
26332
|
},
|
|
26333
|
+
"userPasskeys.setSecondFactorPreference": {
|
|
26334
|
+
capName: "user-passkeys",
|
|
26335
|
+
capScope: "system",
|
|
26336
|
+
addonId: null,
|
|
26337
|
+
access: "create"
|
|
26338
|
+
},
|
|
25910
26339
|
"vacuumControl.locate": {
|
|
25911
26340
|
capName: "vacuum-control",
|
|
25912
26341
|
capScope: "device",
|
|
@@ -25979,6 +26408,18 @@ Object.freeze({
|
|
|
25979
26408
|
addonId: null,
|
|
25980
26409
|
access: "view"
|
|
25981
26410
|
},
|
|
26411
|
+
"viewerUi.getStaticDir": {
|
|
26412
|
+
capName: "viewer-ui",
|
|
26413
|
+
capScope: "system",
|
|
26414
|
+
addonId: null,
|
|
26415
|
+
access: "view"
|
|
26416
|
+
},
|
|
26417
|
+
"viewerUi.getVersion": {
|
|
26418
|
+
capName: "viewer-ui",
|
|
26419
|
+
capScope: "system",
|
|
26420
|
+
addonId: null,
|
|
26421
|
+
access: "view"
|
|
26422
|
+
},
|
|
25982
26423
|
"waterHeater.setAway": {
|
|
25983
26424
|
capName: "water-heater",
|
|
25984
26425
|
capScope: "device",
|
|
@@ -25997,54 +26438,6 @@ Object.freeze({
|
|
|
25997
26438
|
addonId: null,
|
|
25998
26439
|
access: "create"
|
|
25999
26440
|
},
|
|
26000
|
-
"webrtc.closeSession": {
|
|
26001
|
-
capName: "webrtc",
|
|
26002
|
-
capScope: "system",
|
|
26003
|
-
addonId: null,
|
|
26004
|
-
access: "create"
|
|
26005
|
-
},
|
|
26006
|
-
"webrtc.createSession": {
|
|
26007
|
-
capName: "webrtc",
|
|
26008
|
-
capScope: "system",
|
|
26009
|
-
addonId: null,
|
|
26010
|
-
access: "create"
|
|
26011
|
-
},
|
|
26012
|
-
"webrtc.handleAnswer": {
|
|
26013
|
-
capName: "webrtc",
|
|
26014
|
-
capScope: "system",
|
|
26015
|
-
addonId: null,
|
|
26016
|
-
access: "create"
|
|
26017
|
-
},
|
|
26018
|
-
"webrtc.handleOffer": {
|
|
26019
|
-
capName: "webrtc",
|
|
26020
|
-
capScope: "system",
|
|
26021
|
-
addonId: null,
|
|
26022
|
-
access: "create"
|
|
26023
|
-
},
|
|
26024
|
-
"webrtc.hasAdaptiveBitrate": {
|
|
26025
|
-
capName: "webrtc",
|
|
26026
|
-
capScope: "system",
|
|
26027
|
-
addonId: null,
|
|
26028
|
-
access: "view"
|
|
26029
|
-
},
|
|
26030
|
-
"webrtc.registerStream": {
|
|
26031
|
-
capName: "webrtc",
|
|
26032
|
-
capScope: "system",
|
|
26033
|
-
addonId: null,
|
|
26034
|
-
access: "create"
|
|
26035
|
-
},
|
|
26036
|
-
"webrtc.supportsStream": {
|
|
26037
|
-
capName: "webrtc",
|
|
26038
|
-
capScope: "system",
|
|
26039
|
-
addonId: null,
|
|
26040
|
-
access: "view"
|
|
26041
|
-
},
|
|
26042
|
-
"webrtc.unregisterStream": {
|
|
26043
|
-
capName: "webrtc",
|
|
26044
|
-
capScope: "system",
|
|
26045
|
-
addonId: null,
|
|
26046
|
-
access: "delete"
|
|
26047
|
-
},
|
|
26048
26441
|
"webrtcSession.addIceCandidate": {
|
|
26049
26442
|
capName: "webrtc-session",
|
|
26050
26443
|
capScope: "device",
|