@camstack/addon-export-hap 1.2.146 → 1.2.148
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 +31 -50
- package/dist/hap-export.addon.mjs +31 -50
- package/package.json +1 -1
package/dist/hap-export.addon.js
CHANGED
|
@@ -11457,11 +11457,11 @@ var ModelVariantGroupSchema = object({
|
|
|
11457
11457
|
/** Quantization axis. Omit ⇒ the fp32 base build. */
|
|
11458
11458
|
precision: _enum(["fp32", "int8"]).optional(),
|
|
11459
11459
|
/**
|
|
11460
|
-
*
|
|
11461
|
-
*
|
|
11462
|
-
*
|
|
11460
|
+
* Training / latency-variant axis. Omit ⇒ the standard build. `test` marks
|
|
11461
|
+
* an alternate training of the same family (Scrypted `relu_test`); chip
|
|
11462
|
+
* label is "Test".
|
|
11463
11463
|
*/
|
|
11464
|
-
optimization: _enum(["standard", "
|
|
11464
|
+
optimization: _enum(["standard", "test"]).optional(),
|
|
11465
11465
|
/**
|
|
11466
11466
|
* Input-resolution axis (square input side, px). Omit ⇒ the family's native
|
|
11467
11467
|
* resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
|
|
@@ -11484,9 +11484,10 @@ var ModelProviderIdSchema = _enum([
|
|
|
11484
11484
|
* are per upstream. A persisted custom-model row written when this field was a
|
|
11485
11485
|
* string still parses — the string is lifted into `{ weights }`.
|
|
11486
11486
|
*
|
|
11487
|
-
* Every licence surface (the
|
|
11488
|
-
*
|
|
11489
|
-
*
|
|
11487
|
+
* Every machine licence surface (`THIRD_PARTY_MODELS.md`, the Hugging Face
|
|
11488
|
+
* model table) is GENERATED from these records by
|
|
11489
|
+
* `scripts/gen-model-licenses.ts` (D661). Operator-facing docs live in
|
|
11490
|
+
* `camstack/docs` → `/docs/detection/models`.
|
|
11490
11491
|
*/
|
|
11491
11492
|
var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { weights: value } : value, object({
|
|
11492
11493
|
/** SPDX id of the WEIGHTS' terms, a `LicenseRef-*` for non-SPDX terms, or `UNKNOWN`. */
|
|
@@ -18080,7 +18081,7 @@ method(object({
|
|
|
18080
18081
|
timeoutMs: 6e5
|
|
18081
18082
|
});
|
|
18082
18083
|
method(object({
|
|
18083
|
-
|
|
18084
|
+
targetNodeId: string(),
|
|
18084
18085
|
modelId: string(),
|
|
18085
18086
|
format: _enum(MODEL_FORMATS),
|
|
18086
18087
|
entry: ModelCatalogEntrySchema
|
|
@@ -22009,39 +22010,19 @@ Object.freeze(Object.fromEntries([{
|
|
|
22009
22010
|
label: "Face recognition model",
|
|
22010
22011
|
defaultModelId: "auraface-r100",
|
|
22011
22012
|
indexName: "the enrolled face gallery",
|
|
22012
|
-
options: [
|
|
22013
|
-
|
|
22014
|
-
|
|
22015
|
-
|
|
22016
|
-
},
|
|
22017
|
-
{
|
|
22018
|
-
id: "arcface-r100",
|
|
22019
|
-
label: "ArcFace (ResNet34)"
|
|
22020
|
-
},
|
|
22021
|
-
{
|
|
22022
|
-
id: "inception-resnet-v1",
|
|
22023
|
-
label: "Inception ResNet V1"
|
|
22024
|
-
}
|
|
22025
|
-
]
|
|
22013
|
+
options: [{
|
|
22014
|
+
id: "auraface-r100",
|
|
22015
|
+
label: "AuraFace R100"
|
|
22016
|
+
}]
|
|
22026
22017
|
}, {
|
|
22027
22018
|
stepId: "clip-embedding",
|
|
22028
22019
|
label: "Semantic search model",
|
|
22029
|
-
defaultModelId: "
|
|
22020
|
+
defaultModelId: "siglip2-b16-224",
|
|
22030
22021
|
indexName: "the object semantic-search index",
|
|
22031
|
-
options: [
|
|
22032
|
-
|
|
22033
|
-
|
|
22034
|
-
|
|
22035
|
-
},
|
|
22036
|
-
{
|
|
22037
|
-
id: "mobileclip-s2",
|
|
22038
|
-
label: "MobileCLIP S2"
|
|
22039
|
-
},
|
|
22040
|
-
{
|
|
22041
|
-
id: "siglip2-b16-224",
|
|
22042
|
-
label: "SigLIP2 B/16 (Apache-2.0)"
|
|
22043
|
-
}
|
|
22044
|
-
]
|
|
22022
|
+
options: [{
|
|
22023
|
+
id: "siglip2-b16-224",
|
|
22024
|
+
label: "SigLIP2 B/16 (Apache-2.0)"
|
|
22025
|
+
}]
|
|
22045
22026
|
}].map((s) => [s.stepId, s.defaultModelId])));
|
|
22046
22027
|
var CLUSTER_STEP_SETTING_FIELDS = [{
|
|
22047
22028
|
stepId: "face-embedding",
|
|
@@ -32982,7 +32963,13 @@ var OsdStatusSchema = object({ overlays: array(object({
|
|
|
32982
32963
|
*/
|
|
32983
32964
|
availablePositions: array(OsdPositionEnum).readonly(),
|
|
32984
32965
|
/** Firmware does not allow editing the `text` field (e.g. timestamp). */
|
|
32985
|
-
readOnly: boolean().optional()
|
|
32966
|
+
readOnly: boolean().optional(),
|
|
32967
|
+
/**
|
|
32968
|
+
* Firmware text ceiling for this overlay. Absent = no known limit.
|
|
32969
|
+
* The OSD manager truncates here on every write — never stores its own
|
|
32970
|
+
* copy on the binding.
|
|
32971
|
+
*/
|
|
32972
|
+
maxCharacters: number().int().positive().optional()
|
|
32986
32973
|
})).readonly() });
|
|
32987
32974
|
var OsdOverlayPatchSchema = object({
|
|
32988
32975
|
enabled: boolean().optional(),
|
|
@@ -33033,7 +33020,9 @@ var OsdTemplateBindingSchema = object({
|
|
|
33033
33020
|
valuePath: string().min(1).max(64),
|
|
33034
33021
|
/** Convert TO this unit at render (`tryConvertUnit`). Absent = source unit. */
|
|
33035
33022
|
displayUnit: string().max(16).optional(),
|
|
33036
|
-
maxDecimals: number().int().min(0).max(4).default(1)
|
|
33023
|
+
maxDecimals: number().int().min(0).max(4).default(1),
|
|
33024
|
+
/** Raw value → display text (same shape as slot binding). Empty string hides. */
|
|
33025
|
+
valueMap: record(string(), string()).optional()
|
|
33037
33026
|
});
|
|
33038
33027
|
/**
|
|
33039
33028
|
* A named template: bindings (alias → leaf field) + a parser that
|
|
@@ -33083,18 +33072,11 @@ var OsdSlotBindingSchema = object({
|
|
|
33083
33072
|
source: OsdSourceSchema,
|
|
33084
33073
|
/** `${value}` and `${unit}` are substituted; every occurrence. */
|
|
33085
33074
|
template: string().max(96).default("${value}"),
|
|
33086
|
-
/** Truncate with an ellipsis past this length. Absent = no limit. */
|
|
33087
|
-
maxCharacters: number().int().min(4).max(64).optional(),
|
|
33088
33075
|
/**
|
|
33089
33076
|
* Decimal places for a numeric value. `0` yields an integer — the
|
|
33090
33077
|
* documented workaround for firmwares that reject `.` in overlay text.
|
|
33091
33078
|
*/
|
|
33092
33079
|
maxDecimals: number().int().min(0).max(4).default(1),
|
|
33093
|
-
/**
|
|
33094
|
-
* Appended via `${unit}` when no unit conversion produces a label.
|
|
33095
|
-
* Prefer `source.displayUnit` for converted device-state values.
|
|
33096
|
-
*/
|
|
33097
|
-
unitLabel: string().max(8).optional(),
|
|
33098
33080
|
/** Raw value → display text, e.g. `{"true":"MOTION","false":""}`. */
|
|
33099
33081
|
valueMap: record(string(), string()).optional(),
|
|
33100
33082
|
/** Time windows in which the slot is shown. Absent = always. */
|
|
@@ -33103,9 +33085,7 @@ var OsdSlotBindingSchema = object({
|
|
|
33103
33085
|
* Display gate, in the notification centre's condition vocabulary.
|
|
33104
33086
|
* Only the keys reported by `getConditionSupport` are accepted.
|
|
33105
33087
|
*/
|
|
33106
|
-
conditions: NcConditionsSchema.optional()
|
|
33107
|
-
/** Rendered when the gate is closed or the value unreadable. Empty = hide. */
|
|
33108
|
-
fallbackText: string().max(64).default("")
|
|
33088
|
+
conditions: NcConditionsSchema.optional()
|
|
33109
33089
|
});
|
|
33110
33090
|
/** One camera slot, as the operator sees it: firmware truth + our binding. */
|
|
33111
33091
|
var OsdSlotViewSchema = object({
|
|
@@ -49102,6 +49082,8 @@ var STATE_SUMMARY_VARS = [
|
|
|
49102
49082
|
[...RULE_TEXT],
|
|
49103
49083
|
[...RULE_TEXT],
|
|
49104
49084
|
[...RULE_TEXT],
|
|
49085
|
+
[...RULE_TEXT],
|
|
49086
|
+
[...RULE_TEXT],
|
|
49105
49087
|
...STATE_SUMMARY_VARS
|
|
49106
49088
|
];
|
|
49107
49089
|
new Set([
|
|
@@ -99414,7 +99396,6 @@ async function buildSecuritySystem(bctx) {
|
|
|
99414
99396
|
mode,
|
|
99415
99397
|
error: errMsg$11(err)
|
|
99416
99398
|
} });
|
|
99417
|
-
throw new import_dist.HapStatusError(import_dist.HAPStatus.SERVICE_COMMUNICATION_FAILURE);
|
|
99418
99399
|
}
|
|
99419
99400
|
});
|
|
99420
99401
|
const unsubscribe = proxy.state.alarmPanel?.subscribe((value) => {
|
|
@@ -11447,11 +11447,11 @@ var ModelVariantGroupSchema = object({
|
|
|
11447
11447
|
/** Quantization axis. Omit ⇒ the fp32 base build. */
|
|
11448
11448
|
precision: _enum(["fp32", "int8"]).optional(),
|
|
11449
11449
|
/**
|
|
11450
|
-
*
|
|
11451
|
-
*
|
|
11452
|
-
*
|
|
11450
|
+
* Training / latency-variant axis. Omit ⇒ the standard build. `test` marks
|
|
11451
|
+
* an alternate training of the same family (Scrypted `relu_test`); chip
|
|
11452
|
+
* label is "Test".
|
|
11453
11453
|
*/
|
|
11454
|
-
optimization: _enum(["standard", "
|
|
11454
|
+
optimization: _enum(["standard", "test"]).optional(),
|
|
11455
11455
|
/**
|
|
11456
11456
|
* Input-resolution axis (square input side, px). Omit ⇒ the family's native
|
|
11457
11457
|
* resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
|
|
@@ -11474,9 +11474,10 @@ var ModelProviderIdSchema = _enum([
|
|
|
11474
11474
|
* are per upstream. A persisted custom-model row written when this field was a
|
|
11475
11475
|
* string still parses — the string is lifted into `{ weights }`.
|
|
11476
11476
|
*
|
|
11477
|
-
* Every licence surface (the
|
|
11478
|
-
*
|
|
11479
|
-
*
|
|
11477
|
+
* Every machine licence surface (`THIRD_PARTY_MODELS.md`, the Hugging Face
|
|
11478
|
+
* model table) is GENERATED from these records by
|
|
11479
|
+
* `scripts/gen-model-licenses.ts` (D661). Operator-facing docs live in
|
|
11480
|
+
* `camstack/docs` → `/docs/detection/models`.
|
|
11480
11481
|
*/
|
|
11481
11482
|
var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { weights: value } : value, object({
|
|
11482
11483
|
/** SPDX id of the WEIGHTS' terms, a `LicenseRef-*` for non-SPDX terms, or `UNKNOWN`. */
|
|
@@ -18070,7 +18071,7 @@ method(object({
|
|
|
18070
18071
|
timeoutMs: 6e5
|
|
18071
18072
|
});
|
|
18072
18073
|
method(object({
|
|
18073
|
-
|
|
18074
|
+
targetNodeId: string(),
|
|
18074
18075
|
modelId: string(),
|
|
18075
18076
|
format: _enum(MODEL_FORMATS),
|
|
18076
18077
|
entry: ModelCatalogEntrySchema
|
|
@@ -21999,39 +22000,19 @@ Object.freeze(Object.fromEntries([{
|
|
|
21999
22000
|
label: "Face recognition model",
|
|
22000
22001
|
defaultModelId: "auraface-r100",
|
|
22001
22002
|
indexName: "the enrolled face gallery",
|
|
22002
|
-
options: [
|
|
22003
|
-
|
|
22004
|
-
|
|
22005
|
-
|
|
22006
|
-
},
|
|
22007
|
-
{
|
|
22008
|
-
id: "arcface-r100",
|
|
22009
|
-
label: "ArcFace (ResNet34)"
|
|
22010
|
-
},
|
|
22011
|
-
{
|
|
22012
|
-
id: "inception-resnet-v1",
|
|
22013
|
-
label: "Inception ResNet V1"
|
|
22014
|
-
}
|
|
22015
|
-
]
|
|
22003
|
+
options: [{
|
|
22004
|
+
id: "auraface-r100",
|
|
22005
|
+
label: "AuraFace R100"
|
|
22006
|
+
}]
|
|
22016
22007
|
}, {
|
|
22017
22008
|
stepId: "clip-embedding",
|
|
22018
22009
|
label: "Semantic search model",
|
|
22019
|
-
defaultModelId: "
|
|
22010
|
+
defaultModelId: "siglip2-b16-224",
|
|
22020
22011
|
indexName: "the object semantic-search index",
|
|
22021
|
-
options: [
|
|
22022
|
-
|
|
22023
|
-
|
|
22024
|
-
|
|
22025
|
-
},
|
|
22026
|
-
{
|
|
22027
|
-
id: "mobileclip-s2",
|
|
22028
|
-
label: "MobileCLIP S2"
|
|
22029
|
-
},
|
|
22030
|
-
{
|
|
22031
|
-
id: "siglip2-b16-224",
|
|
22032
|
-
label: "SigLIP2 B/16 (Apache-2.0)"
|
|
22033
|
-
}
|
|
22034
|
-
]
|
|
22012
|
+
options: [{
|
|
22013
|
+
id: "siglip2-b16-224",
|
|
22014
|
+
label: "SigLIP2 B/16 (Apache-2.0)"
|
|
22015
|
+
}]
|
|
22035
22016
|
}].map((s) => [s.stepId, s.defaultModelId])));
|
|
22036
22017
|
var CLUSTER_STEP_SETTING_FIELDS = [{
|
|
22037
22018
|
stepId: "face-embedding",
|
|
@@ -32972,7 +32953,13 @@ var OsdStatusSchema = object({ overlays: array(object({
|
|
|
32972
32953
|
*/
|
|
32973
32954
|
availablePositions: array(OsdPositionEnum).readonly(),
|
|
32974
32955
|
/** Firmware does not allow editing the `text` field (e.g. timestamp). */
|
|
32975
|
-
readOnly: boolean().optional()
|
|
32956
|
+
readOnly: boolean().optional(),
|
|
32957
|
+
/**
|
|
32958
|
+
* Firmware text ceiling for this overlay. Absent = no known limit.
|
|
32959
|
+
* The OSD manager truncates here on every write — never stores its own
|
|
32960
|
+
* copy on the binding.
|
|
32961
|
+
*/
|
|
32962
|
+
maxCharacters: number().int().positive().optional()
|
|
32976
32963
|
})).readonly() });
|
|
32977
32964
|
var OsdOverlayPatchSchema = object({
|
|
32978
32965
|
enabled: boolean().optional(),
|
|
@@ -33023,7 +33010,9 @@ var OsdTemplateBindingSchema = object({
|
|
|
33023
33010
|
valuePath: string().min(1).max(64),
|
|
33024
33011
|
/** Convert TO this unit at render (`tryConvertUnit`). Absent = source unit. */
|
|
33025
33012
|
displayUnit: string().max(16).optional(),
|
|
33026
|
-
maxDecimals: number().int().min(0).max(4).default(1)
|
|
33013
|
+
maxDecimals: number().int().min(0).max(4).default(1),
|
|
33014
|
+
/** Raw value → display text (same shape as slot binding). Empty string hides. */
|
|
33015
|
+
valueMap: record(string(), string()).optional()
|
|
33027
33016
|
});
|
|
33028
33017
|
/**
|
|
33029
33018
|
* A named template: bindings (alias → leaf field) + a parser that
|
|
@@ -33073,18 +33062,11 @@ var OsdSlotBindingSchema = object({
|
|
|
33073
33062
|
source: OsdSourceSchema,
|
|
33074
33063
|
/** `${value}` and `${unit}` are substituted; every occurrence. */
|
|
33075
33064
|
template: string().max(96).default("${value}"),
|
|
33076
|
-
/** Truncate with an ellipsis past this length. Absent = no limit. */
|
|
33077
|
-
maxCharacters: number().int().min(4).max(64).optional(),
|
|
33078
33065
|
/**
|
|
33079
33066
|
* Decimal places for a numeric value. `0` yields an integer — the
|
|
33080
33067
|
* documented workaround for firmwares that reject `.` in overlay text.
|
|
33081
33068
|
*/
|
|
33082
33069
|
maxDecimals: number().int().min(0).max(4).default(1),
|
|
33083
|
-
/**
|
|
33084
|
-
* Appended via `${unit}` when no unit conversion produces a label.
|
|
33085
|
-
* Prefer `source.displayUnit` for converted device-state values.
|
|
33086
|
-
*/
|
|
33087
|
-
unitLabel: string().max(8).optional(),
|
|
33088
33070
|
/** Raw value → display text, e.g. `{"true":"MOTION","false":""}`. */
|
|
33089
33071
|
valueMap: record(string(), string()).optional(),
|
|
33090
33072
|
/** Time windows in which the slot is shown. Absent = always. */
|
|
@@ -33093,9 +33075,7 @@ var OsdSlotBindingSchema = object({
|
|
|
33093
33075
|
* Display gate, in the notification centre's condition vocabulary.
|
|
33094
33076
|
* Only the keys reported by `getConditionSupport` are accepted.
|
|
33095
33077
|
*/
|
|
33096
|
-
conditions: NcConditionsSchema.optional()
|
|
33097
|
-
/** Rendered when the gate is closed or the value unreadable. Empty = hide. */
|
|
33098
|
-
fallbackText: string().max(64).default("")
|
|
33078
|
+
conditions: NcConditionsSchema.optional()
|
|
33099
33079
|
});
|
|
33100
33080
|
/** One camera slot, as the operator sees it: firmware truth + our binding. */
|
|
33101
33081
|
var OsdSlotViewSchema = object({
|
|
@@ -49092,6 +49072,8 @@ var STATE_SUMMARY_VARS = [
|
|
|
49092
49072
|
[...RULE_TEXT],
|
|
49093
49073
|
[...RULE_TEXT],
|
|
49094
49074
|
[...RULE_TEXT],
|
|
49075
|
+
[...RULE_TEXT],
|
|
49076
|
+
[...RULE_TEXT],
|
|
49095
49077
|
...STATE_SUMMARY_VARS
|
|
49096
49078
|
];
|
|
49097
49079
|
new Set([
|
|
@@ -99404,7 +99386,6 @@ async function buildSecuritySystem(bctx) {
|
|
|
99404
99386
|
mode,
|
|
99405
99387
|
error: errMsg$11(err)
|
|
99406
99388
|
} });
|
|
99407
|
-
throw new import_dist.HapStatusError(import_dist.HAPStatus.SERVICE_COMMUNICATION_FAILURE);
|
|
99408
99389
|
}
|
|
99409
99390
|
});
|
|
99410
99391
|
const unsubscribe = proxy.state.alarmPanel?.subscribe((value) => {
|
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.148",
|
|
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",
|