@camstack/addon-provider-onvif 1.2.69 → 1.2.71

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
@@ -5409,6 +5409,12 @@ Object.fromEntries([
5409
5409
  icon: "move",
5410
5410
  order: 40
5411
5411
  },
5412
+ {
5413
+ id: "navigation",
5414
+ label: "Navigation",
5415
+ icon: "compass",
5416
+ order: 41
5417
+ },
5412
5418
  {
5413
5419
  id: "consumables",
5414
5420
  label: "Consumables",
@@ -27041,6 +27047,203 @@ DeviceType.Camera, method(object({ deviceId: number() }), PtzAutotrackStatusSche
27041
27047
  deviceId: number(),
27042
27048
  status: PtzAutotrackStatusSchema
27043
27049
  });
27050
+ /**
27051
+ * `navigation` — a device-scoped capability that natively expresses the FULL
27052
+ * navigation / action surface of a robot that DRIVES ITSELF and carries an
27053
+ * on-board camera (the Dreame robot-vacuum camera is the first provider).
27054
+ *
27055
+ * Why a NEW cap rather than overloading `ptz`:
27056
+ * - `ptz` moves a *gimbal* on a fixed camera (pan/tilt/zoom of the lens). A
27057
+ * robot vacuum has no gimbal — the whole chassis drives, turns and spins.
27058
+ * The two are different physical models: PTZ is absolute-position + presets,
27059
+ * navigation is momentary drive nudges + discrete robot ACTIONS
27060
+ * (dock / spot-clean / follow-pet / go-to-point / …).
27061
+ * - This cap is the SOURCE OF TRUTH. Two consumers adapt from it rather than
27062
+ * the reverse:
27063
+ * 1. a native CamStack navigation panel (data-driven from `listActions`
27064
+ * / `getOptions`), and
27065
+ * 2. the PTZ surface — a thin adapter mimics `ptz` from `navigation` so a
27066
+ * robot camera shows up in the existing PTZ control path without every
27067
+ * PTZ provider learning about robots. The mapping lives in the adapter,
27068
+ * not here (see the addon design note):
27069
+ * ptz.continuousMove({pan,tilt}) → navigation.move({pan,tilt})
27070
+ * ptz.stop() → navigation.stop()
27071
+ * ptz.goHome() → navigation.runAction('goHome')
27072
+ * ptz.getPresets() → navigation.listActions() (id→preset)
27073
+ * ptz.goToPreset(id) → navigation.runAction(id)
27074
+ *
27075
+ * ## Continuous drive
27076
+ *
27077
+ * `move` is MOMENTARY. Fluid navigation comes from the UI (or the PTZ adapter)
27078
+ * sending `move({pan,tilt})` REPEATEDLY at ~1 Hz while a direction is held, and
27079
+ * one `stop()` on release — exactly like the robot app's remote-drive joystick.
27080
+ * The provider forwards EACH `move` to one drive write; it must NOT debounce or
27081
+ * coalesce them. The UI owns the cadence.
27082
+ *
27083
+ * ## The action dictionary
27084
+ *
27085
+ * The discrete controls (dock / locate / spot-clean / follow / flash / sounds)
27086
+ * are a DATA-DRIVEN dictionary the cap exposes via `listActions()`. Each entry
27087
+ * carries `{ id, kind, label, icon }` (plus `soundId` for sound entries) so the
27088
+ * native panel AND the PTZ mimic render buttons WITHOUT hardcoding a
27089
+ * vendor-specific list. `kind: 'action'` entries are triggered with
27090
+ * `runAction({ actionId })`; `kind: 'sound'` entries with `playSound({ soundId })`
27091
+ * (the entry carries the `soundId` to pass). The general primitives — `move`,
27092
+ * `stop`, `goToPoint` — stay as first-class methods, not dictionary entries.
27093
+ *
27094
+ * NOTE (provider wiring): the first provider (Dreame) drives this with the RAW
27095
+ * `callAction(siid,aiid,in)` / `setProperty({siid,piid,value})` MIoT primitives
27096
+ * that the currently-published `@apocaliss92/nodedreame` already exposes on
27097
+ * every device handle. A future nodedreame publish adds a typed
27098
+ * `DreameCameraController` (drive / playPetSound / spotClean / findPet / …); the
27099
+ * provider can then swap the raw calls for the typed methods with no change to
27100
+ * THIS contract.
27101
+ */
27102
+ /**
27103
+ * A momentary drive nudge. The robot MOVES (no gimbal) for as long as the caller
27104
+ * keeps sending nudges (~1 Hz); an explicit `stop` (or letting the nudges lapse)
27105
+ * halts it.
27106
+ *
27107
+ * - `pan` — turn: negative = left, positive = right, 0 = straight.
27108
+ * - `tilt` — throttle: positive = forward, negative = spin / turn-around.
27109
+ * - `speed` — optional intensity hint [0, 1]; the provider may scale the drive
27110
+ * vector by it (drivers without proportional drive ignore it).
27111
+ *
27112
+ * `pan` / `tilt` are normalized [-1, 1]. Both optional so a caller can nudge one
27113
+ * axis alone; an all-undefined nudge is a no-op.
27114
+ */
27115
+ var NavigationMoveCommandSchema = object({
27116
+ pan: number().min(-1).max(1).optional(),
27117
+ tilt: number().min(-1).max(1).optional(),
27118
+ speed: number().min(0).max(1).optional()
27119
+ });
27120
+ /**
27121
+ * The enumerated discrete actions a navigation-capable robot can perform via
27122
+ * `runAction`. This is the CLOSED vocabulary; a given device advertises the
27123
+ * subset it supports through `listActions`. Sounds are NOT here — they go through
27124
+ * `playSound` (see the `sound` dictionary entries).
27125
+ */
27126
+ var NavigationActionIdSchema = _enum([
27127
+ "goHome",
27128
+ "locate",
27129
+ "spotClean",
27130
+ "findPet",
27131
+ "personFollow",
27132
+ "stop",
27133
+ "startClean",
27134
+ "pauseClean",
27135
+ "dockWash",
27136
+ "autoEmpty",
27137
+ "flashOn",
27138
+ "flashOff"
27139
+ ]);
27140
+ /** Whether a dictionary entry is a `runAction` action or a `playSound` sound. */
27141
+ var NavigationEntryKindSchema = _enum(["action", "sound"]);
27142
+ /**
27143
+ * One entry in the navigation action dictionary — the DATA-DRIVEN unit both the
27144
+ * native panel and the PTZ mimic render as a button.
27145
+ *
27146
+ * - `id` — stable id. For `kind:'action'` it is a {@link NavigationActionId}
27147
+ * (pass to `runAction`); for `kind:'sound'` it is a namespaced id
27148
+ * (`sound:meow`) whose `soundId` is passed to `playSound`.
27149
+ * - `icon` — icon HINT (lucide-style name; the UI maps it to its own set).
27150
+ * - `label` — operator-facing English label.
27151
+ * - `soundId` — wire sound id, present only on `kind:'sound'` entries.
27152
+ * - `enabled` — per-device FEATURE FLAG. `listActions` reports it so the UI /
27153
+ * PTZ render ONLY enabled entries. Data-driven: the provider
27154
+ * flips it from config, never by editing code.
27155
+ */
27156
+ var NavigationActionEntrySchema = object({
27157
+ id: string(),
27158
+ kind: NavigationEntryKindSchema,
27159
+ label: string(),
27160
+ icon: string(),
27161
+ /** Present only on `kind:'sound'` entries — the id to pass to `playSound`. */
27162
+ soundId: number().int().optional(),
27163
+ /** Per-device feature flag — render this entry only when true. */
27164
+ enabled: boolean()
27165
+ });
27166
+ /** Coordinates for `goToPoint` — a point on the robot's live map. */
27167
+ var NavigationPointSchema = object({
27168
+ x: number(),
27169
+ y: number()
27170
+ });
27171
+ /**
27172
+ * Per-device FEATURE-FLAG report for the general (non-dictionary) primitives.
27173
+ * The cap reports which are enabled so the UI / PTZ render only the controls
27174
+ * that are turned on for THIS device. Data-driven: the provider derives these
27175
+ * from config + probe, never hardcoded in the UI. The per-DICTIONARY-entry flags
27176
+ * live on {@link NavigationActionEntrySchema.enabled}; these gate the primitives
27177
+ * that are not dictionary entries.
27178
+ *
27179
+ * - `move` / `stop` — the momentary drive joystick.
27180
+ * - `goToPoint` — send-to-map-coordinate. Ships OFF on Dreame until the
27181
+ * map-coordinate plumbing is wired.
27182
+ * - `runAction` — the discrete action buttons (dictionary `kind:'action'`).
27183
+ * - `playSound` — the sound buttons (dictionary `kind:'sound'`).
27184
+ * - `light` — the on/off fill-light toggle (works anytime).
27185
+ * - `lightMode` — the auto/manual selector + manual level slider (a
27186
+ * camera-service control; needs an active stream).
27187
+ */
27188
+ var NavigationFeaturesSchema = object({
27189
+ move: boolean(),
27190
+ stop: boolean(),
27191
+ goToPoint: boolean(),
27192
+ runAction: boolean(),
27193
+ playSound: boolean(),
27194
+ light: boolean(),
27195
+ lightMode: boolean()
27196
+ });
27197
+ /** Light mode: `auto` lets the camera choose brightness; `manual` uses `level`. */
27198
+ var NavigationLightModeSchema = _enum(["auto", "manual"]);
27199
+ /**
27200
+ * Live navigation state so the UI can reflect what the robot is doing:
27201
+ * - `mode` — coarse activity (idle / cleaning / following / …).
27202
+ * - `following` — person/pet follow is currently armed.
27203
+ * - `flash` — the on-camera fill light is on.
27204
+ * - `lightMode` — auto vs manual fill-light mode.
27205
+ * - `lightLevel` — manual fill-light level (40..100); meaningful when
27206
+ * `lightMode === 'manual'`.
27207
+ */
27208
+ var NavigationStatusSchema = object({
27209
+ mode: _enum([
27210
+ "idle",
27211
+ "cleaning",
27212
+ "spot",
27213
+ "following",
27214
+ "goto",
27215
+ "returning",
27216
+ "paused",
27217
+ "unknown"
27218
+ ]),
27219
+ following: boolean(),
27220
+ flash: boolean(),
27221
+ lightMode: NavigationLightModeSchema,
27222
+ lightLevel: number().min(40).max(100),
27223
+ /** Ms epoch when the slice was last updated. */
27224
+ lastChangedAt: number()
27225
+ });
27226
+ NavigationStatusSchema.extend({ lastFetchedAt: number() });
27227
+ 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({
27228
+ deviceId: number(),
27229
+ actionId: NavigationActionIdSchema
27230
+ }), _void(), { kind: "mutation" }), method(object({
27231
+ deviceId: number(),
27232
+ soundId: number().int()
27233
+ }), _void(), { kind: "mutation" }), method(object({
27234
+ deviceId: number(),
27235
+ on: boolean()
27236
+ }), _void(), { kind: "mutation" }), method(object({
27237
+ deviceId: number(),
27238
+ mode: NavigationLightModeSchema,
27239
+ level: number().min(40).max(100).optional()
27240
+ }), _void(), { kind: "mutation" }), method(object({
27241
+ deviceId: number(),
27242
+ level: number().min(40).max(100)
27243
+ }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), NavigationFeaturesSchema), object({
27244
+ deviceId: number(),
27245
+ status: NavigationStatusSchema
27246
+ });
27044
27247
  DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceId: number().int().nonnegative() }), object({ success: literal(true) }), {
27045
27248
  kind: "mutation",
27046
27249
  auth: "admin"
@@ -32880,6 +33083,66 @@ Object.freeze({
32880
33083
  addonId: null,
32881
33084
  access: "create"
32882
33085
  },
33086
+ "navigation.getFeatures": {
33087
+ capName: "navigation",
33088
+ capScope: "device",
33089
+ addonId: null,
33090
+ access: "view"
33091
+ },
33092
+ "navigation.goToPoint": {
33093
+ capName: "navigation",
33094
+ capScope: "device",
33095
+ addonId: null,
33096
+ access: "create"
33097
+ },
33098
+ "navigation.listActions": {
33099
+ capName: "navigation",
33100
+ capScope: "device",
33101
+ addonId: null,
33102
+ access: "view"
33103
+ },
33104
+ "navigation.move": {
33105
+ capName: "navigation",
33106
+ capScope: "device",
33107
+ addonId: null,
33108
+ access: "create"
33109
+ },
33110
+ "navigation.playSound": {
33111
+ capName: "navigation",
33112
+ capScope: "device",
33113
+ addonId: null,
33114
+ access: "create"
33115
+ },
33116
+ "navigation.runAction": {
33117
+ capName: "navigation",
33118
+ capScope: "device",
33119
+ addonId: null,
33120
+ access: "create"
33121
+ },
33122
+ "navigation.setLightLevel": {
33123
+ capName: "navigation",
33124
+ capScope: "device",
33125
+ addonId: null,
33126
+ access: "create"
33127
+ },
33128
+ "navigation.setLightMode": {
33129
+ capName: "navigation",
33130
+ capScope: "device",
33131
+ addonId: null,
33132
+ access: "create"
33133
+ },
33134
+ "navigation.setLightOn": {
33135
+ capName: "navigation",
33136
+ capScope: "device",
33137
+ addonId: null,
33138
+ access: "create"
33139
+ },
33140
+ "navigation.stop": {
33141
+ capName: "navigation",
33142
+ capScope: "device",
33143
+ addonId: null,
33144
+ access: "create"
33145
+ },
32883
33146
  "networkAccess.getEndpoint": {
32884
33147
  capName: "network-access",
32885
33148
  capScope: "system",
@@ -36975,6 +37238,56 @@ Object.freeze({
36975
37238
  form: "single",
36976
37239
  optional: false
36977
37240
  }],
37241
+ "navigation.getFeatures": [{
37242
+ name: "deviceId",
37243
+ form: "single",
37244
+ optional: false
37245
+ }],
37246
+ "navigation.goToPoint": [{
37247
+ name: "deviceId",
37248
+ form: "single",
37249
+ optional: false
37250
+ }],
37251
+ "navigation.listActions": [{
37252
+ name: "deviceId",
37253
+ form: "single",
37254
+ optional: false
37255
+ }],
37256
+ "navigation.move": [{
37257
+ name: "deviceId",
37258
+ form: "single",
37259
+ optional: false
37260
+ }],
37261
+ "navigation.playSound": [{
37262
+ name: "deviceId",
37263
+ form: "single",
37264
+ optional: false
37265
+ }],
37266
+ "navigation.runAction": [{
37267
+ name: "deviceId",
37268
+ form: "single",
37269
+ optional: false
37270
+ }],
37271
+ "navigation.setLightLevel": [{
37272
+ name: "deviceId",
37273
+ form: "single",
37274
+ optional: false
37275
+ }],
37276
+ "navigation.setLightMode": [{
37277
+ name: "deviceId",
37278
+ form: "single",
37279
+ optional: false
37280
+ }],
37281
+ "navigation.setLightOn": [{
37282
+ name: "deviceId",
37283
+ form: "single",
37284
+ optional: false
37285
+ }],
37286
+ "navigation.stop": [{
37287
+ name: "deviceId",
37288
+ form: "single",
37289
+ optional: false
37290
+ }],
36978
37291
  "networkQuality.getDeviceStats": [{
36979
37292
  name: "deviceId",
36980
37293
  form: "single",
package/dist/addon.mjs 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",
@@ -27042,6 +27048,203 @@ DeviceType.Camera, method(object({ deviceId: number() }), PtzAutotrackStatusSche
27042
27048
  deviceId: number(),
27043
27049
  status: PtzAutotrackStatusSchema
27044
27050
  });
27051
+ /**
27052
+ * `navigation` — a device-scoped capability that natively expresses the FULL
27053
+ * navigation / action surface of a robot that DRIVES ITSELF and carries an
27054
+ * on-board camera (the Dreame robot-vacuum camera is the first provider).
27055
+ *
27056
+ * Why a NEW cap rather than overloading `ptz`:
27057
+ * - `ptz` moves a *gimbal* on a fixed camera (pan/tilt/zoom of the lens). A
27058
+ * robot vacuum has no gimbal — the whole chassis drives, turns and spins.
27059
+ * The two are different physical models: PTZ is absolute-position + presets,
27060
+ * navigation is momentary drive nudges + discrete robot ACTIONS
27061
+ * (dock / spot-clean / follow-pet / go-to-point / …).
27062
+ * - This cap is the SOURCE OF TRUTH. Two consumers adapt from it rather than
27063
+ * the reverse:
27064
+ * 1. a native CamStack navigation panel (data-driven from `listActions`
27065
+ * / `getOptions`), and
27066
+ * 2. the PTZ surface — a thin adapter mimics `ptz` from `navigation` so a
27067
+ * robot camera shows up in the existing PTZ control path without every
27068
+ * PTZ provider learning about robots. The mapping lives in the adapter,
27069
+ * not here (see the addon design note):
27070
+ * ptz.continuousMove({pan,tilt}) → navigation.move({pan,tilt})
27071
+ * ptz.stop() → navigation.stop()
27072
+ * ptz.goHome() → navigation.runAction('goHome')
27073
+ * ptz.getPresets() → navigation.listActions() (id→preset)
27074
+ * ptz.goToPreset(id) → navigation.runAction(id)
27075
+ *
27076
+ * ## Continuous drive
27077
+ *
27078
+ * `move` is MOMENTARY. Fluid navigation comes from the UI (or the PTZ adapter)
27079
+ * sending `move({pan,tilt})` REPEATEDLY at ~1 Hz while a direction is held, and
27080
+ * one `stop()` on release — exactly like the robot app's remote-drive joystick.
27081
+ * The provider forwards EACH `move` to one drive write; it must NOT debounce or
27082
+ * coalesce them. The UI owns the cadence.
27083
+ *
27084
+ * ## The action dictionary
27085
+ *
27086
+ * The discrete controls (dock / locate / spot-clean / follow / flash / sounds)
27087
+ * are a DATA-DRIVEN dictionary the cap exposes via `listActions()`. Each entry
27088
+ * carries `{ id, kind, label, icon }` (plus `soundId` for sound entries) so the
27089
+ * native panel AND the PTZ mimic render buttons WITHOUT hardcoding a
27090
+ * vendor-specific list. `kind: 'action'` entries are triggered with
27091
+ * `runAction({ actionId })`; `kind: 'sound'` entries with `playSound({ soundId })`
27092
+ * (the entry carries the `soundId` to pass). The general primitives — `move`,
27093
+ * `stop`, `goToPoint` — stay as first-class methods, not dictionary entries.
27094
+ *
27095
+ * NOTE (provider wiring): the first provider (Dreame) drives this with the RAW
27096
+ * `callAction(siid,aiid,in)` / `setProperty({siid,piid,value})` MIoT primitives
27097
+ * that the currently-published `@apocaliss92/nodedreame` already exposes on
27098
+ * every device handle. A future nodedreame publish adds a typed
27099
+ * `DreameCameraController` (drive / playPetSound / spotClean / findPet / …); the
27100
+ * provider can then swap the raw calls for the typed methods with no change to
27101
+ * THIS contract.
27102
+ */
27103
+ /**
27104
+ * A momentary drive nudge. The robot MOVES (no gimbal) for as long as the caller
27105
+ * keeps sending nudges (~1 Hz); an explicit `stop` (or letting the nudges lapse)
27106
+ * halts it.
27107
+ *
27108
+ * - `pan` — turn: negative = left, positive = right, 0 = straight.
27109
+ * - `tilt` — throttle: positive = forward, negative = spin / turn-around.
27110
+ * - `speed` — optional intensity hint [0, 1]; the provider may scale the drive
27111
+ * vector by it (drivers without proportional drive ignore it).
27112
+ *
27113
+ * `pan` / `tilt` are normalized [-1, 1]. Both optional so a caller can nudge one
27114
+ * axis alone; an all-undefined nudge is a no-op.
27115
+ */
27116
+ var NavigationMoveCommandSchema = object({
27117
+ pan: number().min(-1).max(1).optional(),
27118
+ tilt: number().min(-1).max(1).optional(),
27119
+ speed: number().min(0).max(1).optional()
27120
+ });
27121
+ /**
27122
+ * The enumerated discrete actions a navigation-capable robot can perform via
27123
+ * `runAction`. This is the CLOSED vocabulary; a given device advertises the
27124
+ * subset it supports through `listActions`. Sounds are NOT here — they go through
27125
+ * `playSound` (see the `sound` dictionary entries).
27126
+ */
27127
+ var NavigationActionIdSchema = _enum([
27128
+ "goHome",
27129
+ "locate",
27130
+ "spotClean",
27131
+ "findPet",
27132
+ "personFollow",
27133
+ "stop",
27134
+ "startClean",
27135
+ "pauseClean",
27136
+ "dockWash",
27137
+ "autoEmpty",
27138
+ "flashOn",
27139
+ "flashOff"
27140
+ ]);
27141
+ /** Whether a dictionary entry is a `runAction` action or a `playSound` sound. */
27142
+ var NavigationEntryKindSchema = _enum(["action", "sound"]);
27143
+ /**
27144
+ * One entry in the navigation action dictionary — the DATA-DRIVEN unit both the
27145
+ * native panel and the PTZ mimic render as a button.
27146
+ *
27147
+ * - `id` — stable id. For `kind:'action'` it is a {@link NavigationActionId}
27148
+ * (pass to `runAction`); for `kind:'sound'` it is a namespaced id
27149
+ * (`sound:meow`) whose `soundId` is passed to `playSound`.
27150
+ * - `icon` — icon HINT (lucide-style name; the UI maps it to its own set).
27151
+ * - `label` — operator-facing English label.
27152
+ * - `soundId` — wire sound id, present only on `kind:'sound'` entries.
27153
+ * - `enabled` — per-device FEATURE FLAG. `listActions` reports it so the UI /
27154
+ * PTZ render ONLY enabled entries. Data-driven: the provider
27155
+ * flips it from config, never by editing code.
27156
+ */
27157
+ var NavigationActionEntrySchema = object({
27158
+ id: string(),
27159
+ kind: NavigationEntryKindSchema,
27160
+ label: string(),
27161
+ icon: string(),
27162
+ /** Present only on `kind:'sound'` entries — the id to pass to `playSound`. */
27163
+ soundId: number().int().optional(),
27164
+ /** Per-device feature flag — render this entry only when true. */
27165
+ enabled: boolean()
27166
+ });
27167
+ /** Coordinates for `goToPoint` — a point on the robot's live map. */
27168
+ var NavigationPointSchema = object({
27169
+ x: number(),
27170
+ y: number()
27171
+ });
27172
+ /**
27173
+ * Per-device FEATURE-FLAG report for the general (non-dictionary) primitives.
27174
+ * The cap reports which are enabled so the UI / PTZ render only the controls
27175
+ * that are turned on for THIS device. Data-driven: the provider derives these
27176
+ * from config + probe, never hardcoded in the UI. The per-DICTIONARY-entry flags
27177
+ * live on {@link NavigationActionEntrySchema.enabled}; these gate the primitives
27178
+ * that are not dictionary entries.
27179
+ *
27180
+ * - `move` / `stop` — the momentary drive joystick.
27181
+ * - `goToPoint` — send-to-map-coordinate. Ships OFF on Dreame until the
27182
+ * map-coordinate plumbing is wired.
27183
+ * - `runAction` — the discrete action buttons (dictionary `kind:'action'`).
27184
+ * - `playSound` — the sound buttons (dictionary `kind:'sound'`).
27185
+ * - `light` — the on/off fill-light toggle (works anytime).
27186
+ * - `lightMode` — the auto/manual selector + manual level slider (a
27187
+ * camera-service control; needs an active stream).
27188
+ */
27189
+ var NavigationFeaturesSchema = object({
27190
+ move: boolean(),
27191
+ stop: boolean(),
27192
+ goToPoint: boolean(),
27193
+ runAction: boolean(),
27194
+ playSound: boolean(),
27195
+ light: boolean(),
27196
+ lightMode: boolean()
27197
+ });
27198
+ /** Light mode: `auto` lets the camera choose brightness; `manual` uses `level`. */
27199
+ var NavigationLightModeSchema = _enum(["auto", "manual"]);
27200
+ /**
27201
+ * Live navigation state so the UI can reflect what the robot is doing:
27202
+ * - `mode` — coarse activity (idle / cleaning / following / …).
27203
+ * - `following` — person/pet follow is currently armed.
27204
+ * - `flash` — the on-camera fill light is on.
27205
+ * - `lightMode` — auto vs manual fill-light mode.
27206
+ * - `lightLevel` — manual fill-light level (40..100); meaningful when
27207
+ * `lightMode === 'manual'`.
27208
+ */
27209
+ var NavigationStatusSchema = object({
27210
+ mode: _enum([
27211
+ "idle",
27212
+ "cleaning",
27213
+ "spot",
27214
+ "following",
27215
+ "goto",
27216
+ "returning",
27217
+ "paused",
27218
+ "unknown"
27219
+ ]),
27220
+ following: boolean(),
27221
+ flash: boolean(),
27222
+ lightMode: NavigationLightModeSchema,
27223
+ lightLevel: number().min(40).max(100),
27224
+ /** Ms epoch when the slice was last updated. */
27225
+ lastChangedAt: number()
27226
+ });
27227
+ NavigationStatusSchema.extend({ lastFetchedAt: number() });
27228
+ 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({
27229
+ deviceId: number(),
27230
+ actionId: NavigationActionIdSchema
27231
+ }), _void(), { kind: "mutation" }), method(object({
27232
+ deviceId: number(),
27233
+ soundId: number().int()
27234
+ }), _void(), { kind: "mutation" }), method(object({
27235
+ deviceId: number(),
27236
+ on: boolean()
27237
+ }), _void(), { kind: "mutation" }), method(object({
27238
+ deviceId: number(),
27239
+ mode: NavigationLightModeSchema,
27240
+ level: number().min(40).max(100).optional()
27241
+ }), _void(), { kind: "mutation" }), method(object({
27242
+ deviceId: number(),
27243
+ level: number().min(40).max(100)
27244
+ }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), NavigationFeaturesSchema), object({
27245
+ deviceId: number(),
27246
+ status: NavigationStatusSchema
27247
+ });
27045
27248
  DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceId: number().int().nonnegative() }), object({ success: literal(true) }), {
27046
27249
  kind: "mutation",
27047
27250
  auth: "admin"
@@ -32881,6 +33084,66 @@ Object.freeze({
32881
33084
  addonId: null,
32882
33085
  access: "create"
32883
33086
  },
33087
+ "navigation.getFeatures": {
33088
+ capName: "navigation",
33089
+ capScope: "device",
33090
+ addonId: null,
33091
+ access: "view"
33092
+ },
33093
+ "navigation.goToPoint": {
33094
+ capName: "navigation",
33095
+ capScope: "device",
33096
+ addonId: null,
33097
+ access: "create"
33098
+ },
33099
+ "navigation.listActions": {
33100
+ capName: "navigation",
33101
+ capScope: "device",
33102
+ addonId: null,
33103
+ access: "view"
33104
+ },
33105
+ "navigation.move": {
33106
+ capName: "navigation",
33107
+ capScope: "device",
33108
+ addonId: null,
33109
+ access: "create"
33110
+ },
33111
+ "navigation.playSound": {
33112
+ capName: "navigation",
33113
+ capScope: "device",
33114
+ addonId: null,
33115
+ access: "create"
33116
+ },
33117
+ "navigation.runAction": {
33118
+ capName: "navigation",
33119
+ capScope: "device",
33120
+ addonId: null,
33121
+ access: "create"
33122
+ },
33123
+ "navigation.setLightLevel": {
33124
+ capName: "navigation",
33125
+ capScope: "device",
33126
+ addonId: null,
33127
+ access: "create"
33128
+ },
33129
+ "navigation.setLightMode": {
33130
+ capName: "navigation",
33131
+ capScope: "device",
33132
+ addonId: null,
33133
+ access: "create"
33134
+ },
33135
+ "navigation.setLightOn": {
33136
+ capName: "navigation",
33137
+ capScope: "device",
33138
+ addonId: null,
33139
+ access: "create"
33140
+ },
33141
+ "navigation.stop": {
33142
+ capName: "navigation",
33143
+ capScope: "device",
33144
+ addonId: null,
33145
+ access: "create"
33146
+ },
32884
33147
  "networkAccess.getEndpoint": {
32885
33148
  capName: "network-access",
32886
33149
  capScope: "system",
@@ -36976,6 +37239,56 @@ Object.freeze({
36976
37239
  form: "single",
36977
37240
  optional: false
36978
37241
  }],
37242
+ "navigation.getFeatures": [{
37243
+ name: "deviceId",
37244
+ form: "single",
37245
+ optional: false
37246
+ }],
37247
+ "navigation.goToPoint": [{
37248
+ name: "deviceId",
37249
+ form: "single",
37250
+ optional: false
37251
+ }],
37252
+ "navigation.listActions": [{
37253
+ name: "deviceId",
37254
+ form: "single",
37255
+ optional: false
37256
+ }],
37257
+ "navigation.move": [{
37258
+ name: "deviceId",
37259
+ form: "single",
37260
+ optional: false
37261
+ }],
37262
+ "navigation.playSound": [{
37263
+ name: "deviceId",
37264
+ form: "single",
37265
+ optional: false
37266
+ }],
37267
+ "navigation.runAction": [{
37268
+ name: "deviceId",
37269
+ form: "single",
37270
+ optional: false
37271
+ }],
37272
+ "navigation.setLightLevel": [{
37273
+ name: "deviceId",
37274
+ form: "single",
37275
+ optional: false
37276
+ }],
37277
+ "navigation.setLightMode": [{
37278
+ name: "deviceId",
37279
+ form: "single",
37280
+ optional: false
37281
+ }],
37282
+ "navigation.setLightOn": [{
37283
+ name: "deviceId",
37284
+ form: "single",
37285
+ optional: false
37286
+ }],
37287
+ "navigation.stop": [{
37288
+ name: "deviceId",
37289
+ form: "single",
37290
+ optional: false
37291
+ }],
36979
37292
  "networkQuality.getDeviceStats": [{
36980
37293
  name: "deviceId",
36981
37294
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-onvif",
3
- "version": "1.2.69",
3
+ "version": "1.2.71",
4
4
  "description": "ONVIF camera device provider addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",