@camstack/addon-remote-storage 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/s3.addon.js CHANGED
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_shared = require("./shared-wJVLo41v.js");
5
+ const require_shared = require("./shared-AZZGXMhT.js");
6
6
  let node_stream = require("node:stream");
7
7
  let _aws_sdk_client_s3 = require("@aws-sdk/client-s3");
8
8
  let _aws_sdk_lib_storage = require("@aws-sdk/lib-storage");
package/dist/s3.addon.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { c as BaseAddon, i as rearmIdleAbort, n as getOptionalBasePath, o as scheduleIdleAbort, s as storageProviderCapability, t as createSessionId } from "./shared-C1oHNHV8.mjs";
1
+ import { c as BaseAddon, i as rearmIdleAbort, n as getOptionalBasePath, o as scheduleIdleAbort, s as storageProviderCapability, t as createSessionId } from "./shared-Dolhen_U.mjs";
2
2
  import { PassThrough } from "node:stream";
3
3
  import { DeleteObjectCommand, GetObjectCommand, HeadBucketCommand, HeadObjectCommand, ListObjectsV2Command, PutObjectCommand, S3Client } from "@aws-sdk/client-s3";
4
4
  import { Upload } from "@aws-sdk/lib-storage";
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_shared = require("./shared-wJVLo41v.js");
5
+ const require_shared = require("./shared-AZZGXMhT.js");
6
6
  let ssh2 = require("ssh2");
7
7
  let node_path = require("node:path");
8
8
  node_path = require_shared.__toESM(node_path);
@@ -1,4 +1,4 @@
1
- import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-C1oHNHV8.mjs";
1
+ import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-Dolhen_U.mjs";
2
2
  import { Client } from "ssh2";
3
3
  import * as path from "node:path";
4
4
  //#region src/providers/sftp/sftp-config-schema.ts
