@camstack/addon-model-studio 1.0.20 → 1.0.21
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/{MotionZonesSettings-B8zY3pkc.mjs → MotionZonesSettings-xXTYDtIM.mjs} +1 -1
- package/dist/{PrivacyMaskSettings-BJw9F4tX.mjs → PrivacyMaskSettings-CUB3plKT.mjs} +2 -2
- package/dist/_stub.js +7 -7
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-Dw07IQjm.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-BZHMr_NM.mjs} +4 -4
- package/dist/_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DGeSi8Rf.mjs +26 -0
- package/dist/addon-model-studio.css +1 -1
- package/dist/{hostInit-Be2N_rRF.mjs → hostInit-B0Kz_Xao.mjs} +3 -3
- package/dist/model-studio.addon.js +447 -13
- package/dist/model-studio.addon.mjs +447 -13
- package/dist/{player-overlays-cdjsjpfU.mjs → player-overlays-6JCUcHzw.mjs} +1 -1
- package/dist/remoteEntry.js +1 -1
- package/dist/{trash-2-_s-VyaCt.mjs → trash-2-CH1_KJWF.mjs} +1 -1
- package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-D3u6P1TG.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-BeSSIZvy.mjs} +1 -1
- package/package.json +1 -1
- package/dist/_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-5Jtg3R9r.mjs +0 -26
|
@@ -4638,7 +4638,7 @@ function _instanceof(cls, params = {}) {
|
|
|
4638
4638
|
return inst;
|
|
4639
4639
|
}
|
|
4640
4640
|
//#endregion
|
|
4641
|
-
//#region ../types/dist/sleep-
|
|
4641
|
+
//#region ../types/dist/sleep-BC9Yqte7.mjs
|
|
4642
4642
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
4643
4643
|
EventCategory["SystemBoot"] = "system.boot";
|
|
4644
4644
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -5359,10 +5359,6 @@ function hydrateField(field, values) {
|
|
|
5359
5359
|
};
|
|
5360
5360
|
}
|
|
5361
5361
|
const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
|
|
5362
|
-
if (field.type === "password") return {
|
|
5363
|
-
...field,
|
|
5364
|
-
value: ""
|
|
5365
|
-
};
|
|
5366
5362
|
const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
|
|
5367
5363
|
return {
|
|
5368
5364
|
...field,
|
|
@@ -6746,6 +6742,21 @@ function method(input, output, options) {
|
|
|
6746
6742
|
timeoutMs: options?.timeoutMs
|
|
6747
6743
|
};
|
|
6748
6744
|
}
|
|
6745
|
+
/**
|
|
6746
|
+
* A wrapper/system-only method: served exclusively by the cap's system-level
|
|
6747
|
+
* provider (`InferProvider`), and OPTIONAL on `InferNativeProvider` so per-device
|
|
6748
|
+
* driver natives don't stub out a wrapper concern (e.g. a cross-device cache
|
|
6749
|
+
* overview). The `systemOnly: true` literal is what `InferNativeProvider` keys on.
|
|
6750
|
+
*/
|
|
6751
|
+
function systemMethod(input, output, options) {
|
|
6752
|
+
return {
|
|
6753
|
+
...method(input, output, options),
|
|
6754
|
+
systemOnly: true
|
|
6755
|
+
};
|
|
6756
|
+
}
|
|
6757
|
+
var StaticDirOutputSchema$1 = object({ staticDir: string() });
|
|
6758
|
+
var VersionOutputSchema$1 = object({ version: string() });
|
|
6759
|
+
method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
|
|
6749
6760
|
var StaticDirOutputSchema = object({ staticDir: string() });
|
|
6750
6761
|
var VersionOutputSchema = object({ version: string() });
|
|
6751
6762
|
method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
|
|
@@ -10512,6 +10523,7 @@ var PipelineAddonSchemaSchema = object({
|
|
|
10512
10523
|
defaultModelId: string(),
|
|
10513
10524
|
defaultModelIdByFormat: record(string(), string()).optional(),
|
|
10514
10525
|
enabledByDefault: boolean().optional(),
|
|
10526
|
+
backfillIntoExistingOverrides: boolean().optional(),
|
|
10515
10527
|
defaultConfidence: number(),
|
|
10516
10528
|
group: string().optional(),
|
|
10517
10529
|
configSchema: array(ConfigFieldBridge).readonly().optional()
|
|
@@ -10818,6 +10830,25 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(ZoneSchema).read
|
|
|
10818
10830
|
auth: "admin"
|
|
10819
10831
|
}), object({ zones: array(ZoneSchema).readonly() });
|
|
10820
10832
|
/**
|
|
10833
|
+
* A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
|
|
10834
|
+
* decode worker resolves it against the RETAINED native frame's real pixel dims,
|
|
10835
|
+
* so the caller supplies only the detection-res bbox divided by the detection
|
|
10836
|
+
* dims — no native resolution to plumb.
|
|
10837
|
+
*/
|
|
10838
|
+
var NativeCropBboxSchema = object({
|
|
10839
|
+
x: number(),
|
|
10840
|
+
y: number(),
|
|
10841
|
+
w: number(),
|
|
10842
|
+
h: number()
|
|
10843
|
+
});
|
|
10844
|
+
/** Result of a best-effort native-resolution crop (`getNativeCrop`). */
|
|
10845
|
+
var NativeCropResultSchema = object({
|
|
10846
|
+
/** Packed rgb (24-bit) pixels of the crop. */
|
|
10847
|
+
bytes: _instanceof(Uint8Array),
|
|
10848
|
+
width: number().int().positive(),
|
|
10849
|
+
height: number().int().positive()
|
|
10850
|
+
});
|
|
10851
|
+
/**
|
|
10821
10852
|
* Per-camera tunable ranges + defaults. Single source of truth used
|
|
10822
10853
|
* by both the Zod data schema (validation + default fallback) and
|
|
10823
10854
|
* the device settings UI (slider min/max/step). Touch one place and
|
|
@@ -11073,7 +11104,11 @@ var RunnerLocalMetricsSchema = object({
|
|
|
11073
11104
|
avgInferenceTimeMs: number(),
|
|
11074
11105
|
queueDepth: number()
|
|
11075
11106
|
});
|
|
11076
|
-
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())
|
|
11107
|
+
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({
|
|
11108
|
+
handle: FrameHandleSchema,
|
|
11109
|
+
bbox: NativeCropBboxSchema,
|
|
11110
|
+
maxWidth: number().int().positive().optional()
|
|
11111
|
+
}), NativeCropResultSchema.nullable());
|
|
11077
11112
|
object({
|
|
11078
11113
|
detected: boolean(),
|
|
11079
11114
|
/** Ms epoch of the last detected-true observation. Null if never detected. */
|
|
@@ -12642,6 +12677,17 @@ var WidgetMetadataSchema = object({
|
|
|
12642
12677
|
deviceContext: boolean().default(false),
|
|
12643
12678
|
integrationContext: boolean().default(false)
|
|
12644
12679
|
}),
|
|
12680
|
+
/**
|
|
12681
|
+
* Loadable BEFORE authentication. The normal widget registry listing
|
|
12682
|
+
* (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
|
|
12683
|
+
* (the login page) cannot discover a widget through it. A widget that
|
|
12684
|
+
* declares `preAuth: true` marks itself as safe to mount on a pre-auth
|
|
12685
|
+
* screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
|
|
12686
|
+
* login-method contribution channel (see `login-method.cap.ts`) rather
|
|
12687
|
+
* than the authenticated registry, and its bundle is served by the
|
|
12688
|
+
* public `/api/addon-widgets/:addonId/*` static route. Defaults false.
|
|
12689
|
+
*/
|
|
12690
|
+
preAuth: boolean().optional().default(false),
|
|
12645
12691
|
/** Dashboard placement HINTS (operator can override per instance). */
|
|
12646
12692
|
defaultSize: WidgetSizeEnum.default("md"),
|
|
12647
12693
|
allowedSizes: array(WidgetSizeEnum).readonly().default([
|
|
@@ -12943,6 +12989,66 @@ method(object({
|
|
|
12943
12989
|
password: string()
|
|
12944
12990
|
}), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
|
|
12945
12991
|
/**
|
|
12992
|
+
* `login-method` — collection cap through which auth addons contribute
|
|
12993
|
+
* their pre-auth login surfaces to the login page. This is the SINGLE,
|
|
12994
|
+
* generic mechanism that supersedes the dead `auth.listProviders` reader:
|
|
12995
|
+
* every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
|
|
12996
|
+
* `login-method` provider and the PUBLIC `auth.listLoginMethods`
|
|
12997
|
+
* procedure aggregates them for the unauthenticated login page.
|
|
12998
|
+
*
|
|
12999
|
+
* A contribution is a discriminated union on `kind`:
|
|
13000
|
+
*
|
|
13001
|
+
* - `redirect` — a declarative button. The login page renders a generic
|
|
13002
|
+
* button that navigates to `startUrl` (an addon-owned HTTP route).
|
|
13003
|
+
* Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
|
|
13004
|
+
* ZERO shell-side JS. A future SSO addon plugs in the same way — the
|
|
13005
|
+
* login page needs NO change.
|
|
13006
|
+
*
|
|
13007
|
+
* - `widget` — a Module-Federation widget the login page mounts (via
|
|
13008
|
+
* `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
|
|
13009
|
+
* login ceremony, which must run `@simplewebauthn/browser` INSIDE the
|
|
13010
|
+
* addon bundle. The referenced widget also declares `preAuth: true` in
|
|
13011
|
+
* its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
|
|
13012
|
+
* stamps a public `bundleUrl` from `addonId` + `bundle`.
|
|
13013
|
+
*
|
|
13014
|
+
* Every contribution carries a `stage`:
|
|
13015
|
+
* - `primary` — shown on the first credentials screen (OIDC /
|
|
13016
|
+
* magic-link buttons; a future usernameless passkey).
|
|
13017
|
+
* - `second-factor` — shown AFTER the password leg, gated on the
|
|
13018
|
+
* returned `factors` (passkey-as-2FA today).
|
|
13019
|
+
*
|
|
13020
|
+
* `mount: skip` — the cap is read server-side by the core auth router
|
|
13021
|
+
* (`registry.getCollection('login-method')`), never mounted as its own
|
|
13022
|
+
* tRPC router.
|
|
13023
|
+
*/
|
|
13024
|
+
/** When a login method renders in the two-phase login flow. */
|
|
13025
|
+
var LoginStageEnum = _enum(["primary", "second-factor"]);
|
|
13026
|
+
/** One login-method contribution — redirect button OR pre-auth widget. */
|
|
13027
|
+
var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
|
|
13028
|
+
kind: literal("redirect"),
|
|
13029
|
+
/** Stable id within the login-method set (e.g. `auth-oidc/google`). */
|
|
13030
|
+
id: string(),
|
|
13031
|
+
/** Operator-facing button label. */
|
|
13032
|
+
label: string(),
|
|
13033
|
+
/** lucide-react icon name. */
|
|
13034
|
+
icon: string().optional(),
|
|
13035
|
+
/** Addon-owned HTTP route the button navigates to (GET). */
|
|
13036
|
+
startUrl: string(),
|
|
13037
|
+
stage: LoginStageEnum
|
|
13038
|
+
}), object({
|
|
13039
|
+
kind: literal("widget"),
|
|
13040
|
+
/** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
|
|
13041
|
+
id: string(),
|
|
13042
|
+
/** Owning addon id — drives the public bundle URL + the MF namespace. */
|
|
13043
|
+
addonId: string(),
|
|
13044
|
+
/** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
|
|
13045
|
+
bundle: string(),
|
|
13046
|
+
/** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
|
|
13047
|
+
remote: WidgetRemoteSchema,
|
|
13048
|
+
stage: LoginStageEnum
|
|
13049
|
+
})]);
|
|
13050
|
+
method(_void(), array(LoginMethodContributionSchema).readonly());
|
|
13051
|
+
/**
|
|
12946
13052
|
* Orchestrator-side destination metadata. The orchestrator computes
|
|
12947
13053
|
* `id = <addonId>:<subId>` from its provider lookup so consumers
|
|
12948
13054
|
* (admin UI, restore flow) see one canonical key.
|
|
@@ -15079,7 +15185,17 @@ var TrackSchema = object({
|
|
|
15079
15185
|
/** Cumulative normalized distance travelled (0..1 units = full frame width). */
|
|
15080
15186
|
totalDistance: number(),
|
|
15081
15187
|
state: TrackStateSchema,
|
|
15082
|
-
active: boolean()
|
|
15188
|
+
active: boolean(),
|
|
15189
|
+
/** Deterministic key-event importance score in [0,1] (server-computed at
|
|
15190
|
+
* track expiry, recomputed on late label). Absent on legacy rows written
|
|
15191
|
+
* before scoring shipped — consumers degrade to absence / compute-on-read. */
|
|
15192
|
+
importance: number().optional(),
|
|
15193
|
+
/** Id of the track's highest-confidence ObjectEvent (its representative
|
|
15194
|
+
* "best" frame). Absent when the track produced no object events. */
|
|
15195
|
+
bestEventId: string().optional(),
|
|
15196
|
+
/** Tag of the importance sub-signal that dominated the score
|
|
15197
|
+
* (identity|dwell|proximity|class|confidence|travel|zone). */
|
|
15198
|
+
importanceReason: string().optional()
|
|
15083
15199
|
});
|
|
15084
15200
|
var BaseEventFields = {
|
|
15085
15201
|
id: string(),
|
|
@@ -15144,8 +15260,18 @@ var ObjectEventSchema = object({
|
|
|
15144
15260
|
frameHeight: number().optional(),
|
|
15145
15261
|
/** MediaStore key for the crop attached to this event (if any). */
|
|
15146
15262
|
mediaKey: string().optional(),
|
|
15263
|
+
/** Design B: MediaStore key of the track's native-resolution key frame (the
|
|
15264
|
+
* best-detection full frame). Resolve via the event-media data-plane
|
|
15265
|
+
* (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
|
|
15266
|
+
* draws `bbox` over the native frame. Absent on legacy rows / non-decoded
|
|
15267
|
+
* sources — consumers fall back to `mediaKey` (the tight crop). */
|
|
15268
|
+
keyFrameMediaKey: string().optional(),
|
|
15147
15269
|
/** Populated by B5 (recording playback URL for this event). */
|
|
15148
|
-
mediaUrl: string().optional()
|
|
15270
|
+
mediaUrl: string().optional(),
|
|
15271
|
+
/** The parent track's key-event importance [0,1], propagated to every object
|
|
15272
|
+
* event of the track (so an event row can be sorted by importance without a
|
|
15273
|
+
* track join). Absent on legacy rows / before the track was scored. */
|
|
15274
|
+
importance: number().optional()
|
|
15149
15275
|
});
|
|
15150
15276
|
var AudioEventSchema = object({
|
|
15151
15277
|
...BaseEventFields,
|
|
@@ -15169,7 +15295,8 @@ var MediaFileKindEnum = _enum([
|
|
|
15169
15295
|
"fullFrame",
|
|
15170
15296
|
"fullFrameBoxed",
|
|
15171
15297
|
"faceCrop",
|
|
15172
|
-
"plateCrop"
|
|
15298
|
+
"plateCrop",
|
|
15299
|
+
"keyFrame"
|
|
15173
15300
|
]);
|
|
15174
15301
|
var MediaFileSchema = object({
|
|
15175
15302
|
key: string(),
|
|
@@ -15190,6 +15317,32 @@ var DeviceEventQueryInput = object({
|
|
|
15190
15317
|
projection: _enum(["full", "slim"]).optional()
|
|
15191
15318
|
});
|
|
15192
15319
|
var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
|
|
15320
|
+
var KeyEventQueryInput = object({
|
|
15321
|
+
deviceId: number(),
|
|
15322
|
+
/** Window lower bound (track firstSeen ≥ since). */
|
|
15323
|
+
since: number(),
|
|
15324
|
+
/** Window upper bound (track firstSeen ≤ until). */
|
|
15325
|
+
until: number(),
|
|
15326
|
+
limit: number().int().min(1).max(200).default(50),
|
|
15327
|
+
/** Drop tracks scoring below this importance. */
|
|
15328
|
+
minImportance: number().min(0).max(1).optional(),
|
|
15329
|
+
/** Restrict to a single class (e.g. 'person'). */
|
|
15330
|
+
classFilter: string().optional()
|
|
15331
|
+
});
|
|
15332
|
+
var KeyEventSchema = object({
|
|
15333
|
+
/** The representative event id (the track's best ObjectEvent, else its trackId). */
|
|
15334
|
+
id: string(),
|
|
15335
|
+
trackId: string(),
|
|
15336
|
+
/** Track start time (firstSeen). */
|
|
15337
|
+
timestamp: number(),
|
|
15338
|
+
className: string(),
|
|
15339
|
+
label: string().optional(),
|
|
15340
|
+
importance: number(),
|
|
15341
|
+
/** Highest-confidence ObjectEvent id for the track (empty when none). */
|
|
15342
|
+
bestEventId: string(),
|
|
15343
|
+
/** Track lifetime in ms (lastSeen - firstSeen). */
|
|
15344
|
+
windowMs: number().optional()
|
|
15345
|
+
});
|
|
15193
15346
|
var TrackedDetectionSchema = object({
|
|
15194
15347
|
trackId: string(),
|
|
15195
15348
|
className: string(),
|
|
@@ -15219,7 +15372,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
15219
15372
|
}), array(TrackSchema).readonly()), method(object({ deviceId: number() }), _void(), {
|
|
15220
15373
|
kind: "mutation",
|
|
15221
15374
|
auth: "admin"
|
|
15222
|
-
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({
|
|
15375
|
+
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
|
|
15223
15376
|
deviceId: number(),
|
|
15224
15377
|
since: number(),
|
|
15225
15378
|
until: number(),
|
|
@@ -15677,6 +15830,131 @@ method(object({
|
|
|
15677
15830
|
auth: "admin"
|
|
15678
15831
|
});
|
|
15679
15832
|
/**
|
|
15833
|
+
* server-management — per-NODE singleton capability for a node's ROOT
|
|
15834
|
+
* package lifecycle (runtime-updatable node packages, phase 2: hub + docker
|
|
15835
|
+
* agents).
|
|
15836
|
+
*
|
|
15837
|
+
* Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
|
|
15838
|
+
* on agents) carries the whole software stack in its npm dep tree, so ONE
|
|
15839
|
+
* version describes the node. Updates install into
|
|
15840
|
+
* `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
|
|
15841
|
+
* starter (probation boot + auto-rollback to N-1).
|
|
15842
|
+
*
|
|
15843
|
+
* Providers:
|
|
15844
|
+
* - HUB: `ServerUpdateService` behind the `server-provided` mount
|
|
15845
|
+
* (`buildServerProviders` in trpc.router.ts) — the default target for
|
|
15846
|
+
* unpinned calls.
|
|
15847
|
+
* - AGENT: `AgentUpdateService` registered by the agent bootstrap under
|
|
15848
|
+
* the synthetic `agent-runtime` addonId and declared in the agent's
|
|
15849
|
+
* `$hub.registerNode` manifest.
|
|
15850
|
+
*
|
|
15851
|
+
* Node routing: singleton caps get the codegen/runtime-builder `nodeId`
|
|
15852
|
+
* injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
|
|
15853
|
+
* SDK) routes the call to that node's provider via the standard remote
|
|
15854
|
+
* proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
|
|
15855
|
+
* in-process provider lookup). No `nodeId` → the hub's own provider.
|
|
15856
|
+
*
|
|
15857
|
+
* Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
|
|
15858
|
+
*/
|
|
15859
|
+
/**
|
|
15860
|
+
* Where the running hub's code was loaded from:
|
|
15861
|
+
* - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
|
|
15862
|
+
* plain resolution and runtime updates are refused.
|
|
15863
|
+
* - `baked` — the immutable image seed closure (no data-dir root active).
|
|
15864
|
+
* - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
|
|
15865
|
+
*/
|
|
15866
|
+
var ServerBootModeSchema = _enum([
|
|
15867
|
+
"workspace",
|
|
15868
|
+
"baked",
|
|
15869
|
+
"data-root"
|
|
15870
|
+
]);
|
|
15871
|
+
/**
|
|
15872
|
+
* Update lifecycle state:
|
|
15873
|
+
* - `idle` / `checking` / `staging` — steady / in-flight registry work.
|
|
15874
|
+
* - `pending-restart` — a version is staged and the node has NOT yet
|
|
15875
|
+
* restarted onto it (still running the OLD version).
|
|
15876
|
+
* - `awaiting-confirmation` — the node HAS restarted onto the staged version
|
|
15877
|
+
* (it is the active probation boot) and is waiting to confirm boot-health.
|
|
15878
|
+
* Apply/rollback are refused in this state and the node must NOT be
|
|
15879
|
+
* manually restarted, or the probation boot auto-rolls-back.
|
|
15880
|
+
*/
|
|
15881
|
+
var ServerUpdateStateSchema = _enum([
|
|
15882
|
+
"idle",
|
|
15883
|
+
"checking",
|
|
15884
|
+
"staging",
|
|
15885
|
+
"pending-restart",
|
|
15886
|
+
"awaiting-confirmation"
|
|
15887
|
+
]);
|
|
15888
|
+
var ServerRollbackInfoSchema = object({
|
|
15889
|
+
/** The version that failed (or was manually rolled back). */
|
|
15890
|
+
fromVersion: string(),
|
|
15891
|
+
/** The version rolled back to; null = the baked seed. */
|
|
15892
|
+
toVersion: string().nullable(),
|
|
15893
|
+
atMs: number(),
|
|
15894
|
+
reason: string()
|
|
15895
|
+
});
|
|
15896
|
+
var ServerPackageStatusSchema = object({
|
|
15897
|
+
/** Root package name (`@camstack/server` on the hub). */
|
|
15898
|
+
packageName: string(),
|
|
15899
|
+
/** Version of the code the running process ACTUALLY loaded. */
|
|
15900
|
+
runningVersion: string().nullable(),
|
|
15901
|
+
/** Node.js runtime version the node's process runs on (`process.versions.node`). */
|
|
15902
|
+
nodeRuntimeVersion: string().nullable(),
|
|
15903
|
+
/** Active data-dir root version; null when booted from seed/workspace. */
|
|
15904
|
+
activeVersion: string().nullable(),
|
|
15905
|
+
/** N-1 version kept for rollback; null when no previous version exists. */
|
|
15906
|
+
previousVersion: string().nullable(),
|
|
15907
|
+
/** Version of the immutable baked seed closure (image fallback). */
|
|
15908
|
+
seedVersion: string().nullable(),
|
|
15909
|
+
/** Latest registry version from the most recent check (null = never checked). */
|
|
15910
|
+
latestVersion: string().nullable(),
|
|
15911
|
+
updateAvailable: boolean(),
|
|
15912
|
+
bootMode: ServerBootModeSchema,
|
|
15913
|
+
updateState: ServerUpdateStateSchema,
|
|
15914
|
+
/** Version staged + awaiting its probation boot, when one is pending. */
|
|
15915
|
+
pendingVersion: string().nullable(),
|
|
15916
|
+
/** Set when the last freshly-activated version failed its boot health-check. */
|
|
15917
|
+
rolledBack: ServerRollbackInfoSchema.nullable(),
|
|
15918
|
+
/**
|
|
15919
|
+
* True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
|
|
15920
|
+
* hub is running from the baked seed (or workspace) while installed data-dir
|
|
15921
|
+
* versions are being IGNORED. Surfaced as a warning in the UI.
|
|
15922
|
+
*/
|
|
15923
|
+
stateFileCorrupt: boolean(),
|
|
15924
|
+
lastCheckedAtMs: number().nullable()
|
|
15925
|
+
});
|
|
15926
|
+
var ServerUpdateCheckResultSchema = object({
|
|
15927
|
+
packageName: string(),
|
|
15928
|
+
runningVersion: string().nullable(),
|
|
15929
|
+
latestVersion: string().nullable(),
|
|
15930
|
+
updateAvailable: boolean(),
|
|
15931
|
+
checkedAtMs: number(),
|
|
15932
|
+
/** Non-null when the registry lookup failed (offline, bad registry, …). */
|
|
15933
|
+
error: string().nullable()
|
|
15934
|
+
});
|
|
15935
|
+
var ServerUpdateActionResultSchema = object({
|
|
15936
|
+
accepted: boolean(),
|
|
15937
|
+
targetVersion: string().nullable(),
|
|
15938
|
+
/** True when a graceful restart was scheduled to apply the change. */
|
|
15939
|
+
restarting: boolean(),
|
|
15940
|
+
message: string()
|
|
15941
|
+
});
|
|
15942
|
+
method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
|
|
15943
|
+
kind: "mutation",
|
|
15944
|
+
auth: "admin"
|
|
15945
|
+
}), method(object({
|
|
15946
|
+
/** Explicit target version; omitted = latest from the registry. */
|
|
15947
|
+
version: string().optional() }), ServerUpdateActionResultSchema, {
|
|
15948
|
+
kind: "mutation",
|
|
15949
|
+
auth: "admin"
|
|
15950
|
+
}), method(_void(), ServerUpdateActionResultSchema, {
|
|
15951
|
+
kind: "mutation",
|
|
15952
|
+
auth: "admin"
|
|
15953
|
+
}), method(_void(), ServerUpdateActionResultSchema, {
|
|
15954
|
+
kind: "mutation",
|
|
15955
|
+
auth: "admin"
|
|
15956
|
+
});
|
|
15957
|
+
/**
|
|
15680
15958
|
* Query filter for settings-store collections.
|
|
15681
15959
|
*/
|
|
15682
15960
|
var QueryFilterSchema = object({
|
|
@@ -15861,7 +16139,12 @@ DeviceType.Camera, method(object({
|
|
|
15861
16139
|
}), SnapshotImageSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
15862
16140
|
kind: "mutation",
|
|
15863
16141
|
auth: "admin"
|
|
15864
|
-
})
|
|
16142
|
+
}), systemMethod(object({ deviceIds: array(number()).min(1).max(200) }), array(object({
|
|
16143
|
+
deviceId: number(),
|
|
16144
|
+
lastCapturedAt: number().nullable(),
|
|
16145
|
+
cacheAgeMs: number().nullable(),
|
|
16146
|
+
etag: string().nullable()
|
|
16147
|
+
})));
|
|
15865
16148
|
/**
|
|
15866
16149
|
* `sso-bridge` — internal hub-only cap that lets SSO-style auth
|
|
15867
16150
|
* providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
|
|
@@ -16112,10 +16395,32 @@ method(_void(), array(TurnServerSchema).readonly());
|
|
|
16112
16395
|
* b. `finishAuthentication({userId, response})` → server verifies
|
|
16113
16396
|
* the assertion, bumps the credential counter, returns ok.
|
|
16114
16397
|
*
|
|
16398
|
+
* 2b. Usernameless (discoverable-credential) authentication — the
|
|
16399
|
+
* passkey IS the primary factor, no password leg:
|
|
16400
|
+
* a. `beginDiscoverableAuthentication({})` → assertion options with
|
|
16401
|
+
* EMPTY `allowCredentials` (the browser offers every resident
|
|
16402
|
+
* passkey it holds for this RP) + `userVerification: 'required'`
|
|
16403
|
+
* (the passkey replaces both factors, so UV is mandatory).
|
|
16404
|
+
* The challenge is stored server-side, NOT bound to any user.
|
|
16405
|
+
* b. `finishDiscoverableAuthentication({response})` → the provider
|
|
16406
|
+
* resolves the credential by the response's credential id,
|
|
16407
|
+
* verifies the assertion against the stored challenge + that
|
|
16408
|
+
* credential's public key/counter, and returns the OWNING
|
|
16409
|
+
* `userId` — the caller (core auth router) mints the session.
|
|
16410
|
+
*
|
|
16115
16411
|
* 3. Management:
|
|
16116
16412
|
* - `listPasskeys({userId})` — enumerate user's enrolled credentials.
|
|
16117
16413
|
* - `removePasskey({userId, credentialId})` — revoke one credential.
|
|
16118
16414
|
*
|
|
16415
|
+
* 4. Second-factor preference (opt-in, default OFF):
|
|
16416
|
+
* Enrolling a passkey only enables passkey-FIRST sign-in. It is
|
|
16417
|
+
* demanded as a second factor after a password login ONLY when the
|
|
16418
|
+
* user explicitly opts in via `setSecondFactorPreference`.
|
|
16419
|
+
* - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
|
|
16420
|
+
* row ⇒ `enabled: false`).
|
|
16421
|
+
* - `setSecondFactorPreference({userId, enabled})` — persisted by
|
|
16422
|
+
* the providing addon beside its credentials.
|
|
16423
|
+
*
|
|
16119
16424
|
* Challenges are short-lived (5 min, in-memory). The cap is internal —
|
|
16120
16425
|
* the admin-ui composes the begin/finish round-trip and never exposes
|
|
16121
16426
|
* the cap to non-admins.
|
|
@@ -16158,6 +16463,17 @@ method(object({
|
|
|
16158
16463
|
}), object({ verified: boolean() }), {
|
|
16159
16464
|
kind: "mutation",
|
|
16160
16465
|
access: "view"
|
|
16466
|
+
}), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
|
|
16467
|
+
kind: "mutation",
|
|
16468
|
+
access: "view"
|
|
16469
|
+
}), method(object({
|
|
16470
|
+
/** AuthenticationResponseJSON from the browser. */
|
|
16471
|
+
response: record(string(), unknown()) }), object({
|
|
16472
|
+
verified: boolean(),
|
|
16473
|
+
userId: string().nullable()
|
|
16474
|
+
}), {
|
|
16475
|
+
kind: "mutation",
|
|
16476
|
+
access: "view"
|
|
16161
16477
|
}), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
|
|
16162
16478
|
userId: string(),
|
|
16163
16479
|
credentialId: string()
|
|
@@ -16165,6 +16481,13 @@ method(object({
|
|
|
16165
16481
|
kind: "mutation",
|
|
16166
16482
|
auth: "admin",
|
|
16167
16483
|
access: "delete"
|
|
16484
|
+
}), method(object({ userId: string() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
|
|
16485
|
+
userId: string(),
|
|
16486
|
+
enabled: boolean()
|
|
16487
|
+
}), object({ success: literal(true) }), {
|
|
16488
|
+
kind: "mutation",
|
|
16489
|
+
auth: "admin",
|
|
16490
|
+
access: "create"
|
|
16168
16491
|
});
|
|
16169
16492
|
/**
|
|
16170
16493
|
* `videoclips` — the unified, navigable-clip surface for a camera.
|
|
@@ -16966,7 +17289,17 @@ var FaceInfoSchema = object({
|
|
|
16966
17289
|
recognizedIdentityId: string().optional(),
|
|
16967
17290
|
identityName: string().optional(),
|
|
16968
17291
|
assigned: boolean(),
|
|
16969
|
-
base64: string().optional()
|
|
17292
|
+
base64: string().optional(),
|
|
17293
|
+
/** Design B: the face bbox (pixel space) on the key frame — lets a detail
|
|
17294
|
+
* view draw the box over the native `keyFrameMediaKey` frame. Absent on
|
|
17295
|
+
* legacy rows written before design B. */
|
|
17296
|
+
faceBbox: BoundingBoxSchema.optional(),
|
|
17297
|
+
/** Design B: MediaStore key of the track's native-resolution key frame.
|
|
17298
|
+
* Fetch the native JPEG via the event-media data-plane
|
|
17299
|
+
* (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
|
|
17300
|
+
* track produced no key frame (e.g. native/onboard source) — the UI falls
|
|
17301
|
+
* back to the inline `base64` face crop. */
|
|
17302
|
+
keyFrameMediaKey: string().optional()
|
|
16970
17303
|
});
|
|
16971
17304
|
var FaceFilterEnum = _enum([
|
|
16972
17305
|
"unassigned",
|
|
@@ -17663,6 +17996,16 @@ var TopologyCategorySchema = object({
|
|
|
17663
17996
|
healthy: number(),
|
|
17664
17997
|
addons: array(TopologyCategoryAddonSchema).readonly()
|
|
17665
17998
|
});
|
|
17999
|
+
/**
|
|
18000
|
+
* The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
|
|
18001
|
+
* `@camstack/agent` on agents) as reported by its `registerNode` manifest —
|
|
18002
|
+
* version visibility for the Server management surface. Nullable: offline
|
|
18003
|
+
* rows and pre-phase-2 nodes report none.
|
|
18004
|
+
*/
|
|
18005
|
+
var TopologyRootPackageSchema = object({
|
|
18006
|
+
name: string(),
|
|
18007
|
+
version: string()
|
|
18008
|
+
});
|
|
17666
18009
|
var TopologyNodeSchema = object({
|
|
17667
18010
|
id: string(),
|
|
17668
18011
|
name: string(),
|
|
@@ -17686,7 +18029,8 @@ var TopologyNodeSchema = object({
|
|
|
17686
18029
|
status: string()
|
|
17687
18030
|
})).readonly(),
|
|
17688
18031
|
processes: array(TopologyProcessSchema).readonly(),
|
|
17689
|
-
categories: array(TopologyCategorySchema).readonly()
|
|
18032
|
+
categories: array(TopologyCategorySchema).readonly(),
|
|
18033
|
+
rootPackage: TopologyRootPackageSchema.nullable()
|
|
17690
18034
|
});
|
|
17691
18035
|
var CapUsageEdgeSchema = object({
|
|
17692
18036
|
callerAddonId: string(),
|
|
@@ -20486,6 +20830,12 @@ Object.freeze({
|
|
|
20486
20830
|
addonId: null,
|
|
20487
20831
|
access: "create"
|
|
20488
20832
|
},
|
|
20833
|
+
"loginMethod.getLoginMethods": {
|
|
20834
|
+
capName: "login-method",
|
|
20835
|
+
capScope: "system",
|
|
20836
|
+
addonId: null,
|
|
20837
|
+
access: "view"
|
|
20838
|
+
},
|
|
20489
20839
|
"mediaPlayer.next": {
|
|
20490
20840
|
capName: "media-player",
|
|
20491
20841
|
capScope: "device",
|
|
@@ -21068,6 +21418,12 @@ Object.freeze({
|
|
|
21068
21418
|
addonId: null,
|
|
21069
21419
|
access: "view"
|
|
21070
21420
|
},
|
|
21421
|
+
"pipelineAnalytics.getKeyEvents": {
|
|
21422
|
+
capName: "pipeline-analytics",
|
|
21423
|
+
capScope: "device",
|
|
21424
|
+
addonId: null,
|
|
21425
|
+
access: "view"
|
|
21426
|
+
},
|
|
21071
21427
|
"pipelineAnalytics.getMotionEvents": {
|
|
21072
21428
|
capName: "pipeline-analytics",
|
|
21073
21429
|
capScope: "device",
|
|
@@ -21596,6 +21952,12 @@ Object.freeze({
|
|
|
21596
21952
|
addonId: null,
|
|
21597
21953
|
access: "view"
|
|
21598
21954
|
},
|
|
21955
|
+
"pipelineRunner.getNativeCrop": {
|
|
21956
|
+
capName: "pipeline-runner",
|
|
21957
|
+
capScope: "system",
|
|
21958
|
+
addonId: null,
|
|
21959
|
+
access: "view"
|
|
21960
|
+
},
|
|
21599
21961
|
"pipelineRunner.reportMotion": {
|
|
21600
21962
|
capName: "pipeline-runner",
|
|
21601
21963
|
capScope: "system",
|
|
@@ -21848,6 +22210,36 @@ Object.freeze({
|
|
|
21848
22210
|
addonId: null,
|
|
21849
22211
|
access: "create"
|
|
21850
22212
|
},
|
|
22213
|
+
"serverManagement.applyServerUpdate": {
|
|
22214
|
+
capName: "server-management",
|
|
22215
|
+
capScope: "system",
|
|
22216
|
+
addonId: null,
|
|
22217
|
+
access: "create"
|
|
22218
|
+
},
|
|
22219
|
+
"serverManagement.checkServerUpdate": {
|
|
22220
|
+
capName: "server-management",
|
|
22221
|
+
capScope: "system",
|
|
22222
|
+
addonId: null,
|
|
22223
|
+
access: "create"
|
|
22224
|
+
},
|
|
22225
|
+
"serverManagement.getServerPackageStatus": {
|
|
22226
|
+
capName: "server-management",
|
|
22227
|
+
capScope: "system",
|
|
22228
|
+
addonId: null,
|
|
22229
|
+
access: "view"
|
|
22230
|
+
},
|
|
22231
|
+
"serverManagement.restartServer": {
|
|
22232
|
+
capName: "server-management",
|
|
22233
|
+
capScope: "system",
|
|
22234
|
+
addonId: null,
|
|
22235
|
+
access: "create"
|
|
22236
|
+
},
|
|
22237
|
+
"serverManagement.rollbackServerUpdate": {
|
|
22238
|
+
capName: "server-management",
|
|
22239
|
+
capScope: "system",
|
|
22240
|
+
addonId: null,
|
|
22241
|
+
access: "create"
|
|
22242
|
+
},
|
|
21851
22243
|
"settingsStore.count": {
|
|
21852
22244
|
capName: "settings-store",
|
|
21853
22245
|
capScope: "system",
|
|
@@ -21932,6 +22324,12 @@ Object.freeze({
|
|
|
21932
22324
|
addonId: null,
|
|
21933
22325
|
access: "view"
|
|
21934
22326
|
},
|
|
22327
|
+
"snapshot.getSnapshotOverview": {
|
|
22328
|
+
capName: "snapshot",
|
|
22329
|
+
capScope: "device",
|
|
22330
|
+
addonId: null,
|
|
22331
|
+
access: "view"
|
|
22332
|
+
},
|
|
21935
22333
|
"snapshot.invalidateCache": {
|
|
21936
22334
|
capName: "snapshot",
|
|
21937
22335
|
capScope: "device",
|
|
@@ -22610,6 +23008,12 @@ Object.freeze({
|
|
|
22610
23008
|
addonId: null,
|
|
22611
23009
|
access: "view"
|
|
22612
23010
|
},
|
|
23011
|
+
"userPasskeys.beginDiscoverableAuthentication": {
|
|
23012
|
+
capName: "user-passkeys",
|
|
23013
|
+
capScope: "system",
|
|
23014
|
+
addonId: null,
|
|
23015
|
+
access: "view"
|
|
23016
|
+
},
|
|
22613
23017
|
"userPasskeys.beginRegistration": {
|
|
22614
23018
|
capName: "user-passkeys",
|
|
22615
23019
|
capScope: "system",
|
|
@@ -22622,12 +23026,24 @@ Object.freeze({
|
|
|
22622
23026
|
addonId: null,
|
|
22623
23027
|
access: "view"
|
|
22624
23028
|
},
|
|
23029
|
+
"userPasskeys.finishDiscoverableAuthentication": {
|
|
23030
|
+
capName: "user-passkeys",
|
|
23031
|
+
capScope: "system",
|
|
23032
|
+
addonId: null,
|
|
23033
|
+
access: "view"
|
|
23034
|
+
},
|
|
22625
23035
|
"userPasskeys.finishRegistration": {
|
|
22626
23036
|
capName: "user-passkeys",
|
|
22627
23037
|
capScope: "system",
|
|
22628
23038
|
addonId: null,
|
|
22629
23039
|
access: "create"
|
|
22630
23040
|
},
|
|
23041
|
+
"userPasskeys.getSecondFactorPreference": {
|
|
23042
|
+
capName: "user-passkeys",
|
|
23043
|
+
capScope: "system",
|
|
23044
|
+
addonId: null,
|
|
23045
|
+
access: "view"
|
|
23046
|
+
},
|
|
22631
23047
|
"userPasskeys.listPasskeys": {
|
|
22632
23048
|
capName: "user-passkeys",
|
|
22633
23049
|
capScope: "system",
|
|
@@ -22640,6 +23056,12 @@ Object.freeze({
|
|
|
22640
23056
|
addonId: null,
|
|
22641
23057
|
access: "delete"
|
|
22642
23058
|
},
|
|
23059
|
+
"userPasskeys.setSecondFactorPreference": {
|
|
23060
|
+
capName: "user-passkeys",
|
|
23061
|
+
capScope: "system",
|
|
23062
|
+
addonId: null,
|
|
23063
|
+
access: "create"
|
|
23064
|
+
},
|
|
22643
23065
|
"vacuumControl.locate": {
|
|
22644
23066
|
capName: "vacuum-control",
|
|
22645
23067
|
capScope: "device",
|
|
@@ -22712,6 +23134,18 @@ Object.freeze({
|
|
|
22712
23134
|
addonId: null,
|
|
22713
23135
|
access: "view"
|
|
22714
23136
|
},
|
|
23137
|
+
"viewerUi.getStaticDir": {
|
|
23138
|
+
capName: "viewer-ui",
|
|
23139
|
+
capScope: "system",
|
|
23140
|
+
addonId: null,
|
|
23141
|
+
access: "view"
|
|
23142
|
+
},
|
|
23143
|
+
"viewerUi.getVersion": {
|
|
23144
|
+
capName: "viewer-ui",
|
|
23145
|
+
capScope: "system",
|
|
23146
|
+
addonId: null,
|
|
23147
|
+
access: "view"
|
|
23148
|
+
},
|
|
22715
23149
|
"waterHeater.setAway": {
|
|
22716
23150
|
capName: "water-heater",
|
|
22717
23151
|
capScope: "device",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as e, g as t, h as n, l as r, n as i, p as a, r as o, t as s, u as c, y as l } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare__react__loadShare__.js-DJDHChgO.mjs";
|
|
2
2
|
import { n as u, r as d, t as f } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-ds_Ehzaa.mjs";
|
|
3
|
-
import { d as p } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-
|
|
3
|
+
import { d as p } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DGeSi8Rf.mjs";
|
|
4
4
|
//#region ../ui-library/src/lib/cap-error.ts
|
|
5
5
|
function m(e) {
|
|
6
6
|
if (typeof e != "object" || !e) return null;
|
package/dist/remoteEntry.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-
|
|
1
|
+
import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-BeSSIZvy.mjs";
|
|
2
2
|
export { t as get, e as init };
|