@camstack/addon-export-google 0.1.34 → 0.1.36

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.
@@ -5484,6 +5484,12 @@ Object.fromEntries([
5484
5484
  icon: "move",
5485
5485
  order: 40
5486
5486
  },
5487
+ {
5488
+ id: "navigation",
5489
+ label: "Navigation",
5490
+ icon: "compass",
5491
+ order: 41
5492
+ },
5487
5493
  {
5488
5494
  id: "consumables",
5489
5495
  label: "Consumables",
@@ -27109,6 +27115,203 @@ DeviceType.Camera, method(object({ deviceId: number() }), PtzAutotrackStatusSche
27109
27115
  deviceId: number(),
27110
27116
  status: PtzAutotrackStatusSchema
27111
27117
  });
27118
+ /**
27119
+ * `navigation` — a device-scoped capability that natively expresses the FULL
27120
+ * navigation / action surface of a robot that DRIVES ITSELF and carries an
27121
+ * on-board camera (the Dreame robot-vacuum camera is the first provider).
27122
+ *
27123
+ * Why a NEW cap rather than overloading `ptz`:
27124
+ * - `ptz` moves a *gimbal* on a fixed camera (pan/tilt/zoom of the lens). A
27125
+ * robot vacuum has no gimbal — the whole chassis drives, turns and spins.
27126
+ * The two are different physical models: PTZ is absolute-position + presets,
27127
+ * navigation is momentary drive nudges + discrete robot ACTIONS
27128
+ * (dock / spot-clean / follow-pet / go-to-point / …).
27129
+ * - This cap is the SOURCE OF TRUTH. Two consumers adapt from it rather than
27130
+ * the reverse:
27131
+ * 1. a native CamStack navigation panel (data-driven from `listActions`
27132
+ * / `getOptions`), and
27133
+ * 2. the PTZ surface — a thin adapter mimics `ptz` from `navigation` so a
27134
+ * robot camera shows up in the existing PTZ control path without every
27135
+ * PTZ provider learning about robots. The mapping lives in the adapter,
27136
+ * not here (see the addon design note):
27137
+ * ptz.continuousMove({pan,tilt}) → navigation.move({pan,tilt})
27138
+ * ptz.stop() → navigation.stop()
27139
+ * ptz.goHome() → navigation.runAction('goHome')
27140
+ * ptz.getPresets() → navigation.listActions() (id→preset)
27141
+ * ptz.goToPreset(id) → navigation.runAction(id)
27142
+ *
27143
+ * ## Continuous drive
27144
+ *
27145
+ * `move` is MOMENTARY. Fluid navigation comes from the UI (or the PTZ adapter)
27146
+ * sending `move({pan,tilt})` REPEATEDLY at ~1 Hz while a direction is held, and
27147
+ * one `stop()` on release — exactly like the robot app's remote-drive joystick.
27148
+ * The provider forwards EACH `move` to one drive write; it must NOT debounce or
27149
+ * coalesce them. The UI owns the cadence.
27150
+ *
27151
+ * ## The action dictionary
27152
+ *
27153
+ * The discrete controls (dock / locate / spot-clean / follow / flash / sounds)
27154
+ * are a DATA-DRIVEN dictionary the cap exposes via `listActions()`. Each entry
27155
+ * carries `{ id, kind, label, icon }` (plus `soundId` for sound entries) so the
27156
+ * native panel AND the PTZ mimic render buttons WITHOUT hardcoding a
27157
+ * vendor-specific list. `kind: 'action'` entries are triggered with
27158
+ * `runAction({ actionId })`; `kind: 'sound'` entries with `playSound({ soundId })`
27159
+ * (the entry carries the `soundId` to pass). The general primitives — `move`,
27160
+ * `stop`, `goToPoint` — stay as first-class methods, not dictionary entries.
27161
+ *
27162
+ * NOTE (provider wiring): the first provider (Dreame) drives this with the RAW
27163
+ * `callAction(siid,aiid,in)` / `setProperty({siid,piid,value})` MIoT primitives
27164
+ * that the currently-published `@apocaliss92/nodedreame` already exposes on
27165
+ * every device handle. A future nodedreame publish adds a typed
27166
+ * `DreameCameraController` (drive / playPetSound / spotClean / findPet / …); the
27167
+ * provider can then swap the raw calls for the typed methods with no change to
27168
+ * THIS contract.
27169
+ */
27170
+ /**
27171
+ * A momentary drive nudge. The robot MOVES (no gimbal) for as long as the caller
27172
+ * keeps sending nudges (~1 Hz); an explicit `stop` (or letting the nudges lapse)
27173
+ * halts it.
27174
+ *
27175
+ * - `pan` — turn: negative = left, positive = right, 0 = straight.
27176
+ * - `tilt` — throttle: positive = forward, negative = spin / turn-around.
27177
+ * - `speed` — optional intensity hint [0, 1]; the provider may scale the drive
27178
+ * vector by it (drivers without proportional drive ignore it).
27179
+ *
27180
+ * `pan` / `tilt` are normalized [-1, 1]. Both optional so a caller can nudge one
27181
+ * axis alone; an all-undefined nudge is a no-op.
27182
+ */
27183
+ var NavigationMoveCommandSchema = object({
27184
+ pan: number().min(-1).max(1).optional(),
27185
+ tilt: number().min(-1).max(1).optional(),
27186
+ speed: number().min(0).max(1).optional()
27187
+ });
27188
+ /**
27189
+ * The enumerated discrete actions a navigation-capable robot can perform via
27190
+ * `runAction`. This is the CLOSED vocabulary; a given device advertises the
27191
+ * subset it supports through `listActions`. Sounds are NOT here — they go through
27192
+ * `playSound` (see the `sound` dictionary entries).
27193
+ */
27194
+ var NavigationActionIdSchema = _enum([
27195
+ "goHome",
27196
+ "locate",
27197
+ "spotClean",
27198
+ "findPet",
27199
+ "personFollow",
27200
+ "stop",
27201
+ "startClean",
27202
+ "pauseClean",
27203
+ "dockWash",
27204
+ "autoEmpty",
27205
+ "flashOn",
27206
+ "flashOff"
27207
+ ]);
27208
+ /** Whether a dictionary entry is a `runAction` action or a `playSound` sound. */
27209
+ var NavigationEntryKindSchema = _enum(["action", "sound"]);
27210
+ /**
27211
+ * One entry in the navigation action dictionary — the DATA-DRIVEN unit both the
27212
+ * native panel and the PTZ mimic render as a button.
27213
+ *
27214
+ * - `id` — stable id. For `kind:'action'` it is a {@link NavigationActionId}
27215
+ * (pass to `runAction`); for `kind:'sound'` it is a namespaced id
27216
+ * (`sound:meow`) whose `soundId` is passed to `playSound`.
27217
+ * - `icon` — icon HINT (lucide-style name; the UI maps it to its own set).
27218
+ * - `label` — operator-facing English label.
27219
+ * - `soundId` — wire sound id, present only on `kind:'sound'` entries.
27220
+ * - `enabled` — per-device FEATURE FLAG. `listActions` reports it so the UI /
27221
+ * PTZ render ONLY enabled entries. Data-driven: the provider
27222
+ * flips it from config, never by editing code.
27223
+ */
27224
+ var NavigationActionEntrySchema = object({
27225
+ id: string(),
27226
+ kind: NavigationEntryKindSchema,
27227
+ label: string(),
27228
+ icon: string(),
27229
+ /** Present only on `kind:'sound'` entries — the id to pass to `playSound`. */
27230
+ soundId: number().int().optional(),
27231
+ /** Per-device feature flag — render this entry only when true. */
27232
+ enabled: boolean()
27233
+ });
27234
+ /** Coordinates for `goToPoint` — a point on the robot's live map. */
27235
+ var NavigationPointSchema = object({
27236
+ x: number(),
27237
+ y: number()
27238
+ });
27239
+ /**
27240
+ * Per-device FEATURE-FLAG report for the general (non-dictionary) primitives.
27241
+ * The cap reports which are enabled so the UI / PTZ render only the controls
27242
+ * that are turned on for THIS device. Data-driven: the provider derives these
27243
+ * from config + probe, never hardcoded in the UI. The per-DICTIONARY-entry flags
27244
+ * live on {@link NavigationActionEntrySchema.enabled}; these gate the primitives
27245
+ * that are not dictionary entries.
27246
+ *
27247
+ * - `move` / `stop` — the momentary drive joystick.
27248
+ * - `goToPoint` — send-to-map-coordinate. Ships OFF on Dreame until the
27249
+ * map-coordinate plumbing is wired.
27250
+ * - `runAction` — the discrete action buttons (dictionary `kind:'action'`).
27251
+ * - `playSound` — the sound buttons (dictionary `kind:'sound'`).
27252
+ * - `light` — the on/off fill-light toggle (works anytime).
27253
+ * - `lightMode` — the auto/manual selector + manual level slider (a
27254
+ * camera-service control; needs an active stream).
27255
+ */
27256
+ var NavigationFeaturesSchema = object({
27257
+ move: boolean(),
27258
+ stop: boolean(),
27259
+ goToPoint: boolean(),
27260
+ runAction: boolean(),
27261
+ playSound: boolean(),
27262
+ light: boolean(),
27263
+ lightMode: boolean()
27264
+ });
27265
+ /** Light mode: `auto` lets the camera choose brightness; `manual` uses `level`. */
27266
+ var NavigationLightModeSchema = _enum(["auto", "manual"]);
27267
+ /**
27268
+ * Live navigation state so the UI can reflect what the robot is doing:
27269
+ * - `mode` — coarse activity (idle / cleaning / following / …).
27270
+ * - `following` — person/pet follow is currently armed.
27271
+ * - `flash` — the on-camera fill light is on.
27272
+ * - `lightMode` — auto vs manual fill-light mode.
27273
+ * - `lightLevel` — manual fill-light level (40..100); meaningful when
27274
+ * `lightMode === 'manual'`.
27275
+ */
27276
+ var NavigationStatusSchema = object({
27277
+ mode: _enum([
27278
+ "idle",
27279
+ "cleaning",
27280
+ "spot",
27281
+ "following",
27282
+ "goto",
27283
+ "returning",
27284
+ "paused",
27285
+ "unknown"
27286
+ ]),
27287
+ following: boolean(),
27288
+ flash: boolean(),
27289
+ lightMode: NavigationLightModeSchema,
27290
+ lightLevel: number().min(40).max(100),
27291
+ /** Ms epoch when the slice was last updated. */
27292
+ lastChangedAt: number()
27293
+ });
27294
+ NavigationStatusSchema.extend({ lastFetchedAt: number() });
27295
+ 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({
27296
+ deviceId: number(),
27297
+ actionId: NavigationActionIdSchema
27298
+ }), _void(), { kind: "mutation" }), method(object({
27299
+ deviceId: number(),
27300
+ soundId: number().int()
27301
+ }), _void(), { kind: "mutation" }), method(object({
27302
+ deviceId: number(),
27303
+ on: boolean()
27304
+ }), _void(), { kind: "mutation" }), method(object({
27305
+ deviceId: number(),
27306
+ mode: NavigationLightModeSchema,
27307
+ level: number().min(40).max(100).optional()
27308
+ }), _void(), { kind: "mutation" }), method(object({
27309
+ deviceId: number(),
27310
+ level: number().min(40).max(100)
27311
+ }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), NavigationFeaturesSchema), object({
27312
+ deviceId: number(),
27313
+ status: NavigationStatusSchema
27314
+ });
27112
27315
  DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceId: number().int().nonnegative() }), object({ success: literal(true) }), {
27113
27316
  kind: "mutation",
27114
27317
  auth: "admin"
@@ -32180,6 +32383,66 @@ Object.freeze({
32180
32383
  addonId: null,
32181
32384
  access: "create"
32182
32385
  },
32386
+ "navigation.getFeatures": {
32387
+ capName: "navigation",
32388
+ capScope: "device",
32389
+ addonId: null,
32390
+ access: "view"
32391
+ },
32392
+ "navigation.goToPoint": {
32393
+ capName: "navigation",
32394
+ capScope: "device",
32395
+ addonId: null,
32396
+ access: "create"
32397
+ },
32398
+ "navigation.listActions": {
32399
+ capName: "navigation",
32400
+ capScope: "device",
32401
+ addonId: null,
32402
+ access: "view"
32403
+ },
32404
+ "navigation.move": {
32405
+ capName: "navigation",
32406
+ capScope: "device",
32407
+ addonId: null,
32408
+ access: "create"
32409
+ },
32410
+ "navigation.playSound": {
32411
+ capName: "navigation",
32412
+ capScope: "device",
32413
+ addonId: null,
32414
+ access: "create"
32415
+ },
32416
+ "navigation.runAction": {
32417
+ capName: "navigation",
32418
+ capScope: "device",
32419
+ addonId: null,
32420
+ access: "create"
32421
+ },
32422
+ "navigation.setLightLevel": {
32423
+ capName: "navigation",
32424
+ capScope: "device",
32425
+ addonId: null,
32426
+ access: "create"
32427
+ },
32428
+ "navigation.setLightMode": {
32429
+ capName: "navigation",
32430
+ capScope: "device",
32431
+ addonId: null,
32432
+ access: "create"
32433
+ },
32434
+ "navigation.setLightOn": {
32435
+ capName: "navigation",
32436
+ capScope: "device",
32437
+ addonId: null,
32438
+ access: "create"
32439
+ },
32440
+ "navigation.stop": {
32441
+ capName: "navigation",
32442
+ capScope: "device",
32443
+ addonId: null,
32444
+ access: "create"
32445
+ },
32183
32446
  "networkAccess.getEndpoint": {
32184
32447
  capName: "network-access",
32185
32448
  capScope: "system",
@@ -36275,6 +36538,56 @@ Object.freeze({
36275
36538
  form: "single",
36276
36539
  optional: false
36277
36540
  }],
36541
+ "navigation.getFeatures": [{
36542
+ name: "deviceId",
36543
+ form: "single",
36544
+ optional: false
36545
+ }],
36546
+ "navigation.goToPoint": [{
36547
+ name: "deviceId",
36548
+ form: "single",
36549
+ optional: false
36550
+ }],
36551
+ "navigation.listActions": [{
36552
+ name: "deviceId",
36553
+ form: "single",
36554
+ optional: false
36555
+ }],
36556
+ "navigation.move": [{
36557
+ name: "deviceId",
36558
+ form: "single",
36559
+ optional: false
36560
+ }],
36561
+ "navigation.playSound": [{
36562
+ name: "deviceId",
36563
+ form: "single",
36564
+ optional: false
36565
+ }],
36566
+ "navigation.runAction": [{
36567
+ name: "deviceId",
36568
+ form: "single",
36569
+ optional: false
36570
+ }],
36571
+ "navigation.setLightLevel": [{
36572
+ name: "deviceId",
36573
+ form: "single",
36574
+ optional: false
36575
+ }],
36576
+ "navigation.setLightMode": [{
36577
+ name: "deviceId",
36578
+ form: "single",
36579
+ optional: false
36580
+ }],
36581
+ "navigation.setLightOn": [{
36582
+ name: "deviceId",
36583
+ form: "single",
36584
+ optional: false
36585
+ }],
36586
+ "navigation.stop": [{
36587
+ name: "deviceId",
36588
+ form: "single",
36589
+ optional: false
36590
+ }],
36278
36591
  "networkQuality.getDeviceStats": [{
36279
36592
  name: "deviceId",
36280
36593
  form: "single",
@@ -5480,6 +5480,12 @@ Object.fromEntries([
5480
5480
  icon: "move",
5481
5481
  order: 40
5482
5482
  },
5483
+ {
5484
+ id: "navigation",
5485
+ label: "Navigation",
5486
+ icon: "compass",
5487
+ order: 41
5488
+ },
5483
5489
  {
5484
5490
  id: "consumables",
5485
5491
  label: "Consumables",
@@ -27105,6 +27111,203 @@ DeviceType.Camera, method(object({ deviceId: number() }), PtzAutotrackStatusSche
27105
27111
  deviceId: number(),
27106
27112
  status: PtzAutotrackStatusSchema
27107
27113
  });
27114
+ /**
27115
+ * `navigation` — a device-scoped capability that natively expresses the FULL
27116
+ * navigation / action surface of a robot that DRIVES ITSELF and carries an
27117
+ * on-board camera (the Dreame robot-vacuum camera is the first provider).
27118
+ *
27119
+ * Why a NEW cap rather than overloading `ptz`:
27120
+ * - `ptz` moves a *gimbal* on a fixed camera (pan/tilt/zoom of the lens). A
27121
+ * robot vacuum has no gimbal — the whole chassis drives, turns and spins.
27122
+ * The two are different physical models: PTZ is absolute-position + presets,
27123
+ * navigation is momentary drive nudges + discrete robot ACTIONS
27124
+ * (dock / spot-clean / follow-pet / go-to-point / …).
27125
+ * - This cap is the SOURCE OF TRUTH. Two consumers adapt from it rather than
27126
+ * the reverse:
27127
+ * 1. a native CamStack navigation panel (data-driven from `listActions`
27128
+ * / `getOptions`), and
27129
+ * 2. the PTZ surface — a thin adapter mimics `ptz` from `navigation` so a
27130
+ * robot camera shows up in the existing PTZ control path without every
27131
+ * PTZ provider learning about robots. The mapping lives in the adapter,
27132
+ * not here (see the addon design note):
27133
+ * ptz.continuousMove({pan,tilt}) → navigation.move({pan,tilt})
27134
+ * ptz.stop() → navigation.stop()
27135
+ * ptz.goHome() → navigation.runAction('goHome')
27136
+ * ptz.getPresets() → navigation.listActions() (id→preset)
27137
+ * ptz.goToPreset(id) → navigation.runAction(id)
27138
+ *
27139
+ * ## Continuous drive
27140
+ *
27141
+ * `move` is MOMENTARY. Fluid navigation comes from the UI (or the PTZ adapter)
27142
+ * sending `move({pan,tilt})` REPEATEDLY at ~1 Hz while a direction is held, and
27143
+ * one `stop()` on release — exactly like the robot app's remote-drive joystick.
27144
+ * The provider forwards EACH `move` to one drive write; it must NOT debounce or
27145
+ * coalesce them. The UI owns the cadence.
27146
+ *
27147
+ * ## The action dictionary
27148
+ *
27149
+ * The discrete controls (dock / locate / spot-clean / follow / flash / sounds)
27150
+ * are a DATA-DRIVEN dictionary the cap exposes via `listActions()`. Each entry
27151
+ * carries `{ id, kind, label, icon }` (plus `soundId` for sound entries) so the
27152
+ * native panel AND the PTZ mimic render buttons WITHOUT hardcoding a
27153
+ * vendor-specific list. `kind: 'action'` entries are triggered with
27154
+ * `runAction({ actionId })`; `kind: 'sound'` entries with `playSound({ soundId })`
27155
+ * (the entry carries the `soundId` to pass). The general primitives — `move`,
27156
+ * `stop`, `goToPoint` — stay as first-class methods, not dictionary entries.
27157
+ *
27158
+ * NOTE (provider wiring): the first provider (Dreame) drives this with the RAW
27159
+ * `callAction(siid,aiid,in)` / `setProperty({siid,piid,value})` MIoT primitives
27160
+ * that the currently-published `@apocaliss92/nodedreame` already exposes on
27161
+ * every device handle. A future nodedreame publish adds a typed
27162
+ * `DreameCameraController` (drive / playPetSound / spotClean / findPet / …); the
27163
+ * provider can then swap the raw calls for the typed methods with no change to
27164
+ * THIS contract.
27165
+ */
27166
+ /**
27167
+ * A momentary drive nudge. The robot MOVES (no gimbal) for as long as the caller
27168
+ * keeps sending nudges (~1 Hz); an explicit `stop` (or letting the nudges lapse)
27169
+ * halts it.
27170
+ *
27171
+ * - `pan` — turn: negative = left, positive = right, 0 = straight.
27172
+ * - `tilt` — throttle: positive = forward, negative = spin / turn-around.
27173
+ * - `speed` — optional intensity hint [0, 1]; the provider may scale the drive
27174
+ * vector by it (drivers without proportional drive ignore it).
27175
+ *
27176
+ * `pan` / `tilt` are normalized [-1, 1]. Both optional so a caller can nudge one
27177
+ * axis alone; an all-undefined nudge is a no-op.
27178
+ */
27179
+ var NavigationMoveCommandSchema = object({
27180
+ pan: number().min(-1).max(1).optional(),
27181
+ tilt: number().min(-1).max(1).optional(),
27182
+ speed: number().min(0).max(1).optional()
27183
+ });
27184
+ /**
27185
+ * The enumerated discrete actions a navigation-capable robot can perform via
27186
+ * `runAction`. This is the CLOSED vocabulary; a given device advertises the
27187
+ * subset it supports through `listActions`. Sounds are NOT here — they go through
27188
+ * `playSound` (see the `sound` dictionary entries).
27189
+ */
27190
+ var NavigationActionIdSchema = _enum([
27191
+ "goHome",
27192
+ "locate",
27193
+ "spotClean",
27194
+ "findPet",
27195
+ "personFollow",
27196
+ "stop",
27197
+ "startClean",
27198
+ "pauseClean",
27199
+ "dockWash",
27200
+ "autoEmpty",
27201
+ "flashOn",
27202
+ "flashOff"
27203
+ ]);
27204
+ /** Whether a dictionary entry is a `runAction` action or a `playSound` sound. */
27205
+ var NavigationEntryKindSchema = _enum(["action", "sound"]);
27206
+ /**
27207
+ * One entry in the navigation action dictionary — the DATA-DRIVEN unit both the
27208
+ * native panel and the PTZ mimic render as a button.
27209
+ *
27210
+ * - `id` — stable id. For `kind:'action'` it is a {@link NavigationActionId}
27211
+ * (pass to `runAction`); for `kind:'sound'` it is a namespaced id
27212
+ * (`sound:meow`) whose `soundId` is passed to `playSound`.
27213
+ * - `icon` — icon HINT (lucide-style name; the UI maps it to its own set).
27214
+ * - `label` — operator-facing English label.
27215
+ * - `soundId` — wire sound id, present only on `kind:'sound'` entries.
27216
+ * - `enabled` — per-device FEATURE FLAG. `listActions` reports it so the UI /
27217
+ * PTZ render ONLY enabled entries. Data-driven: the provider
27218
+ * flips it from config, never by editing code.
27219
+ */
27220
+ var NavigationActionEntrySchema = object({
27221
+ id: string(),
27222
+ kind: NavigationEntryKindSchema,
27223
+ label: string(),
27224
+ icon: string(),
27225
+ /** Present only on `kind:'sound'` entries — the id to pass to `playSound`. */
27226
+ soundId: number().int().optional(),
27227
+ /** Per-device feature flag — render this entry only when true. */
27228
+ enabled: boolean()
27229
+ });
27230
+ /** Coordinates for `goToPoint` — a point on the robot's live map. */
27231
+ var NavigationPointSchema = object({
27232
+ x: number(),
27233
+ y: number()
27234
+ });
27235
+ /**
27236
+ * Per-device FEATURE-FLAG report for the general (non-dictionary) primitives.
27237
+ * The cap reports which are enabled so the UI / PTZ render only the controls
27238
+ * that are turned on for THIS device. Data-driven: the provider derives these
27239
+ * from config + probe, never hardcoded in the UI. The per-DICTIONARY-entry flags
27240
+ * live on {@link NavigationActionEntrySchema.enabled}; these gate the primitives
27241
+ * that are not dictionary entries.
27242
+ *
27243
+ * - `move` / `stop` — the momentary drive joystick.
27244
+ * - `goToPoint` — send-to-map-coordinate. Ships OFF on Dreame until the
27245
+ * map-coordinate plumbing is wired.
27246
+ * - `runAction` — the discrete action buttons (dictionary `kind:'action'`).
27247
+ * - `playSound` — the sound buttons (dictionary `kind:'sound'`).
27248
+ * - `light` — the on/off fill-light toggle (works anytime).
27249
+ * - `lightMode` — the auto/manual selector + manual level slider (a
27250
+ * camera-service control; needs an active stream).
27251
+ */
27252
+ var NavigationFeaturesSchema = object({
27253
+ move: boolean(),
27254
+ stop: boolean(),
27255
+ goToPoint: boolean(),
27256
+ runAction: boolean(),
27257
+ playSound: boolean(),
27258
+ light: boolean(),
27259
+ lightMode: boolean()
27260
+ });
27261
+ /** Light mode: `auto` lets the camera choose brightness; `manual` uses `level`. */
27262
+ var NavigationLightModeSchema = _enum(["auto", "manual"]);
27263
+ /**
27264
+ * Live navigation state so the UI can reflect what the robot is doing:
27265
+ * - `mode` — coarse activity (idle / cleaning / following / …).
27266
+ * - `following` — person/pet follow is currently armed.
27267
+ * - `flash` — the on-camera fill light is on.
27268
+ * - `lightMode` — auto vs manual fill-light mode.
27269
+ * - `lightLevel` — manual fill-light level (40..100); meaningful when
27270
+ * `lightMode === 'manual'`.
27271
+ */
27272
+ var NavigationStatusSchema = object({
27273
+ mode: _enum([
27274
+ "idle",
27275
+ "cleaning",
27276
+ "spot",
27277
+ "following",
27278
+ "goto",
27279
+ "returning",
27280
+ "paused",
27281
+ "unknown"
27282
+ ]),
27283
+ following: boolean(),
27284
+ flash: boolean(),
27285
+ lightMode: NavigationLightModeSchema,
27286
+ lightLevel: number().min(40).max(100),
27287
+ /** Ms epoch when the slice was last updated. */
27288
+ lastChangedAt: number()
27289
+ });
27290
+ NavigationStatusSchema.extend({ lastFetchedAt: number() });
27291
+ 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({
27292
+ deviceId: number(),
27293
+ actionId: NavigationActionIdSchema
27294
+ }), _void(), { kind: "mutation" }), method(object({
27295
+ deviceId: number(),
27296
+ soundId: number().int()
27297
+ }), _void(), { kind: "mutation" }), method(object({
27298
+ deviceId: number(),
27299
+ on: boolean()
27300
+ }), _void(), { kind: "mutation" }), method(object({
27301
+ deviceId: number(),
27302
+ mode: NavigationLightModeSchema,
27303
+ level: number().min(40).max(100).optional()
27304
+ }), _void(), { kind: "mutation" }), method(object({
27305
+ deviceId: number(),
27306
+ level: number().min(40).max(100)
27307
+ }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), NavigationFeaturesSchema), object({
27308
+ deviceId: number(),
27309
+ status: NavigationStatusSchema
27310
+ });
27108
27311
  DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceId: number().int().nonnegative() }), object({ success: literal(true) }), {
27109
27312
  kind: "mutation",
27110
27313
  auth: "admin"
@@ -32176,6 +32379,66 @@ Object.freeze({
32176
32379
  addonId: null,
32177
32380
  access: "create"
32178
32381
  },
32382
+ "navigation.getFeatures": {
32383
+ capName: "navigation",
32384
+ capScope: "device",
32385
+ addonId: null,
32386
+ access: "view"
32387
+ },
32388
+ "navigation.goToPoint": {
32389
+ capName: "navigation",
32390
+ capScope: "device",
32391
+ addonId: null,
32392
+ access: "create"
32393
+ },
32394
+ "navigation.listActions": {
32395
+ capName: "navigation",
32396
+ capScope: "device",
32397
+ addonId: null,
32398
+ access: "view"
32399
+ },
32400
+ "navigation.move": {
32401
+ capName: "navigation",
32402
+ capScope: "device",
32403
+ addonId: null,
32404
+ access: "create"
32405
+ },
32406
+ "navigation.playSound": {
32407
+ capName: "navigation",
32408
+ capScope: "device",
32409
+ addonId: null,
32410
+ access: "create"
32411
+ },
32412
+ "navigation.runAction": {
32413
+ capName: "navigation",
32414
+ capScope: "device",
32415
+ addonId: null,
32416
+ access: "create"
32417
+ },
32418
+ "navigation.setLightLevel": {
32419
+ capName: "navigation",
32420
+ capScope: "device",
32421
+ addonId: null,
32422
+ access: "create"
32423
+ },
32424
+ "navigation.setLightMode": {
32425
+ capName: "navigation",
32426
+ capScope: "device",
32427
+ addonId: null,
32428
+ access: "create"
32429
+ },
32430
+ "navigation.setLightOn": {
32431
+ capName: "navigation",
32432
+ capScope: "device",
32433
+ addonId: null,
32434
+ access: "create"
32435
+ },
32436
+ "navigation.stop": {
32437
+ capName: "navigation",
32438
+ capScope: "device",
32439
+ addonId: null,
32440
+ access: "create"
32441
+ },
32179
32442
  "networkAccess.getEndpoint": {
32180
32443
  capName: "network-access",
32181
32444
  capScope: "system",
@@ -36271,6 +36534,56 @@ Object.freeze({
36271
36534
  form: "single",
36272
36535
  optional: false
36273
36536
  }],
36537
+ "navigation.getFeatures": [{
36538
+ name: "deviceId",
36539
+ form: "single",
36540
+ optional: false
36541
+ }],
36542
+ "navigation.goToPoint": [{
36543
+ name: "deviceId",
36544
+ form: "single",
36545
+ optional: false
36546
+ }],
36547
+ "navigation.listActions": [{
36548
+ name: "deviceId",
36549
+ form: "single",
36550
+ optional: false
36551
+ }],
36552
+ "navigation.move": [{
36553
+ name: "deviceId",
36554
+ form: "single",
36555
+ optional: false
36556
+ }],
36557
+ "navigation.playSound": [{
36558
+ name: "deviceId",
36559
+ form: "single",
36560
+ optional: false
36561
+ }],
36562
+ "navigation.runAction": [{
36563
+ name: "deviceId",
36564
+ form: "single",
36565
+ optional: false
36566
+ }],
36567
+ "navigation.setLightLevel": [{
36568
+ name: "deviceId",
36569
+ form: "single",
36570
+ optional: false
36571
+ }],
36572
+ "navigation.setLightMode": [{
36573
+ name: "deviceId",
36574
+ form: "single",
36575
+ optional: false
36576
+ }],
36577
+ "navigation.setLightOn": [{
36578
+ name: "deviceId",
36579
+ form: "single",
36580
+ optional: false
36581
+ }],
36582
+ "navigation.stop": [{
36583
+ name: "deviceId",
36584
+ form: "single",
36585
+ optional: false
36586
+ }],
36274
36587
  "networkQuality.getDeviceStats": [{
36275
36588
  name: "deviceId",
36276
36589
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-export-google",
3
- "version": "0.1.34",
3
+ "version": "0.1.36",
4
4
  "description": "Google Home export — hub-side smart-home fulfillment (SYNC / QUERY / EXECUTE / DISCONNECT) for the non-camera fleet, served over the hub's own OAuth account link. No Google credential is stored, sent or required.",
5
5
  "keywords": [
6
6
  "camstack",