@@ -5430,6 +5430,12 @@ Object.fromEntries([
5430
5430
  icon: "move",
5431
5431
  order: 40
5432
5432
  },
5433
+ {
5434
+ id: "navigation",
5435
+ label: "Navigation",
5436
+ icon: "compass",
5437
+ order: 41
5438
+ },
5433
5439
  {
5434
5440
  id: "consumables",
5435
5441
  label: "Consumables",
@@ -26883,6 +26889,203 @@ DeviceType.Camera, method(object({ deviceId: number() }), PtzAutotrackStatusSche
26883
26889
  deviceId: number(),
26884
26890
  status: PtzAutotrackStatusSchema
26885
26891
  });
26892
+ /**
26893
+ * `navigation` — a device-scoped capability that natively expresses the FULL
26894
+ * navigation / action surface of a robot that DRIVES ITSELF and carries an
26895
+ * on-board camera (the Dreame robot-vacuum camera is the first provider).
26896
+ *
26897
+ * Why a NEW cap rather than overloading `ptz`:
26898
+ * - `ptz` moves a *gimbal* on a fixed camera (pan/tilt/zoom of the lens). A
26899
+ * robot vacuum has no gimbal — the whole chassis drives, turns and spins.
26900
+ * The two are different physical models: PTZ is absolute-position + presets,
26901
+ * navigation is momentary drive nudges + discrete robot ACTIONS
26902
+ * (dock / spot-clean / follow-pet / go-to-point / …).
26903
+ * - This cap is the SOURCE OF TRUTH. Two consumers adapt from it rather than
26904
+ * the reverse:
26905
+ * 1. a native CamStack navigation panel (data-driven from `listActions`
26906
+ * / `getOptions`), and
26907
+ * 2. the PTZ surface — a thin adapter mimics `ptz` from `navigation` so a
26908
+ * robot camera shows up in the existing PTZ control path without every
26909
+ * PTZ provider learning about robots. The mapping lives in the adapter,
26910
+ * not here (see the addon design note):
26911
+ * ptz.continuousMove({pan,tilt}) → navigation.move({pan,tilt})
26912
+ * ptz.stop() → navigation.stop()
26913
+ * ptz.goHome() → navigation.runAction('goHome')
26914
+ * ptz.getPresets() → navigation.listActions() (id→preset)
26915
+ * ptz.goToPreset(id) → navigation.runAction(id)
26916
+ *
26917
+ * ## Continuous drive
26918
+ *
26919
+ * `move` is MOMENTARY. Fluid navigation comes from the UI (or the PTZ adapter)
26920
+ * sending `move({pan,tilt})` REPEATEDLY at ~1 Hz while a direction is held, and
26921
+ * one `stop()` on release — exactly like the robot app's remote-drive joystick.
26922
+ * The provider forwards EACH `move` to one drive write; it must NOT debounce or
26923
+ * coalesce them. The UI owns the cadence.
26924
+ *
26925
+ * ## The action dictionary
26926
+ *
26927
+ * The discrete controls (dock / locate / spot-clean / follow / flash / sounds)
26928
+ * are a DATA-DRIVEN dictionary the cap exposes via `listActions()`. Each entry
26929
+ * carries `{ id, kind, label, icon }` (plus `soundId` for sound entries) so the
26930
+ * native panel AND the PTZ mimic render buttons WITHOUT hardcoding a
26931
+ * vendor-specific list. `kind: 'action'` entries are triggered with
26932
+ * `runAction({ actionId })`; `kind: 'sound'` entries with `playSound({ soundId })`
26933
+ * (the entry carries the `soundId` to pass). The general primitives — `move`,
26934
+ * `stop`, `goToPoint` — stay as first-class methods, not dictionary entries.
26935
+ *
26936
+ * NOTE (provider wiring): the first provider (Dreame) drives this with the RAW
26937
+ * `callAction(siid,aiid,in)` / `setProperty({siid,piid,value})` MIoT primitives
26938
+ * that the currently-published `@apocaliss92/nodedreame` already exposes on
26939
+ * every device handle. A future nodedreame publish adds a typed
26940
+ * `DreameCameraController` (drive / playPetSound / spotClean / findPet / …); the
26941
+ * provider can then swap the raw calls for the typed methods with no change to
26942
+ * THIS contract.
26943
+ */
26944
+ /**
26945
+ * A momentary drive nudge. The robot MOVES (no gimbal) for as long as the caller
26946
+ * keeps sending nudges (~1 Hz); an explicit `stop` (or letting the nudges lapse)
26947
+ * halts it.
26948
+ *
26949
+ * - `pan` — turn: negative = left, positive = right, 0 = straight.
26950
+ * - `tilt` — throttle: positive = forward, negative = spin / turn-around.
26951
+ * - `speed` — optional intensity hint [0, 1]; the provider may scale the drive
26952
+ * vector by it (drivers without proportional drive ignore it).
26953
+ *
26954
+ * `pan` / `tilt` are normalized [-1, 1]. Both optional so a caller can nudge one
26955
+ * axis alone; an all-undefined nudge is a no-op.
26956
+ */
26957
+ var NavigationMoveCommandSchema = object({
26958
+ pan: number().min(-1).max(1).optional(),
26959
+ tilt: number().min(-1).max(1).optional(),
26960
+ speed: number().min(0).max(1).optional()
26961
+ });
26962
+ /**
26963
+ * The enumerated discrete actions a navigation-capable robot can perform via
26964
+ * `runAction`. This is the CLOSED vocabulary; a given device advertises the
26965
+ * subset it supports through `listActions`. Sounds are NOT here — they go through
26966
+ * `playSound` (see the `sound` dictionary entries).
26967
+ */
26968
+ var NavigationActionIdSchema = _enum([
26969
+ "goHome",
26970
+ "locate",
26971
+ "spotClean",
26972
+ "findPet",
26973
+ "personFollow",
26974
+ "stop",
26975
+ "startClean",
26976
+ "pauseClean",
26977
+ "dockWash",
26978
+ "autoEmpty",
26979
+ "flashOn",
26980
+ "flashOff"
26981
+ ]);
26982
+ /** Whether a dictionary entry is a `runAction` action or a `playSound` sound. */
26983
+ var NavigationEntryKindSchema = _enum(["action", "sound"]);
26984
+ /**
26985
+ * One entry in the navigation action dictionary — the DATA-DRIVEN unit both the
26986
+ * native panel and the PTZ mimic render as a button.
26987
+ *
26988
+ * - `id` — stable id. For `kind:'action'` it is a {@link NavigationActionId}
26989
+ * (pass to `runAction`); for `kind:'sound'` it is a namespaced id
26990
+ * (`sound:meow`) whose `soundId` is passed to `playSound`.
26991
+ * - `icon` — icon HINT (lucide-style name; the UI maps it to its own set).
26992
+ * - `label` — operator-facing English label.
26993
+ * - `soundId` — wire sound id, present only on `kind:'sound'` entries.
26994
+ * - `enabled` — per-device FEATURE FLAG. `listActions` reports it so the UI /
26995
+ * PTZ render ONLY enabled entries. Data-driven: the provider
26996
+ * flips it from config, never by editing code.
26997
+ */
26998
+ var NavigationActionEntrySchema = object({
26999
+ id: string(),
27000
+ kind: NavigationEntryKindSchema,
27001
+ label: string(),
27002
+ icon: string(),
27003
+ /** Present only on `kind:'sound'` entries — the id to pass to `playSound`. */
27004
+ soundId: number().int().optional(),
27005
+ /** Per-device feature flag — render this entry only when true. */
27006
+ enabled: boolean()
27007
+ });
27008
+ /** Coordinates for `goToPoint` — a point on the robot's live map. */
27009
+ var NavigationPointSchema = object({
27010
+ x: number(),
27011
+ y: number()
27012
+ });
27013
+ /**
27014
+ * Per-device FEATURE-FLAG report for the general (non-dictionary) primitives.
27015
+ * The cap reports which are enabled so the UI / PTZ render only the controls
27016
+ * that are turned on for THIS device. Data-driven: the provider derives these
27017
+ * from config + probe, never hardcoded in the UI. The per-DICTIONARY-entry flags
27018
+ * live on {@link NavigationActionEntrySchema.enabled}; these gate the primitives
27019
+ * that are not dictionary entries.
27020
+ *
27021
+ * - `move` / `stop` — the momentary drive joystick.
27022
+ * - `goToPoint` — send-to-map-coordinate. Ships OFF on Dreame until the
27023
+ * map-coordinate plumbing is wired.
27024
+ * - `runAction` — the discrete action buttons (dictionary `kind:'action'`).
27025
+ * - `playSound` — the sound buttons (dictionary `kind:'sound'`).
27026
+ * - `light` — the on/off fill-light toggle (works anytime).
27027
+ * - `lightMode` — the auto/manual selector + manual level slider (a
27028
+ * camera-service control; needs an active stream).
27029
+ */
27030
+ var NavigationFeaturesSchema = object({
27031
+ move: boolean(),
27032
+ stop: boolean(),
27033
+ goToPoint: boolean(),
27034
+ runAction: boolean(),
27035
+ playSound: boolean(),
27036
+ light: boolean(),
27037
+ lightMode: boolean()
27038
+ });
27039
+ /** Light mode: `auto` lets the camera choose brightness; `manual` uses `level`. */
27040
+ var NavigationLightModeSchema = _enum(["auto", "manual"]);
27041
+ /**
27042
+ * Live navigation state so the UI can reflect what the robot is doing:
27043
+ * - `mode` — coarse activity (idle / cleaning / following / …).
27044
+ * - `following` — person/pet follow is currently armed.
27045
+ * - `flash` — the on-camera fill light is on.
27046
+ * - `lightMode` — auto vs manual fill-light mode.
27047
+ * - `lightLevel` — manual fill-light level (40..100); meaningful when
27048
+ * `lightMode === 'manual'`.
27049
+ */
27050
+ var NavigationStatusSchema = object({
27051
+ mode: _enum([
27052
+ "idle",
27053
+ "cleaning",
27054
+ "spot",
27055
+ "following",
27056
+ "goto",
27057
+ "returning",
27058
+ "paused",
27059
+ "unknown"
27060
+ ]),
27061
+ following: boolean(),
27062
+ flash: boolean(),
27063
+ lightMode: NavigationLightModeSchema,
27064
+ lightLevel: number().min(40).max(100),
27065
+ /** Ms epoch when the slice was last updated. */
27066
+ lastChangedAt: number()
27067
+ });
27068
+ NavigationStatusSchema.extend({ lastFetchedAt: number() });
27069
+ 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({
27070
+ deviceId: number(),
27071
+ actionId: NavigationActionIdSchema
27072
+ }), _void(), { kind: "mutation" }), method(object({
27073
+ deviceId: number(),
27074
+ soundId: number().int()
27075
+ }), _void(), { kind: "mutation" }), method(object({
27076
+ deviceId: number(),
27077
+ on: boolean()
27078
+ }), _void(), { kind: "mutation" }), method(object({
27079
+ deviceId: number(),
27080
+ mode: NavigationLightModeSchema,
27081
+ level: number().min(40).max(100).optional()
27082
+ }), _void(), { kind: "mutation" }), method(object({
27083
+ deviceId: number(),
27084
+ level: number().min(40).max(100)
27085
+ }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), NavigationFeaturesSchema), object({
27086
+ deviceId: number(),
27087
+ status: NavigationStatusSchema
27088
+ });
26886
27089
  DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceId: number().int().nonnegative() }), object({ success: literal(true) }), {
26887
27090
  kind: "mutation",
26888
27091
  auth: "admin"
@@ -31947,6 +32150,66 @@ Object.freeze({
31947
32150
  addonId: null,
31948
32151
  access: "create"
31949
32152
  },
32153
+ "navigation.getFeatures": {
32154
+ capName: "navigation",
32155
+ capScope: "device",
32156
+ addonId: null,
32157
+ access: "view"
32158
+ },
32159
+ "navigation.goToPoint": {
32160
+ capName: "navigation",
32161
+ capScope: "device",
32162
+ addonId: null,
32163
+ access: "create"
32164
+ },
32165
+ "navigation.listActions": {
32166
+ capName: "navigation",
32167
+ capScope: "device",
32168
+ addonId: null,
32169
+ access: "view"
32170
+ },
32171
+ "navigation.move": {
32172
+ capName: "navigation",
32173
+ capScope: "device",
32174
+ addonId: null,
32175
+ access: "create"
32176
+ },
32177
+ "navigation.playSound": {
32178
+ capName: "navigation",
32179
+ capScope: "device",
32180
+ addonId: null,
32181
+ access: "create"
32182
+ },
32183
+ "navigation.runAction": {
32184
+ capName: "navigation",
32185
+ capScope: "device",
32186
+ addonId: null,
32187
+ access: "create"
32188
+ },
32189
+ "navigation.setLightLevel": {
32190
+ capName: "navigation",
32191
+ capScope: "device",
32192
+ addonId: null,
32193
+ access: "create"
32194
+ },
32195
+ "navigation.setLightMode": {
32196
+ capName: "navigation",
32197
+ capScope: "device",
32198
+ addonId: null,
32199
+ access: "create"
32200
+ },
32201
+ "navigation.setLightOn": {
32202
+ capName: "navigation",
32203
+ capScope: "device",
32204
+ addonId: null,
32205
+ access: "create"
32206
+ },
32207
+ "navigation.stop": {
32208
+ capName: "navigation",
32209
+ capScope: "device",
32210
+ addonId: null,
32211
+ access: "create"
32212
+ },
31950
32213
  "networkAccess.getEndpoint": {
31951
32214
  capName: "network-access",
31952
32215
  capScope: "system",
@@ -36042,6 +36305,56 @@ Object.freeze({
36042
36305
  form: "single",
36043
36306
  optional: false
36044
36307
  }],
36308
+ "navigation.getFeatures": [{
36309
+ name: "deviceId",
36310
+ form: "single",
36311
+ optional: false
36312
+ }],
36313
+ "navigation.goToPoint": [{
36314
+ name: "deviceId",
36315
+ form: "single",
36316
+ optional: false
36317
+ }],
36318
+ "navigation.listActions": [{
36319
+ name: "deviceId",
36320
+ form: "single",
36321
+ optional: false
36322
+ }],
36323
+ "navigation.move": [{
36324
+ name: "deviceId",
36325
+ form: "single",
36326
+ optional: false
36327
+ }],
36328
+ "navigation.playSound": [{
36329
+ name: "deviceId",
36330
+ form: "single",
36331
+ optional: false
36332
+ }],
36333
+ "navigation.runAction": [{
36334
+ name: "deviceId",
36335
+ form: "single",
36336
+ optional: false
36337
+ }],
36338
+ "navigation.setLightLevel": [{
36339
+ name: "deviceId",
36340
+ form: "single",
36341
+ optional: false
36342
+ }],
36343
+ "navigation.setLightMode": [{
36344
+ name: "deviceId",
36345
+ form: "single",
36346
+ optional: false
36347
+ }],
36348
+ "navigation.setLightOn": [{
36349
+ name: "deviceId",
36350
+ form: "single",
36351
+ optional: false
36352
+ }],
36353
+ "navigation.stop": [{
36354
+ name: "deviceId",
36355
+ form: "single",
36356
+ optional: false
36357
+ }],
36045
36358
  "networkQuality.getDeviceStats": [{
36046
36359
  name: "deviceId",
36047
36360
  form: "single",
@@ -5407,6 +5407,12 @@ Object.fromEntries([
5407
5407
  icon: "move",
5408
5408
  order: 40
5409
5409
  },
5410
+ {
5411
+ id: "navigation",
5412
+ label: "Navigation",
5413
+ icon: "compass",
5414
+ order: 41
5415
+ },
5410
5416
  {
5411
5417
  id: "consumables",
5412
5418
  label: "Consumables",
@@ -26860,6 +26866,203 @@ DeviceType.Camera, method(object({ deviceId: number() }), PtzAutotrackStatusSche
26860
26866
  deviceId: number(),
26861
26867
  status: PtzAutotrackStatusSchema
26862
26868
  });
26869
+ /**
26870
+ * `navigation` — a device-scoped capability that natively expresses the FULL
26871
+ * navigation / action surface of a robot that DRIVES ITSELF and carries an
26872
+ * on-board camera (the Dreame robot-vacuum camera is the first provider).
26873
+ *
26874
+ * Why a NEW cap rather than overloading `ptz`:
26875
+ * - `ptz` moves a *gimbal* on a fixed camera (pan/tilt/zoom of the lens). A
26876
+ * robot vacuum has no gimbal — the whole chassis drives, turns and spins.
26877
+ * The two are different physical models: PTZ is absolute-position + presets,
26878
+ * navigation is momentary drive nudges + discrete robot ACTIONS
26879
+ * (dock / spot-clean / follow-pet / go-to-point / …).
26880
+ * - This cap is the SOURCE OF TRUTH. Two consumers adapt from it rather than
26881
+ * the reverse:
26882
+ * 1. a native CamStack navigation panel (data-driven from `listActions`
26883
+ * / `getOptions`), and
26884
+ * 2. the PTZ surface — a thin adapter mimics `ptz` from `navigation` so a
26885
+ * robot camera shows up in the existing PTZ control path without every
26886
+ * PTZ provider learning about robots. The mapping lives in the adapter,
26887
+ * not here (see the addon design note):
26888
+ * ptz.continuousMove({pan,tilt}) → navigation.move({pan,tilt})
26889
+ * ptz.stop() → navigation.stop()
26890
+ * ptz.goHome() → navigation.runAction('goHome')
26891
+ * ptz.getPresets() → navigation.listActions() (id→preset)
26892
+ * ptz.goToPreset(id) → navigation.runAction(id)
26893
+ *
26894
+ * ## Continuous drive
26895
+ *
26896
+ * `move` is MOMENTARY. Fluid navigation comes from the UI (or the PTZ adapter)
26897
+ * sending `move({pan,tilt})` REPEATEDLY at ~1 Hz while a direction is held, and
26898
+ * one `stop()` on release — exactly like the robot app's remote-drive joystick.
26899
+ * The provider forwards EACH `move` to one drive write; it must NOT debounce or
26900
+ * coalesce them. The UI owns the cadence.
26901
+ *
26902
+ * ## The action dictionary
26903
+ *
26904
+ * The discrete controls (dock / locate / spot-clean / follow / flash / sounds)
26905
+ * are a DATA-DRIVEN dictionary the cap exposes via `listActions()`. Each entry
26906
+ * carries `{ id, kind, label, icon }` (plus `soundId` for sound entries) so the
26907
+ * native panel AND the PTZ mimic render buttons WITHOUT hardcoding a
26908
+ * vendor-specific list. `kind: 'action'` entries are triggered with
26909
+ * `runAction({ actionId })`; `kind: 'sound'` entries with `playSound({ soundId })`
26910
+ * (the entry carries the `soundId` to pass). The general primitives — `move`,
26911
+ * `stop`, `goToPoint` — stay as first-class methods, not dictionary entries.
26912
+ *
26913
+ * NOTE (provider wiring): the first provider (Dreame) drives this with the RAW
26914
+ * `callAction(siid,aiid,in)` / `setProperty({siid,piid,value})` MIoT primitives
26915
+ * that the currently-published `@apocaliss92/nodedreame` already exposes on
26916
+ * every device handle. A future nodedreame publish adds a typed
26917
+ * `DreameCameraController` (drive / playPetSound / spotClean / findPet / …); the
26918
+ * provider can then swap the raw calls for the typed methods with no change to
26919
+ * THIS contract.
26920
+ */
26921
+ /**
26922
+ * A momentary drive nudge. The robot MOVES (no gimbal) for as long as the caller
26923
+ * keeps sending nudges (~1 Hz); an explicit `stop` (or letting the nudges lapse)
26924
+ * halts it.
26925
+ *
26926
+ * - `pan` — turn: negative = left, positive = right, 0 = straight.
26927
+ * - `tilt` — throttle: positive = forward, negative = spin / turn-around.
26928
+ * - `speed` — optional intensity hint [0, 1]; the provider may scale the drive
26929
+ * vector by it (drivers without proportional drive ignore it).
26930
+ *
26931
+ * `pan` / `tilt` are normalized [-1, 1]. Both optional so a caller can nudge one
26932
+ * axis alone; an all-undefined nudge is a no-op.
26933
+ */
26934
+ var NavigationMoveCommandSchema = object({
26935
+ pan: number().min(-1).max(1).optional(),
26936
+ tilt: number().min(-1).max(1).optional(),
26937
+ speed: number().min(0).max(1).optional()
26938
+ });
26939
+ /**
26940
+ * The enumerated discrete actions a navigation-capable robot can perform via
26941
+ * `runAction`. This is the CLOSED vocabulary; a given device advertises the
26942
+ * subset it supports through `listActions`. Sounds are NOT here — they go through
26943
+ * `playSound` (see the `sound` dictionary entries).
26944
+ */
26945
+ var NavigationActionIdSchema = _enum([
26946
+ "goHome",
26947
+ "locate",
26948
+ "spotClean",
26949
+ "findPet",
26950
+ "personFollow",
26951
+ "stop",
26952
+ "startClean",
26953
+ "pauseClean",
26954
+ "dockWash",
26955
+ "autoEmpty",
26956
+ "flashOn",
26957
+ "flashOff"
26958
+ ]);
26959
+ /** Whether a dictionary entry is a `runAction` action or a `playSound` sound. */
26960
+ var NavigationEntryKindSchema = _enum(["action", "sound"]);
26961
+ /**
26962
+ * One entry in the navigation action dictionary — the DATA-DRIVEN unit both the
26963
+ * native panel and the PTZ mimic render as a button.
26964
+ *
26965
+ * - `id` — stable id. For `kind:'action'` it is a {@link NavigationActionId}
26966
+ * (pass to `runAction`); for `kind:'sound'` it is a namespaced id
26967
+ * (`sound:meow`) whose `soundId` is passed to `playSound`.
26968
+ * - `icon` — icon HINT (lucide-style name; the UI maps it to its own set).
26969
+ * - `label` — operator-facing English label.
26970
+ * - `soundId` — wire sound id, present only on `kind:'sound'` entries.
26971
+ * - `enabled` — per-device FEATURE FLAG. `listActions` reports it so the UI /
26972
+ * PTZ render ONLY enabled entries. Data-driven: the provider
26973
+ * flips it from config, never by editing code.
26974
+ */
26975
+ var NavigationActionEntrySchema = object({
26976
+ id: string(),
26977
+ kind: NavigationEntryKindSchema,
26978
+ label: string(),
26979
+ icon: string(),
26980
+ /** Present only on `kind:'sound'` entries — the id to pass to `playSound`. */
26981
+ soundId: number().int().optional(),
26982
+ /** Per-device feature flag — render this entry only when true. */
26983
+ enabled: boolean()
26984
+ });
26985
+ /** Coordinates for `goToPoint` — a point on the robot's live map. */
26986
+ var NavigationPointSchema = object({
26987
+ x: number(),
26988
+ y: number()
26989
+ });
26990
+ /**
26991
+ * Per-device FEATURE-FLAG report for the general (non-dictionary) primitives.
26992
+ * The cap reports which are enabled so the UI / PTZ render only the controls
26993
+ * that are turned on for THIS device. Data-driven: the provider derives these
26994
+ * from config + probe, never hardcoded in the UI. The per-DICTIONARY-entry flags
26995
+ * live on {@link NavigationActionEntrySchema.enabled}; these gate the primitives
26996
+ * that are not dictionary entries.
26997
+ *
26998
+ * - `move` / `stop` — the momentary drive joystick.
26999
+ * - `goToPoint` — send-to-map-coordinate. Ships OFF on Dreame until the
27000
+ * map-coordinate plumbing is wired.
27001
+ * - `runAction` — the discrete action buttons (dictionary `kind:'action'`).
27002
+ * - `playSound` — the sound buttons (dictionary `kind:'sound'`).
27003
+ * - `light` — the on/off fill-light toggle (works anytime).
27004
+ * - `lightMode` — the auto/manual selector + manual level slider (a
27005
+ * camera-service control; needs an active stream).
27006
+ */
27007
+ var NavigationFeaturesSchema = object({
27008
+ move: boolean(),
27009
+ stop: boolean(),
27010
+ goToPoint: boolean(),
27011
+ runAction: boolean(),
27012
+ playSound: boolean(),
27013
+ light: boolean(),
27014
+ lightMode: boolean()
27015
+ });
27016
+ /** Light mode: `auto` lets the camera choose brightness; `manual` uses `level`. */
27017
+ var NavigationLightModeSchema = _enum(["auto", "manual"]);
27018
+ /**
27019
+ * Live navigation state so the UI can reflect what the robot is doing:
27020
+ * - `mode` — coarse activity (idle / cleaning / following / …).
27021
+ * - `following` — person/pet follow is currently armed.
27022
+ * - `flash` — the on-camera fill light is on.
27023
+ * - `lightMode` — auto vs manual fill-light mode.
27024
+ * - `lightLevel` — manual fill-light level (40..100); meaningful when
27025
+ * `lightMode === 'manual'`.
27026
+ */
27027
+ var NavigationStatusSchema = object({
27028
+ mode: _enum([
27029
+ "idle",
27030
+ "cleaning",
27031
+ "spot",
27032
+ "following",
27033
+ "goto",
27034
+ "returning",
27035
+ "paused",
27036
+ "unknown"
27037
+ ]),
27038
+ following: boolean(),
27039
+ flash: boolean(),
27040
+ lightMode: NavigationLightModeSchema,
27041
+ lightLevel: number().min(40).max(100),
27042
+ /** Ms epoch when the slice was last updated. */
27043
+ lastChangedAt: number()
27044
+ });
27045
+ NavigationStatusSchema.extend({ lastFetchedAt: number() });
27046
+ 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({
27047
+ deviceId: number(),
27048
+ actionId: NavigationActionIdSchema
27049
+ }), _void(), { kind: "mutation" }), method(object({
27050
+ deviceId: number(),
27051
+ soundId: number().int()
27052
+ }), _void(), { kind: "mutation" }), method(object({
27053
+ deviceId: number(),
27054
+ on: boolean()
27055
+ }), _void(), { kind: "mutation" }), method(object({
27056
+ deviceId: number(),
27057
+ mode: NavigationLightModeSchema,
27058
+ level: number().min(40).max(100).optional()
27059
+ }), _void(), { kind: "mutation" }), method(object({
27060
+ deviceId: number(),
27061
+ level: number().min(40).max(100)
27062
+ }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), NavigationFeaturesSchema), object({
27063
+ deviceId: number(),
27064
+ status: NavigationStatusSchema
27065
+ });
26863
27066
  DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceId: number().int().nonnegative() }), object({ success: literal(true) }), {
26864
27067
  kind: "mutation",
26865
27068
  auth: "admin"
@@ -31924,6 +32127,66 @@ Object.freeze({
31924
32127
  addonId: null,
31925
32128
  access: "create"
31926
32129
  },
32130
+ "navigation.getFeatures": {
32131
+ capName: "navigation",
32132
+ capScope: "device",
32133
+ addonId: null,
32134
+ access: "view"
32135
+ },
32136
+ "navigation.goToPoint": {
32137
+ capName: "navigation",
32138
+ capScope: "device",
32139
+ addonId: null,
32140
+ access: "create"
32141
+ },
32142
+ "navigation.listActions": {
32143
+ capName: "navigation",
32144
+ capScope: "device",
32145
+ addonId: null,
32146
+ access: "view"
32147
+ },
32148
+ "navigation.move": {
32149
+ capName: "navigation",
32150
+ capScope: "device",
32151
+ addonId: null,
32152
+ access: "create"
32153
+ },
32154
+ "navigation.playSound": {
32155
+ capName: "navigation",
32156
+ capScope: "device",
32157
+ addonId: null,
32158
+ access: "create"
32159
+ },
32160
+ "navigation.runAction": {
32161
+ capName: "navigation",
32162
+ capScope: "device",
32163
+ addonId: null,
32164
+ access: "create"
32165
+ },
32166
+ "navigation.setLightLevel": {
32167
+ capName: "navigation",
32168
+ capScope: "device",
32169
+ addonId: null,
32170
+ access: "create"
32171
+ },
32172
+ "navigation.setLightMode": {
32173
+ capName: "navigation",
32174
+ capScope: "device",
32175
+ addonId: null,
32176
+ access: "create"
32177
+ },
32178
+ "navigation.setLightOn": {
32179
+ capName: "navigation",
32180
+ capScope: "device",
32181
+ addonId: null,
32182
+ access: "create"
32183
+ },
32184
+ "navigation.stop": {
32185
+ capName: "navigation",
32186
+ capScope: "device",
32187
+ addonId: null,
32188
+ access: "create"
32189
+ },
31927
32190
  "networkAccess.getEndpoint": {
31928
32191
  capName: "network-access",
31929
32192
  capScope: "system",
@@ -36019,6 +36282,56 @@ Object.freeze({
36019
36282
  form: "single",
36020
36283
  optional: false
36021
36284
  }],
36285
+ "navigation.getFeatures": [{
36286
+ name: "deviceId",
36287
+ form: "single",
36288
+ optional: false
36289
+ }],
36290
+ "navigation.goToPoint": [{
36291
+ name: "deviceId",
36292
+ form: "single",
36293
+ optional: false
36294
+ }],
36295
+ "navigation.listActions": [{
36296
+ name: "deviceId",
36297
+ form: "single",
36298
+ optional: false
36299
+ }],
36300
+ "navigation.move": [{
36301
+ name: "deviceId",
36302
+ form: "single",
36303
+ optional: false
36304
+ }],
36305
+ "navigation.playSound": [{
36306
+ name: "deviceId",
36307
+ form: "single",
36308
+ optional: false
36309
+ }],
36310
+ "navigation.runAction": [{
36311
+ name: "deviceId",
36312
+ form: "single",
36313
+ optional: false
36314
+ }],
36315
+ "navigation.setLightLevel": [{
36316
+ name: "deviceId",
36317
+ form: "single",
36318
+ optional: false
36319
+ }],
36320
+ "navigation.setLightMode": [{
36321
+ name: "deviceId",
36322
+ form: "single",
36323
+ optional: false
36324
+ }],
36325
+ "navigation.setLightOn": [{
36326
+ name: "deviceId",
36327
+ form: "single",
36328
+ optional: false
36329
+ }],
36330
+ "navigation.stop": [{
36331
+ name: "deviceId",
36332
+ form: "single",
36333
+ optional: false
36334
+ }],
36022
36335
  "networkQuality.getDeviceStats": [{
36023
36336
  name: "deviceId",
36024
36337
  form: "single",
package/dist/smb.addon.js CHANGED
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_shared = require("./shared-wJVLo41v.js");
5
+ const require_shared = require("./shared-AZZGXMhT.js");
6
6
  let node_crypto = require("node:crypto");
7
7
  let node_path = require("node:path");
8
8
  node_path = require_shared.__toESM(node_path);
@@ -1,4 +1,4 @@
1
- import { c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, s as storageProviderCapability } from "./shared-C1oHNHV8.mjs";
1
+ import { c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, s as storageProviderCapability } from "./shared-Dolhen_U.mjs";
2
2
  import { randomUUID } from "node:crypto";
3
3
  import * as path from "node:path";
4
4
  import * as fsp from "node:fs/promises";
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_shared = require("./shared-wJVLo41v.js");
5
+ const require_shared = require("./shared-AZZGXMhT.js");
6
6
  let node_stream = require("node:stream");
7
7
  let webdav = require("webdav");
8
8
  //#region src/providers/webdav/webdav-config-schema.ts
@@ -1,4 +1,4 @@
1
- import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-C1oHNHV8.mjs";
1
+ import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-Dolhen_U.mjs";
2
2
  import { PassThrough } from "node:stream";
3
3
  import { AuthType, createClient } from "webdav";
4
4
  //#region src/providers/webdav/webdav-config-schema.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-remote-storage",
3
- "version": "1.2.69",
3
+ "version": "1.2.71",
4
4
  "description": "Remote storage providers (SFTP, S3, WebDAV, SMB) — unifies remote backends behind the storage-provider cap",
5
5
  "keywords": [
6
6
  "camstack",