@relaypro/sdk
Advanced tools
Changelog
[2.0.0] - 2022-02-24
Relay infrastructure has undergone some major refactoring of how workflows are processed. As a result, breaking changes in the SDK are required in order to support these changes.
For more details, please read the migration guide, which explains the rationale for the major change.
Changelog
[1.1.0] - 2021-06-04
README.md
documentation with explanation of a simple workflow samplincident
eventpush_opts
on notification functionssuppressTTS
parameter on setChannel
Event.STOP
or stop
emitted when ibot has ended the workflowEvent.ERROR
or error
emitted when
restartDevice()
and powerDownDevice()
restarts and powers down a Relay device
(not an App or Dash, of course)ledAction(effect, args)
more general and robust LED action that other LED actions
can build uponsetDeviceMode(mode)
put a device in panic
or alarm
modeplaceCall(call)
, answerCall(call)
, and hangupCall(call)
enable initiating and
managing calling via workflowsstopPlayback(id)
will stop audio playback initiated by say()
and play()
setTimer(type, name, timeout, timeout_type)
and clearTimer(name)
enable managing
timers set in the workflow. There exist some use cases that managing the timer hosted
in Relay Servers avoids certain workflow coordination pitfalls.unsetVar(name)
and unset(name[])
enables deleting variables set by setVar()
and set()
setChannel()
method signature has changedsay()
and play()
both now return an identifier that can be used with new stopPlayback()
to stop the ongoing playback of spoken text or a sound.