@camstack/addon-provider-hikvision 1.2.143 → 1.2.145

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.
Files changed (3) hide show
  1. package/dist/addon.js +349 -83
  2. package/dist/addon.mjs +349 -83
  3. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -5413,7 +5413,7 @@ var ZodIssueCode = {
5413
5413
  var ZodFirstPartyTypeKind;
5414
5414
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5415
5415
  //#endregion
5416
- //#region ../types/dist/sleep-DXKLNFvA.mjs
5416
+ //#region ../types/dist/sleep-C16NCZR2.mjs
5417
5417
  /**
5418
5418
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5419
5419
  * window to float samples (D455).
@@ -10802,57 +10802,15 @@ var ClipSearchStrictnessSchema = _enum([
10802
10802
  "balanced",
10803
10803
  "strict"
10804
10804
  ]);
10805
- new Set([
10806
- {
10807
- id: "person",
10808
- name: "Person"
10809
- },
10810
- {
10811
- id: "vehicle",
10812
- name: "Vehicle"
10813
- },
10814
- {
10815
- id: "animal",
10816
- name: "Animal"
10817
- },
10818
- {
10819
- id: "package",
10820
- name: "Package"
10821
- }
10822
- ].map((l) => l.id));
10823
- var COCO_TO_MACRO = {
10824
- mapping: {
10825
- person: "person",
10826
- bicycle: "vehicle",
10827
- car: "vehicle",
10828
- motorcycle: "vehicle",
10829
- airplane: "vehicle",
10830
- bus: "vehicle",
10831
- train: "vehicle",
10832
- truck: "vehicle",
10833
- boat: "vehicle",
10834
- bird: "animal",
10835
- cat: "animal",
10836
- dog: "animal",
10837
- horse: "animal",
10838
- sheep: "animal",
10839
- cow: "animal",
10840
- elephant: "animal",
10841
- bear: "animal",
10842
- zebra: "animal",
10843
- giraffe: "animal",
10844
- suitcase: "package",
10845
- backpack: "package",
10846
- handbag: "package"
10847
- },
10848
- preserveOriginal: false
10849
- };
10850
- /** Steps a root detector may declare it fills. */
10851
- var FILLABLE_STEP_IDS = [
10805
+ /** Steps whose effect a root label can BE. */
10806
+ var LABEL_SUPPLY_STEP_IDS = [
10852
10807
  "animal-classifier",
10853
10808
  "vehicle-classifier",
10854
10809
  "package-detection"
10855
10810
  ];
10811
+ /** Steps whose box a root detection can BE. */
10812
+ var CROP_SUPPLY_STEP_IDS = ["plate-detection", "face-detection"];
10813
+ [...LABEL_SUPPLY_STEP_IDS, ...CROP_SUPPLY_STEP_IDS];
10856
10814
  var MODEL_FORMATS = [
10857
10815
  "onnx",
10858
10816
  "coreml",
@@ -10985,12 +10943,35 @@ var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { wei
10985
10943
  /** True when the weights or their data forbid commercial use. */
10986
10944
  nonCommercial: boolean().optional()
10987
10945
  }));
10988
- /** One `fillsClassifierEffects` entry — see `ModelCatalogEntry.fillsClassifierEffects`. */
10989
- var FillsClassifierEffectSchema = object({
10990
- stepId: _enum(FILLABLE_STEP_IDS),
10946
+ /**
10947
+ * One step a ROOT detector can supply from its own output (D730) — see
10948
+ * `ModelCatalogEntry.suppliesSteps`.
10949
+ *
10950
+ * - `label`: the root's raw class IS the step's answer. `labelToEffect` maps
10951
+ * the root's label to the step's vocabulary; `uncovered` is the vocabulary
10952
+ * the root cannot produce (shown as unavailable, never a blocker).
10953
+ * - `crop`: the root draws the box the step would have found (`license_plate`
10954
+ * for plate-detection, `face` for face-detection). The box becomes a detail
10955
+ * child of the `parentMacro` detection that contains it — never a track.
10956
+ */
10957
+ var RootStepSupplySchema = discriminatedUnion("kind", [object({
10958
+ kind: literal("label"),
10959
+ stepId: _enum(LABEL_SUPPLY_STEP_IDS),
10991
10960
  labelToEffect: record(string(), string()),
10992
10961
  uncovered: array(string()).readonly()
10993
- });
10962
+ }), object({
10963
+ kind: literal("crop"),
10964
+ stepId: _enum(CROP_SUPPLY_STEP_IDS),
10965
+ rootLabels: array(string()).readonly(),
10966
+ parentMacro: _enum(["vehicle", "person"]),
10967
+ childClass: _enum(["plate", "face"]),
10968
+ /**
10969
+ * The root's smaller input side, stamped on read by `rootSuppliesOf` from
10970
+ * the model entry — what a step's `minRootInputPx` gate judges. Never
10971
+ * stored by an import.
10972
+ */
10973
+ rootInputPx: number().int().positive().optional()
10974
+ })]);
10994
10975
  var ModelCatalogEntrySchema = object({
10995
10976
  id: string(),
10996
10977
  name: string(),
@@ -11117,15 +11098,15 @@ var ModelCatalogEntrySchema = object({
11117
11098
  */
11118
11099
  classMap: DetectionCatalogClassMapSchema.optional(),
11119
11100
  /**
11120
- * The pipeline steps this ROOT detector already does the work of (D715):
11121
- * its labels name the effect the step exists to produce (`deer` for
11122
- * `animal-classifier`, `package` for `package-detection`). Derived from the
11123
- * labelmap by `deriveClassifierFills`, never hand-written; a COCO model
11124
- * declares none. Whether a declaration is honoured is the step's own
11125
- * `labelLink` policy (`resolveLabelLink`). `labelToEffect` values are in
11126
- * `FILLABLE_STEP_VOCABULARIES` (guard `check-label-link-vocabulary`).
11101
+ * The pipeline steps this ROOT detector can supply from its own output
11102
+ * (D730): its labels name a step's effect (`deer` for `animal-classifier`)
11103
+ * or draw a step's box (`license_plate` for `plate-detection`). Computed at
11104
+ * import from THIS model's labelmap by `deriveRootSupplies`, never written
11105
+ * by hand and never assumed per family; a row without it is derived on read
11106
+ * (`rootSuppliesOf`). Whether a camera uses it is the step's own
11107
+ * `useRootModel` flag (`resolveRootSupply`).
11127
11108
  */
11128
- fillsClassifierEffects: array(FillsClassifierEffectSchema).readonly().optional(),
11109
+ suppliesSteps: array(RootStepSupplySchema).readonly().optional(),
11129
11110
  /**
11130
11111
  * The model's CLIP feature-space contract (text encoder, dimension, vector
11131
11112
  * index, token window, search floor) — see `clip-model.ts`. Present ONLY on a
@@ -16707,6 +16688,12 @@ method(_void(), array(string()).readonly(), { auth: "admin" }), method(object({
16707
16688
  kind: "mutation",
16708
16689
  auth: "admin"
16709
16690
  });
16691
+ var HUB_ADDRESS_ROLES = [
16692
+ "appConnections",
16693
+ "notificationTaps",
16694
+ "internal",
16695
+ "publicEndpoint"
16696
+ ];
16710
16697
  /**
16711
16698
  * Transport bounds for AI capability methods.
16712
16699
  *
@@ -18469,6 +18456,51 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
18469
18456
  kind: "mutation",
18470
18457
  auth: "admin"
18471
18458
  });
18459
+ new Set([
18460
+ {
18461
+ id: "person",
18462
+ name: "Person"
18463
+ },
18464
+ {
18465
+ id: "vehicle",
18466
+ name: "Vehicle"
18467
+ },
18468
+ {
18469
+ id: "animal",
18470
+ name: "Animal"
18471
+ },
18472
+ {
18473
+ id: "package",
18474
+ name: "Package"
18475
+ }
18476
+ ].map((l) => l.id));
18477
+ var COCO_TO_MACRO = {
18478
+ mapping: {
18479
+ person: "person",
18480
+ bicycle: "vehicle",
18481
+ car: "vehicle",
18482
+ motorcycle: "vehicle",
18483
+ airplane: "vehicle",
18484
+ bus: "vehicle",
18485
+ train: "vehicle",
18486
+ truck: "vehicle",
18487
+ boat: "vehicle",
18488
+ bird: "animal",
18489
+ cat: "animal",
18490
+ dog: "animal",
18491
+ horse: "animal",
18492
+ sheep: "animal",
18493
+ cow: "animal",
18494
+ elephant: "animal",
18495
+ bear: "animal",
18496
+ zebra: "animal",
18497
+ giraffe: "animal",
18498
+ suitcase: "package",
18499
+ backpack: "package",
18500
+ handbag: "package"
18501
+ },
18502
+ preserveOriginal: false
18503
+ };
18472
18504
  var AUDIO_MACRO_LABELS = [
18473
18505
  {
18474
18506
  id: "speech",
@@ -19264,6 +19296,8 @@ var NcSystemEventKindSchema = _enum([
19264
19296
  "stream-offline",
19265
19297
  "node-online",
19266
19298
  "node-offline",
19299
+ "node-restarting",
19300
+ "node-updating",
19267
19301
  "node-inference-unavailable",
19268
19302
  "detection-blind",
19269
19303
  "addon-crash-loop",
@@ -20869,7 +20903,13 @@ var NcAlarmModeDelaysListSchema = array(object({
20869
20903
  * Absent = false (logged, not sent). Even when true it is not sent when that same sensor
20870
20904
  * is the one that starts the entry delay — the entry-delay notification already names it.
20871
20905
  */
20872
- notifySensorRewatched: boolean().optional()
20906
+ notifySensorRewatched: boolean().optional(),
20907
+ /**
20908
+ * D735: notify "ignored" when a sensor this arm bypassed really MOVED while armed (its own
20909
+ * change time is after the arm) and set nothing off. Absent = false (logged, not sent). A
20910
+ * re-sync, a recovery from `unavailable` or a duplicate is never announced, switch or not.
20911
+ */
20912
+ notifySensorIgnored: boolean().optional()
20873
20913
  })).max(8).refine(uniqueModes, { message: "modeDelays: at most one entry per arm mode" });
20874
20914
  var NcAlarmModeDelaysEditListSchema = array(object({
20875
20915
  mode: AlarmArmModeSchema,
@@ -20882,7 +20922,9 @@ var NcAlarmModeDelaysEditListSchema = array(object({
20882
20922
  /** D706: set the switch, or `null` to clear it (back to the default, false). */
20883
20923
  notifyDuringEntryDelay: boolean().nullable().optional(),
20884
20924
  /** D706: set the switch, or `null` to clear it (back to the default, false). */
20885
- notifySensorRewatched: boolean().nullable().optional()
20925
+ notifySensorRewatched: boolean().nullable().optional(),
20926
+ /** D735: set the switch, or `null` to clear it (back to the default, false). */
20927
+ notifySensorIgnored: boolean().nullable().optional()
20886
20928
  })).max(8).refine(uniqueModes, { message: "modeDelays: at most one edit per arm mode" });
20887
20929
  /** One switch of the alarm table: put ONE device on, or take it off, ONE mode's list. */
20888
20930
  var NcAlarmNonBlockingEditSchema = object({
@@ -23781,6 +23823,34 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
23781
23823
  timestamp: number()
23782
23824
  });
23783
23825
  /**
23826
+ * A root model's boxes standing in for one crop-kind step's own inference
23827
+ * (D730) — see `runPipeline.suppliedRoot`.
23828
+ */
23829
+ var SuppliedRootOutputSchema = object({
23830
+ stepId: string(),
23831
+ /** The root model that drew the boxes — stamped on the result. */
23832
+ modelId: string(),
23833
+ detections: array(object({
23834
+ /** `[x1, y1, x2, y2]` in the pixels of the call's image. */
23835
+ bbox: tuple([
23836
+ number(),
23837
+ number(),
23838
+ number(),
23839
+ number()
23840
+ ]),
23841
+ score: number(),
23842
+ /**
23843
+ * Five facial landmarks in the same pixels — a face the step's own
23844
+ * detector already re-found inside a root face box (D730), so its
23845
+ * embedder child aligns it exactly as it aligns any detected face.
23846
+ */
23847
+ landmarks: array(object({
23848
+ x: number(),
23849
+ y: number()
23850
+ })).optional()
23851
+ })).min(1)
23852
+ });
23853
+ /**
23784
23854
  * Reference to the frame's retained NATIVE surface + the parent crop's placement
23785
23855
  * within the frame, so the executor can re-cut a leaf child ROI at native
23786
23856
  * resolution on the detail plane. See the `runPipeline` `nativeCropRef` field.
@@ -23911,7 +23981,7 @@ var PipelineModelOptionSchema = object({
23911
23981
  legacy: boolean().optional(),
23912
23982
  provider: ModelProviderIdSchema.optional(),
23913
23983
  defaultConfidence: number().optional(),
23914
- fillsClassifierEffects: array(FillsClassifierEffectSchema).readonly().optional()
23984
+ suppliesSteps: array(RootStepSupplySchema).readonly().optional()
23915
23985
  });
23916
23986
  var ConfigFieldBridge = custom();
23917
23987
  var PipelineAddonSchemaSchema = object({
@@ -24179,7 +24249,16 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
24179
24249
  * `device-not-servable`), and nothing reaches the camera's live
24180
24250
  * trace stream. Absent ⇒ unchanged behaviour.
24181
24251
  */
24182
- replay: literal(true).optional()
24252
+ replay: literal(true).optional(),
24253
+ /**
24254
+ * Root-supplied detections for the tree's ROOT step (D730). Set by
24255
+ * `runDetailSubtree` when the camera's root model supplies a crop-kind
24256
+ * step (a Frigate+ `license_plate` for `plate-detection`): the step is
24257
+ * NOT inferred, these boxes are its output, and its children (the plate
24258
+ * reader) run on them through their own crop policy. Boxes are in the
24259
+ * PIXELS of the image this call carries. Absent ⇒ the root step runs.
24260
+ */
24261
+ suppliedRoot: SuppliedRootOutputSchema.optional()
24183
24262
  }), PipelineRunResultBridge, { kind: "mutation" }), method(object({
24184
24263
  steps: array(PipelineStepInputSchema).min(1),
24185
24264
  frames: array(FrameInputSchema).min(1).max(255),
@@ -25321,7 +25400,22 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
25321
25400
  */
25322
25401
  cropJpeg: string().optional(),
25323
25402
  parent: DetailParentSchema,
25324
- steps: array(string()).optional()
25403
+ steps: array(string()).optional(),
25404
+ /**
25405
+ * The camera's root model already drew this step's boxes (D730): a
25406
+ * `license_plate` inside the parent vehicle. The named step is NOT
25407
+ * inferred — these FRAME-space boxes are its output — and its
25408
+ * requested children (the plate reader) run on them. Absent ⇒ every
25409
+ * requested step infers as before.
25410
+ */
25411
+ supplied: object({
25412
+ stepId: string(),
25413
+ modelId: string(),
25414
+ boxes: array(object({
25415
+ bbox: NativeCropBboxSchema,
25416
+ score: number()
25417
+ })).min(1)
25418
+ }).optional()
25325
25419
  }), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" }), method(object({
25326
25420
  /** Catalog step id, e.g. `clip-embedding`. */
25327
25421
  stepId: string(),
@@ -29173,6 +29267,14 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
29173
29267
  */
29174
29268
  alive: boolean()
29175
29269
  })), method(object({
29270
+ deviceId: number().int().nonnegative(),
29271
+ sessionId: string(),
29272
+ downlinkMbps: number().nonnegative()
29273
+ }), object({
29274
+ outcome: _enum(["switching", "held"]),
29275
+ tier: CamProfileSchema.nullable(),
29276
+ reason: string()
29277
+ }), { kind: "mutation" }), method(object({
29176
29278
  deviceId: number().int().nonnegative(),
29177
29279
  sessionId: string()
29178
29280
  }), WebrtcSessionDebugSchema, { kind: "query" });
