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