@camstack/addon-matter-broker 0.1.17 → 0.1.18
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 +672 -287
- package/dist/addon.mjs +672 -287
- package/package.json +1 -1
package/dist/addon.mjs
CHANGED
|
@@ -4654,7 +4654,7 @@ function preprocess(fn, schema) {
|
|
|
4654
4654
|
});
|
|
4655
4655
|
}
|
|
4656
4656
|
//#endregion
|
|
4657
|
-
//#region ../types/dist/sleep-
|
|
4657
|
+
//#region ../types/dist/sleep-BC9Yqte7.mjs
|
|
4658
4658
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
4659
4659
|
EventCategory["SystemBoot"] = "system.boot";
|
|
4660
4660
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -4840,6 +4840,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
4840
4840
|
*/
|
|
4841
4841
|
EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
|
|
4842
4842
|
/**
|
|
4843
|
+
* The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
|
|
4844
|
+
* Emitted by addon-pipeline-orchestrator whenever it (re)derives node
|
|
4845
|
+
* capabilities — at boot, on agent online/offline, and on an ingest-node
|
|
4846
|
+
* flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
|
|
4847
|
+
* keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
|
|
4848
|
+
* cross-process `getIngestOwner` query (push the authority's decision instead
|
|
4849
|
+
* of polling it on the hot path). Idempotent state — re-emitted on every
|
|
4850
|
+
* topology change, so a dropped event self-heals on the next one (plus the
|
|
4851
|
+
* broker's long backstop reconcile query).
|
|
4852
|
+
*/
|
|
4853
|
+
EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
|
|
4854
|
+
/**
|
|
4843
4855
|
* Periodic snapshot of per-node pipeline-runner load
|
|
4844
4856
|
* (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
|
|
4845
4857
|
* subscribe instead of polling `pipelineRunner.getLocalLoad`.
|
|
@@ -5363,10 +5375,6 @@ function hydrateField(field, values) {
|
|
|
5363
5375
|
};
|
|
5364
5376
|
}
|
|
5365
5377
|
const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
|
|
5366
|
-
if (field.type === "password") return {
|
|
5367
|
-
...field,
|
|
5368
|
-
value: ""
|
|
5369
|
-
};
|
|
5370
5378
|
const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
|
|
5371
5379
|
return {
|
|
5372
5380
|
...field,
|
|
@@ -6750,10 +6758,25 @@ function method(input, output, options) {
|
|
|
6750
6758
|
timeoutMs: options?.timeoutMs
|
|
6751
6759
|
};
|
|
6752
6760
|
}
|
|
6761
|
+
/**
|
|
6762
|
+
* A wrapper/system-only method: served exclusively by the cap's system-level
|
|
6763
|
+
* provider (`InferProvider`), and OPTIONAL on `InferNativeProvider` so per-device
|
|
6764
|
+
* driver natives don't stub out a wrapper concern (e.g. a cross-device cache
|
|
6765
|
+
* overview). The `systemOnly: true` literal is what `InferNativeProvider` keys on.
|
|
6766
|
+
*/
|
|
6767
|
+
function systemMethod(input, output, options) {
|
|
6768
|
+
return {
|
|
6769
|
+
...method(input, output, options),
|
|
6770
|
+
systemOnly: true
|
|
6771
|
+
};
|
|
6772
|
+
}
|
|
6753
6773
|
/** Shorthand to define an event schema */
|
|
6754
6774
|
function event$1(data) {
|
|
6755
6775
|
return { data };
|
|
6756
6776
|
}
|
|
6777
|
+
var StaticDirOutputSchema$1 = object({ staticDir: string$2() });
|
|
6778
|
+
var VersionOutputSchema$1 = object({ version: string$2() });
|
|
6779
|
+
method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
|
|
6757
6780
|
var StaticDirOutputSchema = object({ staticDir: string$2() });
|
|
6758
6781
|
var VersionOutputSchema = object({ version: string$2() });
|
|
6759
6782
|
method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
|
|
@@ -6935,6 +6958,36 @@ var ModelFormatsSchema = object({
|
|
|
6935
6958
|
tflite: ModelFormatEntrySchema.optional(),
|
|
6936
6959
|
pt: ModelFormatEntrySchema.optional()
|
|
6937
6960
|
});
|
|
6961
|
+
/**
|
|
6962
|
+
* Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
|
|
6963
|
+
* the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
|
|
6964
|
+
* grouped Family→Tier→Variant picker renders identically in the config UI and
|
|
6965
|
+
* in the pipeline/device steppers. The flat `id` stays the source of truth for
|
|
6966
|
+
* resolution/download/persistence; this is a presentation overlay resolved back
|
|
6967
|
+
* to an `id`.
|
|
6968
|
+
*/
|
|
6969
|
+
var ModelVariantGroupSchema = object({
|
|
6970
|
+
/** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
|
|
6971
|
+
family: string$2(),
|
|
6972
|
+
/** Size within the family, e.g. `n` | `s` | `m` | `l`. */
|
|
6973
|
+
tier: string$2(),
|
|
6974
|
+
/** Quantization axis. Omit ⇒ the fp32 base build. */
|
|
6975
|
+
precision: _enum(["fp32", "int8"]).optional(),
|
|
6976
|
+
/**
|
|
6977
|
+
* Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
|
|
6978
|
+
* latency-optimized export (e.g. ReLU-activation variant) — the slot the
|
|
6979
|
+
* future performance variants plug into.
|
|
6980
|
+
*/
|
|
6981
|
+
optimization: _enum(["standard", "fast"]).optional(),
|
|
6982
|
+
/**
|
|
6983
|
+
* Input-resolution axis (square input side, px). Omit ⇒ the family's native
|
|
6984
|
+
* resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
|
|
6985
|
+
* cheap latency lever — especially on Apple ANE and the Intel N100 — at a
|
|
6986
|
+
* small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
|
|
6987
|
+
* the group so the selector can offer it as a variant axis.
|
|
6988
|
+
*/
|
|
6989
|
+
resolution: number().int().positive().optional()
|
|
6990
|
+
});
|
|
6938
6991
|
var ModelCatalogEntrySchema = object({
|
|
6939
6992
|
id: string$2(),
|
|
6940
6993
|
name: string$2(),
|
|
@@ -6964,7 +7017,43 @@ var ModelCatalogEntrySchema = object({
|
|
|
6964
7017
|
* Auxiliary files required at runtime (labels JSON, charset dict, etc.).
|
|
6965
7018
|
* Downloaded into the same modelsDir alongside the model file.
|
|
6966
7019
|
*/
|
|
6967
|
-
extraFiles: array(ModelExtraFileSchema).readonly().optional()
|
|
7020
|
+
extraFiles: array(ModelExtraFileSchema).readonly().optional(),
|
|
7021
|
+
/**
|
|
7022
|
+
* LEGACY entry — retained in the catalog so a persisted operator selection
|
|
7023
|
+
* still RESOLVES (and can be re-activated), but hidden from the selectable
|
|
7024
|
+
* model list and excluded from the auto format-default pick. Set on the
|
|
7025
|
+
* superseded / consolidated models (older lineages, redundant fp16 IRs) so
|
|
7026
|
+
* the active lineup stays the coherent curated ladder without deleting a
|
|
7027
|
+
* model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
|
|
7028
|
+
* an explicit legacy id that has a build for the node's format.
|
|
7029
|
+
*/
|
|
7030
|
+
legacy: boolean().optional(),
|
|
7031
|
+
/**
|
|
7032
|
+
* Measured quality/latency metadata — populated from the benchmark addon on
|
|
7033
|
+
* the real node classes. Absent = not yet measured (most entries today; the
|
|
7034
|
+
* catalog historically carried only `sizeMB`, a poor cross-architecture
|
|
7035
|
+
* speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
|
|
7036
|
+
*/
|
|
7037
|
+
metrics: object({
|
|
7038
|
+
map50: number().optional(),
|
|
7039
|
+
p95LatencyMs: record(string$2(), number()).optional()
|
|
7040
|
+
}).optional(),
|
|
7041
|
+
/**
|
|
7042
|
+
* SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
|
|
7043
|
+
* YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
|
|
7044
|
+
* the retraining addon and any future commercial distribution.
|
|
7045
|
+
*/
|
|
7046
|
+
license: string$2().optional(),
|
|
7047
|
+
/**
|
|
7048
|
+
* Variant-selector grouping. The UI groups models by `family` + `tier` and
|
|
7049
|
+
* offers `precision` / `optimization` as variant axes WITHIN a tier — so all
|
|
7050
|
+
* of a family's sizes and quantizations collapse into one grouped picker
|
|
7051
|
+
* instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
|
|
7052
|
+
* (legacy / custom models) — never shown in the grouped selector. The flat
|
|
7053
|
+
* `id` stays the source of truth for resolution/download/persistence; grouping
|
|
7054
|
+
* is a presentation overlay resolved back to an `id`.
|
|
7055
|
+
*/
|
|
7056
|
+
group: ModelVariantGroupSchema.optional()
|
|
6968
7057
|
});
|
|
6969
7058
|
var ConvertTargetSchema = discriminatedUnion("format", [object({
|
|
6970
7059
|
format: literal("openvino"),
|
|
@@ -7025,8 +7114,8 @@ var RecordingModeSchema = _enum([
|
|
|
7025
7114
|
"onAudioThreshold"
|
|
7026
7115
|
]);
|
|
7027
7116
|
/**
|
|
7028
|
-
* First-class, authoritative per-camera storage mode — the
|
|
7029
|
-
* reads directly (never inferred from `rules`):
|
|
7117
|
+
* First-class, authoritative per-camera storage mode — the explicit choice the
|
|
7118
|
+
* UI reads directly (never inferred from `rules`):
|
|
7030
7119
|
* - `off` — not recording.
|
|
7031
7120
|
* - `events` — record only around triggers (motion / audio threshold),
|
|
7032
7121
|
* with pre/post-buffer.
|
|
@@ -9189,26 +9278,13 @@ onBrightnessChanged: { data: object({
|
|
|
9189
9278
|
*/
|
|
9190
9279
|
runtimeState: BrightnessStatusSchema
|
|
9191
9280
|
};
|
|
9281
|
+
/** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
|
|
9192
9282
|
var StreamFormatSchema = _enum([
|
|
9193
9283
|
"webrtc",
|
|
9194
9284
|
"hls",
|
|
9195
9285
|
"mjpeg",
|
|
9196
9286
|
"rtsp"
|
|
9197
9287
|
]);
|
|
9198
|
-
var StreamInfoSchema = object({
|
|
9199
|
-
streamId: string$2(),
|
|
9200
|
-
format: StreamFormatSchema,
|
|
9201
|
-
url: string$2().nullable(),
|
|
9202
|
-
active: boolean()
|
|
9203
|
-
});
|
|
9204
|
-
method(object({
|
|
9205
|
-
streamId: string$2(),
|
|
9206
|
-
sourceUrl: string$2(),
|
|
9207
|
-
codec: string$2().optional()
|
|
9208
|
-
}), _void(), { kind: "mutation" }), method(object({ streamId: string$2() }), _void(), { kind: "mutation" }), method(object({
|
|
9209
|
-
streamId: string$2(),
|
|
9210
|
-
format: StreamFormatSchema
|
|
9211
|
-
}), string$2().nullable()), method(_void(), array(StreamInfoSchema));
|
|
9212
9288
|
var RtspRestreamEntrySchema = object({
|
|
9213
9289
|
brokerId: string$2(),
|
|
9214
9290
|
url: string$2(),
|
|
@@ -10076,37 +10152,7 @@ var consumablesCapability = {
|
|
|
10076
10152
|
scope: "device",
|
|
10077
10153
|
deviceNative: true,
|
|
10078
10154
|
mode: "singleton",
|
|
10079
|
-
deviceTypes:
|
|
10080
|
-
DeviceType.Camera,
|
|
10081
|
-
DeviceType.Hub,
|
|
10082
|
-
DeviceType.Light,
|
|
10083
|
-
DeviceType.Siren,
|
|
10084
|
-
DeviceType.Switch,
|
|
10085
|
-
DeviceType.Sensor,
|
|
10086
|
-
DeviceType.Thermostat,
|
|
10087
|
-
DeviceType.Button,
|
|
10088
|
-
DeviceType.EventEmitter,
|
|
10089
|
-
DeviceType.Update,
|
|
10090
|
-
DeviceType.Generic,
|
|
10091
|
-
DeviceType.Notifier,
|
|
10092
|
-
DeviceType.Script,
|
|
10093
|
-
DeviceType.Automation,
|
|
10094
|
-
DeviceType.Lock,
|
|
10095
|
-
DeviceType.Cover,
|
|
10096
|
-
DeviceType.Valve,
|
|
10097
|
-
DeviceType.Humidifier,
|
|
10098
|
-
DeviceType.WaterHeater,
|
|
10099
|
-
DeviceType.Fan,
|
|
10100
|
-
DeviceType.MediaPlayer,
|
|
10101
|
-
DeviceType.AlarmPanel,
|
|
10102
|
-
DeviceType.Control,
|
|
10103
|
-
DeviceType.Presence,
|
|
10104
|
-
DeviceType.Weather,
|
|
10105
|
-
DeviceType.Vacuum,
|
|
10106
|
-
DeviceType.LawnMower,
|
|
10107
|
-
DeviceType.Container,
|
|
10108
|
-
DeviceType.Image
|
|
10109
|
-
],
|
|
10155
|
+
deviceTypes: Object.values(DeviceType),
|
|
10110
10156
|
deviceConfig: { ui: {
|
|
10111
10157
|
kind: "widget",
|
|
10112
10158
|
widgetId: "host/consumables-panel",
|
|
@@ -11564,7 +11610,7 @@ var BoundingBoxSchema = object({
|
|
|
11564
11610
|
w: number(),
|
|
11565
11611
|
h: number()
|
|
11566
11612
|
});
|
|
11567
|
-
|
|
11613
|
+
object({
|
|
11568
11614
|
class: string$2(),
|
|
11569
11615
|
originalClass: string$2(),
|
|
11570
11616
|
score: number(),
|
|
@@ -11699,7 +11745,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
|
|
|
11699
11745
|
enabled: boolean(),
|
|
11700
11746
|
modelId: string$2(),
|
|
11701
11747
|
children: array(PipelineDefaultStepSchema).readonly(),
|
|
11702
|
-
engine: PipelineEngineChoiceSchema.optional(),
|
|
11703
11748
|
group: string$2().optional(),
|
|
11704
11749
|
settings: record(string$2(), unknown()).optional()
|
|
11705
11750
|
}));
|
|
@@ -11724,7 +11769,9 @@ var PipelineModelOptionSchema = object({
|
|
|
11724
11769
|
formats: record(string$2(), object({
|
|
11725
11770
|
downloaded: boolean(),
|
|
11726
11771
|
sizeMB: number()
|
|
11727
|
-
}))
|
|
11772
|
+
})),
|
|
11773
|
+
group: ModelVariantGroupSchema.optional(),
|
|
11774
|
+
legacy: boolean().optional()
|
|
11728
11775
|
});
|
|
11729
11776
|
var ConfigFieldBridge = custom();
|
|
11730
11777
|
var PipelineAddonSchemaSchema = object({
|
|
@@ -11738,6 +11785,7 @@ var PipelineAddonSchemaSchema = object({
|
|
|
11738
11785
|
defaultModelId: string$2(),
|
|
11739
11786
|
defaultModelIdByFormat: record(string$2(), string$2()).optional(),
|
|
11740
11787
|
enabledByDefault: boolean().optional(),
|
|
11788
|
+
backfillIntoExistingOverrides: boolean().optional(),
|
|
11741
11789
|
defaultConfidence: number(),
|
|
11742
11790
|
group: string$2().optional(),
|
|
11743
11791
|
configSchema: array(ConfigFieldBridge).readonly().optional()
|
|
@@ -11754,11 +11802,6 @@ var PipelineSchemaSchema = object({
|
|
|
11754
11802
|
selectedEngine: PipelineEngineChoiceSchema,
|
|
11755
11803
|
slots: array(PipelineSlotSchemaSchema).readonly()
|
|
11756
11804
|
});
|
|
11757
|
-
var DetectorOutputSchema = object({
|
|
11758
|
-
detections: array(SpatialDetectionSchema).readonly(),
|
|
11759
|
-
inferenceMs: number(),
|
|
11760
|
-
modelId: string$2()
|
|
11761
|
-
});
|
|
11762
11805
|
var EngineProvisioningSchema = object({
|
|
11763
11806
|
runtimeId: _enum([
|
|
11764
11807
|
"onnx",
|
|
@@ -11775,15 +11818,42 @@ var EngineProvisioningSchema = object({
|
|
|
11775
11818
|
]),
|
|
11776
11819
|
progress: number().optional(),
|
|
11777
11820
|
error: string$2().optional(),
|
|
11778
|
-
nextRetryAt: number().optional()
|
|
11821
|
+
nextRetryAt: number().optional(),
|
|
11822
|
+
/**
|
|
11823
|
+
* Gate A (config-correctness gate at engine change): human-readable
|
|
11824
|
+
* config issues surfaced EAGERLY when the node's engine changes — model
|
|
11825
|
+
* substitutions ("chose X, running Y") and zero-build steps ("no model
|
|
11826
|
+
* has a <format> build"). Additive/optional: informational only, never
|
|
11827
|
+
* enforced here — `assertEngineReady` (readiness) still gates inference.
|
|
11828
|
+
* Absent/empty when the node-default tree resolves cleanly.
|
|
11829
|
+
*/
|
|
11830
|
+
configIssues: array(string$2()).optional()
|
|
11779
11831
|
});
|
|
11780
11832
|
var PipelineStepInputSchema = lazy(() => object({
|
|
11781
11833
|
addonId: string$2(),
|
|
11782
|
-
modelId: string$2(),
|
|
11834
|
+
modelId: string$2().optional(),
|
|
11783
11835
|
enabled: boolean().default(true),
|
|
11784
11836
|
children: array(PipelineStepInputSchema).optional(),
|
|
11785
11837
|
settings: record(string$2(), unknown()).optional()
|
|
11786
11838
|
}));
|
|
11839
|
+
var ModelSubstitutionSchema = object({
|
|
11840
|
+
addonId: string$2(),
|
|
11841
|
+
chosen: string$2(),
|
|
11842
|
+
running: string$2(),
|
|
11843
|
+
format: string$2()
|
|
11844
|
+
});
|
|
11845
|
+
var PipelineValidationIssueSchema = object({
|
|
11846
|
+
addonId: string$2(),
|
|
11847
|
+
kind: _enum(["unknown-addon", "no-format-build"]),
|
|
11848
|
+
detail: string$2()
|
|
11849
|
+
});
|
|
11850
|
+
var PipelineValidationResultSchema = object({
|
|
11851
|
+
ok: boolean(),
|
|
11852
|
+
issues: array(PipelineValidationIssueSchema).readonly(),
|
|
11853
|
+
substitutions: array(ModelSubstitutionSchema).readonly(),
|
|
11854
|
+
/** The node's `currentEngine.format` this validation ran against. */
|
|
11855
|
+
format: string$2()
|
|
11856
|
+
});
|
|
11787
11857
|
var ReferenceImageEntrySchema = object({
|
|
11788
11858
|
filename: string$2(),
|
|
11789
11859
|
stepIds: array(string$2()).readonly().optional()
|
|
@@ -11854,7 +11924,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
11854
11924
|
})) }), object({ success: literal(true) }), {
|
|
11855
11925
|
kind: "mutation",
|
|
11856
11926
|
auth: "admin"
|
|
11857
|
-
}), method(
|
|
11927
|
+
}), method(object({ nodeId: string$2() }), object({
|
|
11928
|
+
success: literal(true),
|
|
11929
|
+
clearedDevices: number()
|
|
11930
|
+
}), {
|
|
11931
|
+
kind: "mutation",
|
|
11932
|
+
auth: "admin"
|
|
11933
|
+
}), 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({
|
|
11858
11934
|
name: string$2(),
|
|
11859
11935
|
steps: array(PipelineTemplateStepSchema).readonly(),
|
|
11860
11936
|
engine: PipelineEngineChoiceSchema
|
|
@@ -11871,10 +11947,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
11871
11947
|
modelId: string$2(),
|
|
11872
11948
|
format: ModelFormatSchema$1
|
|
11873
11949
|
}), object({ success: literal(true) }), { kind: "mutation" }), method(object({
|
|
11874
|
-
addonId: string$2(),
|
|
11875
|
-
frame: FrameInputSchema,
|
|
11876
|
-
config: record(string$2(), unknown()).optional()
|
|
11877
|
-
}), DetectorOutputSchema), method(object({
|
|
11878
11950
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
11879
11951
|
steps: array(PipelineStepInputSchema).min(1),
|
|
11880
11952
|
frame: FrameInputSchema.optional(),
|
|
@@ -12053,6 +12125,25 @@ var zonesCapability = {
|
|
|
12053
12125
|
runtimeState: object({ zones: array(ZoneSchema).readonly() })
|
|
12054
12126
|
};
|
|
12055
12127
|
/**
|
|
12128
|
+
* A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
|
|
12129
|
+
* decode worker resolves it against the RETAINED native frame's real pixel dims,
|
|
12130
|
+
* so the caller supplies only the detection-res bbox divided by the detection
|
|
12131
|
+
* dims — no native resolution to plumb.
|
|
12132
|
+
*/
|
|
12133
|
+
var NativeCropBboxSchema = object({
|
|
12134
|
+
x: number(),
|
|
12135
|
+
y: number(),
|
|
12136
|
+
w: number(),
|
|
12137
|
+
h: number()
|
|
12138
|
+
});
|
|
12139
|
+
/** Result of a best-effort native-resolution crop (`getNativeCrop`). */
|
|
12140
|
+
var NativeCropResultSchema = object({
|
|
12141
|
+
/** Packed rgb (24-bit) pixels of the crop. */
|
|
12142
|
+
bytes: _instanceof(Uint8Array),
|
|
12143
|
+
width: number().int().positive(),
|
|
12144
|
+
height: number().int().positive()
|
|
12145
|
+
});
|
|
12146
|
+
/**
|
|
12056
12147
|
* Per-camera tunable ranges + defaults. Single source of truth used
|
|
12057
12148
|
* by both the Zod data schema (validation + default fallback) and
|
|
12058
12149
|
* the device settings UI (slider min/max/step). Touch one place and
|
|
@@ -12147,6 +12238,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
|
|
|
12147
12238
|
kind: literal("remote-restream"),
|
|
12148
12239
|
/** The camera's source-owner node (slice 1: always the hub). */
|
|
12149
12240
|
ownerNodeId: string$2(),
|
|
12241
|
+
/**
|
|
12242
|
+
* The owner's LAN-reachable host, resolved by the orchestrator from the
|
|
12243
|
+
* per-node `reachableHost` override (Cluster UI). When present the runner
|
|
12244
|
+
* dials THIS host for the owner's restream, in preference to the
|
|
12245
|
+
* `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
|
|
12246
|
+
*/
|
|
12247
|
+
ownerReachableHost: string$2().optional(),
|
|
12150
12248
|
/** Operator override for the owner host the runner dials. */
|
|
12151
12249
|
hubHostnameOverride: string$2().optional()
|
|
12152
12250
|
})]).describe("Per-camera frame-source mode for the runner (P2c)");
|
|
@@ -12155,13 +12253,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
|
|
|
12155
12253
|
* specific runner instance via `attachCamera`. Carries everything the
|
|
12156
12254
|
* runner needs to subscribe to the local broker and execute inference.
|
|
12157
12255
|
*
|
|
12158
|
-
* Stateless-pipeline model: the
|
|
12159
|
-
*
|
|
12160
|
-
*
|
|
12161
|
-
*
|
|
12162
|
-
*
|
|
12163
|
-
* `engine`/`steps`/`audio` are optional during the additive migration
|
|
12164
|
-
* window; once orchestrator + UI are migrated they become required.
|
|
12256
|
+
* Stateless-pipeline model: the pipeline content (`steps`, optional
|
|
12257
|
+
* `audio`) travels with the attach payload. The runner keeps it in RAM
|
|
12258
|
+
* for the lifetime of the attach — on rebalance, edit, or restart the
|
|
12259
|
+
* orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
|
|
12260
|
+
* node-local, resolved by the executing runner at dispatch time.
|
|
12165
12261
|
*/
|
|
12166
12262
|
var RunnerCameraConfigSchema = object({
|
|
12167
12263
|
deviceId: number(),
|
|
@@ -12212,14 +12308,11 @@ var RunnerCameraConfigSchema = object({
|
|
|
12212
12308
|
*/
|
|
12213
12309
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
12214
12310
|
pipelineEnabled: boolean().default(true),
|
|
12215
|
-
/** Engine choice for video steps (runtime+backend+format). */
|
|
12216
|
-
engine: PipelineEngineChoiceSchema.optional(),
|
|
12217
12311
|
/** Ordered tree of video steps. Absent → runner skips video detection. */
|
|
12218
12312
|
steps: array(PipelineStepInputSchema).readonly().optional(),
|
|
12219
12313
|
/** Audio classification branch. `enabled:false` disables, null skips. */
|
|
12220
12314
|
audio: object({
|
|
12221
|
-
|
|
12222
|
-
modelId: string$2(),
|
|
12315
|
+
modelId: string$2().optional(),
|
|
12223
12316
|
enabled: boolean()
|
|
12224
12317
|
}).nullable().optional(),
|
|
12225
12318
|
/**
|
|
@@ -12306,7 +12399,11 @@ var RunnerLocalMetricsSchema = object({
|
|
|
12306
12399
|
avgInferenceTimeMs: number(),
|
|
12307
12400
|
queueDepth: number()
|
|
12308
12401
|
});
|
|
12309
|
-
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())
|
|
12402
|
+
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({
|
|
12403
|
+
handle: FrameHandleSchema,
|
|
12404
|
+
bbox: NativeCropBboxSchema,
|
|
12405
|
+
maxWidth: number().int().positive().optional()
|
|
12406
|
+
}), NativeCropResultSchema.nullable());
|
|
12310
12407
|
/**
|
|
12311
12408
|
* Hardware / firmware motion sensor cap — binary detected state plus
|
|
12312
12409
|
* a timestamp of the last observation. Distinct from
|
|
@@ -15237,7 +15334,9 @@ var AddonPageDeclarationSchema$1 = object({
|
|
|
15237
15334
|
icon: string$2(),
|
|
15238
15335
|
path: string$2(),
|
|
15239
15336
|
remoteName: string$2(),
|
|
15240
|
-
bundle: string$2()
|
|
15337
|
+
bundle: string$2(),
|
|
15338
|
+
section: string$2().optional(),
|
|
15339
|
+
sectionLabel: string$2().optional()
|
|
15241
15340
|
});
|
|
15242
15341
|
var AddonPageInfoSchema = object({
|
|
15243
15342
|
addonId: string$2(),
|
|
@@ -15277,7 +15376,18 @@ var AddonPageDeclarationSchema = object({
|
|
|
15277
15376
|
* the static-file route can compute an mtime-based cache-buster URL
|
|
15278
15377
|
* without a separate filesystem stat.
|
|
15279
15378
|
*/
|
|
15280
|
-
bundle: string$2()
|
|
15379
|
+
bundle: string$2(),
|
|
15380
|
+
/**
|
|
15381
|
+
* Sidebar section this page docks into. Well-known ids: `'detection'`,
|
|
15382
|
+
* `'cluster'`, `'administration'` — the page renders inside that group.
|
|
15383
|
+
* Any OTHER string creates (or joins) a custom section rendered after
|
|
15384
|
+
* the built-in groups; its label comes from `sectionLabel` (first
|
|
15385
|
+
* declaration wins), falling back to the id. Absent → the legacy
|
|
15386
|
+
* "Addon Pages" group.
|
|
15387
|
+
*/
|
|
15388
|
+
section: string$2().optional(),
|
|
15389
|
+
/** Display label for a CUSTOM `section` id (ignored for well-known ids). */
|
|
15390
|
+
sectionLabel: string$2().optional()
|
|
15281
15391
|
});
|
|
15282
15392
|
method(_void(), array(AddonPageDeclarationSchema).readonly());
|
|
15283
15393
|
var AddonHttpRouteSchema = object({
|
|
@@ -15493,6 +15603,17 @@ var WidgetMetadataSchema = object({
|
|
|
15493
15603
|
deviceContext: boolean().default(false),
|
|
15494
15604
|
integrationContext: boolean().default(false)
|
|
15495
15605
|
}),
|
|
15606
|
+
/**
|
|
15607
|
+
* Loadable BEFORE authentication. The normal widget registry listing
|
|
15608
|
+
* (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
|
|
15609
|
+
* (the login page) cannot discover a widget through it. A widget that
|
|
15610
|
+
* declares `preAuth: true` marks itself as safe to mount on a pre-auth
|
|
15611
|
+
* screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
|
|
15612
|
+
* login-method contribution channel (see `login-method.cap.ts`) rather
|
|
15613
|
+
* than the authenticated registry, and its bundle is served by the
|
|
15614
|
+
* public `/api/addon-widgets/:addonId/*` static route. Defaults false.
|
|
15615
|
+
*/
|
|
15616
|
+
preAuth: boolean().optional().default(false),
|
|
15496
15617
|
/** Dashboard placement HINTS (operator can override per instance). */
|
|
15497
15618
|
defaultSize: WidgetSizeEnum.default("md"),
|
|
15498
15619
|
allowedSizes: array(WidgetSizeEnum).readonly().default([
|
|
@@ -15794,6 +15915,66 @@ method(object({
|
|
|
15794
15915
|
password: string$2()
|
|
15795
15916
|
}), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string$2() }), string$2()), method(record(string$2(), string$2()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string$2() }), AuthResultSchema.nullable());
|
|
15796
15917
|
/**
|
|
15918
|
+
* `login-method` — collection cap through which auth addons contribute
|
|
15919
|
+
* their pre-auth login surfaces to the login page. This is the SINGLE,
|
|
15920
|
+
* generic mechanism that supersedes the dead `auth.listProviders` reader:
|
|
15921
|
+
* every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
|
|
15922
|
+
* `login-method` provider and the PUBLIC `auth.listLoginMethods`
|
|
15923
|
+
* procedure aggregates them for the unauthenticated login page.
|
|
15924
|
+
*
|
|
15925
|
+
* A contribution is a discriminated union on `kind`:
|
|
15926
|
+
*
|
|
15927
|
+
* - `redirect` — a declarative button. The login page renders a generic
|
|
15928
|
+
* button that navigates to `startUrl` (an addon-owned HTTP route).
|
|
15929
|
+
* Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
|
|
15930
|
+
* ZERO shell-side JS. A future SSO addon plugs in the same way — the
|
|
15931
|
+
* login page needs NO change.
|
|
15932
|
+
*
|
|
15933
|
+
* - `widget` — a Module-Federation widget the login page mounts (via
|
|
15934
|
+
* `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
|
|
15935
|
+
* login ceremony, which must run `@simplewebauthn/browser` INSIDE the
|
|
15936
|
+
* addon bundle. The referenced widget also declares `preAuth: true` in
|
|
15937
|
+
* its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
|
|
15938
|
+
* stamps a public `bundleUrl` from `addonId` + `bundle`.
|
|
15939
|
+
*
|
|
15940
|
+
* Every contribution carries a `stage`:
|
|
15941
|
+
* - `primary` — shown on the first credentials screen (OIDC /
|
|
15942
|
+
* magic-link buttons; a future usernameless passkey).
|
|
15943
|
+
* - `second-factor` — shown AFTER the password leg, gated on the
|
|
15944
|
+
* returned `factors` (passkey-as-2FA today).
|
|
15945
|
+
*
|
|
15946
|
+
* `mount: skip` — the cap is read server-side by the core auth router
|
|
15947
|
+
* (`registry.getCollection('login-method')`), never mounted as its own
|
|
15948
|
+
* tRPC router.
|
|
15949
|
+
*/
|
|
15950
|
+
/** When a login method renders in the two-phase login flow. */
|
|
15951
|
+
var LoginStageEnum = _enum(["primary", "second-factor"]);
|
|
15952
|
+
/** One login-method contribution — redirect button OR pre-auth widget. */
|
|
15953
|
+
var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
|
|
15954
|
+
kind: literal("redirect"),
|
|
15955
|
+
/** Stable id within the login-method set (e.g. `auth-oidc/google`). */
|
|
15956
|
+
id: string$2(),
|
|
15957
|
+
/** Operator-facing button label. */
|
|
15958
|
+
label: string$2(),
|
|
15959
|
+
/** lucide-react icon name. */
|
|
15960
|
+
icon: string$2().optional(),
|
|
15961
|
+
/** Addon-owned HTTP route the button navigates to (GET). */
|
|
15962
|
+
startUrl: string$2(),
|
|
15963
|
+
stage: LoginStageEnum
|
|
15964
|
+
}), object({
|
|
15965
|
+
kind: literal("widget"),
|
|
15966
|
+
/** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
|
|
15967
|
+
id: string$2(),
|
|
15968
|
+
/** Owning addon id — drives the public bundle URL + the MF namespace. */
|
|
15969
|
+
addonId: string$2(),
|
|
15970
|
+
/** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
|
|
15971
|
+
bundle: string$2(),
|
|
15972
|
+
/** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
|
|
15973
|
+
remote: WidgetRemoteSchema,
|
|
15974
|
+
stage: LoginStageEnum
|
|
15975
|
+
})]);
|
|
15976
|
+
method(_void(), array(LoginMethodContributionSchema).readonly());
|
|
15977
|
+
/**
|
|
15797
15978
|
* Orchestrator-side destination metadata. The orchestrator computes
|
|
15798
15979
|
* `id = <addonId>:<subId>` from its provider lookup so consumers
|
|
15799
15980
|
* (admin UI, restore flow) see one canonical key.
|
|
@@ -17963,7 +18144,17 @@ var TrackSchema = object({
|
|
|
17963
18144
|
/** Cumulative normalized distance travelled (0..1 units = full frame width). */
|
|
17964
18145
|
totalDistance: number(),
|
|
17965
18146
|
state: TrackStateSchema,
|
|
17966
|
-
active: boolean()
|
|
18147
|
+
active: boolean(),
|
|
18148
|
+
/** Deterministic key-event importance score in [0,1] (server-computed at
|
|
18149
|
+
* track expiry, recomputed on late label). Absent on legacy rows written
|
|
18150
|
+
* before scoring shipped — consumers degrade to absence / compute-on-read. */
|
|
18151
|
+
importance: number().optional(),
|
|
18152
|
+
/** Id of the track's highest-confidence ObjectEvent (its representative
|
|
18153
|
+
* "best" frame). Absent when the track produced no object events. */
|
|
18154
|
+
bestEventId: string$2().optional(),
|
|
18155
|
+
/** Tag of the importance sub-signal that dominated the score
|
|
18156
|
+
* (identity|dwell|proximity|class|confidence|travel|zone). */
|
|
18157
|
+
importanceReason: string$2().optional()
|
|
17967
18158
|
});
|
|
17968
18159
|
var BaseEventFields = {
|
|
17969
18160
|
id: string$2(),
|
|
@@ -18028,8 +18219,18 @@ var ObjectEventSchema = object({
|
|
|
18028
18219
|
frameHeight: number().optional(),
|
|
18029
18220
|
/** MediaStore key for the crop attached to this event (if any). */
|
|
18030
18221
|
mediaKey: string$2().optional(),
|
|
18222
|
+
/** Design B: MediaStore key of the track's native-resolution key frame (the
|
|
18223
|
+
* best-detection full frame). Resolve via the event-media data-plane
|
|
18224
|
+
* (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
|
|
18225
|
+
* draws `bbox` over the native frame. Absent on legacy rows / non-decoded
|
|
18226
|
+
* sources — consumers fall back to `mediaKey` (the tight crop). */
|
|
18227
|
+
keyFrameMediaKey: string$2().optional(),
|
|
18031
18228
|
/** Populated by B5 (recording playback URL for this event). */
|
|
18032
|
-
mediaUrl: string$2().optional()
|
|
18229
|
+
mediaUrl: string$2().optional(),
|
|
18230
|
+
/** The parent track's key-event importance [0,1], propagated to every object
|
|
18231
|
+
* event of the track (so an event row can be sorted by importance without a
|
|
18232
|
+
* track join). Absent on legacy rows / before the track was scored. */
|
|
18233
|
+
importance: number().optional()
|
|
18033
18234
|
});
|
|
18034
18235
|
var AudioEventSchema = object({
|
|
18035
18236
|
...BaseEventFields,
|
|
@@ -18053,7 +18254,8 @@ var MediaFileKindEnum = _enum([
|
|
|
18053
18254
|
"fullFrame",
|
|
18054
18255
|
"fullFrameBoxed",
|
|
18055
18256
|
"faceCrop",
|
|
18056
|
-
"plateCrop"
|
|
18257
|
+
"plateCrop",
|
|
18258
|
+
"keyFrame"
|
|
18057
18259
|
]);
|
|
18058
18260
|
var MediaFileSchema = object({
|
|
18059
18261
|
key: string$2(),
|
|
@@ -18074,6 +18276,32 @@ var DeviceEventQueryInput = object({
|
|
|
18074
18276
|
projection: _enum(["full", "slim"]).optional()
|
|
18075
18277
|
});
|
|
18076
18278
|
var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string$2().optional() });
|
|
18279
|
+
var KeyEventQueryInput = object({
|
|
18280
|
+
deviceId: number(),
|
|
18281
|
+
/** Window lower bound (track firstSeen ≥ since). */
|
|
18282
|
+
since: number(),
|
|
18283
|
+
/** Window upper bound (track firstSeen ≤ until). */
|
|
18284
|
+
until: number(),
|
|
18285
|
+
limit: number().int().min(1).max(200).default(50),
|
|
18286
|
+
/** Drop tracks scoring below this importance. */
|
|
18287
|
+
minImportance: number().min(0).max(1).optional(),
|
|
18288
|
+
/** Restrict to a single class (e.g. 'person'). */
|
|
18289
|
+
classFilter: string$2().optional()
|
|
18290
|
+
});
|
|
18291
|
+
var KeyEventSchema = object({
|
|
18292
|
+
/** The representative event id (the track's best ObjectEvent, else its trackId). */
|
|
18293
|
+
id: string$2(),
|
|
18294
|
+
trackId: string$2(),
|
|
18295
|
+
/** Track start time (firstSeen). */
|
|
18296
|
+
timestamp: number(),
|
|
18297
|
+
className: string$2(),
|
|
18298
|
+
label: string$2().optional(),
|
|
18299
|
+
importance: number(),
|
|
18300
|
+
/** Highest-confidence ObjectEvent id for the track (empty when none). */
|
|
18301
|
+
bestEventId: string$2(),
|
|
18302
|
+
/** Track lifetime in ms (lastSeen - firstSeen). */
|
|
18303
|
+
windowMs: number().optional()
|
|
18304
|
+
});
|
|
18077
18305
|
var TrackedDetectionSchema = object({
|
|
18078
18306
|
trackId: string$2(),
|
|
18079
18307
|
className: string$2(),
|
|
@@ -18103,7 +18331,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
18103
18331
|
}), array(TrackSchema).readonly()), method(object({ deviceId: number() }), _void(), {
|
|
18104
18332
|
kind: "mutation",
|
|
18105
18333
|
auth: "admin"
|
|
18106
|
-
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({
|
|
18334
|
+
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
|
|
18107
18335
|
deviceId: number(),
|
|
18108
18336
|
since: number(),
|
|
18109
18337
|
until: number(),
|
|
@@ -18148,11 +18376,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
18148
18376
|
timestamp: number()
|
|
18149
18377
|
});
|
|
18150
18378
|
var CameraPipelineConfigSchema = object({
|
|
18151
|
-
engine: PipelineEngineChoiceSchema,
|
|
18379
|
+
engine: PipelineEngineChoiceSchema.optional(),
|
|
18152
18380
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
18153
18381
|
audio: object({
|
|
18154
|
-
engine: PipelineEngineChoiceSchema,
|
|
18155
|
-
modelId: string$2(),
|
|
18382
|
+
engine: PipelineEngineChoiceSchema.optional(),
|
|
18383
|
+
modelId: string$2().optional(),
|
|
18156
18384
|
enabled: boolean(),
|
|
18157
18385
|
settings: record(string$2(), unknown()).readonly().optional()
|
|
18158
18386
|
}).nullable().optional()
|
|
@@ -18167,7 +18395,7 @@ var PipelineTemplateSchema = object({
|
|
|
18167
18395
|
});
|
|
18168
18396
|
var AgentAddonConfigSchema = object({
|
|
18169
18397
|
enabled: boolean(),
|
|
18170
|
-
modelId: string$2(),
|
|
18398
|
+
modelId: string$2().optional(),
|
|
18171
18399
|
settings: record(string$2(), unknown()).readonly()
|
|
18172
18400
|
});
|
|
18173
18401
|
var AgentPipelineSettingsSchema = object({
|
|
@@ -18177,12 +18405,25 @@ var AgentPipelineSettingsSchema = object({
|
|
|
18177
18405
|
detectWeight: number().positive().optional(),
|
|
18178
18406
|
/** Node is eligible to run the detection pipeline (decode + inference). */
|
|
18179
18407
|
detect: boolean().optional(),
|
|
18180
|
-
/**
|
|
18408
|
+
/**
|
|
18409
|
+
* DEPRECATED AND IGNORED. Decode is always co-located with its frame
|
|
18410
|
+
* consumer, so decode eligibility IS detect eligibility. Kept optional in
|
|
18411
|
+
* the schema ONLY so persisted stores written before the removal still
|
|
18412
|
+
* parse — no code reads it and no write path emits it.
|
|
18413
|
+
*/
|
|
18181
18414
|
decode: boolean().optional(),
|
|
18182
18415
|
/** Node is eligible to run audio-analyzer sessions. */
|
|
18183
18416
|
audio: boolean().optional(),
|
|
18184
18417
|
/** Node is eligible to be the ingest / source-owner (serve the restream). */
|
|
18185
|
-
ingest: boolean().optional()
|
|
18418
|
+
ingest: boolean().optional(),
|
|
18419
|
+
/**
|
|
18420
|
+
* Operator override for the LAN host a cross-node decoder dials to reach
|
|
18421
|
+
* THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
|
|
18422
|
+
* falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
|
|
18423
|
+
* it already uses to reach the hub). Set this only when the auto-detected
|
|
18424
|
+
* address is wrong (multi-homed host, NAT, custom interface).
|
|
18425
|
+
*/
|
|
18426
|
+
reachableHost: string$2().optional()
|
|
18186
18427
|
});
|
|
18187
18428
|
var CameraPipelineForAgentSchema = object({
|
|
18188
18429
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -18230,25 +18471,6 @@ var PipelineAssignmentSchema = object({
|
|
|
18230
18471
|
assignedAt: number()
|
|
18231
18472
|
});
|
|
18232
18473
|
/**
|
|
18233
|
-
* Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
|
|
18234
|
-
* the decoder-node placement domain (`balanceDecoder` decision: manual pin
|
|
18235
|
-
* → co-located with pipeline → capacity).
|
|
18236
|
-
*/
|
|
18237
|
-
var DecoderAssignmentSchema = object({
|
|
18238
|
-
deviceId: number(),
|
|
18239
|
-
/** Moleculer node id of the decoder provider currently responsible for this camera. */
|
|
18240
|
-
decoderNodeId: string$2(),
|
|
18241
|
-
/** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
|
|
18242
|
-
pinned: boolean(),
|
|
18243
|
-
/** Why this assignment was made — useful for debugging the decoder balancer. */
|
|
18244
|
-
reason: _enum([
|
|
18245
|
-
"manual",
|
|
18246
|
-
"co-located",
|
|
18247
|
-
"capacity",
|
|
18248
|
-
"hardware-affinity"
|
|
18249
|
-
])
|
|
18250
|
-
});
|
|
18251
|
-
/**
|
|
18252
18474
|
* Per-agent load summary surfaced to the load balancer + dashboards.
|
|
18253
18475
|
* Aggregated from each runner's `getLocalLoad` cap call.
|
|
18254
18476
|
*/
|
|
@@ -18288,6 +18510,15 @@ var GlobalMetricsSchema = object({
|
|
|
18288
18510
|
* capability providers.
|
|
18289
18511
|
*/
|
|
18290
18512
|
var CapabilityBindingsSchema = record(string$2(), string$2());
|
|
18513
|
+
/**
|
|
18514
|
+
* The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
|
|
18515
|
+
* its LAN-reachable host, if one is registered. See `getIngestOwner`.
|
|
18516
|
+
*/
|
|
18517
|
+
var IngestOwnerSchema = object({
|
|
18518
|
+
ownerNodeId: string$2(),
|
|
18519
|
+
reachableHost: string$2().optional(),
|
|
18520
|
+
configIssue: string$2().optional()
|
|
18521
|
+
});
|
|
18291
18522
|
/** Source block — always present; derives from the stream catalog. */
|
|
18292
18523
|
var CameraSourceStatusSchema = object({ streams: array(object({
|
|
18293
18524
|
camStreamId: string$2(),
|
|
@@ -18302,6 +18533,14 @@ var CameraAssignmentStatusSchema = object({
|
|
|
18302
18533
|
detectionNodeId: string$2().nullable(),
|
|
18303
18534
|
decoderNodeId: string$2().nullable(),
|
|
18304
18535
|
audioNodeId: string$2().nullable(),
|
|
18536
|
+
/**
|
|
18537
|
+
* The node that OWNS this camera's physical source pull (dials the RTSP and
|
|
18538
|
+
* hosts the broker/restream) — the cluster ingest owner today
|
|
18539
|
+
* (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
|
|
18540
|
+
* the UI show WHERE a camera is sourced without SSH/logs, and is the node the
|
|
18541
|
+
* broker block below was read from (pinned). Nullable only pre-wiring.
|
|
18542
|
+
*/
|
|
18543
|
+
sourceNodeId: string$2().nullable(),
|
|
18305
18544
|
pinned: object({
|
|
18306
18545
|
detection: boolean(),
|
|
18307
18546
|
decoder: boolean(),
|
|
@@ -18434,16 +18673,7 @@ method(object({
|
|
|
18434
18673
|
}), object({ success: literal(true) }), {
|
|
18435
18674
|
kind: "mutation",
|
|
18436
18675
|
auth: "admin"
|
|
18437
|
-
}), method(object({
|
|
18438
|
-
deviceId: number(),
|
|
18439
|
-
nodeId: string$2()
|
|
18440
|
-
}), _void(), {
|
|
18441
|
-
kind: "mutation",
|
|
18442
|
-
auth: "admin"
|
|
18443
|
-
}), method(object({ deviceId: number() }), _void(), {
|
|
18444
|
-
kind: "mutation",
|
|
18445
|
-
auth: "admin"
|
|
18446
|
-
}), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
|
|
18676
|
+
}), method(_void(), IngestOwnerSchema), method(object({
|
|
18447
18677
|
deviceId: number(),
|
|
18448
18678
|
nodeId: string$2()
|
|
18449
18679
|
}), object({ success: literal(true) }), {
|
|
@@ -18464,10 +18694,7 @@ method(object({
|
|
|
18464
18694
|
nodeId: string$2(),
|
|
18465
18695
|
pinned: boolean(),
|
|
18466
18696
|
assignedAt: number()
|
|
18467
|
-
}))), method(object({
|
|
18468
|
-
deviceId: number(),
|
|
18469
|
-
pipelineNodeId: string$2().optional()
|
|
18470
|
-
}), DecoderAssignmentSchema), method(object({ agentNodeId: string$2() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
|
|
18697
|
+
}))), method(object({ agentNodeId: string$2() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
|
|
18471
18698
|
nodeId: string$2(),
|
|
18472
18699
|
settings: AgentPipelineSettingsSchema
|
|
18473
18700
|
})).readonly()), method(object({
|
|
@@ -18497,12 +18724,26 @@ method(object({
|
|
|
18497
18724
|
}), method(object({
|
|
18498
18725
|
agentNodeId: string$2(),
|
|
18499
18726
|
detect: boolean().nullable().optional(),
|
|
18500
|
-
decode: boolean().nullable().optional(),
|
|
18501
18727
|
audio: boolean().nullable().optional(),
|
|
18502
18728
|
ingest: boolean().nullable().optional()
|
|
18503
18729
|
}), object({ success: literal(true) }), {
|
|
18504
18730
|
kind: "mutation",
|
|
18505
18731
|
auth: "admin"
|
|
18732
|
+
}), method(object({
|
|
18733
|
+
agentNodeId: string$2(),
|
|
18734
|
+
reachableHost: string$2().nullable()
|
|
18735
|
+
}), object({ success: literal(true) }), {
|
|
18736
|
+
kind: "mutation",
|
|
18737
|
+
auth: "admin"
|
|
18738
|
+
}), method(object({ agentNodeId: string$2() }), object({
|
|
18739
|
+
success: literal(true),
|
|
18740
|
+
/** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
|
|
18741
|
+
effectiveModelId: string$2().nullable(),
|
|
18742
|
+
/** Number of cameras whose node-scoped overrides were cleared. */
|
|
18743
|
+
clearedCameraOverrides: number()
|
|
18744
|
+
}), {
|
|
18745
|
+
kind: "mutation",
|
|
18746
|
+
auth: "admin"
|
|
18506
18747
|
}), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
|
|
18507
18748
|
deviceId: number(),
|
|
18508
18749
|
addonId: string$2(),
|
|
@@ -18547,22 +18788,131 @@ method(object({
|
|
|
18547
18788
|
kind: "mutation",
|
|
18548
18789
|
auth: "admin"
|
|
18549
18790
|
});
|
|
18550
|
-
|
|
18551
|
-
|
|
18552
|
-
|
|
18553
|
-
|
|
18554
|
-
|
|
18555
|
-
|
|
18791
|
+
/**
|
|
18792
|
+
* server-management — per-NODE singleton capability for a node's ROOT
|
|
18793
|
+
* package lifecycle (runtime-updatable node packages, phase 2: hub + docker
|
|
18794
|
+
* agents).
|
|
18795
|
+
*
|
|
18796
|
+
* Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
|
|
18797
|
+
* on agents) carries the whole software stack in its npm dep tree, so ONE
|
|
18798
|
+
* version describes the node. Updates install into
|
|
18799
|
+
* `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
|
|
18800
|
+
* starter (probation boot + auto-rollback to N-1).
|
|
18801
|
+
*
|
|
18802
|
+
* Providers:
|
|
18803
|
+
* - HUB: `ServerUpdateService` behind the `server-provided` mount
|
|
18804
|
+
* (`buildServerProviders` in trpc.router.ts) — the default target for
|
|
18805
|
+
* unpinned calls.
|
|
18806
|
+
* - AGENT: `AgentUpdateService` registered by the agent bootstrap under
|
|
18807
|
+
* the synthetic `agent-runtime` addonId and declared in the agent's
|
|
18808
|
+
* `$hub.registerNode` manifest.
|
|
18809
|
+
*
|
|
18810
|
+
* Node routing: singleton caps get the codegen/runtime-builder `nodeId`
|
|
18811
|
+
* injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
|
|
18812
|
+
* SDK) routes the call to that node's provider via the standard remote
|
|
18813
|
+
* proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
|
|
18814
|
+
* in-process provider lookup). No `nodeId` → the hub's own provider.
|
|
18815
|
+
*
|
|
18816
|
+
* Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
|
|
18817
|
+
*/
|
|
18818
|
+
/**
|
|
18819
|
+
* Where the running hub's code was loaded from:
|
|
18820
|
+
* - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
|
|
18821
|
+
* plain resolution and runtime updates are refused.
|
|
18822
|
+
* - `baked` — the immutable image seed closure (no data-dir root active).
|
|
18823
|
+
* - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
|
|
18824
|
+
*/
|
|
18825
|
+
var ServerBootModeSchema = _enum([
|
|
18826
|
+
"workspace",
|
|
18827
|
+
"baked",
|
|
18828
|
+
"data-root"
|
|
18829
|
+
]);
|
|
18830
|
+
/**
|
|
18831
|
+
* Update lifecycle state:
|
|
18832
|
+
* - `idle` / `checking` / `staging` — steady / in-flight registry work.
|
|
18833
|
+
* - `pending-restart` — a version is staged and the node has NOT yet
|
|
18834
|
+
* restarted onto it (still running the OLD version).
|
|
18835
|
+
* - `awaiting-confirmation` — the node HAS restarted onto the staged version
|
|
18836
|
+
* (it is the active probation boot) and is waiting to confirm boot-health.
|
|
18837
|
+
* Apply/rollback are refused in this state and the node must NOT be
|
|
18838
|
+
* manually restarted, or the probation boot auto-rolls-back.
|
|
18839
|
+
*/
|
|
18840
|
+
var ServerUpdateStateSchema = _enum([
|
|
18841
|
+
"idle",
|
|
18842
|
+
"checking",
|
|
18843
|
+
"staging",
|
|
18844
|
+
"pending-restart",
|
|
18845
|
+
"awaiting-confirmation"
|
|
18846
|
+
]);
|
|
18847
|
+
var ServerRollbackInfoSchema = object({
|
|
18848
|
+
/** The version that failed (or was manually rolled back). */
|
|
18849
|
+
fromVersion: string$2(),
|
|
18850
|
+
/** The version rolled back to; null = the baked seed. */
|
|
18851
|
+
toVersion: string$2().nullable(),
|
|
18852
|
+
atMs: number(),
|
|
18853
|
+
reason: string$2()
|
|
18556
18854
|
});
|
|
18557
|
-
var
|
|
18558
|
-
|
|
18559
|
-
|
|
18560
|
-
|
|
18855
|
+
var ServerPackageStatusSchema = object({
|
|
18856
|
+
/** Root package name (`@camstack/server` on the hub). */
|
|
18857
|
+
packageName: string$2(),
|
|
18858
|
+
/** Version of the code the running process ACTUALLY loaded. */
|
|
18859
|
+
runningVersion: string$2().nullable(),
|
|
18860
|
+
/** Node.js runtime version the node's process runs on (`process.versions.node`). */
|
|
18861
|
+
nodeRuntimeVersion: string$2().nullable(),
|
|
18862
|
+
/** Active data-dir root version; null when booted from seed/workspace. */
|
|
18863
|
+
activeVersion: string$2().nullable(),
|
|
18864
|
+
/** N-1 version kept for rollback; null when no previous version exists. */
|
|
18865
|
+
previousVersion: string$2().nullable(),
|
|
18866
|
+
/** Version of the immutable baked seed closure (image fallback). */
|
|
18867
|
+
seedVersion: string$2().nullable(),
|
|
18868
|
+
/** Latest registry version from the most recent check (null = never checked). */
|
|
18869
|
+
latestVersion: string$2().nullable(),
|
|
18870
|
+
updateAvailable: boolean(),
|
|
18871
|
+
bootMode: ServerBootModeSchema,
|
|
18872
|
+
updateState: ServerUpdateStateSchema,
|
|
18873
|
+
/** Version staged + awaiting its probation boot, when one is pending. */
|
|
18874
|
+
pendingVersion: string$2().nullable(),
|
|
18875
|
+
/** Set when the last freshly-activated version failed its boot health-check. */
|
|
18876
|
+
rolledBack: ServerRollbackInfoSchema.nullable(),
|
|
18877
|
+
/**
|
|
18878
|
+
* True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
|
|
18879
|
+
* hub is running from the baked seed (or workspace) while installed data-dir
|
|
18880
|
+
* versions are being IGNORED. Surfaced as a warning in the UI.
|
|
18881
|
+
*/
|
|
18882
|
+
stateFileCorrupt: boolean(),
|
|
18883
|
+
lastCheckedAtMs: number().nullable()
|
|
18884
|
+
});
|
|
18885
|
+
var ServerUpdateCheckResultSchema = object({
|
|
18886
|
+
packageName: string$2(),
|
|
18887
|
+
runningVersion: string$2().nullable(),
|
|
18888
|
+
latestVersion: string$2().nullable(),
|
|
18889
|
+
updateAvailable: boolean(),
|
|
18890
|
+
checkedAtMs: number(),
|
|
18891
|
+
/** Non-null when the registry lookup failed (offline, bad registry, …). */
|
|
18892
|
+
error: string$2().nullable()
|
|
18893
|
+
});
|
|
18894
|
+
var ServerUpdateActionResultSchema = object({
|
|
18895
|
+
accepted: boolean(),
|
|
18896
|
+
targetVersion: string$2().nullable(),
|
|
18897
|
+
/** True when a graceful restart was scheduled to apply the change. */
|
|
18898
|
+
restarting: boolean(),
|
|
18899
|
+
message: string$2()
|
|
18900
|
+
});
|
|
18901
|
+
method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
|
|
18902
|
+
kind: "mutation",
|
|
18903
|
+
auth: "admin"
|
|
18904
|
+
}), method(object({
|
|
18905
|
+
/** Explicit target version; omitted = latest from the registry. */
|
|
18906
|
+
version: string$2().optional() }), ServerUpdateActionResultSchema, {
|
|
18907
|
+
kind: "mutation",
|
|
18908
|
+
auth: "admin"
|
|
18909
|
+
}), method(_void(), ServerUpdateActionResultSchema, {
|
|
18910
|
+
kind: "mutation",
|
|
18911
|
+
auth: "admin"
|
|
18912
|
+
}), method(_void(), ServerUpdateActionResultSchema, {
|
|
18913
|
+
kind: "mutation",
|
|
18914
|
+
auth: "admin"
|
|
18561
18915
|
});
|
|
18562
|
-
method(object({
|
|
18563
|
-
deviceId: number(),
|
|
18564
|
-
streams: array(RegisteredStreamSchema).readonly()
|
|
18565
|
-
}), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(ExposedResourceSchema).readonly());
|
|
18566
18916
|
/**
|
|
18567
18917
|
* Query filter for settings-store collections.
|
|
18568
18918
|
*/
|
|
@@ -18715,9 +19065,9 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
|
|
|
18715
19065
|
/**
|
|
18716
19066
|
* A single device snapshot returned as base64 JPEG/PNG.
|
|
18717
19067
|
*
|
|
18718
|
-
*
|
|
18719
|
-
*
|
|
18720
|
-
*
|
|
19068
|
+
* The `SnapshotAddon` wrapper returns this shape whether the frame came from
|
|
19069
|
+
* the device-native provider (onboard capture) or from the stream-broker
|
|
19070
|
+
* prebuffer fallback.
|
|
18721
19071
|
*/
|
|
18722
19072
|
var SnapshotImageSchema = object({
|
|
18723
19073
|
base64: string$2(),
|
|
@@ -18748,11 +19098,12 @@ DeviceType.Camera, method(object({
|
|
|
18748
19098
|
}), SnapshotImageSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
18749
19099
|
kind: "mutation",
|
|
18750
19100
|
auth: "admin"
|
|
18751
|
-
})
|
|
18752
|
-
method(object({ deviceId: number() }), boolean()), method(object({
|
|
19101
|
+
}), systemMethod(object({ deviceIds: array(number()).min(1).max(200) }), array(object({
|
|
18753
19102
|
deviceId: number(),
|
|
18754
|
-
|
|
18755
|
-
|
|
19103
|
+
lastCapturedAt: number().nullable(),
|
|
19104
|
+
cacheAgeMs: number().nullable(),
|
|
19105
|
+
etag: string$2().nullable()
|
|
19106
|
+
})));
|
|
18756
19107
|
/**
|
|
18757
19108
|
* `sso-bridge` — internal hub-only cap that lets SSO-style auth
|
|
18758
19109
|
* providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
|
|
@@ -19003,10 +19354,32 @@ method(_void(), array(TurnServerSchema).readonly());
|
|
|
19003
19354
|
* b. `finishAuthentication({userId, response})` → server verifies
|
|
19004
19355
|
* the assertion, bumps the credential counter, returns ok.
|
|
19005
19356
|
*
|
|
19357
|
+
* 2b. Usernameless (discoverable-credential) authentication — the
|
|
19358
|
+
* passkey IS the primary factor, no password leg:
|
|
19359
|
+
* a. `beginDiscoverableAuthentication({})` → assertion options with
|
|
19360
|
+
* EMPTY `allowCredentials` (the browser offers every resident
|
|
19361
|
+
* passkey it holds for this RP) + `userVerification: 'required'`
|
|
19362
|
+
* (the passkey replaces both factors, so UV is mandatory).
|
|
19363
|
+
* The challenge is stored server-side, NOT bound to any user.
|
|
19364
|
+
* b. `finishDiscoverableAuthentication({response})` → the provider
|
|
19365
|
+
* resolves the credential by the response's credential id,
|
|
19366
|
+
* verifies the assertion against the stored challenge + that
|
|
19367
|
+
* credential's public key/counter, and returns the OWNING
|
|
19368
|
+
* `userId` — the caller (core auth router) mints the session.
|
|
19369
|
+
*
|
|
19006
19370
|
* 3. Management:
|
|
19007
19371
|
* - `listPasskeys({userId})` — enumerate user's enrolled credentials.
|
|
19008
19372
|
* - `removePasskey({userId, credentialId})` — revoke one credential.
|
|
19009
19373
|
*
|
|
19374
|
+
* 4. Second-factor preference (opt-in, default OFF):
|
|
19375
|
+
* Enrolling a passkey only enables passkey-FIRST sign-in. It is
|
|
19376
|
+
* demanded as a second factor after a password login ONLY when the
|
|
19377
|
+
* user explicitly opts in via `setSecondFactorPreference`.
|
|
19378
|
+
* - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
|
|
19379
|
+
* row ⇒ `enabled: false`).
|
|
19380
|
+
* - `setSecondFactorPreference({userId, enabled})` — persisted by
|
|
19381
|
+
* the providing addon beside its credentials.
|
|
19382
|
+
*
|
|
19010
19383
|
* Challenges are short-lived (5 min, in-memory). The cap is internal —
|
|
19011
19384
|
* the admin-ui composes the begin/finish round-trip and never exposes
|
|
19012
19385
|
* the cap to non-admins.
|
|
@@ -19049,6 +19422,17 @@ method(object({
|
|
|
19049
19422
|
}), object({ verified: boolean() }), {
|
|
19050
19423
|
kind: "mutation",
|
|
19051
19424
|
access: "view"
|
|
19425
|
+
}), method(object({}), object({ optionsJSON: record(string$2(), unknown()) }), {
|
|
19426
|
+
kind: "mutation",
|
|
19427
|
+
access: "view"
|
|
19428
|
+
}), method(object({
|
|
19429
|
+
/** AuthenticationResponseJSON from the browser. */
|
|
19430
|
+
response: record(string$2(), unknown()) }), object({
|
|
19431
|
+
verified: boolean(),
|
|
19432
|
+
userId: string$2().nullable()
|
|
19433
|
+
}), {
|
|
19434
|
+
kind: "mutation",
|
|
19435
|
+
access: "view"
|
|
19052
19436
|
}), method(object({ userId: string$2() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
|
|
19053
19437
|
userId: string$2(),
|
|
19054
19438
|
credentialId: string$2()
|
|
@@ -19056,6 +19440,13 @@ method(object({
|
|
|
19056
19440
|
kind: "mutation",
|
|
19057
19441
|
auth: "admin",
|
|
19058
19442
|
access: "delete"
|
|
19443
|
+
}), method(object({ userId: string$2() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
|
|
19444
|
+
userId: string$2(),
|
|
19445
|
+
enabled: boolean()
|
|
19446
|
+
}), object({ success: literal(true) }), {
|
|
19447
|
+
kind: "mutation",
|
|
19448
|
+
auth: "admin",
|
|
19449
|
+
access: "create"
|
|
19059
19450
|
});
|
|
19060
19451
|
/**
|
|
19061
19452
|
* `videoclips` — the unified, navigable-clip surface for a camera.
|
|
@@ -19113,9 +19504,10 @@ method(object({
|
|
|
19113
19504
|
auth: "admin"
|
|
19114
19505
|
});
|
|
19115
19506
|
/**
|
|
19116
|
-
* Optional client-side hints sent at session creation to help the
|
|
19117
|
-
*
|
|
19118
|
-
*
|
|
19507
|
+
* Optional client-side hints sent at session creation to help the provider
|
|
19508
|
+
* pick the best native source. All fields optional — a viewer that knows
|
|
19509
|
+
* nothing still gets a sane default. (Relocated from the retired `webrtc`
|
|
19510
|
+
* collection cap; this `webrtc-session` cap is the live signaling surface.)
|
|
19119
19511
|
*/
|
|
19120
19512
|
var webrtcClientHintsSchema = object({
|
|
19121
19513
|
viewportWidth: number().int().positive().optional(),
|
|
@@ -19126,22 +19518,6 @@ var webrtcClientHintsSchema = object({
|
|
|
19126
19518
|
/** Hard tier override; takes precedence over scoring when registered. */
|
|
19127
19519
|
prefersTier: string$2().optional()
|
|
19128
19520
|
}).partial();
|
|
19129
|
-
method(object({
|
|
19130
|
-
streamId: string$2(),
|
|
19131
|
-
sdpOffer: string$2()
|
|
19132
|
-
}), string$2(), { kind: "mutation" }), method(object({ streamId: string$2() }), boolean()), method(object({
|
|
19133
|
-
streamId: string$2(),
|
|
19134
|
-
codec: string$2()
|
|
19135
|
-
}), _void(), { kind: "mutation" }), method(object({ streamId: string$2() }), _void(), { kind: "mutation" }), method(object({
|
|
19136
|
-
streamId: string$2(),
|
|
19137
|
-
hints: webrtcClientHintsSchema.optional()
|
|
19138
|
-
}), object({
|
|
19139
|
-
sessionId: string$2(),
|
|
19140
|
-
sdpOffer: string$2()
|
|
19141
|
-
}), { kind: "mutation" }), method(object({
|
|
19142
|
-
sessionId: string$2(),
|
|
19143
|
-
sdpAnswer: string$2()
|
|
19144
|
-
}), _void(), { kind: "mutation" }), method(object({ sessionId: string$2() }), _void(), { kind: "mutation" }), method(object({ streamId: string$2() }), boolean());
|
|
19145
19521
|
/**
|
|
19146
19522
|
* Discriminated target for a WebRTC session. The client sends this
|
|
19147
19523
|
* structured object instead of building / parsing brokerId strings;
|
|
@@ -19889,7 +20265,17 @@ var FaceInfoSchema = object({
|
|
|
19889
20265
|
recognizedIdentityId: string$2().optional(),
|
|
19890
20266
|
identityName: string$2().optional(),
|
|
19891
20267
|
assigned: boolean(),
|
|
19892
|
-
base64: string$2().optional()
|
|
20268
|
+
base64: string$2().optional(),
|
|
20269
|
+
/** Design B: the face bbox (pixel space) on the key frame — lets a detail
|
|
20270
|
+
* view draw the box over the native `keyFrameMediaKey` frame. Absent on
|
|
20271
|
+
* legacy rows written before design B. */
|
|
20272
|
+
faceBbox: BoundingBoxSchema.optional(),
|
|
20273
|
+
/** Design B: MediaStore key of the track's native-resolution key frame.
|
|
20274
|
+
* Fetch the native JPEG via the event-media data-plane
|
|
20275
|
+
* (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
|
|
20276
|
+
* track produced no key frame (e.g. native/onboard source) — the UI falls
|
|
20277
|
+
* back to the inline `base64` face crop. */
|
|
20278
|
+
keyFrameMediaKey: string$2().optional()
|
|
19893
20279
|
});
|
|
19894
20280
|
var FaceFilterEnum = _enum([
|
|
19895
20281
|
"unassigned",
|
|
@@ -20586,6 +20972,16 @@ var TopologyCategorySchema = object({
|
|
|
20586
20972
|
healthy: number(),
|
|
20587
20973
|
addons: array(TopologyCategoryAddonSchema).readonly()
|
|
20588
20974
|
});
|
|
20975
|
+
/**
|
|
20976
|
+
* The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
|
|
20977
|
+
* `@camstack/agent` on agents) as reported by its `registerNode` manifest —
|
|
20978
|
+
* version visibility for the Server management surface. Nullable: offline
|
|
20979
|
+
* rows and pre-phase-2 nodes report none.
|
|
20980
|
+
*/
|
|
20981
|
+
var TopologyRootPackageSchema = object({
|
|
20982
|
+
name: string$2(),
|
|
20983
|
+
version: string$2()
|
|
20984
|
+
});
|
|
20589
20985
|
var TopologyNodeSchema = object({
|
|
20590
20986
|
id: string$2(),
|
|
20591
20987
|
name: string$2(),
|
|
@@ -20609,7 +21005,8 @@ var TopologyNodeSchema = object({
|
|
|
20609
21005
|
status: string$2()
|
|
20610
21006
|
})).readonly(),
|
|
20611
21007
|
processes: array(TopologyProcessSchema).readonly(),
|
|
20612
|
-
categories: array(TopologyCategorySchema).readonly()
|
|
21008
|
+
categories: array(TopologyCategorySchema).readonly(),
|
|
21009
|
+
rootPackage: TopologyRootPackageSchema.nullable()
|
|
20613
21010
|
});
|
|
20614
21011
|
var CapUsageEdgeSchema = object({
|
|
20615
21012
|
callerAddonId: string$2(),
|
|
@@ -23409,6 +23806,12 @@ Object.freeze({
|
|
|
23409
23806
|
addonId: null,
|
|
23410
23807
|
access: "create"
|
|
23411
23808
|
},
|
|
23809
|
+
"loginMethod.getLoginMethods": {
|
|
23810
|
+
capName: "login-method",
|
|
23811
|
+
capScope: "system",
|
|
23812
|
+
addonId: null,
|
|
23813
|
+
access: "view"
|
|
23814
|
+
},
|
|
23412
23815
|
"mediaPlayer.next": {
|
|
23413
23816
|
capName: "media-player",
|
|
23414
23817
|
capScope: "device",
|
|
@@ -23991,6 +24394,12 @@ Object.freeze({
|
|
|
23991
24394
|
addonId: null,
|
|
23992
24395
|
access: "view"
|
|
23993
24396
|
},
|
|
24397
|
+
"pipelineAnalytics.getKeyEvents": {
|
|
24398
|
+
capName: "pipeline-analytics",
|
|
24399
|
+
capScope: "device",
|
|
24400
|
+
addonId: null,
|
|
24401
|
+
access: "view"
|
|
24402
|
+
},
|
|
23994
24403
|
"pipelineAnalytics.getMotionEvents": {
|
|
23995
24404
|
capName: "pipeline-analytics",
|
|
23996
24405
|
capScope: "device",
|
|
@@ -24039,23 +24448,23 @@ Object.freeze({
|
|
|
24039
24448
|
addonId: null,
|
|
24040
24449
|
access: "create"
|
|
24041
24450
|
},
|
|
24042
|
-
"pipelineExecutor.
|
|
24451
|
+
"pipelineExecutor.clearDeviceOverrides": {
|
|
24043
24452
|
capName: "pipeline-executor",
|
|
24044
24453
|
capScope: "system",
|
|
24045
24454
|
addonId: null,
|
|
24046
24455
|
access: "delete"
|
|
24047
24456
|
},
|
|
24048
|
-
"pipelineExecutor.
|
|
24457
|
+
"pipelineExecutor.deleteModel": {
|
|
24049
24458
|
capName: "pipeline-executor",
|
|
24050
24459
|
capScope: "system",
|
|
24051
24460
|
addonId: null,
|
|
24052
24461
|
access: "delete"
|
|
24053
24462
|
},
|
|
24054
|
-
"pipelineExecutor.
|
|
24463
|
+
"pipelineExecutor.deleteTemplate": {
|
|
24055
24464
|
capName: "pipeline-executor",
|
|
24056
24465
|
capScope: "system",
|
|
24057
24466
|
addonId: null,
|
|
24058
|
-
access: "
|
|
24467
|
+
access: "delete"
|
|
24059
24468
|
},
|
|
24060
24469
|
"pipelineExecutor.downloadModel": {
|
|
24061
24470
|
capName: "pipeline-executor",
|
|
@@ -24249,13 +24658,13 @@ Object.freeze({
|
|
|
24249
24658
|
addonId: null,
|
|
24250
24659
|
access: "create"
|
|
24251
24660
|
},
|
|
24252
|
-
"
|
|
24253
|
-
capName: "pipeline-
|
|
24661
|
+
"pipelineExecutor.validatePipeline": {
|
|
24662
|
+
capName: "pipeline-executor",
|
|
24254
24663
|
capScope: "system",
|
|
24255
24664
|
addonId: null,
|
|
24256
|
-
access: "
|
|
24665
|
+
access: "view"
|
|
24257
24666
|
},
|
|
24258
|
-
"pipelineOrchestrator.
|
|
24667
|
+
"pipelineOrchestrator.assignAudio": {
|
|
24259
24668
|
capName: "pipeline-orchestrator",
|
|
24260
24669
|
capScope: "system",
|
|
24261
24670
|
addonId: null,
|
|
@@ -24339,19 +24748,13 @@ Object.freeze({
|
|
|
24339
24748
|
addonId: null,
|
|
24340
24749
|
access: "view"
|
|
24341
24750
|
},
|
|
24342
|
-
"pipelineOrchestrator.
|
|
24343
|
-
capName: "pipeline-orchestrator",
|
|
24344
|
-
capScope: "system",
|
|
24345
|
-
addonId: null,
|
|
24346
|
-
access: "view"
|
|
24347
|
-
},
|
|
24348
|
-
"pipelineOrchestrator.getDecoderAssignments": {
|
|
24751
|
+
"pipelineOrchestrator.getGlobalMetrics": {
|
|
24349
24752
|
capName: "pipeline-orchestrator",
|
|
24350
24753
|
capScope: "system",
|
|
24351
24754
|
addonId: null,
|
|
24352
24755
|
access: "view"
|
|
24353
24756
|
},
|
|
24354
|
-
"pipelineOrchestrator.
|
|
24757
|
+
"pipelineOrchestrator.getIngestOwner": {
|
|
24355
24758
|
capName: "pipeline-orchestrator",
|
|
24356
24759
|
capScope: "system",
|
|
24357
24760
|
addonId: null,
|
|
@@ -24393,6 +24796,12 @@ Object.freeze({
|
|
|
24393
24796
|
addonId: null,
|
|
24394
24797
|
access: "delete"
|
|
24395
24798
|
},
|
|
24799
|
+
"pipelineOrchestrator.resetNodePipelineDefaults": {
|
|
24800
|
+
capName: "pipeline-orchestrator",
|
|
24801
|
+
capScope: "system",
|
|
24802
|
+
addonId: null,
|
|
24803
|
+
access: "delete"
|
|
24804
|
+
},
|
|
24396
24805
|
"pipelineOrchestrator.resolvePipeline": {
|
|
24397
24806
|
capName: "pipeline-orchestrator",
|
|
24398
24807
|
capScope: "system",
|
|
@@ -24429,37 +24838,37 @@ Object.freeze({
|
|
|
24429
24838
|
addonId: null,
|
|
24430
24839
|
access: "create"
|
|
24431
24840
|
},
|
|
24432
|
-
"pipelineOrchestrator.
|
|
24841
|
+
"pipelineOrchestrator.setAgentReachableHost": {
|
|
24433
24842
|
capName: "pipeline-orchestrator",
|
|
24434
24843
|
capScope: "system",
|
|
24435
24844
|
addonId: null,
|
|
24436
24845
|
access: "create"
|
|
24437
24846
|
},
|
|
24438
|
-
"pipelineOrchestrator.
|
|
24847
|
+
"pipelineOrchestrator.setCameraPipelineForAgent": {
|
|
24439
24848
|
capName: "pipeline-orchestrator",
|
|
24440
24849
|
capScope: "system",
|
|
24441
24850
|
addonId: null,
|
|
24442
24851
|
access: "create"
|
|
24443
24852
|
},
|
|
24444
|
-
"pipelineOrchestrator.
|
|
24853
|
+
"pipelineOrchestrator.setCameraStepOverride": {
|
|
24445
24854
|
capName: "pipeline-orchestrator",
|
|
24446
24855
|
capScope: "system",
|
|
24447
24856
|
addonId: null,
|
|
24448
24857
|
access: "create"
|
|
24449
24858
|
},
|
|
24450
|
-
"pipelineOrchestrator.
|
|
24859
|
+
"pipelineOrchestrator.setCameraStepToggle": {
|
|
24451
24860
|
capName: "pipeline-orchestrator",
|
|
24452
24861
|
capScope: "system",
|
|
24453
24862
|
addonId: null,
|
|
24454
24863
|
access: "create"
|
|
24455
24864
|
},
|
|
24456
|
-
"pipelineOrchestrator.
|
|
24865
|
+
"pipelineOrchestrator.setCapabilityBinding": {
|
|
24457
24866
|
capName: "pipeline-orchestrator",
|
|
24458
24867
|
capScope: "system",
|
|
24459
24868
|
addonId: null,
|
|
24460
24869
|
access: "create"
|
|
24461
24870
|
},
|
|
24462
|
-
"pipelineOrchestrator.
|
|
24871
|
+
"pipelineOrchestrator.unassignAudio": {
|
|
24463
24872
|
capName: "pipeline-orchestrator",
|
|
24464
24873
|
capScope: "system",
|
|
24465
24874
|
addonId: null,
|
|
@@ -24519,6 +24928,12 @@ Object.freeze({
|
|
|
24519
24928
|
addonId: null,
|
|
24520
24929
|
access: "view"
|
|
24521
24930
|
},
|
|
24931
|
+
"pipelineRunner.getNativeCrop": {
|
|
24932
|
+
capName: "pipeline-runner",
|
|
24933
|
+
capScope: "system",
|
|
24934
|
+
addonId: null,
|
|
24935
|
+
access: "view"
|
|
24936
|
+
},
|
|
24522
24937
|
"pipelineRunner.reportMotion": {
|
|
24523
24938
|
capName: "pipeline-runner",
|
|
24524
24939
|
capScope: "system",
|
|
@@ -24759,33 +25174,45 @@ Object.freeze({
|
|
|
24759
25174
|
addonId: null,
|
|
24760
25175
|
access: "create"
|
|
24761
25176
|
},
|
|
24762
|
-
"
|
|
24763
|
-
capName: "
|
|
25177
|
+
"scriptRunner.run": {
|
|
25178
|
+
capName: "script-runner",
|
|
25179
|
+
capScope: "device",
|
|
25180
|
+
addonId: null,
|
|
25181
|
+
access: "create"
|
|
25182
|
+
},
|
|
25183
|
+
"scriptRunner.stop": {
|
|
25184
|
+
capName: "script-runner",
|
|
25185
|
+
capScope: "device",
|
|
25186
|
+
addonId: null,
|
|
25187
|
+
access: "create"
|
|
25188
|
+
},
|
|
25189
|
+
"serverManagement.applyServerUpdate": {
|
|
25190
|
+
capName: "server-management",
|
|
24764
25191
|
capScope: "system",
|
|
24765
25192
|
addonId: null,
|
|
24766
|
-
access: "
|
|
25193
|
+
access: "create"
|
|
24767
25194
|
},
|
|
24768
|
-
"
|
|
24769
|
-
capName: "
|
|
25195
|
+
"serverManagement.checkServerUpdate": {
|
|
25196
|
+
capName: "server-management",
|
|
24770
25197
|
capScope: "system",
|
|
24771
25198
|
addonId: null,
|
|
24772
25199
|
access: "create"
|
|
24773
25200
|
},
|
|
24774
|
-
"
|
|
24775
|
-
capName: "
|
|
25201
|
+
"serverManagement.getServerPackageStatus": {
|
|
25202
|
+
capName: "server-management",
|
|
24776
25203
|
capScope: "system",
|
|
24777
25204
|
addonId: null,
|
|
24778
|
-
access: "
|
|
25205
|
+
access: "view"
|
|
24779
25206
|
},
|
|
24780
|
-
"
|
|
24781
|
-
capName: "
|
|
24782
|
-
capScope: "
|
|
25207
|
+
"serverManagement.restartServer": {
|
|
25208
|
+
capName: "server-management",
|
|
25209
|
+
capScope: "system",
|
|
24783
25210
|
addonId: null,
|
|
24784
25211
|
access: "create"
|
|
24785
25212
|
},
|
|
24786
|
-
"
|
|
24787
|
-
capName: "
|
|
24788
|
-
capScope: "
|
|
25213
|
+
"serverManagement.rollbackServerUpdate": {
|
|
25214
|
+
capName: "server-management",
|
|
25215
|
+
capScope: "system",
|
|
24789
25216
|
addonId: null,
|
|
24790
25217
|
access: "create"
|
|
24791
25218
|
},
|
|
@@ -24873,23 +25300,17 @@ Object.freeze({
|
|
|
24873
25300
|
addonId: null,
|
|
24874
25301
|
access: "view"
|
|
24875
25302
|
},
|
|
24876
|
-
"snapshot.
|
|
25303
|
+
"snapshot.getSnapshotOverview": {
|
|
24877
25304
|
capName: "snapshot",
|
|
24878
25305
|
capScope: "device",
|
|
24879
25306
|
addonId: null,
|
|
24880
|
-
access: "create"
|
|
24881
|
-
},
|
|
24882
|
-
"snapshotProvider.getSnapshot": {
|
|
24883
|
-
capName: "snapshot-provider",
|
|
24884
|
-
capScope: "system",
|
|
24885
|
-
addonId: null,
|
|
24886
25307
|
access: "view"
|
|
24887
25308
|
},
|
|
24888
|
-
"
|
|
24889
|
-
capName: "snapshot
|
|
24890
|
-
capScope: "
|
|
25309
|
+
"snapshot.invalidateCache": {
|
|
25310
|
+
capName: "snapshot",
|
|
25311
|
+
capScope: "device",
|
|
24891
25312
|
addonId: null,
|
|
24892
|
-
access: "
|
|
25313
|
+
access: "create"
|
|
24893
25314
|
},
|
|
24894
25315
|
"ssoBridge.signBridgeToken": {
|
|
24895
25316
|
capName: "sso-bridge",
|
|
@@ -25317,30 +25738,6 @@ Object.freeze({
|
|
|
25317
25738
|
addonId: null,
|
|
25318
25739
|
access: "view"
|
|
25319
25740
|
},
|
|
25320
|
-
"streamingEngine.getStreamUrl": {
|
|
25321
|
-
capName: "streaming-engine",
|
|
25322
|
-
capScope: "system",
|
|
25323
|
-
addonId: null,
|
|
25324
|
-
access: "view"
|
|
25325
|
-
},
|
|
25326
|
-
"streamingEngine.listStreams": {
|
|
25327
|
-
capName: "streaming-engine",
|
|
25328
|
-
capScope: "system",
|
|
25329
|
-
addonId: null,
|
|
25330
|
-
access: "view"
|
|
25331
|
-
},
|
|
25332
|
-
"streamingEngine.registerStream": {
|
|
25333
|
-
capName: "streaming-engine",
|
|
25334
|
-
capScope: "system",
|
|
25335
|
-
addonId: null,
|
|
25336
|
-
access: "create"
|
|
25337
|
-
},
|
|
25338
|
-
"streamingEngine.unregisterStream": {
|
|
25339
|
-
capName: "streaming-engine",
|
|
25340
|
-
capScope: "system",
|
|
25341
|
-
addonId: null,
|
|
25342
|
-
access: "delete"
|
|
25343
|
-
},
|
|
25344
25741
|
"streamParams.getConfigSchema": {
|
|
25345
25742
|
capName: "stream-params",
|
|
25346
25743
|
capScope: "device",
|
|
@@ -25587,6 +25984,12 @@ Object.freeze({
|
|
|
25587
25984
|
addonId: null,
|
|
25588
25985
|
access: "view"
|
|
25589
25986
|
},
|
|
25987
|
+
"userPasskeys.beginDiscoverableAuthentication": {
|
|
25988
|
+
capName: "user-passkeys",
|
|
25989
|
+
capScope: "system",
|
|
25990
|
+
addonId: null,
|
|
25991
|
+
access: "view"
|
|
25992
|
+
},
|
|
25590
25993
|
"userPasskeys.beginRegistration": {
|
|
25591
25994
|
capName: "user-passkeys",
|
|
25592
25995
|
capScope: "system",
|
|
@@ -25599,12 +26002,24 @@ Object.freeze({
|
|
|
25599
26002
|
addonId: null,
|
|
25600
26003
|
access: "view"
|
|
25601
26004
|
},
|
|
26005
|
+
"userPasskeys.finishDiscoverableAuthentication": {
|
|
26006
|
+
capName: "user-passkeys",
|
|
26007
|
+
capScope: "system",
|
|
26008
|
+
addonId: null,
|
|
26009
|
+
access: "view"
|
|
26010
|
+
},
|
|
25602
26011
|
"userPasskeys.finishRegistration": {
|
|
25603
26012
|
capName: "user-passkeys",
|
|
25604
26013
|
capScope: "system",
|
|
25605
26014
|
addonId: null,
|
|
25606
26015
|
access: "create"
|
|
25607
26016
|
},
|
|
26017
|
+
"userPasskeys.getSecondFactorPreference": {
|
|
26018
|
+
capName: "user-passkeys",
|
|
26019
|
+
capScope: "system",
|
|
26020
|
+
addonId: null,
|
|
26021
|
+
access: "view"
|
|
26022
|
+
},
|
|
25608
26023
|
"userPasskeys.listPasskeys": {
|
|
25609
26024
|
capName: "user-passkeys",
|
|
25610
26025
|
capScope: "system",
|
|
@@ -25617,6 +26032,12 @@ Object.freeze({
|
|
|
25617
26032
|
addonId: null,
|
|
25618
26033
|
access: "delete"
|
|
25619
26034
|
},
|
|
26035
|
+
"userPasskeys.setSecondFactorPreference": {
|
|
26036
|
+
capName: "user-passkeys",
|
|
26037
|
+
capScope: "system",
|
|
26038
|
+
addonId: null,
|
|
26039
|
+
access: "create"
|
|
26040
|
+
},
|
|
25620
26041
|
"vacuumControl.locate": {
|
|
25621
26042
|
capName: "vacuum-control",
|
|
25622
26043
|
capScope: "device",
|
|
@@ -25689,6 +26110,18 @@ Object.freeze({
|
|
|
25689
26110
|
addonId: null,
|
|
25690
26111
|
access: "view"
|
|
25691
26112
|
},
|
|
26113
|
+
"viewerUi.getStaticDir": {
|
|
26114
|
+
capName: "viewer-ui",
|
|
26115
|
+
capScope: "system",
|
|
26116
|
+
addonId: null,
|
|
26117
|
+
access: "view"
|
|
26118
|
+
},
|
|
26119
|
+
"viewerUi.getVersion": {
|
|
26120
|
+
capName: "viewer-ui",
|
|
26121
|
+
capScope: "system",
|
|
26122
|
+
addonId: null,
|
|
26123
|
+
access: "view"
|
|
26124
|
+
},
|
|
25692
26125
|
"waterHeater.setAway": {
|
|
25693
26126
|
capName: "water-heater",
|
|
25694
26127
|
capScope: "device",
|
|
@@ -25707,54 +26140,6 @@ Object.freeze({
|
|
|
25707
26140
|
addonId: null,
|
|
25708
26141
|
access: "create"
|
|
25709
26142
|
},
|
|
25710
|
-
"webrtc.closeSession": {
|
|
25711
|
-
capName: "webrtc",
|
|
25712
|
-
capScope: "system",
|
|
25713
|
-
addonId: null,
|
|
25714
|
-
access: "create"
|
|
25715
|
-
},
|
|
25716
|
-
"webrtc.createSession": {
|
|
25717
|
-
capName: "webrtc",
|
|
25718
|
-
capScope: "system",
|
|
25719
|
-
addonId: null,
|
|
25720
|
-
access: "create"
|
|
25721
|
-
},
|
|
25722
|
-
"webrtc.handleAnswer": {
|
|
25723
|
-
capName: "webrtc",
|
|
25724
|
-
capScope: "system",
|
|
25725
|
-
addonId: null,
|
|
25726
|
-
access: "create"
|
|
25727
|
-
},
|
|
25728
|
-
"webrtc.handleOffer": {
|
|
25729
|
-
capName: "webrtc",
|
|
25730
|
-
capScope: "system",
|
|
25731
|
-
addonId: null,
|
|
25732
|
-
access: "create"
|
|
25733
|
-
},
|
|
25734
|
-
"webrtc.hasAdaptiveBitrate": {
|
|
25735
|
-
capName: "webrtc",
|
|
25736
|
-
capScope: "system",
|
|
25737
|
-
addonId: null,
|
|
25738
|
-
access: "view"
|
|
25739
|
-
},
|
|
25740
|
-
"webrtc.registerStream": {
|
|
25741
|
-
capName: "webrtc",
|
|
25742
|
-
capScope: "system",
|
|
25743
|
-
addonId: null,
|
|
25744
|
-
access: "create"
|
|
25745
|
-
},
|
|
25746
|
-
"webrtc.supportsStream": {
|
|
25747
|
-
capName: "webrtc",
|
|
25748
|
-
capScope: "system",
|
|
25749
|
-
addonId: null,
|
|
25750
|
-
access: "view"
|
|
25751
|
-
},
|
|
25752
|
-
"webrtc.unregisterStream": {
|
|
25753
|
-
capName: "webrtc",
|
|
25754
|
-
capScope: "system",
|
|
25755
|
-
addonId: null,
|
|
25756
|
-
access: "delete"
|
|
25757
|
-
},
|
|
25758
26143
|
"webrtcSession.addIceCandidate": {
|
|
25759
26144
|
capName: "webrtc-session",
|
|
25760
26145
|
capScope: "device",
|