@camstack/addon-smtp-nodemailer 1.2.69 → 1.2.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/smtp.addon.js +313 -0
- package/dist/smtp.addon.mjs +313 -0
- package/package.json +1 -1
package/dist/smtp.addon.js
CHANGED
|
@@ -5443,6 +5443,12 @@ Object.fromEntries([
|
|
|
5443
5443
|
icon: "move",
|
|
5444
5444
|
order: 40
|
|
5445
5445
|
},
|
|
5446
|
+
{
|
|
5447
|
+
id: "navigation",
|
|
5448
|
+
label: "Navigation",
|
|
5449
|
+
icon: "compass",
|
|
5450
|
+
order: 41
|
|
5451
|
+
},
|
|
5446
5452
|
{
|
|
5447
5453
|
id: "consumables",
|
|
5448
5454
|
label: "Consumables",
|
|
@@ -26849,6 +26855,203 @@ DeviceType.Camera, method(object({ deviceId: number() }), PtzAutotrackStatusSche
|
|
|
26849
26855
|
deviceId: number(),
|
|
26850
26856
|
status: PtzAutotrackStatusSchema
|
|
26851
26857
|
});
|
|
26858
|
+
/**
|
|
26859
|
+
* `navigation` — a device-scoped capability that natively expresses the FULL
|
|
26860
|
+
* navigation / action surface of a robot that DRIVES ITSELF and carries an
|
|
26861
|
+
* on-board camera (the Dreame robot-vacuum camera is the first provider).
|
|
26862
|
+
*
|
|
26863
|
+
* Why a NEW cap rather than overloading `ptz`:
|
|
26864
|
+
* - `ptz` moves a *gimbal* on a fixed camera (pan/tilt/zoom of the lens). A
|
|
26865
|
+
* robot vacuum has no gimbal — the whole chassis drives, turns and spins.
|
|
26866
|
+
* The two are different physical models: PTZ is absolute-position + presets,
|
|
26867
|
+
* navigation is momentary drive nudges + discrete robot ACTIONS
|
|
26868
|
+
* (dock / spot-clean / follow-pet / go-to-point / …).
|
|
26869
|
+
* - This cap is the SOURCE OF TRUTH. Two consumers adapt from it rather than
|
|
26870
|
+
* the reverse:
|
|
26871
|
+
* 1. a native CamStack navigation panel (data-driven from `listActions`
|
|
26872
|
+
* / `getOptions`), and
|
|
26873
|
+
* 2. the PTZ surface — a thin adapter mimics `ptz` from `navigation` so a
|
|
26874
|
+
* robot camera shows up in the existing PTZ control path without every
|
|
26875
|
+
* PTZ provider learning about robots. The mapping lives in the adapter,
|
|
26876
|
+
* not here (see the addon design note):
|
|
26877
|
+
* ptz.continuousMove({pan,tilt}) → navigation.move({pan,tilt})
|
|
26878
|
+
* ptz.stop() → navigation.stop()
|
|
26879
|
+
* ptz.goHome() → navigation.runAction('goHome')
|
|
26880
|
+
* ptz.getPresets() → navigation.listActions() (id→preset)
|
|
26881
|
+
* ptz.goToPreset(id) → navigation.runAction(id)
|
|
26882
|
+
*
|
|
26883
|
+
* ## Continuous drive
|
|
26884
|
+
*
|
|
26885
|
+
* `move` is MOMENTARY. Fluid navigation comes from the UI (or the PTZ adapter)
|
|
26886
|
+
* sending `move({pan,tilt})` REPEATEDLY at ~1 Hz while a direction is held, and
|
|
26887
|
+
* one `stop()` on release — exactly like the robot app's remote-drive joystick.
|
|
26888
|
+
* The provider forwards EACH `move` to one drive write; it must NOT debounce or
|
|
26889
|
+
* coalesce them. The UI owns the cadence.
|
|
26890
|
+
*
|
|
26891
|
+
* ## The action dictionary
|
|
26892
|
+
*
|
|
26893
|
+
* The discrete controls (dock / locate / spot-clean / follow / flash / sounds)
|
|
26894
|
+
* are a DATA-DRIVEN dictionary the cap exposes via `listActions()`. Each entry
|
|
26895
|
+
* carries `{ id, kind, label, icon }` (plus `soundId` for sound entries) so the
|
|
26896
|
+
* native panel AND the PTZ mimic render buttons WITHOUT hardcoding a
|
|
26897
|
+
* vendor-specific list. `kind: 'action'` entries are triggered with
|
|
26898
|
+
* `runAction({ actionId })`; `kind: 'sound'` entries with `playSound({ soundId })`
|
|
26899
|
+
* (the entry carries the `soundId` to pass). The general primitives — `move`,
|
|
26900
|
+
* `stop`, `goToPoint` — stay as first-class methods, not dictionary entries.
|
|
26901
|
+
*
|
|
26902
|
+
* NOTE (provider wiring): the first provider (Dreame) drives this with the RAW
|
|
26903
|
+
* `callAction(siid,aiid,in)` / `setProperty({siid,piid,value})` MIoT primitives
|
|
26904
|
+
* that the currently-published `@apocaliss92/nodedreame` already exposes on
|
|
26905
|
+
* every device handle. A future nodedreame publish adds a typed
|
|
26906
|
+
* `DreameCameraController` (drive / playPetSound / spotClean / findPet / …); the
|
|
26907
|
+
* provider can then swap the raw calls for the typed methods with no change to
|
|
26908
|
+
* THIS contract.
|
|
26909
|
+
*/
|
|
26910
|
+
/**
|
|
26911
|
+
* A momentary drive nudge. The robot MOVES (no gimbal) for as long as the caller
|
|
26912
|
+
* keeps sending nudges (~1 Hz); an explicit `stop` (or letting the nudges lapse)
|
|
26913
|
+
* halts it.
|
|
26914
|
+
*
|
|
26915
|
+
* - `pan` — turn: negative = left, positive = right, 0 = straight.
|
|
26916
|
+
* - `tilt` — throttle: positive = forward, negative = spin / turn-around.
|
|
26917
|
+
* - `speed` — optional intensity hint [0, 1]; the provider may scale the drive
|
|
26918
|
+
* vector by it (drivers without proportional drive ignore it).
|
|
26919
|
+
*
|
|
26920
|
+
* `pan` / `tilt` are normalized [-1, 1]. Both optional so a caller can nudge one
|
|
26921
|
+
* axis alone; an all-undefined nudge is a no-op.
|
|
26922
|
+
*/
|
|
26923
|
+
var NavigationMoveCommandSchema = object({
|
|
26924
|
+
pan: number().min(-1).max(1).optional(),
|
|
26925
|
+
tilt: number().min(-1).max(1).optional(),
|
|
26926
|
+
speed: number().min(0).max(1).optional()
|
|
26927
|
+
});
|
|
26928
|
+
/**
|
|
26929
|
+
* The enumerated discrete actions a navigation-capable robot can perform via
|
|
26930
|
+
* `runAction`. This is the CLOSED vocabulary; a given device advertises the
|
|
26931
|
+
* subset it supports through `listActions`. Sounds are NOT here — they go through
|
|
26932
|
+
* `playSound` (see the `sound` dictionary entries).
|
|
26933
|
+
*/
|
|
26934
|
+
var NavigationActionIdSchema = _enum([
|
|
26935
|
+
"goHome",
|
|
26936
|
+
"locate",
|
|
26937
|
+
"spotClean",
|
|
26938
|
+
"findPet",
|
|
26939
|
+
"personFollow",
|
|
26940
|
+
"stop",
|
|
26941
|
+
"startClean",
|
|
26942
|
+
"pauseClean",
|
|
26943
|
+
"dockWash",
|
|
26944
|
+
"autoEmpty",
|
|
26945
|
+
"flashOn",
|
|
26946
|
+
"flashOff"
|
|
26947
|
+
]);
|
|
26948
|
+
/** Whether a dictionary entry is a `runAction` action or a `playSound` sound. */
|
|
26949
|
+
var NavigationEntryKindSchema = _enum(["action", "sound"]);
|
|
26950
|
+
/**
|
|
26951
|
+
* One entry in the navigation action dictionary — the DATA-DRIVEN unit both the
|
|
26952
|
+
* native panel and the PTZ mimic render as a button.
|
|
26953
|
+
*
|
|
26954
|
+
* - `id` — stable id. For `kind:'action'` it is a {@link NavigationActionId}
|
|
26955
|
+
* (pass to `runAction`); for `kind:'sound'` it is a namespaced id
|
|
26956
|
+
* (`sound:meow`) whose `soundId` is passed to `playSound`.
|
|
26957
|
+
* - `icon` — icon HINT (lucide-style name; the UI maps it to its own set).
|
|
26958
|
+
* - `label` — operator-facing English label.
|
|
26959
|
+
* - `soundId` — wire sound id, present only on `kind:'sound'` entries.
|
|
26960
|
+
* - `enabled` — per-device FEATURE FLAG. `listActions` reports it so the UI /
|
|
26961
|
+
* PTZ render ONLY enabled entries. Data-driven: the provider
|
|
26962
|
+
* flips it from config, never by editing code.
|
|
26963
|
+
*/
|
|
26964
|
+
var NavigationActionEntrySchema = object({
|
|
26965
|
+
id: string(),
|
|
26966
|
+
kind: NavigationEntryKindSchema,
|
|
26967
|
+
label: string(),
|
|
26968
|
+
icon: string(),
|
|
26969
|
+
/** Present only on `kind:'sound'` entries — the id to pass to `playSound`. */
|
|
26970
|
+
soundId: number().int().optional(),
|
|
26971
|
+
/** Per-device feature flag — render this entry only when true. */
|
|
26972
|
+
enabled: boolean()
|
|
26973
|
+
});
|
|
26974
|
+
/** Coordinates for `goToPoint` — a point on the robot's live map. */
|
|
26975
|
+
var NavigationPointSchema = object({
|
|
26976
|
+
x: number(),
|
|
26977
|
+
y: number()
|
|
26978
|
+
});
|
|
26979
|
+
/**
|
|
26980
|
+
* Per-device FEATURE-FLAG report for the general (non-dictionary) primitives.
|
|
26981
|
+
* The cap reports which are enabled so the UI / PTZ render only the controls
|
|
26982
|
+
* that are turned on for THIS device. Data-driven: the provider derives these
|
|
26983
|
+
* from config + probe, never hardcoded in the UI. The per-DICTIONARY-entry flags
|
|
26984
|
+
* live on {@link NavigationActionEntrySchema.enabled}; these gate the primitives
|
|
26985
|
+
* that are not dictionary entries.
|
|
26986
|
+
*
|
|
26987
|
+
* - `move` / `stop` — the momentary drive joystick.
|
|
26988
|
+
* - `goToPoint` — send-to-map-coordinate. Ships OFF on Dreame until the
|
|
26989
|
+
* map-coordinate plumbing is wired.
|
|
26990
|
+
* - `runAction` — the discrete action buttons (dictionary `kind:'action'`).
|
|
26991
|
+
* - `playSound` — the sound buttons (dictionary `kind:'sound'`).
|
|
26992
|
+
* - `light` — the on/off fill-light toggle (works anytime).
|
|
26993
|
+
* - `lightMode` — the auto/manual selector + manual level slider (a
|
|
26994
|
+
* camera-service control; needs an active stream).
|
|
26995
|
+
*/
|
|
26996
|
+
var NavigationFeaturesSchema = object({
|
|
26997
|
+
move: boolean(),
|
|
26998
|
+
stop: boolean(),
|
|
26999
|
+
goToPoint: boolean(),
|
|
27000
|
+
runAction: boolean(),
|
|
27001
|
+
playSound: boolean(),
|
|
27002
|
+
light: boolean(),
|
|
27003
|
+
lightMode: boolean()
|
|
27004
|
+
});
|
|
27005
|
+
/** Light mode: `auto` lets the camera choose brightness; `manual` uses `level`. */
|
|
27006
|
+
var NavigationLightModeSchema = _enum(["auto", "manual"]);
|
|
27007
|
+
/**
|
|
27008
|
+
* Live navigation state so the UI can reflect what the robot is doing:
|
|
27009
|
+
* - `mode` — coarse activity (idle / cleaning / following / …).
|
|
27010
|
+
* - `following` — person/pet follow is currently armed.
|
|
27011
|
+
* - `flash` — the on-camera fill light is on.
|
|
27012
|
+
* - `lightMode` — auto vs manual fill-light mode.
|
|
27013
|
+
* - `lightLevel` — manual fill-light level (40..100); meaningful when
|
|
27014
|
+
* `lightMode === 'manual'`.
|
|
27015
|
+
*/
|
|
27016
|
+
var NavigationStatusSchema = object({
|
|
27017
|
+
mode: _enum([
|
|
27018
|
+
"idle",
|
|
27019
|
+
"cleaning",
|
|
27020
|
+
"spot",
|
|
27021
|
+
"following",
|
|
27022
|
+
"goto",
|
|
27023
|
+
"returning",
|
|
27024
|
+
"paused",
|
|
27025
|
+
"unknown"
|
|
27026
|
+
]),
|
|
27027
|
+
following: boolean(),
|
|
27028
|
+
flash: boolean(),
|
|
27029
|
+
lightMode: NavigationLightModeSchema,
|
|
27030
|
+
lightLevel: number().min(40).max(100),
|
|
27031
|
+
/** Ms epoch when the slice was last updated. */
|
|
27032
|
+
lastChangedAt: number()
|
|
27033
|
+
});
|
|
27034
|
+
NavigationStatusSchema.extend({ lastFetchedAt: number() });
|
|
27035
|
+
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({
|
|
27036
|
+
deviceId: number(),
|
|
27037
|
+
actionId: NavigationActionIdSchema
|
|
27038
|
+
}), _void(), { kind: "mutation" }), method(object({
|
|
27039
|
+
deviceId: number(),
|
|
27040
|
+
soundId: number().int()
|
|
27041
|
+
}), _void(), { kind: "mutation" }), method(object({
|
|
27042
|
+
deviceId: number(),
|
|
27043
|
+
on: boolean()
|
|
27044
|
+
}), _void(), { kind: "mutation" }), method(object({
|
|
27045
|
+
deviceId: number(),
|
|
27046
|
+
mode: NavigationLightModeSchema,
|
|
27047
|
+
level: number().min(40).max(100).optional()
|
|
27048
|
+
}), _void(), { kind: "mutation" }), method(object({
|
|
27049
|
+
deviceId: number(),
|
|
27050
|
+
level: number().min(40).max(100)
|
|
27051
|
+
}), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), NavigationFeaturesSchema), object({
|
|
27052
|
+
deviceId: number(),
|
|
27053
|
+
status: NavigationStatusSchema
|
|
27054
|
+
});
|
|
26852
27055
|
DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceId: number().int().nonnegative() }), object({ success: literal(true) }), {
|
|
26853
27056
|
kind: "mutation",
|
|
26854
27057
|
auth: "admin"
|
|
@@ -31913,6 +32116,66 @@ Object.freeze({
|
|
|
31913
32116
|
addonId: null,
|
|
31914
32117
|
access: "create"
|
|
31915
32118
|
},
|
|
32119
|
+
"navigation.getFeatures": {
|
|
32120
|
+
capName: "navigation",
|
|
32121
|
+
capScope: "device",
|
|
32122
|
+
addonId: null,
|
|
32123
|
+
access: "view"
|
|
32124
|
+
},
|
|
32125
|
+
"navigation.goToPoint": {
|
|
32126
|
+
capName: "navigation",
|
|
32127
|
+
capScope: "device",
|
|
32128
|
+
addonId: null,
|
|
32129
|
+
access: "create"
|
|
32130
|
+
},
|
|
32131
|
+
"navigation.listActions": {
|
|
32132
|
+
capName: "navigation",
|
|
32133
|
+
capScope: "device",
|
|
32134
|
+
addonId: null,
|
|
32135
|
+
access: "view"
|
|
32136
|
+
},
|
|
32137
|
+
"navigation.move": {
|
|
32138
|
+
capName: "navigation",
|
|
32139
|
+
capScope: "device",
|
|
32140
|
+
addonId: null,
|
|
32141
|
+
access: "create"
|
|
32142
|
+
},
|
|
32143
|
+
"navigation.playSound": {
|
|
32144
|
+
capName: "navigation",
|
|
32145
|
+
capScope: "device",
|
|
32146
|
+
addonId: null,
|
|
32147
|
+
access: "create"
|
|
32148
|
+
},
|
|
32149
|
+
"navigation.runAction": {
|
|
32150
|
+
capName: "navigation",
|
|
32151
|
+
capScope: "device",
|
|
32152
|
+
addonId: null,
|
|
32153
|
+
access: "create"
|
|
32154
|
+
},
|
|
32155
|
+
"navigation.setLightLevel": {
|
|
32156
|
+
capName: "navigation",
|
|
32157
|
+
capScope: "device",
|
|
32158
|
+
addonId: null,
|
|
32159
|
+
access: "create"
|
|
32160
|
+
},
|
|
32161
|
+
"navigation.setLightMode": {
|
|
32162
|
+
capName: "navigation",
|
|
32163
|
+
capScope: "device",
|
|
32164
|
+
addonId: null,
|
|
32165
|
+
access: "create"
|
|
32166
|
+
},
|
|
32167
|
+
"navigation.setLightOn": {
|
|
32168
|
+
capName: "navigation",
|
|
32169
|
+
capScope: "device",
|
|
32170
|
+
addonId: null,
|
|
32171
|
+
access: "create"
|
|
32172
|
+
},
|
|
32173
|
+
"navigation.stop": {
|
|
32174
|
+
capName: "navigation",
|
|
32175
|
+
capScope: "device",
|
|
32176
|
+
addonId: null,
|
|
32177
|
+
access: "create"
|
|
32178
|
+
},
|
|
31916
32179
|
"networkAccess.getEndpoint": {
|
|
31917
32180
|
capName: "network-access",
|
|
31918
32181
|
capScope: "system",
|
|
@@ -36008,6 +36271,56 @@ Object.freeze({
|
|
|
36008
36271
|
form: "single",
|
|
36009
36272
|
optional: false
|
|
36010
36273
|
}],
|
|
36274
|
+
"navigation.getFeatures": [{
|
|
36275
|
+
name: "deviceId",
|
|
36276
|
+
form: "single",
|
|
36277
|
+
optional: false
|
|
36278
|
+
}],
|
|
36279
|
+
"navigation.goToPoint": [{
|
|
36280
|
+
name: "deviceId",
|
|
36281
|
+
form: "single",
|
|
36282
|
+
optional: false
|
|
36283
|
+
}],
|
|
36284
|
+
"navigation.listActions": [{
|
|
36285
|
+
name: "deviceId",
|
|
36286
|
+
form: "single",
|
|
36287
|
+
optional: false
|
|
36288
|
+
}],
|
|
36289
|
+
"navigation.move": [{
|
|
36290
|
+
name: "deviceId",
|
|
36291
|
+
form: "single",
|
|
36292
|
+
optional: false
|
|
36293
|
+
}],
|
|
36294
|
+
"navigation.playSound": [{
|
|
36295
|
+
name: "deviceId",
|
|
36296
|
+
form: "single",
|
|
36297
|
+
optional: false
|
|
36298
|
+
}],
|
|
36299
|
+
"navigation.runAction": [{
|
|
36300
|
+
name: "deviceId",
|
|
36301
|
+
form: "single",
|
|
36302
|
+
optional: false
|
|
36303
|
+
}],
|
|
36304
|
+
"navigation.setLightLevel": [{
|
|
36305
|
+
name: "deviceId",
|
|
36306
|
+
form: "single",
|
|
36307
|
+
optional: false
|
|
36308
|
+
}],
|
|
36309
|
+
"navigation.setLightMode": [{
|
|
36310
|
+
name: "deviceId",
|
|
36311
|
+
form: "single",
|
|
36312
|
+
optional: false
|
|
36313
|
+
}],
|
|
36314
|
+
"navigation.setLightOn": [{
|
|
36315
|
+
name: "deviceId",
|
|
36316
|
+
form: "single",
|
|
36317
|
+
optional: false
|
|
36318
|
+
}],
|
|
36319
|
+
"navigation.stop": [{
|
|
36320
|
+
name: "deviceId",
|
|
36321
|
+
form: "single",
|
|
36322
|
+
optional: false
|
|
36323
|
+
}],
|
|
36011
36324
|
"networkQuality.getDeviceStats": [{
|
|
36012
36325
|
name: "deviceId",
|
|
36013
36326
|
form: "single",
|
package/dist/smtp.addon.mjs
CHANGED
|
@@ -5441,6 +5441,12 @@ Object.fromEntries([
|
|
|
5441
5441
|
icon: "move",
|
|
5442
5442
|
order: 40
|
|
5443
5443
|
},
|
|
5444
|
+
{
|
|
5445
|
+
id: "navigation",
|
|
5446
|
+
label: "Navigation",
|
|
5447
|
+
icon: "compass",
|
|
5448
|
+
order: 41
|
|
5449
|
+
},
|
|
5444
5450
|
{
|
|
5445
5451
|
id: "consumables",
|
|
5446
5452
|
label: "Consumables",
|
|
@@ -26847,6 +26853,203 @@ DeviceType.Camera, method(object({ deviceId: number() }), PtzAutotrackStatusSche
|
|
|
26847
26853
|
deviceId: number(),
|
|
26848
26854
|
status: PtzAutotrackStatusSchema
|
|
26849
26855
|
});
|
|
26856
|
+
/**
|
|
26857
|
+
* `navigation` — a device-scoped capability that natively expresses the FULL
|
|
26858
|
+
* navigation / action surface of a robot that DRIVES ITSELF and carries an
|
|
26859
|
+
* on-board camera (the Dreame robot-vacuum camera is the first provider).
|
|
26860
|
+
*
|
|
26861
|
+
* Why a NEW cap rather than overloading `ptz`:
|
|
26862
|
+
* - `ptz` moves a *gimbal* on a fixed camera (pan/tilt/zoom of the lens). A
|
|
26863
|
+
* robot vacuum has no gimbal — the whole chassis drives, turns and spins.
|
|
26864
|
+
* The two are different physical models: PTZ is absolute-position + presets,
|
|
26865
|
+
* navigation is momentary drive nudges + discrete robot ACTIONS
|
|
26866
|
+
* (dock / spot-clean / follow-pet / go-to-point / …).
|
|
26867
|
+
* - This cap is the SOURCE OF TRUTH. Two consumers adapt from it rather than
|
|
26868
|
+
* the reverse:
|
|
26869
|
+
* 1. a native CamStack navigation panel (data-driven from `listActions`
|
|
26870
|
+
* / `getOptions`), and
|
|
26871
|
+
* 2. the PTZ surface — a thin adapter mimics `ptz` from `navigation` so a
|
|
26872
|
+
* robot camera shows up in the existing PTZ control path without every
|
|
26873
|
+
* PTZ provider learning about robots. The mapping lives in the adapter,
|
|
26874
|
+
* not here (see the addon design note):
|
|
26875
|
+
* ptz.continuousMove({pan,tilt}) → navigation.move({pan,tilt})
|
|
26876
|
+
* ptz.stop() → navigation.stop()
|
|
26877
|
+
* ptz.goHome() → navigation.runAction('goHome')
|
|
26878
|
+
* ptz.getPresets() → navigation.listActions() (id→preset)
|
|
26879
|
+
* ptz.goToPreset(id) → navigation.runAction(id)
|
|
26880
|
+
*
|
|
26881
|
+
* ## Continuous drive
|
|
26882
|
+
*
|
|
26883
|
+
* `move` is MOMENTARY. Fluid navigation comes from the UI (or the PTZ adapter)
|
|
26884
|
+
* sending `move({pan,tilt})` REPEATEDLY at ~1 Hz while a direction is held, and
|
|
26885
|
+
* one `stop()` on release — exactly like the robot app's remote-drive joystick.
|
|
26886
|
+
* The provider forwards EACH `move` to one drive write; it must NOT debounce or
|
|
26887
|
+
* coalesce them. The UI owns the cadence.
|
|
26888
|
+
*
|
|
26889
|
+
* ## The action dictionary
|
|
26890
|
+
*
|
|
26891
|
+
* The discrete controls (dock / locate / spot-clean / follow / flash / sounds)
|
|
26892
|
+
* are a DATA-DRIVEN dictionary the cap exposes via `listActions()`. Each entry
|
|
26893
|
+
* carries `{ id, kind, label, icon }` (plus `soundId` for sound entries) so the
|
|
26894
|
+
* native panel AND the PTZ mimic render buttons WITHOUT hardcoding a
|
|
26895
|
+
* vendor-specific list. `kind: 'action'` entries are triggered with
|
|
26896
|
+
* `runAction({ actionId })`; `kind: 'sound'` entries with `playSound({ soundId })`
|
|
26897
|
+
* (the entry carries the `soundId` to pass). The general primitives — `move`,
|
|
26898
|
+
* `stop`, `goToPoint` — stay as first-class methods, not dictionary entries.
|
|
26899
|
+
*
|
|
26900
|
+
* NOTE (provider wiring): the first provider (Dreame) drives this with the RAW
|
|
26901
|
+
* `callAction(siid,aiid,in)` / `setProperty({siid,piid,value})` MIoT primitives
|
|
26902
|
+
* that the currently-published `@apocaliss92/nodedreame` already exposes on
|
|
26903
|
+
* every device handle. A future nodedreame publish adds a typed
|
|
26904
|
+
* `DreameCameraController` (drive / playPetSound / spotClean / findPet / …); the
|
|
26905
|
+
* provider can then swap the raw calls for the typed methods with no change to
|
|
26906
|
+
* THIS contract.
|
|
26907
|
+
*/
|
|
26908
|
+
/**
|
|
26909
|
+
* A momentary drive nudge. The robot MOVES (no gimbal) for as long as the caller
|
|
26910
|
+
* keeps sending nudges (~1 Hz); an explicit `stop` (or letting the nudges lapse)
|
|
26911
|
+
* halts it.
|
|
26912
|
+
*
|
|
26913
|
+
* - `pan` — turn: negative = left, positive = right, 0 = straight.
|
|
26914
|
+
* - `tilt` — throttle: positive = forward, negative = spin / turn-around.
|
|
26915
|
+
* - `speed` — optional intensity hint [0, 1]; the provider may scale the drive
|
|
26916
|
+
* vector by it (drivers without proportional drive ignore it).
|
|
26917
|
+
*
|
|
26918
|
+
* `pan` / `tilt` are normalized [-1, 1]. Both optional so a caller can nudge one
|
|
26919
|
+
* axis alone; an all-undefined nudge is a no-op.
|
|
26920
|
+
*/
|
|
26921
|
+
var NavigationMoveCommandSchema = object({
|
|
26922
|
+
pan: number().min(-1).max(1).optional(),
|
|
26923
|
+
tilt: number().min(-1).max(1).optional(),
|
|
26924
|
+
speed: number().min(0).max(1).optional()
|
|
26925
|
+
});
|
|
26926
|
+
/**
|
|
26927
|
+
* The enumerated discrete actions a navigation-capable robot can perform via
|
|
26928
|
+
* `runAction`. This is the CLOSED vocabulary; a given device advertises the
|
|
26929
|
+
* subset it supports through `listActions`. Sounds are NOT here — they go through
|
|
26930
|
+
* `playSound` (see the `sound` dictionary entries).
|
|
26931
|
+
*/
|
|
26932
|
+
var NavigationActionIdSchema = _enum([
|
|
26933
|
+
"goHome",
|
|
26934
|
+
"locate",
|
|
26935
|
+
"spotClean",
|
|
26936
|
+
"findPet",
|
|
26937
|
+
"personFollow",
|
|
26938
|
+
"stop",
|
|
26939
|
+
"startClean",
|
|
26940
|
+
"pauseClean",
|
|
26941
|
+
"dockWash",
|
|
26942
|
+
"autoEmpty",
|
|
26943
|
+
"flashOn",
|
|
26944
|
+
"flashOff"
|
|
26945
|
+
]);
|
|
26946
|
+
/** Whether a dictionary entry is a `runAction` action or a `playSound` sound. */
|
|
26947
|
+
var NavigationEntryKindSchema = _enum(["action", "sound"]);
|
|
26948
|
+
/**
|
|
26949
|
+
* One entry in the navigation action dictionary — the DATA-DRIVEN unit both the
|
|
26950
|
+
* native panel and the PTZ mimic render as a button.
|
|
26951
|
+
*
|
|
26952
|
+
* - `id` — stable id. For `kind:'action'` it is a {@link NavigationActionId}
|
|
26953
|
+
* (pass to `runAction`); for `kind:'sound'` it is a namespaced id
|
|
26954
|
+
* (`sound:meow`) whose `soundId` is passed to `playSound`.
|
|
26955
|
+
* - `icon` — icon HINT (lucide-style name; the UI maps it to its own set).
|
|
26956
|
+
* - `label` — operator-facing English label.
|
|
26957
|
+
* - `soundId` — wire sound id, present only on `kind:'sound'` entries.
|
|
26958
|
+
* - `enabled` — per-device FEATURE FLAG. `listActions` reports it so the UI /
|
|
26959
|
+
* PTZ render ONLY enabled entries. Data-driven: the provider
|
|
26960
|
+
* flips it from config, never by editing code.
|
|
26961
|
+
*/
|
|
26962
|
+
var NavigationActionEntrySchema = object({
|
|
26963
|
+
id: string(),
|
|
26964
|
+
kind: NavigationEntryKindSchema,
|
|
26965
|
+
label: string(),
|
|
26966
|
+
icon: string(),
|
|
26967
|
+
/** Present only on `kind:'sound'` entries — the id to pass to `playSound`. */
|
|
26968
|
+
soundId: number().int().optional(),
|
|
26969
|
+
/** Per-device feature flag — render this entry only when true. */
|
|
26970
|
+
enabled: boolean()
|
|
26971
|
+
});
|
|
26972
|
+
/** Coordinates for `goToPoint` — a point on the robot's live map. */
|
|
26973
|
+
var NavigationPointSchema = object({
|
|
26974
|
+
x: number(),
|
|
26975
|
+
y: number()
|
|
26976
|
+
});
|
|
26977
|
+
/**
|
|
26978
|
+
* Per-device FEATURE-FLAG report for the general (non-dictionary) primitives.
|
|
26979
|
+
* The cap reports which are enabled so the UI / PTZ render only the controls
|
|
26980
|
+
* that are turned on for THIS device. Data-driven: the provider derives these
|
|
26981
|
+
* from config + probe, never hardcoded in the UI. The per-DICTIONARY-entry flags
|
|
26982
|
+
* live on {@link NavigationActionEntrySchema.enabled}; these gate the primitives
|
|
26983
|
+
* that are not dictionary entries.
|
|
26984
|
+
*
|
|
26985
|
+
* - `move` / `stop` — the momentary drive joystick.
|
|
26986
|
+
* - `goToPoint` — send-to-map-coordinate. Ships OFF on Dreame until the
|
|
26987
|
+
* map-coordinate plumbing is wired.
|
|
26988
|
+
* - `runAction` — the discrete action buttons (dictionary `kind:'action'`).
|
|
26989
|
+
* - `playSound` — the sound buttons (dictionary `kind:'sound'`).
|
|
26990
|
+
* - `light` — the on/off fill-light toggle (works anytime).
|
|
26991
|
+
* - `lightMode` — the auto/manual selector + manual level slider (a
|
|
26992
|
+
* camera-service control; needs an active stream).
|
|
26993
|
+
*/
|
|
26994
|
+
var NavigationFeaturesSchema = object({
|
|
26995
|
+
move: boolean(),
|
|
26996
|
+
stop: boolean(),
|
|
26997
|
+
goToPoint: boolean(),
|
|
26998
|
+
runAction: boolean(),
|
|
26999
|
+
playSound: boolean(),
|
|
27000
|
+
light: boolean(),
|
|
27001
|
+
lightMode: boolean()
|
|
27002
|
+
});
|
|
27003
|
+
/** Light mode: `auto` lets the camera choose brightness; `manual` uses `level`. */
|
|
27004
|
+
var NavigationLightModeSchema = _enum(["auto", "manual"]);
|
|
27005
|
+
/**
|
|
27006
|
+
* Live navigation state so the UI can reflect what the robot is doing:
|
|
27007
|
+
* - `mode` — coarse activity (idle / cleaning / following / …).
|
|
27008
|
+
* - `following` — person/pet follow is currently armed.
|
|
27009
|
+
* - `flash` — the on-camera fill light is on.
|
|
27010
|
+
* - `lightMode` — auto vs manual fill-light mode.
|
|
27011
|
+
* - `lightLevel` — manual fill-light level (40..100); meaningful when
|
|
27012
|
+
* `lightMode === 'manual'`.
|
|
27013
|
+
*/
|
|
27014
|
+
var NavigationStatusSchema = object({
|
|
27015
|
+
mode: _enum([
|
|
27016
|
+
"idle",
|
|
27017
|
+
"cleaning",
|
|
27018
|
+
"spot",
|
|
27019
|
+
"following",
|
|
27020
|
+
"goto",
|
|
27021
|
+
"returning",
|
|
27022
|
+
"paused",
|
|
27023
|
+
"unknown"
|
|
27024
|
+
]),
|
|
27025
|
+
following: boolean(),
|
|
27026
|
+
flash: boolean(),
|
|
27027
|
+
lightMode: NavigationLightModeSchema,
|
|
27028
|
+
lightLevel: number().min(40).max(100),
|
|
27029
|
+
/** Ms epoch when the slice was last updated. */
|
|
27030
|
+
lastChangedAt: number()
|
|
27031
|
+
});
|
|
27032
|
+
NavigationStatusSchema.extend({ lastFetchedAt: number() });
|
|
27033
|
+
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({
|
|
27034
|
+
deviceId: number(),
|
|
27035
|
+
actionId: NavigationActionIdSchema
|
|
27036
|
+
}), _void(), { kind: "mutation" }), method(object({
|
|
27037
|
+
deviceId: number(),
|
|
27038
|
+
soundId: number().int()
|
|
27039
|
+
}), _void(), { kind: "mutation" }), method(object({
|
|
27040
|
+
deviceId: number(),
|
|
27041
|
+
on: boolean()
|
|
27042
|
+
}), _void(), { kind: "mutation" }), method(object({
|
|
27043
|
+
deviceId: number(),
|
|
27044
|
+
mode: NavigationLightModeSchema,
|
|
27045
|
+
level: number().min(40).max(100).optional()
|
|
27046
|
+
}), _void(), { kind: "mutation" }), method(object({
|
|
27047
|
+
deviceId: number(),
|
|
27048
|
+
level: number().min(40).max(100)
|
|
27049
|
+
}), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), NavigationFeaturesSchema), object({
|
|
27050
|
+
deviceId: number(),
|
|
27051
|
+
status: NavigationStatusSchema
|
|
27052
|
+
});
|
|
26850
27053
|
DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceId: number().int().nonnegative() }), object({ success: literal(true) }), {
|
|
26851
27054
|
kind: "mutation",
|
|
26852
27055
|
auth: "admin"
|
|
@@ -31911,6 +32114,66 @@ Object.freeze({
|
|
|
31911
32114
|
addonId: null,
|
|
31912
32115
|
access: "create"
|
|
31913
32116
|
},
|
|
32117
|
+
"navigation.getFeatures": {
|
|
32118
|
+
capName: "navigation",
|
|
32119
|
+
capScope: "device",
|
|
32120
|
+
addonId: null,
|
|
32121
|
+
access: "view"
|
|
32122
|
+
},
|
|
32123
|
+
"navigation.goToPoint": {
|
|
32124
|
+
capName: "navigation",
|
|
32125
|
+
capScope: "device",
|
|
32126
|
+
addonId: null,
|
|
32127
|
+
access: "create"
|
|
32128
|
+
},
|
|
32129
|
+
"navigation.listActions": {
|
|
32130
|
+
capName: "navigation",
|
|
32131
|
+
capScope: "device",
|
|
32132
|
+
addonId: null,
|
|
32133
|
+
access: "view"
|
|
32134
|
+
},
|
|
32135
|
+
"navigation.move": {
|
|
32136
|
+
capName: "navigation",
|
|
32137
|
+
capScope: "device",
|
|
32138
|
+
addonId: null,
|
|
32139
|
+
access: "create"
|
|
32140
|
+
},
|
|
32141
|
+
"navigation.playSound": {
|
|
32142
|
+
capName: "navigation",
|
|
32143
|
+
capScope: "device",
|
|
32144
|
+
addonId: null,
|
|
32145
|
+
access: "create"
|
|
32146
|
+
},
|
|
32147
|
+
"navigation.runAction": {
|
|
32148
|
+
capName: "navigation",
|
|
32149
|
+
capScope: "device",
|
|
32150
|
+
addonId: null,
|
|
32151
|
+
access: "create"
|
|
32152
|
+
},
|
|
32153
|
+
"navigation.setLightLevel": {
|
|
32154
|
+
capName: "navigation",
|
|
32155
|
+
capScope: "device",
|
|
32156
|
+
addonId: null,
|
|
32157
|
+
access: "create"
|
|
32158
|
+
},
|
|
32159
|
+
"navigation.setLightMode": {
|
|
32160
|
+
capName: "navigation",
|
|
32161
|
+
capScope: "device",
|
|
32162
|
+
addonId: null,
|
|
32163
|
+
access: "create"
|
|
32164
|
+
},
|
|
32165
|
+
"navigation.setLightOn": {
|
|
32166
|
+
capName: "navigation",
|
|
32167
|
+
capScope: "device",
|
|
32168
|
+
addonId: null,
|
|
32169
|
+
access: "create"
|
|
32170
|
+
},
|
|
32171
|
+
"navigation.stop": {
|
|
32172
|
+
capName: "navigation",
|
|
32173
|
+
capScope: "device",
|
|
32174
|
+
addonId: null,
|
|
32175
|
+
access: "create"
|
|
32176
|
+
},
|
|
31914
32177
|
"networkAccess.getEndpoint": {
|
|
31915
32178
|
capName: "network-access",
|
|
31916
32179
|
capScope: "system",
|
|
@@ -36006,6 +36269,56 @@ Object.freeze({
|
|
|
36006
36269
|
form: "single",
|
|
36007
36270
|
optional: false
|
|
36008
36271
|
}],
|
|
36272
|
+
"navigation.getFeatures": [{
|
|
36273
|
+
name: "deviceId",
|
|
36274
|
+
form: "single",
|
|
36275
|
+
optional: false
|
|
36276
|
+
}],
|
|
36277
|
+
"navigation.goToPoint": [{
|
|
36278
|
+
name: "deviceId",
|
|
36279
|
+
form: "single",
|
|
36280
|
+
optional: false
|
|
36281
|
+
}],
|
|
36282
|
+
"navigation.listActions": [{
|
|
36283
|
+
name: "deviceId",
|
|
36284
|
+
form: "single",
|
|
36285
|
+
optional: false
|
|
36286
|
+
}],
|
|
36287
|
+
"navigation.move": [{
|
|
36288
|
+
name: "deviceId",
|
|
36289
|
+
form: "single",
|
|
36290
|
+
optional: false
|
|
36291
|
+
}],
|
|
36292
|
+
"navigation.playSound": [{
|
|
36293
|
+
name: "deviceId",
|
|
36294
|
+
form: "single",
|
|
36295
|
+
optional: false
|
|
36296
|
+
}],
|
|
36297
|
+
"navigation.runAction": [{
|
|
36298
|
+
name: "deviceId",
|
|
36299
|
+
form: "single",
|
|
36300
|
+
optional: false
|
|
36301
|
+
}],
|
|
36302
|
+
"navigation.setLightLevel": [{
|
|
36303
|
+
name: "deviceId",
|
|
36304
|
+
form: "single",
|
|
36305
|
+
optional: false
|
|
36306
|
+
}],
|
|
36307
|
+
"navigation.setLightMode": [{
|
|
36308
|
+
name: "deviceId",
|
|
36309
|
+
form: "single",
|
|
36310
|
+
optional: false
|
|
36311
|
+
}],
|
|
36312
|
+
"navigation.setLightOn": [{
|
|
36313
|
+
name: "deviceId",
|
|
36314
|
+
form: "single",
|
|
36315
|
+
optional: false
|
|
36316
|
+
}],
|
|
36317
|
+
"navigation.stop": [{
|
|
36318
|
+
name: "deviceId",
|
|
36319
|
+
form: "single",
|
|
36320
|
+
optional: false
|
|
36321
|
+
}],
|
|
36009
36322
|
"networkQuality.getDeviceStats": [{
|
|
36010
36323
|
name: "deviceId",
|
|
36011
36324
|
form: "single",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-smtp-nodemailer",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.71",
|
|
4
4
|
"description": "SMTP email provider addon for CamStack — wraps `nodemailer` and registers a `smtp-provider` cap collection entry. Used by magic-link login + notifier addons.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|