@camstack/addon-provider-amcrest 0.2.71 → 0.2.73

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/addon.js CHANGED
@@ -6,7 +6,7 @@ let node_crypto = require("node:crypto");
6
6
  let node_http = require("node:http");
7
7
  let node_https = require("node:https");
8
8
  let node_os = require("node:os");
9
- //#region ../types/dist/event-category-BZL-fdNj.mjs
9
+ //#region ../types/dist/event-category-zAv7pMUz.mjs
10
10
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
11
11
  EventCategory["SystemBoot"] = "system.boot";
12
12
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -378,6 +378,13 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
378
378
  */
379
379
  EventCategory["BatteryOnStatusChanged"] = "battery.onStatusChanged";
380
380
  /**
381
+ * Cap event fired by every device that registers the `network-link`
382
+ * capability. Mirrors the cap definition's `onStatusChanged`. Carries
383
+ * `{ deviceId, status: NetworkLinkStatus }` — a link switch or a signal
384
+ * reading that moved.
385
+ */
386
+ EventCategory["NetworkLinkOnStatusChanged"] = "network-link.onStatusChanged";
387
+ /**
381
388
  * Emitted by the battery cap provider WHEN `wakeForStream` enters the
382
389
  * "wake in progress" window — between the Baichuan wake-up issue and
383
390
  * the camera's first dialed-back RTP packet. The stream-broker
@@ -23848,6 +23855,88 @@ onStatusChanged: { data: object({
23848
23855
  volatileStateFields: ["lastUpdated"]
23849
23856
  };
23850
23857
  /**
23858
+ * Network-link snapshot. Same shape for every provider (a Reolink wifi
23859
+ * camera, a Home Assistant device with a signal-strength sensor, a Tapo
23860
+ * plug): one slice under `device.runtimeState['network-link']`, one badge,
23861
+ * one Home Assistant projection.
23862
+ */
23863
+ var NetworkLinkStatusSchema = object({
23864
+ /** The link the device is on. `'unknown'` = not read yet, not "no link". */
23865
+ type: _enum([
23866
+ "wifi",
23867
+ "ethernet",
23868
+ "cellular",
23869
+ "unknown"
23870
+ ]),
23871
+ /**
23872
+ * Link quality, 0..100 inclusive, normalised by the provider from whatever
23873
+ * the firmware reports (bars, RSSI, a vendor scale). **`null` means NOT
23874
+ * KNOWN or NOT APPLICABLE** — a wired link has no signal, and a wireless
23875
+ * one whose reading has not landed must not be drawn at 0 %. Consumers
23876
+ * SKIP a null rather than coerce it.
23877
+ */
23878
+ signalPercent: number().min(0).max(100).nullable(),
23879
+ /** Raw received signal strength in dBm, when the firmware reports one. */
23880
+ rssiDbm: number().optional(),
23881
+ /** Network name of a wireless link, when the firmware reports it. */
23882
+ ssid: string().optional(),
23883
+ /** Ms epoch of the last observation. Lets consumers reason about freshness. */
23884
+ lastUpdated: number()
23885
+ });
23886
+ var networkLinkCapability = {
23887
+ name: "network-link",
23888
+ scope: "device",
23889
+ deviceNative: true,
23890
+ mode: "singleton",
23891
+ deviceTypes: [
23892
+ DeviceType.Camera,
23893
+ DeviceType.Sensor,
23894
+ DeviceType.Button,
23895
+ DeviceType.Switch,
23896
+ DeviceType.Light,
23897
+ DeviceType.Lock,
23898
+ DeviceType.Siren
23899
+ ],
23900
+ methods: {},
23901
+ events: {
23902
+ /**
23903
+ * Emitted whenever the cached status changes (a link switch, a signal
23904
+ * reading that moved). Mirrored on the parent chain by the
23905
+ * DeviceEventPropagator like `battery.onStatusChanged`.
23906
+ */
23907
+ onStatusChanged: { data: object({
23908
+ deviceId: number(),
23909
+ status: NetworkLinkStatusSchema
23910
+ }) } },
23911
+ status: {
23912
+ schema: NetworkLinkStatusSchema,
23913
+ kind: "push",
23914
+ empty: {
23915
+ type: "unknown",
23916
+ signalPercent: null,
23917
+ lastUpdated: 0
23918
+ }
23919
+ },
23920
+ /**
23921
+ * Runtime-state slice — every provider stores the same shape under
23922
+ * `device.runtimeState['network-link']`, read once by the badge and the
23923
+ * Home Assistant projector regardless of the driver.
23924
+ */
23925
+ runtimeState: NetworkLinkStatusSchema,
23926
+ /**
23927
+ * Runtime-state durability: **restored** — a link reading is slow to
23928
+ * change and a sleeping battery camera may not report for hours; the
23929
+ * restored slice is what the badge shows until the next read.
23930
+ *
23931
+ * See `RuntimeStateDurability`. Enforced by
23932
+ * `scripts/check-runtime-state-durability.ts`.
23933
+ */
23934
+ durability: "restored",
23935
+ /** Clock fields: written, but excluded from the compare that decides
23936
+ * whether persisting is worth a SQLite commit. */
23937
+ volatileStateFields: ["lastUpdated"]
23938
+ };
23939
+ /**
23851
23940
  * Generic boolean sensor — last-resort fallback when no domain-
23852
23941
  * specific binary cap fits (Home Assistant `binary_sensor` without a
23853
23942
  * known `device_class`, or a domain we haven't typed yet). Pure
@@ -29065,6 +29154,287 @@ var ptzAutotrackCapability = {
29065
29154
  */
29066
29155
  durability: "session"
29067
29156
  };
