@camstack/addon-provider-petkit 0.1.5 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/addon.js +681 -288
- package/dist/addon.mjs +681 -288
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -4644,7 +4644,7 @@ function preprocess(fn, schema) {
|
|
|
4644
4644
|
});
|
|
4645
4645
|
}
|
|
4646
4646
|
//#endregion
|
|
4647
|
-
//#region ../types/dist/sleep-
|
|
4647
|
+
//#region ../types/dist/sleep-BC9Yqte7.mjs
|
|
4648
4648
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
4649
4649
|
EventCategory["SystemBoot"] = "system.boot";
|
|
4650
4650
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -4830,6 +4830,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
4830
4830
|
*/
|
|
4831
4831
|
EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
|
|
4832
4832
|
/**
|
|
4833
|
+
* The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
|
|
4834
|
+
* Emitted by addon-pipeline-orchestrator whenever it (re)derives node
|
|
4835
|
+
* capabilities — at boot, on agent online/offline, and on an ingest-node
|
|
4836
|
+
* flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
|
|
4837
|
+
* keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
|
|
4838
|
+
* cross-process `getIngestOwner` query (push the authority's decision instead
|
|
4839
|
+
* of polling it on the hot path). Idempotent state — re-emitted on every
|
|
4840
|
+
* topology change, so a dropped event self-heals on the next one (plus the
|
|
4841
|
+
* broker's long backstop reconcile query).
|
|
4842
|
+
*/
|
|
4843
|
+
EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
|
|
4844
|
+
/**
|
|
4833
4845
|
* Periodic snapshot of per-node pipeline-runner load
|
|
4834
4846
|
* (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
|
|
4835
4847
|
* subscribe instead of polling `pipelineRunner.getLocalLoad`.
|
|
@@ -5353,10 +5365,6 @@ function hydrateField(field, values) {
|
|
|
5353
5365
|
};
|
|
5354
5366
|
}
|
|
5355
5367
|
const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
|
|
5356
|
-
if (field.type === "password") return {
|
|
5357
|
-
...field,
|
|
5358
|
-
value: ""
|
|
5359
|
-
};
|
|
5360
5368
|
const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
|
|
5361
5369
|
return {
|
|
5362
5370
|
...field,
|
|
@@ -6740,10 +6748,25 @@ function method(input, output, options) {
|
|
|
6740
6748
|
timeoutMs: options?.timeoutMs
|
|
6741
6749
|
};
|
|
6742
6750
|
}
|
|
6751
|
+
/**
|
|
6752
|
+
* A wrapper/system-only method: served exclusively by the cap's system-level
|
|
6753
|
+
* provider (`InferProvider`), and OPTIONAL on `InferNativeProvider` so per-device
|
|
6754
|
+
* driver natives don't stub out a wrapper concern (e.g. a cross-device cache
|
|
6755
|
+
* overview). The `systemOnly: true` literal is what `InferNativeProvider` keys on.
|
|
6756
|
+
*/
|
|
6757
|
+
function systemMethod(input, output, options) {
|
|
6758
|
+
return {
|
|
6759
|
+
...method(input, output, options),
|
|
6760
|
+
systemOnly: true
|
|
6761
|
+
};
|
|
6762
|
+
}
|
|
6743
6763
|
/** Shorthand to define an event schema */
|
|
6744
6764
|
function event(data) {
|
|
6745
6765
|
return { data };
|
|
6746
6766
|
}
|
|
6767
|
+
var StaticDirOutputSchema$1 = object({ staticDir: string() });
|
|
6768
|
+
var VersionOutputSchema$1 = object({ version: string() });
|
|
6769
|
+
method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
|
|
6747
6770
|
var StaticDirOutputSchema = object({ staticDir: string() });
|
|
6748
6771
|
var VersionOutputSchema = object({ version: string() });
|
|
6749
6772
|
method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
|
|
@@ -6925,6 +6948,36 @@ var ModelFormatsSchema = object({
|
|
|
6925
6948
|
tflite: ModelFormatEntrySchema.optional(),
|
|
6926
6949
|
pt: ModelFormatEntrySchema.optional()
|
|
6927
6950
|
});
|
|
6951
|
+
/**
|
|
6952
|
+
* Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
|
|
6953
|
+
* the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
|
|
6954
|
+
* grouped Family→Tier→Variant picker renders identically in the config UI and
|
|
6955
|
+
* in the pipeline/device steppers. The flat `id` stays the source of truth for
|
|
6956
|
+
* resolution/download/persistence; this is a presentation overlay resolved back
|
|
6957
|
+
* to an `id`.
|
|
6958
|
+
*/
|
|
6959
|
+
var ModelVariantGroupSchema = object({
|
|
6960
|
+
/** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
|
|
6961
|
+
family: string(),
|
|
6962
|
+
/** Size within the family, e.g. `n` | `s` | `m` | `l`. */
|
|
6963
|
+
tier: string(),
|
|
6964
|
+
/** Quantization axis. Omit ⇒ the fp32 base build. */
|
|
6965
|
+
precision: _enum(["fp32", "int8"]).optional(),
|
|
6966
|
+
/**
|
|
6967
|
+
* Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
|
|
6968
|
+
* latency-optimized export (e.g. ReLU-activation variant) — the slot the
|
|
6969
|
+
* future performance variants plug into.
|
|
6970
|
+
*/
|
|
6971
|
+
optimization: _enum(["standard", "fast"]).optional(),
|
|
6972
|
+
/**
|
|
6973
|
+
* Input-resolution axis (square input side, px). Omit ⇒ the family's native
|
|
6974
|
+
* resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
|
|
6975
|
+
* cheap latency lever — especially on Apple ANE and the Intel N100 — at a
|
|
6976
|
+
* small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
|
|
6977
|
+
* the group so the selector can offer it as a variant axis.
|
|
6978
|
+
*/
|
|
6979
|
+
resolution: number().int().positive().optional()
|
|
6980
|
+
});
|
|
6928
6981
|
var ModelCatalogEntrySchema = object({
|
|
6929
6982
|
id: string(),
|
|
6930
6983
|
name: string(),
|
|
@@ -6954,7 +7007,43 @@ var ModelCatalogEntrySchema = object({
|
|
|
6954
7007
|
* Auxiliary files required at runtime (labels JSON, charset dict, etc.).
|
|
6955
7008
|
* Downloaded into the same modelsDir alongside the model file.
|
|
6956
7009
|
*/
|
|
6957
|
-
extraFiles: array(ModelExtraFileSchema).readonly().optional()
|
|
7010
|
+
extraFiles: array(ModelExtraFileSchema).readonly().optional(),
|
|
7011
|
+
/**
|
|
7012
|
+
* LEGACY entry — retained in the catalog so a persisted operator selection
|
|
7013
|
+
* still RESOLVES (and can be re-activated), but hidden from the selectable
|
|
7014
|
+
* model list and excluded from the auto format-default pick. Set on the
|
|
7015
|
+
* superseded / consolidated models (older lineages, redundant fp16 IRs) so
|
|
7016
|
+
* the active lineup stays the coherent curated ladder without deleting a
|
|
7017
|
+
* model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
|
|
7018
|
+
* an explicit legacy id that has a build for the node's format.
|
|
7019
|
+
*/
|
|
7020
|
+
legacy: boolean().optional(),
|
|
7021
|
+
/**
|
|
7022
|
+
* Measured quality/latency metadata — populated from the benchmark addon on
|
|
7023
|
+
* the real node classes. Absent = not yet measured (most entries today; the
|
|
7024
|
+
* catalog historically carried only `sizeMB`, a poor cross-architecture
|
|
7025
|
+
* speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
|
|
7026
|
+
*/
|
|
7027
|
+
metrics: object({
|
|
7028
|
+
map50: number().optional(),
|
|
7029
|
+
p95LatencyMs: record(string(), number()).optional()
|
|
7030
|
+
}).optional(),
|
|
7031
|
+
/**
|
|
7032
|
+
* SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
|
|
7033
|
+
* YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
|
|
7034
|
+
* the retraining addon and any future commercial distribution.
|
|
7035
|
+
*/
|
|
7036
|
+
license: string().optional(),
|
|
7037
|
+
/**
|
|
7038
|
+
* Variant-selector grouping. The UI groups models by `family` + `tier` and
|
|
7039
|
+
* offers `precision` / `optimization` as variant axes WITHIN a tier — so all
|
|
7040
|
+
* of a family's sizes and quantizations collapse into one grouped picker
|
|
7041
|
+
* instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
|
|
7042
|
+
* (legacy / custom models) — never shown in the grouped selector. The flat
|
|
7043
|
+
* `id` stays the source of truth for resolution/download/persistence; grouping
|
|
7044
|
+
* is a presentation overlay resolved back to an `id`.
|
|
7045
|
+
*/
|
|
7046
|
+
group: ModelVariantGroupSchema.optional()
|
|
6958
7047
|
});
|
|
6959
7048
|
var ConvertTargetSchema = discriminatedUnion("format", [object({
|
|
6960
7049
|
format: literal("openvino"),
|
|
@@ -7015,8 +7104,8 @@ var RecordingModeSchema = _enum([
|
|
|
7015
7104
|
"onAudioThreshold"
|
|
7016
7105
|
]);
|
|
7017
7106
|
/**
|
|
7018
|
-
* First-class, authoritative per-camera storage mode — the
|
|
7019
|
-
* reads directly (never inferred from `rules`):
|
|
7107
|
+
* First-class, authoritative per-camera storage mode — the explicit choice the
|
|
7108
|
+
* UI reads directly (never inferred from `rules`):
|
|
7020
7109
|
* - `off` — not recording.
|
|
7021
7110
|
* - `events` — record only around triggers (motion / audio threshold),
|
|
7022
7111
|
* with pre/post-buffer.
|
|
@@ -9179,26 +9268,13 @@ onBrightnessChanged: { data: object({
|
|
|
9179
9268
|
*/
|
|
9180
9269
|
runtimeState: BrightnessStatusSchema
|
|
9181
9270
|
};
|
|
9271
|
+
/** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
|
|
9182
9272
|
var StreamFormatSchema = _enum([
|
|
9183
9273
|
"webrtc",
|
|
9184
9274
|
"hls",
|
|
9185
9275
|
"mjpeg",
|
|
9186
9276
|
"rtsp"
|
|
9187
9277
|
]);
|
|
9188
|
-
var StreamInfoSchema = object({
|
|
9189
|
-
streamId: string(),
|
|
9190
|
-
format: StreamFormatSchema,
|
|
9191
|
-
url: string().nullable(),
|
|
9192
|
-
active: boolean()
|
|
9193
|
-
});
|
|
9194
|
-
method(object({
|
|
9195
|
-
streamId: string(),
|
|
9196
|
-
sourceUrl: string(),
|
|
9197
|
-
codec: string().optional()
|
|
9198
|
-
}), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
|
|
9199
|
-
streamId: string(),
|
|
9200
|
-
format: StreamFormatSchema
|
|
9201
|
-
}), string().nullable()), method(_void(), array(StreamInfoSchema));
|
|
9202
9278
|
var RtspRestreamEntrySchema = object({
|
|
9203
9279
|
brokerId: string(),
|
|
9204
9280
|
url: string(),
|
|
@@ -10066,37 +10142,7 @@ var consumablesCapability = {
|
|
|
10066
10142
|
scope: "device",
|
|
10067
10143
|
deviceNative: true,
|
|
10068
10144
|
mode: "singleton",
|
|
10069
|
-
deviceTypes:
|
|
10070
|
-
DeviceType.Camera,
|
|
10071
|
-
DeviceType.Hub,
|
|
10072
|
-
DeviceType.Light,
|
|
10073
|
-
DeviceType.Siren,
|
|
10074
|
-
DeviceType.Switch,
|
|
10075
|
-
DeviceType.Sensor,
|
|
10076
|
-
DeviceType.Thermostat,
|
|
10077
|
-
DeviceType.Button,
|
|
10078
|
-
DeviceType.EventEmitter,
|
|
10079
|
-
DeviceType.Update,
|
|
10080
|
-
DeviceType.Generic,
|
|
10081
|
-
DeviceType.Notifier,
|
|
10082
|
-
DeviceType.Script,
|
|
10083
|
-
DeviceType.Automation,
|
|
10084
|
-
DeviceType.Lock,
|
|
10085
|
-
DeviceType.Cover,
|
|
10086
|
-
DeviceType.Valve,
|
|
10087
|
-
DeviceType.Humidifier,
|
|
10088
|
-
DeviceType.WaterHeater,
|
|
10089
|
-
DeviceType.Fan,
|
|
10090
|
-
DeviceType.MediaPlayer,
|
|
10091
|
-
DeviceType.AlarmPanel,
|
|
10092
|
-
DeviceType.Control,
|
|
10093
|
-
DeviceType.Presence,
|
|
10094
|
-
DeviceType.Weather,
|
|
10095
|
-
DeviceType.Vacuum,
|
|
10096
|
-
DeviceType.LawnMower,
|
|
10097
|
-
DeviceType.Container,
|
|
10098
|
-
DeviceType.Image
|
|
10099
|
-
],
|
|
10145
|
+
deviceTypes: Object.values(DeviceType),
|
|
10100
10146
|
deviceConfig: { ui: {
|
|
10101
10147
|
kind: "widget",
|
|
10102
10148
|
widgetId: "host/consumables-panel",
|
|
@@ -11554,7 +11600,7 @@ var BoundingBoxSchema = object({
|
|
|
11554
11600
|
w: number(),
|
|
11555
11601
|
h: number()
|
|
11556
11602
|
});
|
|
11557
|
-
|
|
11603
|
+
object({
|
|
11558
11604
|
class: string(),
|
|
11559
11605
|
originalClass: string(),
|
|
11560
11606
|
score: number(),
|
|
@@ -11689,7 +11735,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
|
|
|
11689
11735
|
enabled: boolean(),
|
|
11690
11736
|
modelId: string(),
|
|
11691
11737
|
children: array(PipelineDefaultStepSchema).readonly(),
|
|
11692
|
-
engine: PipelineEngineChoiceSchema.optional(),
|
|
11693
11738
|
group: string().optional(),
|
|
11694
11739
|
settings: record(string(), unknown()).optional()
|
|
11695
11740
|
}));
|
|
@@ -11714,7 +11759,9 @@ var PipelineModelOptionSchema = object({
|
|
|
11714
11759
|
formats: record(string(), object({
|
|
11715
11760
|
downloaded: boolean(),
|
|
11716
11761
|
sizeMB: number()
|
|
11717
|
-
}))
|
|
11762
|
+
})),
|
|
11763
|
+
group: ModelVariantGroupSchema.optional(),
|
|
11764
|
+
legacy: boolean().optional()
|
|
11718
11765
|
});
|
|
11719
11766
|
var ConfigFieldBridge = custom();
|
|
11720
11767
|
var PipelineAddonSchemaSchema = object({
|
|
@@ -11728,6 +11775,7 @@ var PipelineAddonSchemaSchema = object({
|
|
|
11728
11775
|
defaultModelId: string(),
|
|
11729
11776
|
defaultModelIdByFormat: record(string(), string()).optional(),
|
|
11730
11777
|
enabledByDefault: boolean().optional(),
|
|
11778
|
+
backfillIntoExistingOverrides: boolean().optional(),
|
|
11731
11779
|
defaultConfidence: number(),
|
|
11732
11780
|
group: string().optional(),
|
|
11733
11781
|
configSchema: array(ConfigFieldBridge).readonly().optional()
|
|
@@ -11744,11 +11792,6 @@ var PipelineSchemaSchema = object({
|
|
|
11744
11792
|
selectedEngine: PipelineEngineChoiceSchema,
|
|
11745
11793
|
slots: array(PipelineSlotSchemaSchema).readonly()
|
|
11746
11794
|
});
|
|
11747
|
-
var DetectorOutputSchema = object({
|
|
11748
|
-
detections: array(SpatialDetectionSchema).readonly(),
|
|
11749
|
-
inferenceMs: number(),
|
|
11750
|
-
modelId: string()
|
|
11751
|
-
});
|
|
11752
11795
|
var EngineProvisioningSchema = object({
|
|
11753
11796
|
runtimeId: _enum([
|
|
11754
11797
|
"onnx",
|
|
@@ -11765,15 +11808,42 @@ var EngineProvisioningSchema = object({
|
|
|
11765
11808
|
]),
|
|
11766
11809
|
progress: number().optional(),
|
|
11767
11810
|
error: string().optional(),
|
|
11768
|
-
nextRetryAt: number().optional()
|
|
11811
|
+
nextRetryAt: number().optional(),
|
|
11812
|
+
/**
|
|
11813
|
+
* Gate A (config-correctness gate at engine change): human-readable
|
|
11814
|
+
* config issues surfaced EAGERLY when the node's engine changes — model
|
|
11815
|
+
* substitutions ("chose X, running Y") and zero-build steps ("no model
|
|
11816
|
+
* has a <format> build"). Additive/optional: informational only, never
|
|
11817
|
+
* enforced here — `assertEngineReady` (readiness) still gates inference.
|
|
11818
|
+
* Absent/empty when the node-default tree resolves cleanly.
|
|
11819
|
+
*/
|
|
11820
|
+
configIssues: array(string()).optional()
|
|
11769
11821
|
});
|
|
11770
11822
|
var PipelineStepInputSchema = lazy(() => object({
|
|
11771
11823
|
addonId: string(),
|
|
11772
|
-
modelId: string(),
|
|
11824
|
+
modelId: string().optional(),
|
|
11773
11825
|
enabled: boolean().default(true),
|
|
11774
11826
|
children: array(PipelineStepInputSchema).optional(),
|
|
11775
11827
|
settings: record(string(), unknown()).optional()
|
|
11776
11828
|
}));
|
|
11829
|
+
var ModelSubstitutionSchema = object({
|
|
11830
|
+
addonId: string(),
|
|
11831
|
+
chosen: string(),
|
|
11832
|
+
running: string(),
|
|
11833
|
+
format: string()
|
|
11834
|
+
});
|
|
11835
|
+
var PipelineValidationIssueSchema = object({
|
|
11836
|
+
addonId: string(),
|
|
11837
|
+
kind: _enum(["unknown-addon", "no-format-build"]),
|
|
11838
|
+
detail: string()
|
|
11839
|
+
});
|
|
11840
|
+
var PipelineValidationResultSchema = object({
|
|
11841
|
+
ok: boolean(),
|
|
11842
|
+
issues: array(PipelineValidationIssueSchema).readonly(),
|
|
11843
|
+
substitutions: array(ModelSubstitutionSchema).readonly(),
|
|
11844
|
+
/** The node's `currentEngine.format` this validation ran against. */
|
|
11845
|
+
format: string()
|
|
11846
|
+
});
|
|
11777
11847
|
var ReferenceImageEntrySchema = object({
|
|
11778
11848
|
filename: string(),
|
|
11779
11849
|
stepIds: array(string()).readonly().optional()
|
|
@@ -11844,7 +11914,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
11844
11914
|
})) }), object({ success: literal(true) }), {
|
|
11845
11915
|
kind: "mutation",
|
|
11846
11916
|
auth: "admin"
|
|
11847
|
-
}), method(
|
|
11917
|
+
}), method(object({ nodeId: string() }), object({
|
|
11918
|
+
success: literal(true),
|
|
11919
|
+
clearedDevices: number()
|
|
11920
|
+
}), {
|
|
11921
|
+
kind: "mutation",
|
|
11922
|
+
auth: "admin"
|
|
11923
|
+
}), 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({
|
|
11848
11924
|
name: string(),
|
|
11849
11925
|
steps: array(PipelineTemplateStepSchema).readonly(),
|
|
11850
11926
|
engine: PipelineEngineChoiceSchema
|
|
@@ -11861,10 +11937,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
11861
11937
|
modelId: string(),
|
|
11862
11938
|
format: ModelFormatSchema$1
|
|
11863
11939
|
}), object({ success: literal(true) }), { kind: "mutation" }), method(object({
|
|
11864
|
-
addonId: string(),
|
|
11865
|
-
frame: FrameInputSchema,
|
|
11866
|
-
config: record(string(), unknown()).optional()
|
|
11867
|
-
}), DetectorOutputSchema), method(object({
|
|
11868
11940
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
11869
11941
|
steps: array(PipelineStepInputSchema).min(1),
|
|
11870
11942
|
frame: FrameInputSchema.optional(),
|
|
@@ -12043,6 +12115,25 @@ var zonesCapability = {
|
|
|
12043
12115
|
runtimeState: object({ zones: array(ZoneSchema).readonly() })
|
|
12044
12116
|
};
|
|
12045
12117
|
/**
|
|
12118
|
+
* A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
|
|
12119
|
+
* decode worker resolves it against the RETAINED native frame's real pixel dims,
|
|
12120
|
+
* so the caller supplies only the detection-res bbox divided by the detection
|
|
12121
|
+
* dims — no native resolution to plumb.
|
|
12122
|
+
*/
|
|
12123
|
+
var NativeCropBboxSchema = object({
|
|
12124
|
+
x: number(),
|
|
12125
|
+
y: number(),
|
|
12126
|
+
w: number(),
|
|
12127
|
+
h: number()
|
|
12128
|
+
});
|
|
12129
|
+
/** Result of a best-effort native-resolution crop (`getNativeCrop`). */
|
|
12130
|
+
var NativeCropResultSchema = object({
|
|
12131
|
+
/** Packed rgb (24-bit) pixels of the crop. */
|
|
12132
|
+
bytes: _instanceof(Uint8Array),
|
|
12133
|
+
width: number().int().positive(),
|
|
12134
|
+
height: number().int().positive()
|
|
12135
|
+
});
|
|
12136
|
+
/**
|
|
12046
12137
|
* Per-camera tunable ranges + defaults. Single source of truth used
|
|
12047
12138
|
* by both the Zod data schema (validation + default fallback) and
|
|
12048
12139
|
* the device settings UI (slider min/max/step). Touch one place and
|
|
@@ -12137,6 +12228,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
|
|
|
12137
12228
|
kind: literal("remote-restream"),
|
|
12138
12229
|
/** The camera's source-owner node (slice 1: always the hub). */
|
|
12139
12230
|
ownerNodeId: string(),
|
|
12231
|
+
/**
|
|
12232
|
+
* The owner's LAN-reachable host, resolved by the orchestrator from the
|
|
12233
|
+
* per-node `reachableHost` override (Cluster UI). When present the runner
|
|
12234
|
+
* dials THIS host for the owner's restream, in preference to the
|
|
12235
|
+
* `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
|
|
12236
|
+
*/
|
|
12237
|
+
ownerReachableHost: string().optional(),
|
|
12140
12238
|
/** Operator override for the owner host the runner dials. */
|
|
12141
12239
|
hubHostnameOverride: string().optional()
|
|
12142
12240
|
})]).describe("Per-camera frame-source mode for the runner (P2c)");
|
|
@@ -12145,13 +12243,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
|
|
|
12145
12243
|
* specific runner instance via `attachCamera`. Carries everything the
|
|
12146
12244
|
* runner needs to subscribe to the local broker and execute inference.
|
|
12147
12245
|
*
|
|
12148
|
-
* Stateless-pipeline model: the
|
|
12149
|
-
*
|
|
12150
|
-
*
|
|
12151
|
-
*
|
|
12152
|
-
*
|
|
12153
|
-
* `engine`/`steps`/`audio` are optional during the additive migration
|
|
12154
|
-
* window; once orchestrator + UI are migrated they become required.
|
|
12246
|
+
* Stateless-pipeline model: the pipeline content (`steps`, optional
|
|
12247
|
+
* `audio`) travels with the attach payload. The runner keeps it in RAM
|
|
12248
|
+
* for the lifetime of the attach — on rebalance, edit, or restart the
|
|
12249
|
+
* orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
|
|
12250
|
+
* node-local, resolved by the executing runner at dispatch time.
|
|
12155
12251
|
*/
|
|
12156
12252
|
var RunnerCameraConfigSchema = object({
|
|
12157
12253
|
deviceId: number(),
|
|
@@ -12202,14 +12298,11 @@ var RunnerCameraConfigSchema = object({
|
|
|
12202
12298
|
*/
|
|
12203
12299
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
12204
12300
|
pipelineEnabled: boolean().default(true),
|
|
12205
|
-
/** Engine choice for video steps (runtime+backend+format). */
|
|
12206
|
-
engine: PipelineEngineChoiceSchema.optional(),
|
|
12207
12301
|
/** Ordered tree of video steps. Absent → runner skips video detection. */
|
|
12208
12302
|
steps: array(PipelineStepInputSchema).readonly().optional(),
|
|
12209
12303
|
/** Audio classification branch. `enabled:false` disables, null skips. */
|
|
12210
12304
|
audio: object({
|
|
12211
|
-
|
|
12212
|
-
modelId: string(),
|
|
12305
|
+
modelId: string().optional(),
|
|
12213
12306
|
enabled: boolean()
|
|
12214
12307
|
}).nullable().optional(),
|
|
12215
12308
|
/**
|
|
@@ -12296,7 +12389,11 @@ var RunnerLocalMetricsSchema = object({
|
|
|
12296
12389
|
avgInferenceTimeMs: number(),
|
|
12297
12390
|
queueDepth: number()
|
|
12298
12391
|
});
|
|
12299
|
-
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())
|
|
12392
|
+
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({
|
|
12393
|
+
handle: FrameHandleSchema,
|
|
12394
|
+
bbox: NativeCropBboxSchema,
|
|
12395
|
+
maxWidth: number().int().positive().optional()
|
|
12396
|
+
}), NativeCropResultSchema.nullable());
|
|
12300
12397
|
/**
|
|
12301
12398
|
* Hardware / firmware motion sensor cap — binary detected state plus
|
|
12302
12399
|
* a timestamp of the last observation. Distinct from
|
|
@@ -15227,7 +15324,9 @@ var AddonPageDeclarationSchema$1 = object({
|
|
|
15227
15324
|
icon: string(),
|
|
15228
15325
|
path: string(),
|
|
15229
15326
|
remoteName: string(),
|
|
15230
|
-
bundle: string()
|
|
15327
|
+
bundle: string(),
|
|
15328
|
+
section: string().optional(),
|
|
15329
|
+
sectionLabel: string().optional()
|
|
15231
15330
|
});
|
|
15232
15331
|
var AddonPageInfoSchema = object({
|
|
15233
15332
|
addonId: string(),
|
|
@@ -15267,7 +15366,18 @@ var AddonPageDeclarationSchema = object({
|
|
|
15267
15366
|
* the static-file route can compute an mtime-based cache-buster URL
|
|
15268
15367
|
* without a separate filesystem stat.
|
|
15269
15368
|
*/
|
|
15270
|
-
bundle: string()
|
|
15369
|
+
bundle: string(),
|
|
15370
|
+
/**
|
|
15371
|
+
* Sidebar section this page docks into. Well-known ids: `'detection'`,
|
|
15372
|
+
* `'cluster'`, `'administration'` — the page renders inside that group.
|
|
15373
|
+
* Any OTHER string creates (or joins) a custom section rendered after
|
|
15374
|
+
* the built-in groups; its label comes from `sectionLabel` (first
|
|
15375
|
+
* declaration wins), falling back to the id. Absent → the legacy
|
|
15376
|
+
* "Addon Pages" group.
|
|
15377
|
+
*/
|
|
15378
|
+
section: string().optional(),
|
|
15379
|
+
/** Display label for a CUSTOM `section` id (ignored for well-known ids). */
|
|
15380
|
+
sectionLabel: string().optional()
|
|
15271
15381
|
});
|
|
15272
15382
|
method(_void(), array(AddonPageDeclarationSchema).readonly());
|
|
15273
15383
|
var AddonHttpRouteSchema = object({
|
|
@@ -15483,6 +15593,17 @@ var WidgetMetadataSchema = object({
|
|
|
15483
15593
|
deviceContext: boolean().default(false),
|
|
15484
15594
|
integrationContext: boolean().default(false)
|
|
15485
15595
|
}),
|
|
15596
|
+
/**
|
|
15597
|
+
* Loadable BEFORE authentication. The normal widget registry listing
|
|
15598
|
+
* (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
|
|
15599
|
+
* (the login page) cannot discover a widget through it. A widget that
|
|
15600
|
+
* declares `preAuth: true` marks itself as safe to mount on a pre-auth
|
|
15601
|
+
* screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
|
|
15602
|
+
* login-method contribution channel (see `login-method.cap.ts`) rather
|
|
15603
|
+
* than the authenticated registry, and its bundle is served by the
|
|
15604
|
+
* public `/api/addon-widgets/:addonId/*` static route. Defaults false.
|
|
15605
|
+
*/
|
|
15606
|
+
preAuth: boolean().optional().default(false),
|
|
15486
15607
|
/** Dashboard placement HINTS (operator can override per instance). */
|
|
15487
15608
|
defaultSize: WidgetSizeEnum.default("md"),
|
|
15488
15609
|
allowedSizes: array(WidgetSizeEnum).readonly().default([
|
|
@@ -15784,6 +15905,66 @@ method(object({
|
|
|
15784
15905
|
password: string()
|
|
15785
15906
|
}), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
|
|
15786
15907
|
/**
|
|
15908
|
+
* `login-method` — collection cap through which auth addons contribute
|
|
15909
|
+
* their pre-auth login surfaces to the login page. This is the SINGLE,
|
|
15910
|
+
* generic mechanism that supersedes the dead `auth.listProviders` reader:
|
|
15911
|
+
* every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
|
|
15912
|
+
* `login-method` provider and the PUBLIC `auth.listLoginMethods`
|
|
15913
|
+
* procedure aggregates them for the unauthenticated login page.
|
|
15914
|
+
*
|
|
15915
|
+
* A contribution is a discriminated union on `kind`:
|
|
15916
|
+
*
|
|
15917
|
+
* - `redirect` — a declarative button. The login page renders a generic
|
|
15918
|
+
* button that navigates to `startUrl` (an addon-owned HTTP route).
|
|
15919
|
+
* Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
|
|
15920
|
+
* ZERO shell-side JS. A future SSO addon plugs in the same way — the
|
|
15921
|
+
* login page needs NO change.
|
|
15922
|
+
*
|
|
15923
|
+
* - `widget` — a Module-Federation widget the login page mounts (via
|
|
15924
|
+
* `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
|
|
15925
|
+
* login ceremony, which must run `@simplewebauthn/browser` INSIDE the
|
|
15926
|
+
* addon bundle. The referenced widget also declares `preAuth: true` in
|
|
15927
|
+
* its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
|
|
15928
|
+
* stamps a public `bundleUrl` from `addonId` + `bundle`.
|
|
15929
|
+
*
|
|
15930
|
+
* Every contribution carries a `stage`:
|
|
15931
|
+
* - `primary` — shown on the first credentials screen (OIDC /
|
|
15932
|
+
* magic-link buttons; a future usernameless passkey).
|
|
15933
|
+
* - `second-factor` — shown AFTER the password leg, gated on the
|
|
15934
|
+
* returned `factors` (passkey-as-2FA today).
|
|
15935
|
+
*
|
|
15936
|
+
* `mount: skip` — the cap is read server-side by the core auth router
|
|
15937
|
+
* (`registry.getCollection('login-method')`), never mounted as its own
|
|
15938
|
+
* tRPC router.
|
|
15939
|
+
*/
|
|
15940
|
+
/** When a login method renders in the two-phase login flow. */
|
|
15941
|
+
var LoginStageEnum = _enum(["primary", "second-factor"]);
|
|
15942
|
+
/** One login-method contribution — redirect button OR pre-auth widget. */
|
|
15943
|
+
var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
|
|
15944
|
+
kind: literal("redirect"),
|
|
15945
|
+
/** Stable id within the login-method set (e.g. `auth-oidc/google`). */
|
|
15946
|
+
id: string(),
|
|
15947
|
+
/** Operator-facing button label. */
|
|
15948
|
+
label: string(),
|
|
15949
|
+
/** lucide-react icon name. */
|
|
15950
|
+
icon: string().optional(),
|
|
15951
|
+
/** Addon-owned HTTP route the button navigates to (GET). */
|
|
15952
|
+
startUrl: string(),
|
|
15953
|
+
stage: LoginStageEnum
|
|
15954
|
+
}), object({
|
|
15955
|
+
kind: literal("widget"),
|
|
15956
|
+
/** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
|
|
15957
|
+
id: string(),
|
|
15958
|
+
/** Owning addon id — drives the public bundle URL + the MF namespace. */
|
|
15959
|
+
addonId: string(),
|
|
15960
|
+
/** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
|
|
15961
|
+
bundle: string(),
|
|
15962
|
+
/** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
|
|
15963
|
+
remote: WidgetRemoteSchema,
|
|
15964
|
+
stage: LoginStageEnum
|
|
15965
|
+
})]);
|
|
15966
|
+
method(_void(), array(LoginMethodContributionSchema).readonly());
|
|
15967
|
+
/**
|
|
15787
15968
|
* Orchestrator-side destination metadata. The orchestrator computes
|
|
15788
15969
|
* `id = <addonId>:<subId>` from its provider lookup so consumers
|
|
15789
15970
|
* (admin UI, restore flow) see one canonical key.
|
|
@@ -17904,7 +18085,17 @@ var TrackSchema = object({
|
|
|
17904
18085
|
/** Cumulative normalized distance travelled (0..1 units = full frame width). */
|
|
17905
18086
|
totalDistance: number(),
|
|
17906
18087
|
state: TrackStateSchema,
|
|
17907
|
-
active: boolean()
|
|
18088
|
+
active: boolean(),
|
|
18089
|
+
/** Deterministic key-event importance score in [0,1] (server-computed at
|
|
18090
|
+
* track expiry, recomputed on late label). Absent on legacy rows written
|
|
18091
|
+
* before scoring shipped — consumers degrade to absence / compute-on-read. */
|
|
18092
|
+
importance: number().optional(),
|
|
18093
|
+
/** Id of the track's highest-confidence ObjectEvent (its representative
|
|
18094
|
+
* "best" frame). Absent when the track produced no object events. */
|
|
18095
|
+
bestEventId: string().optional(),
|
|
18096
|
+
/** Tag of the importance sub-signal that dominated the score
|
|
18097
|
+
* (identity|dwell|proximity|class|confidence|travel|zone). */
|
|
18098
|
+
importanceReason: string().optional()
|
|
17908
18099
|
});
|
|
17909
18100
|
var BaseEventFields = {
|
|
17910
18101
|
id: string(),
|
|
@@ -17969,8 +18160,18 @@ var ObjectEventSchema = object({
|
|
|
17969
18160
|
frameHeight: number().optional(),
|
|
17970
18161
|
/** MediaStore key for the crop attached to this event (if any). */
|
|
17971
18162
|
mediaKey: string().optional(),
|
|
18163
|
+
/** Design B: MediaStore key of the track's native-resolution key frame (the
|
|
18164
|
+
* best-detection full frame). Resolve via the event-media data-plane
|
|
18165
|
+
* (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
|
|
18166
|
+
* draws `bbox` over the native frame. Absent on legacy rows / non-decoded
|
|
18167
|
+
* sources — consumers fall back to `mediaKey` (the tight crop). */
|
|
18168
|
+
keyFrameMediaKey: string().optional(),
|
|
17972
18169
|
/** Populated by B5 (recording playback URL for this event). */
|
|
17973
|
-
mediaUrl: string().optional()
|
|
18170
|
+
mediaUrl: string().optional(),
|
|
18171
|
+
/** The parent track's key-event importance [0,1], propagated to every object
|
|
18172
|
+
* event of the track (so an event row can be sorted by importance without a
|
|
18173
|
+
* track join). Absent on legacy rows / before the track was scored. */
|
|
18174
|
+
importance: number().optional()
|
|
17974
18175
|
});
|
|
17975
18176
|
var AudioEventSchema = object({
|
|
17976
18177
|
...BaseEventFields,
|
|
@@ -17994,7 +18195,8 @@ var MediaFileKindEnum = _enum([
|
|
|
17994
18195
|
"fullFrame",
|
|
17995
18196
|
"fullFrameBoxed",
|
|
17996
18197
|
"faceCrop",
|
|
17997
|
-
"plateCrop"
|
|
18198
|
+
"plateCrop",
|
|
18199
|
+
"keyFrame"
|
|
17998
18200
|
]);
|
|
17999
18201
|
var MediaFileSchema = object({
|
|
18000
18202
|
key: string(),
|
|
@@ -18015,6 +18217,32 @@ var DeviceEventQueryInput = object({
|
|
|
18015
18217
|
projection: _enum(["full", "slim"]).optional()
|
|
18016
18218
|
});
|
|
18017
18219
|
var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
|
|
18220
|
+
var KeyEventQueryInput = object({
|
|
18221
|
+
deviceId: number(),
|
|
18222
|
+
/** Window lower bound (track firstSeen ≥ since). */
|
|
18223
|
+
since: number(),
|
|
18224
|
+
/** Window upper bound (track firstSeen ≤ until). */
|
|
18225
|
+
until: number(),
|
|
18226
|
+
limit: number().int().min(1).max(200).default(50),
|
|
18227
|
+
/** Drop tracks scoring below this importance. */
|
|
18228
|
+
minImportance: number().min(0).max(1).optional(),
|
|
18229
|
+
/** Restrict to a single class (e.g. 'person'). */
|
|
18230
|
+
classFilter: string().optional()
|
|
18231
|
+
});
|
|
18232
|
+
var KeyEventSchema = object({
|
|
18233
|
+
/** The representative event id (the track's best ObjectEvent, else its trackId). */
|
|
18234
|
+
id: string(),
|
|
18235
|
+
trackId: string(),
|
|
18236
|
+
/** Track start time (firstSeen). */
|
|
18237
|
+
timestamp: number(),
|
|
18238
|
+
className: string(),
|
|
18239
|
+
label: string().optional(),
|
|
18240
|
+
importance: number(),
|
|
18241
|
+
/** Highest-confidence ObjectEvent id for the track (empty when none). */
|
|
18242
|
+
bestEventId: string(),
|
|
18243
|
+
/** Track lifetime in ms (lastSeen - firstSeen). */
|
|
18244
|
+
windowMs: number().optional()
|
|
18245
|
+
});
|
|
18018
18246
|
var TrackedDetectionSchema = object({
|
|
18019
18247
|
trackId: string(),
|
|
18020
18248
|
className: string(),
|
|
@@ -18044,7 +18272,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
18044
18272
|
}), array(TrackSchema).readonly()), method(object({ deviceId: number() }), _void(), {
|
|
18045
18273
|
kind: "mutation",
|
|
18046
18274
|
auth: "admin"
|
|
18047
|
-
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({
|
|
18275
|
+
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
|
|
18048
18276
|
deviceId: number(),
|
|
18049
18277
|
since: number(),
|
|
18050
18278
|
until: number(),
|
|
@@ -18089,11 +18317,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
18089
18317
|
timestamp: number()
|
|
18090
18318
|
});
|
|
18091
18319
|
var CameraPipelineConfigSchema = object({
|
|
18092
|
-
engine: PipelineEngineChoiceSchema,
|
|
18320
|
+
engine: PipelineEngineChoiceSchema.optional(),
|
|
18093
18321
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
18094
18322
|
audio: object({
|
|
18095
|
-
engine: PipelineEngineChoiceSchema,
|
|
18096
|
-
modelId: string(),
|
|
18323
|
+
engine: PipelineEngineChoiceSchema.optional(),
|
|
18324
|
+
modelId: string().optional(),
|
|
18097
18325
|
enabled: boolean(),
|
|
18098
18326
|
settings: record(string(), unknown()).readonly().optional()
|
|
18099
18327
|
}).nullable().optional()
|
|
@@ -18108,7 +18336,7 @@ var PipelineTemplateSchema = object({
|
|
|
18108
18336
|
});
|
|
18109
18337
|
var AgentAddonConfigSchema = object({
|
|
18110
18338
|
enabled: boolean(),
|
|
18111
|
-
modelId: string(),
|
|
18339
|
+
modelId: string().optional(),
|
|
18112
18340
|
settings: record(string(), unknown()).readonly()
|
|
18113
18341
|
});
|
|
18114
18342
|
var AgentPipelineSettingsSchema = object({
|
|
@@ -18118,12 +18346,25 @@ var AgentPipelineSettingsSchema = object({
|
|
|
18118
18346
|
detectWeight: number().positive().optional(),
|
|
18119
18347
|
/** Node is eligible to run the detection pipeline (decode + inference). */
|
|
18120
18348
|
detect: boolean().optional(),
|
|
18121
|
-
/**
|
|
18349
|
+
/**
|
|
18350
|
+
* DEPRECATED AND IGNORED. Decode is always co-located with its frame
|
|
18351
|
+
* consumer, so decode eligibility IS detect eligibility. Kept optional in
|
|
18352
|
+
* the schema ONLY so persisted stores written before the removal still
|
|
18353
|
+
* parse — no code reads it and no write path emits it.
|
|
18354
|
+
*/
|
|
18122
18355
|
decode: boolean().optional(),
|
|
18123
18356
|
/** Node is eligible to run audio-analyzer sessions. */
|
|
18124
18357
|
audio: boolean().optional(),
|
|
18125
18358
|
/** Node is eligible to be the ingest / source-owner (serve the restream). */
|
|
18126
|
-
ingest: boolean().optional()
|
|
18359
|
+
ingest: boolean().optional(),
|
|
18360
|
+
/**
|
|
18361
|
+
* Operator override for the LAN host a cross-node decoder dials to reach
|
|
18362
|
+
* THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
|
|
18363
|
+
* falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
|
|
18364
|
+
* it already uses to reach the hub). Set this only when the auto-detected
|
|
18365
|
+
* address is wrong (multi-homed host, NAT, custom interface).
|
|
18366
|
+
*/
|
|
18367
|
+
reachableHost: string().optional()
|
|
18127
18368
|
});
|
|
18128
18369
|
var CameraPipelineForAgentSchema = object({
|
|
18129
18370
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -18171,25 +18412,6 @@ var PipelineAssignmentSchema = object({
|
|
|
18171
18412
|
assignedAt: number()
|
|
18172
18413
|
});
|
|
18173
18414
|
/**
|
|
18174
|
-
* Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
|
|
18175
|
-
* the decoder-node placement domain (`balanceDecoder` decision: manual pin
|
|
18176
|
-
* → co-located with pipeline → capacity).
|
|
18177
|
-
*/
|
|
18178
|
-
var DecoderAssignmentSchema = object({
|
|
18179
|
-
deviceId: number(),
|
|
18180
|
-
/** Moleculer node id of the decoder provider currently responsible for this camera. */
|
|
18181
|
-
decoderNodeId: string(),
|
|
18182
|
-
/** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
|
|
18183
|
-
pinned: boolean(),
|
|
18184
|
-
/** Why this assignment was made — useful for debugging the decoder balancer. */
|
|
18185
|
-
reason: _enum([
|
|
18186
|
-
"manual",
|
|
18187
|
-
"co-located",
|
|
18188
|
-
"capacity",
|
|
18189
|
-
"hardware-affinity"
|
|
18190
|
-
])
|
|
18191
|
-
});
|
|
18192
|
-
/**
|
|
18193
18415
|
* Per-agent load summary surfaced to the load balancer + dashboards.
|
|
18194
18416
|
* Aggregated from each runner's `getLocalLoad` cap call.
|
|
18195
18417
|
*/
|
|
@@ -18229,6 +18451,15 @@ var GlobalMetricsSchema = object({
|
|
|
18229
18451
|
* capability providers.
|
|
18230
18452
|
*/
|
|
18231
18453
|
var CapabilityBindingsSchema = record(string(), string());
|
|
18454
|
+
/**
|
|
18455
|
+
* The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
|
|
18456
|
+
* its LAN-reachable host, if one is registered. See `getIngestOwner`.
|
|
18457
|
+
*/
|
|
18458
|
+
var IngestOwnerSchema = object({
|
|
18459
|
+
ownerNodeId: string(),
|
|
18460
|
+
reachableHost: string().optional(),
|
|
18461
|
+
configIssue: string().optional()
|
|
18462
|
+
});
|
|
18232
18463
|
/** Source block — always present; derives from the stream catalog. */
|
|
18233
18464
|
var CameraSourceStatusSchema = object({ streams: array(object({
|
|
18234
18465
|
camStreamId: string(),
|
|
@@ -18243,6 +18474,14 @@ var CameraAssignmentStatusSchema = object({
|
|
|
18243
18474
|
detectionNodeId: string().nullable(),
|
|
18244
18475
|
decoderNodeId: string().nullable(),
|
|
18245
18476
|
audioNodeId: string().nullable(),
|
|
18477
|
+
/**
|
|
18478
|
+
* The node that OWNS this camera's physical source pull (dials the RTSP and
|
|
18479
|
+
* hosts the broker/restream) — the cluster ingest owner today
|
|
18480
|
+
* (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
|
|
18481
|
+
* the UI show WHERE a camera is sourced without SSH/logs, and is the node the
|
|
18482
|
+
* broker block below was read from (pinned). Nullable only pre-wiring.
|
|
18483
|
+
*/
|
|
18484
|
+
sourceNodeId: string().nullable(),
|
|
18246
18485
|
pinned: object({
|
|
18247
18486
|
detection: boolean(),
|
|
18248
18487
|
decoder: boolean(),
|
|
@@ -18375,16 +18614,7 @@ method(object({
|
|
|
18375
18614
|
}), object({ success: literal(true) }), {
|
|
18376
18615
|
kind: "mutation",
|
|
18377
18616
|
auth: "admin"
|
|
18378
|
-
}), method(object({
|
|
18379
|
-
deviceId: number(),
|
|
18380
|
-
nodeId: string()
|
|
18381
|
-
}), _void(), {
|
|
18382
|
-
kind: "mutation",
|
|
18383
|
-
auth: "admin"
|
|
18384
|
-
}), method(object({ deviceId: number() }), _void(), {
|
|
18385
|
-
kind: "mutation",
|
|
18386
|
-
auth: "admin"
|
|
18387
|
-
}), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
|
|
18617
|
+
}), method(_void(), IngestOwnerSchema), method(object({
|
|
18388
18618
|
deviceId: number(),
|
|
18389
18619
|
nodeId: string()
|
|
18390
18620
|
}), object({ success: literal(true) }), {
|
|
@@ -18405,10 +18635,7 @@ method(object({
|
|
|
18405
18635
|
nodeId: string(),
|
|
18406
18636
|
pinned: boolean(),
|
|
18407
18637
|
assignedAt: number()
|
|
18408
|
-
}))), method(object({
|
|
18409
|
-
deviceId: number(),
|
|
18410
|
-
pipelineNodeId: string().optional()
|
|
18411
|
-
}), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
|
|
18638
|
+
}))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
|
|
18412
18639
|
nodeId: string(),
|
|
18413
18640
|
settings: AgentPipelineSettingsSchema
|
|
18414
18641
|
})).readonly()), method(object({
|
|
@@ -18438,12 +18665,26 @@ method(object({
|
|
|
18438
18665
|
}), method(object({
|
|
18439
18666
|
agentNodeId: string(),
|
|
18440
18667
|
detect: boolean().nullable().optional(),
|
|
18441
|
-
decode: boolean().nullable().optional(),
|
|
18442
18668
|
audio: boolean().nullable().optional(),
|
|
18443
18669
|
ingest: boolean().nullable().optional()
|
|
18444
18670
|
}), object({ success: literal(true) }), {
|
|
18445
18671
|
kind: "mutation",
|
|
18446
18672
|
auth: "admin"
|
|
18673
|
+
}), method(object({
|
|
18674
|
+
agentNodeId: string(),
|
|
18675
|
+
reachableHost: string().nullable()
|
|
18676
|
+
}), object({ success: literal(true) }), {
|
|
18677
|
+
kind: "mutation",
|
|
18678
|
+
auth: "admin"
|
|
18679
|
+
}), method(object({ agentNodeId: string() }), object({
|
|
18680
|
+
success: literal(true),
|
|
18681
|
+
/** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
|
|
18682
|
+
effectiveModelId: string().nullable(),
|
|
18683
|
+
/** Number of cameras whose node-scoped overrides were cleared. */
|
|
18684
|
+
clearedCameraOverrides: number()
|
|
18685
|
+
}), {
|
|
18686
|
+
kind: "mutation",
|
|
18687
|
+
auth: "admin"
|
|
18447
18688
|
}), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
|
|
18448
18689
|
deviceId: number(),
|
|
18449
18690
|
addonId: string(),
|
|
@@ -18488,22 +18729,131 @@ method(object({
|
|
|
18488
18729
|
kind: "mutation",
|
|
18489
18730
|
auth: "admin"
|
|
18490
18731
|
});
|
|
18491
|
-
|
|
18492
|
-
|
|
18493
|
-
|
|
18494
|
-
|
|
18495
|
-
|
|
18496
|
-
|
|
18732
|
+
/**
|
|
18733
|
+
* server-management — per-NODE singleton capability for a node's ROOT
|
|
18734
|
+
* package lifecycle (runtime-updatable node packages, phase 2: hub + docker
|
|
18735
|
+
* agents).
|
|
18736
|
+
*
|
|
18737
|
+
* Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
|
|
18738
|
+
* on agents) carries the whole software stack in its npm dep tree, so ONE
|
|
18739
|
+
* version describes the node. Updates install into
|
|
18740
|
+
* `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
|
|
18741
|
+
* starter (probation boot + auto-rollback to N-1).
|
|
18742
|
+
*
|
|
18743
|
+
* Providers:
|
|
18744
|
+
* - HUB: `ServerUpdateService` behind the `server-provided` mount
|
|
18745
|
+
* (`buildServerProviders` in trpc.router.ts) — the default target for
|
|
18746
|
+
* unpinned calls.
|
|
18747
|
+
* - AGENT: `AgentUpdateService` registered by the agent bootstrap under
|
|
18748
|
+
* the synthetic `agent-runtime` addonId and declared in the agent's
|
|
18749
|
+
* `$hub.registerNode` manifest.
|
|
18750
|
+
*
|
|
18751
|
+
* Node routing: singleton caps get the codegen/runtime-builder `nodeId`
|
|
18752
|
+
* injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
|
|
18753
|
+
* SDK) routes the call to that node's provider via the standard remote
|
|
18754
|
+
* proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
|
|
18755
|
+
* in-process provider lookup). No `nodeId` → the hub's own provider.
|
|
18756
|
+
*
|
|
18757
|
+
* Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
|
|
18758
|
+
*/
|
|
18759
|
+
/**
|
|
18760
|
+
* Where the running hub's code was loaded from:
|
|
18761
|
+
* - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
|
|
18762
|
+
* plain resolution and runtime updates are refused.
|
|
18763
|
+
* - `baked` — the immutable image seed closure (no data-dir root active).
|
|
18764
|
+
* - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
|
|
18765
|
+
*/
|
|
18766
|
+
var ServerBootModeSchema = _enum([
|
|
18767
|
+
"workspace",
|
|
18768
|
+
"baked",
|
|
18769
|
+
"data-root"
|
|
18770
|
+
]);
|
|
18771
|
+
/**
|
|
18772
|
+
* Update lifecycle state:
|
|
18773
|
+
* - `idle` / `checking` / `staging` — steady / in-flight registry work.
|
|
18774
|
+
* - `pending-restart` — a version is staged and the node has NOT yet
|
|
18775
|
+
* restarted onto it (still running the OLD version).
|
|
18776
|
+
* - `awaiting-confirmation` — the node HAS restarted onto the staged version
|
|
18777
|
+
* (it is the active probation boot) and is waiting to confirm boot-health.
|
|
18778
|
+
* Apply/rollback are refused in this state and the node must NOT be
|
|
18779
|
+
* manually restarted, or the probation boot auto-rolls-back.
|
|
18780
|
+
*/
|
|
18781
|
+
var ServerUpdateStateSchema = _enum([
|
|
18782
|
+
"idle",
|
|
18783
|
+
"checking",
|
|
18784
|
+
"staging",
|
|
18785
|
+
"pending-restart",
|
|
18786
|
+
"awaiting-confirmation"
|
|
18787
|
+
]);
|
|
18788
|
+
var ServerRollbackInfoSchema = object({
|
|
18789
|
+
/** The version that failed (or was manually rolled back). */
|
|
18790
|
+
fromVersion: string(),
|
|
18791
|
+
/** The version rolled back to; null = the baked seed. */
|
|
18792
|
+
toVersion: string().nullable(),
|
|
18793
|
+
atMs: number(),
|
|
18794
|
+
reason: string()
|
|
18497
18795
|
});
|
|
18498
|
-
var
|
|
18499
|
-
|
|
18500
|
-
|
|
18501
|
-
|
|
18796
|
+
var ServerPackageStatusSchema = object({
|
|
18797
|
+
/** Root package name (`@camstack/server` on the hub). */
|
|
18798
|
+
packageName: string(),
|
|
18799
|
+
/** Version of the code the running process ACTUALLY loaded. */
|
|
18800
|
+
runningVersion: string().nullable(),
|
|
18801
|
+
/** Node.js runtime version the node's process runs on (`process.versions.node`). */
|
|
18802
|
+
nodeRuntimeVersion: string().nullable(),
|
|
18803
|
+
/** Active data-dir root version; null when booted from seed/workspace. */
|
|
18804
|
+
activeVersion: string().nullable(),
|
|
18805
|
+
/** N-1 version kept for rollback; null when no previous version exists. */
|
|
18806
|
+
previousVersion: string().nullable(),
|
|
18807
|
+
/** Version of the immutable baked seed closure (image fallback). */
|
|
18808
|
+
seedVersion: string().nullable(),
|
|
18809
|
+
/** Latest registry version from the most recent check (null = never checked). */
|
|
18810
|
+
latestVersion: string().nullable(),
|
|
18811
|
+
updateAvailable: boolean(),
|
|
18812
|
+
bootMode: ServerBootModeSchema,
|
|
18813
|
+
updateState: ServerUpdateStateSchema,
|
|
18814
|
+
/** Version staged + awaiting its probation boot, when one is pending. */
|
|
18815
|
+
pendingVersion: string().nullable(),
|
|
18816
|
+
/** Set when the last freshly-activated version failed its boot health-check. */
|
|
18817
|
+
rolledBack: ServerRollbackInfoSchema.nullable(),
|
|
18818
|
+
/**
|
|
18819
|
+
* True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
|
|
18820
|
+
* hub is running from the baked seed (or workspace) while installed data-dir
|
|
18821
|
+
* versions are being IGNORED. Surfaced as a warning in the UI.
|
|
18822
|
+
*/
|
|
18823
|
+
stateFileCorrupt: boolean(),
|
|
18824
|
+
lastCheckedAtMs: number().nullable()
|
|
18825
|
+
});
|
|
18826
|
+
var ServerUpdateCheckResultSchema = object({
|
|
18827
|
+
packageName: string(),
|
|
18828
|
+
runningVersion: string().nullable(),
|
|
18829
|
+
latestVersion: string().nullable(),
|
|
18830
|
+
updateAvailable: boolean(),
|
|
18831
|
+
checkedAtMs: number(),
|
|
18832
|
+
/** Non-null when the registry lookup failed (offline, bad registry, …). */
|
|
18833
|
+
error: string().nullable()
|
|
18834
|
+
});
|
|
18835
|
+
var ServerUpdateActionResultSchema = object({
|
|
18836
|
+
accepted: boolean(),
|
|
18837
|
+
targetVersion: string().nullable(),
|
|
18838
|
+
/** True when a graceful restart was scheduled to apply the change. */
|
|
18839
|
+
restarting: boolean(),
|
|
18840
|
+
message: string()
|
|
18841
|
+
});
|
|
18842
|
+
method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
|
|
18843
|
+
kind: "mutation",
|
|
18844
|
+
auth: "admin"
|
|
18845
|
+
}), method(object({
|
|
18846
|
+
/** Explicit target version; omitted = latest from the registry. */
|
|
18847
|
+
version: string().optional() }), ServerUpdateActionResultSchema, {
|
|
18848
|
+
kind: "mutation",
|
|
18849
|
+
auth: "admin"
|
|
18850
|
+
}), method(_void(), ServerUpdateActionResultSchema, {
|
|
18851
|
+
kind: "mutation",
|
|
18852
|
+
auth: "admin"
|
|
18853
|
+
}), method(_void(), ServerUpdateActionResultSchema, {
|
|
18854
|
+
kind: "mutation",
|
|
18855
|
+
auth: "admin"
|
|
18502
18856
|
});
|
|
18503
|
-
method(object({
|
|
18504
|
-
deviceId: number(),
|
|
18505
|
-
streams: array(RegisteredStreamSchema).readonly()
|
|
18506
|
-
}), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(ExposedResourceSchema).readonly());
|
|
18507
18857
|
/**
|
|
18508
18858
|
* Query filter for settings-store collections.
|
|
18509
18859
|
*/
|
|
@@ -18656,9 +19006,9 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
|
|
|
18656
19006
|
/**
|
|
18657
19007
|
* A single device snapshot returned as base64 JPEG/PNG.
|
|
18658
19008
|
*
|
|
18659
|
-
*
|
|
18660
|
-
*
|
|
18661
|
-
*
|
|
19009
|
+
* The `SnapshotAddon` wrapper returns this shape whether the frame came from
|
|
19010
|
+
* the device-native provider (onboard capture) or from the stream-broker
|
|
19011
|
+
* prebuffer fallback.
|
|
18662
19012
|
*/
|
|
18663
19013
|
var SnapshotImageSchema = object({
|
|
18664
19014
|
base64: string(),
|
|
@@ -18689,11 +19039,12 @@ DeviceType.Camera, method(object({
|
|
|
18689
19039
|
}), SnapshotImageSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
18690
19040
|
kind: "mutation",
|
|
18691
19041
|
auth: "admin"
|
|
18692
|
-
})
|
|
18693
|
-
method(object({ deviceId: number() }), boolean()), method(object({
|
|
19042
|
+
}), systemMethod(object({ deviceIds: array(number()).min(1).max(200) }), array(object({
|
|
18694
19043
|
deviceId: number(),
|
|
18695
|
-
|
|
18696
|
-
|
|
19044
|
+
lastCapturedAt: number().nullable(),
|
|
19045
|
+
cacheAgeMs: number().nullable(),
|
|
19046
|
+
etag: string().nullable()
|
|
19047
|
+
})));
|
|
18697
19048
|
/**
|
|
18698
19049
|
* `sso-bridge` — internal hub-only cap that lets SSO-style auth
|
|
18699
19050
|
* providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
|
|
@@ -18944,10 +19295,32 @@ method(_void(), array(TurnServerSchema).readonly());
|
|
|
18944
19295
|
* b. `finishAuthentication({userId, response})` → server verifies
|
|
18945
19296
|
* the assertion, bumps the credential counter, returns ok.
|
|
18946
19297
|
*
|
|
19298
|
+
* 2b. Usernameless (discoverable-credential) authentication — the
|
|
19299
|
+
* passkey IS the primary factor, no password leg:
|
|
19300
|
+
* a. `beginDiscoverableAuthentication({})` → assertion options with
|
|
19301
|
+
* EMPTY `allowCredentials` (the browser offers every resident
|
|
19302
|
+
* passkey it holds for this RP) + `userVerification: 'required'`
|
|
19303
|
+
* (the passkey replaces both factors, so UV is mandatory).
|
|
19304
|
+
* The challenge is stored server-side, NOT bound to any user.
|
|
19305
|
+
* b. `finishDiscoverableAuthentication({response})` → the provider
|
|
19306
|
+
* resolves the credential by the response's credential id,
|
|
19307
|
+
* verifies the assertion against the stored challenge + that
|
|
19308
|
+
* credential's public key/counter, and returns the OWNING
|
|
19309
|
+
* `userId` — the caller (core auth router) mints the session.
|
|
19310
|
+
*
|
|
18947
19311
|
* 3. Management:
|
|
18948
19312
|
* - `listPasskeys({userId})` — enumerate user's enrolled credentials.
|
|
18949
19313
|
* - `removePasskey({userId, credentialId})` — revoke one credential.
|
|
18950
19314
|
*
|
|
19315
|
+
* 4. Second-factor preference (opt-in, default OFF):
|
|
19316
|
+
* Enrolling a passkey only enables passkey-FIRST sign-in. It is
|
|
19317
|
+
* demanded as a second factor after a password login ONLY when the
|
|
19318
|
+
* user explicitly opts in via `setSecondFactorPreference`.
|
|
19319
|
+
* - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
|
|
19320
|
+
* row ⇒ `enabled: false`).
|
|
19321
|
+
* - `setSecondFactorPreference({userId, enabled})` — persisted by
|
|
19322
|
+
* the providing addon beside its credentials.
|
|
19323
|
+
*
|
|
18951
19324
|
* Challenges are short-lived (5 min, in-memory). The cap is internal —
|
|
18952
19325
|
* the admin-ui composes the begin/finish round-trip and never exposes
|
|
18953
19326
|
* the cap to non-admins.
|
|
@@ -18990,6 +19363,17 @@ method(object({
|
|
|
18990
19363
|
}), object({ verified: boolean() }), {
|
|
18991
19364
|
kind: "mutation",
|
|
18992
19365
|
access: "view"
|
|
19366
|
+
}), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
|
|
19367
|
+
kind: "mutation",
|
|
19368
|
+
access: "view"
|
|
19369
|
+
}), method(object({
|
|
19370
|
+
/** AuthenticationResponseJSON from the browser. */
|
|
19371
|
+
response: record(string(), unknown()) }), object({
|
|
19372
|
+
verified: boolean(),
|
|
19373
|
+
userId: string().nullable()
|
|
19374
|
+
}), {
|
|
19375
|
+
kind: "mutation",
|
|
19376
|
+
access: "view"
|
|
18993
19377
|
}), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
|
|
18994
19378
|
userId: string(),
|
|
18995
19379
|
credentialId: string()
|
|
@@ -18997,6 +19381,13 @@ method(object({
|
|
|
18997
19381
|
kind: "mutation",
|
|
18998
19382
|
auth: "admin",
|
|
18999
19383
|
access: "delete"
|
|
19384
|
+
}), method(object({ userId: string() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
|
|
19385
|
+
userId: string(),
|
|
19386
|
+
enabled: boolean()
|
|
19387
|
+
}), object({ success: literal(true) }), {
|
|
19388
|
+
kind: "mutation",
|
|
19389
|
+
auth: "admin",
|
|
19390
|
+
access: "create"
|
|
19000
19391
|
});
|
|
19001
19392
|
/**
|
|
19002
19393
|
* `videoclips` — the unified, navigable-clip surface for a camera.
|
|
@@ -19054,9 +19445,10 @@ method(object({
|
|
|
19054
19445
|
auth: "admin"
|
|
19055
19446
|
});
|
|
19056
19447
|
/**
|
|
19057
|
-
* Optional client-side hints sent at session creation to help the
|
|
19058
|
-
*
|
|
19059
|
-
*
|
|
19448
|
+
* Optional client-side hints sent at session creation to help the provider
|
|
19449
|
+
* pick the best native source. All fields optional — a viewer that knows
|
|
19450
|
+
* nothing still gets a sane default. (Relocated from the retired `webrtc`
|
|
19451
|
+
* collection cap; this `webrtc-session` cap is the live signaling surface.)
|
|
19060
19452
|
*/
|
|
19061
19453
|
var webrtcClientHintsSchema = object({
|
|
19062
19454
|
viewportWidth: number().int().positive().optional(),
|
|
@@ -19067,22 +19459,6 @@ var webrtcClientHintsSchema = object({
|
|
|
19067
19459
|
/** Hard tier override; takes precedence over scoring when registered. */
|
|
19068
19460
|
prefersTier: string().optional()
|
|
19069
19461
|
}).partial();
|
|
19070
|
-
method(object({
|
|
19071
|
-
streamId: string(),
|
|
19072
|
-
sdpOffer: string()
|
|
19073
|
-
}), string(), { kind: "mutation" }), method(object({ streamId: string() }), boolean()), method(object({
|
|
19074
|
-
streamId: string(),
|
|
19075
|
-
codec: string()
|
|
19076
|
-
}), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
|
|
19077
|
-
streamId: string(),
|
|
19078
|
-
hints: webrtcClientHintsSchema.optional()
|
|
19079
|
-
}), object({
|
|
19080
|
-
sessionId: string(),
|
|
19081
|
-
sdpOffer: string()
|
|
19082
|
-
}), { kind: "mutation" }), method(object({
|
|
19083
|
-
sessionId: string(),
|
|
19084
|
-
sdpAnswer: string()
|
|
19085
|
-
}), _void(), { kind: "mutation" }), method(object({ sessionId: string() }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), boolean());
|
|
19086
19462
|
/**
|
|
19087
19463
|
* Discriminated target for a WebRTC session. The client sends this
|
|
19088
19464
|
* structured object instead of building / parsing brokerId strings;
|
|
@@ -19569,7 +19945,15 @@ var FrameworkPackageStatusSchema = object({
|
|
|
19569
19945
|
latestVersion: string().nullable(),
|
|
19570
19946
|
hasUpdate: boolean(),
|
|
19571
19947
|
/** Optional manifest description for the row tooltip. */
|
|
19572
|
-
description: string().optional()
|
|
19948
|
+
description: string().optional(),
|
|
19949
|
+
/**
|
|
19950
|
+
* Content build-id (md5 of the resolved `dist/` tree) of the code the hub
|
|
19951
|
+
* ACTUALLY loaded. Framework packages ship code changes without always
|
|
19952
|
+
* bumping `currentVersion`, so semver alone hides "same version, new code".
|
|
19953
|
+
* `null` when the dist can't be hashed (not installed / empty). The admin-UI
|
|
19954
|
+
* surfaces this so a stale-code hub is visible even at an unchanged version.
|
|
19955
|
+
*/
|
|
19956
|
+
buildId: string().nullable()
|
|
19573
19957
|
});
|
|
19574
19958
|
var LogStreamEntrySchema = object({
|
|
19575
19959
|
timestamp: string(),
|
|
@@ -19805,7 +20189,17 @@ var FaceInfoSchema = object({
|
|
|
19805
20189
|
recognizedIdentityId: string().optional(),
|
|
19806
20190
|
identityName: string().optional(),
|
|
19807
20191
|
assigned: boolean(),
|
|
19808
|
-
base64: string().optional()
|
|
20192
|
+
base64: string().optional(),
|
|
20193
|
+
/** Design B: the face bbox (pixel space) on the key frame — lets a detail
|
|
20194
|
+
* view draw the box over the native `keyFrameMediaKey` frame. Absent on
|
|
20195
|
+
* legacy rows written before design B. */
|
|
20196
|
+
faceBbox: BoundingBoxSchema.optional(),
|
|
20197
|
+
/** Design B: MediaStore key of the track's native-resolution key frame.
|
|
20198
|
+
* Fetch the native JPEG via the event-media data-plane
|
|
20199
|
+
* (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
|
|
20200
|
+
* track produced no key frame (e.g. native/onboard source) — the UI falls
|
|
20201
|
+
* back to the inline `base64` face crop. */
|
|
20202
|
+
keyFrameMediaKey: string().optional()
|
|
19809
20203
|
});
|
|
19810
20204
|
var FaceFilterEnum = _enum([
|
|
19811
20205
|
"unassigned",
|
|
@@ -20502,6 +20896,16 @@ var TopologyCategorySchema = object({
|
|
|
20502
20896
|
healthy: number(),
|
|
20503
20897
|
addons: array(TopologyCategoryAddonSchema).readonly()
|
|
20504
20898
|
});
|
|
20899
|
+
/**
|
|
20900
|
+
* The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
|
|
20901
|
+
* `@camstack/agent` on agents) as reported by its `registerNode` manifest —
|
|
20902
|
+
* version visibility for the Server management surface. Nullable: offline
|
|
20903
|
+
* rows and pre-phase-2 nodes report none.
|
|
20904
|
+
*/
|
|
20905
|
+
var TopologyRootPackageSchema = object({
|
|
20906
|
+
name: string(),
|
|
20907
|
+
version: string()
|
|
20908
|
+
});
|
|
20505
20909
|
var TopologyNodeSchema = object({
|
|
20506
20910
|
id: string(),
|
|
20507
20911
|
name: string(),
|
|
@@ -20525,7 +20929,8 @@ var TopologyNodeSchema = object({
|
|
|
20525
20929
|
status: string()
|
|
20526
20930
|
})).readonly(),
|
|
20527
20931
|
processes: array(TopologyProcessSchema).readonly(),
|
|
20528
|
-
categories: array(TopologyCategorySchema).readonly()
|
|
20932
|
+
categories: array(TopologyCategorySchema).readonly(),
|
|
20933
|
+
rootPackage: TopologyRootPackageSchema.nullable()
|
|
20529
20934
|
});
|
|
20530
20935
|
var CapUsageEdgeSchema = object({
|
|
20531
20936
|
callerAddonId: string(),
|
|
@@ -23325,6 +23730,12 @@ Object.freeze({
|
|
|
23325
23730
|
addonId: null,
|
|
23326
23731
|
access: "create"
|
|
23327
23732
|
},
|
|
23733
|
+
"loginMethod.getLoginMethods": {
|
|
23734
|
+
capName: "login-method",
|
|
23735
|
+
capScope: "system",
|
|
23736
|
+
addonId: null,
|
|
23737
|
+
access: "view"
|
|
23738
|
+
},
|
|
23328
23739
|
"mediaPlayer.next": {
|
|
23329
23740
|
capName: "media-player",
|
|
23330
23741
|
capScope: "device",
|
|
@@ -23907,6 +24318,12 @@ Object.freeze({
|
|
|
23907
24318
|
addonId: null,
|
|
23908
24319
|
access: "view"
|
|
23909
24320
|
},
|
|
24321
|
+
"pipelineAnalytics.getKeyEvents": {
|
|
24322
|
+
capName: "pipeline-analytics",
|
|
24323
|
+
capScope: "device",
|
|
24324
|
+
addonId: null,
|
|
24325
|
+
access: "view"
|
|
24326
|
+
},
|
|
23910
24327
|
"pipelineAnalytics.getMotionEvents": {
|
|
23911
24328
|
capName: "pipeline-analytics",
|
|
23912
24329
|
capScope: "device",
|
|
@@ -23955,23 +24372,23 @@ Object.freeze({
|
|
|
23955
24372
|
addonId: null,
|
|
23956
24373
|
access: "create"
|
|
23957
24374
|
},
|
|
23958
|
-
"pipelineExecutor.
|
|
24375
|
+
"pipelineExecutor.clearDeviceOverrides": {
|
|
23959
24376
|
capName: "pipeline-executor",
|
|
23960
24377
|
capScope: "system",
|
|
23961
24378
|
addonId: null,
|
|
23962
24379
|
access: "delete"
|
|
23963
24380
|
},
|
|
23964
|
-
"pipelineExecutor.
|
|
24381
|
+
"pipelineExecutor.deleteModel": {
|
|
23965
24382
|
capName: "pipeline-executor",
|
|
23966
24383
|
capScope: "system",
|
|
23967
24384
|
addonId: null,
|
|
23968
24385
|
access: "delete"
|
|
23969
24386
|
},
|
|
23970
|
-
"pipelineExecutor.
|
|
24387
|
+
"pipelineExecutor.deleteTemplate": {
|
|
23971
24388
|
capName: "pipeline-executor",
|
|
23972
24389
|
capScope: "system",
|
|
23973
24390
|
addonId: null,
|
|
23974
|
-
access: "
|
|
24391
|
+
access: "delete"
|
|
23975
24392
|
},
|
|
23976
24393
|
"pipelineExecutor.downloadModel": {
|
|
23977
24394
|
capName: "pipeline-executor",
|
|
@@ -24165,13 +24582,13 @@ Object.freeze({
|
|
|
24165
24582
|
addonId: null,
|
|
24166
24583
|
access: "create"
|
|
24167
24584
|
},
|
|
24168
|
-
"
|
|
24169
|
-
capName: "pipeline-
|
|
24585
|
+
"pipelineExecutor.validatePipeline": {
|
|
24586
|
+
capName: "pipeline-executor",
|
|
24170
24587
|
capScope: "system",
|
|
24171
24588
|
addonId: null,
|
|
24172
|
-
access: "
|
|
24589
|
+
access: "view"
|
|
24173
24590
|
},
|
|
24174
|
-
"pipelineOrchestrator.
|
|
24591
|
+
"pipelineOrchestrator.assignAudio": {
|
|
24175
24592
|
capName: "pipeline-orchestrator",
|
|
24176
24593
|
capScope: "system",
|
|
24177
24594
|
addonId: null,
|
|
@@ -24255,19 +24672,13 @@ Object.freeze({
|
|
|
24255
24672
|
addonId: null,
|
|
24256
24673
|
access: "view"
|
|
24257
24674
|
},
|
|
24258
|
-
"pipelineOrchestrator.
|
|
24259
|
-
capName: "pipeline-orchestrator",
|
|
24260
|
-
capScope: "system",
|
|
24261
|
-
addonId: null,
|
|
24262
|
-
access: "view"
|
|
24263
|
-
},
|
|
24264
|
-
"pipelineOrchestrator.getDecoderAssignments": {
|
|
24675
|
+
"pipelineOrchestrator.getGlobalMetrics": {
|
|
24265
24676
|
capName: "pipeline-orchestrator",
|
|
24266
24677
|
capScope: "system",
|
|
24267
24678
|
addonId: null,
|
|
24268
24679
|
access: "view"
|
|
24269
24680
|
},
|
|
24270
|
-
"pipelineOrchestrator.
|
|
24681
|
+
"pipelineOrchestrator.getIngestOwner": {
|
|
24271
24682
|
capName: "pipeline-orchestrator",
|
|
24272
24683
|
capScope: "system",
|
|
24273
24684
|
addonId: null,
|
|
@@ -24309,6 +24720,12 @@ Object.freeze({
|
|
|
24309
24720
|
addonId: null,
|
|
24310
24721
|
access: "delete"
|
|
24311
24722
|
},
|
|
24723
|
+
"pipelineOrchestrator.resetNodePipelineDefaults": {
|
|
24724
|
+
capName: "pipeline-orchestrator",
|
|
24725
|
+
capScope: "system",
|
|
24726
|
+
addonId: null,
|
|
24727
|
+
access: "delete"
|
|
24728
|
+
},
|
|
24312
24729
|
"pipelineOrchestrator.resolvePipeline": {
|
|
24313
24730
|
capName: "pipeline-orchestrator",
|
|
24314
24731
|
capScope: "system",
|
|
@@ -24345,37 +24762,37 @@ Object.freeze({
|
|
|
24345
24762
|
addonId: null,
|
|
24346
24763
|
access: "create"
|
|
24347
24764
|
},
|
|
24348
|
-
"pipelineOrchestrator.
|
|
24765
|
+
"pipelineOrchestrator.setAgentReachableHost": {
|
|
24349
24766
|
capName: "pipeline-orchestrator",
|
|
24350
24767
|
capScope: "system",
|
|
24351
24768
|
addonId: null,
|
|
24352
24769
|
access: "create"
|
|
24353
24770
|
},
|
|
24354
|
-
"pipelineOrchestrator.
|
|
24771
|
+
"pipelineOrchestrator.setCameraPipelineForAgent": {
|
|
24355
24772
|
capName: "pipeline-orchestrator",
|
|
24356
24773
|
capScope: "system",
|
|
24357
24774
|
addonId: null,
|
|
24358
24775
|
access: "create"
|
|
24359
24776
|
},
|
|
24360
|
-
"pipelineOrchestrator.
|
|
24777
|
+
"pipelineOrchestrator.setCameraStepOverride": {
|
|
24361
24778
|
capName: "pipeline-orchestrator",
|
|
24362
24779
|
capScope: "system",
|
|
24363
24780
|
addonId: null,
|
|
24364
24781
|
access: "create"
|
|
24365
24782
|
},
|
|
24366
|
-
"pipelineOrchestrator.
|
|
24783
|
+
"pipelineOrchestrator.setCameraStepToggle": {
|
|
24367
24784
|
capName: "pipeline-orchestrator",
|
|
24368
24785
|
capScope: "system",
|
|
24369
24786
|
addonId: null,
|
|
24370
24787
|
access: "create"
|
|
24371
24788
|
},
|
|
24372
|
-
"pipelineOrchestrator.
|
|
24789
|
+
"pipelineOrchestrator.setCapabilityBinding": {
|
|
24373
24790
|
capName: "pipeline-orchestrator",
|
|
24374
24791
|
capScope: "system",
|
|
24375
24792
|
addonId: null,
|
|
24376
24793
|
access: "create"
|
|
24377
24794
|
},
|
|
24378
|
-
"pipelineOrchestrator.
|
|
24795
|
+
"pipelineOrchestrator.unassignAudio": {
|
|
24379
24796
|
capName: "pipeline-orchestrator",
|
|
24380
24797
|
capScope: "system",
|
|
24381
24798
|
addonId: null,
|
|
@@ -24435,6 +24852,12 @@ Object.freeze({
|
|
|
24435
24852
|
addonId: null,
|
|
24436
24853
|
access: "view"
|
|
24437
24854
|
},
|
|
24855
|
+
"pipelineRunner.getNativeCrop": {
|
|
24856
|
+
capName: "pipeline-runner",
|
|
24857
|
+
capScope: "system",
|
|
24858
|
+
addonId: null,
|
|
24859
|
+
access: "view"
|
|
24860
|
+
},
|
|
24438
24861
|
"pipelineRunner.reportMotion": {
|
|
24439
24862
|
capName: "pipeline-runner",
|
|
24440
24863
|
capScope: "system",
|
|
@@ -24675,33 +25098,45 @@ Object.freeze({
|
|
|
24675
25098
|
addonId: null,
|
|
24676
25099
|
access: "create"
|
|
24677
25100
|
},
|
|
24678
|
-
"
|
|
24679
|
-
capName: "
|
|
25101
|
+
"scriptRunner.run": {
|
|
25102
|
+
capName: "script-runner",
|
|
25103
|
+
capScope: "device",
|
|
25104
|
+
addonId: null,
|
|
25105
|
+
access: "create"
|
|
25106
|
+
},
|
|
25107
|
+
"scriptRunner.stop": {
|
|
25108
|
+
capName: "script-runner",
|
|
25109
|
+
capScope: "device",
|
|
25110
|
+
addonId: null,
|
|
25111
|
+
access: "create"
|
|
25112
|
+
},
|
|
25113
|
+
"serverManagement.applyServerUpdate": {
|
|
25114
|
+
capName: "server-management",
|
|
24680
25115
|
capScope: "system",
|
|
24681
25116
|
addonId: null,
|
|
24682
|
-
access: "
|
|
25117
|
+
access: "create"
|
|
24683
25118
|
},
|
|
24684
|
-
"
|
|
24685
|
-
capName: "
|
|
25119
|
+
"serverManagement.checkServerUpdate": {
|
|
25120
|
+
capName: "server-management",
|
|
24686
25121
|
capScope: "system",
|
|
24687
25122
|
addonId: null,
|
|
24688
25123
|
access: "create"
|
|
24689
25124
|
},
|
|
24690
|
-
"
|
|
24691
|
-
capName: "
|
|
25125
|
+
"serverManagement.getServerPackageStatus": {
|
|
25126
|
+
capName: "server-management",
|
|
24692
25127
|
capScope: "system",
|
|
24693
25128
|
addonId: null,
|
|
24694
|
-
access: "
|
|
25129
|
+
access: "view"
|
|
24695
25130
|
},
|
|
24696
|
-
"
|
|
24697
|
-
capName: "
|
|
24698
|
-
capScope: "
|
|
25131
|
+
"serverManagement.restartServer": {
|
|
25132
|
+
capName: "server-management",
|
|
25133
|
+
capScope: "system",
|
|
24699
25134
|
addonId: null,
|
|
24700
25135
|
access: "create"
|
|
24701
25136
|
},
|
|
24702
|
-
"
|
|
24703
|
-
capName: "
|
|
24704
|
-
capScope: "
|
|
25137
|
+
"serverManagement.rollbackServerUpdate": {
|
|
25138
|
+
capName: "server-management",
|
|
25139
|
+
capScope: "system",
|
|
24705
25140
|
addonId: null,
|
|
24706
25141
|
access: "create"
|
|
24707
25142
|
},
|
|
@@ -24789,23 +25224,17 @@ Object.freeze({
|
|
|
24789
25224
|
addonId: null,
|
|
24790
25225
|
access: "view"
|
|
24791
25226
|
},
|
|
24792
|
-
"snapshot.
|
|
25227
|
+
"snapshot.getSnapshotOverview": {
|
|
24793
25228
|
capName: "snapshot",
|
|
24794
25229
|
capScope: "device",
|
|
24795
25230
|
addonId: null,
|
|
24796
|
-
access: "create"
|
|
24797
|
-
},
|
|
24798
|
-
"snapshotProvider.getSnapshot": {
|
|
24799
|
-
capName: "snapshot-provider",
|
|
24800
|
-
capScope: "system",
|
|
24801
|
-
addonId: null,
|
|
24802
25231
|
access: "view"
|
|
24803
25232
|
},
|
|
24804
|
-
"
|
|
24805
|
-
capName: "snapshot
|
|
24806
|
-
capScope: "
|
|
25233
|
+
"snapshot.invalidateCache": {
|
|
25234
|
+
capName: "snapshot",
|
|
25235
|
+
capScope: "device",
|
|
24807
25236
|
addonId: null,
|
|
24808
|
-
access: "
|
|
25237
|
+
access: "create"
|
|
24809
25238
|
},
|
|
24810
25239
|
"ssoBridge.signBridgeToken": {
|
|
24811
25240
|
capName: "sso-bridge",
|
|
@@ -25233,30 +25662,6 @@ Object.freeze({
|
|
|
25233
25662
|
addonId: null,
|
|
25234
25663
|
access: "view"
|
|
25235
25664
|
},
|
|
25236
|
-
"streamingEngine.getStreamUrl": {
|
|
25237
|
-
capName: "streaming-engine",
|
|
25238
|
-
capScope: "system",
|
|
25239
|
-
addonId: null,
|
|
25240
|
-
access: "view"
|
|
25241
|
-
},
|
|
25242
|
-
"streamingEngine.listStreams": {
|
|
25243
|
-
capName: "streaming-engine",
|
|
25244
|
-
capScope: "system",
|
|
25245
|
-
addonId: null,
|
|
25246
|
-
access: "view"
|
|
25247
|
-
},
|
|
25248
|
-
"streamingEngine.registerStream": {
|
|
25249
|
-
capName: "streaming-engine",
|
|
25250
|
-
capScope: "system",
|
|
25251
|
-
addonId: null,
|
|
25252
|
-
access: "create"
|
|
25253
|
-
},
|
|
25254
|
-
"streamingEngine.unregisterStream": {
|
|
25255
|
-
capName: "streaming-engine",
|
|
25256
|
-
capScope: "system",
|
|
25257
|
-
addonId: null,
|
|
25258
|
-
access: "delete"
|
|
25259
|
-
},
|
|
25260
25665
|
"streamParams.getConfigSchema": {
|
|
25261
25666
|
capName: "stream-params",
|
|
25262
25667
|
capScope: "device",
|
|
@@ -25503,6 +25908,12 @@ Object.freeze({
|
|
|
25503
25908
|
addonId: null,
|
|
25504
25909
|
access: "view"
|
|
25505
25910
|
},
|
|
25911
|
+
"userPasskeys.beginDiscoverableAuthentication": {
|
|
25912
|
+
capName: "user-passkeys",
|
|
25913
|
+
capScope: "system",
|
|
25914
|
+
addonId: null,
|
|
25915
|
+
access: "view"
|
|
25916
|
+
},
|
|
25506
25917
|
"userPasskeys.beginRegistration": {
|
|
25507
25918
|
capName: "user-passkeys",
|
|
25508
25919
|
capScope: "system",
|
|
@@ -25515,12 +25926,24 @@ Object.freeze({
|
|
|
25515
25926
|
addonId: null,
|
|
25516
25927
|
access: "view"
|
|
25517
25928
|
},
|
|
25929
|
+
"userPasskeys.finishDiscoverableAuthentication": {
|
|
25930
|
+
capName: "user-passkeys",
|
|
25931
|
+
capScope: "system",
|
|
25932
|
+
addonId: null,
|
|
25933
|
+
access: "view"
|
|
25934
|
+
},
|
|
25518
25935
|
"userPasskeys.finishRegistration": {
|
|
25519
25936
|
capName: "user-passkeys",
|
|
25520
25937
|
capScope: "system",
|
|
25521
25938
|
addonId: null,
|
|
25522
25939
|
access: "create"
|
|
25523
25940
|
},
|
|
25941
|
+
"userPasskeys.getSecondFactorPreference": {
|
|
25942
|
+
capName: "user-passkeys",
|
|
25943
|
+
capScope: "system",
|
|
25944
|
+
addonId: null,
|
|
25945
|
+
access: "view"
|
|
25946
|
+
},
|
|
25524
25947
|
"userPasskeys.listPasskeys": {
|
|
25525
25948
|
capName: "user-passkeys",
|
|
25526
25949
|
capScope: "system",
|
|
@@ -25533,6 +25956,12 @@ Object.freeze({
|
|
|
25533
25956
|
addonId: null,
|
|
25534
25957
|
access: "delete"
|
|
25535
25958
|
},
|
|
25959
|
+
"userPasskeys.setSecondFactorPreference": {
|
|
25960
|
+
capName: "user-passkeys",
|
|
25961
|
+
capScope: "system",
|
|
25962
|
+
addonId: null,
|
|
25963
|
+
access: "create"
|
|
25964
|
+
},
|
|
25536
25965
|
"vacuumControl.locate": {
|
|
25537
25966
|
capName: "vacuum-control",
|
|
25538
25967
|
capScope: "device",
|
|
@@ -25605,6 +26034,18 @@ Object.freeze({
|
|
|
25605
26034
|
addonId: null,
|
|
25606
26035
|
access: "view"
|
|
25607
26036
|
},
|
|
26037
|
+
"viewerUi.getStaticDir": {
|
|
26038
|
+
capName: "viewer-ui",
|
|
26039
|
+
capScope: "system",
|
|
26040
|
+
addonId: null,
|
|
26041
|
+
access: "view"
|
|
26042
|
+
},
|
|
26043
|
+
"viewerUi.getVersion": {
|
|
26044
|
+
capName: "viewer-ui",
|
|
26045
|
+
capScope: "system",
|
|
26046
|
+
addonId: null,
|
|
26047
|
+
access: "view"
|
|
26048
|
+
},
|
|
25608
26049
|
"waterHeater.setAway": {
|
|
25609
26050
|
capName: "water-heater",
|
|
25610
26051
|
capScope: "device",
|
|
@@ -25623,54 +26064,6 @@ Object.freeze({
|
|
|
25623
26064
|
addonId: null,
|
|
25624
26065
|
access: "create"
|
|
25625
26066
|
},
|
|
25626
|
-
"webrtc.closeSession": {
|
|
25627
|
-
capName: "webrtc",
|
|
25628
|
-
capScope: "system",
|
|
25629
|
-
addonId: null,
|
|
25630
|
-
access: "create"
|
|
25631
|
-
},
|
|
25632
|
-
"webrtc.createSession": {
|
|
25633
|
-
capName: "webrtc",
|
|
25634
|
-
capScope: "system",
|
|
25635
|
-
addonId: null,
|
|
25636
|
-
access: "create"
|
|
25637
|
-
},
|
|
25638
|
-
"webrtc.handleAnswer": {
|
|
25639
|
-
capName: "webrtc",
|
|
25640
|
-
capScope: "system",
|
|
25641
|
-
addonId: null,
|
|
25642
|
-
access: "create"
|
|
25643
|
-
},
|
|
25644
|
-
"webrtc.handleOffer": {
|
|
25645
|
-
capName: "webrtc",
|
|
25646
|
-
capScope: "system",
|
|
25647
|
-
addonId: null,
|
|
25648
|
-
access: "create"
|
|
25649
|
-
},
|
|
25650
|
-
"webrtc.hasAdaptiveBitrate": {
|
|
25651
|
-
capName: "webrtc",
|
|
25652
|
-
capScope: "system",
|
|
25653
|
-
addonId: null,
|
|
25654
|
-
access: "view"
|
|
25655
|
-
},
|
|
25656
|
-
"webrtc.registerStream": {
|
|
25657
|
-
capName: "webrtc",
|
|
25658
|
-
capScope: "system",
|
|
25659
|
-
addonId: null,
|
|
25660
|
-
access: "create"
|
|
25661
|
-
},
|
|
25662
|
-
"webrtc.supportsStream": {
|
|
25663
|
-
capName: "webrtc",
|
|
25664
|
-
capScope: "system",
|
|
25665
|
-
addonId: null,
|
|
25666
|
-
access: "view"
|
|
25667
|
-
},
|
|
25668
|
-
"webrtc.unregisterStream": {
|
|
25669
|
-
capName: "webrtc",
|
|
25670
|
-
capScope: "system",
|
|
25671
|
-
addonId: null,
|
|
25672
|
-
access: "delete"
|
|
25673
|
-
},
|
|
25674
26067
|
"webrtcSession.addIceCandidate": {
|
|
25675
26068
|
capName: "webrtc-session",
|
|
25676
26069
|
capScope: "device",
|