@camstack/addon-export-hap 1.2.148 → 1.2.150
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/hap-export.addon.js +247 -34
- package/dist/hap-export.addon.mjs +247 -34
- package/package.json +2 -2
package/dist/hap-export.addon.js
CHANGED
|
@@ -11388,6 +11388,15 @@ var ClipSearchStrictnessSchema = _enum([
|
|
|
11388
11388
|
"balanced",
|
|
11389
11389
|
"strict"
|
|
11390
11390
|
]);
|
|
11391
|
+
/** Steps whose effect a root label can BE. */
|
|
11392
|
+
var LABEL_SUPPLY_STEP_IDS = [
|
|
11393
|
+
"animal-classifier",
|
|
11394
|
+
"vehicle-classifier",
|
|
11395
|
+
"package-detection"
|
|
11396
|
+
];
|
|
11397
|
+
/** Steps whose box a root detection can BE. */
|
|
11398
|
+
var CROP_SUPPLY_STEP_IDS = ["plate-detection", "face-detection"];
|
|
11399
|
+
[...LABEL_SUPPLY_STEP_IDS, ...CROP_SUPPLY_STEP_IDS];
|
|
11391
11400
|
var MODEL_FORMATS = [
|
|
11392
11401
|
"onnx",
|
|
11393
11402
|
"coreml",
|
|
@@ -11520,6 +11529,35 @@ var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { wei
|
|
|
11520
11529
|
/** True when the weights or their data forbid commercial use. */
|
|
11521
11530
|
nonCommercial: boolean().optional()
|
|
11522
11531
|
}));
|
|
11532
|
+
/**
|
|
11533
|
+
* One step a ROOT detector can supply from its own output (D730) — see
|
|
11534
|
+
* `ModelCatalogEntry.suppliesSteps`.
|
|
11535
|
+
*
|
|
11536
|
+
* - `label`: the root's raw class IS the step's answer. `labelToEffect` maps
|
|
11537
|
+
* the root's label to the step's vocabulary; `uncovered` is the vocabulary
|
|
11538
|
+
* the root cannot produce (shown as unavailable, never a blocker).
|
|
11539
|
+
* - `crop`: the root draws the box the step would have found (`license_plate`
|
|
11540
|
+
* for plate-detection, `face` for face-detection). The box becomes a detail
|
|
11541
|
+
* child of the `parentMacro` detection that contains it — never a track.
|
|
11542
|
+
*/
|
|
11543
|
+
var RootStepSupplySchema = discriminatedUnion("kind", [object({
|
|
11544
|
+
kind: literal("label"),
|
|
11545
|
+
stepId: _enum(LABEL_SUPPLY_STEP_IDS),
|
|
11546
|
+
labelToEffect: record(string(), string()),
|
|
11547
|
+
uncovered: array(string()).readonly()
|
|
11548
|
+
}), object({
|
|
11549
|
+
kind: literal("crop"),
|
|
11550
|
+
stepId: _enum(CROP_SUPPLY_STEP_IDS),
|
|
11551
|
+
rootLabels: array(string()).readonly(),
|
|
11552
|
+
parentMacro: _enum(["vehicle", "person"]),
|
|
11553
|
+
childClass: _enum(["plate", "face"]),
|
|
11554
|
+
/**
|
|
11555
|
+
* The root's smaller input side, stamped on read by `rootSuppliesOf` from
|
|
11556
|
+
* the model entry — what a step's `minRootInputPx` gate judges. Never
|
|
11557
|
+
* stored by an import.
|
|
11558
|
+
*/
|
|
11559
|
+
rootInputPx: number().int().positive().optional()
|
|
11560
|
+
})]);
|
|
11523
11561
|
var ModelCatalogEntrySchema = object({
|
|
11524
11562
|
id: string(),
|
|
11525
11563
|
name: string(),
|
|
@@ -11646,6 +11684,16 @@ var ModelCatalogEntrySchema = object({
|
|
|
11646
11684
|
*/
|
|
11647
11685
|
classMap: DetectionCatalogClassMapSchema.optional(),
|
|
11648
11686
|
/**
|
|
11687
|
+
* The pipeline steps this ROOT detector can supply from its own output
|
|
11688
|
+
* (D730): its labels name a step's effect (`deer` for `animal-classifier`)
|
|
11689
|
+
* or draw a step's box (`license_plate` for `plate-detection`). Computed at
|
|
11690
|
+
* import from THIS model's labelmap by `deriveRootSupplies`, never written
|
|
11691
|
+
* by hand and never assumed per family; a row without it is derived on read
|
|
11692
|
+
* (`rootSuppliesOf`). Whether a camera uses it is the step's own
|
|
11693
|
+
* `useRootModel` flag (`resolveRootSupply`).
|
|
11694
|
+
*/
|
|
11695
|
+
suppliesSteps: array(RootStepSupplySchema).readonly().optional(),
|
|
11696
|
+
/**
|
|
11649
11697
|
* The model's CLIP feature-space contract (text encoder, dimension, vector
|
|
11650
11698
|
* index, token window, search floor) — see `clip-model.ts`. Present ONLY on a
|
|
11651
11699
|
* CLIP image encoder; its absence is what "not a CLIP model" means to the
|
|
@@ -15072,7 +15120,7 @@ DeviceType.Camera;
|
|
|
15072
15120
|
* This matters here more than anywhere else in the repo, because every provider
|
|
15073
15121
|
* that knows a device's host knows its PASSWORD too: `{ host, port, username,
|
|
15074
15122
|
* password }` sit in one object on Hikvision, Amcrest, Reolink and ONVIF alike,
|
|
15075
|
-
* and `http://admin:hunter2@192.168.
|
|
15123
|
+
* and `http://admin:hunter2@192.168.60.139/` is a URL a browser accepts. The
|
|
15076
15124
|
* camera's own page will ask for its own login. That is correct, and pre-
|
|
15077
15125
|
* filling it is the operator's business, not ours.
|
|
15078
15126
|
*
|
|
@@ -19449,6 +19497,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
19449
19497
|
"stream-offline",
|
|
19450
19498
|
"node-online",
|
|
19451
19499
|
"node-offline",
|
|
19500
|
+
"node-restarting",
|
|
19501
|
+
"node-updating",
|
|
19452
19502
|
"node-inference-unavailable",
|
|
19453
19503
|
"detection-blind",
|
|
19454
19504
|
"addon-crash-loop",
|
|
@@ -20547,8 +20597,9 @@ var NcRuleSchema = NcRuleInputSchema.extend({
|
|
|
20547
20597
|
disabledTargetIds: array(string()).default([])
|
|
20548
20598
|
});
|
|
20549
20599
|
/**
|
|
20550
|
-
* The state-summary SECTIONS (D647 / D698): the D637 kind groups that
|
|
20551
|
-
* still-true state. `
|
|
20600
|
+
* The state-summary SECTIONS (D647 / D698 / D708): the D637 kind groups that
|
|
20601
|
+
* report a still-true state. `addons` is the crash-looped addons only and
|
|
20602
|
+
* `addon-updates` the addons that are behind (D708 split them). `backups-exports` and `alarm` are not sections — a completed
|
|
20552
20603
|
* job is not an open state, and the alarm stays instant.
|
|
20553
20604
|
*/
|
|
20554
20605
|
var NcStateSummarySectionIdSchema = _enum([
|
|
@@ -20560,6 +20611,7 @@ var NcStateSummarySectionIdSchema = _enum([
|
|
|
20560
20611
|
"detection-blind",
|
|
20561
20612
|
"nodes",
|
|
20562
20613
|
"addons",
|
|
20614
|
+
"addon-updates",
|
|
20563
20615
|
"updates"
|
|
20564
20616
|
]);
|
|
20565
20617
|
/** One section of a previewed state summary. `unavailable` = its state could not be read. */
|
|
@@ -21040,7 +21092,19 @@ var NcAlarmModeDelaysListSchema = array(object({
|
|
|
21040
21092
|
* When this mode may be armed. Absent / null = always allowed (same as a
|
|
21041
21093
|
* rule with no `schedule`). Evaluated with {@link isScheduleActive}.
|
|
21042
21094
|
*/
|
|
21043
|
-
schedule: NcScheduleSchema.optional()
|
|
21095
|
+
schedule: NcScheduleSchema.optional(),
|
|
21096
|
+
/**
|
|
21097
|
+
* D706: while this mode's ENTRY DELAY runs, do the alarm rules' own pushes go out (as an
|
|
21098
|
+
* intrusion naming the locations)? Absent = false — the entry-delay notification is the
|
|
21099
|
+
* only one, and the matches ride the triggered notification's mosaic (D705).
|
|
21100
|
+
*/
|
|
21101
|
+
notifyDuringEntryDelay: boolean().optional(),
|
|
21102
|
+
/**
|
|
21103
|
+
* D706: notify "watched again" when a sensor this arm bypassed closes and opens again.
|
|
21104
|
+
* Absent = false (logged, not sent). Even when true it is not sent when that same sensor
|
|
21105
|
+
* is the one that starts the entry delay — the entry-delay notification already names it.
|
|
21106
|
+
*/
|
|
21107
|
+
notifySensorRewatched: boolean().optional()
|
|
21044
21108
|
})).max(8).refine(uniqueModes, { message: "modeDelays: at most one entry per arm mode" });
|
|
21045
21109
|
var NcAlarmModeDelaysEditListSchema = array(object({
|
|
21046
21110
|
mode: AlarmArmModeSchema,
|
|
@@ -21049,7 +21113,11 @@ var NcAlarmModeDelaysEditListSchema = array(object({
|
|
|
21049
21113
|
triggeredDurationSec: NcAlarmTriggeredSecSchema.nullable().optional(),
|
|
21050
21114
|
postTriggeredAction: NcAlarmPostTriggeredActionSchema.nullable().optional(),
|
|
21051
21115
|
/** Set a schedule, or `null` to clear (mode always allowed again). */
|
|
21052
|
-
schedule: NcScheduleSchema.nullable().optional()
|
|
21116
|
+
schedule: NcScheduleSchema.nullable().optional(),
|
|
21117
|
+
/** D706: set the switch, or `null` to clear it (back to the default, false). */
|
|
21118
|
+
notifyDuringEntryDelay: boolean().nullable().optional(),
|
|
21119
|
+
/** D706: set the switch, or `null` to clear it (back to the default, false). */
|
|
21120
|
+
notifySensorRewatched: boolean().nullable().optional()
|
|
21053
21121
|
})).max(8).refine(uniqueModes, { message: "modeDelays: at most one edit per arm mode" });
|
|
21054
21122
|
/** One switch of the alarm table: put ONE device on, or take it off, ONE mode's list. */
|
|
21055
21123
|
var NcAlarmNonBlockingEditSchema = object({
|
|
@@ -23948,6 +24016,34 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
23948
24016
|
timestamp: number()
|
|
23949
24017
|
});
|
|
23950
24018
|
/**
|
|
24019
|
+
* A root model's boxes standing in for one crop-kind step's own inference
|
|
24020
|
+
* (D730) — see `runPipeline.suppliedRoot`.
|
|
24021
|
+
*/
|
|
24022
|
+
var SuppliedRootOutputSchema = object({
|
|
24023
|
+
stepId: string(),
|
|
24024
|
+
/** The root model that drew the boxes — stamped on the result. */
|
|
24025
|
+
modelId: string(),
|
|
24026
|
+
detections: array(object({
|
|
24027
|
+
/** `[x1, y1, x2, y2]` in the pixels of the call's image. */
|
|
24028
|
+
bbox: tuple([
|
|
24029
|
+
number(),
|
|
24030
|
+
number(),
|
|
24031
|
+
number(),
|
|
24032
|
+
number()
|
|
24033
|
+
]),
|
|
24034
|
+
score: number(),
|
|
24035
|
+
/**
|
|
24036
|
+
* Five facial landmarks in the same pixels — a face the step's own
|
|
24037
|
+
* detector already re-found inside a root face box (D730), so its
|
|
24038
|
+
* embedder child aligns it exactly as it aligns any detected face.
|
|
24039
|
+
*/
|
|
24040
|
+
landmarks: array(object({
|
|
24041
|
+
x: number(),
|
|
24042
|
+
y: number()
|
|
24043
|
+
})).optional()
|
|
24044
|
+
})).min(1)
|
|
24045
|
+
});
|
|
24046
|
+
/**
|
|
23951
24047
|
* Reference to the frame's retained NATIVE surface + the parent crop's placement
|
|
23952
24048
|
* within the frame, so the executor can re-cut a leaf child ROI at native
|
|
23953
24049
|
* resolution on the detail plane. See the `runPipeline` `nativeCropRef` field.
|
|
@@ -24077,7 +24173,8 @@ var PipelineModelOptionSchema = object({
|
|
|
24077
24173
|
group: ModelVariantGroupSchema.optional(),
|
|
24078
24174
|
legacy: boolean().optional(),
|
|
24079
24175
|
provider: ModelProviderIdSchema.optional(),
|
|
24080
|
-
defaultConfidence: number().optional()
|
|
24176
|
+
defaultConfidence: number().optional(),
|
|
24177
|
+
suppliesSteps: array(RootStepSupplySchema).readonly().optional()
|
|
24081
24178
|
});
|
|
24082
24179
|
var ConfigFieldBridge = custom();
|
|
24083
24180
|
var PipelineAddonSchemaSchema = object({
|
|
@@ -24345,7 +24442,16 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
24345
24442
|
* `device-not-servable`), and nothing reaches the camera's live
|
|
24346
24443
|
* trace stream. Absent ⇒ unchanged behaviour.
|
|
24347
24444
|
*/
|
|
24348
|
-
replay: literal(true).optional()
|
|
24445
|
+
replay: literal(true).optional(),
|
|
24446
|
+
/**
|
|
24447
|
+
* Root-supplied detections for the tree's ROOT step (D730). Set by
|
|
24448
|
+
* `runDetailSubtree` when the camera's root model supplies a crop-kind
|
|
24449
|
+
* step (a Frigate+ `license_plate` for `plate-detection`): the step is
|
|
24450
|
+
* NOT inferred, these boxes are its output, and its children (the plate
|
|
24451
|
+
* reader) run on them through their own crop policy. Boxes are in the
|
|
24452
|
+
* PIXELS of the image this call carries. Absent ⇒ the root step runs.
|
|
24453
|
+
*/
|
|
24454
|
+
suppliedRoot: SuppliedRootOutputSchema.optional()
|
|
24349
24455
|
}), PipelineRunResultBridge, { kind: "mutation" }), method(object({
|
|
24350
24456
|
steps: array(PipelineStepInputSchema).min(1),
|
|
24351
24457
|
frames: array(FrameInputSchema).min(1).max(255),
|
|
@@ -24870,6 +24976,22 @@ var MotionSourceEnum = _enum([
|
|
|
24870
24976
|
"device-activity"
|
|
24871
24977
|
]);
|
|
24872
24978
|
/**
|
|
24979
|
+
* What opened an on-motion detection SESSION: the motion source that passed the
|
|
24980
|
+
* camera's `motionSources` gate, and what raised it (the camera itself, or a
|
|
24981
|
+
* sensor the operator attached — D672). `sensorName` is the attached sensor's
|
|
24982
|
+
* device name as the orchestrator's camera-sensors resolution last read it;
|
|
24983
|
+
* absent when unknown or when the camera itself triggered.
|
|
24984
|
+
*
|
|
24985
|
+
* Carried on the session attach ONLY so the runner's `DetectionPhaseTransition`
|
|
24986
|
+
* can say what started the session (D672 rule 11, amended 2026-10-06). The
|
|
24987
|
+
* runner never decides anything on it.
|
|
24988
|
+
*/
|
|
24989
|
+
var SessionTriggerSchema = object({
|
|
24990
|
+
source: MotionSourceEnum,
|
|
24991
|
+
triggeredBy: MotionTriggeredBySchema,
|
|
24992
|
+
sensorName: string().optional()
|
|
24993
|
+
});
|
|
24994
|
+
/**
|
|
24873
24995
|
* List of motion sources active on a camera. Empty array is valid:
|
|
24874
24996
|
* "no source" — happens for battery cams without firmware motion when
|
|
24875
24997
|
* the operator hasn't opted into the SW analyzer (would hold the
|
|
@@ -25121,6 +25243,14 @@ var RunnerCameraConfigSchema = object({
|
|
|
25121
25243
|
*/
|
|
25122
25244
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
25123
25245
|
/**
|
|
25246
|
+
* What opened this attach, on a SESSION attach only (see
|
|
25247
|
+
* {@link SessionTriggerSchema}). OPTIONAL with no default: absent on a
|
|
25248
|
+
* standing attach, an occupancy burst, a re-dispatch with no motion event
|
|
25249
|
+
* behind it, and every attach from an orchestrator older than the field — the
|
|
25250
|
+
* runner then names no source on the phase event.
|
|
25251
|
+
*/
|
|
25252
|
+
sessionTrigger: SessionTriggerSchema.optional(),
|
|
25253
|
+
/**
|
|
25124
25254
|
* WHICH root detector runs for this camera. The detection counterpart of
|
|
25125
25255
|
* {@link motionSources}, same shape and same discipline: a per-camera list
|
|
25126
25256
|
* of sources the system understands, vendor-agnostic, owned here.
|
|
@@ -25423,7 +25553,22 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
|
|
|
25423
25553
|
*/
|
|
25424
25554
|
cropJpeg: string().optional(),
|
|
25425
25555
|
parent: DetailParentSchema,
|
|
25426
|
-
steps: array(string()).optional()
|
|
25556
|
+
steps: array(string()).optional(),
|
|
25557
|
+
/**
|
|
25558
|
+
* The camera's root model already drew this step's boxes (D730): a
|
|
25559
|
+
* `license_plate` inside the parent vehicle. The named step is NOT
|
|
25560
|
+
* inferred — these FRAME-space boxes are its output — and its
|
|
25561
|
+
* requested children (the plate reader) run on them. Absent ⇒ every
|
|
25562
|
+
* requested step infers as before.
|
|
25563
|
+
*/
|
|
25564
|
+
supplied: object({
|
|
25565
|
+
stepId: string(),
|
|
25566
|
+
modelId: string(),
|
|
25567
|
+
boxes: array(object({
|
|
25568
|
+
bbox: NativeCropBboxSchema,
|
|
25569
|
+
score: number()
|
|
25570
|
+
})).min(1)
|
|
25571
|
+
}).optional()
|
|
25427
25572
|
}), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" }), method(object({
|
|
25428
25573
|
/** Catalog step id, e.g. `clip-embedding`. */
|
|
25429
25574
|
stepId: string(),
|
|
@@ -31573,7 +31718,7 @@ var LocalInterfaceSchema = object({
|
|
|
31573
31718
|
name: string(),
|
|
31574
31719
|
family: _enum(["IPv4", "IPv6"]),
|
|
31575
31720
|
address: string(),
|
|
31576
|
-
/** CIDR shorthand (e.g. `192.168.
|
|
31721
|
+
/** CIDR shorthand (e.g. `192.168.10.10/24`). Empty when OS doesn't expose. */
|
|
31577
31722
|
cidr: string(),
|
|
31578
31723
|
/** OS netmask. Stable across calls so the SDK can hash on it. */
|
|
31579
31724
|
netmask: string(),
|
|
@@ -31627,7 +31772,8 @@ var ConnectionEndpointSchema = object({
|
|
|
31627
31772
|
"lan-ipv4",
|
|
31628
31773
|
"lan-ipv6",
|
|
31629
31774
|
"public",
|
|
31630
|
-
"loopback"
|
|
31775
|
+
"loopback",
|
|
31776
|
+
"app-link"
|
|
31631
31777
|
]),
|
|
31632
31778
|
/**
|
|
31633
31779
|
* Originating-interface kind — `lan`/`wifi`/`docker`/`vpn`/`other`/
|
|
@@ -31696,15 +31842,27 @@ var GetConnectionEndpointsResultSchema = object({
|
|
|
31696
31842
|
localPort: AdvertisedLocalPortSchema
|
|
31697
31843
|
});
|
|
31698
31844
|
/**
|
|
31699
|
-
* The
|
|
31700
|
-
*
|
|
31701
|
-
*
|
|
31845
|
+
* The address flagged for notification links. `baseUrl: null` = AUTO, which
|
|
31846
|
+
* since D709 is the CamStack app link; `resolved` reports the effective value,
|
|
31847
|
+
* so the UI can show it either way.
|
|
31702
31848
|
*/
|
|
31703
31849
|
var NotificationEndpointSchema = object({
|
|
31704
31850
|
/** The operator's explicit choice, or null for AUTO. */
|
|
31705
31851
|
baseUrl: string().nullable(),
|
|
31706
|
-
/**
|
|
31707
|
-
|
|
31852
|
+
/**
|
|
31853
|
+
* The effective flagged address: the explicit choice, else (AUTO) the
|
|
31854
|
+
* CamStack app link `https://camstack.zentik.app` (D709). A pre-D709 hub
|
|
31855
|
+
* answered the public tunnel / mesh here, or null.
|
|
31856
|
+
*/
|
|
31857
|
+
resolved: string().nullable(),
|
|
31858
|
+
/**
|
|
31859
|
+
* The hub origin an app link carries as `hub=` (D709): the hub's best
|
|
31860
|
+
* public HTTPS address — the tunnel, then the mesh (Tailscale MagicDNS) —
|
|
31861
|
+
* picked from this cap's own palette by `pickAppLinkHub`. `null` when the
|
|
31862
|
+
* hub advertises neither; the app link is then minted without `hub=`.
|
|
31863
|
+
* Absent on a pre-D709 hub.
|
|
31864
|
+
*/
|
|
31865
|
+
appLinkHub: string().nullable()
|
|
31708
31866
|
});
|
|
31709
31867
|
/**
|
|
31710
31868
|
* The URLs the SDK / viewer should race for API access. `baseUrls` empty =
|
|
@@ -31717,6 +31875,27 @@ var ViewerEndpointsSchema = object({
|
|
|
31717
31875
|
/** What the ranking currently resolves to (may be empty if nothing is up). */
|
|
31718
31876
|
resolved: array(string()).readonly()
|
|
31719
31877
|
});
|
|
31878
|
+
/**
|
|
31879
|
+
* One audience's hub address (see `hub-address.ts`): the operator's stored
|
|
31880
|
+
* override, the address in use, and where it came from.
|
|
31881
|
+
*/
|
|
31882
|
+
var HubAddressSnapshotSchema = object({
|
|
31883
|
+
/** The operator's override, or null for automatic. */
|
|
31884
|
+
override: string().nullable(),
|
|
31885
|
+
/** The address in use, or null when nothing qualifies (never loopback). */
|
|
31886
|
+
resolved: string().nullable(),
|
|
31887
|
+
source: _enum([
|
|
31888
|
+
"override",
|
|
31889
|
+
"auto",
|
|
31890
|
+
"none"
|
|
31891
|
+
])
|
|
31892
|
+
});
|
|
31893
|
+
var HubAddressesSchema = object({
|
|
31894
|
+
/** "Hub address for agents" — agents' bundle/model pulls, LAN devices. */
|
|
31895
|
+
cluster: HubAddressSnapshotSchema,
|
|
31896
|
+
/** "Public address for sign-in links" — e-mail links, OIDC, WebAuthn, OAuth2. */
|
|
31897
|
+
browser: HubAddressSnapshotSchema
|
|
31898
|
+
});
|
|
31720
31899
|
var AllowedAddressesSchema = object({
|
|
31721
31900
|
/**
|
|
31722
31901
|
* Allowlist of interface addresses operators have explicitly opted
|
|
@@ -31758,8 +31937,18 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
|
|
|
31758
31937
|
* Pass `'https'` when the caller is itself loaded over HTTPS
|
|
31759
31938
|
* to avoid mixed-content blocks in the browser. The public
|
|
31760
31939
|
* tunnel always emits `https://` regardless. */
|
|
31761
|
-
scheme: _enum(["http", "https"]).optional()
|
|
31762
|
-
|
|
31940
|
+
scheme: _enum(["http", "https"]).optional(),
|
|
31941
|
+
/** Append the CamStack app link entry (`kind: 'app-link'`, D709) —
|
|
31942
|
+
* an address notification links can be flagged with, not a hub
|
|
31943
|
+
* route. Default `false`: racers and rankers never see it. */
|
|
31944
|
+
includeAppLink: boolean().optional()
|
|
31945
|
+
}), GetConnectionEndpointsResultSchema), method(_void(), NotificationEndpointSchema), method(object({ baseUrl: string().nullable() }), NotificationEndpointSchema, { kind: "mutation" }), method(_void(), ViewerEndpointsSchema), method(object({ baseUrls: array(string()).readonly() }), ViewerEndpointsSchema, { kind: "mutation" }), method(_void(), HubAddressesSchema), method(object({
|
|
31946
|
+
audience: _enum(["cluster", "browser"]),
|
|
31947
|
+
baseUrl: string().nullable()
|
|
31948
|
+
}), HubAddressesSchema, {
|
|
31949
|
+
kind: "mutation",
|
|
31950
|
+
auth: "admin"
|
|
31951
|
+
}), method(_void(), AllowedAddressesSchema), method(AllowedAddressesSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), AllowedAddressesSchema, { kind: "mutation" }), method(_void(), TlsStatusSchema), method(object({ reason: string().optional() }), TlsStatusSchema, {
|
|
31763
31952
|
kind: "mutation",
|
|
31764
31953
|
auth: "admin"
|
|
31765
31954
|
}), method(object({
|
|
@@ -32019,7 +32208,7 @@ var MeshPeerSchema = object({
|
|
|
32019
32208
|
tags: array(string()).readonly(),
|
|
32020
32209
|
/** True when the peer advertises itself as an exit-node candidate. */
|
|
32021
32210
|
exitNodeOption: boolean(),
|
|
32022
|
-
/** Subnet routes the peer advertises (e.g. `["192.168.
|
|
32211
|
+
/** Subnet routes the peer advertises (e.g. `["192.168.10.0/24"]`). */
|
|
32023
32212
|
advertisedRoutes: array(string()).readonly(),
|
|
32024
32213
|
/** Owner account login (e.g. `foo@example.com`). Null for tagged peers. */
|
|
32025
32214
|
userLogin: string().nullable(),
|
|
@@ -32149,7 +32338,8 @@ var MotionStatusSchema = object({
|
|
|
32149
32338
|
* writes this slice (not even a boot seed), and neither does the runner's
|
|
32150
32339
|
* phase machine: its phase is "a session is attached" for every on-motion
|
|
32151
32340
|
* session, not motion, and it now has its own `DetectionPhaseTransition`.
|
|
32152
|
-
* A provider's `isDetected`
|
|
32341
|
+
* A provider's `isDetected` and `getStatus` answer from the hub's slice
|
|
32342
|
+
* (`hubMotionNativeProvider`).
|
|
32153
32343
|
* - **Sensors** (Home Assistant binary sensors, Homematic, Matter, Alexa
|
|
32154
32344
|
* imports) — the provider pushes both edges itself, from the upstream
|
|
32155
32345
|
* system's own state change. That is the sensor's own fact.
|
|
@@ -40251,6 +40441,12 @@ Object.freeze({
|
|
|
40251
40441
|
addonId: null,
|
|
40252
40442
|
access: "view"
|
|
40253
40443
|
},
|
|
40444
|
+
"localNetwork.getHubAddresses": {
|
|
40445
|
+
capName: "local-network",
|
|
40446
|
+
capScope: "system",
|
|
40447
|
+
addonId: null,
|
|
40448
|
+
access: "view"
|
|
40449
|
+
},
|
|
40254
40450
|
"localNetwork.getNotificationEndpoint": {
|
|
40255
40451
|
capName: "local-network",
|
|
40256
40452
|
capScope: "system",
|
|
@@ -40305,6 +40501,12 @@ Object.freeze({
|
|
|
40305
40501
|
addonId: null,
|
|
40306
40502
|
access: "create"
|
|
40307
40503
|
},
|
|
40504
|
+
"localNetwork.setHubAddress": {
|
|
40505
|
+
capName: "local-network",
|
|
40506
|
+
capScope: "system",
|
|
40507
|
+
addonId: null,
|
|
40508
|
+
access: "create"
|
|
40509
|
+
},
|
|
40308
40510
|
"localNetwork.setNotificationEndpoint": {
|
|
40309
40511
|
capName: "local-network",
|
|
40310
40512
|
capScope: "system",
|
|
@@ -48704,6 +48906,8 @@ new Map(Object.entries({
|
|
|
48704
48906
|
"detection-blind": "device-events",
|
|
48705
48907
|
"node-online": "system",
|
|
48706
48908
|
"node-offline": "system",
|
|
48909
|
+
"node-restarting": "system",
|
|
48910
|
+
"node-updating": "system",
|
|
48707
48911
|
"node-inference-unavailable": "system",
|
|
48708
48912
|
"addon-crash-loop": "system",
|
|
48709
48913
|
"addon-update-available": "system",
|
|
@@ -48781,18 +48985,21 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
48781
48985
|
kinds: [
|
|
48782
48986
|
"node-offline",
|
|
48783
48987
|
"node-online",
|
|
48988
|
+
"node-restarting",
|
|
48784
48989
|
"node-inference-unavailable"
|
|
48785
48990
|
]
|
|
48786
48991
|
},
|
|
48787
48992
|
{
|
|
48788
48993
|
id: "addons",
|
|
48789
48994
|
family: "system",
|
|
48790
|
-
label: "Addons",
|
|
48791
|
-
kinds: [
|
|
48792
|
-
|
|
48793
|
-
|
|
48794
|
-
|
|
48795
|
-
|
|
48995
|
+
label: "Addons stopped",
|
|
48996
|
+
kinds: ["addon-crash-loop"]
|
|
48997
|
+
},
|
|
48998
|
+
{
|
|
48999
|
+
id: "addon-updates",
|
|
49000
|
+
family: "system",
|
|
49001
|
+
label: "Addon updates",
|
|
49002
|
+
kinds: ["addon-update-available", "addon-updated"]
|
|
48796
49003
|
},
|
|
48797
49004
|
{
|
|
48798
49005
|
id: "updates",
|
|
@@ -48800,6 +49007,7 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
48800
49007
|
label: "Server & container updates",
|
|
48801
49008
|
kinds: [
|
|
48802
49009
|
"server-update-available",
|
|
49010
|
+
"node-updating",
|
|
48803
49011
|
"server-updated",
|
|
48804
49012
|
"wrapper-update-available"
|
|
48805
49013
|
]
|
|
@@ -48947,18 +49155,21 @@ var STATE_SUMMARY_SECTION_VARS = [
|
|
|
48947
49155
|
kinds: [
|
|
48948
49156
|
"node-offline",
|
|
48949
49157
|
"node-online",
|
|
49158
|
+
"node-restarting",
|
|
48950
49159
|
"node-inference-unavailable"
|
|
48951
49160
|
]
|
|
48952
49161
|
},
|
|
48953
49162
|
{
|
|
48954
49163
|
name: "summaryAddons",
|
|
48955
|
-
label: "Summary: addons",
|
|
48956
|
-
example: "
|
|
48957
|
-
kinds: [
|
|
48958
|
-
|
|
48959
|
-
|
|
48960
|
-
|
|
48961
|
-
|
|
49164
|
+
label: "Summary: addons stopped",
|
|
49165
|
+
example: "hub — recorder stopped after repeated crashes",
|
|
49166
|
+
kinds: ["addon-crash-loop"]
|
|
49167
|
+
},
|
|
49168
|
+
{
|
|
49169
|
+
name: "summaryAddonUpdates",
|
|
49170
|
+
label: "Summary: addon updates",
|
|
49171
|
+
example: "hub:\n• @camstack/addon-recorder 1.2.3 → 1.2.4",
|
|
49172
|
+
kinds: ["addon-update-available", "addon-updated"]
|
|
48962
49173
|
},
|
|
48963
49174
|
{
|
|
48964
49175
|
name: "summaryUpdates",
|
|
@@ -48966,6 +49177,7 @@ var STATE_SUMMARY_SECTION_VARS = [
|
|
|
48966
49177
|
example: "server 1.2.377 → 1.2.378",
|
|
48967
49178
|
kinds: [
|
|
48968
49179
|
"server-update-available",
|
|
49180
|
+
"node-updating",
|
|
48969
49181
|
"server-updated",
|
|
48970
49182
|
"wrapper-update-available"
|
|
48971
49183
|
]
|
|
@@ -48998,7 +49210,7 @@ var STATE_SUMMARY_VARS = [
|
|
|
48998
49210
|
{
|
|
48999
49211
|
name: "summarySection",
|
|
49000
49212
|
label: "Summary: this section",
|
|
49001
|
-
description: "The section a per-section summary row is about
|
|
49213
|
+
description: "The section a per-section summary row is about; on a summary sent as one message, every section it reports, comma-separated.",
|
|
49002
49214
|
example: "Batterie scariche",
|
|
49003
49215
|
group: "system",
|
|
49004
49216
|
families: ["rule"],
|
|
@@ -49042,6 +49254,7 @@ var STATE_SUMMARY_VARS = [
|
|
|
49042
49254
|
[...RULE_BODY_ONLY],
|
|
49043
49255
|
[...RULE_TEXT],
|
|
49044
49256
|
([...RULE_TEXT], [...DEVICE_EVENTS]),
|
|
49257
|
+
([...RULE_TEXT], [...COMBINED_ALARM]),
|
|
49045
49258
|
([...RULE_TEXT], [...DEVICE_EVENTS]),
|
|
49046
49259
|
([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
|
|
49047
49260
|
([...RULE_TEXT], [...CONSUMABLE]),
|
|
@@ -96690,7 +96903,7 @@ function createBoundedFfmpegRunner(input) {
|
|
|
96690
96903
|
code: null,
|
|
96691
96904
|
timedOut: false,
|
|
96692
96905
|
spawnFailed: true,
|
|
96693
|
-
stderr: `no pinned ffmpeg on this node
|
|
96906
|
+
stderr: `no pinned ffmpeg on this node: ${err instanceof Error ? err.message : String(err)}`
|
|
96694
96907
|
};
|
|
96695
96908
|
}
|
|
96696
96909
|
return await new Promise((resolve) => {
|
|
@@ -11378,6 +11378,15 @@ var ClipSearchStrictnessSchema = _enum([
|
|
|
11378
11378
|
"balanced",
|
|
11379
11379
|
"strict"
|
|
11380
11380
|
]);
|
|
11381
|
+
/** Steps whose effect a root label can BE. */
|
|
11382
|
+
var LABEL_SUPPLY_STEP_IDS = [
|
|
11383
|
+
"animal-classifier",
|
|
11384
|
+
"vehicle-classifier",
|
|
11385
|
+
"package-detection"
|
|
11386
|
+
];
|
|
11387
|
+
/** Steps whose box a root detection can BE. */
|
|
11388
|
+
var CROP_SUPPLY_STEP_IDS = ["plate-detection", "face-detection"];
|
|
11389
|
+
[...LABEL_SUPPLY_STEP_IDS, ...CROP_SUPPLY_STEP_IDS];
|
|
11381
11390
|
var MODEL_FORMATS = [
|
|
11382
11391
|
"onnx",
|
|
11383
11392
|
"coreml",
|
|
@@ -11510,6 +11519,35 @@ var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { wei
|
|
|
11510
11519
|
/** True when the weights or their data forbid commercial use. */
|
|
11511
11520
|
nonCommercial: boolean().optional()
|
|
11512
11521
|
}));
|
|
11522
|
+
/**
|
|
11523
|
+
* One step a ROOT detector can supply from its own output (D730) — see
|
|
11524
|
+
* `ModelCatalogEntry.suppliesSteps`.
|
|
11525
|
+
*
|
|
11526
|
+
* - `label`: the root's raw class IS the step's answer. `labelToEffect` maps
|
|
11527
|
+
* the root's label to the step's vocabulary; `uncovered` is the vocabulary
|
|
11528
|
+
* the root cannot produce (shown as unavailable, never a blocker).
|
|
11529
|
+
* - `crop`: the root draws the box the step would have found (`license_plate`
|
|
11530
|
+
* for plate-detection, `face` for face-detection). The box becomes a detail
|
|
11531
|
+
* child of the `parentMacro` detection that contains it — never a track.
|
|
11532
|
+
*/
|
|
11533
|
+
var RootStepSupplySchema = discriminatedUnion("kind", [object({
|
|
11534
|
+
kind: literal("label"),
|
|
11535
|
+
stepId: _enum(LABEL_SUPPLY_STEP_IDS),
|
|
11536
|
+
labelToEffect: record(string(), string()),
|
|
11537
|
+
uncovered: array(string()).readonly()
|
|
11538
|
+
}), object({
|
|
11539
|
+
kind: literal("crop"),
|
|
11540
|
+
stepId: _enum(CROP_SUPPLY_STEP_IDS),
|
|
11541
|
+
rootLabels: array(string()).readonly(),
|
|
11542
|
+
parentMacro: _enum(["vehicle", "person"]),
|
|
11543
|
+
childClass: _enum(["plate", "face"]),
|
|
11544
|
+
/**
|
|
11545
|
+
* The root's smaller input side, stamped on read by `rootSuppliesOf` from
|
|
11546
|
+
* the model entry — what a step's `minRootInputPx` gate judges. Never
|
|
11547
|
+
* stored by an import.
|
|
11548
|
+
*/
|
|
11549
|
+
rootInputPx: number().int().positive().optional()
|
|
11550
|
+
})]);
|
|
11513
11551
|
var ModelCatalogEntrySchema = object({
|
|
11514
11552
|
id: string(),
|
|
11515
11553
|
name: string(),
|
|
@@ -11636,6 +11674,16 @@ var ModelCatalogEntrySchema = object({
|
|
|
11636
11674
|
*/
|
|
11637
11675
|
classMap: DetectionCatalogClassMapSchema.optional(),
|
|
11638
11676
|
/**
|
|
11677
|
+
* The pipeline steps this ROOT detector can supply from its own output
|
|
11678
|
+
* (D730): its labels name a step's effect (`deer` for `animal-classifier`)
|
|
11679
|
+
* or draw a step's box (`license_plate` for `plate-detection`). Computed at
|
|
11680
|
+
* import from THIS model's labelmap by `deriveRootSupplies`, never written
|
|
11681
|
+
* by hand and never assumed per family; a row without it is derived on read
|
|
11682
|
+
* (`rootSuppliesOf`). Whether a camera uses it is the step's own
|
|
11683
|
+
* `useRootModel` flag (`resolveRootSupply`).
|
|
11684
|
+
*/
|
|
11685
|
+
suppliesSteps: array(RootStepSupplySchema).readonly().optional(),
|
|
11686
|
+
/**
|
|
11639
11687
|
* The model's CLIP feature-space contract (text encoder, dimension, vector
|
|
11640
11688
|
* index, token window, search floor) — see `clip-model.ts`. Present ONLY on a
|
|
11641
11689
|
* CLIP image encoder; its absence is what "not a CLIP model" means to the
|
|
@@ -15062,7 +15110,7 @@ DeviceType.Camera;
|
|
|
15062
15110
|
* This matters here more than anywhere else in the repo, because every provider
|
|
15063
15111
|
* that knows a device's host knows its PASSWORD too: `{ host, port, username,
|
|
15064
15112
|
* password }` sit in one object on Hikvision, Amcrest, Reolink and ONVIF alike,
|
|
15065
|
-
* and `http://admin:hunter2@192.168.
|
|
15113
|
+
* and `http://admin:hunter2@192.168.60.139/` is a URL a browser accepts. The
|
|
15066
15114
|
* camera's own page will ask for its own login. That is correct, and pre-
|
|
15067
15115
|
* filling it is the operator's business, not ours.
|
|
15068
15116
|
*
|
|
@@ -19439,6 +19487,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
19439
19487
|
"stream-offline",
|
|
19440
19488
|
"node-online",
|
|
19441
19489
|
"node-offline",
|
|
19490
|
+
"node-restarting",
|
|
19491
|
+
"node-updating",
|
|
19442
19492
|
"node-inference-unavailable",
|
|
19443
19493
|
"detection-blind",
|
|
19444
19494
|
"addon-crash-loop",
|
|
@@ -20537,8 +20587,9 @@ var NcRuleSchema = NcRuleInputSchema.extend({
|
|
|
20537
20587
|
disabledTargetIds: array(string()).default([])
|
|
20538
20588
|
});
|
|
20539
20589
|
/**
|
|
20540
|
-
* The state-summary SECTIONS (D647 / D698): the D637 kind groups that
|
|
20541
|
-
* still-true state. `
|
|
20590
|
+
* The state-summary SECTIONS (D647 / D698 / D708): the D637 kind groups that
|
|
20591
|
+
* report a still-true state. `addons` is the crash-looped addons only and
|
|
20592
|
+
* `addon-updates` the addons that are behind (D708 split them). `backups-exports` and `alarm` are not sections — a completed
|
|
20542
20593
|
* job is not an open state, and the alarm stays instant.
|
|
20543
20594
|
*/
|
|
20544
20595
|
var NcStateSummarySectionIdSchema = _enum([
|
|
@@ -20550,6 +20601,7 @@ var NcStateSummarySectionIdSchema = _enum([
|
|
|
20550
20601
|
"detection-blind",
|
|
20551
20602
|
"nodes",
|
|
20552
20603
|
"addons",
|
|
20604
|
+
"addon-updates",
|
|
20553
20605
|
"updates"
|
|
20554
20606
|
]);
|
|
20555
20607
|
/** One section of a previewed state summary. `unavailable` = its state could not be read. */
|
|
@@ -21030,7 +21082,19 @@ var NcAlarmModeDelaysListSchema = array(object({
|
|
|
21030
21082
|
* When this mode may be armed. Absent / null = always allowed (same as a
|
|
21031
21083
|
* rule with no `schedule`). Evaluated with {@link isScheduleActive}.
|
|
21032
21084
|
*/
|
|
21033
|
-
schedule: NcScheduleSchema.optional()
|
|
21085
|
+
schedule: NcScheduleSchema.optional(),
|
|
21086
|
+
/**
|
|
21087
|
+
* D706: while this mode's ENTRY DELAY runs, do the alarm rules' own pushes go out (as an
|
|
21088
|
+
* intrusion naming the locations)? Absent = false — the entry-delay notification is the
|
|
21089
|
+
* only one, and the matches ride the triggered notification's mosaic (D705).
|
|
21090
|
+
*/
|
|
21091
|
+
notifyDuringEntryDelay: boolean().optional(),
|
|
21092
|
+
/**
|
|
21093
|
+
* D706: notify "watched again" when a sensor this arm bypassed closes and opens again.
|
|
21094
|
+
* Absent = false (logged, not sent). Even when true it is not sent when that same sensor
|
|
21095
|
+
* is the one that starts the entry delay — the entry-delay notification already names it.
|
|
21096
|
+
*/
|
|
21097
|
+
notifySensorRewatched: boolean().optional()
|
|
21034
21098
|
})).max(8).refine(uniqueModes, { message: "modeDelays: at most one entry per arm mode" });
|
|
21035
21099
|
var NcAlarmModeDelaysEditListSchema = array(object({
|
|
21036
21100
|
mode: AlarmArmModeSchema,
|
|
@@ -21039,7 +21103,11 @@ var NcAlarmModeDelaysEditListSchema = array(object({
|
|
|
21039
21103
|
triggeredDurationSec: NcAlarmTriggeredSecSchema.nullable().optional(),
|
|
21040
21104
|
postTriggeredAction: NcAlarmPostTriggeredActionSchema.nullable().optional(),
|
|
21041
21105
|
/** Set a schedule, or `null` to clear (mode always allowed again). */
|
|
21042
|
-
schedule: NcScheduleSchema.nullable().optional()
|
|
21106
|
+
schedule: NcScheduleSchema.nullable().optional(),
|
|
21107
|
+
/** D706: set the switch, or `null` to clear it (back to the default, false). */
|
|
21108
|
+
notifyDuringEntryDelay: boolean().nullable().optional(),
|
|
21109
|
+
/** D706: set the switch, or `null` to clear it (back to the default, false). */
|
|
21110
|
+
notifySensorRewatched: boolean().nullable().optional()
|
|
21043
21111
|
})).max(8).refine(uniqueModes, { message: "modeDelays: at most one edit per arm mode" });
|
|
21044
21112
|
/** One switch of the alarm table: put ONE device on, or take it off, ONE mode's list. */
|
|
21045
21113
|
var NcAlarmNonBlockingEditSchema = object({
|
|
@@ -23938,6 +24006,34 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
23938
24006
|
timestamp: number()
|
|
23939
24007
|
});
|
|
23940
24008
|
/**
|
|
24009
|
+
* A root model's boxes standing in for one crop-kind step's own inference
|
|
24010
|
+
* (D730) — see `runPipeline.suppliedRoot`.
|
|
24011
|
+
*/
|
|
24012
|
+
var SuppliedRootOutputSchema = object({
|
|
24013
|
+
stepId: string(),
|
|
24014
|
+
/** The root model that drew the boxes — stamped on the result. */
|
|
24015
|
+
modelId: string(),
|
|
24016
|
+
detections: array(object({
|
|
24017
|
+
/** `[x1, y1, x2, y2]` in the pixels of the call's image. */
|
|
24018
|
+
bbox: tuple([
|
|
24019
|
+
number(),
|
|
24020
|
+
number(),
|
|
24021
|
+
number(),
|
|
24022
|
+
number()
|
|
24023
|
+
]),
|
|
24024
|
+
score: number(),
|
|
24025
|
+
/**
|
|
24026
|
+
* Five facial landmarks in the same pixels — a face the step's own
|
|
24027
|
+
* detector already re-found inside a root face box (D730), so its
|
|
24028
|
+
* embedder child aligns it exactly as it aligns any detected face.
|
|
24029
|
+
*/
|
|
24030
|
+
landmarks: array(object({
|
|
24031
|
+
x: number(),
|
|
24032
|
+
y: number()
|
|
24033
|
+
})).optional()
|
|
24034
|
+
})).min(1)
|
|
24035
|
+
});
|
|
24036
|
+
/**
|
|
23941
24037
|
* Reference to the frame's retained NATIVE surface + the parent crop's placement
|
|
23942
24038
|
* within the frame, so the executor can re-cut a leaf child ROI at native
|
|
23943
24039
|
* resolution on the detail plane. See the `runPipeline` `nativeCropRef` field.
|
|
@@ -24067,7 +24163,8 @@ var PipelineModelOptionSchema = object({
|
|
|
24067
24163
|
group: ModelVariantGroupSchema.optional(),
|
|
24068
24164
|
legacy: boolean().optional(),
|
|
24069
24165
|
provider: ModelProviderIdSchema.optional(),
|
|
24070
|
-
defaultConfidence: number().optional()
|
|
24166
|
+
defaultConfidence: number().optional(),
|
|
24167
|
+
suppliesSteps: array(RootStepSupplySchema).readonly().optional()
|
|
24071
24168
|
});
|
|
24072
24169
|
var ConfigFieldBridge = custom();
|
|
24073
24170
|
var PipelineAddonSchemaSchema = object({
|
|
@@ -24335,7 +24432,16 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
24335
24432
|
* `device-not-servable`), and nothing reaches the camera's live
|
|
24336
24433
|
* trace stream. Absent ⇒ unchanged behaviour.
|
|
24337
24434
|
*/
|
|
24338
|
-
replay: literal(true).optional()
|
|
24435
|
+
replay: literal(true).optional(),
|
|
24436
|
+
/**
|
|
24437
|
+
* Root-supplied detections for the tree's ROOT step (D730). Set by
|
|
24438
|
+
* `runDetailSubtree` when the camera's root model supplies a crop-kind
|
|
24439
|
+
* step (a Frigate+ `license_plate` for `plate-detection`): the step is
|
|
24440
|
+
* NOT inferred, these boxes are its output, and its children (the plate
|
|
24441
|
+
* reader) run on them through their own crop policy. Boxes are in the
|
|
24442
|
+
* PIXELS of the image this call carries. Absent ⇒ the root step runs.
|
|
24443
|
+
*/
|
|
24444
|
+
suppliedRoot: SuppliedRootOutputSchema.optional()
|
|
24339
24445
|
}), PipelineRunResultBridge, { kind: "mutation" }), method(object({
|
|
24340
24446
|
steps: array(PipelineStepInputSchema).min(1),
|
|
24341
24447
|
frames: array(FrameInputSchema).min(1).max(255),
|
|
@@ -24860,6 +24966,22 @@ var MotionSourceEnum = _enum([
|
|
|
24860
24966
|
"device-activity"
|
|
24861
24967
|
]);
|
|
24862
24968
|
/**
|
|
24969
|
+
* What opened an on-motion detection SESSION: the motion source that passed the
|
|
24970
|
+
* camera's `motionSources` gate, and what raised it (the camera itself, or a
|
|
24971
|
+
* sensor the operator attached — D672). `sensorName` is the attached sensor's
|
|
24972
|
+
* device name as the orchestrator's camera-sensors resolution last read it;
|
|
24973
|
+
* absent when unknown or when the camera itself triggered.
|
|
24974
|
+
*
|
|
24975
|
+
* Carried on the session attach ONLY so the runner's `DetectionPhaseTransition`
|
|
24976
|
+
* can say what started the session (D672 rule 11, amended 2026-10-06). The
|
|
24977
|
+
* runner never decides anything on it.
|
|
24978
|
+
*/
|
|
24979
|
+
var SessionTriggerSchema = object({
|
|
24980
|
+
source: MotionSourceEnum,
|
|
24981
|
+
triggeredBy: MotionTriggeredBySchema,
|
|
24982
|
+
sensorName: string().optional()
|
|
24983
|
+
});
|
|
24984
|
+
/**
|
|
24863
24985
|
* List of motion sources active on a camera. Empty array is valid:
|
|
24864
24986
|
* "no source" — happens for battery cams without firmware motion when
|
|
24865
24987
|
* the operator hasn't opted into the SW analyzer (would hold the
|
|
@@ -25111,6 +25233,14 @@ var RunnerCameraConfigSchema = object({
|
|
|
25111
25233
|
*/
|
|
25112
25234
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
25113
25235
|
/**
|
|
25236
|
+
* What opened this attach, on a SESSION attach only (see
|
|
25237
|
+
* {@link SessionTriggerSchema}). OPTIONAL with no default: absent on a
|
|
25238
|
+
* standing attach, an occupancy burst, a re-dispatch with no motion event
|
|
25239
|
+
* behind it, and every attach from an orchestrator older than the field — the
|
|
25240
|
+
* runner then names no source on the phase event.
|
|
25241
|
+
*/
|
|
25242
|
+
sessionTrigger: SessionTriggerSchema.optional(),
|
|
25243
|
+
/**
|
|
25114
25244
|
* WHICH root detector runs for this camera. The detection counterpart of
|
|
25115
25245
|
* {@link motionSources}, same shape and same discipline: a per-camera list
|
|
25116
25246
|
* of sources the system understands, vendor-agnostic, owned here.
|
|
@@ -25413,7 +25543,22 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
|
|
|
25413
25543
|
*/
|
|
25414
25544
|
cropJpeg: string().optional(),
|
|
25415
25545
|
parent: DetailParentSchema,
|
|
25416
|
-
steps: array(string()).optional()
|
|
25546
|
+
steps: array(string()).optional(),
|
|
25547
|
+
/**
|
|
25548
|
+
* The camera's root model already drew this step's boxes (D730): a
|
|
25549
|
+
* `license_plate` inside the parent vehicle. The named step is NOT
|
|
25550
|
+
* inferred — these FRAME-space boxes are its output — and its
|
|
25551
|
+
* requested children (the plate reader) run on them. Absent ⇒ every
|
|
25552
|
+
* requested step infers as before.
|
|
25553
|
+
*/
|
|
25554
|
+
supplied: object({
|
|
25555
|
+
stepId: string(),
|
|
25556
|
+
modelId: string(),
|
|
25557
|
+
boxes: array(object({
|
|
25558
|
+
bbox: NativeCropBboxSchema,
|
|
25559
|
+
score: number()
|
|
25560
|
+
})).min(1)
|
|
25561
|
+
}).optional()
|
|
25417
25562
|
}), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" }), method(object({
|
|
25418
25563
|
/** Catalog step id, e.g. `clip-embedding`. */
|
|
25419
25564
|
stepId: string(),
|
|
@@ -31563,7 +31708,7 @@ var LocalInterfaceSchema = object({
|
|
|
31563
31708
|
name: string(),
|
|
31564
31709
|
family: _enum(["IPv4", "IPv6"]),
|
|
31565
31710
|
address: string(),
|
|
31566
|
-
/** CIDR shorthand (e.g. `192.168.
|
|
31711
|
+
/** CIDR shorthand (e.g. `192.168.10.10/24`). Empty when OS doesn't expose. */
|
|
31567
31712
|
cidr: string(),
|
|
31568
31713
|
/** OS netmask. Stable across calls so the SDK can hash on it. */
|
|
31569
31714
|
netmask: string(),
|
|
@@ -31617,7 +31762,8 @@ var ConnectionEndpointSchema = object({
|
|
|
31617
31762
|
"lan-ipv4",
|
|
31618
31763
|
"lan-ipv6",
|
|
31619
31764
|
"public",
|
|
31620
|
-
"loopback"
|
|
31765
|
+
"loopback",
|
|
31766
|
+
"app-link"
|
|
31621
31767
|
]),
|
|
31622
31768
|
/**
|
|
31623
31769
|
* Originating-interface kind — `lan`/`wifi`/`docker`/`vpn`/`other`/
|
|
@@ -31686,15 +31832,27 @@ var GetConnectionEndpointsResultSchema = object({
|
|
|
31686
31832
|
localPort: AdvertisedLocalPortSchema
|
|
31687
31833
|
});
|
|
31688
31834
|
/**
|
|
31689
|
-
* The
|
|
31690
|
-
*
|
|
31691
|
-
*
|
|
31835
|
+
* The address flagged for notification links. `baseUrl: null` = AUTO, which
|
|
31836
|
+
* since D709 is the CamStack app link; `resolved` reports the effective value,
|
|
31837
|
+
* so the UI can show it either way.
|
|
31692
31838
|
*/
|
|
31693
31839
|
var NotificationEndpointSchema = object({
|
|
31694
31840
|
/** The operator's explicit choice, or null for AUTO. */
|
|
31695
31841
|
baseUrl: string().nullable(),
|
|
31696
|
-
/**
|
|
31697
|
-
|
|
31842
|
+
/**
|
|
31843
|
+
* The effective flagged address: the explicit choice, else (AUTO) the
|
|
31844
|
+
* CamStack app link `https://camstack.zentik.app` (D709). A pre-D709 hub
|
|
31845
|
+
* answered the public tunnel / mesh here, or null.
|
|
31846
|
+
*/
|
|
31847
|
+
resolved: string().nullable(),
|
|
31848
|
+
/**
|
|
31849
|
+
* The hub origin an app link carries as `hub=` (D709): the hub's best
|
|
31850
|
+
* public HTTPS address — the tunnel, then the mesh (Tailscale MagicDNS) —
|
|
31851
|
+
* picked from this cap's own palette by `pickAppLinkHub`. `null` when the
|
|
31852
|
+
* hub advertises neither; the app link is then minted without `hub=`.
|
|
31853
|
+
* Absent on a pre-D709 hub.
|
|
31854
|
+
*/
|
|
31855
|
+
appLinkHub: string().nullable()
|
|
31698
31856
|
});
|
|
31699
31857
|
/**
|
|
31700
31858
|
* The URLs the SDK / viewer should race for API access. `baseUrls` empty =
|
|
@@ -31707,6 +31865,27 @@ var ViewerEndpointsSchema = object({
|
|
|
31707
31865
|
/** What the ranking currently resolves to (may be empty if nothing is up). */
|
|
31708
31866
|
resolved: array(string()).readonly()
|
|
31709
31867
|
});
|
|
31868
|
+
/**
|
|
31869
|
+
* One audience's hub address (see `hub-address.ts`): the operator's stored
|
|
31870
|
+
* override, the address in use, and where it came from.
|
|
31871
|
+
*/
|
|
31872
|
+
var HubAddressSnapshotSchema = object({
|
|
31873
|
+
/** The operator's override, or null for automatic. */
|
|
31874
|
+
override: string().nullable(),
|
|
31875
|
+
/** The address in use, or null when nothing qualifies (never loopback). */
|
|
31876
|
+
resolved: string().nullable(),
|
|
31877
|
+
source: _enum([
|
|
31878
|
+
"override",
|
|
31879
|
+
"auto",
|
|
31880
|
+
"none"
|
|
31881
|
+
])
|
|
31882
|
+
});
|
|
31883
|
+
var HubAddressesSchema = object({
|
|
31884
|
+
/** "Hub address for agents" — agents' bundle/model pulls, LAN devices. */
|
|
31885
|
+
cluster: HubAddressSnapshotSchema,
|
|
31886
|
+
/** "Public address for sign-in links" — e-mail links, OIDC, WebAuthn, OAuth2. */
|
|
31887
|
+
browser: HubAddressSnapshotSchema
|
|
31888
|
+
});
|
|
31710
31889
|
var AllowedAddressesSchema = object({
|
|
31711
31890
|
/**
|
|
31712
31891
|
* Allowlist of interface addresses operators have explicitly opted
|
|
@@ -31748,8 +31927,18 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
|
|
|
31748
31927
|
* Pass `'https'` when the caller is itself loaded over HTTPS
|
|
31749
31928
|
* to avoid mixed-content blocks in the browser. The public
|
|
31750
31929
|
* tunnel always emits `https://` regardless. */
|
|
31751
|
-
scheme: _enum(["http", "https"]).optional()
|
|
31752
|
-
|
|
31930
|
+
scheme: _enum(["http", "https"]).optional(),
|
|
31931
|
+
/** Append the CamStack app link entry (`kind: 'app-link'`, D709) —
|
|
31932
|
+
* an address notification links can be flagged with, not a hub
|
|
31933
|
+
* route. Default `false`: racers and rankers never see it. */
|
|
31934
|
+
includeAppLink: boolean().optional()
|
|
31935
|
+
}), GetConnectionEndpointsResultSchema), method(_void(), NotificationEndpointSchema), method(object({ baseUrl: string().nullable() }), NotificationEndpointSchema, { kind: "mutation" }), method(_void(), ViewerEndpointsSchema), method(object({ baseUrls: array(string()).readonly() }), ViewerEndpointsSchema, { kind: "mutation" }), method(_void(), HubAddressesSchema), method(object({
|
|
31936
|
+
audience: _enum(["cluster", "browser"]),
|
|
31937
|
+
baseUrl: string().nullable()
|
|
31938
|
+
}), HubAddressesSchema, {
|
|
31939
|
+
kind: "mutation",
|
|
31940
|
+
auth: "admin"
|
|
31941
|
+
}), method(_void(), AllowedAddressesSchema), method(AllowedAddressesSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), AllowedAddressesSchema, { kind: "mutation" }), method(_void(), TlsStatusSchema), method(object({ reason: string().optional() }), TlsStatusSchema, {
|
|
31753
31942
|
kind: "mutation",
|
|
31754
31943
|
auth: "admin"
|
|
31755
31944
|
}), method(object({
|
|
@@ -32009,7 +32198,7 @@ var MeshPeerSchema = object({
|
|
|
32009
32198
|
tags: array(string()).readonly(),
|
|
32010
32199
|
/** True when the peer advertises itself as an exit-node candidate. */
|
|
32011
32200
|
exitNodeOption: boolean(),
|
|
32012
|
-
/** Subnet routes the peer advertises (e.g. `["192.168.
|
|
32201
|
+
/** Subnet routes the peer advertises (e.g. `["192.168.10.0/24"]`). */
|
|
32013
32202
|
advertisedRoutes: array(string()).readonly(),
|
|
32014
32203
|
/** Owner account login (e.g. `foo@example.com`). Null for tagged peers. */
|
|
32015
32204
|
userLogin: string().nullable(),
|
|
@@ -32139,7 +32328,8 @@ var MotionStatusSchema = object({
|
|
|
32139
32328
|
* writes this slice (not even a boot seed), and neither does the runner's
|
|
32140
32329
|
* phase machine: its phase is "a session is attached" for every on-motion
|
|
32141
32330
|
* session, not motion, and it now has its own `DetectionPhaseTransition`.
|
|
32142
|
-
* A provider's `isDetected`
|
|
32331
|
+
* A provider's `isDetected` and `getStatus` answer from the hub's slice
|
|
32332
|
+
* (`hubMotionNativeProvider`).
|
|
32143
32333
|
* - **Sensors** (Home Assistant binary sensors, Homematic, Matter, Alexa
|
|
32144
32334
|
* imports) — the provider pushes both edges itself, from the upstream
|
|
32145
32335
|
* system's own state change. That is the sensor's own fact.
|
|
@@ -40241,6 +40431,12 @@ Object.freeze({
|
|
|
40241
40431
|
addonId: null,
|
|
40242
40432
|
access: "view"
|
|
40243
40433
|
},
|
|
40434
|
+
"localNetwork.getHubAddresses": {
|
|
40435
|
+
capName: "local-network",
|
|
40436
|
+
capScope: "system",
|
|
40437
|
+
addonId: null,
|
|
40438
|
+
access: "view"
|
|
40439
|
+
},
|
|
40244
40440
|
"localNetwork.getNotificationEndpoint": {
|
|
40245
40441
|
capName: "local-network",
|
|
40246
40442
|
capScope: "system",
|
|
@@ -40295,6 +40491,12 @@ Object.freeze({
|
|
|
40295
40491
|
addonId: null,
|
|
40296
40492
|
access: "create"
|
|
40297
40493
|
},
|
|
40494
|
+
"localNetwork.setHubAddress": {
|
|
40495
|
+
capName: "local-network",
|
|
40496
|
+
capScope: "system",
|
|
40497
|
+
addonId: null,
|
|
40498
|
+
access: "create"
|
|
40499
|
+
},
|
|
40298
40500
|
"localNetwork.setNotificationEndpoint": {
|
|
40299
40501
|
capName: "local-network",
|
|
40300
40502
|
capScope: "system",
|
|
@@ -48694,6 +48896,8 @@ new Map(Object.entries({
|
|
|
48694
48896
|
"detection-blind": "device-events",
|
|
48695
48897
|
"node-online": "system",
|
|
48696
48898
|
"node-offline": "system",
|
|
48899
|
+
"node-restarting": "system",
|
|
48900
|
+
"node-updating": "system",
|
|
48697
48901
|
"node-inference-unavailable": "system",
|
|
48698
48902
|
"addon-crash-loop": "system",
|
|
48699
48903
|
"addon-update-available": "system",
|
|
@@ -48771,18 +48975,21 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
48771
48975
|
kinds: [
|
|
48772
48976
|
"node-offline",
|
|
48773
48977
|
"node-online",
|
|
48978
|
+
"node-restarting",
|
|
48774
48979
|
"node-inference-unavailable"
|
|
48775
48980
|
]
|
|
48776
48981
|
},
|
|
48777
48982
|
{
|
|
48778
48983
|
id: "addons",
|
|
48779
48984
|
family: "system",
|
|
48780
|
-
label: "Addons",
|
|
48781
|
-
kinds: [
|
|
48782
|
-
|
|
48783
|
-
|
|
48784
|
-
|
|
48785
|
-
|
|
48985
|
+
label: "Addons stopped",
|
|
48986
|
+
kinds: ["addon-crash-loop"]
|
|
48987
|
+
},
|
|
48988
|
+
{
|
|
48989
|
+
id: "addon-updates",
|
|
48990
|
+
family: "system",
|
|
48991
|
+
label: "Addon updates",
|
|
48992
|
+
kinds: ["addon-update-available", "addon-updated"]
|
|
48786
48993
|
},
|
|
48787
48994
|
{
|
|
48788
48995
|
id: "updates",
|
|
@@ -48790,6 +48997,7 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
48790
48997
|
label: "Server & container updates",
|
|
48791
48998
|
kinds: [
|
|
48792
48999
|
"server-update-available",
|
|
49000
|
+
"node-updating",
|
|
48793
49001
|
"server-updated",
|
|
48794
49002
|
"wrapper-update-available"
|
|
48795
49003
|
]
|
|
@@ -48937,18 +49145,21 @@ var STATE_SUMMARY_SECTION_VARS = [
|
|
|
48937
49145
|
kinds: [
|
|
48938
49146
|
"node-offline",
|
|
48939
49147
|
"node-online",
|
|
49148
|
+
"node-restarting",
|
|
48940
49149
|
"node-inference-unavailable"
|
|
48941
49150
|
]
|
|
48942
49151
|
},
|
|
48943
49152
|
{
|
|
48944
49153
|
name: "summaryAddons",
|
|
48945
|
-
label: "Summary: addons",
|
|
48946
|
-
example: "
|
|
48947
|
-
kinds: [
|
|
48948
|
-
|
|
48949
|
-
|
|
48950
|
-
|
|
48951
|
-
|
|
49154
|
+
label: "Summary: addons stopped",
|
|
49155
|
+
example: "hub — recorder stopped after repeated crashes",
|
|
49156
|
+
kinds: ["addon-crash-loop"]
|
|
49157
|
+
},
|
|
49158
|
+
{
|
|
49159
|
+
name: "summaryAddonUpdates",
|
|
49160
|
+
label: "Summary: addon updates",
|
|
49161
|
+
example: "hub:\n• @camstack/addon-recorder 1.2.3 → 1.2.4",
|
|
49162
|
+
kinds: ["addon-update-available", "addon-updated"]
|
|
48952
49163
|
},
|
|
48953
49164
|
{
|
|
48954
49165
|
name: "summaryUpdates",
|
|
@@ -48956,6 +49167,7 @@ var STATE_SUMMARY_SECTION_VARS = [
|
|
|
48956
49167
|
example: "server 1.2.377 → 1.2.378",
|
|
48957
49168
|
kinds: [
|
|
48958
49169
|
"server-update-available",
|
|
49170
|
+
"node-updating",
|
|
48959
49171
|
"server-updated",
|
|
48960
49172
|
"wrapper-update-available"
|
|
48961
49173
|
]
|
|
@@ -48988,7 +49200,7 @@ var STATE_SUMMARY_VARS = [
|
|
|
48988
49200
|
{
|
|
48989
49201
|
name: "summarySection",
|
|
48990
49202
|
label: "Summary: this section",
|
|
48991
|
-
description: "The section a per-section summary row is about
|
|
49203
|
+
description: "The section a per-section summary row is about; on a summary sent as one message, every section it reports, comma-separated.",
|
|
48992
49204
|
example: "Batterie scariche",
|
|
48993
49205
|
group: "system",
|
|
48994
49206
|
families: ["rule"],
|
|
@@ -49032,6 +49244,7 @@ var STATE_SUMMARY_VARS = [
|
|
|
49032
49244
|
[...RULE_BODY_ONLY],
|
|
49033
49245
|
[...RULE_TEXT],
|
|
49034
49246
|
([...RULE_TEXT], [...DEVICE_EVENTS]),
|
|
49247
|
+
([...RULE_TEXT], [...COMBINED_ALARM]),
|
|
49035
49248
|
([...RULE_TEXT], [...DEVICE_EVENTS]),
|
|
49036
49249
|
([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
|
|
49037
49250
|
([...RULE_TEXT], [...CONSUMABLE]),
|
|
@@ -96680,7 +96893,7 @@ function createBoundedFfmpegRunner(input) {
|
|
|
96680
96893
|
code: null,
|
|
96681
96894
|
timedOut: false,
|
|
96682
96895
|
spawnFailed: true,
|
|
96683
|
-
stderr: `no pinned ffmpeg on this node
|
|
96896
|
+
stderr: `no pinned ffmpeg on this node: ${err instanceof Error ? err.message : String(err)}`
|
|
96684
96897
|
};
|
|
96685
96898
|
}
|
|
96686
96899
|
return await new Promise((resolve) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-export-hap",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.150",
|
|
4
4
|
"description": "HomeKit (HAP) exporter for CamStack devices. Publishes each exposed device as its own HomeKit accessory: cameras and doorbells with SRTP streaming, HomeKit Secure Video, motion, two-way audio, PTZ and battery; switches, lights, locks and sensors through a capability→service table.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
{
|
|
45
45
|
"id": "homekitClips",
|
|
46
46
|
"displayName": "HomeKit Clips",
|
|
47
|
-
"description": "Copies of the clips CamStack SENT to HomeKit Secure Video. HomeKit is a sink — HAP has no read-back — so a clip is only ever ours if we teed it while sending it
|
|
47
|
+
"description": "Copies of the clips CamStack SENT to HomeKit Secure Video. HomeKit is a sink — HAP has no read-back — so a clip is only ever ours if we teed it while sending it. Its own location because a teed clip has no track, detection or event behind it, so it is not event media and no media-class retention may attach to it: the age is per camera (14 days by default) with fixed per-camera and whole-store rails. Exactly ONE location; repoint it to choose the disk. Written under the `homekit-clips/` subtree so occupancy is the class subtree even when it shares a root.",
|
|
48
48
|
"cardinality": "single",
|
|
49
49
|
"access": "local-path",
|
|
50
50
|
"defaultsTo": "recordings"
|