@camstack/addon-export-hap 1.2.147 → 1.2.149

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.
@@ -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
- * Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
11461
- * latency-optimized export (e.g. ReLU-activation variant) — the slot the
11462
- * future performance variants plug into.
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", "fast"]).optional(),
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 admin "Models and licenses" page,
11488
- * `THIRD_PARTY_MODELS.md`, the Hugging Face model table) is GENERATED from
11489
- * these records by `scripts/gen-model-licenses.ts` (D661).
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`. */
@@ -15071,7 +15072,7 @@ DeviceType.Camera;
15071
15072
  * This matters here more than anywhere else in the repo, because every provider
15072
15073
  * that knows a device's host knows its PASSWORD too: `{ host, port, username,
15073
15074
  * password }` sit in one object on Hikvision, Amcrest, Reolink and ONVIF alike,
15074
- * and `http://admin:hunter2@192.168.x.x/` is a URL a browser accepts. The
15075
+ * and `http://admin:hunter2@192.168.60.139/` is a URL a browser accepts. The
15075
15076
  * camera's own page will ask for its own login. That is correct, and pre-
15076
15077
  * filling it is the operator's business, not ours.
15077
15078
  *
@@ -18080,7 +18081,7 @@ method(object({
18080
18081
  timeoutMs: 6e5
18081
18082
  });
18082
18083
  method(object({
18083
- nodeId: string(),
18084
+ targetNodeId: string(),
18084
18085
  modelId: string(),
18085
18086
  format: _enum(MODEL_FORMATS),
18086
18087
  entry: ModelCatalogEntrySchema
@@ -20546,8 +20547,9 @@ var NcRuleSchema = NcRuleInputSchema.extend({
20546
20547
  disabledTargetIds: array(string()).default([])
20547
20548
  });
20548
20549
  /**
20549
- * The state-summary SECTIONS (D647 / D698): the D637 kind groups that report a
20550
- * still-true state. `backups-exports` and `alarm` are not sections — a completed
20550
+ * The state-summary SECTIONS (D647 / D698 / D708): the D637 kind groups that
20551
+ * report a still-true state. `addons` is the crash-looped addons only and
20552
+ * `addon-updates` the addons that are behind (D708 split them). `backups-exports` and `alarm` are not sections — a completed
20551
20553
  * job is not an open state, and the alarm stays instant.
20552
20554
  */
20553
20555
  var NcStateSummarySectionIdSchema = _enum([
@@ -20559,6 +20561,7 @@ var NcStateSummarySectionIdSchema = _enum([
20559
20561
  "detection-blind",
20560
20562
  "nodes",
20561
20563
  "addons",
20564
+ "addon-updates",
20562
20565
  "updates"
20563
20566
  ]);
20564
20567
  /** One section of a previewed state summary. `unavailable` = its state could not be read. */
@@ -21039,7 +21042,19 @@ var NcAlarmModeDelaysListSchema = array(object({
21039
21042
  * When this mode may be armed. Absent / null = always allowed (same as a
21040
21043
  * rule with no `schedule`). Evaluated with {@link isScheduleActive}.
21041
21044
  */
21042
- schedule: NcScheduleSchema.optional()
21045
+ schedule: NcScheduleSchema.optional(),
21046
+ /**
21047
+ * D706: while this mode's ENTRY DELAY runs, do the alarm rules' own pushes go out (as an
21048
+ * intrusion naming the locations)? Absent = false — the entry-delay notification is the
21049
+ * only one, and the matches ride the triggered notification's mosaic (D705).
21050
+ */
21051
+ notifyDuringEntryDelay: boolean().optional(),
21052
+ /**
21053
+ * D706: notify "watched again" when a sensor this arm bypassed closes and opens again.
21054
+ * Absent = false (logged, not sent). Even when true it is not sent when that same sensor
21055
+ * is the one that starts the entry delay — the entry-delay notification already names it.
21056
+ */
21057
+ notifySensorRewatched: boolean().optional()
21043
21058
  })).max(8).refine(uniqueModes, { message: "modeDelays: at most one entry per arm mode" });
21044
21059
  var NcAlarmModeDelaysEditListSchema = array(object({
21045
21060
  mode: AlarmArmModeSchema,
@@ -21048,7 +21063,11 @@ var NcAlarmModeDelaysEditListSchema = array(object({
21048
21063
  triggeredDurationSec: NcAlarmTriggeredSecSchema.nullable().optional(),
21049
21064
  postTriggeredAction: NcAlarmPostTriggeredActionSchema.nullable().optional(),
21050
21065
  /** Set a schedule, or `null` to clear (mode always allowed again). */
21051
- schedule: NcScheduleSchema.nullable().optional()
21066
+ schedule: NcScheduleSchema.nullable().optional(),
21067
+ /** D706: set the switch, or `null` to clear it (back to the default, false). */
21068
+ notifyDuringEntryDelay: boolean().nullable().optional(),
21069
+ /** D706: set the switch, or `null` to clear it (back to the default, false). */
21070
+ notifySensorRewatched: boolean().nullable().optional()
21052
21071
  })).max(8).refine(uniqueModes, { message: "modeDelays: at most one edit per arm mode" });
21053
21072
  /** One switch of the alarm table: put ONE device on, or take it off, ONE mode's list. */
21054
21073
  var NcAlarmNonBlockingEditSchema = object({
@@ -22009,39 +22028,19 @@ Object.freeze(Object.fromEntries([{
22009
22028
  label: "Face recognition model",
22010
22029
  defaultModelId: "auraface-r100",
22011
22030
  indexName: "the enrolled face gallery",
22012
- options: [
22013
- {
22014
- id: "auraface-r100",
22015
- label: "AuraFace R100"
22016
- },
22017
- {
22018
- id: "arcface-r100",
22019
- label: "ArcFace (ResNet34)"
22020
- },
22021
- {
22022
- id: "inception-resnet-v1",
22023
- label: "Inception ResNet V1"
22024
- }
22025
- ]
22031
+ options: [{
22032
+ id: "auraface-r100",
22033
+ label: "AuraFace R100"
22034
+ }]
22026
22035
  }, {
22027
22036
  stepId: "clip-embedding",
22028
22037
  label: "Semantic search model",
22029
- defaultModelId: "mobileclip-s1",
22038
+ defaultModelId: "siglip2-b16-224",
22030
22039
  indexName: "the object semantic-search index",
22031
- options: [
22032
- {
22033
- id: "mobileclip-s1",
22034
- label: "MobileCLIP S1"
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
- ]
22040
+ options: [{
22041
+ id: "siglip2-b16-224",
22042
+ label: "SigLIP2 B/16 (Apache-2.0)"
22043
+ }]
22045
22044
  }].map((s) => [s.stepId, s.defaultModelId])));
22046
22045
  var CLUSTER_STEP_SETTING_FIELDS = [{
22047
22046
  stepId: "face-embedding",
@@ -24889,6 +24888,22 @@ var MotionSourceEnum = _enum([
24889
24888
  "device-activity"
24890
24889
  ]);
24891
24890
  /**
24891
+ * What opened an on-motion detection SESSION: the motion source that passed the
24892
+ * camera's `motionSources` gate, and what raised it (the camera itself, or a
24893
+ * sensor the operator attached — D672). `sensorName` is the attached sensor's
24894
+ * device name as the orchestrator's camera-sensors resolution last read it;
24895
+ * absent when unknown or when the camera itself triggered.
24896
+ *
24897
+ * Carried on the session attach ONLY so the runner's `DetectionPhaseTransition`
24898
+ * can say what started the session (D672 rule 11, amended 2026-10-06). The
24899
+ * runner never decides anything on it.
24900
+ */
24901
+ var SessionTriggerSchema = object({
24902
+ source: MotionSourceEnum,
24903
+ triggeredBy: MotionTriggeredBySchema,
24904
+ sensorName: string().optional()
24905
+ });
24906
+ /**
24892
24907
  * List of motion sources active on a camera. Empty array is valid:
24893
24908
  * "no source" — happens for battery cams without firmware motion when
24894
24909
  * the operator hasn't opted into the SW analyzer (would hold the
@@ -25140,6 +25155,14 @@ var RunnerCameraConfigSchema = object({
25140
25155
  */
25141
25156
  motionSources: MotionSourcesSchema.default(["analyzer"]),
25142
25157
  /**
25158
+ * What opened this attach, on a SESSION attach only (see
25159
+ * {@link SessionTriggerSchema}). OPTIONAL with no default: absent on a
25160
+ * standing attach, an occupancy burst, a re-dispatch with no motion event
25161
+ * behind it, and every attach from an orchestrator older than the field — the
25162
+ * runner then names no source on the phase event.
25163
+ */
25164
+ sessionTrigger: SessionTriggerSchema.optional(),
25165
+ /**
25143
25166
  * WHICH root detector runs for this camera. The detection counterpart of
25144
25167
  * {@link motionSources}, same shape and same discipline: a per-camera list
25145
25168
  * of sources the system understands, vendor-agnostic, owned here.
@@ -31592,7 +31615,7 @@ var LocalInterfaceSchema = object({
31592
31615
  name: string(),
31593
31616
  family: _enum(["IPv4", "IPv6"]),
31594
31617
  address: string(),
31595
- /** CIDR shorthand (e.g. `192.168.x.x/24`). Empty when OS doesn't expose. */
31618
+ /** CIDR shorthand (e.g. `192.168.10.10/24`). Empty when OS doesn't expose. */
31596
31619
  cidr: string(),
31597
31620
  /** OS netmask. Stable across calls so the SDK can hash on it. */
31598
31621
  netmask: string(),
@@ -31646,7 +31669,8 @@ var ConnectionEndpointSchema = object({
31646
31669
  "lan-ipv4",
31647
31670
  "lan-ipv6",
31648
31671
  "public",
31649
- "loopback"
31672
+ "loopback",
31673
+ "app-link"
31650
31674
  ]),
31651
31675
  /**
31652
31676
  * Originating-interface kind — `lan`/`wifi`/`docker`/`vpn`/`other`/
@@ -31715,15 +31739,27 @@ var GetConnectionEndpointsResultSchema = object({
31715
31739
  localPort: AdvertisedLocalPortSchema
31716
31740
  });
31717
31741
  /**
31718
- * The chosen outbound endpoint for notification artifacts. `baseUrl: null` =
31719
- * AUTO (resolved from the candidate ranking at send time); `resolved` reports
31720
- * what AUTO currently picks, so the UI can show the effective value either way.
31742
+ * The address flagged for notification links. `baseUrl: null` = AUTO, which
31743
+ * since D709 is the CamStack app link; `resolved` reports the effective value,
31744
+ * so the UI can show it either way.
31721
31745
  */
31722
31746
  var NotificationEndpointSchema = object({
31723
31747
  /** The operator's explicit choice, or null for AUTO. */
31724
31748
  baseUrl: string().nullable(),
31725
- /** What the ranking currently resolves to (null when nothing is reachable). */
31726
- resolved: string().nullable()
31749
+ /**
31750
+ * The effective flagged address: the explicit choice, else (AUTO) the
31751
+ * CamStack app link `https://camstack.zentik.app` (D709). A pre-D709 hub
31752
+ * answered the public tunnel / mesh here, or null.
31753
+ */
31754
+ resolved: string().nullable(),
31755
+ /**
31756
+ * The hub origin an app link carries as `hub=` (D709): the hub's best
31757
+ * public HTTPS address — the tunnel, then the mesh (Tailscale MagicDNS) —
31758
+ * picked from this cap's own palette by `pickAppLinkHub`. `null` when the
31759
+ * hub advertises neither; the app link is then minted without `hub=`.
31760
+ * Absent on a pre-D709 hub.
31761
+ */
31762
+ appLinkHub: string().nullable()
31727
31763
  });
31728
31764
  /**
31729
31765
  * The URLs the SDK / viewer should race for API access. `baseUrls` empty =
@@ -31777,7 +31813,11 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
31777
31813
  * Pass `'https'` when the caller is itself loaded over HTTPS
31778
31814
  * to avoid mixed-content blocks in the browser. The public
31779
31815
  * tunnel always emits `https://` regardless. */
31780
- scheme: _enum(["http", "https"]).optional()
31816
+ scheme: _enum(["http", "https"]).optional(),
31817
+ /** Append the CamStack app link entry (`kind: 'app-link'`, D709) —
31818
+ * an address notification links can be flagged with, not a hub
31819
+ * route. Default `false`: racers and rankers never see it. */
31820
+ includeAppLink: boolean().optional()
31781
31821
  }), 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(), AllowedAddressesSchema), method(AllowedAddressesSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), AllowedAddressesSchema, { kind: "mutation" }), method(_void(), TlsStatusSchema), method(object({ reason: string().optional() }), TlsStatusSchema, {
31782
31822
  kind: "mutation",
31783
31823
  auth: "admin"
@@ -32038,7 +32078,7 @@ var MeshPeerSchema = object({
32038
32078
  tags: array(string()).readonly(),
32039
32079
  /** True when the peer advertises itself as an exit-node candidate. */
32040
32080
  exitNodeOption: boolean(),
32041
- /** Subnet routes the peer advertises (e.g. `["192.168.x.x/24"]`). */
32081
+ /** Subnet routes the peer advertises (e.g. `["192.168.10.0/24"]`). */
32042
32082
  advertisedRoutes: array(string()).readonly(),
32043
32083
  /** Owner account login (e.g. `foo@example.com`). Null for tagged peers. */
32044
32084
  userLogin: string().nullable(),
@@ -32982,7 +33022,13 @@ var OsdStatusSchema = object({ overlays: array(object({
32982
33022
  */
32983
33023
  availablePositions: array(OsdPositionEnum).readonly(),
32984
33024
  /** Firmware does not allow editing the `text` field (e.g. timestamp). */
32985
- readOnly: boolean().optional()
33025
+ readOnly: boolean().optional(),
33026
+ /**
33027
+ * Firmware text ceiling for this overlay. Absent = no known limit.
33028
+ * The OSD manager truncates here on every write — never stores its own
33029
+ * copy on the binding.
33030
+ */
33031
+ maxCharacters: number().int().positive().optional()
32986
33032
  })).readonly() });
32987
33033
  var OsdOverlayPatchSchema = object({
32988
33034
  enabled: boolean().optional(),
@@ -33033,7 +33079,9 @@ var OsdTemplateBindingSchema = object({
33033
33079
  valuePath: string().min(1).max(64),
33034
33080
  /** Convert TO this unit at render (`tryConvertUnit`). Absent = source unit. */
33035
33081
  displayUnit: string().max(16).optional(),
33036
- maxDecimals: number().int().min(0).max(4).default(1)
33082
+ maxDecimals: number().int().min(0).max(4).default(1),
33083
+ /** Raw value → display text (same shape as slot binding). Empty string hides. */
33084
+ valueMap: record(string(), string()).optional()
33037
33085
  });
33038
33086
  /**
33039
33087
  * A named template: bindings (alias → leaf field) + a parser that
@@ -33083,18 +33131,11 @@ var OsdSlotBindingSchema = object({
33083
33131
  source: OsdSourceSchema,
33084
33132
  /** `${value}` and `${unit}` are substituted; every occurrence. */
33085
33133
  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
33134
  /**
33089
33135
  * Decimal places for a numeric value. `0` yields an integer — the
33090
33136
  * documented workaround for firmwares that reject `.` in overlay text.
33091
33137
  */
33092
33138
  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
33139
  /** Raw value → display text, e.g. `{"true":"MOTION","false":""}`. */
33099
33140
  valueMap: record(string(), string()).optional(),
33100
33141
  /** Time windows in which the slot is shown. Absent = always. */
@@ -33103,9 +33144,7 @@ var OsdSlotBindingSchema = object({
33103
33144
  * Display gate, in the notification centre's condition vocabulary.
33104
33145
  * Only the keys reported by `getConditionSupport` are accepted.
33105
33146
  */
33106
- conditions: NcConditionsSchema.optional(),
33107
- /** Rendered when the gate is closed or the value unreadable. Empty = hide. */
33108
- fallbackText: string().max(64).default("")
33147
+ conditions: NcConditionsSchema.optional()
33109
33148
  });
33110
33149
  /** One camera slot, as the operator sees it: firmware truth + our binding. */
33111
33150
  var OsdSlotViewSchema = object({
@@ -48807,12 +48846,14 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
48807
48846
  {
48808
48847
  id: "addons",
48809
48848
  family: "system",
48810
- label: "Addons",
48811
- kinds: [
48812
- "addon-crash-loop",
48813
- "addon-update-available",
48814
- "addon-updated"
48815
- ]
48849
+ label: "Addons stopped",
48850
+ kinds: ["addon-crash-loop"]
48851
+ },
48852
+ {
48853
+ id: "addon-updates",
48854
+ family: "system",
48855
+ label: "Addon updates",
48856
+ kinds: ["addon-update-available", "addon-updated"]
48816
48857
  },
48817
48858
  {
48818
48859
  id: "updates",
@@ -48972,13 +49013,15 @@ var STATE_SUMMARY_SECTION_VARS = [
48972
49013
  },
48973
49014
  {
48974
49015
  name: "summaryAddons",
48975
- label: "Summary: addons",
48976
- example: "@camstack/addon-recorder 1.2.3 → 1.2.4",
48977
- kinds: [
48978
- "addon-crash-loop",
48979
- "addon-update-available",
48980
- "addon-updated"
48981
- ]
49016
+ label: "Summary: addons stopped",
49017
+ example: "hub — recorder stopped after repeated crashes",
49018
+ kinds: ["addon-crash-loop"]
49019
+ },
49020
+ {
49021
+ name: "summaryAddonUpdates",
49022
+ label: "Summary: addon updates",
49023
+ example: "hub:\n• @camstack/addon-recorder 1.2.3 → 1.2.4",
49024
+ kinds: ["addon-update-available", "addon-updated"]
48982
49025
  },
48983
49026
  {
48984
49027
  name: "summaryUpdates",
@@ -49062,6 +49105,7 @@ var STATE_SUMMARY_VARS = [
49062
49105
  [...RULE_BODY_ONLY],
49063
49106
  [...RULE_TEXT],
49064
49107
  ([...RULE_TEXT], [...DEVICE_EVENTS]),
49108
+ ([...RULE_TEXT], [...COMBINED_ALARM]),
49065
49109
  ([...RULE_TEXT], [...DEVICE_EVENTS]),
49066
49110
  ([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
49067
49111
  ([...RULE_TEXT], [...CONSUMABLE]),
@@ -49102,6 +49146,8 @@ var STATE_SUMMARY_VARS = [
49102
49146
  [...RULE_TEXT],
49103
49147
  [...RULE_TEXT],
49104
49148
  [...RULE_TEXT],
49149
+ [...RULE_TEXT],
49150
+ [...RULE_TEXT],
49105
49151
  ...STATE_SUMMARY_VARS
49106
49152
  ];
49107
49153
  new Set([
@@ -99414,7 +99460,6 @@ async function buildSecuritySystem(bctx) {
99414
99460
  mode,
99415
99461
  error: errMsg$11(err)
99416
99462
  } });
99417
- throw new import_dist.HapStatusError(import_dist.HAPStatus.SERVICE_COMMUNICATION_FAILURE);
99418
99463
  }
99419
99464
  });
99420
99465
  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
- * Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
11451
- * latency-optimized export (e.g. ReLU-activation variant) — the slot the
11452
- * future performance variants plug into.
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", "fast"]).optional(),
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 admin "Models and licenses" page,
11478
- * `THIRD_PARTY_MODELS.md`, the Hugging Face model table) is GENERATED from
11479
- * these records by `scripts/gen-model-licenses.ts` (D661).
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`. */
@@ -15061,7 +15062,7 @@ DeviceType.Camera;
15061
15062
  * This matters here more than anywhere else in the repo, because every provider
15062
15063
  * that knows a device's host knows its PASSWORD too: `{ host, port, username,
15063
15064
  * password }` sit in one object on Hikvision, Amcrest, Reolink and ONVIF alike,
15064
- * and `http://admin:hunter2@192.168.x.x/` is a URL a browser accepts. The
15065
+ * and `http://admin:hunter2@192.168.60.139/` is a URL a browser accepts. The
15065
15066
  * camera's own page will ask for its own login. That is correct, and pre-
15066
15067
  * filling it is the operator's business, not ours.
15067
15068
  *
@@ -18070,7 +18071,7 @@ method(object({
18070
18071
  timeoutMs: 6e5
18071
18072
  });
18072
18073
  method(object({
18073
- nodeId: string(),
18074
+ targetNodeId: string(),
18074
18075
  modelId: string(),
18075
18076
  format: _enum(MODEL_FORMATS),
18076
18077
  entry: ModelCatalogEntrySchema
@@ -20536,8 +20537,9 @@ var NcRuleSchema = NcRuleInputSchema.extend({
20536
20537
  disabledTargetIds: array(string()).default([])
20537
20538
  });
20538
20539
  /**
20539
- * The state-summary SECTIONS (D647 / D698): the D637 kind groups that report a
20540
- * still-true state. `backups-exports` and `alarm` are not sections — a completed
20540
+ * The state-summary SECTIONS (D647 / D698 / D708): the D637 kind groups that
20541
+ * report a still-true state. `addons` is the crash-looped addons only and
20542
+ * `addon-updates` the addons that are behind (D708 split them). `backups-exports` and `alarm` are not sections — a completed
20541
20543
  * job is not an open state, and the alarm stays instant.
20542
20544
  */
20543
20545
  var NcStateSummarySectionIdSchema = _enum([
@@ -20549,6 +20551,7 @@ var NcStateSummarySectionIdSchema = _enum([
20549
20551
  "detection-blind",
20550
20552
  "nodes",
20551
20553
  "addons",
20554
+ "addon-updates",
20552
20555
  "updates"
20553
20556
  ]);
20554
20557
  /** One section of a previewed state summary. `unavailable` = its state could not be read. */
@@ -21029,7 +21032,19 @@ var NcAlarmModeDelaysListSchema = array(object({
21029
21032
  * When this mode may be armed. Absent / null = always allowed (same as a
21030
21033
  * rule with no `schedule`). Evaluated with {@link isScheduleActive}.
21031
21034
  */
21032
- schedule: NcScheduleSchema.optional()
21035
+ schedule: NcScheduleSchema.optional(),
21036
+ /**
21037
+ * D706: while this mode's ENTRY DELAY runs, do the alarm rules' own pushes go out (as an
21038
+ * intrusion naming the locations)? Absent = false — the entry-delay notification is the
21039
+ * only one, and the matches ride the triggered notification's mosaic (D705).
21040
+ */
21041
+ notifyDuringEntryDelay: boolean().optional(),
21042
+ /**
21043
+ * D706: notify "watched again" when a sensor this arm bypassed closes and opens again.
21044
+ * Absent = false (logged, not sent). Even when true it is not sent when that same sensor
21045
+ * is the one that starts the entry delay — the entry-delay notification already names it.
21046
+ */
21047
+ notifySensorRewatched: boolean().optional()
21033
21048
  })).max(8).refine(uniqueModes, { message: "modeDelays: at most one entry per arm mode" });
21034
21049
  var NcAlarmModeDelaysEditListSchema = array(object({
21035
21050
  mode: AlarmArmModeSchema,
@@ -21038,7 +21053,11 @@ var NcAlarmModeDelaysEditListSchema = array(object({
21038
21053
  triggeredDurationSec: NcAlarmTriggeredSecSchema.nullable().optional(),
21039
21054
  postTriggeredAction: NcAlarmPostTriggeredActionSchema.nullable().optional(),
21040
21055
  /** Set a schedule, or `null` to clear (mode always allowed again). */
21041
- schedule: NcScheduleSchema.nullable().optional()
21056
+ schedule: NcScheduleSchema.nullable().optional(),
21057
+ /** D706: set the switch, or `null` to clear it (back to the default, false). */
21058
+ notifyDuringEntryDelay: boolean().nullable().optional(),
21059
+ /** D706: set the switch, or `null` to clear it (back to the default, false). */
21060
+ notifySensorRewatched: boolean().nullable().optional()
21042
21061
  })).max(8).refine(uniqueModes, { message: "modeDelays: at most one edit per arm mode" });
21043
21062
  /** One switch of the alarm table: put ONE device on, or take it off, ONE mode's list. */
21044
21063
  var NcAlarmNonBlockingEditSchema = object({
@@ -21999,39 +22018,19 @@ Object.freeze(Object.fromEntries([{
21999
22018
  label: "Face recognition model",
22000
22019
  defaultModelId: "auraface-r100",
22001
22020
  indexName: "the enrolled face gallery",
22002
- options: [
22003
- {
22004
- id: "auraface-r100",
22005
- label: "AuraFace R100"
22006
- },
22007
- {
22008
- id: "arcface-r100",
22009
- label: "ArcFace (ResNet34)"
22010
- },
22011
- {
22012
- id: "inception-resnet-v1",
22013
- label: "Inception ResNet V1"
22014
- }
22015
- ]
22021
+ options: [{
22022
+ id: "auraface-r100",
22023
+ label: "AuraFace R100"
22024
+ }]
22016
22025
  }, {
22017
22026
  stepId: "clip-embedding",
22018
22027
  label: "Semantic search model",
22019
- defaultModelId: "mobileclip-s1",
22028
+ defaultModelId: "siglip2-b16-224",
22020
22029
  indexName: "the object semantic-search index",
22021
- options: [
22022
- {
22023
- id: "mobileclip-s1",
22024
- label: "MobileCLIP S1"
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
- ]
22030
+ options: [{
22031
+ id: "siglip2-b16-224",
22032
+ label: "SigLIP2 B/16 (Apache-2.0)"
22033
+ }]
22035
22034
  }].map((s) => [s.stepId, s.defaultModelId])));
22036
22035
  var CLUSTER_STEP_SETTING_FIELDS = [{
22037
22036
  stepId: "face-embedding",
@@ -24879,6 +24878,22 @@ var MotionSourceEnum = _enum([
24879
24878
  "device-activity"
24880
24879
  ]);
24881
24880
  /**
24881
+ * What opened an on-motion detection SESSION: the motion source that passed the
24882
+ * camera's `motionSources` gate, and what raised it (the camera itself, or a
24883
+ * sensor the operator attached — D672). `sensorName` is the attached sensor's
24884
+ * device name as the orchestrator's camera-sensors resolution last read it;
24885
+ * absent when unknown or when the camera itself triggered.
24886
+ *
24887
+ * Carried on the session attach ONLY so the runner's `DetectionPhaseTransition`
24888
+ * can say what started the session (D672 rule 11, amended 2026-10-06). The
24889
+ * runner never decides anything on it.
24890
+ */
24891
+ var SessionTriggerSchema = object({
24892
+ source: MotionSourceEnum,
24893
+ triggeredBy: MotionTriggeredBySchema,
24894
+ sensorName: string().optional()
24895
+ });
24896
+ /**
24882
24897
  * List of motion sources active on a camera. Empty array is valid:
24883
24898
  * "no source" — happens for battery cams without firmware motion when
24884
24899
  * the operator hasn't opted into the SW analyzer (would hold the
@@ -25130,6 +25145,14 @@ var RunnerCameraConfigSchema = object({
25130
25145
  */
25131
25146
  motionSources: MotionSourcesSchema.default(["analyzer"]),
25132
25147
  /**
25148
+ * What opened this attach, on a SESSION attach only (see
25149
+ * {@link SessionTriggerSchema}). OPTIONAL with no default: absent on a
25150
+ * standing attach, an occupancy burst, a re-dispatch with no motion event
25151
+ * behind it, and every attach from an orchestrator older than the field — the
25152
+ * runner then names no source on the phase event.
25153
+ */
25154
+ sessionTrigger: SessionTriggerSchema.optional(),
25155
+ /**
25133
25156
  * WHICH root detector runs for this camera. The detection counterpart of
25134
25157
  * {@link motionSources}, same shape and same discipline: a per-camera list
25135
25158
  * of sources the system understands, vendor-agnostic, owned here.
@@ -31582,7 +31605,7 @@ var LocalInterfaceSchema = object({
31582
31605
  name: string(),
31583
31606
  family: _enum(["IPv4", "IPv6"]),
31584
31607
  address: string(),
31585
- /** CIDR shorthand (e.g. `192.168.x.x/24`). Empty when OS doesn't expose. */
31608
+ /** CIDR shorthand (e.g. `192.168.10.10/24`). Empty when OS doesn't expose. */
31586
31609
  cidr: string(),
31587
31610
  /** OS netmask. Stable across calls so the SDK can hash on it. */
31588
31611
  netmask: string(),
@@ -31636,7 +31659,8 @@ var ConnectionEndpointSchema = object({
31636
31659
  "lan-ipv4",
31637
31660
  "lan-ipv6",
31638
31661
  "public",
31639
- "loopback"
31662
+ "loopback",
31663
+ "app-link"
31640
31664
  ]),
31641
31665
  /**
31642
31666
  * Originating-interface kind — `lan`/`wifi`/`docker`/`vpn`/`other`/
@@ -31705,15 +31729,27 @@ var GetConnectionEndpointsResultSchema = object({
31705
31729
  localPort: AdvertisedLocalPortSchema
31706
31730
  });
31707
31731
  /**
31708
- * The chosen outbound endpoint for notification artifacts. `baseUrl: null` =
31709
- * AUTO (resolved from the candidate ranking at send time); `resolved` reports
31710
- * what AUTO currently picks, so the UI can show the effective value either way.
31732
+ * The address flagged for notification links. `baseUrl: null` = AUTO, which
31733
+ * since D709 is the CamStack app link; `resolved` reports the effective value,
31734
+ * so the UI can show it either way.
31711
31735
  */
31712
31736
  var NotificationEndpointSchema = object({
31713
31737
  /** The operator's explicit choice, or null for AUTO. */
31714
31738
  baseUrl: string().nullable(),
31715
- /** What the ranking currently resolves to (null when nothing is reachable). */
31716
- resolved: string().nullable()
31739
+ /**
31740
+ * The effective flagged address: the explicit choice, else (AUTO) the
31741
+ * CamStack app link `https://camstack.zentik.app` (D709). A pre-D709 hub
31742
+ * answered the public tunnel / mesh here, or null.
31743
+ */
31744
+ resolved: string().nullable(),
31745
+ /**
31746
+ * The hub origin an app link carries as `hub=` (D709): the hub's best
31747
+ * public HTTPS address — the tunnel, then the mesh (Tailscale MagicDNS) —
31748
+ * picked from this cap's own palette by `pickAppLinkHub`. `null` when the
31749
+ * hub advertises neither; the app link is then minted without `hub=`.
31750
+ * Absent on a pre-D709 hub.
31751
+ */
31752
+ appLinkHub: string().nullable()
31717
31753
  });
31718
31754
  /**
31719
31755
  * The URLs the SDK / viewer should race for API access. `baseUrls` empty =
@@ -31767,7 +31803,11 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
31767
31803
  * Pass `'https'` when the caller is itself loaded over HTTPS
31768
31804
  * to avoid mixed-content blocks in the browser. The public
31769
31805
  * tunnel always emits `https://` regardless. */
31770
- scheme: _enum(["http", "https"]).optional()
31806
+ scheme: _enum(["http", "https"]).optional(),
31807
+ /** Append the CamStack app link entry (`kind: 'app-link'`, D709) —
31808
+ * an address notification links can be flagged with, not a hub
31809
+ * route. Default `false`: racers and rankers never see it. */
31810
+ includeAppLink: boolean().optional()
31771
31811
  }), 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(), AllowedAddressesSchema), method(AllowedAddressesSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), AllowedAddressesSchema, { kind: "mutation" }), method(_void(), TlsStatusSchema), method(object({ reason: string().optional() }), TlsStatusSchema, {
31772
31812
  kind: "mutation",
31773
31813
  auth: "admin"
@@ -32028,7 +32068,7 @@ var MeshPeerSchema = object({
32028
32068
  tags: array(string()).readonly(),
32029
32069
  /** True when the peer advertises itself as an exit-node candidate. */
32030
32070
  exitNodeOption: boolean(),
32031
- /** Subnet routes the peer advertises (e.g. `["192.168.x.x/24"]`). */
32071
+ /** Subnet routes the peer advertises (e.g. `["192.168.10.0/24"]`). */
32032
32072
  advertisedRoutes: array(string()).readonly(),
32033
32073
  /** Owner account login (e.g. `foo@example.com`). Null for tagged peers. */
32034
32074
  userLogin: string().nullable(),
@@ -32972,7 +33012,13 @@ var OsdStatusSchema = object({ overlays: array(object({
32972
33012
  */
32973
33013
  availablePositions: array(OsdPositionEnum).readonly(),
32974
33014
  /** Firmware does not allow editing the `text` field (e.g. timestamp). */
32975
- readOnly: boolean().optional()
33015
+ readOnly: boolean().optional(),
33016
+ /**
33017
+ * Firmware text ceiling for this overlay. Absent = no known limit.
33018
+ * The OSD manager truncates here on every write — never stores its own
33019
+ * copy on the binding.
33020
+ */
33021
+ maxCharacters: number().int().positive().optional()
32976
33022
  })).readonly() });
32977
33023
  var OsdOverlayPatchSchema = object({
32978
33024
  enabled: boolean().optional(),
@@ -33023,7 +33069,9 @@ var OsdTemplateBindingSchema = object({
33023
33069
  valuePath: string().min(1).max(64),
33024
33070
  /** Convert TO this unit at render (`tryConvertUnit`). Absent = source unit. */
33025
33071
  displayUnit: string().max(16).optional(),
33026
- maxDecimals: number().int().min(0).max(4).default(1)
33072
+ maxDecimals: number().int().min(0).max(4).default(1),
33073
+ /** Raw value → display text (same shape as slot binding). Empty string hides. */
33074
+ valueMap: record(string(), string()).optional()
33027
33075
  });
33028
33076
  /**
33029
33077
  * A named template: bindings (alias → leaf field) + a parser that
@@ -33073,18 +33121,11 @@ var OsdSlotBindingSchema = object({
33073
33121
  source: OsdSourceSchema,
33074
33122
  /** `${value}` and `${unit}` are substituted; every occurrence. */
33075
33123
  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
33124
  /**
33079
33125
  * Decimal places for a numeric value. `0` yields an integer — the
33080
33126
  * documented workaround for firmwares that reject `.` in overlay text.
33081
33127
  */
33082
33128
  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
33129
  /** Raw value → display text, e.g. `{"true":"MOTION","false":""}`. */
33089
33130
  valueMap: record(string(), string()).optional(),
33090
33131
  /** Time windows in which the slot is shown. Absent = always. */
@@ -33093,9 +33134,7 @@ var OsdSlotBindingSchema = object({
33093
33134
  * Display gate, in the notification centre's condition vocabulary.
33094
33135
  * Only the keys reported by `getConditionSupport` are accepted.
33095
33136
  */
33096
- conditions: NcConditionsSchema.optional(),
33097
- /** Rendered when the gate is closed or the value unreadable. Empty = hide. */
33098
- fallbackText: string().max(64).default("")
33137
+ conditions: NcConditionsSchema.optional()
33099
33138
  });
33100
33139
  /** One camera slot, as the operator sees it: firmware truth + our binding. */
33101
33140
  var OsdSlotViewSchema = object({
@@ -48797,12 +48836,14 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
48797
48836
  {
48798
48837
  id: "addons",
48799
48838
  family: "system",
48800
- label: "Addons",
48801
- kinds: [
48802
- "addon-crash-loop",
48803
- "addon-update-available",
48804
- "addon-updated"
48805
- ]
48839
+ label: "Addons stopped",
48840
+ kinds: ["addon-crash-loop"]
48841
+ },
48842
+ {
48843
+ id: "addon-updates",
48844
+ family: "system",
48845
+ label: "Addon updates",
48846
+ kinds: ["addon-update-available", "addon-updated"]
48806
48847
  },
48807
48848
  {
48808
48849
  id: "updates",
@@ -48962,13 +49003,15 @@ var STATE_SUMMARY_SECTION_VARS = [
48962
49003
  },
48963
49004
  {
48964
49005
  name: "summaryAddons",
48965
- label: "Summary: addons",
48966
- example: "@camstack/addon-recorder 1.2.3 → 1.2.4",
48967
- kinds: [
48968
- "addon-crash-loop",
48969
- "addon-update-available",
48970
- "addon-updated"
48971
- ]
49006
+ label: "Summary: addons stopped",
49007
+ example: "hub — recorder stopped after repeated crashes",
49008
+ kinds: ["addon-crash-loop"]
49009
+ },
49010
+ {
49011
+ name: "summaryAddonUpdates",
49012
+ label: "Summary: addon updates",
49013
+ example: "hub:\n• @camstack/addon-recorder 1.2.3 → 1.2.4",
49014
+ kinds: ["addon-update-available", "addon-updated"]
48972
49015
  },
48973
49016
  {
48974
49017
  name: "summaryUpdates",
@@ -49052,6 +49095,7 @@ var STATE_SUMMARY_VARS = [
49052
49095
  [...RULE_BODY_ONLY],
49053
49096
  [...RULE_TEXT],
49054
49097
  ([...RULE_TEXT], [...DEVICE_EVENTS]),
49098
+ ([...RULE_TEXT], [...COMBINED_ALARM]),
49055
49099
  ([...RULE_TEXT], [...DEVICE_EVENTS]),
49056
49100
  ([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
49057
49101
  ([...RULE_TEXT], [...CONSUMABLE]),
@@ -49092,6 +49136,8 @@ var STATE_SUMMARY_VARS = [
49092
49136
  [...RULE_TEXT],
49093
49137
  [...RULE_TEXT],
49094
49138
  [...RULE_TEXT],
49139
+ [...RULE_TEXT],
49140
+ [...RULE_TEXT],
49095
49141
  ...STATE_SUMMARY_VARS
49096
49142
  ];
49097
49143
  new Set([
@@ -99404,7 +99450,6 @@ async function buildSecuritySystem(bctx) {
99404
99450
  mode,
99405
99451
  error: errMsg$11(err)
99406
99452
  } });
99407
- throw new import_dist.HapStatusError(import_dist.HAPStatus.SERVICE_COMMUNICATION_FAILURE);
99408
99453
  }
99409
99454
  });
99410
99455
  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.147",
3
+ "version": "1.2.149",
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",