@camstack/addon-provider-tuya 0.1.6 → 0.1.8
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 +715 -288
- package/dist/addon.mjs +715 -288
- package/package.json +1 -1
package/dist/addon.mjs
CHANGED
|
@@ -4645,7 +4645,7 @@ function preprocess(fn, schema) {
|
|
|
4645
4645
|
});
|
|
4646
4646
|
}
|
|
4647
4647
|
//#endregion
|
|
4648
|
-
//#region ../types/dist/sleep-
|
|
4648
|
+
//#region ../types/dist/sleep-Baang_XW.mjs
|
|
4649
4649
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
4650
4650
|
EventCategory["SystemBoot"] = "system.boot";
|
|
4651
4651
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -4831,6 +4831,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
4831
4831
|
*/
|
|
4832
4832
|
EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
|
|
4833
4833
|
/**
|
|
4834
|
+
* The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
|
|
4835
|
+
* Emitted by addon-pipeline-orchestrator whenever it (re)derives node
|
|
4836
|
+
* capabilities — at boot, on agent online/offline, and on an ingest-node
|
|
4837
|
+
* flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
|
|
4838
|
+
* keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
|
|
4839
|
+
* cross-process `getIngestOwner` query (push the authority's decision instead
|
|
4840
|
+
* of polling it on the hot path). Idempotent state — re-emitted on every
|
|
4841
|
+
* topology change, so a dropped event self-heals on the next one (plus the
|
|
4842
|
+
* broker's long backstop reconcile query).
|
|
4843
|
+
*/
|
|
4844
|
+
EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
|
|
4845
|
+
/**
|
|
4834
4846
|
* Periodic snapshot of per-node pipeline-runner load
|
|
4835
4847
|
* (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
|
|
4836
4848
|
* subscribe instead of polling `pipelineRunner.getLocalLoad`.
|
|
@@ -5354,10 +5366,6 @@ function hydrateField(field, values) {
|
|
|
5354
5366
|
};
|
|
5355
5367
|
}
|
|
5356
5368
|
const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
|
|
5357
|
-
if (field.type === "password") return {
|
|
5358
|
-
...field,
|
|
5359
|
-
value: ""
|
|
5360
|
-
};
|
|
5361
5369
|
const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
|
|
5362
5370
|
return {
|
|
5363
5371
|
...field,
|
|
@@ -6741,10 +6749,25 @@ function method(input, output, options) {
|
|
|
6741
6749
|
timeoutMs: options?.timeoutMs
|
|
6742
6750
|
};
|
|
6743
6751
|
}
|
|
6752
|
+
/**
|
|
6753
|
+
* A wrapper/system-only method: served exclusively by the cap's system-level
|
|
6754
|
+
* provider (`InferProvider`), and OPTIONAL on `InferNativeProvider` so per-device
|
|
6755
|
+
* driver natives don't stub out a wrapper concern (e.g. a cross-device cache
|
|
6756
|
+
* overview). The `systemOnly: true` literal is what `InferNativeProvider` keys on.
|
|
6757
|
+
*/
|
|
6758
|
+
function systemMethod(input, output, options) {
|
|
6759
|
+
return {
|
|
6760
|
+
...method(input, output, options),
|
|
6761
|
+
systemOnly: true
|
|
6762
|
+
};
|
|
6763
|
+
}
|
|
6744
6764
|
/** Shorthand to define an event schema */
|
|
6745
6765
|
function event(data) {
|
|
6746
6766
|
return { data };
|
|
6747
6767
|
}
|
|
6768
|
+
var StaticDirOutputSchema$1 = object({ staticDir: string() });
|
|
6769
|
+
var VersionOutputSchema$1 = object({ version: string() });
|
|
6770
|
+
method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
|
|
6748
6771
|
var StaticDirOutputSchema = object({ staticDir: string() });
|
|
6749
6772
|
var VersionOutputSchema = object({ version: string() });
|
|
6750
6773
|
method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
|
|
@@ -6926,6 +6949,36 @@ var ModelFormatsSchema = object({
|
|
|
6926
6949
|
tflite: ModelFormatEntrySchema.optional(),
|
|
6927
6950
|
pt: ModelFormatEntrySchema.optional()
|
|
6928
6951
|
});
|
|
6952
|
+
/**
|
|
6953
|
+
* Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
|
|
6954
|
+
* the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
|
|
6955
|
+
* grouped Family→Tier→Variant picker renders identically in the config UI and
|
|
6956
|
+
* in the pipeline/device steppers. The flat `id` stays the source of truth for
|
|
6957
|
+
* resolution/download/persistence; this is a presentation overlay resolved back
|
|
6958
|
+
* to an `id`.
|
|
6959
|
+
*/
|
|
6960
|
+
var ModelVariantGroupSchema = object({
|
|
6961
|
+
/** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
|
|
6962
|
+
family: string(),
|
|
6963
|
+
/** Size within the family, e.g. `n` | `s` | `m` | `l`. */
|
|
6964
|
+
tier: string(),
|
|
6965
|
+
/** Quantization axis. Omit ⇒ the fp32 base build. */
|
|
6966
|
+
precision: _enum(["fp32", "int8"]).optional(),
|
|
6967
|
+
/**
|
|
6968
|
+
* Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
|
|
6969
|
+
* latency-optimized export (e.g. ReLU-activation variant) — the slot the
|
|
6970
|
+
* future performance variants plug into.
|
|
6971
|
+
*/
|
|
6972
|
+
optimization: _enum(["standard", "fast"]).optional(),
|
|
6973
|
+
/**
|
|
6974
|
+
* Input-resolution axis (square input side, px). Omit ⇒ the family's native
|
|
6975
|
+
* resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
|
|
6976
|
+
* cheap latency lever — especially on Apple ANE and the Intel N100 — at a
|
|
6977
|
+
* small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
|
|
6978
|
+
* the group so the selector can offer it as a variant axis.
|
|
6979
|
+
*/
|
|
6980
|
+
resolution: number().int().positive().optional()
|
|
6981
|
+
});
|
|
6929
6982
|
var ModelCatalogEntrySchema = object({
|
|
6930
6983
|
id: string(),
|
|
6931
6984
|
name: string(),
|
|
@@ -6955,7 +7008,43 @@ var ModelCatalogEntrySchema = object({
|
|
|
6955
7008
|
* Auxiliary files required at runtime (labels JSON, charset dict, etc.).
|
|
6956
7009
|
* Downloaded into the same modelsDir alongside the model file.
|
|
6957
7010
|
*/
|
|
6958
|
-
extraFiles: array(ModelExtraFileSchema).readonly().optional()
|
|
7011
|
+
extraFiles: array(ModelExtraFileSchema).readonly().optional(),
|
|
7012
|
+
/**
|
|
7013
|
+
* LEGACY entry — retained in the catalog so a persisted operator selection
|
|
7014
|
+
* still RESOLVES (and can be re-activated), but hidden from the selectable
|
|
7015
|
+
* model list and excluded from the auto format-default pick. Set on the
|
|
7016
|
+
* superseded / consolidated models (older lineages, redundant fp16 IRs) so
|
|
7017
|
+
* the active lineup stays the coherent curated ladder without deleting a
|
|
7018
|
+
* model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
|
|
7019
|
+
* an explicit legacy id that has a build for the node's format.
|
|
7020
|
+
*/
|
|
7021
|
+
legacy: boolean().optional(),
|
|
7022
|
+
/**
|
|
7023
|
+
* Measured quality/latency metadata — populated from the benchmark addon on
|
|
7024
|
+
* the real node classes. Absent = not yet measured (most entries today; the
|
|
7025
|
+
* catalog historically carried only `sizeMB`, a poor cross-architecture
|
|
7026
|
+
* speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
|
|
7027
|
+
*/
|
|
7028
|
+
metrics: object({
|
|
7029
|
+
map50: number().optional(),
|
|
7030
|
+
p95LatencyMs: record(string(), number()).optional()
|
|
7031
|
+
}).optional(),
|
|
7032
|
+
/**
|
|
7033
|
+
* SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
|
|
7034
|
+
* YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
|
|
7035
|
+
* the retraining addon and any future commercial distribution.
|
|
7036
|
+
*/
|
|
7037
|
+
license: string().optional(),
|
|
7038
|
+
/**
|
|
7039
|
+
* Variant-selector grouping. The UI groups models by `family` + `tier` and
|
|
7040
|
+
* offers `precision` / `optimization` as variant axes WITHIN a tier — so all
|
|
7041
|
+
* of a family's sizes and quantizations collapse into one grouped picker
|
|
7042
|
+
* instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
|
|
7043
|
+
* (legacy / custom models) — never shown in the grouped selector. The flat
|
|
7044
|
+
* `id` stays the source of truth for resolution/download/persistence; grouping
|
|
7045
|
+
* is a presentation overlay resolved back to an `id`.
|
|
7046
|
+
*/
|
|
7047
|
+
group: ModelVariantGroupSchema.optional()
|
|
6959
7048
|
});
|
|
6960
7049
|
var ConvertTargetSchema = discriminatedUnion("format", [object({
|
|
6961
7050
|
format: literal("openvino"),
|
|
@@ -7016,8 +7105,8 @@ var RecordingModeSchema = _enum([
|
|
|
7016
7105
|
"onAudioThreshold"
|
|
7017
7106
|
]);
|
|
7018
7107
|
/**
|
|
7019
|
-
* First-class, authoritative per-camera storage mode — the
|
|
7020
|
-
* reads directly (never inferred from `rules`):
|
|
7108
|
+
* First-class, authoritative per-camera storage mode — the explicit choice the
|
|
7109
|
+
* UI reads directly (never inferred from `rules`):
|
|
7021
7110
|
* - `off` — not recording.
|
|
7022
7111
|
* - `events` — record only around triggers (motion / audio threshold),
|
|
7023
7112
|
* with pre/post-buffer.
|
|
@@ -9180,26 +9269,13 @@ onBrightnessChanged: { data: object({
|
|
|
9180
9269
|
*/
|
|
9181
9270
|
runtimeState: BrightnessStatusSchema
|
|
9182
9271
|
};
|
|
9272
|
+
/** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
|
|
9183
9273
|
var StreamFormatSchema = _enum([
|
|
9184
9274
|
"webrtc",
|
|
9185
9275
|
"hls",
|
|
9186
9276
|
"mjpeg",
|
|
9187
9277
|
"rtsp"
|
|
9188
9278
|
]);
|
|
9189
|
-
var StreamInfoSchema = object({
|
|
9190
|
-
streamId: string(),
|
|
9191
|
-
format: StreamFormatSchema,
|
|
9192
|
-
url: string().nullable(),
|
|
9193
|
-
active: boolean()
|
|
9194
|
-
});
|
|
9195
|
-
method(object({
|
|
9196
|
-
streamId: string(),
|
|
9197
|
-
sourceUrl: string(),
|
|
9198
|
-
codec: string().optional()
|
|
9199
|
-
}), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
|
|
9200
|
-
streamId: string(),
|
|
9201
|
-
format: StreamFormatSchema
|
|
9202
|
-
}), string().nullable()), method(_void(), array(StreamInfoSchema));
|
|
9203
9279
|
var RtspRestreamEntrySchema = object({
|
|
9204
9280
|
brokerId: string(),
|
|
9205
9281
|
url: string(),
|
|
@@ -10067,37 +10143,7 @@ var consumablesCapability = {
|
|
|
10067
10143
|
scope: "device",
|
|
10068
10144
|
deviceNative: true,
|
|
10069
10145
|
mode: "singleton",
|
|
10070
|
-
deviceTypes:
|
|
10071
|
-
DeviceType.Camera,
|
|
10072
|
-
DeviceType.Hub,
|
|
10073
|
-
DeviceType.Light,
|
|
10074
|
-
DeviceType.Siren,
|
|
10075
|
-
DeviceType.Switch,
|
|
10076
|
-
DeviceType.Sensor,
|
|
10077
|
-
DeviceType.Thermostat,
|
|
10078
|
-
DeviceType.Button,
|
|
10079
|
-
DeviceType.EventEmitter,
|
|
10080
|
-
DeviceType.Update,
|
|
10081
|
-
DeviceType.Generic,
|
|
10082
|
-
DeviceType.Notifier,
|
|
10083
|
-
DeviceType.Script,
|
|
10084
|
-
DeviceType.Automation,
|
|
10085
|
-
DeviceType.Lock,
|
|
10086
|
-
DeviceType.Cover,
|
|
10087
|
-
DeviceType.Valve,
|
|
10088
|
-
DeviceType.Humidifier,
|
|
10089
|
-
DeviceType.WaterHeater,
|
|
10090
|
-
DeviceType.Fan,
|
|
10091
|
-
DeviceType.MediaPlayer,
|
|
10092
|
-
DeviceType.AlarmPanel,
|
|
10093
|
-
DeviceType.Control,
|
|
10094
|
-
DeviceType.Presence,
|
|
10095
|
-
DeviceType.Weather,
|
|
10096
|
-
DeviceType.Vacuum,
|
|
10097
|
-
DeviceType.LawnMower,
|
|
10098
|
-
DeviceType.Container,
|
|
10099
|
-
DeviceType.Image
|
|
10100
|
-
],
|
|
10146
|
+
deviceTypes: Object.values(DeviceType),
|
|
10101
10147
|
deviceConfig: { ui: {
|
|
10102
10148
|
kind: "widget",
|
|
10103
10149
|
widgetId: "host/consumables-panel",
|
|
@@ -11555,7 +11601,7 @@ var BoundingBoxSchema = object({
|
|
|
11555
11601
|
w: number(),
|
|
11556
11602
|
h: number()
|
|
11557
11603
|
});
|
|
11558
|
-
|
|
11604
|
+
object({
|
|
11559
11605
|
class: string(),
|
|
11560
11606
|
originalClass: string(),
|
|
11561
11607
|
score: number(),
|
|
@@ -11690,7 +11736,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
|
|
|
11690
11736
|
enabled: boolean(),
|
|
11691
11737
|
modelId: string(),
|
|
11692
11738
|
children: array(PipelineDefaultStepSchema).readonly(),
|
|
11693
|
-
engine: PipelineEngineChoiceSchema.optional(),
|
|
11694
11739
|
group: string().optional(),
|
|
11695
11740
|
settings: record(string(), unknown()).optional()
|
|
11696
11741
|
}));
|
|
@@ -11715,7 +11760,9 @@ var PipelineModelOptionSchema = object({
|
|
|
11715
11760
|
formats: record(string(), object({
|
|
11716
11761
|
downloaded: boolean(),
|
|
11717
11762
|
sizeMB: number()
|
|
11718
|
-
}))
|
|
11763
|
+
})),
|
|
11764
|
+
group: ModelVariantGroupSchema.optional(),
|
|
11765
|
+
legacy: boolean().optional()
|
|
11719
11766
|
});
|
|
11720
11767
|
var ConfigFieldBridge = custom();
|
|
11721
11768
|
var PipelineAddonSchemaSchema = object({
|
|
@@ -11729,6 +11776,7 @@ var PipelineAddonSchemaSchema = object({
|
|
|
11729
11776
|
defaultModelId: string(),
|
|
11730
11777
|
defaultModelIdByFormat: record(string(), string()).optional(),
|
|
11731
11778
|
enabledByDefault: boolean().optional(),
|
|
11779
|
+
backfillIntoExistingOverrides: boolean().optional(),
|
|
11732
11780
|
defaultConfidence: number(),
|
|
11733
11781
|
group: string().optional(),
|
|
11734
11782
|
configSchema: array(ConfigFieldBridge).readonly().optional()
|
|
@@ -11745,11 +11793,6 @@ var PipelineSchemaSchema = object({
|
|
|
11745
11793
|
selectedEngine: PipelineEngineChoiceSchema,
|
|
11746
11794
|
slots: array(PipelineSlotSchemaSchema).readonly()
|
|
11747
11795
|
});
|
|
11748
|
-
var DetectorOutputSchema = object({
|
|
11749
|
-
detections: array(SpatialDetectionSchema).readonly(),
|
|
11750
|
-
inferenceMs: number(),
|
|
11751
|
-
modelId: string()
|
|
11752
|
-
});
|
|
11753
11796
|
var EngineProvisioningSchema = object({
|
|
11754
11797
|
runtimeId: _enum([
|
|
11755
11798
|
"onnx",
|
|
@@ -11766,15 +11809,42 @@ var EngineProvisioningSchema = object({
|
|
|
11766
11809
|
]),
|
|
11767
11810
|
progress: number().optional(),
|
|
11768
11811
|
error: string().optional(),
|
|
11769
|
-
nextRetryAt: number().optional()
|
|
11812
|
+
nextRetryAt: number().optional(),
|
|
11813
|
+
/**
|
|
11814
|
+
* Gate A (config-correctness gate at engine change): human-readable
|
|
11815
|
+
* config issues surfaced EAGERLY when the node's engine changes — model
|
|
11816
|
+
* substitutions ("chose X, running Y") and zero-build steps ("no model
|
|
11817
|
+
* has a <format> build"). Additive/optional: informational only, never
|
|
11818
|
+
* enforced here — `assertEngineReady` (readiness) still gates inference.
|
|
11819
|
+
* Absent/empty when the node-default tree resolves cleanly.
|
|
11820
|
+
*/
|
|
11821
|
+
configIssues: array(string()).optional()
|
|
11770
11822
|
});
|
|
11771
11823
|
var PipelineStepInputSchema = lazy(() => object({
|
|
11772
11824
|
addonId: string(),
|
|
11773
|
-
modelId: string(),
|
|
11825
|
+
modelId: string().optional(),
|
|
11774
11826
|
enabled: boolean().default(true),
|
|
11775
11827
|
children: array(PipelineStepInputSchema).optional(),
|
|
11776
11828
|
settings: record(string(), unknown()).optional()
|
|
11777
11829
|
}));
|
|
11830
|
+
var ModelSubstitutionSchema = object({
|
|
11831
|
+
addonId: string(),
|
|
11832
|
+
chosen: string(),
|
|
11833
|
+
running: string(),
|
|
11834
|
+
format: string()
|
|
11835
|
+
});
|
|
11836
|
+
var PipelineValidationIssueSchema = object({
|
|
11837
|
+
addonId: string(),
|
|
11838
|
+
kind: _enum(["unknown-addon", "no-format-build"]),
|
|
11839
|
+
detail: string()
|
|
11840
|
+
});
|
|
11841
|
+
var PipelineValidationResultSchema = object({
|
|
11842
|
+
ok: boolean(),
|
|
11843
|
+
issues: array(PipelineValidationIssueSchema).readonly(),
|
|
11844
|
+
substitutions: array(ModelSubstitutionSchema).readonly(),
|
|
11845
|
+
/** The node's `currentEngine.format` this validation ran against. */
|
|
11846
|
+
format: string()
|
|
11847
|
+
});
|
|
11778
11848
|
var ReferenceImageEntrySchema = object({
|
|
11779
11849
|
filename: string(),
|
|
11780
11850
|
stepIds: array(string()).readonly().optional()
|
|
@@ -11845,7 +11915,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
11845
11915
|
})) }), object({ success: literal(true) }), {
|
|
11846
11916
|
kind: "mutation",
|
|
11847
11917
|
auth: "admin"
|
|
11848
|
-
}), method(
|
|
11918
|
+
}), method(object({ nodeId: string() }), object({
|
|
11919
|
+
success: literal(true),
|
|
11920
|
+
clearedDevices: number()
|
|
11921
|
+
}), {
|
|
11922
|
+
kind: "mutation",
|
|
11923
|
+
auth: "admin"
|
|
11924
|
+
}), 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({
|
|
11849
11925
|
name: string(),
|
|
11850
11926
|
steps: array(PipelineTemplateStepSchema).readonly(),
|
|
11851
11927
|
engine: PipelineEngineChoiceSchema
|
|
@@ -11862,10 +11938,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
11862
11938
|
modelId: string(),
|
|
11863
11939
|
format: ModelFormatSchema$1
|
|
11864
11940
|
}), object({ success: literal(true) }), { kind: "mutation" }), method(object({
|
|
11865
|
-
addonId: string(),
|
|
11866
|
-
frame: FrameInputSchema,
|
|
11867
|
-
config: record(string(), unknown()).optional()
|
|
11868
|
-
}), DetectorOutputSchema), method(object({
|
|
11869
11941
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
11870
11942
|
steps: array(PipelineStepInputSchema).min(1),
|
|
11871
11943
|
frame: FrameInputSchema.optional(),
|
|
@@ -11886,7 +11958,15 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
11886
11958
|
image: _instanceof(Uint8Array).optional(),
|
|
11887
11959
|
referenceImage: string().optional(),
|
|
11888
11960
|
deviceId: number().optional(),
|
|
11889
|
-
sessionId: string().optional()
|
|
11961
|
+
sessionId: string().optional(),
|
|
11962
|
+
/**
|
|
11963
|
+
* Execution plane. 'full' (default) runs the whole tree — benchmark,
|
|
11964
|
+
* reference-image, and detail-subtree calls. 'frame' is the live
|
|
11965
|
+
* per-frame dispatch: ONLY root-plane steps run; crop children
|
|
11966
|
+
* (inputClasses ≠ null) are skipped and served per-track via
|
|
11967
|
+
* pipelineRunner.runDetailSubtree (two-plane design).
|
|
11968
|
+
*/
|
|
11969
|
+
plane: _enum(["full", "frame"]).optional()
|
|
11890
11970
|
}), PipelineRunResultBridge, { kind: "mutation" }), method(object({
|
|
11891
11971
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
11892
11972
|
steps: array(PipelineStepInputSchema).min(1),
|
|
@@ -12044,6 +12124,47 @@ var zonesCapability = {
|
|
|
12044
12124
|
runtimeState: object({ zones: array(ZoneSchema).readonly() })
|
|
12045
12125
|
};
|
|
12046
12126
|
/**
|
|
12127
|
+
* A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
|
|
12128
|
+
* decode worker resolves it against the RETAINED native frame's real pixel dims,
|
|
12129
|
+
* so the caller supplies only the detection-res bbox divided by the detection
|
|
12130
|
+
* dims — no native resolution to plumb.
|
|
12131
|
+
*/
|
|
12132
|
+
var NativeCropBboxSchema = object({
|
|
12133
|
+
x: number(),
|
|
12134
|
+
y: number(),
|
|
12135
|
+
w: number(),
|
|
12136
|
+
h: number()
|
|
12137
|
+
});
|
|
12138
|
+
/** Result of a best-effort native-resolution crop (`getNativeCrop`). */
|
|
12139
|
+
var NativeCropResultSchema = object({
|
|
12140
|
+
/** Packed rgb (24-bit) pixels of the crop. */
|
|
12141
|
+
bytes: _instanceof(Uint8Array),
|
|
12142
|
+
width: number().int().positive(),
|
|
12143
|
+
height: number().int().positive()
|
|
12144
|
+
});
|
|
12145
|
+
/** Parent detection context passed to `runDetailSubtree` — the crop's
|
|
12146
|
+
* originating detection, in FRAME-space coordinates. Reuses
|
|
12147
|
+
* `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
|
|
12148
|
+
* the coordinates are frame-space rather than getNativeCrop's
|
|
12149
|
+
* normalized [0,1] convention). */
|
|
12150
|
+
var DetailParentSchema = object({
|
|
12151
|
+
bbox: NativeCropBboxSchema,
|
|
12152
|
+
className: string()
|
|
12153
|
+
});
|
|
12154
|
+
/** One child-step result from `runDetailSubtree` — an embedding, label,
|
|
12155
|
+
* or refined detection produced by running the crop-subtree on a
|
|
12156
|
+
* single tracked detection. */
|
|
12157
|
+
var DetailResultSchema = object({
|
|
12158
|
+
stepId: string(),
|
|
12159
|
+
className: string(),
|
|
12160
|
+
score: number(),
|
|
12161
|
+
/** FRAME-space bbox (already mapped back from crop space). */
|
|
12162
|
+
bbox: NativeCropBboxSchema.optional(),
|
|
12163
|
+
embedding: string().optional(),
|
|
12164
|
+
label: string().optional(),
|
|
12165
|
+
alignedCropJpeg: string().optional()
|
|
12166
|
+
});
|
|
12167
|
+
/**
|
|
12047
12168
|
* Per-camera tunable ranges + defaults. Single source of truth used
|
|
12048
12169
|
* by both the Zod data schema (validation + default fallback) and
|
|
12049
12170
|
* the device settings UI (slider min/max/step). Touch one place and
|
|
@@ -12138,6 +12259,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
|
|
|
12138
12259
|
kind: literal("remote-restream"),
|
|
12139
12260
|
/** The camera's source-owner node (slice 1: always the hub). */
|
|
12140
12261
|
ownerNodeId: string(),
|
|
12262
|
+
/**
|
|
12263
|
+
* The owner's LAN-reachable host, resolved by the orchestrator from the
|
|
12264
|
+
* per-node `reachableHost` override (Cluster UI). When present the runner
|
|
12265
|
+
* dials THIS host for the owner's restream, in preference to the
|
|
12266
|
+
* `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
|
|
12267
|
+
*/
|
|
12268
|
+
ownerReachableHost: string().optional(),
|
|
12141
12269
|
/** Operator override for the owner host the runner dials. */
|
|
12142
12270
|
hubHostnameOverride: string().optional()
|
|
12143
12271
|
})]).describe("Per-camera frame-source mode for the runner (P2c)");
|
|
@@ -12146,13 +12274,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
|
|
|
12146
12274
|
* specific runner instance via `attachCamera`. Carries everything the
|
|
12147
12275
|
* runner needs to subscribe to the local broker and execute inference.
|
|
12148
12276
|
*
|
|
12149
|
-
* Stateless-pipeline model: the
|
|
12150
|
-
*
|
|
12151
|
-
*
|
|
12152
|
-
*
|
|
12153
|
-
*
|
|
12154
|
-
* `engine`/`steps`/`audio` are optional during the additive migration
|
|
12155
|
-
* window; once orchestrator + UI are migrated they become required.
|
|
12277
|
+
* Stateless-pipeline model: the pipeline content (`steps`, optional
|
|
12278
|
+
* `audio`) travels with the attach payload. The runner keeps it in RAM
|
|
12279
|
+
* for the lifetime of the attach — on rebalance, edit, or restart the
|
|
12280
|
+
* orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
|
|
12281
|
+
* node-local, resolved by the executing runner at dispatch time.
|
|
12156
12282
|
*/
|
|
12157
12283
|
var RunnerCameraConfigSchema = object({
|
|
12158
12284
|
deviceId: number(),
|
|
@@ -12203,14 +12329,11 @@ var RunnerCameraConfigSchema = object({
|
|
|
12203
12329
|
*/
|
|
12204
12330
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
12205
12331
|
pipelineEnabled: boolean().default(true),
|
|
12206
|
-
/** Engine choice for video steps (runtime+backend+format). */
|
|
12207
|
-
engine: PipelineEngineChoiceSchema.optional(),
|
|
12208
12332
|
/** Ordered tree of video steps. Absent → runner skips video detection. */
|
|
12209
12333
|
steps: array(PipelineStepInputSchema).readonly().optional(),
|
|
12210
12334
|
/** Audio classification branch. `enabled:false` disables, null skips. */
|
|
12211
12335
|
audio: object({
|
|
12212
|
-
|
|
12213
|
-
modelId: string(),
|
|
12336
|
+
modelId: string().optional(),
|
|
12214
12337
|
enabled: boolean()
|
|
12215
12338
|
}).nullable().optional(),
|
|
12216
12339
|
/**
|
|
@@ -12297,7 +12420,17 @@ var RunnerLocalMetricsSchema = object({
|
|
|
12297
12420
|
avgInferenceTimeMs: number(),
|
|
12298
12421
|
queueDepth: number()
|
|
12299
12422
|
});
|
|
12300
|
-
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())
|
|
12423
|
+
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({
|
|
12424
|
+
handle: FrameHandleSchema,
|
|
12425
|
+
bbox: NativeCropBboxSchema,
|
|
12426
|
+
maxWidth: number().int().positive().optional()
|
|
12427
|
+
}), NativeCropResultSchema.nullable()), method(object({
|
|
12428
|
+
deviceId: number(),
|
|
12429
|
+
frameHandle: FrameHandleSchema.optional(),
|
|
12430
|
+
cropJpeg: string().optional(),
|
|
12431
|
+
parent: DetailParentSchema,
|
|
12432
|
+
steps: array(string()).optional()
|
|
12433
|
+
}), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" });
|
|
12301
12434
|
/**
|
|
12302
12435
|
* Hardware / firmware motion sensor cap — binary detected state plus
|
|
12303
12436
|
* a timestamp of the last observation. Distinct from
|
|
@@ -15228,7 +15361,9 @@ var AddonPageDeclarationSchema$1 = object({
|
|
|
15228
15361
|
icon: string(),
|
|
15229
15362
|
path: string(),
|
|
15230
15363
|
remoteName: string(),
|
|
15231
|
-
bundle: string()
|
|
15364
|
+
bundle: string(),
|
|
15365
|
+
section: string().optional(),
|
|
15366
|
+
sectionLabel: string().optional()
|
|
15232
15367
|
});
|
|
15233
15368
|
var AddonPageInfoSchema = object({
|
|
15234
15369
|
addonId: string(),
|
|
@@ -15268,7 +15403,18 @@ var AddonPageDeclarationSchema = object({
|
|
|
15268
15403
|
* the static-file route can compute an mtime-based cache-buster URL
|
|
15269
15404
|
* without a separate filesystem stat.
|
|
15270
15405
|
*/
|
|
15271
|
-
bundle: string()
|
|
15406
|
+
bundle: string(),
|
|
15407
|
+
/**
|
|
15408
|
+
* Sidebar section this page docks into. Well-known ids: `'detection'`,
|
|
15409
|
+
* `'cluster'`, `'administration'` — the page renders inside that group.
|
|
15410
|
+
* Any OTHER string creates (or joins) a custom section rendered after
|
|
15411
|
+
* the built-in groups; its label comes from `sectionLabel` (first
|
|
15412
|
+
* declaration wins), falling back to the id. Absent → the legacy
|
|
15413
|
+
* "Addon Pages" group.
|
|
15414
|
+
*/
|
|
15415
|
+
section: string().optional(),
|
|
15416
|
+
/** Display label for a CUSTOM `section` id (ignored for well-known ids). */
|
|
15417
|
+
sectionLabel: string().optional()
|
|
15272
15418
|
});
|
|
15273
15419
|
method(_void(), array(AddonPageDeclarationSchema).readonly());
|
|
15274
15420
|
var AddonHttpRouteSchema = object({
|
|
@@ -15484,6 +15630,17 @@ var WidgetMetadataSchema = object({
|
|
|
15484
15630
|
deviceContext: boolean().default(false),
|
|
15485
15631
|
integrationContext: boolean().default(false)
|
|
15486
15632
|
}),
|
|
15633
|
+
/**
|
|
15634
|
+
* Loadable BEFORE authentication. The normal widget registry listing
|
|
15635
|
+
* (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
|
|
15636
|
+
* (the login page) cannot discover a widget through it. A widget that
|
|
15637
|
+
* declares `preAuth: true` marks itself as safe to mount on a pre-auth
|
|
15638
|
+
* screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
|
|
15639
|
+
* login-method contribution channel (see `login-method.cap.ts`) rather
|
|
15640
|
+
* than the authenticated registry, and its bundle is served by the
|
|
15641
|
+
* public `/api/addon-widgets/:addonId/*` static route. Defaults false.
|
|
15642
|
+
*/
|
|
15643
|
+
preAuth: boolean().optional().default(false),
|
|
15487
15644
|
/** Dashboard placement HINTS (operator can override per instance). */
|
|
15488
15645
|
defaultSize: WidgetSizeEnum.default("md"),
|
|
15489
15646
|
allowedSizes: array(WidgetSizeEnum).readonly().default([
|
|
@@ -15785,6 +15942,66 @@ method(object({
|
|
|
15785
15942
|
password: string()
|
|
15786
15943
|
}), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
|
|
15787
15944
|
/**
|
|
15945
|
+
* `login-method` — collection cap through which auth addons contribute
|
|
15946
|
+
* their pre-auth login surfaces to the login page. This is the SINGLE,
|
|
15947
|
+
* generic mechanism that supersedes the dead `auth.listProviders` reader:
|
|
15948
|
+
* every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
|
|
15949
|
+
* `login-method` provider and the PUBLIC `auth.listLoginMethods`
|
|
15950
|
+
* procedure aggregates them for the unauthenticated login page.
|
|
15951
|
+
*
|
|
15952
|
+
* A contribution is a discriminated union on `kind`:
|
|
15953
|
+
*
|
|
15954
|
+
* - `redirect` — a declarative button. The login page renders a generic
|
|
15955
|
+
* button that navigates to `startUrl` (an addon-owned HTTP route).
|
|
15956
|
+
* Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
|
|
15957
|
+
* ZERO shell-side JS. A future SSO addon plugs in the same way — the
|
|
15958
|
+
* login page needs NO change.
|
|
15959
|
+
*
|
|
15960
|
+
* - `widget` — a Module-Federation widget the login page mounts (via
|
|
15961
|
+
* `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
|
|
15962
|
+
* login ceremony, which must run `@simplewebauthn/browser` INSIDE the
|
|
15963
|
+
* addon bundle. The referenced widget also declares `preAuth: true` in
|
|
15964
|
+
* its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
|
|
15965
|
+
* stamps a public `bundleUrl` from `addonId` + `bundle`.
|
|
15966
|
+
*
|
|
15967
|
+
* Every contribution carries a `stage`:
|
|
15968
|
+
* - `primary` — shown on the first credentials screen (OIDC /
|
|
15969
|
+
* magic-link buttons; a future usernameless passkey).
|
|
15970
|
+
* - `second-factor` — shown AFTER the password leg, gated on the
|
|
15971
|
+
* returned `factors` (passkey-as-2FA today).
|
|
15972
|
+
*
|
|
15973
|
+
* `mount: skip` — the cap is read server-side by the core auth router
|
|
15974
|
+
* (`registry.getCollection('login-method')`), never mounted as its own
|
|
15975
|
+
* tRPC router.
|
|
15976
|
+
*/
|
|
15977
|
+
/** When a login method renders in the two-phase login flow. */
|
|
15978
|
+
var LoginStageEnum = _enum(["primary", "second-factor"]);
|
|
15979
|
+
/** One login-method contribution — redirect button OR pre-auth widget. */
|
|
15980
|
+
var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
|
|
15981
|
+
kind: literal("redirect"),
|
|
15982
|
+
/** Stable id within the login-method set (e.g. `auth-oidc/google`). */
|
|
15983
|
+
id: string(),
|
|
15984
|
+
/** Operator-facing button label. */
|
|
15985
|
+
label: string(),
|
|
15986
|
+
/** lucide-react icon name. */
|
|
15987
|
+
icon: string().optional(),
|
|
15988
|
+
/** Addon-owned HTTP route the button navigates to (GET). */
|
|
15989
|
+
startUrl: string(),
|
|
15990
|
+
stage: LoginStageEnum
|
|
15991
|
+
}), object({
|
|
15992
|
+
kind: literal("widget"),
|
|
15993
|
+
/** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
|
|
15994
|
+
id: string(),
|
|
15995
|
+
/** Owning addon id — drives the public bundle URL + the MF namespace. */
|
|
15996
|
+
addonId: string(),
|
|
15997
|
+
/** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
|
|
15998
|
+
bundle: string(),
|
|
15999
|
+
/** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
|
|
16000
|
+
remote: WidgetRemoteSchema,
|
|
16001
|
+
stage: LoginStageEnum
|
|
16002
|
+
})]);
|
|
16003
|
+
method(_void(), array(LoginMethodContributionSchema).readonly());
|
|
16004
|
+
/**
|
|
15788
16005
|
* Orchestrator-side destination metadata. The orchestrator computes
|
|
15789
16006
|
* `id = <addonId>:<subId>` from its provider lookup so consumers
|
|
15790
16007
|
* (admin UI, restore flow) see one canonical key.
|
|
@@ -17905,7 +18122,17 @@ var TrackSchema = object({
|
|
|
17905
18122
|
/** Cumulative normalized distance travelled (0..1 units = full frame width). */
|
|
17906
18123
|
totalDistance: number(),
|
|
17907
18124
|
state: TrackStateSchema,
|
|
17908
|
-
active: boolean()
|
|
18125
|
+
active: boolean(),
|
|
18126
|
+
/** Deterministic key-event importance score in [0,1] (server-computed at
|
|
18127
|
+
* track expiry, recomputed on late label). Absent on legacy rows written
|
|
18128
|
+
* before scoring shipped — consumers degrade to absence / compute-on-read. */
|
|
18129
|
+
importance: number().optional(),
|
|
18130
|
+
/** Id of the track's highest-confidence ObjectEvent (its representative
|
|
18131
|
+
* "best" frame). Absent when the track produced no object events. */
|
|
18132
|
+
bestEventId: string().optional(),
|
|
18133
|
+
/** Tag of the importance sub-signal that dominated the score
|
|
18134
|
+
* (identity|dwell|proximity|class|confidence|travel|zone). */
|
|
18135
|
+
importanceReason: string().optional()
|
|
17909
18136
|
});
|
|
17910
18137
|
var BaseEventFields = {
|
|
17911
18138
|
id: string(),
|
|
@@ -17970,8 +18197,18 @@ var ObjectEventSchema = object({
|
|
|
17970
18197
|
frameHeight: number().optional(),
|
|
17971
18198
|
/** MediaStore key for the crop attached to this event (if any). */
|
|
17972
18199
|
mediaKey: string().optional(),
|
|
18200
|
+
/** Design B: MediaStore key of the track's native-resolution key frame (the
|
|
18201
|
+
* best-detection full frame). Resolve via the event-media data-plane
|
|
18202
|
+
* (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
|
|
18203
|
+
* draws `bbox` over the native frame. Absent on legacy rows / non-decoded
|
|
18204
|
+
* sources — consumers fall back to `mediaKey` (the tight crop). */
|
|
18205
|
+
keyFrameMediaKey: string().optional(),
|
|
17973
18206
|
/** Populated by B5 (recording playback URL for this event). */
|
|
17974
|
-
mediaUrl: string().optional()
|
|
18207
|
+
mediaUrl: string().optional(),
|
|
18208
|
+
/** The parent track's key-event importance [0,1], propagated to every object
|
|
18209
|
+
* event of the track (so an event row can be sorted by importance without a
|
|
18210
|
+
* track join). Absent on legacy rows / before the track was scored. */
|
|
18211
|
+
importance: number().optional()
|
|
17975
18212
|
});
|
|
17976
18213
|
var AudioEventSchema = object({
|
|
17977
18214
|
...BaseEventFields,
|
|
@@ -17995,7 +18232,8 @@ var MediaFileKindEnum = _enum([
|
|
|
17995
18232
|
"fullFrame",
|
|
17996
18233
|
"fullFrameBoxed",
|
|
17997
18234
|
"faceCrop",
|
|
17998
|
-
"plateCrop"
|
|
18235
|
+
"plateCrop",
|
|
18236
|
+
"keyFrame"
|
|
17999
18237
|
]);
|
|
18000
18238
|
var MediaFileSchema = object({
|
|
18001
18239
|
key: string(),
|
|
@@ -18016,6 +18254,32 @@ var DeviceEventQueryInput = object({
|
|
|
18016
18254
|
projection: _enum(["full", "slim"]).optional()
|
|
18017
18255
|
});
|
|
18018
18256
|
var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
|
|
18257
|
+
var KeyEventQueryInput = object({
|
|
18258
|
+
deviceId: number(),
|
|
18259
|
+
/** Window lower bound (track firstSeen ≥ since). */
|
|
18260
|
+
since: number(),
|
|
18261
|
+
/** Window upper bound (track firstSeen ≤ until). */
|
|
18262
|
+
until: number(),
|
|
18263
|
+
limit: number().int().min(1).max(200).default(50),
|
|
18264
|
+
/** Drop tracks scoring below this importance. */
|
|
18265
|
+
minImportance: number().min(0).max(1).optional(),
|
|
18266
|
+
/** Restrict to a single class (e.g. 'person'). */
|
|
18267
|
+
classFilter: string().optional()
|
|
18268
|
+
});
|
|
18269
|
+
var KeyEventSchema = object({
|
|
18270
|
+
/** The representative event id (the track's best ObjectEvent, else its trackId). */
|
|
18271
|
+
id: string(),
|
|
18272
|
+
trackId: string(),
|
|
18273
|
+
/** Track start time (firstSeen). */
|
|
18274
|
+
timestamp: number(),
|
|
18275
|
+
className: string(),
|
|
18276
|
+
label: string().optional(),
|
|
18277
|
+
importance: number(),
|
|
18278
|
+
/** Highest-confidence ObjectEvent id for the track (empty when none). */
|
|
18279
|
+
bestEventId: string(),
|
|
18280
|
+
/** Track lifetime in ms (lastSeen - firstSeen). */
|
|
18281
|
+
windowMs: number().optional()
|
|
18282
|
+
});
|
|
18019
18283
|
var TrackedDetectionSchema = object({
|
|
18020
18284
|
trackId: string(),
|
|
18021
18285
|
className: string(),
|
|
@@ -18045,7 +18309,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
18045
18309
|
}), array(TrackSchema).readonly()), method(object({ deviceId: number() }), _void(), {
|
|
18046
18310
|
kind: "mutation",
|
|
18047
18311
|
auth: "admin"
|
|
18048
|
-
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({
|
|
18312
|
+
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
|
|
18049
18313
|
deviceId: number(),
|
|
18050
18314
|
since: number(),
|
|
18051
18315
|
until: number(),
|
|
@@ -18090,11 +18354,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
18090
18354
|
timestamp: number()
|
|
18091
18355
|
});
|
|
18092
18356
|
var CameraPipelineConfigSchema = object({
|
|
18093
|
-
engine: PipelineEngineChoiceSchema,
|
|
18357
|
+
engine: PipelineEngineChoiceSchema.optional(),
|
|
18094
18358
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
18095
18359
|
audio: object({
|
|
18096
|
-
engine: PipelineEngineChoiceSchema,
|
|
18097
|
-
modelId: string(),
|
|
18360
|
+
engine: PipelineEngineChoiceSchema.optional(),
|
|
18361
|
+
modelId: string().optional(),
|
|
18098
18362
|
enabled: boolean(),
|
|
18099
18363
|
settings: record(string(), unknown()).readonly().optional()
|
|
18100
18364
|
}).nullable().optional()
|
|
@@ -18109,7 +18373,7 @@ var PipelineTemplateSchema = object({
|
|
|
18109
18373
|
});
|
|
18110
18374
|
var AgentAddonConfigSchema = object({
|
|
18111
18375
|
enabled: boolean(),
|
|
18112
|
-
modelId: string(),
|
|
18376
|
+
modelId: string().optional(),
|
|
18113
18377
|
settings: record(string(), unknown()).readonly()
|
|
18114
18378
|
});
|
|
18115
18379
|
var AgentPipelineSettingsSchema = object({
|
|
@@ -18119,12 +18383,25 @@ var AgentPipelineSettingsSchema = object({
|
|
|
18119
18383
|
detectWeight: number().positive().optional(),
|
|
18120
18384
|
/** Node is eligible to run the detection pipeline (decode + inference). */
|
|
18121
18385
|
detect: boolean().optional(),
|
|
18122
|
-
/**
|
|
18386
|
+
/**
|
|
18387
|
+
* DEPRECATED AND IGNORED. Decode is always co-located with its frame
|
|
18388
|
+
* consumer, so decode eligibility IS detect eligibility. Kept optional in
|
|
18389
|
+
* the schema ONLY so persisted stores written before the removal still
|
|
18390
|
+
* parse — no code reads it and no write path emits it.
|
|
18391
|
+
*/
|
|
18123
18392
|
decode: boolean().optional(),
|
|
18124
18393
|
/** Node is eligible to run audio-analyzer sessions. */
|
|
18125
18394
|
audio: boolean().optional(),
|
|
18126
18395
|
/** Node is eligible to be the ingest / source-owner (serve the restream). */
|
|
18127
|
-
ingest: boolean().optional()
|
|
18396
|
+
ingest: boolean().optional(),
|
|
18397
|
+
/**
|
|
18398
|
+
* Operator override for the LAN host a cross-node decoder dials to reach
|
|
18399
|
+
* THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
|
|
18400
|
+
* falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
|
|
18401
|
+
* it already uses to reach the hub). Set this only when the auto-detected
|
|
18402
|
+
* address is wrong (multi-homed host, NAT, custom interface).
|
|
18403
|
+
*/
|
|
18404
|
+
reachableHost: string().optional()
|
|
18128
18405
|
});
|
|
18129
18406
|
var CameraPipelineForAgentSchema = object({
|
|
18130
18407
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -18172,25 +18449,6 @@ var PipelineAssignmentSchema = object({
|
|
|
18172
18449
|
assignedAt: number()
|
|
18173
18450
|
});
|
|
18174
18451
|
/**
|
|
18175
|
-
* Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
|
|
18176
|
-
* the decoder-node placement domain (`balanceDecoder` decision: manual pin
|
|
18177
|
-
* → co-located with pipeline → capacity).
|
|
18178
|
-
*/
|
|
18179
|
-
var DecoderAssignmentSchema = object({
|
|
18180
|
-
deviceId: number(),
|
|
18181
|
-
/** Moleculer node id of the decoder provider currently responsible for this camera. */
|
|
18182
|
-
decoderNodeId: string(),
|
|
18183
|
-
/** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
|
|
18184
|
-
pinned: boolean(),
|
|
18185
|
-
/** Why this assignment was made — useful for debugging the decoder balancer. */
|
|
18186
|
-
reason: _enum([
|
|
18187
|
-
"manual",
|
|
18188
|
-
"co-located",
|
|
18189
|
-
"capacity",
|
|
18190
|
-
"hardware-affinity"
|
|
18191
|
-
])
|
|
18192
|
-
});
|
|
18193
|
-
/**
|
|
18194
18452
|
* Per-agent load summary surfaced to the load balancer + dashboards.
|
|
18195
18453
|
* Aggregated from each runner's `getLocalLoad` cap call.
|
|
18196
18454
|
*/
|
|
@@ -18230,6 +18488,15 @@ var GlobalMetricsSchema = object({
|
|
|
18230
18488
|
* capability providers.
|
|
18231
18489
|
*/
|
|
18232
18490
|
var CapabilityBindingsSchema = record(string(), string());
|
|
18491
|
+
/**
|
|
18492
|
+
* The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
|
|
18493
|
+
* its LAN-reachable host, if one is registered. See `getIngestOwner`.
|
|
18494
|
+
*/
|
|
18495
|
+
var IngestOwnerSchema = object({
|
|
18496
|
+
ownerNodeId: string(),
|
|
18497
|
+
reachableHost: string().optional(),
|
|
18498
|
+
configIssue: string().optional()
|
|
18499
|
+
});
|
|
18233
18500
|
/** Source block — always present; derives from the stream catalog. */
|
|
18234
18501
|
var CameraSourceStatusSchema = object({ streams: array(object({
|
|
18235
18502
|
camStreamId: string(),
|
|
@@ -18244,6 +18511,14 @@ var CameraAssignmentStatusSchema = object({
|
|
|
18244
18511
|
detectionNodeId: string().nullable(),
|
|
18245
18512
|
decoderNodeId: string().nullable(),
|
|
18246
18513
|
audioNodeId: string().nullable(),
|
|
18514
|
+
/**
|
|
18515
|
+
* The node that OWNS this camera's physical source pull (dials the RTSP and
|
|
18516
|
+
* hosts the broker/restream) — the cluster ingest owner today
|
|
18517
|
+
* (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
|
|
18518
|
+
* the UI show WHERE a camera is sourced without SSH/logs, and is the node the
|
|
18519
|
+
* broker block below was read from (pinned). Nullable only pre-wiring.
|
|
18520
|
+
*/
|
|
18521
|
+
sourceNodeId: string().nullable(),
|
|
18247
18522
|
pinned: object({
|
|
18248
18523
|
detection: boolean(),
|
|
18249
18524
|
decoder: boolean(),
|
|
@@ -18376,16 +18651,7 @@ method(object({
|
|
|
18376
18651
|
}), object({ success: literal(true) }), {
|
|
18377
18652
|
kind: "mutation",
|
|
18378
18653
|
auth: "admin"
|
|
18379
|
-
}), method(object({
|
|
18380
|
-
deviceId: number(),
|
|
18381
|
-
nodeId: string()
|
|
18382
|
-
}), _void(), {
|
|
18383
|
-
kind: "mutation",
|
|
18384
|
-
auth: "admin"
|
|
18385
|
-
}), method(object({ deviceId: number() }), _void(), {
|
|
18386
|
-
kind: "mutation",
|
|
18387
|
-
auth: "admin"
|
|
18388
|
-
}), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
|
|
18654
|
+
}), method(_void(), IngestOwnerSchema), method(object({
|
|
18389
18655
|
deviceId: number(),
|
|
18390
18656
|
nodeId: string()
|
|
18391
18657
|
}), object({ success: literal(true) }), {
|
|
@@ -18406,10 +18672,7 @@ method(object({
|
|
|
18406
18672
|
nodeId: string(),
|
|
18407
18673
|
pinned: boolean(),
|
|
18408
18674
|
assignedAt: number()
|
|
18409
|
-
}))), method(object({
|
|
18410
|
-
deviceId: number(),
|
|
18411
|
-
pipelineNodeId: string().optional()
|
|
18412
|
-
}), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
|
|
18675
|
+
}))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
|
|
18413
18676
|
nodeId: string(),
|
|
18414
18677
|
settings: AgentPipelineSettingsSchema
|
|
18415
18678
|
})).readonly()), method(object({
|
|
@@ -18439,12 +18702,26 @@ method(object({
|
|
|
18439
18702
|
}), method(object({
|
|
18440
18703
|
agentNodeId: string(),
|
|
18441
18704
|
detect: boolean().nullable().optional(),
|
|
18442
|
-
decode: boolean().nullable().optional(),
|
|
18443
18705
|
audio: boolean().nullable().optional(),
|
|
18444
18706
|
ingest: boolean().nullable().optional()
|
|
18445
18707
|
}), object({ success: literal(true) }), {
|
|
18446
18708
|
kind: "mutation",
|
|
18447
18709
|
auth: "admin"
|
|
18710
|
+
}), method(object({
|
|
18711
|
+
agentNodeId: string(),
|
|
18712
|
+
reachableHost: string().nullable()
|
|
18713
|
+
}), object({ success: literal(true) }), {
|
|
18714
|
+
kind: "mutation",
|
|
18715
|
+
auth: "admin"
|
|
18716
|
+
}), method(object({ agentNodeId: string() }), object({
|
|
18717
|
+
success: literal(true),
|
|
18718
|
+
/** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
|
|
18719
|
+
effectiveModelId: string().nullable(),
|
|
18720
|
+
/** Number of cameras whose node-scoped overrides were cleared. */
|
|
18721
|
+
clearedCameraOverrides: number()
|
|
18722
|
+
}), {
|
|
18723
|
+
kind: "mutation",
|
|
18724
|
+
auth: "admin"
|
|
18448
18725
|
}), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
|
|
18449
18726
|
deviceId: number(),
|
|
18450
18727
|
addonId: string(),
|
|
@@ -18489,22 +18766,131 @@ method(object({
|
|
|
18489
18766
|
kind: "mutation",
|
|
18490
18767
|
auth: "admin"
|
|
18491
18768
|
});
|
|
18492
|
-
|
|
18493
|
-
|
|
18494
|
-
|
|
18495
|
-
|
|
18496
|
-
|
|
18497
|
-
|
|
18769
|
+
/**
|
|
18770
|
+
* server-management — per-NODE singleton capability for a node's ROOT
|
|
18771
|
+
* package lifecycle (runtime-updatable node packages, phase 2: hub + docker
|
|
18772
|
+
* agents).
|
|
18773
|
+
*
|
|
18774
|
+
* Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
|
|
18775
|
+
* on agents) carries the whole software stack in its npm dep tree, so ONE
|
|
18776
|
+
* version describes the node. Updates install into
|
|
18777
|
+
* `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
|
|
18778
|
+
* starter (probation boot + auto-rollback to N-1).
|
|
18779
|
+
*
|
|
18780
|
+
* Providers:
|
|
18781
|
+
* - HUB: `ServerUpdateService` behind the `server-provided` mount
|
|
18782
|
+
* (`buildServerProviders` in trpc.router.ts) — the default target for
|
|
18783
|
+
* unpinned calls.
|
|
18784
|
+
* - AGENT: `AgentUpdateService` registered by the agent bootstrap under
|
|
18785
|
+
* the synthetic `agent-runtime` addonId and declared in the agent's
|
|
18786
|
+
* `$hub.registerNode` manifest.
|
|
18787
|
+
*
|
|
18788
|
+
* Node routing: singleton caps get the codegen/runtime-builder `nodeId`
|
|
18789
|
+
* injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
|
|
18790
|
+
* SDK) routes the call to that node's provider via the standard remote
|
|
18791
|
+
* proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
|
|
18792
|
+
* in-process provider lookup). No `nodeId` → the hub's own provider.
|
|
18793
|
+
*
|
|
18794
|
+
* Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
|
|
18795
|
+
*/
|
|
18796
|
+
/**
|
|
18797
|
+
* Where the running hub's code was loaded from:
|
|
18798
|
+
* - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
|
|
18799
|
+
* plain resolution and runtime updates are refused.
|
|
18800
|
+
* - `baked` — the immutable image seed closure (no data-dir root active).
|
|
18801
|
+
* - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
|
|
18802
|
+
*/
|
|
18803
|
+
var ServerBootModeSchema = _enum([
|
|
18804
|
+
"workspace",
|
|
18805
|
+
"baked",
|
|
18806
|
+
"data-root"
|
|
18807
|
+
]);
|
|
18808
|
+
/**
|
|
18809
|
+
* Update lifecycle state:
|
|
18810
|
+
* - `idle` / `checking` / `staging` — steady / in-flight registry work.
|
|
18811
|
+
* - `pending-restart` — a version is staged and the node has NOT yet
|
|
18812
|
+
* restarted onto it (still running the OLD version).
|
|
18813
|
+
* - `awaiting-confirmation` — the node HAS restarted onto the staged version
|
|
18814
|
+
* (it is the active probation boot) and is waiting to confirm boot-health.
|
|
18815
|
+
* Apply/rollback are refused in this state and the node must NOT be
|
|
18816
|
+
* manually restarted, or the probation boot auto-rolls-back.
|
|
18817
|
+
*/
|
|
18818
|
+
var ServerUpdateStateSchema = _enum([
|
|
18819
|
+
"idle",
|
|
18820
|
+
"checking",
|
|
18821
|
+
"staging",
|
|
18822
|
+
"pending-restart",
|
|
18823
|
+
"awaiting-confirmation"
|
|
18824
|
+
]);
|
|
18825
|
+
var ServerRollbackInfoSchema = object({
|
|
18826
|
+
/** The version that failed (or was manually rolled back). */
|
|
18827
|
+
fromVersion: string(),
|
|
18828
|
+
/** The version rolled back to; null = the baked seed. */
|
|
18829
|
+
toVersion: string().nullable(),
|
|
18830
|
+
atMs: number(),
|
|
18831
|
+
reason: string()
|
|
18498
18832
|
});
|
|
18499
|
-
var
|
|
18500
|
-
|
|
18501
|
-
|
|
18502
|
-
|
|
18833
|
+
var ServerPackageStatusSchema = object({
|
|
18834
|
+
/** Root package name (`@camstack/server` on the hub). */
|
|
18835
|
+
packageName: string(),
|
|
18836
|
+
/** Version of the code the running process ACTUALLY loaded. */
|
|
18837
|
+
runningVersion: string().nullable(),
|
|
18838
|
+
/** Node.js runtime version the node's process runs on (`process.versions.node`). */
|
|
18839
|
+
nodeRuntimeVersion: string().nullable(),
|
|
18840
|
+
/** Active data-dir root version; null when booted from seed/workspace. */
|
|
18841
|
+
activeVersion: string().nullable(),
|
|
18842
|
+
/** N-1 version kept for rollback; null when no previous version exists. */
|
|
18843
|
+
previousVersion: string().nullable(),
|
|
18844
|
+
/** Version of the immutable baked seed closure (image fallback). */
|
|
18845
|
+
seedVersion: string().nullable(),
|
|
18846
|
+
/** Latest registry version from the most recent check (null = never checked). */
|
|
18847
|
+
latestVersion: string().nullable(),
|
|
18848
|
+
updateAvailable: boolean(),
|
|
18849
|
+
bootMode: ServerBootModeSchema,
|
|
18850
|
+
updateState: ServerUpdateStateSchema,
|
|
18851
|
+
/** Version staged + awaiting its probation boot, when one is pending. */
|
|
18852
|
+
pendingVersion: string().nullable(),
|
|
18853
|
+
/** Set when the last freshly-activated version failed its boot health-check. */
|
|
18854
|
+
rolledBack: ServerRollbackInfoSchema.nullable(),
|
|
18855
|
+
/**
|
|
18856
|
+
* True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
|
|
18857
|
+
* hub is running from the baked seed (or workspace) while installed data-dir
|
|
18858
|
+
* versions are being IGNORED. Surfaced as a warning in the UI.
|
|
18859
|
+
*/
|
|
18860
|
+
stateFileCorrupt: boolean(),
|
|
18861
|
+
lastCheckedAtMs: number().nullable()
|
|
18862
|
+
});
|
|
18863
|
+
var ServerUpdateCheckResultSchema = object({
|
|
18864
|
+
packageName: string(),
|
|
18865
|
+
runningVersion: string().nullable(),
|
|
18866
|
+
latestVersion: string().nullable(),
|
|
18867
|
+
updateAvailable: boolean(),
|
|
18868
|
+
checkedAtMs: number(),
|
|
18869
|
+
/** Non-null when the registry lookup failed (offline, bad registry, …). */
|
|
18870
|
+
error: string().nullable()
|
|
18871
|
+
});
|
|
18872
|
+
var ServerUpdateActionResultSchema = object({
|
|
18873
|
+
accepted: boolean(),
|
|
18874
|
+
targetVersion: string().nullable(),
|
|
18875
|
+
/** True when a graceful restart was scheduled to apply the change. */
|
|
18876
|
+
restarting: boolean(),
|
|
18877
|
+
message: string()
|
|
18878
|
+
});
|
|
18879
|
+
method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
|
|
18880
|
+
kind: "mutation",
|
|
18881
|
+
auth: "admin"
|
|
18882
|
+
}), method(object({
|
|
18883
|
+
/** Explicit target version; omitted = latest from the registry. */
|
|
18884
|
+
version: string().optional() }), ServerUpdateActionResultSchema, {
|
|
18885
|
+
kind: "mutation",
|
|
18886
|
+
auth: "admin"
|
|
18887
|
+
}), method(_void(), ServerUpdateActionResultSchema, {
|
|
18888
|
+
kind: "mutation",
|
|
18889
|
+
auth: "admin"
|
|
18890
|
+
}), method(_void(), ServerUpdateActionResultSchema, {
|
|
18891
|
+
kind: "mutation",
|
|
18892
|
+
auth: "admin"
|
|
18503
18893
|
});
|
|
18504
|
-
method(object({
|
|
18505
|
-
deviceId: number(),
|
|
18506
|
-
streams: array(RegisteredStreamSchema).readonly()
|
|
18507
|
-
}), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(ExposedResourceSchema).readonly());
|
|
18508
18894
|
/**
|
|
18509
18895
|
* Query filter for settings-store collections.
|
|
18510
18896
|
*/
|
|
@@ -18657,9 +19043,9 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
|
|
|
18657
19043
|
/**
|
|
18658
19044
|
* A single device snapshot returned as base64 JPEG/PNG.
|
|
18659
19045
|
*
|
|
18660
|
-
*
|
|
18661
|
-
*
|
|
18662
|
-
*
|
|
19046
|
+
* The `SnapshotAddon` wrapper returns this shape whether the frame came from
|
|
19047
|
+
* the device-native provider (onboard capture) or from the stream-broker
|
|
19048
|
+
* prebuffer fallback.
|
|
18663
19049
|
*/
|
|
18664
19050
|
var SnapshotImageSchema = object({
|
|
18665
19051
|
base64: string(),
|
|
@@ -18690,11 +19076,12 @@ DeviceType.Camera, method(object({
|
|
|
18690
19076
|
}), SnapshotImageSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
18691
19077
|
kind: "mutation",
|
|
18692
19078
|
auth: "admin"
|
|
18693
|
-
})
|
|
18694
|
-
method(object({ deviceId: number() }), boolean()), method(object({
|
|
19079
|
+
}), systemMethod(object({ deviceIds: array(number()).min(1).max(200) }), array(object({
|
|
18695
19080
|
deviceId: number(),
|
|
18696
|
-
|
|
18697
|
-
|
|
19081
|
+
lastCapturedAt: number().nullable(),
|
|
19082
|
+
cacheAgeMs: number().nullable(),
|
|
19083
|
+
etag: string().nullable()
|
|
19084
|
+
})));
|
|
18698
19085
|
/**
|
|
18699
19086
|
* `sso-bridge` — internal hub-only cap that lets SSO-style auth
|
|
18700
19087
|
* providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
|
|
@@ -18945,10 +19332,32 @@ method(_void(), array(TurnServerSchema).readonly());
|
|
|
18945
19332
|
* b. `finishAuthentication({userId, response})` → server verifies
|
|
18946
19333
|
* the assertion, bumps the credential counter, returns ok.
|
|
18947
19334
|
*
|
|
19335
|
+
* 2b. Usernameless (discoverable-credential) authentication — the
|
|
19336
|
+
* passkey IS the primary factor, no password leg:
|
|
19337
|
+
* a. `beginDiscoverableAuthentication({})` → assertion options with
|
|
19338
|
+
* EMPTY `allowCredentials` (the browser offers every resident
|
|
19339
|
+
* passkey it holds for this RP) + `userVerification: 'required'`
|
|
19340
|
+
* (the passkey replaces both factors, so UV is mandatory).
|
|
19341
|
+
* The challenge is stored server-side, NOT bound to any user.
|
|
19342
|
+
* b. `finishDiscoverableAuthentication({response})` → the provider
|
|
19343
|
+
* resolves the credential by the response's credential id,
|
|
19344
|
+
* verifies the assertion against the stored challenge + that
|
|
19345
|
+
* credential's public key/counter, and returns the OWNING
|
|
19346
|
+
* `userId` — the caller (core auth router) mints the session.
|
|
19347
|
+
*
|
|
18948
19348
|
* 3. Management:
|
|
18949
19349
|
* - `listPasskeys({userId})` — enumerate user's enrolled credentials.
|
|
18950
19350
|
* - `removePasskey({userId, credentialId})` — revoke one credential.
|
|
18951
19351
|
*
|
|
19352
|
+
* 4. Second-factor preference (opt-in, default OFF):
|
|
19353
|
+
* Enrolling a passkey only enables passkey-FIRST sign-in. It is
|
|
19354
|
+
* demanded as a second factor after a password login ONLY when the
|
|
19355
|
+
* user explicitly opts in via `setSecondFactorPreference`.
|
|
19356
|
+
* - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
|
|
19357
|
+
* row ⇒ `enabled: false`).
|
|
19358
|
+
* - `setSecondFactorPreference({userId, enabled})` — persisted by
|
|
19359
|
+
* the providing addon beside its credentials.
|
|
19360
|
+
*
|
|
18952
19361
|
* Challenges are short-lived (5 min, in-memory). The cap is internal —
|
|
18953
19362
|
* the admin-ui composes the begin/finish round-trip and never exposes
|
|
18954
19363
|
* the cap to non-admins.
|
|
@@ -18991,6 +19400,17 @@ method(object({
|
|
|
18991
19400
|
}), object({ verified: boolean() }), {
|
|
18992
19401
|
kind: "mutation",
|
|
18993
19402
|
access: "view"
|
|
19403
|
+
}), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
|
|
19404
|
+
kind: "mutation",
|
|
19405
|
+
access: "view"
|
|
19406
|
+
}), method(object({
|
|
19407
|
+
/** AuthenticationResponseJSON from the browser. */
|
|
19408
|
+
response: record(string(), unknown()) }), object({
|
|
19409
|
+
verified: boolean(),
|
|
19410
|
+
userId: string().nullable()
|
|
19411
|
+
}), {
|
|
19412
|
+
kind: "mutation",
|
|
19413
|
+
access: "view"
|
|
18994
19414
|
}), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
|
|
18995
19415
|
userId: string(),
|
|
18996
19416
|
credentialId: string()
|
|
@@ -18998,6 +19418,13 @@ method(object({
|
|
|
18998
19418
|
kind: "mutation",
|
|
18999
19419
|
auth: "admin",
|
|
19000
19420
|
access: "delete"
|
|
19421
|
+
}), method(object({ userId: string() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
|
|
19422
|
+
userId: string(),
|
|
19423
|
+
enabled: boolean()
|
|
19424
|
+
}), object({ success: literal(true) }), {
|
|
19425
|
+
kind: "mutation",
|
|
19426
|
+
auth: "admin",
|
|
19427
|
+
access: "create"
|
|
19001
19428
|
});
|
|
19002
19429
|
/**
|
|
19003
19430
|
* `videoclips` — the unified, navigable-clip surface for a camera.
|
|
@@ -19055,9 +19482,10 @@ method(object({
|
|
|
19055
19482
|
auth: "admin"
|
|
19056
19483
|
});
|
|
19057
19484
|
/**
|
|
19058
|
-
* Optional client-side hints sent at session creation to help the
|
|
19059
|
-
*
|
|
19060
|
-
*
|
|
19485
|
+
* Optional client-side hints sent at session creation to help the provider
|
|
19486
|
+
* pick the best native source. All fields optional — a viewer that knows
|
|
19487
|
+
* nothing still gets a sane default. (Relocated from the retired `webrtc`
|
|
19488
|
+
* collection cap; this `webrtc-session` cap is the live signaling surface.)
|
|
19061
19489
|
*/
|
|
19062
19490
|
var webrtcClientHintsSchema = object({
|
|
19063
19491
|
viewportWidth: number().int().positive().optional(),
|
|
@@ -19068,22 +19496,6 @@ var webrtcClientHintsSchema = object({
|
|
|
19068
19496
|
/** Hard tier override; takes precedence over scoring when registered. */
|
|
19069
19497
|
prefersTier: string().optional()
|
|
19070
19498
|
}).partial();
|
|
19071
|
-
method(object({
|
|
19072
|
-
streamId: string(),
|
|
19073
|
-
sdpOffer: string()
|
|
19074
|
-
}), string(), { kind: "mutation" }), method(object({ streamId: string() }), boolean()), method(object({
|
|
19075
|
-
streamId: string(),
|
|
19076
|
-
codec: string()
|
|
19077
|
-
}), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
|
|
19078
|
-
streamId: string(),
|
|
19079
|
-
hints: webrtcClientHintsSchema.optional()
|
|
19080
|
-
}), object({
|
|
19081
|
-
sessionId: string(),
|
|
19082
|
-
sdpOffer: string()
|
|
19083
|
-
}), { kind: "mutation" }), method(object({
|
|
19084
|
-
sessionId: string(),
|
|
19085
|
-
sdpAnswer: string()
|
|
19086
|
-
}), _void(), { kind: "mutation" }), method(object({ sessionId: string() }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), boolean());
|
|
19087
19499
|
/**
|
|
19088
19500
|
* Discriminated target for a WebRTC session. The client sends this
|
|
19089
19501
|
* structured object instead of building / parsing brokerId strings;
|
|
@@ -19814,7 +20226,17 @@ var FaceInfoSchema = object({
|
|
|
19814
20226
|
recognizedIdentityId: string().optional(),
|
|
19815
20227
|
identityName: string().optional(),
|
|
19816
20228
|
assigned: boolean(),
|
|
19817
|
-
base64: string().optional()
|
|
20229
|
+
base64: string().optional(),
|
|
20230
|
+
/** Design B: the face bbox (pixel space) on the key frame — lets a detail
|
|
20231
|
+
* view draw the box over the native `keyFrameMediaKey` frame. Absent on
|
|
20232
|
+
* legacy rows written before design B. */
|
|
20233
|
+
faceBbox: BoundingBoxSchema.optional(),
|
|
20234
|
+
/** Design B: MediaStore key of the track's native-resolution key frame.
|
|
20235
|
+
* Fetch the native JPEG via the event-media data-plane
|
|
20236
|
+
* (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
|
|
20237
|
+
* track produced no key frame (e.g. native/onboard source) — the UI falls
|
|
20238
|
+
* back to the inline `base64` face crop. */
|
|
20239
|
+
keyFrameMediaKey: string().optional()
|
|
19818
20240
|
});
|
|
19819
20241
|
var FaceFilterEnum = _enum([
|
|
19820
20242
|
"unassigned",
|
|
@@ -20511,6 +20933,16 @@ var TopologyCategorySchema = object({
|
|
|
20511
20933
|
healthy: number(),
|
|
20512
20934
|
addons: array(TopologyCategoryAddonSchema).readonly()
|
|
20513
20935
|
});
|
|
20936
|
+
/**
|
|
20937
|
+
* The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
|
|
20938
|
+
* `@camstack/agent` on agents) as reported by its `registerNode` manifest —
|
|
20939
|
+
* version visibility for the Server management surface. Nullable: offline
|
|
20940
|
+
* rows and pre-phase-2 nodes report none.
|
|
20941
|
+
*/
|
|
20942
|
+
var TopologyRootPackageSchema = object({
|
|
20943
|
+
name: string(),
|
|
20944
|
+
version: string()
|
|
20945
|
+
});
|
|
20514
20946
|
var TopologyNodeSchema = object({
|
|
20515
20947
|
id: string(),
|
|
20516
20948
|
name: string(),
|
|
@@ -20534,7 +20966,8 @@ var TopologyNodeSchema = object({
|
|
|
20534
20966
|
status: string()
|
|
20535
20967
|
})).readonly(),
|
|
20536
20968
|
processes: array(TopologyProcessSchema).readonly(),
|
|
20537
|
-
categories: array(TopologyCategorySchema).readonly()
|
|
20969
|
+
categories: array(TopologyCategorySchema).readonly(),
|
|
20970
|
+
rootPackage: TopologyRootPackageSchema.nullable()
|
|
20538
20971
|
});
|
|
20539
20972
|
var CapUsageEdgeSchema = object({
|
|
20540
20973
|
callerAddonId: string(),
|
|
@@ -23334,6 +23767,12 @@ Object.freeze({
|
|
|
23334
23767
|
addonId: null,
|
|
23335
23768
|
access: "create"
|
|
23336
23769
|
},
|
|
23770
|
+
"loginMethod.getLoginMethods": {
|
|
23771
|
+
capName: "login-method",
|
|
23772
|
+
capScope: "system",
|
|
23773
|
+
addonId: null,
|
|
23774
|
+
access: "view"
|
|
23775
|
+
},
|
|
23337
23776
|
"mediaPlayer.next": {
|
|
23338
23777
|
capName: "media-player",
|
|
23339
23778
|
capScope: "device",
|
|
@@ -23916,6 +24355,12 @@ Object.freeze({
|
|
|
23916
24355
|
addonId: null,
|
|
23917
24356
|
access: "view"
|
|
23918
24357
|
},
|
|
24358
|
+
"pipelineAnalytics.getKeyEvents": {
|
|
24359
|
+
capName: "pipeline-analytics",
|
|
24360
|
+
capScope: "device",
|
|
24361
|
+
addonId: null,
|
|
24362
|
+
access: "view"
|
|
24363
|
+
},
|
|
23919
24364
|
"pipelineAnalytics.getMotionEvents": {
|
|
23920
24365
|
capName: "pipeline-analytics",
|
|
23921
24366
|
capScope: "device",
|
|
@@ -23964,23 +24409,23 @@ Object.freeze({
|
|
|
23964
24409
|
addonId: null,
|
|
23965
24410
|
access: "create"
|
|
23966
24411
|
},
|
|
23967
|
-
"pipelineExecutor.
|
|
24412
|
+
"pipelineExecutor.clearDeviceOverrides": {
|
|
23968
24413
|
capName: "pipeline-executor",
|
|
23969
24414
|
capScope: "system",
|
|
23970
24415
|
addonId: null,
|
|
23971
24416
|
access: "delete"
|
|
23972
24417
|
},
|
|
23973
|
-
"pipelineExecutor.
|
|
24418
|
+
"pipelineExecutor.deleteModel": {
|
|
23974
24419
|
capName: "pipeline-executor",
|
|
23975
24420
|
capScope: "system",
|
|
23976
24421
|
addonId: null,
|
|
23977
24422
|
access: "delete"
|
|
23978
24423
|
},
|
|
23979
|
-
"pipelineExecutor.
|
|
24424
|
+
"pipelineExecutor.deleteTemplate": {
|
|
23980
24425
|
capName: "pipeline-executor",
|
|
23981
24426
|
capScope: "system",
|
|
23982
24427
|
addonId: null,
|
|
23983
|
-
access: "
|
|
24428
|
+
access: "delete"
|
|
23984
24429
|
},
|
|
23985
24430
|
"pipelineExecutor.downloadModel": {
|
|
23986
24431
|
capName: "pipeline-executor",
|
|
@@ -24174,13 +24619,13 @@ Object.freeze({
|
|
|
24174
24619
|
addonId: null,
|
|
24175
24620
|
access: "create"
|
|
24176
24621
|
},
|
|
24177
|
-
"
|
|
24178
|
-
capName: "pipeline-
|
|
24622
|
+
"pipelineExecutor.validatePipeline": {
|
|
24623
|
+
capName: "pipeline-executor",
|
|
24179
24624
|
capScope: "system",
|
|
24180
24625
|
addonId: null,
|
|
24181
|
-
access: "
|
|
24626
|
+
access: "view"
|
|
24182
24627
|
},
|
|
24183
|
-
"pipelineOrchestrator.
|
|
24628
|
+
"pipelineOrchestrator.assignAudio": {
|
|
24184
24629
|
capName: "pipeline-orchestrator",
|
|
24185
24630
|
capScope: "system",
|
|
24186
24631
|
addonId: null,
|
|
@@ -24264,19 +24709,13 @@ Object.freeze({
|
|
|
24264
24709
|
addonId: null,
|
|
24265
24710
|
access: "view"
|
|
24266
24711
|
},
|
|
24267
|
-
"pipelineOrchestrator.
|
|
24268
|
-
capName: "pipeline-orchestrator",
|
|
24269
|
-
capScope: "system",
|
|
24270
|
-
addonId: null,
|
|
24271
|
-
access: "view"
|
|
24272
|
-
},
|
|
24273
|
-
"pipelineOrchestrator.getDecoderAssignments": {
|
|
24712
|
+
"pipelineOrchestrator.getGlobalMetrics": {
|
|
24274
24713
|
capName: "pipeline-orchestrator",
|
|
24275
24714
|
capScope: "system",
|
|
24276
24715
|
addonId: null,
|
|
24277
24716
|
access: "view"
|
|
24278
24717
|
},
|
|
24279
|
-
"pipelineOrchestrator.
|
|
24718
|
+
"pipelineOrchestrator.getIngestOwner": {
|
|
24280
24719
|
capName: "pipeline-orchestrator",
|
|
24281
24720
|
capScope: "system",
|
|
24282
24721
|
addonId: null,
|
|
@@ -24318,6 +24757,12 @@ Object.freeze({
|
|
|
24318
24757
|
addonId: null,
|
|
24319
24758
|
access: "delete"
|
|
24320
24759
|
},
|
|
24760
|
+
"pipelineOrchestrator.resetNodePipelineDefaults": {
|
|
24761
|
+
capName: "pipeline-orchestrator",
|
|
24762
|
+
capScope: "system",
|
|
24763
|
+
addonId: null,
|
|
24764
|
+
access: "delete"
|
|
24765
|
+
},
|
|
24321
24766
|
"pipelineOrchestrator.resolvePipeline": {
|
|
24322
24767
|
capName: "pipeline-orchestrator",
|
|
24323
24768
|
capScope: "system",
|
|
@@ -24354,37 +24799,37 @@ Object.freeze({
|
|
|
24354
24799
|
addonId: null,
|
|
24355
24800
|
access: "create"
|
|
24356
24801
|
},
|
|
24357
|
-
"pipelineOrchestrator.
|
|
24802
|
+
"pipelineOrchestrator.setAgentReachableHost": {
|
|
24358
24803
|
capName: "pipeline-orchestrator",
|
|
24359
24804
|
capScope: "system",
|
|
24360
24805
|
addonId: null,
|
|
24361
24806
|
access: "create"
|
|
24362
24807
|
},
|
|
24363
|
-
"pipelineOrchestrator.
|
|
24808
|
+
"pipelineOrchestrator.setCameraPipelineForAgent": {
|
|
24364
24809
|
capName: "pipeline-orchestrator",
|
|
24365
24810
|
capScope: "system",
|
|
24366
24811
|
addonId: null,
|
|
24367
24812
|
access: "create"
|
|
24368
24813
|
},
|
|
24369
|
-
"pipelineOrchestrator.
|
|
24814
|
+
"pipelineOrchestrator.setCameraStepOverride": {
|
|
24370
24815
|
capName: "pipeline-orchestrator",
|
|
24371
24816
|
capScope: "system",
|
|
24372
24817
|
addonId: null,
|
|
24373
24818
|
access: "create"
|
|
24374
24819
|
},
|
|
24375
|
-
"pipelineOrchestrator.
|
|
24820
|
+
"pipelineOrchestrator.setCameraStepToggle": {
|
|
24376
24821
|
capName: "pipeline-orchestrator",
|
|
24377
24822
|
capScope: "system",
|
|
24378
24823
|
addonId: null,
|
|
24379
24824
|
access: "create"
|
|
24380
24825
|
},
|
|
24381
|
-
"pipelineOrchestrator.
|
|
24826
|
+
"pipelineOrchestrator.setCapabilityBinding": {
|
|
24382
24827
|
capName: "pipeline-orchestrator",
|
|
24383
24828
|
capScope: "system",
|
|
24384
24829
|
addonId: null,
|
|
24385
24830
|
access: "create"
|
|
24386
24831
|
},
|
|
24387
|
-
"pipelineOrchestrator.
|
|
24832
|
+
"pipelineOrchestrator.unassignAudio": {
|
|
24388
24833
|
capName: "pipeline-orchestrator",
|
|
24389
24834
|
capScope: "system",
|
|
24390
24835
|
addonId: null,
|
|
@@ -24444,12 +24889,24 @@ Object.freeze({
|
|
|
24444
24889
|
addonId: null,
|
|
24445
24890
|
access: "view"
|
|
24446
24891
|
},
|
|
24892
|
+
"pipelineRunner.getNativeCrop": {
|
|
24893
|
+
capName: "pipeline-runner",
|
|
24894
|
+
capScope: "system",
|
|
24895
|
+
addonId: null,
|
|
24896
|
+
access: "view"
|
|
24897
|
+
},
|
|
24447
24898
|
"pipelineRunner.reportMotion": {
|
|
24448
24899
|
capName: "pipeline-runner",
|
|
24449
24900
|
capScope: "system",
|
|
24450
24901
|
addonId: null,
|
|
24451
24902
|
access: "create"
|
|
24452
24903
|
},
|
|
24904
|
+
"pipelineRunner.runDetailSubtree": {
|
|
24905
|
+
capName: "pipeline-runner",
|
|
24906
|
+
capScope: "system",
|
|
24907
|
+
addonId: null,
|
|
24908
|
+
access: "create"
|
|
24909
|
+
},
|
|
24453
24910
|
"plateGallery.correctPlateText": {
|
|
24454
24911
|
capName: "plate-gallery",
|
|
24455
24912
|
capScope: "system",
|
|
@@ -24684,33 +25141,45 @@ Object.freeze({
|
|
|
24684
25141
|
addonId: null,
|
|
24685
25142
|
access: "create"
|
|
24686
25143
|
},
|
|
24687
|
-
"
|
|
24688
|
-
capName: "
|
|
25144
|
+
"scriptRunner.run": {
|
|
25145
|
+
capName: "script-runner",
|
|
25146
|
+
capScope: "device",
|
|
25147
|
+
addonId: null,
|
|
25148
|
+
access: "create"
|
|
25149
|
+
},
|
|
25150
|
+
"scriptRunner.stop": {
|
|
25151
|
+
capName: "script-runner",
|
|
25152
|
+
capScope: "device",
|
|
25153
|
+
addonId: null,
|
|
25154
|
+
access: "create"
|
|
25155
|
+
},
|
|
25156
|
+
"serverManagement.applyServerUpdate": {
|
|
25157
|
+
capName: "server-management",
|
|
24689
25158
|
capScope: "system",
|
|
24690
25159
|
addonId: null,
|
|
24691
|
-
access: "
|
|
25160
|
+
access: "create"
|
|
24692
25161
|
},
|
|
24693
|
-
"
|
|
24694
|
-
capName: "
|
|
25162
|
+
"serverManagement.checkServerUpdate": {
|
|
25163
|
+
capName: "server-management",
|
|
24695
25164
|
capScope: "system",
|
|
24696
25165
|
addonId: null,
|
|
24697
25166
|
access: "create"
|
|
24698
25167
|
},
|
|
24699
|
-
"
|
|
24700
|
-
capName: "
|
|
25168
|
+
"serverManagement.getServerPackageStatus": {
|
|
25169
|
+
capName: "server-management",
|
|
24701
25170
|
capScope: "system",
|
|
24702
25171
|
addonId: null,
|
|
24703
|
-
access: "
|
|
25172
|
+
access: "view"
|
|
24704
25173
|
},
|
|
24705
|
-
"
|
|
24706
|
-
capName: "
|
|
24707
|
-
capScope: "
|
|
25174
|
+
"serverManagement.restartServer": {
|
|
25175
|
+
capName: "server-management",
|
|
25176
|
+
capScope: "system",
|
|
24708
25177
|
addonId: null,
|
|
24709
25178
|
access: "create"
|
|
24710
25179
|
},
|
|
24711
|
-
"
|
|
24712
|
-
capName: "
|
|
24713
|
-
capScope: "
|
|
25180
|
+
"serverManagement.rollbackServerUpdate": {
|
|
25181
|
+
capName: "server-management",
|
|
25182
|
+
capScope: "system",
|
|
24714
25183
|
addonId: null,
|
|
24715
25184
|
access: "create"
|
|
24716
25185
|
},
|
|
@@ -24798,23 +25267,17 @@ Object.freeze({
|
|
|
24798
25267
|
addonId: null,
|
|
24799
25268
|
access: "view"
|
|
24800
25269
|
},
|
|
24801
|
-
"snapshot.
|
|
25270
|
+
"snapshot.getSnapshotOverview": {
|
|
24802
25271
|
capName: "snapshot",
|
|
24803
25272
|
capScope: "device",
|
|
24804
25273
|
addonId: null,
|
|
24805
|
-
access: "create"
|
|
24806
|
-
},
|
|
24807
|
-
"snapshotProvider.getSnapshot": {
|
|
24808
|
-
capName: "snapshot-provider",
|
|
24809
|
-
capScope: "system",
|
|
24810
|
-
addonId: null,
|
|
24811
25274
|
access: "view"
|
|
24812
25275
|
},
|
|
24813
|
-
"
|
|
24814
|
-
capName: "snapshot
|
|
24815
|
-
capScope: "
|
|
25276
|
+
"snapshot.invalidateCache": {
|
|
25277
|
+
capName: "snapshot",
|
|
25278
|
+
capScope: "device",
|
|
24816
25279
|
addonId: null,
|
|
24817
|
-
access: "
|
|
25280
|
+
access: "create"
|
|
24818
25281
|
},
|
|
24819
25282
|
"ssoBridge.signBridgeToken": {
|
|
24820
25283
|
capName: "sso-bridge",
|
|
@@ -25242,30 +25705,6 @@ Object.freeze({
|
|
|
25242
25705
|
addonId: null,
|
|
25243
25706
|
access: "view"
|
|
25244
25707
|
},
|
|
25245
|
-
"streamingEngine.getStreamUrl": {
|
|
25246
|
-
capName: "streaming-engine",
|
|
25247
|
-
capScope: "system",
|
|
25248
|
-
addonId: null,
|
|
25249
|
-
access: "view"
|
|
25250
|
-
},
|
|
25251
|
-
"streamingEngine.listStreams": {
|
|
25252
|
-
capName: "streaming-engine",
|
|
25253
|
-
capScope: "system",
|
|
25254
|
-
addonId: null,
|
|
25255
|
-
access: "view"
|
|
25256
|
-
},
|
|
25257
|
-
"streamingEngine.registerStream": {
|
|
25258
|
-
capName: "streaming-engine",
|
|
25259
|
-
capScope: "system",
|
|
25260
|
-
addonId: null,
|
|
25261
|
-
access: "create"
|
|
25262
|
-
},
|
|
25263
|
-
"streamingEngine.unregisterStream": {
|
|
25264
|
-
capName: "streaming-engine",
|
|
25265
|
-
capScope: "system",
|
|
25266
|
-
addonId: null,
|
|
25267
|
-
access: "delete"
|
|
25268
|
-
},
|
|
25269
25708
|
"streamParams.getConfigSchema": {
|
|
25270
25709
|
capName: "stream-params",
|
|
25271
25710
|
capScope: "device",
|
|
@@ -25512,6 +25951,12 @@ Object.freeze({
|
|
|
25512
25951
|
addonId: null,
|
|
25513
25952
|
access: "view"
|
|
25514
25953
|
},
|
|
25954
|
+
"userPasskeys.beginDiscoverableAuthentication": {
|
|
25955
|
+
capName: "user-passkeys",
|
|
25956
|
+
capScope: "system",
|
|
25957
|
+
addonId: null,
|
|
25958
|
+
access: "view"
|
|
25959
|
+
},
|
|
25515
25960
|
"userPasskeys.beginRegistration": {
|
|
25516
25961
|
capName: "user-passkeys",
|
|
25517
25962
|
capScope: "system",
|
|
@@ -25524,12 +25969,24 @@ Object.freeze({
|
|
|
25524
25969
|
addonId: null,
|
|
25525
25970
|
access: "view"
|
|
25526
25971
|
},
|
|
25972
|
+
"userPasskeys.finishDiscoverableAuthentication": {
|
|
25973
|
+
capName: "user-passkeys",
|
|
25974
|
+
capScope: "system",
|
|
25975
|
+
addonId: null,
|
|
25976
|
+
access: "view"
|
|
25977
|
+
},
|
|
25527
25978
|
"userPasskeys.finishRegistration": {
|
|
25528
25979
|
capName: "user-passkeys",
|
|
25529
25980
|
capScope: "system",
|
|
25530
25981
|
addonId: null,
|
|
25531
25982
|
access: "create"
|
|
25532
25983
|
},
|
|
25984
|
+
"userPasskeys.getSecondFactorPreference": {
|
|
25985
|
+
capName: "user-passkeys",
|
|
25986
|
+
capScope: "system",
|
|
25987
|
+
addonId: null,
|
|
25988
|
+
access: "view"
|
|
25989
|
+
},
|
|
25533
25990
|
"userPasskeys.listPasskeys": {
|
|
25534
25991
|
capName: "user-passkeys",
|
|
25535
25992
|
capScope: "system",
|
|
@@ -25542,6 +25999,12 @@ Object.freeze({
|
|
|
25542
25999
|
addonId: null,
|
|
25543
26000
|
access: "delete"
|
|
25544
26001
|
},
|
|
26002
|
+
"userPasskeys.setSecondFactorPreference": {
|
|
26003
|
+
capName: "user-passkeys",
|
|
26004
|
+
capScope: "system",
|
|
26005
|
+
addonId: null,
|
|
26006
|
+
access: "create"
|
|
26007
|
+
},
|
|
25545
26008
|
"vacuumControl.locate": {
|
|
25546
26009
|
capName: "vacuum-control",
|
|
25547
26010
|
capScope: "device",
|
|
@@ -25614,6 +26077,18 @@ Object.freeze({
|
|
|
25614
26077
|
addonId: null,
|
|
25615
26078
|
access: "view"
|
|
25616
26079
|
},
|
|
26080
|
+
"viewerUi.getStaticDir": {
|
|
26081
|
+
capName: "viewer-ui",
|
|
26082
|
+
capScope: "system",
|
|
26083
|
+
addonId: null,
|
|
26084
|
+
access: "view"
|
|
26085
|
+
},
|
|
26086
|
+
"viewerUi.getVersion": {
|
|
26087
|
+
capName: "viewer-ui",
|
|
26088
|
+
capScope: "system",
|
|
26089
|
+
addonId: null,
|
|
26090
|
+
access: "view"
|
|
26091
|
+
},
|
|
25617
26092
|
"waterHeater.setAway": {
|
|
25618
26093
|
capName: "water-heater",
|
|
25619
26094
|
capScope: "device",
|
|
@@ -25632,54 +26107,6 @@ Object.freeze({
|
|
|
25632
26107
|
addonId: null,
|
|
25633
26108
|
access: "create"
|
|
25634
26109
|
},
|
|
25635
|
-
"webrtc.closeSession": {
|
|
25636
|
-
capName: "webrtc",
|
|
25637
|
-
capScope: "system",
|
|
25638
|
-
addonId: null,
|
|
25639
|
-
access: "create"
|
|
25640
|
-
},
|
|
25641
|
-
"webrtc.createSession": {
|
|
25642
|
-
capName: "webrtc",
|
|
25643
|
-
capScope: "system",
|
|
25644
|
-
addonId: null,
|
|
25645
|
-
access: "create"
|
|
25646
|
-
},
|
|
25647
|
-
"webrtc.handleAnswer": {
|
|
25648
|
-
capName: "webrtc",
|
|
25649
|
-
capScope: "system",
|
|
25650
|
-
addonId: null,
|
|
25651
|
-
access: "create"
|
|
25652
|
-
},
|
|
25653
|
-
"webrtc.handleOffer": {
|
|
25654
|
-
capName: "webrtc",
|
|
25655
|
-
capScope: "system",
|
|
25656
|
-
addonId: null,
|
|
25657
|
-
access: "create"
|
|
25658
|
-
},
|
|
25659
|
-
"webrtc.hasAdaptiveBitrate": {
|
|
25660
|
-
capName: "webrtc",
|
|
25661
|
-
capScope: "system",
|
|
25662
|
-
addonId: null,
|
|
25663
|
-
access: "view"
|
|
25664
|
-
},
|
|
25665
|
-
"webrtc.registerStream": {
|
|
25666
|
-
capName: "webrtc",
|
|
25667
|
-
capScope: "system",
|
|
25668
|
-
addonId: null,
|
|
25669
|
-
access: "create"
|
|
25670
|
-
},
|
|
25671
|
-
"webrtc.supportsStream": {
|
|
25672
|
-
capName: "webrtc",
|
|
25673
|
-
capScope: "system",
|
|
25674
|
-
addonId: null,
|
|
25675
|
-
access: "view"
|
|
25676
|
-
},
|
|
25677
|
-
"webrtc.unregisterStream": {
|
|
25678
|
-
capName: "webrtc",
|
|
25679
|
-
capScope: "system",
|
|
25680
|
-
addonId: null,
|
|
25681
|
-
access: "delete"
|
|
25682
|
-
},
|
|
25683
26110
|
"webrtcSession.addIceCandidate": {
|
|
25684
26111
|
capName: "webrtc-session",
|
|
25685
26112
|
capScope: "device",
|