@camstack/addon-decoder-nodeav 1.2.70 → 1.2.72

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/index.js CHANGED
@@ -5410,6 +5410,12 @@ Object.fromEntries([
5410
5410
  icon: "move",
5411
5411
  order: 40
5412
5412
  },
5413
+ {
5414
+ id: "navigation",
5415
+ label: "Navigation",
5416
+ icon: "compass",
5417
+ order: 41
5418
+ },
5413
5419
  {
5414
5420
  id: "consumables",
5415
5421
  label: "Consumables",
@@ -26945,6 +26951,203 @@ DeviceType.Camera, method(object({ deviceId: number() }), PtzAutotrackStatusSche
26945
26951
  deviceId: number(),
26946
26952
  status: PtzAutotrackStatusSchema
26947
26953
  });
26954
+ /**
26955
+ * `navigation` — a device-scoped capability that natively expresses the FULL
26956
+ * navigation / action surface of a robot that DRIVES ITSELF and carries an
26957
+ * on-board camera (the Dreame robot-vacuum camera is the first provider).
26958
+ *
26959
+ * Why a NEW cap rather than overloading `ptz`:
26960
+ * - `ptz` moves a *gimbal* on a fixed camera (pan/tilt/zoom of the lens). A
26961
+ * robot vacuum has no gimbal — the whole chassis drives, turns and spins.
26962
+ * The two are different physical models: PTZ is absolute-position + presets,
26963
+ * navigation is momentary drive nudges + discrete robot ACTIONS
26964
+ * (dock / spot-clean / follow-pet / go-to-point / …).
26965
+ * - This cap is the SOURCE OF TRUTH. Two consumers adapt from it rather than
26966
+ * the reverse:
26967
+ * 1. a native CamStack navigation panel (data-driven from `listActions`
26968
+ * / `getOptions`), and
26969
+ * 2. the PTZ surface — a thin adapter mimics `ptz` from `navigation` so a
26970
+ * robot camera shows up in the existing PTZ control path without every
26971
+ * PTZ provider learning about robots. The mapping lives in the adapter,
26972
+ * not here (see the addon design note):
26973
+ * ptz.continuousMove({pan,tilt}) → navigation.move({pan,tilt})
26974
+ * ptz.stop() → navigation.stop()
26975
+ * ptz.goHome() → navigation.runAction('goHome')
26976
+ * ptz.getPresets() → navigation.listActions() (id→preset)
26977
+ * ptz.goToPreset(id) → navigation.runAction(id)
26978
+ *
26979
+ * ## Continuous drive
26980
+ *
26981
+ * `move` is MOMENTARY. Fluid navigation comes from the UI (or the PTZ adapter)
26982
+ * sending `move({pan,tilt})` REPEATEDLY at ~1 Hz while a direction is held, and
26983
+ * one `stop()` on release — exactly like the robot app's remote-drive joystick.
26984
+ * The provider forwards EACH `move` to one drive write; it must NOT debounce or
26985
+ * coalesce them. The UI owns the cadence.
26986
+ *
26987
+ * ## The action dictionary
26988
+ *
26989
+ * The discrete controls (dock / locate / spot-clean / follow / flash / sounds)
26990
+ * are a DATA-DRIVEN dictionary the cap exposes via `listActions()`. Each entry
26991
+ * carries `{ id, kind, label, icon }` (plus `soundId` for sound entries) so the
26992
+ * native panel AND the PTZ mimic render buttons WITHOUT hardcoding a
26993
+ * vendor-specific list. `kind: 'action'` entries are triggered with
26994
+ * `runAction({ actionId })`; `kind: 'sound'` entries with `playSound({ soundId })`
26995
+ * (the entry carries the `soundId` to pass). The general primitives — `move`,
26996
+ * `stop`, `goToPoint` — stay as first-class methods, not dictionary entries.
26997
+ *
26998
+ * NOTE (provider wiring): the first provider (Dreame) drives this with the RAW
26999
+ * `callAction(siid,aiid,in)` / `setProperty({siid,piid,value})` MIoT primitives
27000
+ * that the currently-published `@apocaliss92/nodedreame` already exposes on
27001
+ * every device handle. A future nodedreame publish adds a typed
27002
+ * `DreameCameraController` (drive / playPetSound / spotClean / findPet / …); the
27003
+ * provider can then swap the raw calls for the typed methods with no change to
27004
+ * THIS contract.
27005
+ */
27006
+ /**
27007
+ * A momentary drive nudge. The robot MOVES (no gimbal) for as long as the caller
27008
+ * keeps sending nudges (~1 Hz); an explicit `stop` (or letting the nudges lapse)
27009
+ * halts it.
27010
+ *
27011
+ * - `pan` — turn: negative = left, positive = right, 0 = straight.
27012
+ * - `tilt` — throttle: positive = forward, negative = spin / turn-around.
27013
+ * - `speed` — optional intensity hint [0, 1]; the provider may scale the drive
27014
+ * vector by it (drivers without proportional drive ignore it).
27015
+ *
27016
+ * `pan` / `tilt` are normalized [-1, 1]. Both optional so a caller can nudge one
27017
+ * axis alone; an all-undefined nudge is a no-op.
27018
+ */
27019
+ var NavigationMoveCommandSchema = object({
27020
+ pan: number().min(-1).max(1).optional(),
27021
+ tilt: number().min(-1).max(1).optional(),
27022
+ speed: number().min(0).max(1).optional()
27023
+ });
27024
+ /**
27025
+ * The enumerated discrete actions a navigation-capable robot can perform via
27026
+ * `runAction`. This is the CLOSED vocabulary; a given device advertises the
27027
+ * subset it supports through `listActions`. Sounds are NOT here — they go through
27028
+ * `playSound` (see the `sound` dictionary entries).
27029
+ */
27030
+ var NavigationActionIdSchema = _enum([
27031
+ "goHome",
27032
+ "locate",
27033
+ "spotClean",
27034
+ "findPet",
27035
+ "personFollow",
27036
+ "stop",
27037
+ "startClean",
27038
+ "pauseClean",
27039
+ "dockWash",
27040
+ "autoEmpty",
27041
+ "flashOn",
27042
+ "flashOff"
27043
+ ]);
27044
+ /** Whether a dictionary entry is a `runAction` action or a `playSound` sound. */
27045
+ var NavigationEntryKindSchema = _enum(["action", "sound"]);
27046
+ /**
27047
+ * One entry in the navigation action dictionary — the DATA-DRIVEN unit both the
27048
+ * native panel and the PTZ mimic render as a button.
27049
+ *
27050
+ * - `id` — stable id. For `kind:'action'` it is a {@link NavigationActionId}
27051
+ * (pass to `runAction`); for `kind:'sound'` it is a namespaced id
27052
+ * (`sound:meow`) whose `soundId` is passed to `playSound`.
27053
+ * - `icon` — icon HINT (lucide-style name; the UI maps it to its own set).
27054
+ * - `label` — operator-facing English label.
27055
+ * - `soundId` — wire sound id, present only on `kind:'sound'` entries.
27056
+ * - `enabled` — per-device FEATURE FLAG. `listActions` reports it so the UI /
27057
+ * PTZ render ONLY enabled entries. Data-driven: the provider
27058
+ * flips it from config, never by editing code.
27059
+ */
27060
+ var NavigationActionEntrySchema = object({
27061
+ id: string(),
27062
+ kind: NavigationEntryKindSchema,
27063
+ label: string(),
27064
+ icon: string(),
27065
+ /** Present only on `kind:'sound'` entries — the id to pass to `playSound`. */
27066
+ soundId: number().int().optional(),
27067
+ /** Per-device feature flag — render this entry only when true. */
27068
+ enabled: boolean()
27069
+ });
27070
+ /** Coordinates for `goToPoint` — a point on the robot's live map. */
27071
+ var NavigationPointSchema = object({
27072
+ x: number(),
27073
+ y: number()
27074
+ });
27075
+ /**
27076
+ * Per-device FEATURE-FLAG report for the general (non-dictionary) primitives.
27077
+ * The cap reports which are enabled so the UI / PTZ render only the controls
27078
+ * that are turned on for THIS device. Data-driven: the provider derives these
27079
+ * from config + probe, never hardcoded in the UI. The per-DICTIONARY-entry flags
27080
+ * live on {@link NavigationActionEntrySchema.enabled}; these gate the primitives
27081
+ * that are not dictionary entries.
27082
+ *
27083
+ * - `move` / `stop` — the momentary drive joystick.
27084
+ * - `goToPoint` — send-to-map-coordinate. Ships OFF on Dreame until the
27085
+ * map-coordinate plumbing is wired.
27086
+ * - `runAction` — the discrete action buttons (dictionary `kind:'action'`).
27087
+ * - `playSound` — the sound buttons (dictionary `kind:'sound'`).
27088
+ * - `light` — the on/off fill-light toggle (works anytime).
27089
+ * - `lightMode` — the auto/manual selector + manual level slider (a
27090
+ * camera-service control; needs an active stream).
27091
+ */
27092
+ var NavigationFeaturesSchema = object({
27093
+ move: boolean(),
27094
+ stop: boolean(),
27095
+ goToPoint: boolean(),
27096
+ runAction: boolean(),
27097
+ playSound: boolean(),
27098
+ light: boolean(),
27099
+ lightMode: boolean()
27100
+ });
27101
+ /** Light mode: `auto` lets the camera choose brightness; `manual` uses `level`. */
27102
+ var NavigationLightModeSchema = _enum(["auto", "manual"]);
27103
+ /**
27104
+ * Live navigation state so the UI can reflect what the robot is doing:
27105
+ * - `mode` — coarse activity (idle / cleaning / following / …).
27106
+ * - `following` — person/pet follow is currently armed.
27107
+ * - `flash` — the on-camera fill light is on.
27108
+ * - `lightMode` — auto vs manual fill-light mode.
27109
+ * - `lightLevel` — manual fill-light level (40..100); meaningful when
27110
+ * `lightMode === 'manual'`.
27111
+ */
27112
+ var NavigationStatusSchema = object({
27113
+ mode: _enum([
27114
+ "idle",
27115
+ "cleaning",
27116
+ "spot",
27117
+ "following",
27118
+ "goto",
27119
+ "returning",
27120
+ "paused",
27121
+ "unknown"
27122
+ ]),
27123
+ following: boolean(),
27124
+ flash: boolean(),
27125
+ lightMode: NavigationLightModeSchema,
27126
+ lightLevel: number().min(40).max(100),
27127
+ /** Ms epoch when the slice was last updated. */
27128
+ lastChangedAt: number()
27129
+ });
27130
+ NavigationStatusSchema.extend({ lastFetchedAt: number() });
27131
+ DeviceType.Camera, method(NavigationMoveCommandSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(NavigationPointSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(NavigationActionEntrySchema)), method(object({
27132
+ deviceId: number(),
27133
+ actionId: NavigationActionIdSchema
27134
+ }), _void(), { kind: "mutation" }), method(object({
27135
+ deviceId: number(),
27136
+ soundId: number().int()
27137
+ }), _void(), { kind: "mutation" }), method(object({
27138
+ deviceId: number(),
27139
+ on: boolean()
27140
+ }), _void(), { kind: "mutation" }), method(object({
27141
+ deviceId: number(),
27142
+ mode: NavigationLightModeSchema,
27143
+ level: number().min(40).max(100).optional()
27144
+ }), _void(), { kind: "mutation" }), method(object({
27145
+ deviceId: number(),
27146
+ level: number().min(40).max(100)
27147
+ }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), NavigationFeaturesSchema), object({
27148
+ deviceId: number(),
27149
+ status: NavigationStatusSchema
27150
+ });
26948
27151
  DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceId: number().int().nonnegative() }), object({ success: literal(true) }), {
26949
27152
  kind: "mutation",
26950
27153
  auth: "admin"
@@ -32009,6 +32212,66 @@ Object.freeze({
32009
32212
  addonId: null,
32010
32213
  access: "create"
32011
32214
  },
32215
+ "navigation.getFeatures": {
32216
+ capName: "navigation",
32217
+ capScope: "device",
32218
+ addonId: null,
32219
+ access: "view"
32220
+ },
32221
+ "navigation.goToPoint": {
32222
+ capName: "navigation",
32223
+ capScope: "device",
32224
+ addonId: null,
32225
+ access: "create"
32226
+ },
32227
+ "navigation.listActions": {
32228
+ capName: "navigation",
32229
+ capScope: "device",
32230
+ addonId: null,
32231
+ access: "view"
32232
+ },
32233
+ "navigation.move": {
32234
+ capName: "navigation",
32235
+ capScope: "device",
32236
+ addonId: null,
32237
+ access: "create"
32238
+ },
32239
+ "navigation.playSound": {
32240
+ capName: "navigation",
32241
+ capScope: "device",
32242
+ addonId: null,
32243
+ access: "create"
32244
+ },
32245
+ "navigation.runAction": {
32246
+ capName: "navigation",
32247
+ capScope: "device",
32248
+ addonId: null,
32249
+ access: "create"
32250
+ },
32251
+ "navigation.setLightLevel": {
32252
+ capName: "navigation",
32253
+ capScope: "device",
32254
+ addonId: null,
32255
+ access: "create"
32256
+ },
32257
+ "navigation.setLightMode": {
32258
+ capName: "navigation",
32259
+ capScope: "device",
32260
+ addonId: null,
32261
+ access: "create"
32262
+ },
32263
+ "navigation.setLightOn": {
32264
+ capName: "navigation",
32265
+ capScope: "device",
32266
+ addonId: null,
32267
+ access: "create"
32268
+ },
32269
+ "navigation.stop": {
32270
+ capName: "navigation",
32271
+ capScope: "device",
32272
+ addonId: null,
32273
+ access: "create"
32274
+ },
32012
32275
  "networkAccess.getEndpoint": {
32013
32276
  capName: "network-access",
32014
32277
  capScope: "system",
@@ -36104,6 +36367,56 @@ Object.freeze({
36104
36367
  form: "single",
36105
36368
  optional: false
36106
36369
  }],
36370
+ "navigation.getFeatures": [{
36371
+ name: "deviceId",
36372
+ form: "single",
36373
+ optional: false
36374
+ }],
36375
+ "navigation.goToPoint": [{
36376
+ name: "deviceId",
36377
+ form: "single",
36378
+ optional: false
36379
+ }],
36380
+ "navigation.listActions": [{
36381
+ name: "deviceId",
36382
+ form: "single",
36383
+ optional: false
36384
+ }],
36385
+ "navigation.move": [{
36386
+ name: "deviceId",
36387
+ form: "single",
36388
+ optional: false
36389
+ }],
36390
+ "navigation.playSound": [{
36391
+ name: "deviceId",
36392
+ form: "single",
36393
+ optional: false
36394
+ }],
36395
+ "navigation.runAction": [{
36396
+ name: "deviceId",
36397
+ form: "single",
36398
+ optional: false
36399
+ }],
36400
+ "navigation.setLightLevel": [{
36401
+ name: "deviceId",
36402
+ form: "single",
36403
+ optional: false
36404
+ }],
36405
+ "navigation.setLightMode": [{
36406
+ name: "deviceId",
36407
+ form: "single",
36408
+ optional: false
36409
+ }],
36410
+ "navigation.setLightOn": [{
36411
+ name: "deviceId",
36412
+ form: "single",
36413
+ optional: false
36414
+ }],
36415
+ "navigation.stop": [{
36416
+ name: "deviceId",
36417
+ form: "single",
36418
+ optional: false
36419
+ }],
36107
36420
  "networkQuality.getDeviceStats": [{
36108
36421
  name: "deviceId",
36109
36422
  form: "single",
package/dist/index.mjs CHANGED
@@ -5406,6 +5406,12 @@ Object.fromEntries([
5406
5406
  icon: "move",
5407
5407
  order: 40
5408
5408
  },
5409
+ {
5410
+ id: "navigation",
5411
+ label: "Navigation",
5412
+ icon: "compass",
5413
+ order: 41
5414
+ },
5409
5415
  {
5410
5416
  id: "consumables",
5411
5417
  label: "Consumables",
@@ -26941,6 +26947,203 @@ DeviceType.Camera, method(object({ deviceId: number() }), PtzAutotrackStatusSche
26941
26947
  deviceId: number(),
26942
26948
  status: PtzAutotrackStatusSchema
26943
26949
  });
26950
+ /**
26951
+ * `navigation` — a device-scoped capability that natively expresses the FULL
26952
+ * navigation / action surface of a robot that DRIVES ITSELF and carries an
26953
+ * on-board camera (the Dreame robot-vacuum camera is the first provider).
26954
+ *
26955
+ * Why a NEW cap rather than overloading `ptz`:
26956
+ * - `ptz` moves a *gimbal* on a fixed camera (pan/tilt/zoom of the lens). A
26957
+ * robot vacuum has no gimbal — the whole chassis drives, turns and spins.
26958
+ * The two are different physical models: PTZ is absolute-position + presets,
26959
+ * navigation is momentary drive nudges + discrete robot ACTIONS
26960
+ * (dock / spot-clean / follow-pet / go-to-point / …).
26961
+ * - This cap is the SOURCE OF TRUTH. Two consumers adapt from it rather than
26962
+ * the reverse:
26963
+ * 1. a native CamStack navigation panel (data-driven from `listActions`
26964
+ * / `getOptions`), and
26965
+ * 2. the PTZ surface — a thin adapter mimics `ptz` from `navigation` so a
26966
+ * robot camera shows up in the existing PTZ control path without every
26967
+ * PTZ provider learning about robots. The mapping lives in the adapter,
26968
+ * not here (see the addon design note):
26969
+ * ptz.continuousMove({pan,tilt}) → navigation.move({pan,tilt})
26970
+ * ptz.stop() → navigation.stop()
26971
+ * ptz.goHome() → navigation.runAction('goHome')
26972
+ * ptz.getPresets() → navigation.listActions() (id→preset)
26973
+ * ptz.goToPreset(id) → navigation.runAction(id)
26974
+ *
26975
+ * ## Continuous drive
26976
+ *
26977
+ * `move` is MOMENTARY. Fluid navigation comes from the UI (or the PTZ adapter)
26978
+ * sending `move({pan,tilt})` REPEATEDLY at ~1 Hz while a direction is held, and
26979
+ * one `stop()` on release — exactly like the robot app's remote-drive joystick.
26980
+ * The provider forwards EACH `move` to one drive write; it must NOT debounce or
26981
+ * coalesce them. The UI owns the cadence.
26982
+ *
26983
+ * ## The action dictionary
26984
+ *
26985
+ * The discrete controls (dock / locate / spot-clean / follow / flash / sounds)
26986
+ * are a DATA-DRIVEN dictionary the cap exposes via `listActions()`. Each entry
26987
+ * carries `{ id, kind, label, icon }` (plus `soundId` for sound entries) so the
26988
+ * native panel AND the PTZ mimic render buttons WITHOUT hardcoding a
26989
+ * vendor-specific list. `kind: 'action'` entries are triggered with
26990
+ * `runAction({ actionId })`; `kind: 'sound'` entries with `playSound({ soundId })`
26991
+ * (the entry carries the `soundId` to pass). The general primitives — `move`,
26992
+ * `stop`, `goToPoint` — stay as first-class methods, not dictionary entries.
26993
+ *
26994
+ * NOTE (provider wiring): the first provider (Dreame) drives this with the RAW
26995
+ * `callAction(siid,aiid,in)` / `setProperty({siid,piid,value})` MIoT primitives
26996
+ * that the currently-published `@apocaliss92/nodedreame` already exposes on
26997
+ * every device handle. A future nodedreame publish adds a typed
26998
+ * `DreameCameraController` (drive / playPetSound / spotClean / findPet / …); the
26999
+ * provider can then swap the raw calls for the typed methods with no change to
27000
+ * THIS contract.
27001
+ */
27002
+ /**
27003
+ * A momentary drive nudge. The robot MOVES (no gimbal) for as long as the caller
27004
+ * keeps sending nudges (~1 Hz); an explicit `stop` (or letting the nudges lapse)
27005
+ * halts it.
27006
+ *
27007
+ * - `pan` — turn: negative = left, positive = right, 0 = straight.
27008
+ * - `tilt` — throttle: positive = forward, negative = spin / turn-around.
27009
+ * - `speed` — optional intensity hint [0, 1]; the provider may scale the drive
27010
+ * vector by it (drivers without proportional drive ignore it).
27011
+ *
27012
+ * `pan` / `tilt` are normalized [-1, 1]. Both optional so a caller can nudge one
27013
+ * axis alone; an all-undefined nudge is a no-op.
27014
+ */
27015
+ var NavigationMoveCommandSchema = object({
27016
+ pan: number().min(-1).max(1).optional(),
27017
+ tilt: number().min(-1).max(1).optional(),
27018
+ speed: number().min(0).max(1).optional()
27019
+ });
27020
+ /**
27021
+ * The enumerated discrete actions a navigation-capable robot can perform via
27022
+ * `runAction`. This is the CLOSED vocabulary; a given device advertises the
27023
+ * subset it supports through `listActions`. Sounds are NOT here — they go through
27024
+ * `playSound` (see the `sound` dictionary entries).
27025
+ */
27026
+ var NavigationActionIdSchema = _enum([
27027
+ "goHome",
27028
+ "locate",
27029
+ "spotClean",
27030
+ "findPet",
27031
+ "personFollow",
27032
+ "stop",
27033
+ "startClean",
27034
+ "pauseClean",
27035
+ "dockWash",
27036
+ "autoEmpty",
27037
+ "flashOn",
27038
+ "flashOff"
27039
+ ]);
27040
+ /** Whether a dictionary entry is a `runAction` action or a `playSound` sound. */
27041
+ var NavigationEntryKindSchema = _enum(["action", "sound"]);
27042
+ /**
27043
+ * One entry in the navigation action dictionary — the DATA-DRIVEN unit both the
27044
+ * native panel and the PTZ mimic render as a button.
27045
+ *
27046
+ * - `id` — stable id. For `kind:'action'` it is a {@link NavigationActionId}
27047
+ * (pass to `runAction`); for `kind:'sound'` it is a namespaced id
27048
+ * (`sound:meow`) whose `soundId` is passed to `playSound`.
27049
+ * - `icon` — icon HINT (lucide-style name; the UI maps it to its own set).
27050
+ * - `label` — operator-facing English label.
27051
+ * - `soundId` — wire sound id, present only on `kind:'sound'` entries.
27052
+ * - `enabled` — per-device FEATURE FLAG. `listActions` reports it so the UI /
27053
+ * PTZ render ONLY enabled entries. Data-driven: the provider
27054
+ * flips it from config, never by editing code.
27055
+ */
27056
+ var NavigationActionEntrySchema = object({
27057
+ id: string(),
27058
+ kind: NavigationEntryKindSchema,
27059
+ label: string(),
27060
+ icon: string(),
27061
+ /** Present only on `kind:'sound'` entries — the id to pass to `playSound`. */
27062
+ soundId: number().int().optional(),
27063
+ /** Per-device feature flag — render this entry only when true. */
27064
+ enabled: boolean()
27065
+ });
27066
+ /** Coordinates for `goToPoint` — a point on the robot's live map. */
27067
+ var NavigationPointSchema = object({
27068
+ x: number(),
27069
+ y: number()
27070
+ });
27071
+ /**
27072
+ * Per-device FEATURE-FLAG report for the general (non-dictionary) primitives.
27073
+ * The cap reports which are enabled so the UI / PTZ render only the controls
27074
+ * that are turned on for THIS device. Data-driven: the provider derives these
27075
+ * from config + probe, never hardcoded in the UI. The per-DICTIONARY-entry flags
27076
+ * live on {@link NavigationActionEntrySchema.enabled}; these gate the primitives
27077
+ * that are not dictionary entries.
27078
+ *
27079
+ * - `move` / `stop` — the momentary drive joystick.
27080
+ * - `goToPoint` — send-to-map-coordinate. Ships OFF on Dreame until the
27081
+ * map-coordinate plumbing is wired.
27082
+ * - `runAction` — the discrete action buttons (dictionary `kind:'action'`).
27083
+ * - `playSound` — the sound buttons (dictionary `kind:'sound'`).
27084
+ * - `light` — the on/off fill-light toggle (works anytime).
27085
+ * - `lightMode` — the auto/manual selector + manual level slider (a
27086
+ * camera-service control; needs an active stream).
27087
+ */
27088
+ var NavigationFeaturesSchema = object({
27089
+ move: boolean(),
27090
+ stop: boolean(),
27091
+ goToPoint: boolean(),
27092
+ runAction: boolean(),
27093
+ playSound: boolean(),
27094
+ light: boolean(),
27095
+ lightMode: boolean()
27096
+ });
27097
+ /** Light mode: `auto` lets the camera choose brightness; `manual` uses `level`. */
27098
+ var NavigationLightModeSchema = _enum(["auto", "manual"]);
27099
+ /**
27100
+ * Live navigation state so the UI can reflect what the robot is doing:
27101
+ * - `mode` — coarse activity (idle / cleaning / following / …).
27102
+ * - `following` — person/pet follow is currently armed.
27103
+ * - `flash` — the on-camera fill light is on.
27104
+ * - `lightMode` — auto vs manual fill-light mode.
27105
+ * - `lightLevel` — manual fill-light level (40..100); meaningful when
27106
+ * `lightMode === 'manual'`.
27107
+ */
27108
+ var NavigationStatusSchema = object({
27109
+ mode: _enum([
27110
+ "idle",
27111
+ "cleaning",
27112
+ "spot",
27113
+ "following",
27114
+ "goto",
27115
+ "returning",
27116
+ "paused",
27117
+ "unknown"
27118
+ ]),
27119
+ following: boolean(),
27120
+ flash: boolean(),
27121
+ lightMode: NavigationLightModeSchema,
27122
+ lightLevel: number().min(40).max(100),
27123
+ /** Ms epoch when the slice was last updated. */
27124
+ lastChangedAt: number()
27125
+ });
27126
+ NavigationStatusSchema.extend({ lastFetchedAt: number() });
27127
+ DeviceType.Camera, method(NavigationMoveCommandSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(NavigationPointSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(NavigationActionEntrySchema)), method(object({
27128
+ deviceId: number(),
27129
+ actionId: NavigationActionIdSchema
27130
+ }), _void(), { kind: "mutation" }), method(object({
27131
+ deviceId: number(),
27132
+ soundId: number().int()
27133
+ }), _void(), { kind: "mutation" }), method(object({
27134
+ deviceId: number(),
27135
+ on: boolean()
27136
+ }), _void(), { kind: "mutation" }), method(object({
27137
+ deviceId: number(),
27138
+ mode: NavigationLightModeSchema,
27139
+ level: number().min(40).max(100).optional()
27140
+ }), _void(), { kind: "mutation" }), method(object({
27141
+ deviceId: number(),
27142
+ level: number().min(40).max(100)
27143
+ }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), NavigationFeaturesSchema), object({
27144
+ deviceId: number(),
27145
+ status: NavigationStatusSchema
27146
+ });
26944
27147
  DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceId: number().int().nonnegative() }), object({ success: literal(true) }), {
26945
27148
  kind: "mutation",
26946
27149
  auth: "admin"
@@ -32005,6 +32208,66 @@ Object.freeze({
32005
32208
  addonId: null,
32006
32209
  access: "create"
32007
32210
  },
32211
+ "navigation.getFeatures": {
32212
+ capName: "navigation",
32213
+ capScope: "device",
32214
+ addonId: null,
32215
+ access: "view"
32216
+ },
32217
+ "navigation.goToPoint": {
32218
+ capName: "navigation",
32219
+ capScope: "device",
32220
+ addonId: null,
32221
+ access: "create"
32222
+ },
32223
+ "navigation.listActions": {
32224
+ capName: "navigation",
32225
+ capScope: "device",
32226
+ addonId: null,
32227
+ access: "view"
32228
+ },
32229
+ "navigation.move": {
32230
+ capName: "navigation",
32231
+ capScope: "device",
32232
+ addonId: null,
32233
+ access: "create"
32234
+ },
32235
+ "navigation.playSound": {
32236
+ capName: "navigation",
32237
+ capScope: "device",
32238
+ addonId: null,
32239
+ access: "create"
32240
+ },
32241
+ "navigation.runAction": {
32242
+ capName: "navigation",
32243
+ capScope: "device",
32244
+ addonId: null,
32245
+ access: "create"
32246
+ },
32247
+ "navigation.setLightLevel": {
32248
+ capName: "navigation",
32249
+ capScope: "device",
32250
+ addonId: null,
32251
+ access: "create"
32252
+ },
32253
+ "navigation.setLightMode": {
32254
+ capName: "navigation",
32255
+ capScope: "device",
32256
+ addonId: null,
32257
+ access: "create"
32258
+ },
32259
+ "navigation.setLightOn": {
32260
+ capName: "navigation",
32261
+ capScope: "device",
32262
+ addonId: null,
32263
+ access: "create"
32264
+ },
32265
+ "navigation.stop": {
32266
+ capName: "navigation",
32267
+ capScope: "device",
32268
+ addonId: null,
32269
+ access: "create"
32270
+ },
32008
32271
  "networkAccess.getEndpoint": {
32009
32272
  capName: "network-access",
32010
32273
  capScope: "system",
@@ -36100,6 +36363,56 @@ Object.freeze({
36100
36363
  form: "single",
36101
36364
  optional: false
36102
36365
  }],
36366
+ "navigation.getFeatures": [{
36367
+ name: "deviceId",
36368
+ form: "single",
36369
+ optional: false
36370
+ }],
36371
+ "navigation.goToPoint": [{
36372
+ name: "deviceId",
36373
+ form: "single",
36374
+ optional: false
36375
+ }],
36376
+ "navigation.listActions": [{
36377
+ name: "deviceId",
36378
+ form: "single",
36379
+ optional: false
36380
+ }],
36381
+ "navigation.move": [{
36382
+ name: "deviceId",
36383
+ form: "single",
36384
+ optional: false
36385
+ }],
36386
+ "navigation.playSound": [{
36387
+ name: "deviceId",
36388
+ form: "single",
36389
+ optional: false
36390
+ }],
36391
+ "navigation.runAction": [{
36392
+ name: "deviceId",
36393
+ form: "single",
36394
+ optional: false
36395
+ }],
36396
+ "navigation.setLightLevel": [{
36397
+ name: "deviceId",
36398
+ form: "single",
36399
+ optional: false
36400
+ }],
36401
+ "navigation.setLightMode": [{
36402
+ name: "deviceId",
36403
+ form: "single",
36404
+ optional: false
36405
+ }],
36406
+ "navigation.setLightOn": [{
36407
+ name: "deviceId",
36408
+ form: "single",
36409
+ optional: false
36410
+ }],
36411
+ "navigation.stop": [{
36412
+ name: "deviceId",
36413
+ form: "single",
36414
+ optional: false
36415
+ }],
36103
36416
  "networkQuality.getDeviceStats": [{
36104
36417
  name: "deviceId",
36105
36418
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-decoder-nodeav",
3
- "version": "1.2.70",
3
+ "version": "1.2.72",
4
4
  "description": "Standalone in-process node-av decoder addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",