@camstack/addon-model-studio 1.1.95 → 1.1.97

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (19) hide show
  1. package/dist/{MotionZonesSettings-BV9FBXIr.mjs → MotionZonesSettings-DRNY3gjc.mjs} +2 -2
  2. package/dist/{PrivacyMaskSettings-DnGBvi4G.mjs → PrivacyMaskSettings-CZShuio4.mjs} +4 -4
  3. package/dist/{SceneMonitorEditor-CWyXPWAh.mjs → SceneMonitorEditor-ChvcbpBu.mjs} +3 -3
  4. package/dist/_stub.js +11 -11
  5. package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-y63vUPJ1.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-DsNDW2tP.mjs} +4 -4
  6. package/dist/_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-odws4W0h.mjs +26 -0
  7. package/dist/addon-model-studio.css +1 -1
  8. package/dist/{hostInit-2mnLuYAh.mjs → hostInit-Ic0uBpQ0.mjs} +3 -3
  9. package/dist/model-studio.addon.js +313 -0
  10. package/dist/model-studio.addon.mjs +313 -0
  11. package/dist/{player-overlays-B_ZMUNE2.mjs → player-overlays-CxfLzphX.mjs} +1 -1
  12. package/dist/remoteEntry.js +1 -1
  13. package/dist/{responsive-B-ZkBtx_.mjs → responsive-ykWObjYe.mjs} +1 -1
  14. package/dist/{square-C8z7zz2B.mjs → square-DRd2mk8z.mjs} +1 -1
  15. package/dist/{trash-2-SRhPSNyS.mjs → trash-2-B1e_7Yr-.mjs} +1 -1
  16. package/dist/{use-device-snapshot-m0bH7A9v.mjs → use-device-snapshot-Dx2mS9rn.mjs} +1 -1
  17. package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-DD_MiftT.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-VnmpuDSf.mjs} +1 -1
  18. package/package.json +1 -1
  19. package/dist/_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DuTZ3UTo.mjs +0 -26