@@ -32984,7 +33086,8 @@ var ConnectionEndpointSchema = object({
32984
33086
  "lan-ipv6",
32985
33087
  "public",
32986
33088
  "loopback",
32987
- "app-link"
33089
+ "app-link",
33090
+ "custom"
32988
33091
  ]),
32989
33092
  /**
32990
33093
  * Originating-interface kind — `lan`/`wifi`/`docker`/`vpn`/`other`/
@@ -33053,7 +33156,7 @@ var GetConnectionEndpointsResultSchema = object({
33053
33156
  localPort: AdvertisedLocalPortSchema
33054
33157
  });
33055
33158
  /**
33056
- * The address flagged for notification links. `baseUrl: null` = AUTO, which
33159
+ * The address flagged for notification taps (`notificationTaps`). `baseUrl: null` = AUTO, which
33057
33160
  * since D709 is the CamStack app link; `resolved` reports the effective value,
33058
33161
  * so the UI can show it either way.
33059
33162
  */
@@ -33086,6 +33189,72 @@ var ViewerEndpointsSchema = object({
33086
33189
  /** What the ranking currently resolves to (may be empty if nothing is up). */
33087
33190
  resolved: array(string()).readonly()
33088
33191
  });
33192
+ /**
33193
+ * DEPRECATED compatibility shape of `getHubAddresses` (D729 amendment, kept
33194
+ * for addons built against it): `cluster` is the `internal` role, `browser`
33195
+ * the `publicEndpoint` role; `override` is the flagged address.
33196
+ */
33197
+ var HubAddressSnapshotSchema = object({
33198
+ override: string().nullable(),
33199
+ resolved: string().nullable(),
33200
+ source: _enum([
33201
+ "override",
33202
+ "auto",
33203
+ "none"
33204
+ ])
33205
+ });
33206
+ var HubAddressesSchema = object({
33207
+ cluster: HubAddressSnapshotSchema,
33208
+ browser: HubAddressSnapshotSchema
33209
+ });
33210
+ /**
33211
+ * What an address is used for (`hub-address.ts`, D734). `appConnections` is
33212
+ * many-valued; `notificationTaps`, `publicEndpoint` and `internal` are carried
33213
+ * by at most one address.
33214
+ */
33215
+ var HubAddressRoleSchema = _enum(HUB_ADDRESS_ROLES);
33216
+ var RoleSourceSchema = _enum([
33217
+ "flagged",
33218
+ "auto",
33219
+ "none"
33220
+ ]);
33221
+ /** One single-valued role: the flagged address, the one in use, and why. */
33222
+ var HubAddressRoleResolutionSchema = object({
33223
+ /** The address carrying the flag, or null = automatic. */
33224
+ flagged: string().nullable(),
33225
+ /** The address in use, or null when nothing qualifies (never loopback). */
33226
+ resolved: string().nullable(),
33227
+ source: RoleSourceSchema
33228
+ });
33229
+ var HubAppConnectionsResolutionSchema = object({
33230
+ /** The addresses flagged `appConnections`, or empty = automatic. */
33231
+ flagged: array(string()).readonly(),
33232
+ /** What the apps race right now. */
33233
+ resolved: array(string()).readonly(),
33234
+ source: RoleSourceSchema
33235
+ });
33236
+ var HubAddressBookSchema = object({
33237
+ rows: array(ConnectionEndpointSchema.extend({
33238
+ /** In the hub's detected palette right now. */
33239
+ detected: boolean(),
33240
+ /** Entered by the operator (removable). */
33241
+ custom: boolean(),
33242
+ /** The roles explicitly flagged on this address. */
33243
+ flags: array(HubAddressRoleSchema).readonly(),
33244
+ /** The roles this address serves right now — flagged or automatic. */
33245
+ inUse: array(HubAddressRoleSchema).readonly(),
33246
+ /** The roles this address may be flagged with. */
33247
+ eligible: array(HubAddressRoleSchema).readonly()
33248
+ })).readonly(),
33249
+ roles: object({
33250
+ appConnections: HubAppConnectionsResolutionSchema,
33251
+ notificationTaps: HubAddressRoleResolutionSchema,
33252
+ internal: HubAddressRoleResolutionSchema,
33253
+ publicEndpoint: HubAddressRoleResolutionSchema
33254
+ }),
33255
+ /** The `hub=` an app link carries (D709), or null. */
33256
+ appLinkHub: string().nullable()
33257
+ });
33089
33258
  var AllowedAddressesSchema = object({
33090
33259
  /**
33091
33260
  * Allowlist of interface addresses operators have explicitly opted
@@ -33129,10 +33298,27 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
33129
33298
  * tunnel always emits `https://` regardless. */
33130
33299
  scheme: _enum(["http", "https"]).optional(),
33131
33300
  /** Append the CamStack app link entry (`kind: 'app-link'`, D709) —
33132
- * an address notification links can be flagged with, not a hub
33301
+ * an address notification taps can be flagged with, not a hub
33133
33302
  * route. Default `false`: racers and rankers never see it. */
33134
33303
  includeAppLink: boolean().optional()
33135
- }), 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, {
33304
+ }), 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(object({ scheme: _enum(["http", "https"]).optional() }).optional(), HubAddressBookSchema), method(object({
33305
+ baseUrl: string(),
33306
+ label: string().max(80)
33307
+ }), HubAddressBookSchema, {
33308
+ kind: "mutation",
33309
+ auth: "admin"
33310
+ }), method(object({ baseUrl: string() }), HubAddressBookSchema, {
33311
+ kind: "mutation",
33312
+ auth: "admin"
33313
+ }), method(object({
33314
+ role: HubAddressRoleSchema,
33315
+ baseUrl: string().nullable(),
33316
+ enabled: boolean(),
33317
+ acceptInsecureHttp: boolean().optional()
33318
+ }), HubAddressBookSchema, {
33319
+ kind: "mutation",
33320
+ auth: "admin"
33321
+ }), method(_void(), HubAddressesSchema), 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, {
33136
33322
  kind: "mutation",
33137
33323
  auth: "admin"
33138
33324
  }), method(object({
@@ -33590,7 +33776,8 @@ var MotionStatusSchema = object({
33590
33776
  * writes this slice (not even a boot seed), and neither does the runner's
33591
33777
  * phase machine: its phase is "a session is attached" for every on-motion
33592
33778
  * session, not motion, and it now has its own `DetectionPhaseTransition`.
33593
- * A provider's `isDetected` answers from the hub's slice.
33779
+ * A provider's `isDetected` and `getStatus` answer from the hub's slice
33780
+ * (`hubMotionNativeProvider`).
33594
33781
  * - **Sensors** (Home Assistant binary sensors, Homematic, Matter, Alexa
33595
33782
  * imports) — the provider pushes both edges itself, from the upstream
33596
33783
  * system's own state change. That is the sensor's own fact.
@@ -45165,12 +45352,24 @@ Object.freeze({
45165
45352
  addonId: null,
45166
45353
  access: "view"
45167
45354
  },
45355
+ "localNetwork.addCustomAddress": {
45356
+ capName: "local-network",
45357
+ capScope: "system",
45358
+ addonId: null,
45359
+ access: "create"
45360
+ },
45168
45361
  "localNetwork.downloadCa": {
45169
45362
  capName: "local-network",
45170
45363
  capScope: "system",
45171
45364
  addonId: null,
45172
45365
  access: "view"
45173
45366
  },
45367
+ "localNetwork.getAddresses": {
45368
+ capName: "local-network",
45369
+ capScope: "system",
45370
+ addonId: null,
45371
+ access: "view"
45372
+ },
45174
45373
  "localNetwork.getAllowedAddresses": {
45175
45374
  capName: "local-network",
45176
45375
  capScope: "system",
@@ -45183,6 +45382,12 @@ Object.freeze({
45183
45382
  addonId: null,
45184
45383
  access: "view"
45185
45384
  },
45385
+ "localNetwork.getHubAddresses": {
45386
+ capName: "local-network",
45387
+ capScope: "system",
45388
+ addonId: null,
45389
+ access: "view"
45390
+ },
45186
45391
  "localNetwork.getNotificationEndpoint": {
45187
45392
  capName: "local-network",
45188
45393
  capScope: "system",
@@ -45219,6 +45424,12 @@ Object.freeze({
45219
45424
  addonId: null,
45220
45425
  access: "create"
45221
45426
  },
45427
+ "localNetwork.removeCustomAddress": {
45428
+ capName: "local-network",
45429
+ capScope: "system",
45430
+ addonId: null,
45431
+ access: "delete"
45432
+ },
45222
45433
  "localNetwork.resetAllowlistToBestMatch": {
45223
45434
  capName: "local-network",
45224
45435
  capScope: "system",
@@ -45231,6 +45442,12 @@ Object.freeze({
45231
45442
  addonId: null,
45232
45443
  access: "create"
45233
45444
  },
45445
+ "localNetwork.setAddressRole": {
45446
+ capName: "local-network",
45447
+ capScope: "system",
45448
+ addonId: null,
45449
+ access: "create"
45450
+ },
45234
45451
  "localNetwork.setAllowedAddresses": {
45235
45452
  capName: "local-network",
45236
45453
  capScope: "system",
@@ -49485,6 +49702,12 @@ Object.freeze({
49485
49702
  addonId: null,
49486
49703
  access: "create"
49487
49704
  },
49705
+ "webrtcSession.applyDownlinkProbe": {
49706
+ capName: "webrtc-session",
49707
+ capScope: "device",
49708
+ addonId: null,
49709
+ access: "create"
49710
+ },
49488
49711
  "webrtcSession.closeSession": {
49489
49712
  capName: "webrtc-session",
49490
49713
  capScope: "device",
@@ -53625,6 +53848,11 @@ Object.freeze({
53625
53848
  form: "single",
53626
53849
  optional: false
53627
53850
  }],
53851
+ "webrtcSession.applyDownlinkProbe": [{
53852
+ name: "deviceId",
53853
+ form: "single",
53854
+ optional: false
53855
+ }],
53628
53856
  "webrtcSession.closeSession": [{
53629
53857
  name: "deviceId",
53630
53858
  form: "single",
@@ -53854,6 +54082,8 @@ new Map(Object.entries({
53854
54082
  "detection-blind": "device-events",
53855
54083
  "node-online": "system",
53856
54084
  "node-offline": "system",
54085
+ "node-restarting": "system",
54086
+ "node-updating": "system",
53857
54087
  "node-inference-unavailable": "system",
53858
54088
  "addon-crash-loop": "system",
53859
54089
  "addon-update-available": "system",
@@ -53931,6 +54161,7 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
53931
54161
  kinds: [
53932
54162
  "node-offline",
53933
54163
  "node-online",
54164
+ "node-restarting",
53934
54165
  "node-inference-unavailable"
53935
54166
  ]
53936
54167
  },
@@ -53952,6 +54183,7 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
53952
54183
  label: "Server & container updates",
53953
54184
  kinds: [
53954
54185
  "server-update-available",
54186
+ "node-updating",
53955
54187
  "server-updated",
53956
54188
  "wrapper-update-available"
53957
54189
  ]
@@ -54099,6 +54331,7 @@ var STATE_SUMMARY_SECTION_VARS = [
54099
54331
  kinds: [
54100
54332
  "node-offline",
54101
54333
  "node-online",
54334
+ "node-restarting",
54102
54335
  "node-inference-unavailable"
54103
54336
  ]
54104
54337
  },
@@ -54120,6 +54353,7 @@ var STATE_SUMMARY_SECTION_VARS = [
54120
54353
  example: "server 1.2.377 → 1.2.378",
54121
54354
  kinds: [
54122
54355
  "server-update-available",
54356
+ "node-updating",
54123
54357
  "server-updated",
54124
54358
  "wrapper-update-available"
54125
54359
  ]
@@ -54152,7 +54386,7 @@ var STATE_SUMMARY_VARS = [
54152
54386
  {
54153
54387
  name: "summarySection",
54154
54388
  label: "Summary: this section",
54155
- description: "The section a per-section summary row is about (D698); on a summary sent as one message, every section it reports, comma-separated.",
54389
+ description: "The section a per-section summary row is about; on a summary sent as one message, every section it reports, comma-separated.",
54156
54390
  example: "Batterie scariche",
54157
54391
  group: "system",
54158
54392
  families: ["rule"],
@@ -54575,10 +54809,9 @@ TimelapseRuleInputSchema.extend({
54575
54809
  createdAt: number(),
54576
54810
  updatedAt: number()
54577
54811
  });
54578
- async function readHubMotionDetected(deviceState, deviceId) {
54579
- let slice;
54812
+ async function readSlice(deviceState, deviceId) {
54580
54813
  try {
54581
- slice = await deviceState.getCapSlice.query({
54814
+ return await deviceState.getCapSlice.query({
54582
54815
  deviceId,
54583
54816
  capName: "motion"
54584
54817
  });
@@ -54586,10 +54819,44 @@ async function readHubMotionDetected(deviceState, deviceId) {
54586
54819
  const reason = err instanceof Error ? err.message : String(err);
54587
54820
  throw new Error(`motion state of device ${deviceId} is unreadable: ${reason}`, { cause: err });
54588
54821
  }
54589
- const detected = slice?.["detected"];
54822
+ }
54823
+ /**
54824
+ * The hub's `motion` slice as a `MotionStatus`, or `null` when nobody has
54825
+ * published it since the hub started. Throws when the hub does not answer or
54826
+ * the slice is malformed — never a made-up "no motion".
54827
+ */
54828
+ async function readHubMotionStatus(deviceState, deviceId) {
54829
+ const slice = await readSlice(deviceState, deviceId);
54830
+ if (slice === null) return null;
54831
+ const parsed = MotionStatusSchema.safeParse(slice);
54832
+ if (!parsed.success) throw new Error(`motion state of device ${deviceId} is malformed on the hub: ${parsed.error.message}`);
54833
+ return parsed.data;
54834
+ }
54835
+ async function readHubMotionDetected(deviceState, deviceId) {
54836
+ const detected = (await readSlice(deviceState, deviceId))?.["detected"];
54590
54837
  if (typeof detected !== "boolean") throw new Error(`motion state of device ${deviceId} is not published yet (unknown)`);
54591
54838
  return detected;
54592
54839
  }
54840
+ /**
54841
+ * The native `motion` provider of a camera whose slice the orchestrator writes
54842
+ * (D696): `isDetected` AND `getStatus`, both from the hub. `owner` names the
54843
+ * provider class in the deviceId-mismatch error.
54844
+ */
54845
+ function hubMotionNativeProvider(deviceState, deviceId, owner) {
54846
+ const ownDevice = (asked) => {
54847
+ if (asked !== deviceId) throw new Error(`${owner}: motion deviceId mismatch, expected ${deviceId}, got ${asked}`);
54848
+ };
54849
+ return {
54850
+ isDetected: async ({ deviceId: asked }) => {
54851
+ ownDevice(asked);
54852
+ return readHubMotionDetected(deviceState, deviceId);
54853
+ },
54854
+ getStatus: async ({ deviceId: asked }) => {
54855
+ ownDevice(asked);
54856
+ return readHubMotionStatus(deviceState, deviceId);
54857
+ }
54858
+ };
54859
+ }
54593
54860
  MotionOnMotionChangedDataSchema.omit({ triggeredBy: true });
54594
54861
  function providerMotionEvent(source, data) {
54595
54862
  return createEvent(EventCategory.ProviderMotion, source, data);
@@ -55635,7 +55902,7 @@ function createClipStreamHandler(deps) {
55635
55902
  * Node-only (`node:child_process`), so it lives under `@camstack/types/node`.
55636
55903
  */
55637
55904
  /** The detail a site refusing for want of a binary puts in its refusal. */
55638
- var NO_PINNED_FFMPEG_DETAIL = "no pinned ffmpeg on this node (D540)";
55905
+ var NO_PINNED_FFMPEG_DETAIL = "no pinned ffmpeg on this node";
55639
55906
  /**
55640
55907
  * {@link pinnedFfmpegSpawner}, asked at the point of use through the node's
55641
55908
  * resolver (`memoizePinnedFfmpeg`). A site that keeps the RESOLVER rather than
@@ -66965,15 +67232,14 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
66965
67232
  * The native `motion` cap. Its presence is what defaults the camera to
66966
67233
  * `motionSources: ['onboard']`. This provider writes NO `motion` slice (D696):
66967
67234
  * the orchestrator is its only writer, with the EFFECTIVE motion, on the hub.
66968
- * `isDetected` therefore answers from the hub's slice; an unreadable hub, or
66969
- * a slice nobody has published since the hub started, makes the call fail.
66970
- * It never answers `false` for "unknown" (D49, D393).
67235
+ * `isDetected` AND `getStatus` therefore answer from the hub's slice
67236
+ * (`hubMotionNativeProvider`; without its own `getStatus` the framework's
67237
+ * default reads this process's empty local state and answers `null`). An
67238
+ * unreadable hub fails both; never `false` for "unknown" (D49, D393).
66971
67239
  */
66972
67240
  registerMotionCap() {
66973
- this.ctx.registerNativeCap(motionCapability, { isDetected: async ({ deviceId }) => {
66974
- if (deviceId !== this.id) throw new Error(`HikvisionCamera: deviceId mismatch, expected ${this.id}, got ${deviceId}`);
66975
- return readHubMotionDetected(this.ctx.api.deviceState, this.id);
66976
- } });
67241
+ const motionProvider = hubMotionNativeProvider(this.ctx.api.deviceState, this.id, "HikvisionCamera");
67242
+ this.ctx.registerNativeCap(motionCapability, motionProvider);
66977
67243
  }
66978
67244
  handleMotionEvent(ev, camStreamId) {
66979
67245
  const now = ev.observedAt;