50 lines
1.2 KiB
JavaScript
50 lines
1.2 KiB
JavaScript
|
|
'use strict';
|
||
|
|
|
||
|
|
const Client = require('./src/Client');
|
||
|
|
const {
|
||
|
|
AttentionMode,
|
||
|
|
Camera,
|
||
|
|
Resolution,
|
||
|
|
VideoType,
|
||
|
|
GestureType,
|
||
|
|
HEAD_TOUCH_PADS,
|
||
|
|
} = require('./src/constants');
|
||
|
|
|
||
|
|
const Track = require('./src/structures/Track');
|
||
|
|
const Photo = require('./src/structures/Photo');
|
||
|
|
const VideoStream = require('./src/structures/VideoStream');
|
||
|
|
const SpeechResult = require('./src/structures/SpeechResult');
|
||
|
|
const Motion = require('./src/structures/Motion');
|
||
|
|
const HeadTouchEvent = require('./src/structures/HeadTouchEvent');
|
||
|
|
const GestureEvent = require('./src/structures/GestureEvent');
|
||
|
|
const HotwordEvent = require('./src/structures/HotwordEvent');
|
||
|
|
|
||
|
|
const { sanitizeEsml, chunkEsml } = require('./src/util/esml');
|
||
|
|
|
||
|
|
module.exports = {
|
||
|
|
// Main class
|
||
|
|
Client,
|
||
|
|
|
||
|
|
// Constants / enums
|
||
|
|
AttentionMode,
|
||
|
|
Camera,
|
||
|
|
Resolution,
|
||
|
|
VideoType,
|
||
|
|
GestureType,
|
||
|
|
HEAD_TOUCH_PADS,
|
||
|
|
|
||
|
|
// Structures (for instanceof checks / JSDoc typing)
|
||
|
|
Track,
|
||
|
|
Photo,
|
||
|
|
VideoStream,
|
||
|
|
SpeechResult,
|
||
|
|
Motion,
|
||
|
|
HeadTouchEvent,
|
||
|
|
GestureEvent,
|
||
|
|
HotwordEvent,
|
||
|
|
|
||
|
|
// ESML utilities (still useful for callers who build raw ESML strings)
|
||
|
|
sanitizeEsml,
|
||
|
|
chunkEsml,
|
||
|
|
};
|