@@ -5930,6 +5930,12 @@ Object.fromEntries([
5930
5930
  icon: "move",
5931
5931
  order: 40
5932
5932
  },
5933
+ {
5934
+ id: "navigation",
5935
+ label: "Navigation",
5936
+ icon: "compass",
5937
+ order: 41
5938
+ },
5933
5939
  {
5934
5940
  id: "consumables",
5935
5941
  label: "Consumables",
@@ -27444,6 +27450,203 @@ DeviceType.Camera, method(object({ deviceId: number() }), PtzAutotrackStatusSche
27444
27450
  deviceId: number(),
27445
27451
  status: PtzAutotrackStatusSchema
27446
27452
  });
27453
+ /**
27454
+ * `navigation` — a device-scoped capability that natively expresses the FULL
27455
+ * navigation / action surface of a robot that DRIVES ITSELF and carries an
27456
+ * on-board camera (the Dreame robot-vacuum camera is the first provider).
27457
+ *
27458
+ * Why a NEW cap rather than overloading `ptz`:
27459
+ * - `ptz` moves a *gimbal* on a fixed camera (pan/tilt/zoom of the lens). A
27460
+ * robot vacuum has no gimbal — the whole chassis drives, turns and spins.
27461
+ * The two are different physical models: PTZ is absolute-position + presets,
27462
+ * navigation is momentary drive nudges + discrete robot ACTIONS
27463
+ * (dock / spot-clean / follow-pet / go-to-point / …).
27464
+ * - This cap is the SOURCE OF TRUTH. Two consumers adapt from it rather than
27465
+ * the reverse:
27466
+ * 1. a native CamStack navigation panel (data-driven from `listActions`
27467
+ * / `getOptions`), and
27468
+ * 2. the PTZ surface — a thin adapter mimics `ptz` from `navigation` so a
27469
+ * robot camera shows up in the existing PTZ control path without every
27470
+ * PTZ provider learning about robots. The mapping lives in the adapter,
27471
+ * not here (see the addon design note):
27472
+ * ptz.continuousMove({pan,tilt}) → navigation.move({pan,tilt})
27473
+ * ptz.stop() → navigation.stop()
27474
+ * ptz.goHome() → navigation.runAction('goHome')
27475
+ * ptz.getPresets() → navigation.listActions() (id→preset)
27476
+ * ptz.goToPreset(id) → navigation.runAction(id)
27477
+ *
27478
+ * ## Continuous drive
27479
+ *
27480
+ * `move` is MOMENTARY. Fluid navigation comes from the UI (or the PTZ adapter)
27481
+ * sending `move({pan,tilt})` REPEATEDLY at ~1 Hz while a direction is held, and
27482
+ * one `stop()` on release — exactly like the robot app's remote-drive joystick.
27483
+ * The provider forwards EACH `move` to one drive write; it must NOT debounce or
27484
+ * coalesce them. The UI owns the cadence.
27485
+ *
27486
+ * ## The action dictionary
27487
+ *
27488
+ * The discrete controls (dock / locate / spot-clean / follow / flash / sounds)
27489
+ * are a DATA-DRIVEN dictionary the cap exposes via `listActions()`. Each entry
27490
+ * carries `{ id, kind, label, icon }` (plus `soundId` for sound entries) so the
27491
+ * native panel AND the PTZ mimic render buttons WITHOUT hardcoding a
27492
+ * vendor-specific list. `kind: 'action'` entries are triggered with
27493
+ * `runAction({ actionId })`; `kind: 'sound'` entries with `playSound({ soundId })`
27494
+ * (the entry carries the `soundId` to pass). The general primitives — `move`,
27495
+ * `stop`, `goToPoint` — stay as first-class methods, not dictionary entries.
27496
+ *
27497
+ * NOTE (provider wiring): the first provider (Dreame) drives this with the RAW
27498
+ * `callAction(siid,aiid,in)` / `setProperty({siid,piid,value})` MIoT primitives
27499
+ * that the currently-published `@apocaliss92/nodedreame` already exposes on
27500
+ * every device handle. A future nodedreame publish adds a typed
27501
+ * `DreameCameraController` (drive / playPetSound / spotClean / findPet / …); the
27502
+ * provider can then swap the raw calls for the typed methods with no change to
27503
+ * THIS contract.
27504
+ */
27505
+ /**
27506
+ * A momentary drive nudge. The robot MOVES (no gimbal) for as long as the caller
27507
+ * keeps sending nudges (~1 Hz); an explicit `stop` (or letting the nudges lapse)
27508
+ * halts it.
27509
+ *
27510
+ * - `pan` — turn: negative = left, positive = right, 0 = straight.
27511
+ * - `tilt` — throttle: positive = forward, negative = spin / turn-around.
27512
+ * - `speed` — optional intensity hint [0, 1]; the provider may scale the drive
27513
+ * vector by it (drivers without proportional drive ignore it).
27514
+ *
27515
+ * `pan` / `tilt` are normalized [-1, 1]. Both optional so a caller can nudge one
27516
+ * axis alone; an all-undefined nudge is a no-op.
27517
+ */
27518
+ var NavigationMoveCommandSchema = object({
27519
+ pan: number().min(-1).max(1).optional(),
27520
+ tilt: number().min(-1).max(1).optional(),
27521
+ speed: number().min(0).max(1).optional()
27522
+ });
27523
+ /**
27524
+ * The enumerated discrete actions a navigation-capable robot can perform via
27525
+ * `runAction`. This is the CLOSED vocabulary; a given device advertises the
27526
+ * subset it supports through `listActions`. Sounds are NOT here — they go through
27527
+ * `playSound` (see the `sound` dictionary entries).
27528
+ */
27529
+ var NavigationActionIdSchema = _enum([
27530
+ "goHome",
27531
+ "locate",
27532
+ "spotClean",
27533
+ "findPet",
27534
+ "personFollow",
27535
+ "stop",
27536
+ "startClean",
27537
+ "pauseClean",
27538
+ "dockWash",
27539
+ "autoEmpty",
27540
+ "flashOn",
27541
+ "flashOff"
27542
+ ]);
27543
+ /** Whether a dictionary entry is a `runAction` action or a `playSound` sound. */
27544
+ var NavigationEntryKindSchema = _enum(["action", "sound"]);
27545
+ /**
27546
+ * One entry in the navigation action dictionary — the DATA-DRIVEN unit both the
27547
+ * native panel and the PTZ mimic render as a button.
27548
+ *
27549
+ * - `id` — stable id. For `kind:'action'` it is a {@link NavigationActionId}
27550
+ * (pass to `runAction`); for `kind:'sound'` it is a namespaced id
27551
+ * (`sound:meow`) whose `soundId` is passed to `playSound`.
27552
+ * - `icon` — icon HINT (lucide-style name; the UI maps it to its own set).
27553
+ * - `label` — operator-facing English label.
27554
+ * - `soundId` — wire sound id, present only on `kind:'sound'` entries.
27555
+ * - `enabled` — per-device FEATURE FLAG. `listActions` reports it so the UI /
27556
+ * PTZ render ONLY enabled entries. Data-driven: the provider
27557
+ * flips it from config, never by editing code.
27558
+ */
27559
+ var NavigationActionEntrySchema = object({
27560
+ id: string(),
27561
+ kind: NavigationEntryKindSchema,
27562
+ label: string(),
27563
+ icon: string(),
27564
+ /** Present only on `kind:'sound'` entries — the id to pass to `playSound`. */
27565
+ soundId: number().int().optional(),
27566
+ /** Per-device feature flag — render this entry only when true. */
27567
+ enabled: boolean()
27568
+ });
27569
+ /** Coordinates for `goToPoint` — a point on the robot's live map. */
27570
+ var NavigationPointSchema = object({
27571
+ x: number(),
27572
+ y: number()
27573
+ });
27574
+ /**
27575
+ * Per-device FEATURE-FLAG report for the general (non-dictionary) primitives.
27576
+ * The cap reports which are enabled so the UI / PTZ render only the controls
27577
+ * that are turned on for THIS device. Data-driven: the provider derives these
27578
+ * from config + probe, never hardcoded in the UI. The per-DICTIONARY-entry flags
27579
+ * live on {@link NavigationActionEntrySchema.enabled}; these gate the primitives
27580
+ * that are not dictionary entries.
27581
+ *
27582
+ * - `move` / `stop` — the momentary drive joystick.
27583
+ * - `goToPoint` — send-to-map-coordinate. Ships OFF on Dreame until the
27584
+ * map-coordinate plumbing is wired.
27585
+ * - `runAction` — the discrete action buttons (dictionary `kind:'action'`).
27586
+ * - `playSound` — the sound buttons (dictionary `kind:'sound'`).
27587
+ * - `light` — the on/off fill-light toggle (works anytime).
27588
+ * - `lightMode` — the auto/manual selector + manual level slider (a
27589
+ * camera-service control; needs an active stream).
27590
+ */
27591
+ var NavigationFeaturesSchema = object({
27592
+ move: boolean(),
27593
+ stop: boolean(),
27594
+ goToPoint: boolean(),
27595
+ runAction: boolean(),
27596
+ playSound: boolean(),
27597
+ light: boolean(),
27598
+ lightMode: boolean()
27599
+ });
27600
+ /** Light mode: `auto` lets the camera choose brightness; `manual` uses `level`. */
27601
+ var NavigationLightModeSchema = _enum(["auto", "manual"]);
27602
+ /**
27603
+ * Live navigation state so the UI can reflect what the robot is doing:
27604
+ * - `mode` — coarse activity (idle / cleaning / following / …).
27605
+ * - `following` — person/pet follow is currently armed.
27606
+ * - `flash` — the on-camera fill light is on.
27607
+ * - `lightMode` — auto vs manual fill-light mode.
27608
+ * - `lightLevel` — manual fill-light level (40..100); meaningful when
27609
+ * `lightMode === 'manual'`.
27610
+ */
27611
+ var NavigationStatusSchema = object({
27612
+ mode: _enum([
27613
+ "idle",
27614
+ "cleaning",
27615
+ "spot",
27616
+ "following",
27617
+ "goto",
27618
+ "returning",
27619
+ "paused",
27620
+ "unknown"
27621
+ ]),
27622
+ following: boolean(),
27623
+ flash: boolean(),
27624
+ lightMode: NavigationLightModeSchema,
27625
+ lightLevel: number().min(40).max(100),
27626
+ /** Ms epoch when the slice was last updated. */
27627
+ lastChangedAt: number()
27628
+ });
27629
+ NavigationStatusSchema.extend({ lastFetchedAt: number() });
27630
+ 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({
27631
+ deviceId: number(),
27632
+ actionId: NavigationActionIdSchema
27633
+ }), _void(), { kind: "mutation" }), method(object({
27634
+ deviceId: number(),
27635
+ soundId: number().int()
27636
+ }), _void(), { kind: "mutation" }), method(object({
27637
+ deviceId: number(),
27638
+ on: boolean()
27639
+ }), _void(), { kind: "mutation" }), method(object({
27640
+ deviceId: number(),
27641
+ mode: NavigationLightModeSchema,
27642
+ level: number().min(40).max(100).optional()
27643
+ }), _void(), { kind: "mutation" }), method(object({
27644
+ deviceId: number(),
27645
+ level: number().min(40).max(100)
27646
+ }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), NavigationFeaturesSchema), object({
27647
+ deviceId: number(),
27648
+ status: NavigationStatusSchema
27649
+ });
27447
27650
  DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceId: number().int().nonnegative() }), object({ success: literal(true) }), {
27448
27651
  kind: "mutation",
27449
27652
  auth: "admin"
@@ -32508,6 +32711,66 @@ Object.freeze({
32508
32711
  addonId: null,
32509
32712
  access: "create"
32510
32713
  },
32714
+ "navigation.getFeatures": {
32715
+ capName: "navigation",
32716
+ capScope: "device",
32717
+ addonId: null,
32718
+ access: "view"
32719
+ },
32720
+ "navigation.goToPoint": {
32721
+ capName: "navigation",
32722
+ capScope: "device",
32723
+ addonId: null,
32724
+ access: "create"
32725
+ },
32726
+ "navigation.listActions": {
32727
+ capName: "navigation",
32728
+ capScope: "device",
32729
+ addonId: null,
32730
+ access: "view"
32731
+ },
32732
+ "navigation.move": {
32733
+ capName: "navigation",
32734
+ capScope: "device",
32735
+ addonId: null,
32736
+ access: "create"
32737
+ },
32738
+ "navigation.playSound": {
32739
+ capName: "navigation",
32740
+ capScope: "device",
32741
+ addonId: null,
32742
+ access: "create"
32743
+ },
32744
+ "navigation.runAction": {
32745
+ capName: "navigation",
32746
+ capScope: "device",
32747
+ addonId: null,
32748
+ access: "create"
32749
+ },
32750
+ "navigation.setLightLevel": {
32751
+ capName: "navigation",
32752
+ capScope: "device",
32753
+ addonId: null,
32754
+ access: "create"
32755
+ },
32756
+ "navigation.setLightMode": {
32757
+ capName: "navigation",
32758
+ capScope: "device",
32759
+ addonId: null,
32760
+ access: "create"
32761
+ },
32762
+ "navigation.setLightOn": {
32763
+ capName: "navigation",
32764
+ capScope: "device",
32765
+ addonId: null,
32766
+ access: "create"
32767
+ },
32768
+ "navigation.stop": {
32769
+ capName: "navigation",
32770
+ capScope: "device",
32771
+ addonId: null,
32772
+ access: "create"
32773
+ },
32511
32774
  "networkAccess.getEndpoint": {
32512
32775
  capName: "network-access",
32513
32776
  capScope: "system",
@@ -36603,6 +36866,56 @@ Object.freeze({
36603
36866
  form: "single",
36604
36867
  optional: false
36605
36868
  }],
36869
+ "navigation.getFeatures": [{
36870
+ name: "deviceId",
36871
+ form: "single",
36872
+ optional: false
36873
+ }],
36874
+ "navigation.goToPoint": [{
36875
+ name: "deviceId",
36876
+ form: "single",
36877
+ optional: false
36878
+ }],
36879
+ "navigation.listActions": [{
36880
+ name: "deviceId",
36881
+ form: "single",
36882
+ optional: false
36883
+ }],
36884
+ "navigation.move": [{
36885
+ name: "deviceId",
36886
+ form: "single",
36887
+ optional: false
36888
+ }],
36889
+ "navigation.playSound": [{
36890
+ name: "deviceId",
36891
+ form: "single",
36892
+ optional: false
36893
+ }],
36894
+ "navigation.runAction": [{
36895
+ name: "deviceId",
36896
+ form: "single",
36897
+ optional: false
36898
+ }],
36899
+ "navigation.setLightLevel": [{
36900
+ name: "deviceId",
36901
+ form: "single",
36902
+ optional: false
36903
+ }],
36904
+ "navigation.setLightMode": [{
36905
+ name: "deviceId",
36906
+ form: "single",
36907
+ optional: false
36908
+ }],
36909
+ "navigation.setLightOn": [{
36910
+ name: "deviceId",
36911
+ form: "single",
36912
+ optional: false
36913
+ }],
36914
+ "navigation.stop": [{
36915
+ name: "deviceId",
36916
+ form: "single",
36917
+ optional: false
36918
+ }],
36606
36919
  "networkQuality.getDeviceStats": [{
36607
36920
  name: "deviceId",
36608
36921
  form: "single",
@@ -5909,6 +5909,12 @@ Object.fromEntries([
5909
5909
  icon: "move",
5910
5910
  order: 40
5911
5911
  },
5912
+ {
5913
+ id: "navigation",
5914
+ label: "Navigation",
5915
+ icon: "compass",
5916
+ order: 41
5917
+ },
5912
5918
  {
5913
5919
  id: "consumables",
5914
5920
  label: "Consumables",
@@ -27423,6 +27429,203 @@ DeviceType.Camera, method(object({ deviceId: number() }), PtzAutotrackStatusSche
27423
27429
  deviceId: number(),
27424
27430
  status: PtzAutotrackStatusSchema
27425
27431
  });
27432
+ /**
27433
+ * `navigation` — a device-scoped capability that natively expresses the FULL
27434
+ * navigation / action surface of a robot that DRIVES ITSELF and carries an
27435
+ * on-board camera (the Dreame robot-vacuum camera is the first provider).
27436
+ *
27437
+ * Why a NEW cap rather than overloading `ptz`:
27438
+ * - `ptz` moves a *gimbal* on a fixed camera (pan/tilt/zoom of the lens). A
27439
+ * robot vacuum has no gimbal — the whole chassis drives, turns and spins.
27440
+ * The two are different physical models: PTZ is absolute-position + presets,
27441
+ * navigation is momentary drive nudges + discrete robot ACTIONS
27442
+ * (dock / spot-clean / follow-pet / go-to-point / …).
27443
+ * - This cap is the SOURCE OF TRUTH. Two consumers adapt from it rather than
27444
+ * the reverse:
27445
+ * 1. a native CamStack navigation panel (data-driven from `listActions`
27446
+ * / `getOptions`), and
27447
+ * 2. the PTZ surface — a thin adapter mimics `ptz` from `navigation` so a
27448
+ * robot camera shows up in the existing PTZ control path without every
27449
+ * PTZ provider learning about robots. The mapping lives in the adapter,
27450
+ * not here (see the addon design note):
27451
+ * ptz.continuousMove({pan,tilt}) → navigation.move({pan,tilt})
27452
+ * ptz.stop() → navigation.stop()
27453
+ * ptz.goHome() → navigation.runAction('goHome')
27454
+ * ptz.getPresets() → navigation.listActions() (id→preset)
27455
+ * ptz.goToPreset(id) → navigation.runAction(id)
27456
+ *
27457
+ * ## Continuous drive
27458
+ *
27459
+ * `move` is MOMENTARY. Fluid navigation comes from the UI (or the PTZ adapter)
27460
+ * sending `move({pan,tilt})` REPEATEDLY at ~1 Hz while a direction is held, and
27461
+ * one `stop()` on release — exactly like the robot app's remote-drive joystick.
27462
+ * The provider forwards EACH `move` to one drive write; it must NOT debounce or
27463
+ * coalesce them. The UI owns the cadence.
27464
+ *
27465
+ * ## The action dictionary
27466
+ *
27467
+ * The discrete controls (dock / locate / spot-clean / follow / flash / sounds)
27468
+ * are a DATA-DRIVEN dictionary the cap exposes via `listActions()`. Each entry
27469
+ * carries `{ id, kind, label, icon }` (plus `soundId` for sound entries) so the
27470
+ * native panel AND the PTZ mimic render buttons WITHOUT hardcoding a
27471
+ * vendor-specific list. `kind: 'action'` entries are triggered with
27472
+ * `runAction({ actionId })`; `kind: 'sound'` entries with `playSound({ soundId })`
27473
+ * (the entry carries the `soundId` to pass). The general primitives — `move`,
27474
+ * `stop`, `goToPoint` — stay as first-class methods, not dictionary entries.
27475
+ *
27476
+ * NOTE (provider wiring): the first provider (Dreame) drives this with the RAW
27477
+ * `callAction(siid,aiid,in)` / `setProperty({siid,piid,value})` MIoT primitives
27478
+ * that the currently-published `@apocaliss92/nodedreame` already exposes on
27479
+ * every device handle. A future nodedreame publish adds a typed
27480
+ * `DreameCameraController` (drive / playPetSound / spotClean / findPet / …); the
27481
+ * provider can then swap the raw calls for the typed methods with no change to
27482
+ * THIS contract.
27483
+ */
27484
+ /**
27485
+ * A momentary drive nudge. The robot MOVES (no gimbal) for as long as the caller
27486
+ * keeps sending nudges (~1 Hz); an explicit `stop` (or letting the nudges lapse)
27487
+ * halts it.
27488
+ *
27489
+ * - `pan` — turn: negative = left, positive = right, 0 = straight.
27490
+ * - `tilt` — throttle: positive = forward, negative = spin / turn-around.
27491
+ * - `speed` — optional intensity hint [0, 1]; the provider may scale the drive
27492
+ * vector by it (drivers without proportional drive ignore it).
27493
+ *
27494
+ * `pan` / `tilt` are normalized [-1, 1]. Both optional so a caller can nudge one
27495
+ * axis alone; an all-undefined nudge is a no-op.
27496
+ */
27497
+ var NavigationMoveCommandSchema = object({
27498
+ pan: number().min(-1).max(1).optional(),
27499
+ tilt: number().min(-1).max(1).optional(),
27500
+ speed: number().min(0).max(1).optional()
27501
+ });
27502
+ /**
27503
+ * The enumerated discrete actions a navigation-capable robot can perform via
27504
+ * `runAction`. This is the CLOSED vocabulary; a given device advertises the
27505
+ * subset it supports through `listActions`. Sounds are NOT here — they go through
27506
+ * `playSound` (see the `sound` dictionary entries).
27507
+ */
27508
+ var NavigationActionIdSchema = _enum([
27509
+ "goHome",
27510
+ "locate",
27511
+ "spotClean",
27512
+ "findPet",
27513
+ "personFollow",
27514
+ "stop",
27515
+ "startClean",
27516
+ "pauseClean",
27517
+ "dockWash",
27518
+ "autoEmpty",
27519
+ "flashOn",
27520
+ "flashOff"
27521
+ ]);
27522
+ /** Whether a dictionary entry is a `runAction` action or a `playSound` sound. */
27523
+ var NavigationEntryKindSchema = _enum(["action", "sound"]);
27524
+ /**
27525
+ * One entry in the navigation action dictionary — the DATA-DRIVEN unit both the
27526
+ * native panel and the PTZ mimic render as a button.
27527
+ *
27528
+ * - `id` — stable id. For `kind:'action'` it is a {@link NavigationActionId}
27529
+ * (pass to `runAction`); for `kind:'sound'` it is a namespaced id
27530
+ * (`sound:meow`) whose `soundId` is passed to `playSound`.
27531
+ * - `icon` — icon HINT (lucide-style name; the UI maps it to its own set).
27532
+ * - `label` — operator-facing English label.
27533
+ * - `soundId` — wire sound id, present only on `kind:'sound'` entries.
27534
+ * - `enabled` — per-device FEATURE FLAG. `listActions` reports it so the UI /
27535
+ * PTZ render ONLY enabled entries. Data-driven: the provider
27536
+ * flips it from config, never by editing code.
27537
+ */
27538
+ var NavigationActionEntrySchema = object({
27539
+ id: string(),
27540
+ kind: NavigationEntryKindSchema,
27541
+ label: string(),
27542
+ icon: string(),
27543
+ /** Present only on `kind:'sound'` entries — the id to pass to `playSound`. */
27544
+ soundId: number().int().optional(),
27545
+ /** Per-device feature flag — render this entry only when true. */
27546
+ enabled: boolean()
27547
+ });
27548
+ /** Coordinates for `goToPoint` — a point on the robot's live map. */
27549
+ var NavigationPointSchema = object({
27550
+ x: number(),
27551
+ y: number()
27552
+ });
27553
+ /**
27554
+ * Per-device FEATURE-FLAG report for the general (non-dictionary) primitives.
27555
+ * The cap reports which are enabled so the UI / PTZ render only the controls
27556
+ * that are turned on for THIS device. Data-driven: the provider derives these
27557
+ * from config + probe, never hardcoded in the UI. The per-DICTIONARY-entry flags
27558
+ * live on {@link NavigationActionEntrySchema.enabled}; these gate the primitives
27559
+ * that are not dictionary entries.
27560
+ *
27561
+ * - `move` / `stop` — the momentary drive joystick.
27562
+ * - `goToPoint` — send-to-map-coordinate. Ships OFF on Dreame until the
27563
+ * map-coordinate plumbing is wired.
27564
+ * - `runAction` — the discrete action buttons (dictionary `kind:'action'`).
27565
+ * - `playSound` — the sound buttons (dictionary `kind:'sound'`).
27566
+ * - `light` — the on/off fill-light toggle (works anytime).
27567
+ * - `lightMode` — the auto/manual selector + manual level slider (a
27568
+ * camera-service control; needs an active stream).
27569
+ */
27570
+ var NavigationFeaturesSchema = object({
27571
+ move: boolean(),
27572
+ stop: boolean(),
27573
+ goToPoint: boolean(),
27574
+ runAction: boolean(),
27575
+ playSound: boolean(),
27576
+ light: boolean(),
27577
+ lightMode: boolean()
27578
+ });
27579
+ /** Light mode: `auto` lets the camera choose brightness; `manual` uses `level`. */
27580
+ var NavigationLightModeSchema = _enum(["auto", "manual"]);
27581
+ /**
27582
+ * Live navigation state so the UI can reflect what the robot is doing:
27583
+ * - `mode` — coarse activity (idle / cleaning / following / …).
27584
+ * - `following` — person/pet follow is currently armed.
27585
+ * - `flash` — the on-camera fill light is on.
27586
+ * - `lightMode` — auto vs manual fill-light mode.
27587
+ * - `lightLevel` — manual fill-light level (40..100); meaningful when
27588
+ * `lightMode === 'manual'`.
27589
+ */
27590
+ var NavigationStatusSchema = object({
27591
+ mode: _enum([
27592
+ "idle",
27593
+ "cleaning",
27594
+ "spot",
27595
+ "following",
27596
+ "goto",
27597
+ "returning",
27598
+ "paused",
27599
+ "unknown"
27600
+ ]),
27601
+ following: boolean(),
27602
+ flash: boolean(),
27603
+ lightMode: NavigationLightModeSchema,
27604
+ lightLevel: number().min(40).max(100),
27605
+ /** Ms epoch when the slice was last updated. */
27606
+ lastChangedAt: number()
27607
+ });
27608
+ NavigationStatusSchema.extend({ lastFetchedAt: number() });
27609
+ 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({
27610
+ deviceId: number(),
27611
+ actionId: NavigationActionIdSchema
27612
+ }), _void(), { kind: "mutation" }), method(object({
27613
+ deviceId: number(),
27614
+ soundId: number().int()
27615
+ }), _void(), { kind: "mutation" }), method(object({
27616
+ deviceId: number(),
27617
+ on: boolean()
27618
+ }), _void(), { kind: "mutation" }), method(object({
27619
+ deviceId: number(),
27620
+ mode: NavigationLightModeSchema,
27621
+ level: number().min(40).max(100).optional()
27622
+ }), _void(), { kind: "mutation" }), method(object({
27623
+ deviceId: number(),
27624
+ level: number().min(40).max(100)
27625
+ }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), NavigationFeaturesSchema), object({
27626
+ deviceId: number(),
27627
+ status: NavigationStatusSchema
27628
+ });
27426
27629
  DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceId: number().int().nonnegative() }), object({ success: literal(true) }), {
27427
27630
  kind: "mutation",
27428
27631
  auth: "admin"
@@ -32487,6 +32690,66 @@ Object.freeze({
32487
32690
  addonId: null,
32488
32691
  access: "create"
32489
32692
  },
32693
+ "navigation.getFeatures": {
32694
+ capName: "navigation",
32695
+ capScope: "device",
32696
+ addonId: null,
32697
+ access: "view"
32698
+ },
32699
+ "navigation.goToPoint": {
32700
+ capName: "navigation",
32701
+ capScope: "device",
32702
+ addonId: null,
32703
+ access: "create"
32704
+ },
32705
+ "navigation.listActions": {
32706
+ capName: "navigation",
32707
+ capScope: "device",
32708
+ addonId: null,
32709
+ access: "view"
32710
+ },
32711
+ "navigation.move": {
32712
+ capName: "navigation",
32713
+ capScope: "device",
32714
+ addonId: null,
32715
+ access: "create"
32716
+ },
32717
+ "navigation.playSound": {
32718
+ capName: "navigation",
32719
+ capScope: "device",
32720
+ addonId: null,
32721
+ access: "create"
32722
+ },
32723
+ "navigation.runAction": {
32724
+ capName: "navigation",
32725
+ capScope: "device",
32726
+ addonId: null,
32727
+ access: "create"
32728
+ },
32729
+ "navigation.setLightLevel": {
32730
+ capName: "navigation",
32731
+ capScope: "device",
32732
+ addonId: null,
32733
+ access: "create"
32734
+ },
32735
+ "navigation.setLightMode": {
32736
+ capName: "navigation",
32737
+ capScope: "device",
32738
+ addonId: null,
32739
+ access: "create"
32740
+ },
32741
+ "navigation.setLightOn": {
32742
+ capName: "navigation",
32743
+ capScope: "device",
32744
+ addonId: null,
32745
+ access: "create"
32746
+ },
32747
+ "navigation.stop": {
32748
+ capName: "navigation",
32749
+ capScope: "device",
32750
+ addonId: null,
32751
+ access: "create"
32752
+ },
32490
32753
  "networkAccess.getEndpoint": {
32491
32754
  capName: "network-access",
32492
32755
  capScope: "system",
@@ -36582,6 +36845,56 @@ Object.freeze({
36582
36845
  form: "single",
36583
36846
  optional: false
36584
36847
  }],
36848
+ "navigation.getFeatures": [{
36849
+ name: "deviceId",
36850
+ form: "single",
36851
+ optional: false
36852
+ }],
36853
+ "navigation.goToPoint": [{
36854
+ name: "deviceId",
36855
+ form: "single",
36856
+ optional: false
36857
+ }],
36858
+ "navigation.listActions": [{
36859
+ name: "deviceId",
36860
+ form: "single",
36861
+ optional: false
36862
+ }],
36863
+ "navigation.move": [{
36864
+ name: "deviceId",
36865
+ form: "single",
36866
+ optional: false
36867
+ }],
36868
+ "navigation.playSound": [{
36869
+ name: "deviceId",
36870
+ form: "single",
36871
+ optional: false
36872
+ }],
36873
+ "navigation.runAction": [{
36874
+ name: "deviceId",
36875
+ form: "single",
36876
+ optional: false
36877
+ }],
36878
+ "navigation.setLightLevel": [{
36879
+ name: "deviceId",
36880
+ form: "single",
36881
+ optional: false
36882
+ }],
36883
+ "navigation.setLightMode": [{
36884
+ name: "deviceId",
36885
+ form: "single",
36886
+ optional: false
36887
+ }],
36888
+ "navigation.setLightOn": [{
36889
+ name: "deviceId",
36890
+ form: "single",
36891
+ optional: false
36892
+ }],
36893
+ "navigation.stop": [{
36894
+ name: "deviceId",
36895
+ form: "single",
36896
+ optional: false
36897
+ }],
36585
36898
  "networkQuality.getDeviceStats": [{
36586
36899
  name: "deviceId",
36587
36900
  form: "single",
@@ -1,5 +1,5 @@
1
1
  import { h as e, l as t, u as n, y as r } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare__react__loadShare__.js-DJDHChgO.mjs";
2
- import { o as i, s as a } from "./responsive-B-ZkBtx_.mjs";
2
+ import { o as i, s as a } from "./responsive-ykWObjYe.mjs";
3
3
  import { n as o, r as s, t as c } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-ds_Ehzaa.mjs";
4
4
  var l = a("chevron-down", [["path", {
5
5
  d: "m6 9 6 6 6-6",
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-DD_MiftT.mjs";
1
+ import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-VnmpuDSf.mjs";
2
2
  export { t as get, e as init };