@camstack/addon-smtp-nodemailer 1.1.18 → 1.1.20
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/smtp.addon.js +681 -258
- package/dist/smtp.addon.mjs +681 -258
- package/package.json +1 -1
package/dist/smtp.addon.mjs
CHANGED
|
@@ -4663,7 +4663,7 @@ function _instanceof(cls, params = {}) {
|
|
|
4663
4663
|
return inst;
|
|
4664
4664
|
}
|
|
4665
4665
|
//#endregion
|
|
4666
|
-
//#region ../types/dist/sleep-
|
|
4666
|
+
//#region ../types/dist/sleep-BC9Yqte7.mjs
|
|
4667
4667
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
4668
4668
|
EventCategory["SystemBoot"] = "system.boot";
|
|
4669
4669
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -4849,6 +4849,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
4849
4849
|
*/
|
|
4850
4850
|
EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
|
|
4851
4851
|
/**
|
|
4852
|
+
* The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
|
|
4853
|
+
* Emitted by addon-pipeline-orchestrator whenever it (re)derives node
|
|
4854
|
+
* capabilities — at boot, on agent online/offline, and on an ingest-node
|
|
4855
|
+
* flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
|
|
4856
|
+
* keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
|
|
4857
|
+
* cross-process `getIngestOwner` query (push the authority's decision instead
|
|
4858
|
+
* of polling it on the hot path). Idempotent state — re-emitted on every
|
|
4859
|
+
* topology change, so a dropped event self-heals on the next one (plus the
|
|
4860
|
+
* broker's long backstop reconcile query).
|
|
4861
|
+
*/
|
|
4862
|
+
EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
|
|
4863
|
+
/**
|
|
4852
4864
|
* Periodic snapshot of per-node pipeline-runner load
|
|
4853
4865
|
* (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
|
|
4854
4866
|
* subscribe instead of polling `pipelineRunner.getLocalLoad`.
|
|
@@ -5372,10 +5384,6 @@ function hydrateField(field, values) {
|
|
|
5372
5384
|
};
|
|
5373
5385
|
}
|
|
5374
5386
|
const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
|
|
5375
|
-
if (field.type === "password") return {
|
|
5376
|
-
...field,
|
|
5377
|
-
value: ""
|
|
5378
|
-
};
|
|
5379
5387
|
const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
|
|
5380
5388
|
return {
|
|
5381
5389
|
...field,
|
|
@@ -6759,6 +6767,21 @@ function method(input, output, options) {
|
|
|
6759
6767
|
timeoutMs: options?.timeoutMs
|
|
6760
6768
|
};
|
|
6761
6769
|
}
|
|
6770
|
+
/**
|
|
6771
|
+
* A wrapper/system-only method: served exclusively by the cap's system-level
|
|
6772
|
+
* provider (`InferProvider`), and OPTIONAL on `InferNativeProvider` so per-device
|
|
6773
|
+
* driver natives don't stub out a wrapper concern (e.g. a cross-device cache
|
|
6774
|
+
* overview). The `systemOnly: true` literal is what `InferNativeProvider` keys on.
|
|
6775
|
+
*/
|
|
6776
|
+
function systemMethod(input, output, options) {
|
|
6777
|
+
return {
|
|
6778
|
+
...method(input, output, options),
|
|
6779
|
+
systemOnly: true
|
|
6780
|
+
};
|
|
6781
|
+
}
|
|
6782
|
+
var StaticDirOutputSchema$1 = object({ staticDir: string() });
|
|
6783
|
+
var VersionOutputSchema$1 = object({ version: string() });
|
|
6784
|
+
method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
|
|
6762
6785
|
var StaticDirOutputSchema = object({ staticDir: string() });
|
|
6763
6786
|
var VersionOutputSchema = object({ version: string() });
|
|
6764
6787
|
method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
|
|
@@ -6928,6 +6951,36 @@ var ModelFormatsSchema = object({
|
|
|
6928
6951
|
tflite: ModelFormatEntrySchema.optional(),
|
|
6929
6952
|
pt: ModelFormatEntrySchema.optional()
|
|
6930
6953
|
});
|
|
6954
|
+
/**
|
|
6955
|
+
* Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
|
|
6956
|
+
* the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
|
|
6957
|
+
* grouped Family→Tier→Variant picker renders identically in the config UI and
|
|
6958
|
+
* in the pipeline/device steppers. The flat `id` stays the source of truth for
|
|
6959
|
+
* resolution/download/persistence; this is a presentation overlay resolved back
|
|
6960
|
+
* to an `id`.
|
|
6961
|
+
*/
|
|
6962
|
+
var ModelVariantGroupSchema = object({
|
|
6963
|
+
/** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
|
|
6964
|
+
family: string(),
|
|
6965
|
+
/** Size within the family, e.g. `n` | `s` | `m` | `l`. */
|
|
6966
|
+
tier: string(),
|
|
6967
|
+
/** Quantization axis. Omit ⇒ the fp32 base build. */
|
|
6968
|
+
precision: _enum(["fp32", "int8"]).optional(),
|
|
6969
|
+
/**
|
|
6970
|
+
* Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
|
|
6971
|
+
* latency-optimized export (e.g. ReLU-activation variant) — the slot the
|
|
6972
|
+
* future performance variants plug into.
|
|
6973
|
+
*/
|
|
6974
|
+
optimization: _enum(["standard", "fast"]).optional(),
|
|
6975
|
+
/**
|
|
6976
|
+
* Input-resolution axis (square input side, px). Omit ⇒ the family's native
|
|
6977
|
+
* resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
|
|
6978
|
+
* cheap latency lever — especially on Apple ANE and the Intel N100 — at a
|
|
6979
|
+
* small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
|
|
6980
|
+
* the group so the selector can offer it as a variant axis.
|
|
6981
|
+
*/
|
|
6982
|
+
resolution: number().int().positive().optional()
|
|
6983
|
+
});
|
|
6931
6984
|
var ModelCatalogEntrySchema = object({
|
|
6932
6985
|
id: string(),
|
|
6933
6986
|
name: string(),
|
|
@@ -6957,7 +7010,43 @@ var ModelCatalogEntrySchema = object({
|
|
|
6957
7010
|
* Auxiliary files required at runtime (labels JSON, charset dict, etc.).
|
|
6958
7011
|
* Downloaded into the same modelsDir alongside the model file.
|
|
6959
7012
|
*/
|
|
6960
|
-
extraFiles: array(ModelExtraFileSchema).readonly().optional()
|
|
7013
|
+
extraFiles: array(ModelExtraFileSchema).readonly().optional(),
|
|
7014
|
+
/**
|
|
7015
|
+
* LEGACY entry — retained in the catalog so a persisted operator selection
|
|
7016
|
+
* still RESOLVES (and can be re-activated), but hidden from the selectable
|
|
7017
|
+
* model list and excluded from the auto format-default pick. Set on the
|
|
7018
|
+
* superseded / consolidated models (older lineages, redundant fp16 IRs) so
|
|
7019
|
+
* the active lineup stays the coherent curated ladder without deleting a
|
|
7020
|
+
* model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
|
|
7021
|
+
* an explicit legacy id that has a build for the node's format.
|
|
7022
|
+
*/
|
|
7023
|
+
legacy: boolean().optional(),
|
|
7024
|
+
/**
|
|
7025
|
+
* Measured quality/latency metadata — populated from the benchmark addon on
|
|
7026
|
+
* the real node classes. Absent = not yet measured (most entries today; the
|
|
7027
|
+
* catalog historically carried only `sizeMB`, a poor cross-architecture
|
|
7028
|
+
* speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
|
|
7029
|
+
*/
|
|
7030
|
+
metrics: object({
|
|
7031
|
+
map50: number().optional(),
|
|
7032
|
+
p95LatencyMs: record(string(), number()).optional()
|
|
7033
|
+
}).optional(),
|
|
7034
|
+
/**
|
|
7035
|
+
* SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
|
|
7036
|
+
* YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
|
|
7037
|
+
* the retraining addon and any future commercial distribution.
|
|
7038
|
+
*/
|
|
7039
|
+
license: string().optional(),
|
|
7040
|
+
/**
|
|
7041
|
+
* Variant-selector grouping. The UI groups models by `family` + `tier` and
|
|
7042
|
+
* offers `precision` / `optimization` as variant axes WITHIN a tier — so all
|
|
7043
|
+
* of a family's sizes and quantizations collapse into one grouped picker
|
|
7044
|
+
* instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
|
|
7045
|
+
* (legacy / custom models) — never shown in the grouped selector. The flat
|
|
7046
|
+
* `id` stays the source of truth for resolution/download/persistence; grouping
|
|
7047
|
+
* is a presentation overlay resolved back to an `id`.
|
|
7048
|
+
*/
|
|
7049
|
+
group: ModelVariantGroupSchema.optional()
|
|
6961
7050
|
});
|
|
6962
7051
|
var ConvertTargetSchema = discriminatedUnion("format", [object({
|
|
6963
7052
|
format: literal("openvino"),
|
|
@@ -7018,8 +7107,8 @@ var RecordingModeSchema = _enum([
|
|
|
7018
7107
|
"onAudioThreshold"
|
|
7019
7108
|
]);
|
|
7020
7109
|
/**
|
|
7021
|
-
* First-class, authoritative per-camera storage mode — the
|
|
7022
|
-
* reads directly (never inferred from `rules`):
|
|
7110
|
+
* First-class, authoritative per-camera storage mode — the explicit choice the
|
|
7111
|
+
* UI reads directly (never inferred from `rules`):
|
|
7023
7112
|
* - `off` — not recording.
|
|
7024
7113
|
* - `events` — record only around triggers (motion / audio threshold),
|
|
7025
7114
|
* with pre/post-buffer.
|
|
@@ -8667,26 +8756,13 @@ DeviceType.Light, method(object({
|
|
|
8667
8756
|
percentage: number().min(0).max(100),
|
|
8668
8757
|
lastChangedAt: number()
|
|
8669
8758
|
});
|
|
8759
|
+
/** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
|
|
8670
8760
|
var StreamFormatSchema = _enum([
|
|
8671
8761
|
"webrtc",
|
|
8672
8762
|
"hls",
|
|
8673
8763
|
"mjpeg",
|
|
8674
8764
|
"rtsp"
|
|
8675
8765
|
]);
|
|
8676
|
-
var StreamInfoSchema = object({
|
|
8677
|
-
streamId: string(),
|
|
8678
|
-
format: StreamFormatSchema,
|
|
8679
|
-
url: string().nullable(),
|
|
8680
|
-
active: boolean()
|
|
8681
|
-
});
|
|
8682
|
-
method(object({
|
|
8683
|
-
streamId: string(),
|
|
8684
|
-
sourceUrl: string(),
|
|
8685
|
-
codec: string().optional()
|
|
8686
|
-
}), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
|
|
8687
|
-
streamId: string(),
|
|
8688
|
-
format: StreamFormatSchema
|
|
8689
|
-
}), string().nullable()), method(_void(), array(StreamInfoSchema));
|
|
8690
8766
|
var RtspRestreamEntrySchema = object({
|
|
8691
8767
|
brokerId: string(),
|
|
8692
8768
|
url: string(),
|
|
@@ -9351,7 +9427,7 @@ var ConsumablesStatusSchema = object({
|
|
|
9351
9427
|
})),
|
|
9352
9428
|
lastChangedAt: number()
|
|
9353
9429
|
});
|
|
9354
|
-
|
|
9430
|
+
Object.values(DeviceType), method(object({
|
|
9355
9431
|
deviceId: number().int().nonnegative(),
|
|
9356
9432
|
key: string().min(1)
|
|
9357
9433
|
}), _void(), {
|
|
@@ -10266,7 +10342,7 @@ var BoundingBoxSchema = object({
|
|
|
10266
10342
|
w: number(),
|
|
10267
10343
|
h: number()
|
|
10268
10344
|
});
|
|
10269
|
-
|
|
10345
|
+
object({
|
|
10270
10346
|
class: string(),
|
|
10271
10347
|
originalClass: string(),
|
|
10272
10348
|
score: number(),
|
|
@@ -10401,7 +10477,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
|
|
|
10401
10477
|
enabled: boolean(),
|
|
10402
10478
|
modelId: string(),
|
|
10403
10479
|
children: array(PipelineDefaultStepSchema).readonly(),
|
|
10404
|
-
engine: PipelineEngineChoiceSchema.optional(),
|
|
10405
10480
|
group: string().optional(),
|
|
10406
10481
|
settings: record(string(), unknown()).optional()
|
|
10407
10482
|
}));
|
|
@@ -10426,7 +10501,9 @@ var PipelineModelOptionSchema = object({
|
|
|
10426
10501
|
formats: record(string(), object({
|
|
10427
10502
|
downloaded: boolean(),
|
|
10428
10503
|
sizeMB: number()
|
|
10429
|
-
}))
|
|
10504
|
+
})),
|
|
10505
|
+
group: ModelVariantGroupSchema.optional(),
|
|
10506
|
+
legacy: boolean().optional()
|
|
10430
10507
|
});
|
|
10431
10508
|
var ConfigFieldBridge = custom();
|
|
10432
10509
|
var PipelineAddonSchemaSchema = object({
|
|
@@ -10440,6 +10517,7 @@ var PipelineAddonSchemaSchema = object({
|
|
|
10440
10517
|
defaultModelId: string(),
|
|
10441
10518
|
defaultModelIdByFormat: record(string(), string()).optional(),
|
|
10442
10519
|
enabledByDefault: boolean().optional(),
|
|
10520
|
+
backfillIntoExistingOverrides: boolean().optional(),
|
|
10443
10521
|
defaultConfidence: number(),
|
|
10444
10522
|
group: string().optional(),
|
|
10445
10523
|
configSchema: array(ConfigFieldBridge).readonly().optional()
|
|
@@ -10456,11 +10534,6 @@ var PipelineSchemaSchema = object({
|
|
|
10456
10534
|
selectedEngine: PipelineEngineChoiceSchema,
|
|
10457
10535
|
slots: array(PipelineSlotSchemaSchema).readonly()
|
|
10458
10536
|
});
|
|
10459
|
-
var DetectorOutputSchema = object({
|
|
10460
|
-
detections: array(SpatialDetectionSchema).readonly(),
|
|
10461
|
-
inferenceMs: number(),
|
|
10462
|
-
modelId: string()
|
|
10463
|
-
});
|
|
10464
10537
|
var EngineProvisioningSchema = object({
|
|
10465
10538
|
runtimeId: _enum([
|
|
10466
10539
|
"onnx",
|
|
@@ -10477,15 +10550,42 @@ var EngineProvisioningSchema = object({
|
|
|
10477
10550
|
]),
|
|
10478
10551
|
progress: number().optional(),
|
|
10479
10552
|
error: string().optional(),
|
|
10480
|
-
nextRetryAt: number().optional()
|
|
10553
|
+
nextRetryAt: number().optional(),
|
|
10554
|
+
/**
|
|
10555
|
+
* Gate A (config-correctness gate at engine change): human-readable
|
|
10556
|
+
* config issues surfaced EAGERLY when the node's engine changes — model
|
|
10557
|
+
* substitutions ("chose X, running Y") and zero-build steps ("no model
|
|
10558
|
+
* has a <format> build"). Additive/optional: informational only, never
|
|
10559
|
+
* enforced here — `assertEngineReady` (readiness) still gates inference.
|
|
10560
|
+
* Absent/empty when the node-default tree resolves cleanly.
|
|
10561
|
+
*/
|
|
10562
|
+
configIssues: array(string()).optional()
|
|
10481
10563
|
});
|
|
10482
10564
|
var PipelineStepInputSchema = lazy(() => object({
|
|
10483
10565
|
addonId: string(),
|
|
10484
|
-
modelId: string(),
|
|
10566
|
+
modelId: string().optional(),
|
|
10485
10567
|
enabled: boolean().default(true),
|
|
10486
10568
|
children: array(PipelineStepInputSchema).optional(),
|
|
10487
10569
|
settings: record(string(), unknown()).optional()
|
|
10488
10570
|
}));
|
|
10571
|
+
var ModelSubstitutionSchema = object({
|
|
10572
|
+
addonId: string(),
|
|
10573
|
+
chosen: string(),
|
|
10574
|
+
running: string(),
|
|
10575
|
+
format: string()
|
|
10576
|
+
});
|
|
10577
|
+
var PipelineValidationIssueSchema = object({
|
|
10578
|
+
addonId: string(),
|
|
10579
|
+
kind: _enum(["unknown-addon", "no-format-build"]),
|
|
10580
|
+
detail: string()
|
|
10581
|
+
});
|
|
10582
|
+
var PipelineValidationResultSchema = object({
|
|
10583
|
+
ok: boolean(),
|
|
10584
|
+
issues: array(PipelineValidationIssueSchema).readonly(),
|
|
10585
|
+
substitutions: array(ModelSubstitutionSchema).readonly(),
|
|
10586
|
+
/** The node's `currentEngine.format` this validation ran against. */
|
|
10587
|
+
format: string()
|
|
10588
|
+
});
|
|
10489
10589
|
var ReferenceImageEntrySchema = object({
|
|
10490
10590
|
filename: string(),
|
|
10491
10591
|
stepIds: array(string()).readonly().optional()
|
|
@@ -10556,7 +10656,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
10556
10656
|
})) }), object({ success: literal(true) }), {
|
|
10557
10657
|
kind: "mutation",
|
|
10558
10658
|
auth: "admin"
|
|
10559
|
-
}), method(
|
|
10659
|
+
}), method(object({ nodeId: string() }), object({
|
|
10660
|
+
success: literal(true),
|
|
10661
|
+
clearedDevices: number()
|
|
10662
|
+
}), {
|
|
10663
|
+
kind: "mutation",
|
|
10664
|
+
auth: "admin"
|
|
10665
|
+
}), 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({
|
|
10560
10666
|
name: string(),
|
|
10561
10667
|
steps: array(PipelineTemplateStepSchema).readonly(),
|
|
10562
10668
|
engine: PipelineEngineChoiceSchema
|
|
@@ -10573,10 +10679,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
10573
10679
|
modelId: string(),
|
|
10574
10680
|
format: ModelFormatSchema$1
|
|
10575
10681
|
}), object({ success: literal(true) }), { kind: "mutation" }), method(object({
|
|
10576
|
-
addonId: string(),
|
|
10577
|
-
frame: FrameInputSchema,
|
|
10578
|
-
config: record(string(), unknown()).optional()
|
|
10579
|
-
}), DetectorOutputSchema), method(object({
|
|
10580
10682
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
10581
10683
|
steps: array(PipelineStepInputSchema).min(1),
|
|
10582
10684
|
frame: FrameInputSchema.optional(),
|
|
@@ -10722,6 +10824,25 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(ZoneSchema).read
|
|
|
10722
10824
|
auth: "admin"
|
|
10723
10825
|
}), object({ zones: array(ZoneSchema).readonly() });
|
|
10724
10826
|
/**
|
|
10827
|
+
* A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
|
|
10828
|
+
* decode worker resolves it against the RETAINED native frame's real pixel dims,
|
|
10829
|
+
* so the caller supplies only the detection-res bbox divided by the detection
|
|
10830
|
+
* dims — no native resolution to plumb.
|
|
10831
|
+
*/
|
|
10832
|
+
var NativeCropBboxSchema = object({
|
|
10833
|
+
x: number(),
|
|
10834
|
+
y: number(),
|
|
10835
|
+
w: number(),
|
|
10836
|
+
h: number()
|
|
10837
|
+
});
|
|
10838
|
+
/** Result of a best-effort native-resolution crop (`getNativeCrop`). */
|
|
10839
|
+
var NativeCropResultSchema = object({
|
|
10840
|
+
/** Packed rgb (24-bit) pixels of the crop. */
|
|
10841
|
+
bytes: _instanceof(Uint8Array),
|
|
10842
|
+
width: number().int().positive(),
|
|
10843
|
+
height: number().int().positive()
|
|
10844
|
+
});
|
|
10845
|
+
/**
|
|
10725
10846
|
* Per-camera tunable ranges + defaults. Single source of truth used
|
|
10726
10847
|
* by both the Zod data schema (validation + default fallback) and
|
|
10727
10848
|
* the device settings UI (slider min/max/step). Touch one place and
|
|
@@ -10816,6 +10937,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
|
|
|
10816
10937
|
kind: literal("remote-restream"),
|
|
10817
10938
|
/** The camera's source-owner node (slice 1: always the hub). */
|
|
10818
10939
|
ownerNodeId: string(),
|
|
10940
|
+
/**
|
|
10941
|
+
* The owner's LAN-reachable host, resolved by the orchestrator from the
|
|
10942
|
+
* per-node `reachableHost` override (Cluster UI). When present the runner
|
|
10943
|
+
* dials THIS host for the owner's restream, in preference to the
|
|
10944
|
+
* `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
|
|
10945
|
+
*/
|
|
10946
|
+
ownerReachableHost: string().optional(),
|
|
10819
10947
|
/** Operator override for the owner host the runner dials. */
|
|
10820
10948
|
hubHostnameOverride: string().optional()
|
|
10821
10949
|
})]).describe("Per-camera frame-source mode for the runner (P2c)");
|
|
@@ -10824,13 +10952,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
|
|
|
10824
10952
|
* specific runner instance via `attachCamera`. Carries everything the
|
|
10825
10953
|
* runner needs to subscribe to the local broker and execute inference.
|
|
10826
10954
|
*
|
|
10827
|
-
* Stateless-pipeline model: the
|
|
10828
|
-
*
|
|
10829
|
-
*
|
|
10830
|
-
*
|
|
10831
|
-
*
|
|
10832
|
-
* `engine`/`steps`/`audio` are optional during the additive migration
|
|
10833
|
-
* window; once orchestrator + UI are migrated they become required.
|
|
10955
|
+
* Stateless-pipeline model: the pipeline content (`steps`, optional
|
|
10956
|
+
* `audio`) travels with the attach payload. The runner keeps it in RAM
|
|
10957
|
+
* for the lifetime of the attach — on rebalance, edit, or restart the
|
|
10958
|
+
* orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
|
|
10959
|
+
* node-local, resolved by the executing runner at dispatch time.
|
|
10834
10960
|
*/
|
|
10835
10961
|
var RunnerCameraConfigSchema = object({
|
|
10836
10962
|
deviceId: number(),
|
|
@@ -10881,14 +11007,11 @@ var RunnerCameraConfigSchema = object({
|
|
|
10881
11007
|
*/
|
|
10882
11008
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
10883
11009
|
pipelineEnabled: boolean().default(true),
|
|
10884
|
-
/** Engine choice for video steps (runtime+backend+format). */
|
|
10885
|
-
engine: PipelineEngineChoiceSchema.optional(),
|
|
10886
11010
|
/** Ordered tree of video steps. Absent → runner skips video detection. */
|
|
10887
11011
|
steps: array(PipelineStepInputSchema).readonly().optional(),
|
|
10888
11012
|
/** Audio classification branch. `enabled:false` disables, null skips. */
|
|
10889
11013
|
audio: object({
|
|
10890
|
-
|
|
10891
|
-
modelId: string(),
|
|
11014
|
+
modelId: string().optional(),
|
|
10892
11015
|
enabled: boolean()
|
|
10893
11016
|
}).nullable().optional(),
|
|
10894
11017
|
/**
|
|
@@ -10975,7 +11098,11 @@ var RunnerLocalMetricsSchema = object({
|
|
|
10975
11098
|
avgInferenceTimeMs: number(),
|
|
10976
11099
|
queueDepth: number()
|
|
10977
11100
|
});
|
|
10978
|
-
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())
|
|
11101
|
+
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({
|
|
11102
|
+
handle: FrameHandleSchema,
|
|
11103
|
+
bbox: NativeCropBboxSchema,
|
|
11104
|
+
maxWidth: number().int().positive().optional()
|
|
11105
|
+
}), NativeCropResultSchema.nullable());
|
|
10979
11106
|
object({
|
|
10980
11107
|
detected: boolean(),
|
|
10981
11108
|
/** Ms epoch of the last detected-true observation. Null if never detected. */
|
|
@@ -12269,7 +12396,9 @@ var AddonPageDeclarationSchema$1 = object({
|
|
|
12269
12396
|
icon: string(),
|
|
12270
12397
|
path: string(),
|
|
12271
12398
|
remoteName: string(),
|
|
12272
|
-
bundle: string()
|
|
12399
|
+
bundle: string(),
|
|
12400
|
+
section: string().optional(),
|
|
12401
|
+
sectionLabel: string().optional()
|
|
12273
12402
|
});
|
|
12274
12403
|
var AddonPageInfoSchema = object({
|
|
12275
12404
|
addonId: string(),
|
|
@@ -12309,7 +12438,18 @@ var AddonPageDeclarationSchema = object({
|
|
|
12309
12438
|
* the static-file route can compute an mtime-based cache-buster URL
|
|
12310
12439
|
* without a separate filesystem stat.
|
|
12311
12440
|
*/
|
|
12312
|
-
bundle: string()
|
|
12441
|
+
bundle: string(),
|
|
12442
|
+
/**
|
|
12443
|
+
* Sidebar section this page docks into. Well-known ids: `'detection'`,
|
|
12444
|
+
* `'cluster'`, `'administration'` — the page renders inside that group.
|
|
12445
|
+
* Any OTHER string creates (or joins) a custom section rendered after
|
|
12446
|
+
* the built-in groups; its label comes from `sectionLabel` (first
|
|
12447
|
+
* declaration wins), falling back to the id. Absent → the legacy
|
|
12448
|
+
* "Addon Pages" group.
|
|
12449
|
+
*/
|
|
12450
|
+
section: string().optional(),
|
|
12451
|
+
/** Display label for a CUSTOM `section` id (ignored for well-known ids). */
|
|
12452
|
+
sectionLabel: string().optional()
|
|
12313
12453
|
});
|
|
12314
12454
|
method(_void(), array(AddonPageDeclarationSchema).readonly());
|
|
12315
12455
|
var AddonHttpRouteSchema = object({
|
|
@@ -12525,6 +12665,17 @@ var WidgetMetadataSchema = object({
|
|
|
12525
12665
|
deviceContext: boolean().default(false),
|
|
12526
12666
|
integrationContext: boolean().default(false)
|
|
12527
12667
|
}),
|
|
12668
|
+
/**
|
|
12669
|
+
* Loadable BEFORE authentication. The normal widget registry listing
|
|
12670
|
+
* (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
|
|
12671
|
+
* (the login page) cannot discover a widget through it. A widget that
|
|
12672
|
+
* declares `preAuth: true` marks itself as safe to mount on a pre-auth
|
|
12673
|
+
* screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
|
|
12674
|
+
* login-method contribution channel (see `login-method.cap.ts`) rather
|
|
12675
|
+
* than the authenticated registry, and its bundle is served by the
|
|
12676
|
+
* public `/api/addon-widgets/:addonId/*` static route. Defaults false.
|
|
12677
|
+
*/
|
|
12678
|
+
preAuth: boolean().optional().default(false),
|
|
12528
12679
|
/** Dashboard placement HINTS (operator can override per instance). */
|
|
12529
12680
|
defaultSize: WidgetSizeEnum.default("md"),
|
|
12530
12681
|
allowedSizes: array(WidgetSizeEnum).readonly().default([
|
|
@@ -12826,6 +12977,66 @@ method(object({
|
|
|
12826
12977
|
password: string()
|
|
12827
12978
|
}), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
|
|
12828
12979
|
/**
|
|
12980
|
+
* `login-method` — collection cap through which auth addons contribute
|
|
12981
|
+
* their pre-auth login surfaces to the login page. This is the SINGLE,
|
|
12982
|
+
* generic mechanism that supersedes the dead `auth.listProviders` reader:
|
|
12983
|
+
* every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
|
|
12984
|
+
* `login-method` provider and the PUBLIC `auth.listLoginMethods`
|
|
12985
|
+
* procedure aggregates them for the unauthenticated login page.
|
|
12986
|
+
*
|
|
12987
|
+
* A contribution is a discriminated union on `kind`:
|
|
12988
|
+
*
|
|
12989
|
+
* - `redirect` — a declarative button. The login page renders a generic
|
|
12990
|
+
* button that navigates to `startUrl` (an addon-owned HTTP route).
|
|
12991
|
+
* Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
|
|
12992
|
+
* ZERO shell-side JS. A future SSO addon plugs in the same way — the
|
|
12993
|
+
* login page needs NO change.
|
|
12994
|
+
*
|
|
12995
|
+
* - `widget` — a Module-Federation widget the login page mounts (via
|
|
12996
|
+
* `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
|
|
12997
|
+
* login ceremony, which must run `@simplewebauthn/browser` INSIDE the
|
|
12998
|
+
* addon bundle. The referenced widget also declares `preAuth: true` in
|
|
12999
|
+
* its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
|
|
13000
|
+
* stamps a public `bundleUrl` from `addonId` + `bundle`.
|
|
13001
|
+
*
|
|
13002
|
+
* Every contribution carries a `stage`:
|
|
13003
|
+
* - `primary` — shown on the first credentials screen (OIDC /
|
|
13004
|
+
* magic-link buttons; a future usernameless passkey).
|
|
13005
|
+
* - `second-factor` — shown AFTER the password leg, gated on the
|
|
13006
|
+
* returned `factors` (passkey-as-2FA today).
|
|
13007
|
+
*
|
|
13008
|
+
* `mount: skip` — the cap is read server-side by the core auth router
|
|
13009
|
+
* (`registry.getCollection('login-method')`), never mounted as its own
|
|
13010
|
+
* tRPC router.
|
|
13011
|
+
*/
|
|
13012
|
+
/** When a login method renders in the two-phase login flow. */
|
|
13013
|
+
var LoginStageEnum = _enum(["primary", "second-factor"]);
|
|
13014
|
+
/** One login-method contribution — redirect button OR pre-auth widget. */
|
|
13015
|
+
var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
|
|
13016
|
+
kind: literal("redirect"),
|
|
13017
|
+
/** Stable id within the login-method set (e.g. `auth-oidc/google`). */
|
|
13018
|
+
id: string(),
|
|
13019
|
+
/** Operator-facing button label. */
|
|
13020
|
+
label: string(),
|
|
13021
|
+
/** lucide-react icon name. */
|
|
13022
|
+
icon: string().optional(),
|
|
13023
|
+
/** Addon-owned HTTP route the button navigates to (GET). */
|
|
13024
|
+
startUrl: string(),
|
|
13025
|
+
stage: LoginStageEnum
|
|
13026
|
+
}), object({
|
|
13027
|
+
kind: literal("widget"),
|
|
13028
|
+
/** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
|
|
13029
|
+
id: string(),
|
|
13030
|
+
/** Owning addon id — drives the public bundle URL + the MF namespace. */
|
|
13031
|
+
addonId: string(),
|
|
13032
|
+
/** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
|
|
13033
|
+
bundle: string(),
|
|
13034
|
+
/** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
|
|
13035
|
+
remote: WidgetRemoteSchema,
|
|
13036
|
+
stage: LoginStageEnum
|
|
13037
|
+
})]);
|
|
13038
|
+
method(_void(), array(LoginMethodContributionSchema).readonly());
|
|
13039
|
+
/**
|
|
12829
13040
|
* Orchestrator-side destination metadata. The orchestrator computes
|
|
12830
13041
|
* `id = <addonId>:<subId>` from its provider lookup so consumers
|
|
12831
13042
|
* (admin UI, restore flow) see one canonical key.
|
|
@@ -14929,7 +15140,17 @@ var TrackSchema = object({
|
|
|
14929
15140
|
/** Cumulative normalized distance travelled (0..1 units = full frame width). */
|
|
14930
15141
|
totalDistance: number(),
|
|
14931
15142
|
state: TrackStateSchema,
|
|
14932
|
-
active: boolean()
|
|
15143
|
+
active: boolean(),
|
|
15144
|
+
/** Deterministic key-event importance score in [0,1] (server-computed at
|
|
15145
|
+
* track expiry, recomputed on late label). Absent on legacy rows written
|
|
15146
|
+
* before scoring shipped — consumers degrade to absence / compute-on-read. */
|
|
15147
|
+
importance: number().optional(),
|
|
15148
|
+
/** Id of the track's highest-confidence ObjectEvent (its representative
|
|
15149
|
+
* "best" frame). Absent when the track produced no object events. */
|
|
15150
|
+
bestEventId: string().optional(),
|
|
15151
|
+
/** Tag of the importance sub-signal that dominated the score
|
|
15152
|
+
* (identity|dwell|proximity|class|confidence|travel|zone). */
|
|
15153
|
+
importanceReason: string().optional()
|
|
14933
15154
|
});
|
|
14934
15155
|
var BaseEventFields = {
|
|
14935
15156
|
id: string(),
|
|
@@ -14994,8 +15215,18 @@ var ObjectEventSchema = object({
|
|
|
14994
15215
|
frameHeight: number().optional(),
|
|
14995
15216
|
/** MediaStore key for the crop attached to this event (if any). */
|
|
14996
15217
|
mediaKey: string().optional(),
|
|
15218
|
+
/** Design B: MediaStore key of the track's native-resolution key frame (the
|
|
15219
|
+
* best-detection full frame). Resolve via the event-media data-plane
|
|
15220
|
+
* (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
|
|
15221
|
+
* draws `bbox` over the native frame. Absent on legacy rows / non-decoded
|
|
15222
|
+
* sources — consumers fall back to `mediaKey` (the tight crop). */
|
|
15223
|
+
keyFrameMediaKey: string().optional(),
|
|
14997
15224
|
/** Populated by B5 (recording playback URL for this event). */
|
|
14998
|
-
mediaUrl: string().optional()
|
|
15225
|
+
mediaUrl: string().optional(),
|
|
15226
|
+
/** The parent track's key-event importance [0,1], propagated to every object
|
|
15227
|
+
* event of the track (so an event row can be sorted by importance without a
|
|
15228
|
+
* track join). Absent on legacy rows / before the track was scored. */
|
|
15229
|
+
importance: number().optional()
|
|
14999
15230
|
});
|
|
15000
15231
|
var AudioEventSchema = object({
|
|
15001
15232
|
...BaseEventFields,
|
|
@@ -15019,7 +15250,8 @@ var MediaFileKindEnum = _enum([
|
|
|
15019
15250
|
"fullFrame",
|
|
15020
15251
|
"fullFrameBoxed",
|
|
15021
15252
|
"faceCrop",
|
|
15022
|
-
"plateCrop"
|
|
15253
|
+
"plateCrop",
|
|
15254
|
+
"keyFrame"
|
|
15023
15255
|
]);
|
|
15024
15256
|
var MediaFileSchema = object({
|
|
15025
15257
|
key: string(),
|
|
@@ -15040,6 +15272,32 @@ var DeviceEventQueryInput = object({
|
|
|
15040
15272
|
projection: _enum(["full", "slim"]).optional()
|
|
15041
15273
|
});
|
|
15042
15274
|
var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
|
|
15275
|
+
var KeyEventQueryInput = object({
|
|
15276
|
+
deviceId: number(),
|
|
15277
|
+
/** Window lower bound (track firstSeen ≥ since). */
|
|
15278
|
+
since: number(),
|
|
15279
|
+
/** Window upper bound (track firstSeen ≤ until). */
|
|
15280
|
+
until: number(),
|
|
15281
|
+
limit: number().int().min(1).max(200).default(50),
|
|
15282
|
+
/** Drop tracks scoring below this importance. */
|
|
15283
|
+
minImportance: number().min(0).max(1).optional(),
|
|
15284
|
+
/** Restrict to a single class (e.g. 'person'). */
|
|
15285
|
+
classFilter: string().optional()
|
|
15286
|
+
});
|
|
15287
|
+
var KeyEventSchema = object({
|
|
15288
|
+
/** The representative event id (the track's best ObjectEvent, else its trackId). */
|
|
15289
|
+
id: string(),
|
|
15290
|
+
trackId: string(),
|
|
15291
|
+
/** Track start time (firstSeen). */
|
|
15292
|
+
timestamp: number(),
|
|
15293
|
+
className: string(),
|
|
15294
|
+
label: string().optional(),
|
|
15295
|
+
importance: number(),
|
|
15296
|
+
/** Highest-confidence ObjectEvent id for the track (empty when none). */
|
|
15297
|
+
bestEventId: string(),
|
|
15298
|
+
/** Track lifetime in ms (lastSeen - firstSeen). */
|
|
15299
|
+
windowMs: number().optional()
|
|
15300
|
+
});
|
|
15043
15301
|
var TrackedDetectionSchema = object({
|
|
15044
15302
|
trackId: string(),
|
|
15045
15303
|
className: string(),
|
|
@@ -15069,7 +15327,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
15069
15327
|
}), array(TrackSchema).readonly()), method(object({ deviceId: number() }), _void(), {
|
|
15070
15328
|
kind: "mutation",
|
|
15071
15329
|
auth: "admin"
|
|
15072
|
-
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({
|
|
15330
|
+
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
|
|
15073
15331
|
deviceId: number(),
|
|
15074
15332
|
since: number(),
|
|
15075
15333
|
until: number(),
|
|
@@ -15114,11 +15372,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
15114
15372
|
timestamp: number()
|
|
15115
15373
|
});
|
|
15116
15374
|
var CameraPipelineConfigSchema = object({
|
|
15117
|
-
engine: PipelineEngineChoiceSchema,
|
|
15375
|
+
engine: PipelineEngineChoiceSchema.optional(),
|
|
15118
15376
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
15119
15377
|
audio: object({
|
|
15120
|
-
engine: PipelineEngineChoiceSchema,
|
|
15121
|
-
modelId: string(),
|
|
15378
|
+
engine: PipelineEngineChoiceSchema.optional(),
|
|
15379
|
+
modelId: string().optional(),
|
|
15122
15380
|
enabled: boolean(),
|
|
15123
15381
|
settings: record(string(), unknown()).readonly().optional()
|
|
15124
15382
|
}).nullable().optional()
|
|
@@ -15133,7 +15391,7 @@ var PipelineTemplateSchema = object({
|
|
|
15133
15391
|
});
|
|
15134
15392
|
var AgentAddonConfigSchema = object({
|
|
15135
15393
|
enabled: boolean(),
|
|
15136
|
-
modelId: string(),
|
|
15394
|
+
modelId: string().optional(),
|
|
15137
15395
|
settings: record(string(), unknown()).readonly()
|
|
15138
15396
|
});
|
|
15139
15397
|
var AgentPipelineSettingsSchema = object({
|
|
@@ -15143,12 +15401,25 @@ var AgentPipelineSettingsSchema = object({
|
|
|
15143
15401
|
detectWeight: number().positive().optional(),
|
|
15144
15402
|
/** Node is eligible to run the detection pipeline (decode + inference). */
|
|
15145
15403
|
detect: boolean().optional(),
|
|
15146
|
-
/**
|
|
15404
|
+
/**
|
|
15405
|
+
* DEPRECATED AND IGNORED. Decode is always co-located with its frame
|
|
15406
|
+
* consumer, so decode eligibility IS detect eligibility. Kept optional in
|
|
15407
|
+
* the schema ONLY so persisted stores written before the removal still
|
|
15408
|
+
* parse — no code reads it and no write path emits it.
|
|
15409
|
+
*/
|
|
15147
15410
|
decode: boolean().optional(),
|
|
15148
15411
|
/** Node is eligible to run audio-analyzer sessions. */
|
|
15149
15412
|
audio: boolean().optional(),
|
|
15150
15413
|
/** Node is eligible to be the ingest / source-owner (serve the restream). */
|
|
15151
|
-
ingest: boolean().optional()
|
|
15414
|
+
ingest: boolean().optional(),
|
|
15415
|
+
/**
|
|
15416
|
+
* Operator override for the LAN host a cross-node decoder dials to reach
|
|
15417
|
+
* THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
|
|
15418
|
+
* falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
|
|
15419
|
+
* it already uses to reach the hub). Set this only when the auto-detected
|
|
15420
|
+
* address is wrong (multi-homed host, NAT, custom interface).
|
|
15421
|
+
*/
|
|
15422
|
+
reachableHost: string().optional()
|
|
15152
15423
|
});
|
|
15153
15424
|
var CameraPipelineForAgentSchema = object({
|
|
15154
15425
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -15196,25 +15467,6 @@ var PipelineAssignmentSchema = object({
|
|
|
15196
15467
|
assignedAt: number()
|
|
15197
15468
|
});
|
|
15198
15469
|
/**
|
|
15199
|
-
* Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
|
|
15200
|
-
* the decoder-node placement domain (`balanceDecoder` decision: manual pin
|
|
15201
|
-
* → co-located with pipeline → capacity).
|
|
15202
|
-
*/
|
|
15203
|
-
var DecoderAssignmentSchema = object({
|
|
15204
|
-
deviceId: number(),
|
|
15205
|
-
/** Moleculer node id of the decoder provider currently responsible for this camera. */
|
|
15206
|
-
decoderNodeId: string(),
|
|
15207
|
-
/** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
|
|
15208
|
-
pinned: boolean(),
|
|
15209
|
-
/** Why this assignment was made — useful for debugging the decoder balancer. */
|
|
15210
|
-
reason: _enum([
|
|
15211
|
-
"manual",
|
|
15212
|
-
"co-located",
|
|
15213
|
-
"capacity",
|
|
15214
|
-
"hardware-affinity"
|
|
15215
|
-
])
|
|
15216
|
-
});
|
|
15217
|
-
/**
|
|
15218
15470
|
* Per-agent load summary surfaced to the load balancer + dashboards.
|
|
15219
15471
|
* Aggregated from each runner's `getLocalLoad` cap call.
|
|
15220
15472
|
*/
|
|
@@ -15254,6 +15506,15 @@ var GlobalMetricsSchema = object({
|
|
|
15254
15506
|
* capability providers.
|
|
15255
15507
|
*/
|
|
15256
15508
|
var CapabilityBindingsSchema = record(string(), string());
|
|
15509
|
+
/**
|
|
15510
|
+
* The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
|
|
15511
|
+
* its LAN-reachable host, if one is registered. See `getIngestOwner`.
|
|
15512
|
+
*/
|
|
15513
|
+
var IngestOwnerSchema = object({
|
|
15514
|
+
ownerNodeId: string(),
|
|
15515
|
+
reachableHost: string().optional(),
|
|
15516
|
+
configIssue: string().optional()
|
|
15517
|
+
});
|
|
15257
15518
|
/** Source block — always present; derives from the stream catalog. */
|
|
15258
15519
|
var CameraSourceStatusSchema = object({ streams: array(object({
|
|
15259
15520
|
camStreamId: string(),
|
|
@@ -15268,6 +15529,14 @@ var CameraAssignmentStatusSchema = object({
|
|
|
15268
15529
|
detectionNodeId: string().nullable(),
|
|
15269
15530
|
decoderNodeId: string().nullable(),
|
|
15270
15531
|
audioNodeId: string().nullable(),
|
|
15532
|
+
/**
|
|
15533
|
+
* The node that OWNS this camera's physical source pull (dials the RTSP and
|
|
15534
|
+
* hosts the broker/restream) — the cluster ingest owner today
|
|
15535
|
+
* (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
|
|
15536
|
+
* the UI show WHERE a camera is sourced without SSH/logs, and is the node the
|
|
15537
|
+
* broker block below was read from (pinned). Nullable only pre-wiring.
|
|
15538
|
+
*/
|
|
15539
|
+
sourceNodeId: string().nullable(),
|
|
15271
15540
|
pinned: object({
|
|
15272
15541
|
detection: boolean(),
|
|
15273
15542
|
decoder: boolean(),
|
|
@@ -15400,16 +15669,7 @@ method(object({
|
|
|
15400
15669
|
}), object({ success: literal(true) }), {
|
|
15401
15670
|
kind: "mutation",
|
|
15402
15671
|
auth: "admin"
|
|
15403
|
-
}), method(object({
|
|
15404
|
-
deviceId: number(),
|
|
15405
|
-
nodeId: string()
|
|
15406
|
-
}), _void(), {
|
|
15407
|
-
kind: "mutation",
|
|
15408
|
-
auth: "admin"
|
|
15409
|
-
}), method(object({ deviceId: number() }), _void(), {
|
|
15410
|
-
kind: "mutation",
|
|
15411
|
-
auth: "admin"
|
|
15412
|
-
}), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
|
|
15672
|
+
}), method(_void(), IngestOwnerSchema), method(object({
|
|
15413
15673
|
deviceId: number(),
|
|
15414
15674
|
nodeId: string()
|
|
15415
15675
|
}), object({ success: literal(true) }), {
|
|
@@ -15430,10 +15690,7 @@ method(object({
|
|
|
15430
15690
|
nodeId: string(),
|
|
15431
15691
|
pinned: boolean(),
|
|
15432
15692
|
assignedAt: number()
|
|
15433
|
-
}))), method(object({
|
|
15434
|
-
deviceId: number(),
|
|
15435
|
-
pipelineNodeId: string().optional()
|
|
15436
|
-
}), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
|
|
15693
|
+
}))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
|
|
15437
15694
|
nodeId: string(),
|
|
15438
15695
|
settings: AgentPipelineSettingsSchema
|
|
15439
15696
|
})).readonly()), method(object({
|
|
@@ -15463,12 +15720,26 @@ method(object({
|
|
|
15463
15720
|
}), method(object({
|
|
15464
15721
|
agentNodeId: string(),
|
|
15465
15722
|
detect: boolean().nullable().optional(),
|
|
15466
|
-
decode: boolean().nullable().optional(),
|
|
15467
15723
|
audio: boolean().nullable().optional(),
|
|
15468
15724
|
ingest: boolean().nullable().optional()
|
|
15469
15725
|
}), object({ success: literal(true) }), {
|
|
15470
15726
|
kind: "mutation",
|
|
15471
15727
|
auth: "admin"
|
|
15728
|
+
}), method(object({
|
|
15729
|
+
agentNodeId: string(),
|
|
15730
|
+
reachableHost: string().nullable()
|
|
15731
|
+
}), object({ success: literal(true) }), {
|
|
15732
|
+
kind: "mutation",
|
|
15733
|
+
auth: "admin"
|
|
15734
|
+
}), method(object({ agentNodeId: string() }), object({
|
|
15735
|
+
success: literal(true),
|
|
15736
|
+
/** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
|
|
15737
|
+
effectiveModelId: string().nullable(),
|
|
15738
|
+
/** Number of cameras whose node-scoped overrides were cleared. */
|
|
15739
|
+
clearedCameraOverrides: number()
|
|
15740
|
+
}), {
|
|
15741
|
+
kind: "mutation",
|
|
15742
|
+
auth: "admin"
|
|
15472
15743
|
}), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
|
|
15473
15744
|
deviceId: number(),
|
|
15474
15745
|
addonId: string(),
|
|
@@ -15513,22 +15784,131 @@ method(object({
|
|
|
15513
15784
|
kind: "mutation",
|
|
15514
15785
|
auth: "admin"
|
|
15515
15786
|
});
|
|
15516
|
-
|
|
15517
|
-
|
|
15518
|
-
|
|
15519
|
-
|
|
15520
|
-
|
|
15521
|
-
|
|
15787
|
+
/**
|
|
15788
|
+
* server-management — per-NODE singleton capability for a node's ROOT
|
|
15789
|
+
* package lifecycle (runtime-updatable node packages, phase 2: hub + docker
|
|
15790
|
+
* agents).
|
|
15791
|
+
*
|
|
15792
|
+
* Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
|
|
15793
|
+
* on agents) carries the whole software stack in its npm dep tree, so ONE
|
|
15794
|
+
* version describes the node. Updates install into
|
|
15795
|
+
* `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
|
|
15796
|
+
* starter (probation boot + auto-rollback to N-1).
|
|
15797
|
+
*
|
|
15798
|
+
* Providers:
|
|
15799
|
+
* - HUB: `ServerUpdateService` behind the `server-provided` mount
|
|
15800
|
+
* (`buildServerProviders` in trpc.router.ts) — the default target for
|
|
15801
|
+
* unpinned calls.
|
|
15802
|
+
* - AGENT: `AgentUpdateService` registered by the agent bootstrap under
|
|
15803
|
+
* the synthetic `agent-runtime` addonId and declared in the agent's
|
|
15804
|
+
* `$hub.registerNode` manifest.
|
|
15805
|
+
*
|
|
15806
|
+
* Node routing: singleton caps get the codegen/runtime-builder `nodeId`
|
|
15807
|
+
* injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
|
|
15808
|
+
* SDK) routes the call to that node's provider via the standard remote
|
|
15809
|
+
* proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
|
|
15810
|
+
* in-process provider lookup). No `nodeId` → the hub's own provider.
|
|
15811
|
+
*
|
|
15812
|
+
* Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
|
|
15813
|
+
*/
|
|
15814
|
+
/**
|
|
15815
|
+
* Where the running hub's code was loaded from:
|
|
15816
|
+
* - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
|
|
15817
|
+
* plain resolution and runtime updates are refused.
|
|
15818
|
+
* - `baked` — the immutable image seed closure (no data-dir root active).
|
|
15819
|
+
* - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
|
|
15820
|
+
*/
|
|
15821
|
+
var ServerBootModeSchema = _enum([
|
|
15822
|
+
"workspace",
|
|
15823
|
+
"baked",
|
|
15824
|
+
"data-root"
|
|
15825
|
+
]);
|
|
15826
|
+
/**
|
|
15827
|
+
* Update lifecycle state:
|
|
15828
|
+
* - `idle` / `checking` / `staging` — steady / in-flight registry work.
|
|
15829
|
+
* - `pending-restart` — a version is staged and the node has NOT yet
|
|
15830
|
+
* restarted onto it (still running the OLD version).
|
|
15831
|
+
* - `awaiting-confirmation` — the node HAS restarted onto the staged version
|
|
15832
|
+
* (it is the active probation boot) and is waiting to confirm boot-health.
|
|
15833
|
+
* Apply/rollback are refused in this state and the node must NOT be
|
|
15834
|
+
* manually restarted, or the probation boot auto-rolls-back.
|
|
15835
|
+
*/
|
|
15836
|
+
var ServerUpdateStateSchema = _enum([
|
|
15837
|
+
"idle",
|
|
15838
|
+
"checking",
|
|
15839
|
+
"staging",
|
|
15840
|
+
"pending-restart",
|
|
15841
|
+
"awaiting-confirmation"
|
|
15842
|
+
]);
|
|
15843
|
+
var ServerRollbackInfoSchema = object({
|
|
15844
|
+
/** The version that failed (or was manually rolled back). */
|
|
15845
|
+
fromVersion: string(),
|
|
15846
|
+
/** The version rolled back to; null = the baked seed. */
|
|
15847
|
+
toVersion: string().nullable(),
|
|
15848
|
+
atMs: number(),
|
|
15849
|
+
reason: string()
|
|
15522
15850
|
});
|
|
15523
|
-
var
|
|
15524
|
-
|
|
15525
|
-
|
|
15526
|
-
|
|
15851
|
+
var ServerPackageStatusSchema = object({
|
|
15852
|
+
/** Root package name (`@camstack/server` on the hub). */
|
|
15853
|
+
packageName: string(),
|
|
15854
|
+
/** Version of the code the running process ACTUALLY loaded. */
|
|
15855
|
+
runningVersion: string().nullable(),
|
|
15856
|
+
/** Node.js runtime version the node's process runs on (`process.versions.node`). */
|
|
15857
|
+
nodeRuntimeVersion: string().nullable(),
|
|
15858
|
+
/** Active data-dir root version; null when booted from seed/workspace. */
|
|
15859
|
+
activeVersion: string().nullable(),
|
|
15860
|
+
/** N-1 version kept for rollback; null when no previous version exists. */
|
|
15861
|
+
previousVersion: string().nullable(),
|
|
15862
|
+
/** Version of the immutable baked seed closure (image fallback). */
|
|
15863
|
+
seedVersion: string().nullable(),
|
|
15864
|
+
/** Latest registry version from the most recent check (null = never checked). */
|
|
15865
|
+
latestVersion: string().nullable(),
|
|
15866
|
+
updateAvailable: boolean(),
|
|
15867
|
+
bootMode: ServerBootModeSchema,
|
|
15868
|
+
updateState: ServerUpdateStateSchema,
|
|
15869
|
+
/** Version staged + awaiting its probation boot, when one is pending. */
|
|
15870
|
+
pendingVersion: string().nullable(),
|
|
15871
|
+
/** Set when the last freshly-activated version failed its boot health-check. */
|
|
15872
|
+
rolledBack: ServerRollbackInfoSchema.nullable(),
|
|
15873
|
+
/**
|
|
15874
|
+
* True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
|
|
15875
|
+
* hub is running from the baked seed (or workspace) while installed data-dir
|
|
15876
|
+
* versions are being IGNORED. Surfaced as a warning in the UI.
|
|
15877
|
+
*/
|
|
15878
|
+
stateFileCorrupt: boolean(),
|
|
15879
|
+
lastCheckedAtMs: number().nullable()
|
|
15880
|
+
});
|
|
15881
|
+
var ServerUpdateCheckResultSchema = object({
|
|
15882
|
+
packageName: string(),
|
|
15883
|
+
runningVersion: string().nullable(),
|
|
15884
|
+
latestVersion: string().nullable(),
|
|
15885
|
+
updateAvailable: boolean(),
|
|
15886
|
+
checkedAtMs: number(),
|
|
15887
|
+
/** Non-null when the registry lookup failed (offline, bad registry, …). */
|
|
15888
|
+
error: string().nullable()
|
|
15889
|
+
});
|
|
15890
|
+
var ServerUpdateActionResultSchema = object({
|
|
15891
|
+
accepted: boolean(),
|
|
15892
|
+
targetVersion: string().nullable(),
|
|
15893
|
+
/** True when a graceful restart was scheduled to apply the change. */
|
|
15894
|
+
restarting: boolean(),
|
|
15895
|
+
message: string()
|
|
15896
|
+
});
|
|
15897
|
+
method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
|
|
15898
|
+
kind: "mutation",
|
|
15899
|
+
auth: "admin"
|
|
15900
|
+
}), method(object({
|
|
15901
|
+
/** Explicit target version; omitted = latest from the registry. */
|
|
15902
|
+
version: string().optional() }), ServerUpdateActionResultSchema, {
|
|
15903
|
+
kind: "mutation",
|
|
15904
|
+
auth: "admin"
|
|
15905
|
+
}), method(_void(), ServerUpdateActionResultSchema, {
|
|
15906
|
+
kind: "mutation",
|
|
15907
|
+
auth: "admin"
|
|
15908
|
+
}), method(_void(), ServerUpdateActionResultSchema, {
|
|
15909
|
+
kind: "mutation",
|
|
15910
|
+
auth: "admin"
|
|
15527
15911
|
});
|
|
15528
|
-
method(object({
|
|
15529
|
-
deviceId: number(),
|
|
15530
|
-
streams: array(RegisteredStreamSchema).readonly()
|
|
15531
|
-
}), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(ExposedResourceSchema).readonly());
|
|
15532
15912
|
/**
|
|
15533
15913
|
* Query filter for settings-store collections.
|
|
15534
15914
|
*/
|
|
@@ -15694,9 +16074,9 @@ var smtpProviderCapability = {
|
|
|
15694
16074
|
/**
|
|
15695
16075
|
* A single device snapshot returned as base64 JPEG/PNG.
|
|
15696
16076
|
*
|
|
15697
|
-
*
|
|
15698
|
-
*
|
|
15699
|
-
*
|
|
16077
|
+
* The `SnapshotAddon` wrapper returns this shape whether the frame came from
|
|
16078
|
+
* the device-native provider (onboard capture) or from the stream-broker
|
|
16079
|
+
* prebuffer fallback.
|
|
15700
16080
|
*/
|
|
15701
16081
|
var SnapshotImageSchema = object({
|
|
15702
16082
|
base64: string(),
|
|
@@ -15727,11 +16107,12 @@ DeviceType.Camera, method(object({
|
|
|
15727
16107
|
}), SnapshotImageSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
15728
16108
|
kind: "mutation",
|
|
15729
16109
|
auth: "admin"
|
|
15730
|
-
})
|
|
15731
|
-
method(object({ deviceId: number() }), boolean()), method(object({
|
|
16110
|
+
}), systemMethod(object({ deviceIds: array(number()).min(1).max(200) }), array(object({
|
|
15732
16111
|
deviceId: number(),
|
|
15733
|
-
|
|
15734
|
-
|
|
16112
|
+
lastCapturedAt: number().nullable(),
|
|
16113
|
+
cacheAgeMs: number().nullable(),
|
|
16114
|
+
etag: string().nullable()
|
|
16115
|
+
})));
|
|
15735
16116
|
/**
|
|
15736
16117
|
* `sso-bridge` — internal hub-only cap that lets SSO-style auth
|
|
15737
16118
|
* providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
|
|
@@ -15982,10 +16363,32 @@ method(_void(), array(TurnServerSchema).readonly());
|
|
|
15982
16363
|
* b. `finishAuthentication({userId, response})` → server verifies
|
|
15983
16364
|
* the assertion, bumps the credential counter, returns ok.
|
|
15984
16365
|
*
|
|
16366
|
+
* 2b. Usernameless (discoverable-credential) authentication — the
|
|
16367
|
+
* passkey IS the primary factor, no password leg:
|
|
16368
|
+
* a. `beginDiscoverableAuthentication({})` → assertion options with
|
|
16369
|
+
* EMPTY `allowCredentials` (the browser offers every resident
|
|
16370
|
+
* passkey it holds for this RP) + `userVerification: 'required'`
|
|
16371
|
+
* (the passkey replaces both factors, so UV is mandatory).
|
|
16372
|
+
* The challenge is stored server-side, NOT bound to any user.
|
|
16373
|
+
* b. `finishDiscoverableAuthentication({response})` → the provider
|
|
16374
|
+
* resolves the credential by the response's credential id,
|
|
16375
|
+
* verifies the assertion against the stored challenge + that
|
|
16376
|
+
* credential's public key/counter, and returns the OWNING
|
|
16377
|
+
* `userId` — the caller (core auth router) mints the session.
|
|
16378
|
+
*
|
|
15985
16379
|
* 3. Management:
|
|
15986
16380
|
* - `listPasskeys({userId})` — enumerate user's enrolled credentials.
|
|
15987
16381
|
* - `removePasskey({userId, credentialId})` — revoke one credential.
|
|
15988
16382
|
*
|
|
16383
|
+
* 4. Second-factor preference (opt-in, default OFF):
|
|
16384
|
+
* Enrolling a passkey only enables passkey-FIRST sign-in. It is
|
|
16385
|
+
* demanded as a second factor after a password login ONLY when the
|
|
16386
|
+
* user explicitly opts in via `setSecondFactorPreference`.
|
|
16387
|
+
* - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
|
|
16388
|
+
* row ⇒ `enabled: false`).
|
|
16389
|
+
* - `setSecondFactorPreference({userId, enabled})` — persisted by
|
|
16390
|
+
* the providing addon beside its credentials.
|
|
16391
|
+
*
|
|
15989
16392
|
* Challenges are short-lived (5 min, in-memory). The cap is internal —
|
|
15990
16393
|
* the admin-ui composes the begin/finish round-trip and never exposes
|
|
15991
16394
|
* the cap to non-admins.
|
|
@@ -16028,6 +16431,17 @@ method(object({
|
|
|
16028
16431
|
}), object({ verified: boolean() }), {
|
|
16029
16432
|
kind: "mutation",
|
|
16030
16433
|
access: "view"
|
|
16434
|
+
}), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
|
|
16435
|
+
kind: "mutation",
|
|
16436
|
+
access: "view"
|
|
16437
|
+
}), method(object({
|
|
16438
|
+
/** AuthenticationResponseJSON from the browser. */
|
|
16439
|
+
response: record(string(), unknown()) }), object({
|
|
16440
|
+
verified: boolean(),
|
|
16441
|
+
userId: string().nullable()
|
|
16442
|
+
}), {
|
|
16443
|
+
kind: "mutation",
|
|
16444
|
+
access: "view"
|
|
16031
16445
|
}), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
|
|
16032
16446
|
userId: string(),
|
|
16033
16447
|
credentialId: string()
|
|
@@ -16035,6 +16449,13 @@ method(object({
|
|
|
16035
16449
|
kind: "mutation",
|
|
16036
16450
|
auth: "admin",
|
|
16037
16451
|
access: "delete"
|
|
16452
|
+
}), method(object({ userId: string() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
|
|
16453
|
+
userId: string(),
|
|
16454
|
+
enabled: boolean()
|
|
16455
|
+
}), object({ success: literal(true) }), {
|
|
16456
|
+
kind: "mutation",
|
|
16457
|
+
auth: "admin",
|
|
16458
|
+
access: "create"
|
|
16038
16459
|
});
|
|
16039
16460
|
/**
|
|
16040
16461
|
* `videoclips` — the unified, navigable-clip surface for a camera.
|
|
@@ -16092,9 +16513,10 @@ method(object({
|
|
|
16092
16513
|
auth: "admin"
|
|
16093
16514
|
});
|
|
16094
16515
|
/**
|
|
16095
|
-
* Optional client-side hints sent at session creation to help the
|
|
16096
|
-
*
|
|
16097
|
-
*
|
|
16516
|
+
* Optional client-side hints sent at session creation to help the provider
|
|
16517
|
+
* pick the best native source. All fields optional — a viewer that knows
|
|
16518
|
+
* nothing still gets a sane default. (Relocated from the retired `webrtc`
|
|
16519
|
+
* collection cap; this `webrtc-session` cap is the live signaling surface.)
|
|
16098
16520
|
*/
|
|
16099
16521
|
var webrtcClientHintsSchema = object({
|
|
16100
16522
|
viewportWidth: number().int().positive().optional(),
|
|
@@ -16105,22 +16527,6 @@ var webrtcClientHintsSchema = object({
|
|
|
16105
16527
|
/** Hard tier override; takes precedence over scoring when registered. */
|
|
16106
16528
|
prefersTier: string().optional()
|
|
16107
16529
|
}).partial();
|
|
16108
|
-
method(object({
|
|
16109
|
-
streamId: string(),
|
|
16110
|
-
sdpOffer: string()
|
|
16111
|
-
}), string(), { kind: "mutation" }), method(object({ streamId: string() }), boolean()), method(object({
|
|
16112
|
-
streamId: string(),
|
|
16113
|
-
codec: string()
|
|
16114
|
-
}), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
|
|
16115
|
-
streamId: string(),
|
|
16116
|
-
hints: webrtcClientHintsSchema.optional()
|
|
16117
|
-
}), object({
|
|
16118
|
-
sessionId: string(),
|
|
16119
|
-
sdpOffer: string()
|
|
16120
|
-
}), { kind: "mutation" }), method(object({
|
|
16121
|
-
sessionId: string(),
|
|
16122
|
-
sdpAnswer: string()
|
|
16123
|
-
}), _void(), { kind: "mutation" }), method(object({ sessionId: string() }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), boolean());
|
|
16124
16530
|
/**
|
|
16125
16531
|
* Discriminated target for a WebRTC session. The client sends this
|
|
16126
16532
|
* structured object instead of building / parsing brokerId strings;
|
|
@@ -16607,7 +17013,15 @@ var FrameworkPackageStatusSchema = object({
|
|
|
16607
17013
|
latestVersion: string().nullable(),
|
|
16608
17014
|
hasUpdate: boolean(),
|
|
16609
17015
|
/** Optional manifest description for the row tooltip. */
|
|
16610
|
-
description: string().optional()
|
|
17016
|
+
description: string().optional(),
|
|
17017
|
+
/**
|
|
17018
|
+
* Content build-id (md5 of the resolved `dist/` tree) of the code the hub
|
|
17019
|
+
* ACTUALLY loaded. Framework packages ship code changes without always
|
|
17020
|
+
* bumping `currentVersion`, so semver alone hides "same version, new code".
|
|
17021
|
+
* `null` when the dist can't be hashed (not installed / empty). The admin-UI
|
|
17022
|
+
* surfaces this so a stale-code hub is visible even at an unchanged version.
|
|
17023
|
+
*/
|
|
17024
|
+
buildId: string().nullable()
|
|
16611
17025
|
});
|
|
16612
17026
|
var LogStreamEntrySchema = object({
|
|
16613
17027
|
timestamp: string(),
|
|
@@ -16843,7 +17257,17 @@ var FaceInfoSchema = object({
|
|
|
16843
17257
|
recognizedIdentityId: string().optional(),
|
|
16844
17258
|
identityName: string().optional(),
|
|
16845
17259
|
assigned: boolean(),
|
|
16846
|
-
base64: string().optional()
|
|
17260
|
+
base64: string().optional(),
|
|
17261
|
+
/** Design B: the face bbox (pixel space) on the key frame — lets a detail
|
|
17262
|
+
* view draw the box over the native `keyFrameMediaKey` frame. Absent on
|
|
17263
|
+
* legacy rows written before design B. */
|
|
17264
|
+
faceBbox: BoundingBoxSchema.optional(),
|
|
17265
|
+
/** Design B: MediaStore key of the track's native-resolution key frame.
|
|
17266
|
+
* Fetch the native JPEG via the event-media data-plane
|
|
17267
|
+
* (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
|
|
17268
|
+
* track produced no key frame (e.g. native/onboard source) — the UI falls
|
|
17269
|
+
* back to the inline `base64` face crop. */
|
|
17270
|
+
keyFrameMediaKey: string().optional()
|
|
16847
17271
|
});
|
|
16848
17272
|
var FaceFilterEnum = _enum([
|
|
16849
17273
|
"unassigned",
|
|
@@ -17540,6 +17964,16 @@ var TopologyCategorySchema = object({
|
|
|
17540
17964
|
healthy: number(),
|
|
17541
17965
|
addons: array(TopologyCategoryAddonSchema).readonly()
|
|
17542
17966
|
});
|
|
17967
|
+
/**
|
|
17968
|
+
* The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
|
|
17969
|
+
* `@camstack/agent` on agents) as reported by its `registerNode` manifest —
|
|
17970
|
+
* version visibility for the Server management surface. Nullable: offline
|
|
17971
|
+
* rows and pre-phase-2 nodes report none.
|
|
17972
|
+
*/
|
|
17973
|
+
var TopologyRootPackageSchema = object({
|
|
17974
|
+
name: string(),
|
|
17975
|
+
version: string()
|
|
17976
|
+
});
|
|
17543
17977
|
var TopologyNodeSchema = object({
|
|
17544
17978
|
id: string(),
|
|
17545
17979
|
name: string(),
|
|
@@ -17563,7 +17997,8 @@ var TopologyNodeSchema = object({
|
|
|
17563
17997
|
status: string()
|
|
17564
17998
|
})).readonly(),
|
|
17565
17999
|
processes: array(TopologyProcessSchema).readonly(),
|
|
17566
|
-
categories: array(TopologyCategorySchema).readonly()
|
|
18000
|
+
categories: array(TopologyCategorySchema).readonly(),
|
|
18001
|
+
rootPackage: TopologyRootPackageSchema.nullable()
|
|
17567
18002
|
});
|
|
17568
18003
|
var CapUsageEdgeSchema = object({
|
|
17569
18004
|
callerAddonId: string(),
|
|
@@ -20363,6 +20798,12 @@ Object.freeze({
|
|
|
20363
20798
|
addonId: null,
|
|
20364
20799
|
access: "create"
|
|
20365
20800
|
},
|
|
20801
|
+
"loginMethod.getLoginMethods": {
|
|
20802
|
+
capName: "login-method",
|
|
20803
|
+
capScope: "system",
|
|
20804
|
+
addonId: null,
|
|
20805
|
+
access: "view"
|
|
20806
|
+
},
|
|
20366
20807
|
"mediaPlayer.next": {
|
|
20367
20808
|
capName: "media-player",
|
|
20368
20809
|
capScope: "device",
|
|
@@ -20945,6 +21386,12 @@ Object.freeze({
|
|
|
20945
21386
|
addonId: null,
|
|
20946
21387
|
access: "view"
|
|
20947
21388
|
},
|
|
21389
|
+
"pipelineAnalytics.getKeyEvents": {
|
|
21390
|
+
capName: "pipeline-analytics",
|
|
21391
|
+
capScope: "device",
|
|
21392
|
+
addonId: null,
|
|
21393
|
+
access: "view"
|
|
21394
|
+
},
|
|
20948
21395
|
"pipelineAnalytics.getMotionEvents": {
|
|
20949
21396
|
capName: "pipeline-analytics",
|
|
20950
21397
|
capScope: "device",
|
|
@@ -20993,23 +21440,23 @@ Object.freeze({
|
|
|
20993
21440
|
addonId: null,
|
|
20994
21441
|
access: "create"
|
|
20995
21442
|
},
|
|
20996
|
-
"pipelineExecutor.
|
|
21443
|
+
"pipelineExecutor.clearDeviceOverrides": {
|
|
20997
21444
|
capName: "pipeline-executor",
|
|
20998
21445
|
capScope: "system",
|
|
20999
21446
|
addonId: null,
|
|
21000
21447
|
access: "delete"
|
|
21001
21448
|
},
|
|
21002
|
-
"pipelineExecutor.
|
|
21449
|
+
"pipelineExecutor.deleteModel": {
|
|
21003
21450
|
capName: "pipeline-executor",
|
|
21004
21451
|
capScope: "system",
|
|
21005
21452
|
addonId: null,
|
|
21006
21453
|
access: "delete"
|
|
21007
21454
|
},
|
|
21008
|
-
"pipelineExecutor.
|
|
21455
|
+
"pipelineExecutor.deleteTemplate": {
|
|
21009
21456
|
capName: "pipeline-executor",
|
|
21010
21457
|
capScope: "system",
|
|
21011
21458
|
addonId: null,
|
|
21012
|
-
access: "
|
|
21459
|
+
access: "delete"
|
|
21013
21460
|
},
|
|
21014
21461
|
"pipelineExecutor.downloadModel": {
|
|
21015
21462
|
capName: "pipeline-executor",
|
|
@@ -21203,13 +21650,13 @@ Object.freeze({
|
|
|
21203
21650
|
addonId: null,
|
|
21204
21651
|
access: "create"
|
|
21205
21652
|
},
|
|
21206
|
-
"
|
|
21207
|
-
capName: "pipeline-
|
|
21653
|
+
"pipelineExecutor.validatePipeline": {
|
|
21654
|
+
capName: "pipeline-executor",
|
|
21208
21655
|
capScope: "system",
|
|
21209
21656
|
addonId: null,
|
|
21210
|
-
access: "
|
|
21657
|
+
access: "view"
|
|
21211
21658
|
},
|
|
21212
|
-
"pipelineOrchestrator.
|
|
21659
|
+
"pipelineOrchestrator.assignAudio": {
|
|
21213
21660
|
capName: "pipeline-orchestrator",
|
|
21214
21661
|
capScope: "system",
|
|
21215
21662
|
addonId: null,
|
|
@@ -21293,19 +21740,13 @@ Object.freeze({
|
|
|
21293
21740
|
addonId: null,
|
|
21294
21741
|
access: "view"
|
|
21295
21742
|
},
|
|
21296
|
-
"pipelineOrchestrator.
|
|
21297
|
-
capName: "pipeline-orchestrator",
|
|
21298
|
-
capScope: "system",
|
|
21299
|
-
addonId: null,
|
|
21300
|
-
access: "view"
|
|
21301
|
-
},
|
|
21302
|
-
"pipelineOrchestrator.getDecoderAssignments": {
|
|
21743
|
+
"pipelineOrchestrator.getGlobalMetrics": {
|
|
21303
21744
|
capName: "pipeline-orchestrator",
|
|
21304
21745
|
capScope: "system",
|
|
21305
21746
|
addonId: null,
|
|
21306
21747
|
access: "view"
|
|
21307
21748
|
},
|
|
21308
|
-
"pipelineOrchestrator.
|
|
21749
|
+
"pipelineOrchestrator.getIngestOwner": {
|
|
21309
21750
|
capName: "pipeline-orchestrator",
|
|
21310
21751
|
capScope: "system",
|
|
21311
21752
|
addonId: null,
|
|
@@ -21347,6 +21788,12 @@ Object.freeze({
|
|
|
21347
21788
|
addonId: null,
|
|
21348
21789
|
access: "delete"
|
|
21349
21790
|
},
|
|
21791
|
+
"pipelineOrchestrator.resetNodePipelineDefaults": {
|
|
21792
|
+
capName: "pipeline-orchestrator",
|
|
21793
|
+
capScope: "system",
|
|
21794
|
+
addonId: null,
|
|
21795
|
+
access: "delete"
|
|
21796
|
+
},
|
|
21350
21797
|
"pipelineOrchestrator.resolvePipeline": {
|
|
21351
21798
|
capName: "pipeline-orchestrator",
|
|
21352
21799
|
capScope: "system",
|
|
@@ -21383,37 +21830,37 @@ Object.freeze({
|
|
|
21383
21830
|
addonId: null,
|
|
21384
21831
|
access: "create"
|
|
21385
21832
|
},
|
|
21386
|
-
"pipelineOrchestrator.
|
|
21833
|
+
"pipelineOrchestrator.setAgentReachableHost": {
|
|
21387
21834
|
capName: "pipeline-orchestrator",
|
|
21388
21835
|
capScope: "system",
|
|
21389
21836
|
addonId: null,
|
|
21390
21837
|
access: "create"
|
|
21391
21838
|
},
|
|
21392
|
-
"pipelineOrchestrator.
|
|
21839
|
+
"pipelineOrchestrator.setCameraPipelineForAgent": {
|
|
21393
21840
|
capName: "pipeline-orchestrator",
|
|
21394
21841
|
capScope: "system",
|
|
21395
21842
|
addonId: null,
|
|
21396
21843
|
access: "create"
|
|
21397
21844
|
},
|
|
21398
|
-
"pipelineOrchestrator.
|
|
21845
|
+
"pipelineOrchestrator.setCameraStepOverride": {
|
|
21399
21846
|
capName: "pipeline-orchestrator",
|
|
21400
21847
|
capScope: "system",
|
|
21401
21848
|
addonId: null,
|
|
21402
21849
|
access: "create"
|
|
21403
21850
|
},
|
|
21404
|
-
"pipelineOrchestrator.
|
|
21851
|
+
"pipelineOrchestrator.setCameraStepToggle": {
|
|
21405
21852
|
capName: "pipeline-orchestrator",
|
|
21406
21853
|
capScope: "system",
|
|
21407
21854
|
addonId: null,
|
|
21408
21855
|
access: "create"
|
|
21409
21856
|
},
|
|
21410
|
-
"pipelineOrchestrator.
|
|
21857
|
+
"pipelineOrchestrator.setCapabilityBinding": {
|
|
21411
21858
|
capName: "pipeline-orchestrator",
|
|
21412
21859
|
capScope: "system",
|
|
21413
21860
|
addonId: null,
|
|
21414
21861
|
access: "create"
|
|
21415
21862
|
},
|
|
21416
|
-
"pipelineOrchestrator.
|
|
21863
|
+
"pipelineOrchestrator.unassignAudio": {
|
|
21417
21864
|
capName: "pipeline-orchestrator",
|
|
21418
21865
|
capScope: "system",
|
|
21419
21866
|
addonId: null,
|
|
@@ -21473,6 +21920,12 @@ Object.freeze({
|
|
|
21473
21920
|
addonId: null,
|
|
21474
21921
|
access: "view"
|
|
21475
21922
|
},
|
|
21923
|
+
"pipelineRunner.getNativeCrop": {
|
|
21924
|
+
capName: "pipeline-runner",
|
|
21925
|
+
capScope: "system",
|
|
21926
|
+
addonId: null,
|
|
21927
|
+
access: "view"
|
|
21928
|
+
},
|
|
21476
21929
|
"pipelineRunner.reportMotion": {
|
|
21477
21930
|
capName: "pipeline-runner",
|
|
21478
21931
|
capScope: "system",
|
|
@@ -21713,33 +22166,45 @@ Object.freeze({
|
|
|
21713
22166
|
addonId: null,
|
|
21714
22167
|
access: "create"
|
|
21715
22168
|
},
|
|
21716
|
-
"
|
|
21717
|
-
capName: "
|
|
22169
|
+
"scriptRunner.run": {
|
|
22170
|
+
capName: "script-runner",
|
|
22171
|
+
capScope: "device",
|
|
22172
|
+
addonId: null,
|
|
22173
|
+
access: "create"
|
|
22174
|
+
},
|
|
22175
|
+
"scriptRunner.stop": {
|
|
22176
|
+
capName: "script-runner",
|
|
22177
|
+
capScope: "device",
|
|
22178
|
+
addonId: null,
|
|
22179
|
+
access: "create"
|
|
22180
|
+
},
|
|
22181
|
+
"serverManagement.applyServerUpdate": {
|
|
22182
|
+
capName: "server-management",
|
|
21718
22183
|
capScope: "system",
|
|
21719
22184
|
addonId: null,
|
|
21720
|
-
access: "
|
|
22185
|
+
access: "create"
|
|
21721
22186
|
},
|
|
21722
|
-
"
|
|
21723
|
-
capName: "
|
|
22187
|
+
"serverManagement.checkServerUpdate": {
|
|
22188
|
+
capName: "server-management",
|
|
21724
22189
|
capScope: "system",
|
|
21725
22190
|
addonId: null,
|
|
21726
22191
|
access: "create"
|
|
21727
22192
|
},
|
|
21728
|
-
"
|
|
21729
|
-
capName: "
|
|
22193
|
+
"serverManagement.getServerPackageStatus": {
|
|
22194
|
+
capName: "server-management",
|
|
21730
22195
|
capScope: "system",
|
|
21731
22196
|
addonId: null,
|
|
21732
|
-
access: "
|
|
22197
|
+
access: "view"
|
|
21733
22198
|
},
|
|
21734
|
-
"
|
|
21735
|
-
capName: "
|
|
21736
|
-
capScope: "
|
|
22199
|
+
"serverManagement.restartServer": {
|
|
22200
|
+
capName: "server-management",
|
|
22201
|
+
capScope: "system",
|
|
21737
22202
|
addonId: null,
|
|
21738
22203
|
access: "create"
|
|
21739
22204
|
},
|
|
21740
|
-
"
|
|
21741
|
-
capName: "
|
|
21742
|
-
capScope: "
|
|
22205
|
+
"serverManagement.rollbackServerUpdate": {
|
|
22206
|
+
capName: "server-management",
|
|
22207
|
+
capScope: "system",
|
|
21743
22208
|
addonId: null,
|
|
21744
22209
|
access: "create"
|
|
21745
22210
|
},
|
|
@@ -21827,23 +22292,17 @@ Object.freeze({
|
|
|
21827
22292
|
addonId: null,
|
|
21828
22293
|
access: "view"
|
|
21829
22294
|
},
|
|
21830
|
-
"snapshot.
|
|
22295
|
+
"snapshot.getSnapshotOverview": {
|
|
21831
22296
|
capName: "snapshot",
|
|
21832
22297
|
capScope: "device",
|
|
21833
22298
|
addonId: null,
|
|
21834
|
-
access: "create"
|
|
21835
|
-
},
|
|
21836
|
-
"snapshotProvider.getSnapshot": {
|
|
21837
|
-
capName: "snapshot-provider",
|
|
21838
|
-
capScope: "system",
|
|
21839
|
-
addonId: null,
|
|
21840
22299
|
access: "view"
|
|
21841
22300
|
},
|
|
21842
|
-
"
|
|
21843
|
-
capName: "snapshot
|
|
21844
|
-
capScope: "
|
|
22301
|
+
"snapshot.invalidateCache": {
|
|
22302
|
+
capName: "snapshot",
|
|
22303
|
+
capScope: "device",
|
|
21845
22304
|
addonId: null,
|
|
21846
|
-
access: "
|
|
22305
|
+
access: "create"
|
|
21847
22306
|
},
|
|
21848
22307
|
"ssoBridge.signBridgeToken": {
|
|
21849
22308
|
capName: "sso-bridge",
|
|
@@ -22271,30 +22730,6 @@ Object.freeze({
|
|
|
22271
22730
|
addonId: null,
|
|
22272
22731
|
access: "view"
|
|
22273
22732
|
},
|
|
22274
|
-
"streamingEngine.getStreamUrl": {
|
|
22275
|
-
capName: "streaming-engine",
|
|
22276
|
-
capScope: "system",
|
|
22277
|
-
addonId: null,
|
|
22278
|
-
access: "view"
|
|
22279
|
-
},
|
|
22280
|
-
"streamingEngine.listStreams": {
|
|
22281
|
-
capName: "streaming-engine",
|
|
22282
|
-
capScope: "system",
|
|
22283
|
-
addonId: null,
|
|
22284
|
-
access: "view"
|
|
22285
|
-
},
|
|
22286
|
-
"streamingEngine.registerStream": {
|
|
22287
|
-
capName: "streaming-engine",
|
|
22288
|
-
capScope: "system",
|
|
22289
|
-
addonId: null,
|
|
22290
|
-
access: "create"
|
|
22291
|
-
},
|
|
22292
|
-
"streamingEngine.unregisterStream": {
|
|
22293
|
-
capName: "streaming-engine",
|
|
22294
|
-
capScope: "system",
|
|
22295
|
-
addonId: null,
|
|
22296
|
-
access: "delete"
|
|
22297
|
-
},
|
|
22298
22733
|
"streamParams.getConfigSchema": {
|
|
22299
22734
|
capName: "stream-params",
|
|
22300
22735
|
capScope: "device",
|
|
@@ -22541,6 +22976,12 @@ Object.freeze({
|
|
|
22541
22976
|
addonId: null,
|
|
22542
22977
|
access: "view"
|
|
22543
22978
|
},
|
|
22979
|
+
"userPasskeys.beginDiscoverableAuthentication": {
|
|
22980
|
+
capName: "user-passkeys",
|
|
22981
|
+
capScope: "system",
|
|
22982
|
+
addonId: null,
|
|
22983
|
+
access: "view"
|
|
22984
|
+
},
|
|
22544
22985
|
"userPasskeys.beginRegistration": {
|
|
22545
22986
|
capName: "user-passkeys",
|
|
22546
22987
|
capScope: "system",
|
|
@@ -22553,12 +22994,24 @@ Object.freeze({
|
|
|
22553
22994
|
addonId: null,
|
|
22554
22995
|
access: "view"
|
|
22555
22996
|
},
|
|
22997
|
+
"userPasskeys.finishDiscoverableAuthentication": {
|
|
22998
|
+
capName: "user-passkeys",
|
|
22999
|
+
capScope: "system",
|
|
23000
|
+
addonId: null,
|
|
23001
|
+
access: "view"
|
|
23002
|
+
},
|
|
22556
23003
|
"userPasskeys.finishRegistration": {
|
|
22557
23004
|
capName: "user-passkeys",
|
|
22558
23005
|
capScope: "system",
|
|
22559
23006
|
addonId: null,
|
|
22560
23007
|
access: "create"
|
|
22561
23008
|
},
|
|
23009
|
+
"userPasskeys.getSecondFactorPreference": {
|
|
23010
|
+
capName: "user-passkeys",
|
|
23011
|
+
capScope: "system",
|
|
23012
|
+
addonId: null,
|
|
23013
|
+
access: "view"
|
|
23014
|
+
},
|
|
22562
23015
|
"userPasskeys.listPasskeys": {
|
|
22563
23016
|
capName: "user-passkeys",
|
|
22564
23017
|
capScope: "system",
|
|
@@ -22571,6 +23024,12 @@ Object.freeze({
|
|
|
22571
23024
|
addonId: null,
|
|
22572
23025
|
access: "delete"
|
|
22573
23026
|
},
|
|
23027
|
+
"userPasskeys.setSecondFactorPreference": {
|
|
23028
|
+
capName: "user-passkeys",
|
|
23029
|
+
capScope: "system",
|
|
23030
|
+
addonId: null,
|
|
23031
|
+
access: "create"
|
|
23032
|
+
},
|
|
22574
23033
|
"vacuumControl.locate": {
|
|
22575
23034
|
capName: "vacuum-control",
|
|
22576
23035
|
capScope: "device",
|
|
@@ -22643,6 +23102,18 @@ Object.freeze({
|
|
|
22643
23102
|
addonId: null,
|
|
22644
23103
|
access: "view"
|
|
22645
23104
|
},
|
|
23105
|
+
"viewerUi.getStaticDir": {
|
|
23106
|
+
capName: "viewer-ui",
|
|
23107
|
+
capScope: "system",
|
|
23108
|
+
addonId: null,
|
|
23109
|
+
access: "view"
|
|
23110
|
+
},
|
|
23111
|
+
"viewerUi.getVersion": {
|
|
23112
|
+
capName: "viewer-ui",
|
|
23113
|
+
capScope: "system",
|
|
23114
|
+
addonId: null,
|
|
23115
|
+
access: "view"
|
|
23116
|
+
},
|
|
22646
23117
|
"waterHeater.setAway": {
|
|
22647
23118
|
capName: "water-heater",
|
|
22648
23119
|
capScope: "device",
|
|
@@ -22661,54 +23132,6 @@ Object.freeze({
|
|
|
22661
23132
|
addonId: null,
|
|
22662
23133
|
access: "create"
|
|
22663
23134
|
},
|
|
22664
|
-
"webrtc.closeSession": {
|
|
22665
|
-
capName: "webrtc",
|
|
22666
|
-
capScope: "system",
|
|
22667
|
-
addonId: null,
|
|
22668
|
-
access: "create"
|
|
22669
|
-
},
|
|
22670
|
-
"webrtc.createSession": {
|
|
22671
|
-
capName: "webrtc",
|
|
22672
|
-
capScope: "system",
|
|
22673
|
-
addonId: null,
|
|
22674
|
-
access: "create"
|
|
22675
|
-
},
|
|
22676
|
-
"webrtc.handleAnswer": {
|
|
22677
|
-
capName: "webrtc",
|
|
22678
|
-
capScope: "system",
|
|
22679
|
-
addonId: null,
|
|
22680
|
-
access: "create"
|
|
22681
|
-
},
|
|
22682
|
-
"webrtc.handleOffer": {
|
|
22683
|
-
capName: "webrtc",
|
|
22684
|
-
capScope: "system",
|
|
22685
|
-
addonId: null,
|
|
22686
|
-
access: "create"
|
|
22687
|
-
},
|
|
22688
|
-
"webrtc.hasAdaptiveBitrate": {
|
|
22689
|
-
capName: "webrtc",
|
|
22690
|
-
capScope: "system",
|
|
22691
|
-
addonId: null,
|
|
22692
|
-
access: "view"
|
|
22693
|
-
},
|
|
22694
|
-
"webrtc.registerStream": {
|
|
22695
|
-
capName: "webrtc",
|
|
22696
|
-
capScope: "system",
|
|
22697
|
-
addonId: null,
|
|
22698
|
-
access: "create"
|
|
22699
|
-
},
|
|
22700
|
-
"webrtc.supportsStream": {
|
|
22701
|
-
capName: "webrtc",
|
|
22702
|
-
capScope: "system",
|
|
22703
|
-
addonId: null,
|
|
22704
|
-
access: "view"
|
|
22705
|
-
},
|
|
22706
|
-
"webrtc.unregisterStream": {
|
|
22707
|
-
capName: "webrtc",
|
|
22708
|
-
capScope: "system",
|
|
22709
|
-
addonId: null,
|
|
22710
|
-
access: "delete"
|
|
22711
|
-
},
|
|
22712
23135
|
"webrtcSession.addIceCandidate": {
|
|
22713
23136
|
capName: "webrtc-session",
|
|
22714
23137
|
capScope: "device",
|