@camstack/addon-export-alexa 1.2.76 → 1.2.77

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