29157
+ /**
29158
+ * `navigation` — a device-scoped capability that natively expresses the FULL
29159
+ * navigation / action surface of a robot that DRIVES ITSELF and carries an
29160
+ * on-board camera (the Dreame robot-vacuum camera is the first provider).
29161
+ *
29162
+ * Why a NEW cap rather than overloading `ptz`:
29163
+ * - `ptz` moves a *gimbal* on a fixed camera (pan/tilt/zoom of the lens). A
29164
+ * robot vacuum has no gimbal — the whole chassis drives, turns and spins.
29165
+ * The two are different physical models: PTZ is absolute-position + presets,
29166
+ * navigation is momentary drive nudges + discrete robot ACTIONS
29167
+ * (dock / spot-clean / follow-pet / go-to-point / …).
29168
+ * - This cap is the SOURCE OF TRUTH. Two consumers adapt from it rather than
29169
+ * the reverse:
29170
+ * 1. a native CamStack navigation panel (data-driven from `listActions`
29171
+ * / `getOptions`), and
29172
+ * 2. the PTZ surface — a thin adapter mimics `ptz` from `navigation` so a
29173
+ * robot camera shows up in the existing PTZ control path without every
29174
+ * PTZ provider learning about robots. The mapping lives in the adapter,
29175
+ * not here (see the addon design note):
29176
+ * ptz.continuousMove({pan,tilt}) → navigation.move({pan,tilt})
29177
+ * ptz.stop() → navigation.stop()
29178
+ * ptz.goHome() → navigation.runAction('goHome')
29179
+ * ptz.getPresets() → navigation.listActions() (id→preset)
29180
+ * ptz.goToPreset(id) → navigation.runAction(id)
29181
+ *
29182
+ * ## Continuous drive
29183
+ *
29184
+ * `move` is MOMENTARY. Fluid navigation comes from the UI (or the PTZ adapter)
29185
+ * sending `move({pan,tilt})` REPEATEDLY at ~1 Hz while a direction is held, and
29186
+ * one `stop()` on release — exactly like the robot app's remote-drive joystick.
29187
+ * The provider forwards EACH `move` to one drive write; it must NOT debounce or
29188
+ * coalesce them. The UI owns the cadence.
29189
+ *
29190
+ * ## The action dictionary
29191
+ *
29192
+ * The discrete controls (dock / locate / spot-clean / follow / flash / sounds)
29193
+ * are a DATA-DRIVEN dictionary the cap exposes via `listActions()`. Each entry
29194
+ * carries `{ id, kind, label, icon }` (plus `soundId` for sound entries) so the
29195
+ * native panel AND the PTZ mimic render buttons WITHOUT hardcoding a
29196
+ * vendor-specific list. `kind: 'action'` entries are triggered with
29197
+ * `runAction({ actionId })`; `kind: 'sound'` entries with `playSound({ soundId })`
29198
+ * (the entry carries the `soundId` to pass). The general primitives — `move`,
29199
+ * `stop`, `goToPoint` — stay as first-class methods, not dictionary entries.
29200
+ *
29201
+ * NOTE (provider wiring): the first provider (Dreame) drives this with the RAW
29202
+ * `callAction(siid,aiid,in)` / `setProperty({siid,piid,value})` MIoT primitives
29203
+ * that the currently-published `@apocaliss92/nodedreame` already exposes on
29204
+ * every device handle. A future nodedreame publish adds a typed
29205
+ * `DreameCameraController` (drive / playPetSound / spotClean / findPet / …); the
29206
+ * provider can then swap the raw calls for the typed methods with no change to
29207
+ * THIS contract.
29208
+ */
29209
+ /**
29210
+ * A momentary drive nudge. The robot MOVES (no gimbal) for as long as the caller
29211
+ * keeps sending nudges (~1 Hz); an explicit `stop` (or letting the nudges lapse)
29212
+ * halts it.
29213
+ *
29214
+ * - `pan` — turn: negative = left, positive = right, 0 = straight.
29215
+ * - `tilt` — throttle: positive = forward, negative = spin / turn-around.
29216
+ * - `speed` — optional intensity hint [0, 1]; the provider may scale the drive
29217
+ * vector by it (drivers without proportional drive ignore it).
29218
+ *
29219
+ * `pan` / `tilt` are normalized [-1, 1]. Both optional so a caller can nudge one
29220
+ * axis alone; an all-undefined nudge is a no-op.
29221
+ */
29222
+ var NavigationMoveCommandSchema = object({
29223
+ pan: number().min(-1).max(1).optional(),
29224
+ tilt: number().min(-1).max(1).optional(),
29225
+ speed: number().min(0).max(1).optional()
29226
+ });
29227
+ /**
29228
+ * The enumerated discrete actions a navigation-capable robot can perform via
29229
+ * `runAction`. This is the CLOSED vocabulary; a given device advertises the
29230
+ * subset it supports through `listActions`. Sounds are NOT here — they go through
29231
+ * `playSound` (see the `sound` dictionary entries).
29232
+ */
29233
+ var NavigationActionIdSchema = _enum([
29234
+ "goHome",
29235
+ "locate",
29236
+ "spotClean",
29237
+ "findPet",
29238
+ "personFollow",
29239
+ "stop",
29240
+ "startClean",
29241
+ "pauseClean",
29242
+ "dockWash",
29243
+ "autoEmpty",
29244
+ "flashOn",
29245
+ "flashOff"
29246
+ ]);
29247
+ /** Whether a dictionary entry is a `runAction` action or a `playSound` sound. */
29248
+ var NavigationEntryKindSchema = _enum(["action", "sound"]);
29249
+ /**
29250
+ * One entry in the navigation action dictionary — the DATA-DRIVEN unit both the
29251
+ * native panel and the PTZ mimic render as a button.
29252
+ *
29253
+ * - `id` — stable id. For `kind:'action'` it is a {@link NavigationActionId}
29254
+ * (pass to `runAction`); for `kind:'sound'` it is a namespaced id
29255
+ * (`sound:meow`) whose `soundId` is passed to `playSound`.
29256
+ * - `icon` — icon HINT (lucide-style name; the UI maps it to its own set).
29257
+ * - `label` — operator-facing English label.
29258
+ * - `soundId` — wire sound id, present only on `kind:'sound'` entries.
29259
+ * - `enabled` — per-device FEATURE FLAG. `listActions` reports it so the UI /
29260
+ * PTZ render ONLY enabled entries. Data-driven: the provider
29261
+ * flips it from config, never by editing code.
29262
+ */
29263
+ var NavigationActionEntrySchema = object({
29264
+ id: string(),
29265
+ kind: NavigationEntryKindSchema,
29266
+ label: string(),
29267
+ icon: string(),
29268
+ /** Present only on `kind:'sound'` entries — the id to pass to `playSound`. */
29269
+ soundId: number().int().optional(),
29270
+ /** Per-device feature flag — render this entry only when true. */
29271
+ enabled: boolean()
29272
+ });
29273
+ /** Coordinates for `goToPoint` — a point on the robot's live map. */
29274
+ var NavigationPointSchema = object({
29275
+ x: number(),
29276
+ y: number()
29277
+ });
29278
+ /**
29279
+ * Per-device FEATURE-FLAG report for the general (non-dictionary) primitives.
29280
+ * The cap reports which are enabled so the UI / PTZ render only the controls
29281
+ * that are turned on for THIS device. Data-driven: the provider derives these
29282
+ * from config + probe, never hardcoded in the UI. The per-DICTIONARY-entry flags
29283
+ * live on {@link NavigationActionEntrySchema.enabled}; these gate the primitives
29284
+ * that are not dictionary entries.
29285
+ *
29286
+ * - `move` / `stop` — the momentary drive joystick.
29287
+ * - `goToPoint` — send-to-map-coordinate. Ships OFF on Dreame until the
29288
+ * map-coordinate plumbing is wired.
29289
+ * - `runAction` — the discrete action buttons (dictionary `kind:'action'`).
29290
+ * - `playSound` — the sound buttons (dictionary `kind:'sound'`).
29291
+ * - `light` — the on/off fill-light toggle (works anytime).
29292
+ * - `lightMode` — the auto/manual selector + manual level slider (a
29293
+ * camera-service control; needs an active stream).
29294
+ */
29295
+ var NavigationFeaturesSchema = object({
29296
+ move: boolean(),
29297
+ stop: boolean(),
29298
+ goToPoint: boolean(),
29299
+ runAction: boolean(),
29300
+ playSound: boolean(),
29301
+ light: boolean(),
29302
+ lightMode: boolean()
29303
+ });
29304
+ /** Light mode: `auto` lets the camera choose brightness; `manual` uses `level`. */
29305
+ var NavigationLightModeSchema = _enum(["auto", "manual"]);
29306
+ /**
29307
+ * Live navigation state so the UI can reflect what the robot is doing:
29308
+ * - `mode` — coarse activity (idle / cleaning / following / …).
29309
+ * - `following` — person/pet follow is currently armed.
29310
+ * - `flash` — the on-camera fill light is on.
29311
+ * - `lightMode` — auto vs manual fill-light mode.
29312
+ * - `lightLevel` — manual fill-light level (40..100); meaningful when
29313
+ * `lightMode === 'manual'`.
29314
+ */
29315
+ var NavigationStatusSchema = object({
29316
+ mode: _enum([
29317
+ "idle",
29318
+ "cleaning",
29319
+ "spot",
29320
+ "following",
29321
+ "goto",
29322
+ "returning",
29323
+ "paused",
29324
+ "unknown"
29325
+ ]),
29326
+ following: boolean(),
29327
+ flash: boolean(),
29328
+ lightMode: NavigationLightModeSchema,
29329
+ lightLevel: number().min(40).max(100),
29330
+ /** Ms epoch when the slice was last updated. */
29331
+ lastChangedAt: number()
29332
+ });
29333
+ /**
29334
+ * Runtime-state slice owned by this cap (kernel-managed: validated, mirrored,
29335
+ * observable). Adds `lastFetchedAt` on top of the status shape per the
29336
+ * convention.
29337
+ */
29338
+ var NavigationRuntimeStateSchema = NavigationStatusSchema.extend({ lastFetchedAt: number() });
29339
+ var navigationCapability = {
29340
+ name: "navigation",
29341
+ scope: "device",
29342
+ deviceNative: true,
29343
+ mode: "singleton",
29344
+ deviceTypes: [DeviceType.Camera],
29345
+ deviceConfig: { ui: {
29346
+ kind: "widget",
29347
+ widgetId: "host/navigation-panel",
29348
+ tab: "navigation",
29349
+ topTab: true,
29350
+ label: "Navigation",
29351
+ order: 0
29352
+ } },
29353
+ methods: {
29354
+ /**
29355
+ * Momentary drive nudge (the robot moves). `protected` — mirrors
29356
+ * `ptz.continuousMove` so the Viewer navigation panel (and the PTZ-mimic
29357
+ * path) works for any authenticated user, not admin-only. The UI sends
29358
+ * these at ~1 Hz while a control is held; the provider forwards each one to
29359
+ * a single drive write WITHOUT debouncing.
29360
+ */
29361
+ move: method(NavigationMoveCommandSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }),
29362
+ /** Halt all motion immediately (zero drive vector). */
29363
+ stop: method(object({ deviceId: number() }), _void(), { kind: "mutation" }),
29364
+ /** Send the robot to a point on its live map. */
29365
+ goToPoint: method(NavigationPointSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }),
29366
+ /**
29367
+ * Enumerate the discrete controls THIS device supports (data-driven UI +
29368
+ * PTZ mimic). Camera-probed subset of {@link NAVIGATION_ACTION_CATALOG}.
29369
+ */
29370
+ listActions: method(object({ deviceId: number() }), array(NavigationActionEntrySchema)),
29371
+ /**
29372
+ * Run one discrete action (a `kind:'action'` dictionary entry). Invalid /
29373
+ * unsupported action ids are rejected by the provider.
29374
+ */
29375
+ runAction: method(object({
29376
+ deviceId: number(),
29377
+ actionId: NavigationActionIdSchema
29378
+ }), _void(), { kind: "mutation" }),
29379
+ /** Play a sound by its wire id (the `soundId` of a `kind:'sound'` entry). */
29380
+ playSound: method(object({
29381
+ deviceId: number(),
29382
+ soundId: number().int()
29383
+ }), _void(), { kind: "mutation" }),
29384
+ /**
29385
+ * Turn the on-camera fill light on / off (the `OpenFullLight` control —
29386
+ * works anytime, no active stream required).
29387
+ */
29388
+ setLightOn: method(object({
29389
+ deviceId: number(),
29390
+ on: boolean()
29391
+ }), _void(), { kind: "mutation" }),
29392
+ /**
29393
+ * Set the fill-light mode (auto vs manual). `manual` optionally carries the
29394
+ * initial `level`. The auto/manual + level control is a CAMERA-service
29395
+ * action that generally needs an active camera stream/monitor session — the
29396
+ * UI shows the manual level slider ONLY when `mode === 'manual'`.
29397
+ */
29398
+ setLightMode: method(object({
29399
+ deviceId: number(),
29400
+ mode: NavigationLightModeSchema,
29401
+ level: number().min(40).max(100).optional()
29402
+ }), _void(), { kind: "mutation" }),
29403
+ /** Set the MANUAL fill-light level (40..100). Implies `manual` mode. */
29404
+ setLightLevel: method(object({
29405
+ deviceId: number(),
29406
+ level: number().min(40).max(100)
29407
+ }), _void(), { kind: "mutation" }),
29408
+ /**
29409
+ * Per-device FEATURE-FLAG report for the general primitives — drives which
29410
+ * controls the UI shows (the per-entry flags for the dictionary come back on
29411
+ * `listActions`).
29412
+ */
29413
+ getFeatures: method(object({ deviceId: number() }), NavigationFeaturesSchema)
29414
+ },
29415
+ events: { onStatusChanged: { data: object({
29416
+ deviceId: number(),
29417
+ status: NavigationStatusSchema
29418
+ }) } },
29419
+ status: {
29420
+ schema: NavigationStatusSchema,
29421
+ kind: "push"
29422
+ },
29423
+ /**
29424
+ * Runtime-state slice mirrored by the kernel. The navigation panel watches it
29425
+ * for live mode / follow / flash changes.
29426
+ */
29427
+ runtimeState: NavigationRuntimeStateSchema,
29428
+ /**
29429
+ * Runtime-state durability: **session** — like `vacuum-control`, a restored
29430
+ * `mode: cleaning` / `following: true` is a robot that is not actually doing
29431
+ * that. The live handle re-publishes on connect.
29432
+ *
29433
+ * See `RuntimeStateDurability`. Enforced by
29434
+ * `scripts/check-runtime-state-durability.ts`.
29435
+ */
29436
+ durability: "session"
29437
+ };
29068
29438
  DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceId: number().int().nonnegative() }), object({ success: literal(true) }), {
29069
29439
  kind: "mutation",
29070
29440
  auth: "admin"
@@ -32538,6 +32908,8 @@ var DEVICE_LOCAL_STATE_CAPS = {
32538
32908
  motionTrigger: motionTriggerCapability,
32539
32909
  motionZones: motionZonesCapability,
32540
32910
  nativeObjectDetection: nativeObjectDetectionCapability,
32911
+ navigation: navigationCapability,
32912
+ networkLink: networkLinkCapability,
32541
32913
  notifier: notifierCapability,
32542
32914
  numericSensor: numericSensorCapability,
32543
32915
  petFeeder: petFeederCapability,
@@ -36597,6 +36969,66 @@ Object.freeze({
36597
36969
  addonId: null,
36598
36970
  access: "create"
36599
36971
  },
36972
+ "navigation.getFeatures": {
36973
+ capName: "navigation",
36974
+ capScope: "device",
36975
+ addonId: null,
36976
+ access: "view"
36977
+ },
36978
+ "navigation.goToPoint": {
36979
+ capName: "navigation",
36980
+ capScope: "device",
36981
+ addonId: null,
36982
+ access: "create"
36983
+ },
36984
+ "navigation.listActions": {
36985
+ capName: "navigation",
36986
+ capScope: "device",
36987
+ addonId: null,
36988
+ access: "view"
36989
+ },
36990
+ "navigation.move": {
36991
+ capName: "navigation",
36992
+ capScope: "device",
36993
+ addonId: null,
36994
+ access: "create"
36995
+ },
36996
+ "navigation.playSound": {
36997
+ capName: "navigation",
36998
+ capScope: "device",
36999
+ addonId: null,
37000
+ access: "create"
37001
+ },
37002
+ "navigation.runAction": {
37003
+ capName: "navigation",
37004
+ capScope: "device",
37005
+ addonId: null,
37006
+ access: "create"
37007
+ },
37008
+ "navigation.setLightLevel": {
37009
+ capName: "navigation",
37010
+ capScope: "device",
37011
+ addonId: null,
37012
+ access: "create"
37013
+ },
37014
+ "navigation.setLightMode": {
37015
+ capName: "navigation",
37016
+ capScope: "device",
37017
+ addonId: null,
37018
+ access: "create"
37019
+ },
37020
+ "navigation.setLightOn": {
37021
+ capName: "navigation",
37022
+ capScope: "device",
37023
+ addonId: null,
37024
+ access: "create"
37025
+ },
37026
+ "navigation.stop": {
37027
+ capName: "navigation",
37028
+ capScope: "device",
37029
+ addonId: null,
37030
+ access: "create"
37031
+ },
36600
37032
  "networkAccess.getEndpoint": {
36601
37033
  capName: "network-access",
36602
37034
  capScope: "system",
@@ -40692,6 +41124,56 @@ Object.freeze({
40692
41124
  form: "single",
40693
41125
  optional: false
40694
41126
  }],
41127
+ "navigation.getFeatures": [{
41128
+ name: "deviceId",
41129
+ form: "single",
41130
+ optional: false
41131
+ }],
41132
+ "navigation.goToPoint": [{
41133
+ name: "deviceId",
41134
+ form: "single",
41135
+ optional: false
41136
+ }],
41137
+ "navigation.listActions": [{
41138
+ name: "deviceId",
41139
+ form: "single",
41140
+ optional: false
41141
+ }],
41142
+ "navigation.move": [{
41143
+ name: "deviceId",
41144
+ form: "single",
41145
+ optional: false
41146
+ }],
41147
+ "navigation.playSound": [{
41148
+ name: "deviceId",
41149
+ form: "single",
41150
+ optional: false
41151
+ }],
41152
+ "navigation.runAction": [{
41153
+ name: "deviceId",
41154
+ form: "single",
41155
+ optional: false
41156
+ }],
41157
+ "navigation.setLightLevel": [{
41158
+ name: "deviceId",
41159
+ form: "single",
41160
+ optional: false
41161
+ }],
41162
+ "navigation.setLightMode": [{
41163
+ name: "deviceId",
41164
+ form: "single",
41165
+ optional: false
41166
+ }],
41167
+ "navigation.setLightOn": [{
41168
+ name: "deviceId",
41169
+ form: "single",
41170
+ optional: false
41171
+ }],
41172
+ "navigation.stop": [{
41173
+ name: "deviceId",
41174
+ form: "single",
41175
+ optional: false
41176
+ }],
40695
41177
  "networkQuality.getDeviceStats": [{
40696
41178
  name: "deviceId",
40697
41179
  form: "single",
package/dist/addon.mjs CHANGED
@@ -7,7 +7,7 @@ import { networkInterfaces } from "node:os";
7
7
  var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
8
8
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
9
9
  //#endregion
10
- //#region ../types/dist/event-category-BZL-fdNj.mjs
10
+ //#region ../types/dist/event-category-zAv7pMUz.mjs
11
11
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
12
12
  EventCategory["SystemBoot"] = "system.boot";
13
13
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -379,6 +379,13 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
379
379
  */
380
380
  EventCategory["BatteryOnStatusChanged"] = "battery.onStatusChanged";
381
381
  /**
382
+ * Cap event fired by every device that registers the `network-link`
383
+ * capability. Mirrors the cap definition's `onStatusChanged`. Carries
384
+ * `{ deviceId, status: NetworkLinkStatus }` — a link switch or a signal
385
+ * reading that moved.
386
+ */
387
+ EventCategory["NetworkLinkOnStatusChanged"] = "network-link.onStatusChanged";
388
+ /**
382
389
  * Emitted by the battery cap provider WHEN `wakeForStream` enters the
383
390
  * "wake in progress" window — between the Baichuan wake-up issue and
384
391
  * the camera's first dialed-back RTP packet. The stream-broker
@@ -23849,6 +23856,88 @@ onStatusChanged: { data: object({
23849
23856
  volatileStateFields: ["lastUpdated"]
23850
23857
  };
23851
23858
  /**
23859
+ * Network-link snapshot. Same shape for every provider (a Reolink wifi
23860
+ * camera, a Home Assistant device with a signal-strength sensor, a Tapo
23861
+ * plug): one slice under `device.runtimeState['network-link']`, one badge,
23862
+ * one Home Assistant projection.
23863
+ */
23864
+ var NetworkLinkStatusSchema = object({
23865
+ /** The link the device is on. `'unknown'` = not read yet, not "no link". */
23866
+ type: _enum([
23867
+ "wifi",
23868
+ "ethernet",
23869
+ "cellular",
23870
+ "unknown"
23871
+ ]),
23872
+ /**
23873
+ * Link quality, 0..100 inclusive, normalised by the provider from whatever
23874
+ * the firmware reports (bars, RSSI, a vendor scale). **`null` means NOT
23875
+ * KNOWN or NOT APPLICABLE** — a wired link has no signal, and a wireless
23876
+ * one whose reading has not landed must not be drawn at 0 %. Consumers
23877
+ * SKIP a null rather than coerce it.
23878
+ */
23879
+ signalPercent: number().min(0).max(100).nullable(),
23880
+ /** Raw received signal strength in dBm, when the firmware reports one. */
23881
+ rssiDbm: number().optional(),
23882
+ /** Network name of a wireless link, when the firmware reports it. */
23883
+ ssid: string().optional(),
23884
+ /** Ms epoch of the last observation. Lets consumers reason about freshness. */
23885
+ lastUpdated: number()
23886
+ });
23887
+ var networkLinkCapability = {
23888
+ name: "network-link",
23889
+ scope: "device",
23890
+ deviceNative: true,
23891
+ mode: "singleton",
23892
+ deviceTypes: [
23893
+ DeviceType.Camera,
23894
+ DeviceType.Sensor,
23895
+ DeviceType.Button,
23896
+ DeviceType.Switch,
23897
+ DeviceType.Light,
23898
+ DeviceType.Lock,
23899
+ DeviceType.Siren
23900
+ ],
23901
+ methods: {},
23902
+ events: {
23903
+ /**
23904
+ * Emitted whenever the cached status changes (a link switch, a signal
23905
+ * reading that moved). Mirrored on the parent chain by the
23906
+ * DeviceEventPropagator like `battery.onStatusChanged`.
23907
+ */
23908
+ onStatusChanged: { data: object({
23909
+ deviceId: number(),
23910
+ status: NetworkLinkStatusSchema
23911
+ }) } },
23912
+ status: {
23913
+ schema: NetworkLinkStatusSchema,
23914
+ kind: "push",
23915
+ empty: {
23916
+ type: "unknown",
23917
+ signalPercent: null,
23918
+ lastUpdated: 0
23919
+ }
23920
+ },
23921
+ /**
23922
+ * Runtime-state slice — every provider stores the same shape under
23923
+ * `device.runtimeState['network-link']`, read once by the badge and the
23924
+ * Home Assistant projector regardless of the driver.
23925
+ */
23926
+ runtimeState: NetworkLinkStatusSchema,
23927
+ /**
23928
+ * Runtime-state durability: **restored** — a link reading is slow to
23929
+ * change and a sleeping battery camera may not report for hours; the
23930
+ * restored slice is what the badge shows until the next read.
23931
+ *
23932
+ * See `RuntimeStateDurability`. Enforced by
23933
+ * `scripts/check-runtime-state-durability.ts`.
23934
+ */
23935
+ durability: "restored",
23936
+ /** Clock fields: written, but excluded from the compare that decides
23937
+ * whether persisting is worth a SQLite commit. */
23938
+ volatileStateFields: ["lastUpdated"]
23939
+ };
23940
+ /**
23852
23941
  * Generic boolean sensor — last-resort fallback when no domain-
23853
23942
  * specific binary cap fits (Home Assistant `binary_sensor` without a
23854
23943
  * known `device_class`, or a domain we haven't typed yet). Pure
@@ -29066,6 +29155,287 @@ var ptzAutotrackCapability = {
29066
29155
  */
29067
29156
  durability: "session"
29068
29157
  };
29158
+ /**
29159
+ * `navigation` — a device-scoped capability that natively expresses the FULL
29160
+ * navigation / action surface of a robot that DRIVES ITSELF and carries an
29161
+ * on-board camera (the Dreame robot-vacuum camera is the first provider).
29162
+ *
29163
+ * Why a NEW cap rather than overloading `ptz`:
29164
+ * - `ptz` moves a *gimbal* on a fixed camera (pan/tilt/zoom of the lens). A
29165
+ * robot vacuum has no gimbal — the whole chassis drives, turns and spins.
29166
+ * The two are different physical models: PTZ is absolute-position + presets,
29167
+ * navigation is momentary drive nudges + discrete robot ACTIONS
29168
+ * (dock / spot-clean / follow-pet / go-to-point / …).
29169
+ * - This cap is the SOURCE OF TRUTH. Two consumers adapt from it rather than
29170
+ * the reverse:
29171
+ * 1. a native CamStack navigation panel (data-driven from `listActions`
29172
+ * / `getOptions`), and
29173
+ * 2. the PTZ surface — a thin adapter mimics `ptz` from `navigation` so a
29174
+ * robot camera shows up in the existing PTZ control path without every
29175
+ * PTZ provider learning about robots. The mapping lives in the adapter,
29176
+ * not here (see the addon design note):
29177
+ * ptz.continuousMove({pan,tilt}) → navigation.move({pan,tilt})
29178
+ * ptz.stop() → navigation.stop()
29179
+ * ptz.goHome() → navigation.runAction('goHome')
29180
+ * ptz.getPresets() → navigation.listActions() (id→preset)
29181
+ * ptz.goToPreset(id) → navigation.runAction(id)
29182
+ *
29183
+ * ## Continuous drive
29184
+ *
29185
+ * `move` is MOMENTARY. Fluid navigation comes from the UI (or the PTZ adapter)
29186
+ * sending `move({pan,tilt})` REPEATEDLY at ~1 Hz while a direction is held, and
29187
+ * one `stop()` on release — exactly like the robot app's remote-drive joystick.
29188
+ * The provider forwards EACH `move` to one drive write; it must NOT debounce or
29189
+ * coalesce them. The UI owns the cadence.
29190
+ *
29191
+ * ## The action dictionary
29192
+ *
29193
+ * The discrete controls (dock / locate / spot-clean / follow / flash / sounds)
29194
+ * are a DATA-DRIVEN dictionary the cap exposes via `listActions()`. Each entry
29195
+ * carries `{ id, kind, label, icon }` (plus `soundId` for sound entries) so the
29196
+ * native panel AND the PTZ mimic render buttons WITHOUT hardcoding a
29197
+ * vendor-specific list. `kind: 'action'` entries are triggered with
29198
+ * `runAction({ actionId })`; `kind: 'sound'` entries with `playSound({ soundId })`
29199
+ * (the entry carries the `soundId` to pass). The general primitives — `move`,
29200
+ * `stop`, `goToPoint` — stay as first-class methods, not dictionary entries.
29201
+ *
29202
+ * NOTE (provider wiring): the first provider (Dreame) drives this with the RAW
29203
+ * `callAction(siid,aiid,in)` / `setProperty({siid,piid,value})` MIoT primitives
29204
+ * that the currently-published `@apocaliss92/nodedreame` already exposes on
29205
+ * every device handle. A future nodedreame publish adds a typed
29206
+ * `DreameCameraController` (drive / playPetSound / spotClean / findPet / …); the
29207
+ * provider can then swap the raw calls for the typed methods with no change to
29208
+ * THIS contract.
29209
+ */
29210
+ /**
29211
+ * A momentary drive nudge. The robot MOVES (no gimbal) for as long as the caller
29212
+ * keeps sending nudges (~1 Hz); an explicit `stop` (or letting the nudges lapse)
29213
+ * halts it.
29214
+ *
29215
+ * - `pan` — turn: negative = left, positive = right, 0 = straight.
29216
+ * - `tilt` — throttle: positive = forward, negative = spin / turn-around.
29217
+ * - `speed` — optional intensity hint [0, 1]; the provider may scale the drive
29218
+ * vector by it (drivers without proportional drive ignore it).
29219
+ *
29220
+ * `pan` / `tilt` are normalized [-1, 1]. Both optional so a caller can nudge one
29221
+ * axis alone; an all-undefined nudge is a no-op.
29222
+ */
29223
+ var NavigationMoveCommandSchema = object({
29224
+ pan: number().min(-1).max(1).optional(),
29225
+ tilt: number().min(-1).max(1).optional(),
29226
+ speed: number().min(0).max(1).optional()
29227
+ });
29228
+ /**
29229
+ * The enumerated discrete actions a navigation-capable robot can perform via
29230
+ * `runAction`. This is the CLOSED vocabulary; a given device advertises the
29231
+ * subset it supports through `listActions`. Sounds are NOT here — they go through
29232
+ * `playSound` (see the `sound` dictionary entries).
29233
+ */
29234
+ var NavigationActionIdSchema = _enum([
29235
+ "goHome",
29236
+ "locate",
29237
+ "spotClean",
29238
+ "findPet",
29239
+ "personFollow",
29240
+ "stop",
29241
+ "startClean",
29242
+ "pauseClean",
29243
+ "dockWash",
29244
+ "autoEmpty",
29245
+ "flashOn",
29246
+ "flashOff"
29247
+ ]);
29248
+ /** Whether a dictionary entry is a `runAction` action or a `playSound` sound. */
29249
+ var NavigationEntryKindSchema = _enum(["action", "sound"]);
29250
+ /**
29251
+ * One entry in the navigation action dictionary — the DATA-DRIVEN unit both the
29252
+ * native panel and the PTZ mimic render as a button.
29253
+ *
29254
+ * - `id` — stable id. For `kind:'action'` it is a {@link NavigationActionId}
29255
+ * (pass to `runAction`); for `kind:'sound'` it is a namespaced id
29256
+ * (`sound:meow`) whose `soundId` is passed to `playSound`.
29257
+ * - `icon` — icon HINT (lucide-style name; the UI maps it to its own set).
29258
+ * - `label` — operator-facing English label.
29259
+ * - `soundId` — wire sound id, present only on `kind:'sound'` entries.
29260
+ * - `enabled` — per-device FEATURE FLAG. `listActions` reports it so the UI /
29261
+ * PTZ render ONLY enabled entries. Data-driven: the provider
29262
+ * flips it from config, never by editing code.
29263
+ */
29264
+ var NavigationActionEntrySchema = object({
29265
+ id: string(),
29266
+ kind: NavigationEntryKindSchema,
29267
+ label: string(),
29268
+ icon: string(),
29269
+ /** Present only on `kind:'sound'` entries — the id to pass to `playSound`. */
29270
+ soundId: number().int().optional(),
29271
+ /** Per-device feature flag — render this entry only when true. */
29272
+ enabled: boolean()
29273
+ });
29274
+ /** Coordinates for `goToPoint` — a point on the robot's live map. */
29275
+ var NavigationPointSchema = object({
29276
+ x: number(),
29277
+ y: number()
29278
+ });
29279
+ /**
29280
+ * Per-device FEATURE-FLAG report for the general (non-dictionary) primitives.
29281
+ * The cap reports which are enabled so the UI / PTZ render only the controls
29282
+ * that are turned on for THIS device. Data-driven: the provider derives these
29283
+ * from config + probe, never hardcoded in the UI. The per-DICTIONARY-entry flags
29284
+ * live on {@link NavigationActionEntrySchema.enabled}; these gate the primitives
29285
+ * that are not dictionary entries.
29286
+ *
29287
+ * - `move` / `stop` — the momentary drive joystick.
29288
+ * - `goToPoint` — send-to-map-coordinate. Ships OFF on Dreame until the
29289
+ * map-coordinate plumbing is wired.
29290
+ * - `runAction` — the discrete action buttons (dictionary `kind:'action'`).
29291
+ * - `playSound` — the sound buttons (dictionary `kind:'sound'`).
29292
+ * - `light` — the on/off fill-light toggle (works anytime).
29293
+ * - `lightMode` — the auto/manual selector + manual level slider (a
29294
+ * camera-service control; needs an active stream).
29295
+ */
29296
+ var NavigationFeaturesSchema = object({
29297
+ move: boolean(),
29298
+ stop: boolean(),
29299
+ goToPoint: boolean(),
29300
+ runAction: boolean(),
29301
+ playSound: boolean(),
29302
+ light: boolean(),
29303
+ lightMode: boolean()
29304
+ });
29305
+ /** Light mode: `auto` lets the camera choose brightness; `manual` uses `level`. */
29306
+ var NavigationLightModeSchema = _enum(["auto", "manual"]);
29307
+ /**
29308
+ * Live navigation state so the UI can reflect what the robot is doing:
29309
+ * - `mode` — coarse activity (idle / cleaning / following / …).
29310
+ * - `following` — person/pet follow is currently armed.
29311
+ * - `flash` — the on-camera fill light is on.
29312
+ * - `lightMode` — auto vs manual fill-light mode.
29313
+ * - `lightLevel` — manual fill-light level (40..100); meaningful when
29314
+ * `lightMode === 'manual'`.
29315
+ */
29316
+ var NavigationStatusSchema = object({
29317
+ mode: _enum([
29318
+ "idle",
29319
+ "cleaning",
29320
+ "spot",
29321
+ "following",
29322
+ "goto",
29323
+ "returning",
29324
+ "paused",
29325
+ "unknown"
29326
+ ]),
29327
+ following: boolean(),
29328
+ flash: boolean(),
29329
+ lightMode: NavigationLightModeSchema,
29330
+ lightLevel: number().min(40).max(100),
29331
+ /** Ms epoch when the slice was last updated. */
29332
+ lastChangedAt: number()
29333
+ });
29334
+ /**
29335
+ * Runtime-state slice owned by this cap (kernel-managed: validated, mirrored,
29336
+ * observable). Adds `lastFetchedAt` on top of the status shape per the
29337
+ * convention.
29338
+ */
29339
+ var NavigationRuntimeStateSchema = NavigationStatusSchema.extend({ lastFetchedAt: number() });
29340
+ var navigationCapability = {
29341
+ name: "navigation",
29342
+ scope: "device",
29343
+ deviceNative: true,
29344
+ mode: "singleton",
29345
+ deviceTypes: [DeviceType.Camera],
29346
+ deviceConfig: { ui: {
29347
+ kind: "widget",
29348
+ widgetId: "host/navigation-panel",
29349
+ tab: "navigation",
29350
+ topTab: true,
29351
+ label: "Navigation",
29352
+ order: 0
29353
+ } },
29354
+ methods: {
29355
+ /**
29356
+ * Momentary drive nudge (the robot moves). `protected` — mirrors
29357
+ * `ptz.continuousMove` so the Viewer navigation panel (and the PTZ-mimic
29358
+ * path) works for any authenticated user, not admin-only. The UI sends
29359
+ * these at ~1 Hz while a control is held; the provider forwards each one to
29360
+ * a single drive write WITHOUT debouncing.
29361
+ */
29362
+ move: method(NavigationMoveCommandSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }),
29363
+ /** Halt all motion immediately (zero drive vector). */
29364
+ stop: method(object({ deviceId: number() }), _void(), { kind: "mutation" }),
29365
+ /** Send the robot to a point on its live map. */
29366
+ goToPoint: method(NavigationPointSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }),
29367
+ /**
29368
+ * Enumerate the discrete controls THIS device supports (data-driven UI +
29369
+ * PTZ mimic). Camera-probed subset of {@link NAVIGATION_ACTION_CATALOG}.
29370
+ */
29371
+ listActions: method(object({ deviceId: number() }), array(NavigationActionEntrySchema)),
29372
+ /**
29373
+ * Run one discrete action (a `kind:'action'` dictionary entry). Invalid /
29374
+ * unsupported action ids are rejected by the provider.
29375
+ */
29376
+ runAction: method(object({
29377
+ deviceId: number(),
29378
+ actionId: NavigationActionIdSchema
29379
+ }), _void(), { kind: "mutation" }),
29380
+ /** Play a sound by its wire id (the `soundId` of a `kind:'sound'` entry). */
29381
+ playSound: method(object({
29382
+ deviceId: number(),
29383
+ soundId: number().int()
29384
+ }), _void(), { kind: "mutation" }),
29385
+ /**
29386
+ * Turn the on-camera fill light on / off (the `OpenFullLight` control —
29387
+ * works anytime, no active stream required).
29388
+ */
29389
+ setLightOn: method(object({
29390
+ deviceId: number(),
29391
+ on: boolean()
29392
+ }), _void(), { kind: "mutation" }),
29393
+ /**
29394
+ * Set the fill-light mode (auto vs manual). `manual` optionally carries the
29395
+ * initial `level`. The auto/manual + level control is a CAMERA-service
29396
+ * action that generally needs an active camera stream/monitor session — the
29397
+ * UI shows the manual level slider ONLY when `mode === 'manual'`.
29398
+ */
29399
+ setLightMode: method(object({
29400
+ deviceId: number(),
29401
+ mode: NavigationLightModeSchema,
29402
+ level: number().min(40).max(100).optional()
29403
+ }), _void(), { kind: "mutation" }),
29404
+ /** Set the MANUAL fill-light level (40..100). Implies `manual` mode. */
29405
+ setLightLevel: method(object({
29406
+ deviceId: number(),
29407
+ level: number().min(40).max(100)
29408
+ }), _void(), { kind: "mutation" }),
29409
+ /**
29410
+ * Per-device FEATURE-FLAG report for the general primitives — drives which
29411
+ * controls the UI shows (the per-entry flags for the dictionary come back on
29412
+ * `listActions`).
29413
+ */
29414
+ getFeatures: method(object({ deviceId: number() }), NavigationFeaturesSchema)
29415
+ },
29416
+ events: { onStatusChanged: { data: object({
29417
+ deviceId: number(),
29418
+ status: NavigationStatusSchema
29419
+ }) } },
29420
+ status: {
29421
+ schema: NavigationStatusSchema,
29422
+ kind: "push"
29423
+ },
29424
+ /**
29425
+ * Runtime-state slice mirrored by the kernel. The navigation panel watches it
29426
+ * for live mode / follow / flash changes.
29427
+ */
29428
+ runtimeState: NavigationRuntimeStateSchema,
29429
+ /**
29430
+ * Runtime-state durability: **session** — like `vacuum-control`, a restored
29431
+ * `mode: cleaning` / `following: true` is a robot that is not actually doing
29432
+ * that. The live handle re-publishes on connect.
29433
+ *
29434
+ * See `RuntimeStateDurability`. Enforced by
29435
+ * `scripts/check-runtime-state-durability.ts`.
29436
+ */
29437
+ durability: "session"
29438
+ };
29069
29439
  DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceId: number().int().nonnegative() }), object({ success: literal(true) }), {
29070
29440
  kind: "mutation",
29071
29441
  auth: "admin"
@@ -32539,6 +32909,8 @@ var DEVICE_LOCAL_STATE_CAPS = {
32539
32909
  motionTrigger: motionTriggerCapability,
32540
32910
  motionZones: motionZonesCapability,
32541
32911
  nativeObjectDetection: nativeObjectDetectionCapability,
32912
+ navigation: navigationCapability,
32913
+ networkLink: networkLinkCapability,
32542
32914
  notifier: notifierCapability,
32543
32915
  numericSensor: numericSensorCapability,
32544
32916
  petFeeder: petFeederCapability,
@@ -36598,6 +36970,66 @@ Object.freeze({
36598
36970
  addonId: null,
36599
36971
  access: "create"
36600
36972
  },
36973
+ "navigation.getFeatures": {
36974
+ capName: "navigation",
36975
+ capScope: "device",
36976
+ addonId: null,
36977
+ access: "view"
36978
+ },
36979
+ "navigation.goToPoint": {
36980
+ capName: "navigation",
36981
+ capScope: "device",
36982
+ addonId: null,
36983
+ access: "create"
36984
+ },
36985
+ "navigation.listActions": {
36986
+ capName: "navigation",
36987
+ capScope: "device",
36988
+ addonId: null,
36989
+ access: "view"
36990
+ },
36991
+ "navigation.move": {
36992
+ capName: "navigation",
36993
+ capScope: "device",
36994
+ addonId: null,
36995
+ access: "create"
36996
+ },
36997
+ "navigation.playSound": {
36998
+ capName: "navigation",
36999
+ capScope: "device",
37000
+ addonId: null,
37001
+ access: "create"
37002
+ },
37003
+ "navigation.runAction": {
37004
+ capName: "navigation",
37005
+ capScope: "device",
37006
+ addonId: null,
37007
+ access: "create"
37008
+ },
37009
+ "navigation.setLightLevel": {
37010
+ capName: "navigation",
37011
+ capScope: "device",
37012
+ addonId: null,
37013
+ access: "create"
37014
+ },
37015
+ "navigation.setLightMode": {
37016
+ capName: "navigation",
37017
+ capScope: "device",
37018
+ addonId: null,
37019
+ access: "create"
37020
+ },
37021
+ "navigation.setLightOn": {
37022
+ capName: "navigation",
37023
+ capScope: "device",
37024
+ addonId: null,
37025
+ access: "create"
37026
+ },
37027
+ "navigation.stop": {
37028
+ capName: "navigation",
37029
+ capScope: "device",
37030
+ addonId: null,
37031
+ access: "create"
37032
+ },
36601
37033
  "networkAccess.getEndpoint": {
36602
37034
  capName: "network-access",
36603
37035
  capScope: "system",
@@ -40693,6 +41125,56 @@ Object.freeze({
40693
41125
  form: "single",
40694
41126
  optional: false
40695
41127
  }],
41128
+ "navigation.getFeatures": [{
41129
+ name: "deviceId",
41130
+ form: "single",
41131
+ optional: false
41132
+ }],
41133
+ "navigation.goToPoint": [{
41134
+ name: "deviceId",
41135
+ form: "single",
41136
+ optional: false
41137
+ }],
41138
+ "navigation.listActions": [{
41139
+ name: "deviceId",
41140
+ form: "single",
41141
+ optional: false
41142
+ }],
41143
+ "navigation.move": [{
41144
+ name: "deviceId",
41145
+ form: "single",
41146
+ optional: false
41147
+ }],
41148
+ "navigation.playSound": [{
41149
+ name: "deviceId",
41150
+ form: "single",
41151
+ optional: false
41152
+ }],
41153
+ "navigation.runAction": [{
41154
+ name: "deviceId",
41155
+ form: "single",
41156
+ optional: false
41157
+ }],
41158
+ "navigation.setLightLevel": [{
41159
+ name: "deviceId",
41160
+ form: "single",
41161
+ optional: false
41162
+ }],
41163
+ "navigation.setLightMode": [{
41164
+ name: "deviceId",
41165
+ form: "single",
41166
+ optional: false
41167
+ }],
41168
+ "navigation.setLightOn": [{
41169
+ name: "deviceId",
41170
+ form: "single",
41171
+ optional: false
41172
+ }],
41173
+ "navigation.stop": [{
41174
+ name: "deviceId",
41175
+ form: "single",
41176
+ optional: false
41177
+ }],
40696
41178
  "networkQuality.getDeviceStats": [{
40697
41179
  name: "deviceId",
40698
41180
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-amcrest",
3
- "version": "0.2.71",
3
+ "version": "0.2.73",
4
4
  "description": "Amcrest/Dahua camera device provider addon for CamStack — Dahua CGI over HTTP(S) with digest auth (snapshot, RTSP catalog, PTZ, image/day-night config)",
5
5
  "keywords": [
6
6
  "camstack",