Device
Stentor API Reference / stentor-models/src / Device
Interface: Device
Defined in: packages/stentor-models/src/Device.ts:23
Describes the capability of the device where the request originated.
It also provides insight to how you can respond to the current request as it isn't always possible to return speech.
Propertiesβ
channelβ
channel:
string
Defined in: packages/stentor-models/src/Device.ts:29
The channel the user is on.
Deprecatedβ
Use the channel on the request object instead
audioSupportedβ
audioSupported:
boolean
Defined in: packages/stentor-models/src/Device.ts:33
If the device is capable of playing audio.
canPlayAudioβ
canPlayAudio:
boolean
Defined in: packages/stentor-models/src/Device.ts:37
If the current request can be responded to with audio.
videoSupportedβ
videoSupported:
boolean
Defined in: packages/stentor-models/src/Device.ts:41
If the device is capable of playing video.
canPlayVideoβ
canPlayVideo:
boolean
Defined in: packages/stentor-models/src/Device.ts:45
If the current request can be responded to with video.
canSpeakβ
canSpeak:
boolean
Defined in: packages/stentor-models/src/Device.ts:50
If the device (and current request) can be responded to with speech
canThrowCardβ
canThrowCard:
boolean
Defined in: packages/stentor-models/src/Device.ts:54
If the device (and current request) can throw a card
canTransferCallβ
canTransferCall:
boolean
Defined in: packages/stentor-models/src/Device.ts:60
If the device is capable to transfer calls (usually to an live agent).
Telephony channels typically can perform this.
hasScreenβ
hasScreen:
boolean
Defined in: packages/stentor-models/src/Device.ts:67
If the device has a screen.
Used to determine if we can link accounts on Google or return display interfaces on Alexa.
hasWebBrowserβ
hasWebBrowser:
boolean
Defined in: packages/stentor-models/src/Device.ts:73
If the device has web browser capability
Google assistant app has it, hub doesn't
displayData?β
optionaldisplayData:DisplayData
Defined in: packages/stentor-models/src/Device.ts:79
Display data
Used to tell a little bit more about the display type if data is available
mediaPlayerStatus?β
optionalmediaPlayerStatus:MediaPlayerStatus
Defined in: packages/stentor-models/src/Device.ts:83
Some channels and devices also support media playback