@camstack/addon-provider-amcrest 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/addon.js +303 -87
- package/dist/addon.mjs +303 -87
- package/package.json +4 -1
package/dist/addon.js
CHANGED
|
@@ -4633,7 +4633,7 @@ function _instanceof(cls, params = {}) {
|
|
|
4633
4633
|
return inst;
|
|
4634
4634
|
}
|
|
4635
4635
|
//#endregion
|
|
4636
|
-
//#region ../types/dist/sleep-
|
|
4636
|
+
//#region ../types/dist/sleep-DJaTV2D7.mjs
|
|
4637
4637
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
4638
4638
|
EventCategory["SystemBoot"] = "system.boot";
|
|
4639
4639
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -5354,10 +5354,6 @@ function hydrateField(field, values) {
|
|
|
5354
5354
|
};
|
|
5355
5355
|
}
|
|
5356
5356
|
const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
|
|
5357
|
-
if (field.type === "password") return {
|
|
5358
|
-
...field,
|
|
5359
|
-
value: ""
|
|
5360
|
-
};
|
|
5361
5357
|
const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
|
|
5362
5358
|
return {
|
|
5363
5359
|
...field,
|
|
@@ -6745,6 +6741,9 @@ function method(input, output, options) {
|
|
|
6745
6741
|
function event(data) {
|
|
6746
6742
|
return { data };
|
|
6747
6743
|
}
|
|
6744
|
+
var StaticDirOutputSchema$1 = object({ staticDir: string() });
|
|
6745
|
+
var VersionOutputSchema$1 = object({ version: string() });
|
|
6746
|
+
method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
|
|
6748
6747
|
var StaticDirOutputSchema = object({ staticDir: string() });
|
|
6749
6748
|
var VersionOutputSchema = object({ version: string() });
|
|
6750
6749
|
method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
|
|
@@ -11656,7 +11655,7 @@ var BoundingBoxSchema = object({
|
|
|
11656
11655
|
w: number(),
|
|
11657
11656
|
h: number()
|
|
11658
11657
|
});
|
|
11659
|
-
|
|
11658
|
+
object({
|
|
11660
11659
|
class: string(),
|
|
11661
11660
|
originalClass: string(),
|
|
11662
11661
|
score: number(),
|
|
@@ -11847,11 +11846,6 @@ var PipelineSchemaSchema = object({
|
|
|
11847
11846
|
selectedEngine: PipelineEngineChoiceSchema,
|
|
11848
11847
|
slots: array(PipelineSlotSchemaSchema).readonly()
|
|
11849
11848
|
});
|
|
11850
|
-
var DetectorOutputSchema = object({
|
|
11851
|
-
detections: array(SpatialDetectionSchema).readonly(),
|
|
11852
|
-
inferenceMs: number(),
|
|
11853
|
-
modelId: string()
|
|
11854
|
-
});
|
|
11855
11849
|
var EngineProvisioningSchema = object({
|
|
11856
11850
|
runtimeId: _enum([
|
|
11857
11851
|
"onnx",
|
|
@@ -11976,7 +11970,7 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
11976
11970
|
auth: "admin"
|
|
11977
11971
|
}), method(object({ nodeId: string() }), object({
|
|
11978
11972
|
success: literal(true),
|
|
11979
|
-
|
|
11973
|
+
clearedDevices: number()
|
|
11980
11974
|
}), {
|
|
11981
11975
|
kind: "mutation",
|
|
11982
11976
|
auth: "admin"
|
|
@@ -11997,10 +11991,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
11997
11991
|
modelId: string(),
|
|
11998
11992
|
format: ModelFormatSchema$1
|
|
11999
11993
|
}), object({ success: literal(true) }), { kind: "mutation" }), method(object({
|
|
12000
|
-
addonId: string(),
|
|
12001
|
-
frame: FrameInputSchema,
|
|
12002
|
-
config: record(string(), unknown()).optional()
|
|
12003
|
-
}), DetectorOutputSchema), method(object({
|
|
12004
11994
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
12005
11995
|
steps: array(PipelineStepInputSchema).min(1),
|
|
12006
11996
|
frame: FrameInputSchema.optional(),
|
|
@@ -15365,7 +15355,9 @@ var AddonPageDeclarationSchema$1 = object({
|
|
|
15365
15355
|
icon: string(),
|
|
15366
15356
|
path: string(),
|
|
15367
15357
|
remoteName: string(),
|
|
15368
|
-
bundle: string()
|
|
15358
|
+
bundle: string(),
|
|
15359
|
+
section: string().optional(),
|
|
15360
|
+
sectionLabel: string().optional()
|
|
15369
15361
|
});
|
|
15370
15362
|
var AddonPageInfoSchema = object({
|
|
15371
15363
|
addonId: string(),
|
|
@@ -15405,7 +15397,18 @@ var AddonPageDeclarationSchema = object({
|
|
|
15405
15397
|
* the static-file route can compute an mtime-based cache-buster URL
|
|
15406
15398
|
* without a separate filesystem stat.
|
|
15407
15399
|
*/
|
|
15408
|
-
bundle: string()
|
|
15400
|
+
bundle: string(),
|
|
15401
|
+
/**
|
|
15402
|
+
* Sidebar section this page docks into. Well-known ids: `'detection'`,
|
|
15403
|
+
* `'cluster'`, `'administration'` — the page renders inside that group.
|
|
15404
|
+
* Any OTHER string creates (or joins) a custom section rendered after
|
|
15405
|
+
* the built-in groups; its label comes from `sectionLabel` (first
|
|
15406
|
+
* declaration wins), falling back to the id. Absent → the legacy
|
|
15407
|
+
* "Addon Pages" group.
|
|
15408
|
+
*/
|
|
15409
|
+
section: string().optional(),
|
|
15410
|
+
/** Display label for a CUSTOM `section` id (ignored for well-known ids). */
|
|
15411
|
+
sectionLabel: string().optional()
|
|
15409
15412
|
});
|
|
15410
15413
|
method(_void(), array(AddonPageDeclarationSchema).readonly());
|
|
15411
15414
|
var AddonHttpRouteSchema = object({
|
|
@@ -15621,6 +15624,17 @@ var WidgetMetadataSchema = object({
|
|
|
15621
15624
|
deviceContext: boolean().default(false),
|
|
15622
15625
|
integrationContext: boolean().default(false)
|
|
15623
15626
|
}),
|
|
15627
|
+
/**
|
|
15628
|
+
* Loadable BEFORE authentication. The normal widget registry listing
|
|
15629
|
+
* (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
|
|
15630
|
+
* (the login page) cannot discover a widget through it. A widget that
|
|
15631
|
+
* declares `preAuth: true` marks itself as safe to mount on a pre-auth
|
|
15632
|
+
* screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
|
|
15633
|
+
* login-method contribution channel (see `login-method.cap.ts`) rather
|
|
15634
|
+
* than the authenticated registry, and its bundle is served by the
|
|
15635
|
+
* public `/api/addon-widgets/:addonId/*` static route. Defaults false.
|
|
15636
|
+
*/
|
|
15637
|
+
preAuth: boolean().optional().default(false),
|
|
15624
15638
|
/** Dashboard placement HINTS (operator can override per instance). */
|
|
15625
15639
|
defaultSize: WidgetSizeEnum.default("md"),
|
|
15626
15640
|
allowedSizes: array(WidgetSizeEnum).readonly().default([
|
|
@@ -15922,6 +15936,66 @@ method(object({
|
|
|
15922
15936
|
password: string()
|
|
15923
15937
|
}), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
|
|
15924
15938
|
/**
|
|
15939
|
+
* `login-method` — collection cap through which auth addons contribute
|
|
15940
|
+
* their pre-auth login surfaces to the login page. This is the SINGLE,
|
|
15941
|
+
* generic mechanism that supersedes the dead `auth.listProviders` reader:
|
|
15942
|
+
* every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
|
|
15943
|
+
* `login-method` provider and the PUBLIC `auth.listLoginMethods`
|
|
15944
|
+
* procedure aggregates them for the unauthenticated login page.
|
|
15945
|
+
*
|
|
15946
|
+
* A contribution is a discriminated union on `kind`:
|
|
15947
|
+
*
|
|
15948
|
+
* - `redirect` — a declarative button. The login page renders a generic
|
|
15949
|
+
* button that navigates to `startUrl` (an addon-owned HTTP route).
|
|
15950
|
+
* Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
|
|
15951
|
+
* ZERO shell-side JS. A future SSO addon plugs in the same way — the
|
|
15952
|
+
* login page needs NO change.
|
|
15953
|
+
*
|
|
15954
|
+
* - `widget` — a Module-Federation widget the login page mounts (via
|
|
15955
|
+
* `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
|
|
15956
|
+
* login ceremony, which must run `@simplewebauthn/browser` INSIDE the
|
|
15957
|
+
* addon bundle. The referenced widget also declares `preAuth: true` in
|
|
15958
|
+
* its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
|
|
15959
|
+
* stamps a public `bundleUrl` from `addonId` + `bundle`.
|
|
15960
|
+
*
|
|
15961
|
+
* Every contribution carries a `stage`:
|
|
15962
|
+
* - `primary` — shown on the first credentials screen (OIDC /
|
|
15963
|
+
* magic-link buttons; a future usernameless passkey).
|
|
15964
|
+
* - `second-factor` — shown AFTER the password leg, gated on the
|
|
15965
|
+
* returned `factors` (passkey-as-2FA today).
|
|
15966
|
+
*
|
|
15967
|
+
* `mount: skip` — the cap is read server-side by the core auth router
|
|
15968
|
+
* (`registry.getCollection('login-method')`), never mounted as its own
|
|
15969
|
+
* tRPC router.
|
|
15970
|
+
*/
|
|
15971
|
+
/** When a login method renders in the two-phase login flow. */
|
|
15972
|
+
var LoginStageEnum = _enum(["primary", "second-factor"]);
|
|
15973
|
+
/** One login-method contribution — redirect button OR pre-auth widget. */
|
|
15974
|
+
var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
|
|
15975
|
+
kind: literal("redirect"),
|
|
15976
|
+
/** Stable id within the login-method set (e.g. `auth-oidc/google`). */
|
|
15977
|
+
id: string(),
|
|
15978
|
+
/** Operator-facing button label. */
|
|
15979
|
+
label: string(),
|
|
15980
|
+
/** lucide-react icon name. */
|
|
15981
|
+
icon: string().optional(),
|
|
15982
|
+
/** Addon-owned HTTP route the button navigates to (GET). */
|
|
15983
|
+
startUrl: string(),
|
|
15984
|
+
stage: LoginStageEnum
|
|
15985
|
+
}), object({
|
|
15986
|
+
kind: literal("widget"),
|
|
15987
|
+
/** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
|
|
15988
|
+
id: string(),
|
|
15989
|
+
/** Owning addon id — drives the public bundle URL + the MF namespace. */
|
|
15990
|
+
addonId: string(),
|
|
15991
|
+
/** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
|
|
15992
|
+
bundle: string(),
|
|
15993
|
+
/** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
|
|
15994
|
+
remote: WidgetRemoteSchema,
|
|
15995
|
+
stage: LoginStageEnum
|
|
15996
|
+
})]);
|
|
15997
|
+
method(_void(), array(LoginMethodContributionSchema).readonly());
|
|
15998
|
+
/**
|
|
15925
15999
|
* Orchestrator-side destination metadata. The orchestrator computes
|
|
15926
16000
|
* `id = <addonId>:<subId>` from its provider lookup so consumers
|
|
15927
16001
|
* (admin UI, restore flow) see one canonical key.
|
|
@@ -18239,7 +18313,12 @@ var AgentPipelineSettingsSchema = object({
|
|
|
18239
18313
|
detectWeight: number().positive().optional(),
|
|
18240
18314
|
/** Node is eligible to run the detection pipeline (decode + inference). */
|
|
18241
18315
|
detect: boolean().optional(),
|
|
18242
|
-
/**
|
|
18316
|
+
/**
|
|
18317
|
+
* DEPRECATED AND IGNORED. Decode is always co-located with its frame
|
|
18318
|
+
* consumer, so decode eligibility IS detect eligibility. Kept optional in
|
|
18319
|
+
* the schema ONLY so persisted stores written before the removal still
|
|
18320
|
+
* parse — no code reads it and no write path emits it.
|
|
18321
|
+
*/
|
|
18243
18322
|
decode: boolean().optional(),
|
|
18244
18323
|
/** Node is eligible to run audio-analyzer sessions. */
|
|
18245
18324
|
audio: boolean().optional(),
|
|
@@ -18300,25 +18379,6 @@ var PipelineAssignmentSchema = object({
|
|
|
18300
18379
|
assignedAt: number()
|
|
18301
18380
|
});
|
|
18302
18381
|
/**
|
|
18303
|
-
* Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
|
|
18304
|
-
* the decoder-node placement domain (`balanceDecoder` decision: manual pin
|
|
18305
|
-
* → co-located with pipeline → capacity).
|
|
18306
|
-
*/
|
|
18307
|
-
var DecoderAssignmentSchema = object({
|
|
18308
|
-
deviceId: number(),
|
|
18309
|
-
/** Moleculer node id of the decoder provider currently responsible for this camera. */
|
|
18310
|
-
decoderNodeId: string(),
|
|
18311
|
-
/** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
|
|
18312
|
-
pinned: boolean(),
|
|
18313
|
-
/** Why this assignment was made — useful for debugging the decoder balancer. */
|
|
18314
|
-
reason: _enum([
|
|
18315
|
-
"manual",
|
|
18316
|
-
"co-located",
|
|
18317
|
-
"capacity",
|
|
18318
|
-
"hardware-affinity"
|
|
18319
|
-
])
|
|
18320
|
-
});
|
|
18321
|
-
/**
|
|
18322
18382
|
* Per-agent load summary surfaced to the load balancer + dashboards.
|
|
18323
18383
|
* Aggregated from each runner's `getLocalLoad` cap call.
|
|
18324
18384
|
*/
|
|
@@ -18524,15 +18584,6 @@ method(object({
|
|
|
18524
18584
|
}), method(_void(), IngestOwnerSchema), method(object({
|
|
18525
18585
|
deviceId: number(),
|
|
18526
18586
|
nodeId: string()
|
|
18527
|
-
}), _void(), {
|
|
18528
|
-
kind: "mutation",
|
|
18529
|
-
auth: "admin"
|
|
18530
|
-
}), method(object({ deviceId: number() }), _void(), {
|
|
18531
|
-
kind: "mutation",
|
|
18532
|
-
auth: "admin"
|
|
18533
|
-
}), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
|
|
18534
|
-
deviceId: number(),
|
|
18535
|
-
nodeId: string()
|
|
18536
18587
|
}), object({ success: literal(true) }), {
|
|
18537
18588
|
kind: "mutation",
|
|
18538
18589
|
auth: "admin"
|
|
@@ -18551,10 +18602,7 @@ method(object({
|
|
|
18551
18602
|
nodeId: string(),
|
|
18552
18603
|
pinned: boolean(),
|
|
18553
18604
|
assignedAt: number()
|
|
18554
|
-
}))), method(object({
|
|
18555
|
-
deviceId: number(),
|
|
18556
|
-
pipelineNodeId: string().optional()
|
|
18557
|
-
}), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
|
|
18605
|
+
}))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
|
|
18558
18606
|
nodeId: string(),
|
|
18559
18607
|
settings: AgentPipelineSettingsSchema
|
|
18560
18608
|
})).readonly()), method(object({
|
|
@@ -18584,7 +18632,6 @@ method(object({
|
|
|
18584
18632
|
}), method(object({
|
|
18585
18633
|
agentNodeId: string(),
|
|
18586
18634
|
detect: boolean().nullable().optional(),
|
|
18587
|
-
decode: boolean().nullable().optional(),
|
|
18588
18635
|
audio: boolean().nullable().optional(),
|
|
18589
18636
|
ingest: boolean().nullable().optional()
|
|
18590
18637
|
}), object({ success: literal(true) }), {
|
|
@@ -18596,6 +18643,15 @@ method(object({
|
|
|
18596
18643
|
}), object({ success: literal(true) }), {
|
|
18597
18644
|
kind: "mutation",
|
|
18598
18645
|
auth: "admin"
|
|
18646
|
+
}), method(object({ agentNodeId: string() }), object({
|
|
18647
|
+
success: literal(true),
|
|
18648
|
+
/** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
|
|
18649
|
+
effectiveModelId: string().nullable(),
|
|
18650
|
+
/** Number of cameras whose node-scoped overrides were cleared. */
|
|
18651
|
+
clearedCameraOverrides: number()
|
|
18652
|
+
}), {
|
|
18653
|
+
kind: "mutation",
|
|
18654
|
+
auth: "admin"
|
|
18599
18655
|
}), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
|
|
18600
18656
|
deviceId: number(),
|
|
18601
18657
|
addonId: string(),
|
|
@@ -18641,6 +18697,131 @@ method(object({
|
|
|
18641
18697
|
auth: "admin"
|
|
18642
18698
|
});
|
|
18643
18699
|
/**
|
|
18700
|
+
* server-management — per-NODE singleton capability for a node's ROOT
|
|
18701
|
+
* package lifecycle (runtime-updatable node packages, phase 2: hub + docker
|
|
18702
|
+
* agents).
|
|
18703
|
+
*
|
|
18704
|
+
* Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
|
|
18705
|
+
* on agents) carries the whole software stack in its npm dep tree, so ONE
|
|
18706
|
+
* version describes the node. Updates install into
|
|
18707
|
+
* `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
|
|
18708
|
+
* starter (probation boot + auto-rollback to N-1).
|
|
18709
|
+
*
|
|
18710
|
+
* Providers:
|
|
18711
|
+
* - HUB: `ServerUpdateService` behind the `server-provided` mount
|
|
18712
|
+
* (`buildServerProviders` in trpc.router.ts) — the default target for
|
|
18713
|
+
* unpinned calls.
|
|
18714
|
+
* - AGENT: `AgentUpdateService` registered by the agent bootstrap under
|
|
18715
|
+
* the synthetic `agent-runtime` addonId and declared in the agent's
|
|
18716
|
+
* `$hub.registerNode` manifest.
|
|
18717
|
+
*
|
|
18718
|
+
* Node routing: singleton caps get the codegen/runtime-builder `nodeId`
|
|
18719
|
+
* injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
|
|
18720
|
+
* SDK) routes the call to that node's provider via the standard remote
|
|
18721
|
+
* proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
|
|
18722
|
+
* in-process provider lookup). No `nodeId` → the hub's own provider.
|
|
18723
|
+
*
|
|
18724
|
+
* Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
|
|
18725
|
+
*/
|
|
18726
|
+
/**
|
|
18727
|
+
* Where the running hub's code was loaded from:
|
|
18728
|
+
* - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
|
|
18729
|
+
* plain resolution and runtime updates are refused.
|
|
18730
|
+
* - `baked` — the immutable image seed closure (no data-dir root active).
|
|
18731
|
+
* - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
|
|
18732
|
+
*/
|
|
18733
|
+
var ServerBootModeSchema = _enum([
|
|
18734
|
+
"workspace",
|
|
18735
|
+
"baked",
|
|
18736
|
+
"data-root"
|
|
18737
|
+
]);
|
|
18738
|
+
/**
|
|
18739
|
+
* Update lifecycle state:
|
|
18740
|
+
* - `idle` / `checking` / `staging` — steady / in-flight registry work.
|
|
18741
|
+
* - `pending-restart` — a version is staged and the node has NOT yet
|
|
18742
|
+
* restarted onto it (still running the OLD version).
|
|
18743
|
+
* - `awaiting-confirmation` — the node HAS restarted onto the staged version
|
|
18744
|
+
* (it is the active probation boot) and is waiting to confirm boot-health.
|
|
18745
|
+
* Apply/rollback are refused in this state and the node must NOT be
|
|
18746
|
+
* manually restarted, or the probation boot auto-rolls-back.
|
|
18747
|
+
*/
|
|
18748
|
+
var ServerUpdateStateSchema = _enum([
|
|
18749
|
+
"idle",
|
|
18750
|
+
"checking",
|
|
18751
|
+
"staging",
|
|
18752
|
+
"pending-restart",
|
|
18753
|
+
"awaiting-confirmation"
|
|
18754
|
+
]);
|
|
18755
|
+
var ServerRollbackInfoSchema = object({
|
|
18756
|
+
/** The version that failed (or was manually rolled back). */
|
|
18757
|
+
fromVersion: string(),
|
|
18758
|
+
/** The version rolled back to; null = the baked seed. */
|
|
18759
|
+
toVersion: string().nullable(),
|
|
18760
|
+
atMs: number(),
|
|
18761
|
+
reason: string()
|
|
18762
|
+
});
|
|
18763
|
+
var ServerPackageStatusSchema = object({
|
|
18764
|
+
/** Root package name (`@camstack/server` on the hub). */
|
|
18765
|
+
packageName: string(),
|
|
18766
|
+
/** Version of the code the running process ACTUALLY loaded. */
|
|
18767
|
+
runningVersion: string().nullable(),
|
|
18768
|
+
/** Node.js runtime version the node's process runs on (`process.versions.node`). */
|
|
18769
|
+
nodeRuntimeVersion: string().nullable(),
|
|
18770
|
+
/** Active data-dir root version; null when booted from seed/workspace. */
|
|
18771
|
+
activeVersion: string().nullable(),
|
|
18772
|
+
/** N-1 version kept for rollback; null when no previous version exists. */
|
|
18773
|
+
previousVersion: string().nullable(),
|
|
18774
|
+
/** Version of the immutable baked seed closure (image fallback). */
|
|
18775
|
+
seedVersion: string().nullable(),
|
|
18776
|
+
/** Latest registry version from the most recent check (null = never checked). */
|
|
18777
|
+
latestVersion: string().nullable(),
|
|
18778
|
+
updateAvailable: boolean(),
|
|
18779
|
+
bootMode: ServerBootModeSchema,
|
|
18780
|
+
updateState: ServerUpdateStateSchema,
|
|
18781
|
+
/** Version staged + awaiting its probation boot, when one is pending. */
|
|
18782
|
+
pendingVersion: string().nullable(),
|
|
18783
|
+
/** Set when the last freshly-activated version failed its boot health-check. */
|
|
18784
|
+
rolledBack: ServerRollbackInfoSchema.nullable(),
|
|
18785
|
+
/**
|
|
18786
|
+
* True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
|
|
18787
|
+
* hub is running from the baked seed (or workspace) while installed data-dir
|
|
18788
|
+
* versions are being IGNORED. Surfaced as a warning in the UI.
|
|
18789
|
+
*/
|
|
18790
|
+
stateFileCorrupt: boolean(),
|
|
18791
|
+
lastCheckedAtMs: number().nullable()
|
|
18792
|
+
});
|
|
18793
|
+
var ServerUpdateCheckResultSchema = object({
|
|
18794
|
+
packageName: string(),
|
|
18795
|
+
runningVersion: string().nullable(),
|
|
18796
|
+
latestVersion: string().nullable(),
|
|
18797
|
+
updateAvailable: boolean(),
|
|
18798
|
+
checkedAtMs: number(),
|
|
18799
|
+
/** Non-null when the registry lookup failed (offline, bad registry, …). */
|
|
18800
|
+
error: string().nullable()
|
|
18801
|
+
});
|
|
18802
|
+
var ServerUpdateActionResultSchema = object({
|
|
18803
|
+
accepted: boolean(),
|
|
18804
|
+
targetVersion: string().nullable(),
|
|
18805
|
+
/** True when a graceful restart was scheduled to apply the change. */
|
|
18806
|
+
restarting: boolean(),
|
|
18807
|
+
message: string()
|
|
18808
|
+
});
|
|
18809
|
+
method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
|
|
18810
|
+
kind: "mutation",
|
|
18811
|
+
auth: "admin"
|
|
18812
|
+
}), method(object({
|
|
18813
|
+
/** Explicit target version; omitted = latest from the registry. */
|
|
18814
|
+
version: string().optional() }), ServerUpdateActionResultSchema, {
|
|
18815
|
+
kind: "mutation",
|
|
18816
|
+
auth: "admin"
|
|
18817
|
+
}), method(_void(), ServerUpdateActionResultSchema, {
|
|
18818
|
+
kind: "mutation",
|
|
18819
|
+
auth: "admin"
|
|
18820
|
+
}), method(_void(), ServerUpdateActionResultSchema, {
|
|
18821
|
+
kind: "mutation",
|
|
18822
|
+
auth: "admin"
|
|
18823
|
+
});
|
|
18824
|
+
/**
|
|
18644
18825
|
* Query filter for settings-store collections.
|
|
18645
18826
|
*/
|
|
18646
18827
|
var QueryFilterSchema = object({
|
|
@@ -20670,6 +20851,16 @@ var TopologyCategorySchema = object({
|
|
|
20670
20851
|
healthy: number(),
|
|
20671
20852
|
addons: array(TopologyCategoryAddonSchema).readonly()
|
|
20672
20853
|
});
|
|
20854
|
+
/**
|
|
20855
|
+
* The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
|
|
20856
|
+
* `@camstack/agent` on agents) as reported by its `registerNode` manifest —
|
|
20857
|
+
* version visibility for the Server management surface. Nullable: offline
|
|
20858
|
+
* rows and pre-phase-2 nodes report none.
|
|
20859
|
+
*/
|
|
20860
|
+
var TopologyRootPackageSchema = object({
|
|
20861
|
+
name: string(),
|
|
20862
|
+
version: string()
|
|
20863
|
+
});
|
|
20673
20864
|
var TopologyNodeSchema = object({
|
|
20674
20865
|
id: string(),
|
|
20675
20866
|
name: string(),
|
|
@@ -20693,7 +20884,8 @@ var TopologyNodeSchema = object({
|
|
|
20693
20884
|
status: string()
|
|
20694
20885
|
})).readonly(),
|
|
20695
20886
|
processes: array(TopologyProcessSchema).readonly(),
|
|
20696
|
-
categories: array(TopologyCategorySchema).readonly()
|
|
20887
|
+
categories: array(TopologyCategorySchema).readonly(),
|
|
20888
|
+
rootPackage: TopologyRootPackageSchema.nullable()
|
|
20697
20889
|
});
|
|
20698
20890
|
var CapUsageEdgeSchema = object({
|
|
20699
20891
|
callerAddonId: string(),
|
|
@@ -23792,6 +23984,12 @@ Object.freeze({
|
|
|
23792
23984
|
addonId: null,
|
|
23793
23985
|
access: "create"
|
|
23794
23986
|
},
|
|
23987
|
+
"loginMethod.getLoginMethods": {
|
|
23988
|
+
capName: "login-method",
|
|
23989
|
+
capScope: "system",
|
|
23990
|
+
addonId: null,
|
|
23991
|
+
access: "view"
|
|
23992
|
+
},
|
|
23795
23993
|
"mediaPlayer.next": {
|
|
23796
23994
|
capName: "media-player",
|
|
23797
23995
|
capScope: "device",
|
|
@@ -24422,23 +24620,23 @@ Object.freeze({
|
|
|
24422
24620
|
addonId: null,
|
|
24423
24621
|
access: "create"
|
|
24424
24622
|
},
|
|
24425
|
-
"pipelineExecutor.
|
|
24623
|
+
"pipelineExecutor.clearDeviceOverrides": {
|
|
24426
24624
|
capName: "pipeline-executor",
|
|
24427
24625
|
capScope: "system",
|
|
24428
24626
|
addonId: null,
|
|
24429
24627
|
access: "delete"
|
|
24430
24628
|
},
|
|
24431
|
-
"pipelineExecutor.
|
|
24629
|
+
"pipelineExecutor.deleteModel": {
|
|
24432
24630
|
capName: "pipeline-executor",
|
|
24433
24631
|
capScope: "system",
|
|
24434
24632
|
addonId: null,
|
|
24435
24633
|
access: "delete"
|
|
24436
24634
|
},
|
|
24437
|
-
"pipelineExecutor.
|
|
24635
|
+
"pipelineExecutor.deleteTemplate": {
|
|
24438
24636
|
capName: "pipeline-executor",
|
|
24439
24637
|
capScope: "system",
|
|
24440
24638
|
addonId: null,
|
|
24441
|
-
access: "
|
|
24639
|
+
access: "delete"
|
|
24442
24640
|
},
|
|
24443
24641
|
"pipelineExecutor.downloadModel": {
|
|
24444
24642
|
capName: "pipeline-executor",
|
|
@@ -24584,12 +24782,6 @@ Object.freeze({
|
|
|
24584
24782
|
addonId: null,
|
|
24585
24783
|
access: "create"
|
|
24586
24784
|
},
|
|
24587
|
-
"pipelineExecutor.resetToDefault": {
|
|
24588
|
-
capName: "pipeline-executor",
|
|
24589
|
-
capScope: "system",
|
|
24590
|
-
addonId: null,
|
|
24591
|
-
access: "delete"
|
|
24592
|
-
},
|
|
24593
24785
|
"pipelineExecutor.runAudioTest": {
|
|
24594
24786
|
capName: "pipeline-executor",
|
|
24595
24787
|
capScope: "system",
|
|
@@ -24650,12 +24842,6 @@ Object.freeze({
|
|
|
24650
24842
|
addonId: null,
|
|
24651
24843
|
access: "create"
|
|
24652
24844
|
},
|
|
24653
|
-
"pipelineOrchestrator.assignDecoder": {
|
|
24654
|
-
capName: "pipeline-orchestrator",
|
|
24655
|
-
capScope: "system",
|
|
24656
|
-
addonId: null,
|
|
24657
|
-
access: "create"
|
|
24658
|
-
},
|
|
24659
24845
|
"pipelineOrchestrator.assignPipeline": {
|
|
24660
24846
|
capName: "pipeline-orchestrator",
|
|
24661
24847
|
capScope: "system",
|
|
@@ -24734,18 +24920,6 @@ Object.freeze({
|
|
|
24734
24920
|
addonId: null,
|
|
24735
24921
|
access: "view"
|
|
24736
24922
|
},
|
|
24737
|
-
"pipelineOrchestrator.getDecoderAssignment": {
|
|
24738
|
-
capName: "pipeline-orchestrator",
|
|
24739
|
-
capScope: "system",
|
|
24740
|
-
addonId: null,
|
|
24741
|
-
access: "view"
|
|
24742
|
-
},
|
|
24743
|
-
"pipelineOrchestrator.getDecoderAssignments": {
|
|
24744
|
-
capName: "pipeline-orchestrator",
|
|
24745
|
-
capScope: "system",
|
|
24746
|
-
addonId: null,
|
|
24747
|
-
access: "view"
|
|
24748
|
-
},
|
|
24749
24923
|
"pipelineOrchestrator.getGlobalMetrics": {
|
|
24750
24924
|
capName: "pipeline-orchestrator",
|
|
24751
24925
|
capScope: "system",
|
|
@@ -24794,6 +24968,12 @@ Object.freeze({
|
|
|
24794
24968
|
addonId: null,
|
|
24795
24969
|
access: "delete"
|
|
24796
24970
|
},
|
|
24971
|
+
"pipelineOrchestrator.resetNodePipelineDefaults": {
|
|
24972
|
+
capName: "pipeline-orchestrator",
|
|
24973
|
+
capScope: "system",
|
|
24974
|
+
addonId: null,
|
|
24975
|
+
access: "delete"
|
|
24976
|
+
},
|
|
24797
24977
|
"pipelineOrchestrator.resolvePipeline": {
|
|
24798
24978
|
capName: "pipeline-orchestrator",
|
|
24799
24979
|
capScope: "system",
|
|
@@ -24866,12 +25046,6 @@ Object.freeze({
|
|
|
24866
25046
|
addonId: null,
|
|
24867
25047
|
access: "create"
|
|
24868
25048
|
},
|
|
24869
|
-
"pipelineOrchestrator.unassignDecoder": {
|
|
24870
|
-
capName: "pipeline-orchestrator",
|
|
24871
|
-
capScope: "system",
|
|
24872
|
-
addonId: null,
|
|
24873
|
-
access: "create"
|
|
24874
|
-
},
|
|
24875
25049
|
"pipelineOrchestrator.unassignPipeline": {
|
|
24876
25050
|
capName: "pipeline-orchestrator",
|
|
24877
25051
|
capScope: "system",
|
|
@@ -25178,6 +25352,36 @@ Object.freeze({
|
|
|
25178
25352
|
addonId: null,
|
|
25179
25353
|
access: "create"
|
|
25180
25354
|
},
|
|
25355
|
+
"serverManagement.applyServerUpdate": {
|
|
25356
|
+
capName: "server-management",
|
|
25357
|
+
capScope: "system",
|
|
25358
|
+
addonId: null,
|
|
25359
|
+
access: "create"
|
|
25360
|
+
},
|
|
25361
|
+
"serverManagement.checkServerUpdate": {
|
|
25362
|
+
capName: "server-management",
|
|
25363
|
+
capScope: "system",
|
|
25364
|
+
addonId: null,
|
|
25365
|
+
access: "create"
|
|
25366
|
+
},
|
|
25367
|
+
"serverManagement.getServerPackageStatus": {
|
|
25368
|
+
capName: "server-management",
|
|
25369
|
+
capScope: "system",
|
|
25370
|
+
addonId: null,
|
|
25371
|
+
access: "view"
|
|
25372
|
+
},
|
|
25373
|
+
"serverManagement.restartServer": {
|
|
25374
|
+
capName: "server-management",
|
|
25375
|
+
capScope: "system",
|
|
25376
|
+
addonId: null,
|
|
25377
|
+
access: "create"
|
|
25378
|
+
},
|
|
25379
|
+
"serverManagement.rollbackServerUpdate": {
|
|
25380
|
+
capName: "server-management",
|
|
25381
|
+
capScope: "system",
|
|
25382
|
+
addonId: null,
|
|
25383
|
+
access: "create"
|
|
25384
|
+
},
|
|
25181
25385
|
"settingsStore.count": {
|
|
25182
25386
|
capName: "settings-store",
|
|
25183
25387
|
capScope: "system",
|
|
@@ -26042,6 +26246,18 @@ Object.freeze({
|
|
|
26042
26246
|
addonId: null,
|
|
26043
26247
|
access: "view"
|
|
26044
26248
|
},
|
|
26249
|
+
"viewerUi.getStaticDir": {
|
|
26250
|
+
capName: "viewer-ui",
|
|
26251
|
+
capScope: "system",
|
|
26252
|
+
addonId: null,
|
|
26253
|
+
access: "view"
|
|
26254
|
+
},
|
|
26255
|
+
"viewerUi.getVersion": {
|
|
26256
|
+
capName: "viewer-ui",
|
|
26257
|
+
capScope: "system",
|
|
26258
|
+
addonId: null,
|
|
26259
|
+
access: "view"
|
|
26260
|
+
},
|
|
26045
26261
|
"waterHeater.setAway": {
|
|
26046
26262
|
capName: "water-heater",
|
|
26047
26263
|
capScope: "device",
|
package/dist/addon.mjs
CHANGED
|
@@ -4634,7 +4634,7 @@ function _instanceof(cls, params = {}) {
|
|
|
4634
4634
|
return inst;
|
|
4635
4635
|
}
|
|
4636
4636
|
//#endregion
|
|
4637
|
-
//#region ../types/dist/sleep-
|
|
4637
|
+
//#region ../types/dist/sleep-DJaTV2D7.mjs
|
|
4638
4638
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
4639
4639
|
EventCategory["SystemBoot"] = "system.boot";
|
|
4640
4640
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -5355,10 +5355,6 @@ function hydrateField(field, values) {
|
|
|
5355
5355
|
};
|
|
5356
5356
|
}
|
|
5357
5357
|
const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
|
|
5358
|
-
if (field.type === "password") return {
|
|
5359
|
-
...field,
|
|
5360
|
-
value: ""
|
|
5361
|
-
};
|
|
5362
5358
|
const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
|
|
5363
5359
|
return {
|
|
5364
5360
|
...field,
|
|
@@ -6746,6 +6742,9 @@ function method(input, output, options) {
|
|
|
6746
6742
|
function event(data) {
|
|
6747
6743
|
return { data };
|
|
6748
6744
|
}
|
|
6745
|
+
var StaticDirOutputSchema$1 = object({ staticDir: string() });
|
|
6746
|
+
var VersionOutputSchema$1 = object({ version: string() });
|
|
6747
|
+
method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
|
|
6749
6748
|
var StaticDirOutputSchema = object({ staticDir: string() });
|
|
6750
6749
|
var VersionOutputSchema = object({ version: string() });
|
|
6751
6750
|
method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
|
|
@@ -11657,7 +11656,7 @@ var BoundingBoxSchema = object({
|
|
|
11657
11656
|
w: number(),
|
|
11658
11657
|
h: number()
|
|
11659
11658
|
});
|
|
11660
|
-
|
|
11659
|
+
object({
|
|
11661
11660
|
class: string(),
|
|
11662
11661
|
originalClass: string(),
|
|
11663
11662
|
score: number(),
|
|
@@ -11848,11 +11847,6 @@ var PipelineSchemaSchema = object({
|
|
|
11848
11847
|
selectedEngine: PipelineEngineChoiceSchema,
|
|
11849
11848
|
slots: array(PipelineSlotSchemaSchema).readonly()
|
|
11850
11849
|
});
|
|
11851
|
-
var DetectorOutputSchema = object({
|
|
11852
|
-
detections: array(SpatialDetectionSchema).readonly(),
|
|
11853
|
-
inferenceMs: number(),
|
|
11854
|
-
modelId: string()
|
|
11855
|
-
});
|
|
11856
11850
|
var EngineProvisioningSchema = object({
|
|
11857
11851
|
runtimeId: _enum([
|
|
11858
11852
|
"onnx",
|
|
@@ -11977,7 +11971,7 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
11977
11971
|
auth: "admin"
|
|
11978
11972
|
}), method(object({ nodeId: string() }), object({
|
|
11979
11973
|
success: literal(true),
|
|
11980
|
-
|
|
11974
|
+
clearedDevices: number()
|
|
11981
11975
|
}), {
|
|
11982
11976
|
kind: "mutation",
|
|
11983
11977
|
auth: "admin"
|
|
@@ -11998,10 +11992,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
11998
11992
|
modelId: string(),
|
|
11999
11993
|
format: ModelFormatSchema$1
|
|
12000
11994
|
}), object({ success: literal(true) }), { kind: "mutation" }), method(object({
|
|
12001
|
-
addonId: string(),
|
|
12002
|
-
frame: FrameInputSchema,
|
|
12003
|
-
config: record(string(), unknown()).optional()
|
|
12004
|
-
}), DetectorOutputSchema), method(object({
|
|
12005
11995
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
12006
11996
|
steps: array(PipelineStepInputSchema).min(1),
|
|
12007
11997
|
frame: FrameInputSchema.optional(),
|
|
@@ -15366,7 +15356,9 @@ var AddonPageDeclarationSchema$1 = object({
|
|
|
15366
15356
|
icon: string(),
|
|
15367
15357
|
path: string(),
|
|
15368
15358
|
remoteName: string(),
|
|
15369
|
-
bundle: string()
|
|
15359
|
+
bundle: string(),
|
|
15360
|
+
section: string().optional(),
|
|
15361
|
+
sectionLabel: string().optional()
|
|
15370
15362
|
});
|
|
15371
15363
|
var AddonPageInfoSchema = object({
|
|
15372
15364
|
addonId: string(),
|
|
@@ -15406,7 +15398,18 @@ var AddonPageDeclarationSchema = object({
|
|
|
15406
15398
|
* the static-file route can compute an mtime-based cache-buster URL
|
|
15407
15399
|
* without a separate filesystem stat.
|
|
15408
15400
|
*/
|
|
15409
|
-
bundle: string()
|
|
15401
|
+
bundle: string(),
|
|
15402
|
+
/**
|
|
15403
|
+
* Sidebar section this page docks into. Well-known ids: `'detection'`,
|
|
15404
|
+
* `'cluster'`, `'administration'` — the page renders inside that group.
|
|
15405
|
+
* Any OTHER string creates (or joins) a custom section rendered after
|
|
15406
|
+
* the built-in groups; its label comes from `sectionLabel` (first
|
|
15407
|
+
* declaration wins), falling back to the id. Absent → the legacy
|
|
15408
|
+
* "Addon Pages" group.
|
|
15409
|
+
*/
|
|
15410
|
+
section: string().optional(),
|
|
15411
|
+
/** Display label for a CUSTOM `section` id (ignored for well-known ids). */
|
|
15412
|
+
sectionLabel: string().optional()
|
|
15410
15413
|
});
|
|
15411
15414
|
method(_void(), array(AddonPageDeclarationSchema).readonly());
|
|
15412
15415
|
var AddonHttpRouteSchema = object({
|
|
@@ -15622,6 +15625,17 @@ var WidgetMetadataSchema = object({
|
|
|
15622
15625
|
deviceContext: boolean().default(false),
|
|
15623
15626
|
integrationContext: boolean().default(false)
|
|
15624
15627
|
}),
|
|
15628
|
+
/**
|
|
15629
|
+
* Loadable BEFORE authentication. The normal widget registry listing
|
|
15630
|
+
* (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
|
|
15631
|
+
* (the login page) cannot discover a widget through it. A widget that
|
|
15632
|
+
* declares `preAuth: true` marks itself as safe to mount on a pre-auth
|
|
15633
|
+
* screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
|
|
15634
|
+
* login-method contribution channel (see `login-method.cap.ts`) rather
|
|
15635
|
+
* than the authenticated registry, and its bundle is served by the
|
|
15636
|
+
* public `/api/addon-widgets/:addonId/*` static route. Defaults false.
|
|
15637
|
+
*/
|
|
15638
|
+
preAuth: boolean().optional().default(false),
|
|
15625
15639
|
/** Dashboard placement HINTS (operator can override per instance). */
|
|
15626
15640
|
defaultSize: WidgetSizeEnum.default("md"),
|
|
15627
15641
|
allowedSizes: array(WidgetSizeEnum).readonly().default([
|
|
@@ -15923,6 +15937,66 @@ method(object({
|
|
|
15923
15937
|
password: string()
|
|
15924
15938
|
}), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
|
|
15925
15939
|
/**
|
|
15940
|
+
* `login-method` — collection cap through which auth addons contribute
|
|
15941
|
+
* their pre-auth login surfaces to the login page. This is the SINGLE,
|
|
15942
|
+
* generic mechanism that supersedes the dead `auth.listProviders` reader:
|
|
15943
|
+
* every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
|
|
15944
|
+
* `login-method` provider and the PUBLIC `auth.listLoginMethods`
|
|
15945
|
+
* procedure aggregates them for the unauthenticated login page.
|
|
15946
|
+
*
|
|
15947
|
+
* A contribution is a discriminated union on `kind`:
|
|
15948
|
+
*
|
|
15949
|
+
* - `redirect` — a declarative button. The login page renders a generic
|
|
15950
|
+
* button that navigates to `startUrl` (an addon-owned HTTP route).
|
|
15951
|
+
* Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
|
|
15952
|
+
* ZERO shell-side JS. A future SSO addon plugs in the same way — the
|
|
15953
|
+
* login page needs NO change.
|
|
15954
|
+
*
|
|
15955
|
+
* - `widget` — a Module-Federation widget the login page mounts (via
|
|
15956
|
+
* `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
|
|
15957
|
+
* login ceremony, which must run `@simplewebauthn/browser` INSIDE the
|
|
15958
|
+
* addon bundle. The referenced widget also declares `preAuth: true` in
|
|
15959
|
+
* its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
|
|
15960
|
+
* stamps a public `bundleUrl` from `addonId` + `bundle`.
|
|
15961
|
+
*
|
|
15962
|
+
* Every contribution carries a `stage`:
|
|
15963
|
+
* - `primary` — shown on the first credentials screen (OIDC /
|
|
15964
|
+
* magic-link buttons; a future usernameless passkey).
|
|
15965
|
+
* - `second-factor` — shown AFTER the password leg, gated on the
|
|
15966
|
+
* returned `factors` (passkey-as-2FA today).
|
|
15967
|
+
*
|
|
15968
|
+
* `mount: skip` — the cap is read server-side by the core auth router
|
|
15969
|
+
* (`registry.getCollection('login-method')`), never mounted as its own
|
|
15970
|
+
* tRPC router.
|
|
15971
|
+
*/
|
|
15972
|
+
/** When a login method renders in the two-phase login flow. */
|
|
15973
|
+
var LoginStageEnum = _enum(["primary", "second-factor"]);
|
|
15974
|
+
/** One login-method contribution — redirect button OR pre-auth widget. */
|
|
15975
|
+
var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
|
|
15976
|
+
kind: literal("redirect"),
|
|
15977
|
+
/** Stable id within the login-method set (e.g. `auth-oidc/google`). */
|
|
15978
|
+
id: string(),
|
|
15979
|
+
/** Operator-facing button label. */
|
|
15980
|
+
label: string(),
|
|
15981
|
+
/** lucide-react icon name. */
|
|
15982
|
+
icon: string().optional(),
|
|
15983
|
+
/** Addon-owned HTTP route the button navigates to (GET). */
|
|
15984
|
+
startUrl: string(),
|
|
15985
|
+
stage: LoginStageEnum
|
|
15986
|
+
}), object({
|
|
15987
|
+
kind: literal("widget"),
|
|
15988
|
+
/** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
|
|
15989
|
+
id: string(),
|
|
15990
|
+
/** Owning addon id — drives the public bundle URL + the MF namespace. */
|
|
15991
|
+
addonId: string(),
|
|
15992
|
+
/** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
|
|
15993
|
+
bundle: string(),
|
|
15994
|
+
/** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
|
|
15995
|
+
remote: WidgetRemoteSchema,
|
|
15996
|
+
stage: LoginStageEnum
|
|
15997
|
+
})]);
|
|
15998
|
+
method(_void(), array(LoginMethodContributionSchema).readonly());
|
|
15999
|
+
/**
|
|
15926
16000
|
* Orchestrator-side destination metadata. The orchestrator computes
|
|
15927
16001
|
* `id = <addonId>:<subId>` from its provider lookup so consumers
|
|
15928
16002
|
* (admin UI, restore flow) see one canonical key.
|
|
@@ -18240,7 +18314,12 @@ var AgentPipelineSettingsSchema = object({
|
|
|
18240
18314
|
detectWeight: number().positive().optional(),
|
|
18241
18315
|
/** Node is eligible to run the detection pipeline (decode + inference). */
|
|
18242
18316
|
detect: boolean().optional(),
|
|
18243
|
-
/**
|
|
18317
|
+
/**
|
|
18318
|
+
* DEPRECATED AND IGNORED. Decode is always co-located with its frame
|
|
18319
|
+
* consumer, so decode eligibility IS detect eligibility. Kept optional in
|
|
18320
|
+
* the schema ONLY so persisted stores written before the removal still
|
|
18321
|
+
* parse — no code reads it and no write path emits it.
|
|
18322
|
+
*/
|
|
18244
18323
|
decode: boolean().optional(),
|
|
18245
18324
|
/** Node is eligible to run audio-analyzer sessions. */
|
|
18246
18325
|
audio: boolean().optional(),
|
|
@@ -18301,25 +18380,6 @@ var PipelineAssignmentSchema = object({
|
|
|
18301
18380
|
assignedAt: number()
|
|
18302
18381
|
});
|
|
18303
18382
|
/**
|
|
18304
|
-
* Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
|
|
18305
|
-
* the decoder-node placement domain (`balanceDecoder` decision: manual pin
|
|
18306
|
-
* → co-located with pipeline → capacity).
|
|
18307
|
-
*/
|
|
18308
|
-
var DecoderAssignmentSchema = object({
|
|
18309
|
-
deviceId: number(),
|
|
18310
|
-
/** Moleculer node id of the decoder provider currently responsible for this camera. */
|
|
18311
|
-
decoderNodeId: string(),
|
|
18312
|
-
/** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
|
|
18313
|
-
pinned: boolean(),
|
|
18314
|
-
/** Why this assignment was made — useful for debugging the decoder balancer. */
|
|
18315
|
-
reason: _enum([
|
|
18316
|
-
"manual",
|
|
18317
|
-
"co-located",
|
|
18318
|
-
"capacity",
|
|
18319
|
-
"hardware-affinity"
|
|
18320
|
-
])
|
|
18321
|
-
});
|
|
18322
|
-
/**
|
|
18323
18383
|
* Per-agent load summary surfaced to the load balancer + dashboards.
|
|
18324
18384
|
* Aggregated from each runner's `getLocalLoad` cap call.
|
|
18325
18385
|
*/
|
|
@@ -18525,15 +18585,6 @@ method(object({
|
|
|
18525
18585
|
}), method(_void(), IngestOwnerSchema), method(object({
|
|
18526
18586
|
deviceId: number(),
|
|
18527
18587
|
nodeId: string()
|
|
18528
|
-
}), _void(), {
|
|
18529
|
-
kind: "mutation",
|
|
18530
|
-
auth: "admin"
|
|
18531
|
-
}), method(object({ deviceId: number() }), _void(), {
|
|
18532
|
-
kind: "mutation",
|
|
18533
|
-
auth: "admin"
|
|
18534
|
-
}), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
|
|
18535
|
-
deviceId: number(),
|
|
18536
|
-
nodeId: string()
|
|
18537
18588
|
}), object({ success: literal(true) }), {
|
|
18538
18589
|
kind: "mutation",
|
|
18539
18590
|
auth: "admin"
|
|
@@ -18552,10 +18603,7 @@ method(object({
|
|
|
18552
18603
|
nodeId: string(),
|
|
18553
18604
|
pinned: boolean(),
|
|
18554
18605
|
assignedAt: number()
|
|
18555
|
-
}))), method(object({
|
|
18556
|
-
deviceId: number(),
|
|
18557
|
-
pipelineNodeId: string().optional()
|
|
18558
|
-
}), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
|
|
18606
|
+
}))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
|
|
18559
18607
|
nodeId: string(),
|
|
18560
18608
|
settings: AgentPipelineSettingsSchema
|
|
18561
18609
|
})).readonly()), method(object({
|
|
@@ -18585,7 +18633,6 @@ method(object({
|
|
|
18585
18633
|
}), method(object({
|
|
18586
18634
|
agentNodeId: string(),
|
|
18587
18635
|
detect: boolean().nullable().optional(),
|
|
18588
|
-
decode: boolean().nullable().optional(),
|
|
18589
18636
|
audio: boolean().nullable().optional(),
|
|
18590
18637
|
ingest: boolean().nullable().optional()
|
|
18591
18638
|
}), object({ success: literal(true) }), {
|
|
@@ -18597,6 +18644,15 @@ method(object({
|
|
|
18597
18644
|
}), object({ success: literal(true) }), {
|
|
18598
18645
|
kind: "mutation",
|
|
18599
18646
|
auth: "admin"
|
|
18647
|
+
}), method(object({ agentNodeId: string() }), object({
|
|
18648
|
+
success: literal(true),
|
|
18649
|
+
/** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
|
|
18650
|
+
effectiveModelId: string().nullable(),
|
|
18651
|
+
/** Number of cameras whose node-scoped overrides were cleared. */
|
|
18652
|
+
clearedCameraOverrides: number()
|
|
18653
|
+
}), {
|
|
18654
|
+
kind: "mutation",
|
|
18655
|
+
auth: "admin"
|
|
18600
18656
|
}), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
|
|
18601
18657
|
deviceId: number(),
|
|
18602
18658
|
addonId: string(),
|
|
@@ -18642,6 +18698,131 @@ method(object({
|
|
|
18642
18698
|
auth: "admin"
|
|
18643
18699
|
});
|
|
18644
18700
|
/**
|
|
18701
|
+
* server-management — per-NODE singleton capability for a node's ROOT
|
|
18702
|
+
* package lifecycle (runtime-updatable node packages, phase 2: hub + docker
|
|
18703
|
+
* agents).
|
|
18704
|
+
*
|
|
18705
|
+
* Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
|
|
18706
|
+
* on agents) carries the whole software stack in its npm dep tree, so ONE
|
|
18707
|
+
* version describes the node. Updates install into
|
|
18708
|
+
* `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
|
|
18709
|
+
* starter (probation boot + auto-rollback to N-1).
|
|
18710
|
+
*
|
|
18711
|
+
* Providers:
|
|
18712
|
+
* - HUB: `ServerUpdateService` behind the `server-provided` mount
|
|
18713
|
+
* (`buildServerProviders` in trpc.router.ts) — the default target for
|
|
18714
|
+
* unpinned calls.
|
|
18715
|
+
* - AGENT: `AgentUpdateService` registered by the agent bootstrap under
|
|
18716
|
+
* the synthetic `agent-runtime` addonId and declared in the agent's
|
|
18717
|
+
* `$hub.registerNode` manifest.
|
|
18718
|
+
*
|
|
18719
|
+
* Node routing: singleton caps get the codegen/runtime-builder `nodeId`
|
|
18720
|
+
* injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
|
|
18721
|
+
* SDK) routes the call to that node's provider via the standard remote
|
|
18722
|
+
* proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
|
|
18723
|
+
* in-process provider lookup). No `nodeId` → the hub's own provider.
|
|
18724
|
+
*
|
|
18725
|
+
* Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
|
|
18726
|
+
*/
|
|
18727
|
+
/**
|
|
18728
|
+
* Where the running hub's code was loaded from:
|
|
18729
|
+
* - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
|
|
18730
|
+
* plain resolution and runtime updates are refused.
|
|
18731
|
+
* - `baked` — the immutable image seed closure (no data-dir root active).
|
|
18732
|
+
* - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
|
|
18733
|
+
*/
|
|
18734
|
+
var ServerBootModeSchema = _enum([
|
|
18735
|
+
"workspace",
|
|
18736
|
+
"baked",
|
|
18737
|
+
"data-root"
|
|
18738
|
+
]);
|
|
18739
|
+
/**
|
|
18740
|
+
* Update lifecycle state:
|
|
18741
|
+
* - `idle` / `checking` / `staging` — steady / in-flight registry work.
|
|
18742
|
+
* - `pending-restart` — a version is staged and the node has NOT yet
|
|
18743
|
+
* restarted onto it (still running the OLD version).
|
|
18744
|
+
* - `awaiting-confirmation` — the node HAS restarted onto the staged version
|
|
18745
|
+
* (it is the active probation boot) and is waiting to confirm boot-health.
|
|
18746
|
+
* Apply/rollback are refused in this state and the node must NOT be
|
|
18747
|
+
* manually restarted, or the probation boot auto-rolls-back.
|
|
18748
|
+
*/
|
|
18749
|
+
var ServerUpdateStateSchema = _enum([
|
|
18750
|
+
"idle",
|
|
18751
|
+
"checking",
|
|
18752
|
+
"staging",
|
|
18753
|
+
"pending-restart",
|
|
18754
|
+
"awaiting-confirmation"
|
|
18755
|
+
]);
|
|
18756
|
+
var ServerRollbackInfoSchema = object({
|
|
18757
|
+
/** The version that failed (or was manually rolled back). */
|
|
18758
|
+
fromVersion: string(),
|
|
18759
|
+
/** The version rolled back to; null = the baked seed. */
|
|
18760
|
+
toVersion: string().nullable(),
|
|
18761
|
+
atMs: number(),
|
|
18762
|
+
reason: string()
|
|
18763
|
+
});
|
|
18764
|
+
var ServerPackageStatusSchema = object({
|
|
18765
|
+
/** Root package name (`@camstack/server` on the hub). */
|
|
18766
|
+
packageName: string(),
|
|
18767
|
+
/** Version of the code the running process ACTUALLY loaded. */
|
|
18768
|
+
runningVersion: string().nullable(),
|
|
18769
|
+
/** Node.js runtime version the node's process runs on (`process.versions.node`). */
|
|
18770
|
+
nodeRuntimeVersion: string().nullable(),
|
|
18771
|
+
/** Active data-dir root version; null when booted from seed/workspace. */
|
|
18772
|
+
activeVersion: string().nullable(),
|
|
18773
|
+
/** N-1 version kept for rollback; null when no previous version exists. */
|
|
18774
|
+
previousVersion: string().nullable(),
|
|
18775
|
+
/** Version of the immutable baked seed closure (image fallback). */
|
|
18776
|
+
seedVersion: string().nullable(),
|
|
18777
|
+
/** Latest registry version from the most recent check (null = never checked). */
|
|
18778
|
+
latestVersion: string().nullable(),
|
|
18779
|
+
updateAvailable: boolean(),
|
|
18780
|
+
bootMode: ServerBootModeSchema,
|
|
18781
|
+
updateState: ServerUpdateStateSchema,
|
|
18782
|
+
/** Version staged + awaiting its probation boot, when one is pending. */
|
|
18783
|
+
pendingVersion: string().nullable(),
|
|
18784
|
+
/** Set when the last freshly-activated version failed its boot health-check. */
|
|
18785
|
+
rolledBack: ServerRollbackInfoSchema.nullable(),
|
|
18786
|
+
/**
|
|
18787
|
+
* True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
|
|
18788
|
+
* hub is running from the baked seed (or workspace) while installed data-dir
|
|
18789
|
+
* versions are being IGNORED. Surfaced as a warning in the UI.
|
|
18790
|
+
*/
|
|
18791
|
+
stateFileCorrupt: boolean(),
|
|
18792
|
+
lastCheckedAtMs: number().nullable()
|
|
18793
|
+
});
|
|
18794
|
+
var ServerUpdateCheckResultSchema = object({
|
|
18795
|
+
packageName: string(),
|
|
18796
|
+
runningVersion: string().nullable(),
|
|
18797
|
+
latestVersion: string().nullable(),
|
|
18798
|
+
updateAvailable: boolean(),
|
|
18799
|
+
checkedAtMs: number(),
|
|
18800
|
+
/** Non-null when the registry lookup failed (offline, bad registry, …). */
|
|
18801
|
+
error: string().nullable()
|
|
18802
|
+
});
|
|
18803
|
+
var ServerUpdateActionResultSchema = object({
|
|
18804
|
+
accepted: boolean(),
|
|
18805
|
+
targetVersion: string().nullable(),
|
|
18806
|
+
/** True when a graceful restart was scheduled to apply the change. */
|
|
18807
|
+
restarting: boolean(),
|
|
18808
|
+
message: string()
|
|
18809
|
+
});
|
|
18810
|
+
method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
|
|
18811
|
+
kind: "mutation",
|
|
18812
|
+
auth: "admin"
|
|
18813
|
+
}), method(object({
|
|
18814
|
+
/** Explicit target version; omitted = latest from the registry. */
|
|
18815
|
+
version: string().optional() }), ServerUpdateActionResultSchema, {
|
|
18816
|
+
kind: "mutation",
|
|
18817
|
+
auth: "admin"
|
|
18818
|
+
}), method(_void(), ServerUpdateActionResultSchema, {
|
|
18819
|
+
kind: "mutation",
|
|
18820
|
+
auth: "admin"
|
|
18821
|
+
}), method(_void(), ServerUpdateActionResultSchema, {
|
|
18822
|
+
kind: "mutation",
|
|
18823
|
+
auth: "admin"
|
|
18824
|
+
});
|
|
18825
|
+
/**
|
|
18645
18826
|
* Query filter for settings-store collections.
|
|
18646
18827
|
*/
|
|
18647
18828
|
var QueryFilterSchema = object({
|
|
@@ -20671,6 +20852,16 @@ var TopologyCategorySchema = object({
|
|
|
20671
20852
|
healthy: number(),
|
|
20672
20853
|
addons: array(TopologyCategoryAddonSchema).readonly()
|
|
20673
20854
|
});
|
|
20855
|
+
/**
|
|
20856
|
+
* The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
|
|
20857
|
+
* `@camstack/agent` on agents) as reported by its `registerNode` manifest —
|
|
20858
|
+
* version visibility for the Server management surface. Nullable: offline
|
|
20859
|
+
* rows and pre-phase-2 nodes report none.
|
|
20860
|
+
*/
|
|
20861
|
+
var TopologyRootPackageSchema = object({
|
|
20862
|
+
name: string(),
|
|
20863
|
+
version: string()
|
|
20864
|
+
});
|
|
20674
20865
|
var TopologyNodeSchema = object({
|
|
20675
20866
|
id: string(),
|
|
20676
20867
|
name: string(),
|
|
@@ -20694,7 +20885,8 @@ var TopologyNodeSchema = object({
|
|
|
20694
20885
|
status: string()
|
|
20695
20886
|
})).readonly(),
|
|
20696
20887
|
processes: array(TopologyProcessSchema).readonly(),
|
|
20697
|
-
categories: array(TopologyCategorySchema).readonly()
|
|
20888
|
+
categories: array(TopologyCategorySchema).readonly(),
|
|
20889
|
+
rootPackage: TopologyRootPackageSchema.nullable()
|
|
20698
20890
|
});
|
|
20699
20891
|
var CapUsageEdgeSchema = object({
|
|
20700
20892
|
callerAddonId: string(),
|
|
@@ -23793,6 +23985,12 @@ Object.freeze({
|
|
|
23793
23985
|
addonId: null,
|
|
23794
23986
|
access: "create"
|
|
23795
23987
|
},
|
|
23988
|
+
"loginMethod.getLoginMethods": {
|
|
23989
|
+
capName: "login-method",
|
|
23990
|
+
capScope: "system",
|
|
23991
|
+
addonId: null,
|
|
23992
|
+
access: "view"
|
|
23993
|
+
},
|
|
23796
23994
|
"mediaPlayer.next": {
|
|
23797
23995
|
capName: "media-player",
|
|
23798
23996
|
capScope: "device",
|
|
@@ -24423,23 +24621,23 @@ Object.freeze({
|
|
|
24423
24621
|
addonId: null,
|
|
24424
24622
|
access: "create"
|
|
24425
24623
|
},
|
|
24426
|
-
"pipelineExecutor.
|
|
24624
|
+
"pipelineExecutor.clearDeviceOverrides": {
|
|
24427
24625
|
capName: "pipeline-executor",
|
|
24428
24626
|
capScope: "system",
|
|
24429
24627
|
addonId: null,
|
|
24430
24628
|
access: "delete"
|
|
24431
24629
|
},
|
|
24432
|
-
"pipelineExecutor.
|
|
24630
|
+
"pipelineExecutor.deleteModel": {
|
|
24433
24631
|
capName: "pipeline-executor",
|
|
24434
24632
|
capScope: "system",
|
|
24435
24633
|
addonId: null,
|
|
24436
24634
|
access: "delete"
|
|
24437
24635
|
},
|
|
24438
|
-
"pipelineExecutor.
|
|
24636
|
+
"pipelineExecutor.deleteTemplate": {
|
|
24439
24637
|
capName: "pipeline-executor",
|
|
24440
24638
|
capScope: "system",
|
|
24441
24639
|
addonId: null,
|
|
24442
|
-
access: "
|
|
24640
|
+
access: "delete"
|
|
24443
24641
|
},
|
|
24444
24642
|
"pipelineExecutor.downloadModel": {
|
|
24445
24643
|
capName: "pipeline-executor",
|
|
@@ -24585,12 +24783,6 @@ Object.freeze({
|
|
|
24585
24783
|
addonId: null,
|
|
24586
24784
|
access: "create"
|
|
24587
24785
|
},
|
|
24588
|
-
"pipelineExecutor.resetToDefault": {
|
|
24589
|
-
capName: "pipeline-executor",
|
|
24590
|
-
capScope: "system",
|
|
24591
|
-
addonId: null,
|
|
24592
|
-
access: "delete"
|
|
24593
|
-
},
|
|
24594
24786
|
"pipelineExecutor.runAudioTest": {
|
|
24595
24787
|
capName: "pipeline-executor",
|
|
24596
24788
|
capScope: "system",
|
|
@@ -24651,12 +24843,6 @@ Object.freeze({
|
|
|
24651
24843
|
addonId: null,
|
|
24652
24844
|
access: "create"
|
|
24653
24845
|
},
|
|
24654
|
-
"pipelineOrchestrator.assignDecoder": {
|
|
24655
|
-
capName: "pipeline-orchestrator",
|
|
24656
|
-
capScope: "system",
|
|
24657
|
-
addonId: null,
|
|
24658
|
-
access: "create"
|
|
24659
|
-
},
|
|
24660
24846
|
"pipelineOrchestrator.assignPipeline": {
|
|
24661
24847
|
capName: "pipeline-orchestrator",
|
|
24662
24848
|
capScope: "system",
|
|
@@ -24735,18 +24921,6 @@ Object.freeze({
|
|
|
24735
24921
|
addonId: null,
|
|
24736
24922
|
access: "view"
|
|
24737
24923
|
},
|
|
24738
|
-
"pipelineOrchestrator.getDecoderAssignment": {
|
|
24739
|
-
capName: "pipeline-orchestrator",
|
|
24740
|
-
capScope: "system",
|
|
24741
|
-
addonId: null,
|
|
24742
|
-
access: "view"
|
|
24743
|
-
},
|
|
24744
|
-
"pipelineOrchestrator.getDecoderAssignments": {
|
|
24745
|
-
capName: "pipeline-orchestrator",
|
|
24746
|
-
capScope: "system",
|
|
24747
|
-
addonId: null,
|
|
24748
|
-
access: "view"
|
|
24749
|
-
},
|
|
24750
24924
|
"pipelineOrchestrator.getGlobalMetrics": {
|
|
24751
24925
|
capName: "pipeline-orchestrator",
|
|
24752
24926
|
capScope: "system",
|
|
@@ -24795,6 +24969,12 @@ Object.freeze({
|
|
|
24795
24969
|
addonId: null,
|
|
24796
24970
|
access: "delete"
|
|
24797
24971
|
},
|
|
24972
|
+
"pipelineOrchestrator.resetNodePipelineDefaults": {
|
|
24973
|
+
capName: "pipeline-orchestrator",
|
|
24974
|
+
capScope: "system",
|
|
24975
|
+
addonId: null,
|
|
24976
|
+
access: "delete"
|
|
24977
|
+
},
|
|
24798
24978
|
"pipelineOrchestrator.resolvePipeline": {
|
|
24799
24979
|
capName: "pipeline-orchestrator",
|
|
24800
24980
|
capScope: "system",
|
|
@@ -24867,12 +25047,6 @@ Object.freeze({
|
|
|
24867
25047
|
addonId: null,
|
|
24868
25048
|
access: "create"
|
|
24869
25049
|
},
|
|
24870
|
-
"pipelineOrchestrator.unassignDecoder": {
|
|
24871
|
-
capName: "pipeline-orchestrator",
|
|
24872
|
-
capScope: "system",
|
|
24873
|
-
addonId: null,
|
|
24874
|
-
access: "create"
|
|
24875
|
-
},
|
|
24876
25050
|
"pipelineOrchestrator.unassignPipeline": {
|
|
24877
25051
|
capName: "pipeline-orchestrator",
|
|
24878
25052
|
capScope: "system",
|
|
@@ -25179,6 +25353,36 @@ Object.freeze({
|
|
|
25179
25353
|
addonId: null,
|
|
25180
25354
|
access: "create"
|
|
25181
25355
|
},
|
|
25356
|
+
"serverManagement.applyServerUpdate": {
|
|
25357
|
+
capName: "server-management",
|
|
25358
|
+
capScope: "system",
|
|
25359
|
+
addonId: null,
|
|
25360
|
+
access: "create"
|
|
25361
|
+
},
|
|
25362
|
+
"serverManagement.checkServerUpdate": {
|
|
25363
|
+
capName: "server-management",
|
|
25364
|
+
capScope: "system",
|
|
25365
|
+
addonId: null,
|
|
25366
|
+
access: "create"
|
|
25367
|
+
},
|
|
25368
|
+
"serverManagement.getServerPackageStatus": {
|
|
25369
|
+
capName: "server-management",
|
|
25370
|
+
capScope: "system",
|
|
25371
|
+
addonId: null,
|
|
25372
|
+
access: "view"
|
|
25373
|
+
},
|
|
25374
|
+
"serverManagement.restartServer": {
|
|
25375
|
+
capName: "server-management",
|
|
25376
|
+
capScope: "system",
|
|
25377
|
+
addonId: null,
|
|
25378
|
+
access: "create"
|
|
25379
|
+
},
|
|
25380
|
+
"serverManagement.rollbackServerUpdate": {
|
|
25381
|
+
capName: "server-management",
|
|
25382
|
+
capScope: "system",
|
|
25383
|
+
addonId: null,
|
|
25384
|
+
access: "create"
|
|
25385
|
+
},
|
|
25182
25386
|
"settingsStore.count": {
|
|
25183
25387
|
capName: "settings-store",
|
|
25184
25388
|
capScope: "system",
|
|
@@ -26043,6 +26247,18 @@ Object.freeze({
|
|
|
26043
26247
|
addonId: null,
|
|
26044
26248
|
access: "view"
|
|
26045
26249
|
},
|
|
26250
|
+
"viewerUi.getStaticDir": {
|
|
26251
|
+
capName: "viewer-ui",
|
|
26252
|
+
capScope: "system",
|
|
26253
|
+
addonId: null,
|
|
26254
|
+
access: "view"
|
|
26255
|
+
},
|
|
26256
|
+
"viewerUi.getVersion": {
|
|
26257
|
+
capName: "viewer-ui",
|
|
26258
|
+
capScope: "system",
|
|
26259
|
+
addonId: null,
|
|
26260
|
+
access: "view"
|
|
26261
|
+
},
|
|
26046
26262
|
"waterHeater.setAway": {
|
|
26047
26263
|
capName: "water-heater",
|
|
26048
26264
|
capScope: "device",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-amcrest",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "Amcrest/Dahua camera device provider addon for CamStack — Dahua CGI over HTTP(S) with digest auth (snapshot, RTSP catalog, PTZ, image/day-night config)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|
|
@@ -67,6 +67,9 @@
|
|
|
67
67
|
}
|
|
68
68
|
]
|
|
69
69
|
}
|
|
70
|
+
],
|
|
71
|
+
"runtimeDependencies": [
|
|
72
|
+
"onvif"
|
|
70
73
|
]
|
|
71
74
|
},
|
|
72
75
|
"files": [
|