@camstack/addon-model-studio 1.1.95 → 1.1.96

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