@mathquis/node-assistant-protocol
Version:
Assistant protocol decorator for Hermes protocol
104 lines (92 loc) • 5.05 kB
JavaScript
module.exports = {
CORE_LOAD : 'assistant/core/load',
CORE_STATE : 'assistant/core/state',
BRAIN_LOAD : 'assistant/brain/load',
BRAIN_STATE : 'assistant/brain/state',
DEVICE_LOAD : 'assistant/device/{siteId}/load',
DEVICE_STATE : 'assistant/device/{siteId}/state',
DEVICE_SHUTDOWN : 'assistant/device/{siteId}/shutdown',
DEVICE_REBOOT : 'assistant/device/{siteId}/reboot',
DIALOGUE_LOAD : 'assistant/dialogue/load',
DIALOGUE_STATE : 'assistant/dialogue/state',
VOICE_LOAD : 'assistant/voice/load',
VOICE_STATE : 'assistant/voice/state',
TRAIN_PERFORM : 'assistant/train/perform',
TRAIN_COMPLETE : 'assistant/train/complete',
TRAIN_ERROR : 'assistant/train/error',
// Capabilities: Wakeword
WAKEWORD_KEYWORD_AUDIO_DATA : 'assistant/wakeword/{keyword}/{siteId}/audioData',
// Capabilities: Speaker
SPEAKER_SET_VOLUME : 'assistant/speaker/setVolume',
SPEAKER_OFFSET_VOLUME : 'assistant/speaker/offsetVolume',
SPEAKER_SET_MUTE : 'assistant/speaker/setMute',
SPEAKER_VOLUME_CHANGED : 'assistant/speaker/volumeChanged',
SPEAKER_MUTE_CHANGED : 'assistant/speaker/muteChanged',
SPEAKER_ERROR : 'assistant/speaker/error',
// Capabilities: Playback
PLAYBACK_SET_VOLUME : 'assistant/playback/setVolume',
PLAYBACK_OFFSET_VOLUME : 'assistant/playback/offsetVolume',
PLAYBACK_SET_MUTE : 'assistant/playback/setMute',
PLAYBACK_VOLUME_CHANGED : 'assistant/playback/volumeChanged',
PLAYBACK_MUTE_CHANGED : 'assistant/playback/muteChanged',
PLAYBACK_ERROR : 'assistant/playback/error',
// Capabilities: Voice
VOICE_SET_VOLUME : 'assistant/voice/setVolume',
VOICE_OFFSET_VOLUME : 'assistant/voice/offsetVolume',
VOICE_SET_MUTE : 'assistant/voice/setMute',
VOICE_VOLUME_CHANGED : 'assistant/voice/volumeChanged',
VOICE_MUTE_CHANGED : 'assistant/voice/muteChanged',
VOICE_ERROR : 'assistant/voice/error',
// Capabilities: Do not disturb
DND_TOGGLE_ON : 'assistant/dnd/toggleOn',
DND_TOGGLE_OFF : 'assistant/dnd/toggleOff',
DND_STATE_CHANGED : 'assistant/dnd/stateChanged',
DND_ERROR : 'assistant/dnd/error',
// Capabilities: Alert
ALERT_ALERT_STARTED : 'assistant/alert/alertStarted',
ALERT_ALERT_STOPPED : 'assistant/alert/alertStopped',
ALERT_ALERT_SNOOZED : 'assistant/alert/alertSnoozed',
ALERT_ALERT_CANCELED : 'assistant/alert/alertCanceled',
ALERT_ALERT_DELETED : 'assistant/alert/alertDeleted',
ALERT_ALERT_ERROR : 'assistant/alert/alertError',
ALERT_SET_VOLUME : 'assistant/alert/setVolume',
ALERT_VOLUME_CHANGED : 'assistant/alert/volumeChanged',
ALERT_SET_ALERT : 'assistant/alert/setAlert',
ALERT_SET_ALERT_SUCCEEDED : 'assistant/alert/setAlertSucceeded',
ALERT_SET_ALERT_FAILED : 'assistant/alert/setAlertFailed',
ALERT_SNOOZE_ALERT : 'assistant/alert/snoozeAlert',
ALERT_SNOOZE_ALERT_SUCCEEDED : 'assistant/alert/snoozeAlertSucceeded',
ALERT_SNOOZE_ALERT_FAILED : 'assistant/alert/snoozeAlertFailed',
ALERT_CANCEL_ALERT : 'assistant/alert/cancelAlert',
ALERT_CANCEL_ALERT_SUCCEEDED : 'assistant/alert/cancelAlertSucceeded',
ALERT_CANCEL_ALERT_FAILED : 'assistant/alert/cancelAlertFailed',
ALERT_STOP_ALERT : 'assistant/alert/stopAlert',
ALERT_STOP_ALERT_SUCCEEDED : 'assistant/alert/stopAlertSucceeded',
ALERT_STOP_ALERT_FAILED : 'assistant/alert/stopAlertFailed',
ALERT_DELETE_ALERT : 'assistant/alert/deleteAlert',
ALERT_DELETE_ALERT_SUCCEEDED : 'assistant/alert/deleteAlertSucceeded',
ALERT_DELETE_ALERT_FAILED : 'assistant/alert/deleteAlertFailed',
ALERT_DELETE_ALERTS : 'assistant/alert/deleteAlerts',
ALERT_DELETE_ALERTS_SUCCEEDED : 'assistant/alert/deleteAlertsSucceeded',
ALERT_DELETE_ALERTS_FAILED : 'assistant/alert/deleteAlertsFailed',
ALERT_ERROR : 'assistant/alert/error',
// Capabilities: Audio player
AUDIO_PLAYER_PLAY : 'assistant/audioPlayer/play',
AUDIO_PLAYER_PAUSE : 'assistant/audioPlayer/pause',
AUDIO_PLAYER_PREVIOUS : 'assistant/audioPlayer/previous',
AUDIO_PLAYER_NEXT : 'assistant/audioPlayer/next',
AUDIO_PLAYER_RESUME : 'assistant/audioPlayer/resume',
AUDIO_PLAYER_STOP : 'assistant/audioPlayer/stop',
AUDIO_PLAYER_OFFSET : 'assistant/audioPlayer/offset',
AUDIO_PLAYER_SEEK : 'assistant/audioPlayer/seek',
AUDIO_PLAYER_SET_SHUFFLE : 'assistant/audioPlayer/setShuffle',
AUDIO_PLAYER_SET_REPEAT : 'assistant/audioPlayer/setRepeat',
AUDIO_PLAYER_PLAY_SUCCEEDED : 'assistant/audioPlayer/playSucceeded',
AUDIO_PLAYER_PLAY_FAILED : 'assistant/audioPlayer/playFailed',
AUDIO_PLAYER_PLAYBACK_STARTED : 'assistant/audioPlayer/playbackStarted',
AUDIO_PLAYER_PLAYBACK_PAUSED : 'assistant/audioPlayer/playbackPaused',
AUDIO_PLAYER_PLAYBACK_STOPPED : 'assistant/audioPlayer/playbackStopped',
AUDIO_PLAYER_PLAYBACK_FINISHED : 'assistant/audioPlayer/playbackFinished',
AUDIO_PLAYER_PLAYBACK_PROGRESS : 'assistant/audioPlayer/playbackProgress',
AUDIO_PLAYER_ERROR : 'assistant/audioPlayer/error'
}