uneeq-js 2.46.6 → 2.46.7
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/index.js +1 -1
- package/dist/umd/index.js +67 -54
- package/package.json +10 -12
- package/readme.md +3 -0
package/dist/umd/index.js
CHANGED
|
@@ -17,7 +17,11 @@ return /******/ (() => { // webpackBootstrap
|
|
|
17
17
|
|
|
18
18
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
19
19
|
if (k2 === undefined) k2 = k;
|
|
20
|
-
Object.
|
|
20
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
21
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
22
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
23
|
+
}
|
|
24
|
+
Object.defineProperty(o, k2, desc);
|
|
21
25
|
}) : (function(o, m, k, k2) {
|
|
22
26
|
if (k2 === undefined) k2 = k;
|
|
23
27
|
o[k2] = m[k];
|
|
@@ -30,14 +34,15 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
30
34
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
31
35
|
if (mod && mod.__esModule) return mod;
|
|
32
36
|
var result = {};
|
|
33
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
37
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
34
38
|
__setModuleDefault(result, mod);
|
|
35
39
|
return result;
|
|
36
40
|
};
|
|
37
41
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
38
|
-
for (var p in m) if (p !== "default" && !
|
|
42
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
39
43
|
};
|
|
40
44
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
45
|
+
exports.Uneeq = void 0;
|
|
41
46
|
__webpack_require__(1);
|
|
42
47
|
const adapter = __importStar(__webpack_require__(2));
|
|
43
48
|
const uneeq_1 = __webpack_require__(14);
|
|
@@ -3675,6 +3680,15 @@ const PublishSubscribeState_1 = __webpack_require__(248);
|
|
|
3675
3680
|
const SourceApp_1 = __webpack_require__(328);
|
|
3676
3681
|
const VoiceInputMode_1 = __webpack_require__(326);
|
|
3677
3682
|
class Uneeq {
|
|
3683
|
+
/**
|
|
3684
|
+
* The active session id as a string. If the session has not started yet value will be null
|
|
3685
|
+
*/
|
|
3686
|
+
get sessionId() {
|
|
3687
|
+
if (this.session) {
|
|
3688
|
+
return this.session.id;
|
|
3689
|
+
}
|
|
3690
|
+
return null;
|
|
3691
|
+
}
|
|
3678
3692
|
constructor(options) {
|
|
3679
3693
|
this.ready = new rxjs_1.BehaviorSubject(false);
|
|
3680
3694
|
this.version = package_json_1.default.version;
|
|
@@ -3718,15 +3732,6 @@ class Uneeq {
|
|
|
3718
3732
|
this.metricsService = new metrics_service_1.MetricsService(this.options, this.internalMessages$, this.messages);
|
|
3719
3733
|
this.dhVideoPlayManager = new digital_human_video_play_manager_1.DigitalHumanVideoPlayManager(this.messages, () => { this.unmuteDigitalHuman(); });
|
|
3720
3734
|
}
|
|
3721
|
-
/**
|
|
3722
|
-
* The active session id as a string. If the session has not started yet value will be null
|
|
3723
|
-
*/
|
|
3724
|
-
get sessionId() {
|
|
3725
|
-
if (this.session) {
|
|
3726
|
-
return this.session.id;
|
|
3727
|
-
}
|
|
3728
|
-
return null;
|
|
3729
|
-
}
|
|
3730
3735
|
/* Enable or disable logging */
|
|
3731
3736
|
setLoggerEnabled(enabled) {
|
|
3732
3737
|
logger_1.logger.enabled = enabled;
|
|
@@ -3991,7 +3996,7 @@ class Uneeq {
|
|
|
3991
3996
|
*/
|
|
3992
3997
|
initMessaging() {
|
|
3993
3998
|
this.messages.subscribe((msg) => this.messageCallback(msg)); // pass messages onto the callback
|
|
3994
|
-
this.messaging.state$.pipe(operators_1.filter(state => state === messaging_1.MessagingState.CONNECTED)).subscribe(() => {
|
|
3999
|
+
this.messaging.state$.pipe((0, operators_1.filter)(state => state === messaging_1.MessagingState.CONNECTED)).subscribe(() => {
|
|
3995
4000
|
this.messaging.getTopic('/topic/avatar/' + this.session.streamId);
|
|
3996
4001
|
this.ready.next(true);
|
|
3997
4002
|
this.messages.next(new MessageTypes_1.ReadyMessage());
|
|
@@ -4038,20 +4043,20 @@ class Uneeq {
|
|
|
4038
4043
|
}
|
|
4039
4044
|
/* Get device permissions, start the avatar when permission granted */
|
|
4040
4045
|
initAvatar() {
|
|
4041
|
-
this.ready.pipe(operators_1.filter(Boolean), operators_1.take(1)).subscribe(() => {
|
|
4042
|
-
this.internalMessages$.pipe(operators_1.filter((message) => message.faceMeMessageType === 'DevicePermissionAllowedInternal'), operators_1.take(1)).subscribe((msg) => {
|
|
4046
|
+
this.ready.pipe((0, operators_1.filter)(Boolean), (0, operators_1.take)(1)).subscribe(() => {
|
|
4047
|
+
this.internalMessages$.pipe((0, operators_1.filter)((message) => message.faceMeMessageType === 'DevicePermissionAllowedInternal'), (0, operators_1.take)(1)).subscribe((msg) => {
|
|
4043
4048
|
this.messages.next(new MessageTypes_1.DevicePermissionAllowedMessage());
|
|
4044
4049
|
this.startAvatarWhenAvailable();
|
|
4045
4050
|
});
|
|
4046
4051
|
this.initDeviceManager();
|
|
4047
4052
|
});
|
|
4048
|
-
this.internalMessages$.pipe(operators_1.filter((message) => message.faceMeMessageType === 'sessionLive'), operators_1.take(1)).subscribe((msg) => this.sessionLiveHandler());
|
|
4049
|
-
this.internalMessages$.pipe(operators_1.filter((message) => message.faceMeMessageType === 'sessionEnd')).subscribe(() => {
|
|
4053
|
+
this.internalMessages$.pipe((0, operators_1.filter)((message) => message.faceMeMessageType === 'sessionLive'), (0, operators_1.take)(1)).subscribe((msg) => this.sessionLiveHandler());
|
|
4054
|
+
this.internalMessages$.pipe((0, operators_1.filter)((message) => message.faceMeMessageType === 'sessionEnd')).subscribe(() => {
|
|
4050
4055
|
this.deviceManager.mediaHandler.endSession();
|
|
4051
4056
|
this.messages.next(new MessageTypes_1.SessionEndedMessage());
|
|
4052
4057
|
this.messaging.disconnect();
|
|
4053
4058
|
});
|
|
4054
|
-
this.internalMessages$.pipe(operators_1.filter((message) => message.faceMeMessageType === 'remoteVideoReadyToPlay')).subscribe((msg) => {
|
|
4059
|
+
this.internalMessages$.pipe((0, operators_1.filter)((message) => message.faceMeMessageType === 'remoteVideoReadyToPlay')).subscribe((msg) => {
|
|
4055
4060
|
this.dhVideoPlayManager.play(this.deviceManager.mediaHandler.avatarVideoElement);
|
|
4056
4061
|
});
|
|
4057
4062
|
}
|
|
@@ -4144,7 +4149,7 @@ class Uneeq {
|
|
|
4144
4149
|
}
|
|
4145
4150
|
initPromMetricsListener() {
|
|
4146
4151
|
const prom = new prom_1.Prom(this.options.url);
|
|
4147
|
-
this.internalMessages$.pipe(operators_1.filter((message) => message.faceMeMessageType === 'prom')).subscribe((message) => {
|
|
4152
|
+
this.internalMessages$.pipe((0, operators_1.filter)((message) => message.faceMeMessageType === 'prom')).subscribe((message) => {
|
|
4148
4153
|
prom.handleMessage(message.promMsg);
|
|
4149
4154
|
});
|
|
4150
4155
|
}
|
|
@@ -13220,7 +13225,7 @@ exports.race = race;
|
|
|
13220
13225
|
/***/ ((module) => {
|
|
13221
13226
|
|
|
13222
13227
|
"use strict";
|
|
13223
|
-
module.exports = JSON.parse('{"name":"uneeq-js","version":"2.46.
|
|
13228
|
+
module.exports = JSON.parse('{"name":"uneeq-js","version":"2.46.7","description":"","main":"dist/index.js","types":"dist/src/index.d.ts","scripts":{"start":"npx webpack -w","test-local":"npx karma start karma.conf.js -logLevel=DEBUG","test":"npx karma start --browsers ChromeHeadless --single-run","test:windows":"karma start karma.conf.js","build":"webpack --config webpack.config.prod.js && webpack --config webpack.config.umd.js","lint":"npx tslint -p tsconfig.json --fix","docs":"npx typedoc --options"},"files":["dist","!dist/test"],"author":"","license":"ISC","dependencies":{"@stomp/stompjs":"^6.0.0","@uehreka/seriously":"^1.0.1","fast-text-encoding":"^1.0.0","intrinsic-scale":"^3.0.4","promjs":"^0.4.1","rxjs":"^7.8.1","rxjs-compat":"^6.6.7","simple-peer":"^9.11.1","webrtc-adapter":"^8.2.3"},"devDependencies":{"@types/dom-mediacapture-record":"^1.0.16","@types/jasmine":"^2.8.8","@types/node":"^10.9.4","fetch-mock":"7.7.3","ignore-styles":"^5.0.1","jasmine":"^5.1.0","jasmine-core":"^5.1.0","karma":"^6.4.2","karma-chrome-launcher":"^3.2.0","karma-firefox-launcher":"^2.1.2","karma-jasmine":"^5.1.0","karma-jasmine-html-reporter":"^2.1.0","karma-requirejs":"^1.1.0","karma-typescript":"^5.5.4","karma-typescript-es6-transform":"^5.5.4","nock":"^9.6.1","requirejs":"^2.3.6","ts-loader":"^9.4.4","ts-node":"^7.0.1","tslint":"^5.11.0","tslint-no-focused-test":"^0.5.0","typedoc":"^0.18.0","typescript":"^5.1.6","webpack":"^5.88.2","webpack-cli":"^5.1.4"}}');
|
|
13224
13229
|
|
|
13225
13230
|
/***/ }),
|
|
13226
13231
|
/* 242 */
|
|
@@ -13240,18 +13245,18 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
13240
13245
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
13241
13246
|
exports.API = void 0;
|
|
13242
13247
|
class API {
|
|
13243
|
-
constructor(_apiUrl, _apiKey = '', _loggedOutHandler = () => { }) {
|
|
13244
|
-
this.xAuthToken = '';
|
|
13245
|
-
this.apiUrl = _apiUrl;
|
|
13246
|
-
this.apiKey = _apiKey;
|
|
13247
|
-
this.loggedOutHandler = _loggedOutHandler;
|
|
13248
|
-
}
|
|
13249
13248
|
set callId(_callId) {
|
|
13250
13249
|
this._callId = _callId;
|
|
13251
13250
|
}
|
|
13252
13251
|
get authToken() {
|
|
13253
13252
|
return this.xAuthToken;
|
|
13254
13253
|
}
|
|
13254
|
+
constructor(_apiUrl, _apiKey = '', _loggedOutHandler = () => { }) {
|
|
13255
|
+
this.xAuthToken = '';
|
|
13256
|
+
this.apiUrl = _apiUrl;
|
|
13257
|
+
this.apiKey = _apiKey;
|
|
13258
|
+
this.loggedOutHandler = _loggedOutHandler;
|
|
13259
|
+
}
|
|
13255
13260
|
startSession(data) {
|
|
13256
13261
|
return this.postRequest('/api/v1/customers/', data, {}, { 'faceme-api-key': this.apiKey });
|
|
13257
13262
|
}
|
|
@@ -13314,9 +13319,7 @@ class API {
|
|
|
13314
13319
|
throw error;
|
|
13315
13320
|
}
|
|
13316
13321
|
if (response.status === 204) { // no content
|
|
13317
|
-
return
|
|
13318
|
-
resolve();
|
|
13319
|
-
});
|
|
13322
|
+
return Promise.resolve();
|
|
13320
13323
|
}
|
|
13321
13324
|
this.xAuthToken = response.headers.get('x-auth-token') || this.xAuthToken;
|
|
13322
13325
|
return yield response.json();
|
|
@@ -13374,6 +13377,10 @@ exports.DeviceManager = void 0;
|
|
|
13374
13377
|
const __1 = __webpack_require__(0);
|
|
13375
13378
|
const media_handler_1 = __webpack_require__(244);
|
|
13376
13379
|
class DeviceManager {
|
|
13380
|
+
set edgeNodeId(edgeNodeId) {
|
|
13381
|
+
this.mediaHandler.setEdgeNodeId(edgeNodeId);
|
|
13382
|
+
this.getDevices(true);
|
|
13383
|
+
}
|
|
13377
13384
|
constructor(options, api) {
|
|
13378
13385
|
this.options = options;
|
|
13379
13386
|
this.api = api;
|
|
@@ -13385,10 +13392,6 @@ class DeviceManager {
|
|
|
13385
13392
|
this.initMediaConstraints();
|
|
13386
13393
|
this.getDevices(false); // once the device list is updated the publish will be performed.
|
|
13387
13394
|
}
|
|
13388
|
-
set edgeNodeId(edgeNodeId) {
|
|
13389
|
-
this.mediaHandler.setEdgeNodeId(edgeNodeId);
|
|
13390
|
-
this.getDevices(true);
|
|
13391
|
-
}
|
|
13392
13395
|
enableLocalDevices(sendLocalVideo, sendLocalAudio) {
|
|
13393
13396
|
const videoOptionChanged = this.options.uneeqOptions.sendLocalVideo !== sendLocalVideo;
|
|
13394
13397
|
const audioOptionChanged = this.options.uneeqOptions.sendLocalAudio !== sendLocalAudio;
|
|
@@ -13600,7 +13603,7 @@ class MediaHandler {
|
|
|
13600
13603
|
this.localStream$ = new rxjs_1.BehaviorSubject(null);
|
|
13601
13604
|
this.publishState$ = new rxjs_1.BehaviorSubject(PublishSubscribeState_1.PublishSubscribeState.DISCONNECTED);
|
|
13602
13605
|
this.publishingStream = false;
|
|
13603
|
-
this.remoteStream$.pipe(operators_1.filter((stream) => stream !== null)).subscribe((stream) => {
|
|
13606
|
+
this.remoteStream$.pipe((0, operators_1.filter)((stream) => stream !== null)).subscribe((stream) => {
|
|
13604
13607
|
this.avatarVideoElement = this.options.digitalHumanVideoElement;
|
|
13605
13608
|
this.avatarVideoElement.srcObject = stream;
|
|
13606
13609
|
options.uneeqOptions.avatarVideoContainerElement.style.overflow = 'hidden';
|
|
@@ -13611,7 +13614,7 @@ class MediaHandler {
|
|
|
13611
13614
|
}
|
|
13612
13615
|
remoteVideoReady();
|
|
13613
13616
|
});
|
|
13614
|
-
this.localStream$.pipe(operators_1.filter((stream) => stream !== null)).subscribe((stream) => {
|
|
13617
|
+
this.localStream$.pipe((0, operators_1.filter)((stream) => stream !== null)).subscribe((stream) => {
|
|
13615
13618
|
const video = document.createElement('video');
|
|
13616
13619
|
this.localVideoElement = video;
|
|
13617
13620
|
video.srcObject = stream;
|
|
@@ -13630,13 +13633,13 @@ class MediaHandler {
|
|
|
13630
13633
|
}
|
|
13631
13634
|
});
|
|
13632
13635
|
// handle the WebRTC messages
|
|
13633
|
-
this.options.internalMessages$.pipe(operators_1.filter((message) => message.faceMeMessageType === 'AnswerMessage'))
|
|
13636
|
+
this.options.internalMessages$.pipe((0, operators_1.filter)((message) => message.faceMeMessageType === 'AnswerMessage'))
|
|
13634
13637
|
.subscribe((msg) => {
|
|
13635
13638
|
if (this.webRTC !== undefined) {
|
|
13636
13639
|
this.webRTC.handleAnswerMessage(msg);
|
|
13637
13640
|
}
|
|
13638
13641
|
});
|
|
13639
|
-
this.options.internalMessages$.pipe(operators_1.filter((message) => message.faceMeMessageType === 'IceCandidateMessage'))
|
|
13642
|
+
this.options.internalMessages$.pipe((0, operators_1.filter)((message) => message.faceMeMessageType === 'IceCandidateMessage'))
|
|
13640
13643
|
.subscribe((msg) => {
|
|
13641
13644
|
if (this.webRTC !== undefined) {
|
|
13642
13645
|
this.webRTC.handleIceCandidate(msg);
|
|
@@ -13807,7 +13810,11 @@ exports.MediaHandler = MediaHandler;
|
|
|
13807
13810
|
|
|
13808
13811
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
13809
13812
|
if (k2 === undefined) k2 = k;
|
|
13810
|
-
Object.
|
|
13813
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
13814
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
13815
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
13816
|
+
}
|
|
13817
|
+
Object.defineProperty(o, k2, desc);
|
|
13811
13818
|
}) : (function(o, m, k, k2) {
|
|
13812
13819
|
if (k2 === undefined) k2 = k;
|
|
13813
13820
|
o[k2] = m[k];
|
|
@@ -13820,7 +13827,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
13820
13827
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
13821
13828
|
if (mod && mod.__esModule) return mod;
|
|
13822
13829
|
var result = {};
|
|
13823
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
13830
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
13824
13831
|
__setModuleDefault(result, mod);
|
|
13825
13832
|
return result;
|
|
13826
13833
|
};
|
|
@@ -20783,7 +20790,7 @@ var PublishSubscribeState;
|
|
|
20783
20790
|
PublishSubscribeState["CONNECTING"] = "CONNECTING";
|
|
20784
20791
|
PublishSubscribeState["CONNECTED"] = "CONNECTED";
|
|
20785
20792
|
PublishSubscribeState["FAILED"] = "FAILED";
|
|
20786
|
-
})(PublishSubscribeState
|
|
20793
|
+
})(PublishSubscribeState || (exports.PublishSubscribeState = PublishSubscribeState = {}));
|
|
20787
20794
|
|
|
20788
20795
|
|
|
20789
20796
|
/***/ }),
|
|
@@ -20829,7 +20836,7 @@ var LogType;
|
|
|
20829
20836
|
LogType["log"] = "log";
|
|
20830
20837
|
LogType["warn"] = "warn";
|
|
20831
20838
|
LogType["error"] = "error";
|
|
20832
|
-
})(LogType
|
|
20839
|
+
})(LogType || (exports.LogType = LogType = {}));
|
|
20833
20840
|
class Logger {
|
|
20834
20841
|
constructor() {
|
|
20835
20842
|
this.enabled = false;
|
|
@@ -20887,7 +20894,9 @@ class UneeqWebRTC {
|
|
|
20887
20894
|
this.onStats = (ptr, stats) => {
|
|
20888
20895
|
this.options.userMessages.next(new __1.WebRtcStatsMessage(stats));
|
|
20889
20896
|
this.statTimer = window.setTimeout(() => {
|
|
20890
|
-
this.client.getStats
|
|
20897
|
+
if (this.client && this.client.getStats) {
|
|
20898
|
+
this.client.getStats(this.onStats);
|
|
20899
|
+
}
|
|
20891
20900
|
}, 2000);
|
|
20892
20901
|
};
|
|
20893
20902
|
this.options = Object.assign({
|
|
@@ -21059,7 +21068,9 @@ class UneeqWebRTC {
|
|
|
21059
21068
|
if (this.client._pc && this.client._pc.getStats.length !== 0) {
|
|
21060
21069
|
this.client._pc.getStats = '';
|
|
21061
21070
|
}
|
|
21062
|
-
this.client.getStats
|
|
21071
|
+
if (this.client && this.client.getStats) {
|
|
21072
|
+
this.client.getStats(this.onStats);
|
|
21073
|
+
}
|
|
21063
21074
|
}
|
|
21064
21075
|
isMessageForUs(msg) {
|
|
21065
21076
|
return msg.requestUniqueId === this.uniqueId;
|
|
@@ -29903,7 +29914,7 @@ var UneeqMessageType;
|
|
|
29903
29914
|
UneeqMessageType["DigitalHumanFailedToPlay"] = "DigitalHumanFailedToPlay";
|
|
29904
29915
|
UneeqMessageType["DigitalHumanPlayedInMutedModeSuccess"] = "DigitalHumanPlayedInMutedModeSuccess";
|
|
29905
29916
|
UneeqMessageType["DigitalHumanUnmuted"] = "DigitalHumanUnmuted";
|
|
29906
|
-
})(UneeqMessageType
|
|
29917
|
+
})(UneeqMessageType || (exports.UneeqMessageType = UneeqMessageType = {}));
|
|
29907
29918
|
/**
|
|
29908
29919
|
* Service is ready to be used
|
|
29909
29920
|
*/
|
|
@@ -30447,7 +30458,8 @@ LocaleDetector.localeMappings = {
|
|
|
30447
30458
|
vi: 'vi-VN',
|
|
30448
30459
|
uk: 'uk-UA',
|
|
30449
30460
|
hi: 'hi-IN',
|
|
30450
|
-
'zh-CN': 'cmn-Hans-CN',
|
|
30461
|
+
'zh-CN': 'cmn-Hans-CN', // Chinese (China)
|
|
30462
|
+
// Add more mappings as needed for other languages
|
|
30451
30463
|
};
|
|
30452
30464
|
LocaleDetector.sttSupportedLocales = {
|
|
30453
30465
|
"af-ZA": true,
|
|
@@ -30697,7 +30709,7 @@ class MessageHandler {
|
|
|
30697
30709
|
* @param faceMeMessageType The message type you want to handle
|
|
30698
30710
|
*/
|
|
30699
30711
|
getMessagesOfType(faceMeMessageType) {
|
|
30700
|
-
return this.internalMessages$.pipe(operators_1.filter((message) => message.faceMeMessageType === faceMeMessageType));
|
|
30712
|
+
return this.internalMessages$.pipe((0, operators_1.filter)((message) => message.faceMeMessageType === faceMeMessageType));
|
|
30701
30713
|
}
|
|
30702
30714
|
}
|
|
30703
30715
|
exports.MessageHandler = MessageHandler;
|
|
@@ -30723,12 +30735,12 @@ var PromMessageType;
|
|
|
30723
30735
|
PromMessageType[PromMessageType["QuestionMessageReceived"] = 3] = "QuestionMessageReceived";
|
|
30724
30736
|
PromMessageType[PromMessageType["AnswerMessageReceived"] = 4] = "AnswerMessageReceived";
|
|
30725
30737
|
PromMessageType[PromMessageType["SessionEnded"] = 5] = "SessionEnded";
|
|
30726
|
-
})(PromMessageType
|
|
30738
|
+
})(PromMessageType || (exports.PromMessageType = PromMessageType = {}));
|
|
30727
30739
|
class Prom {
|
|
30728
30740
|
constructor(apiUrl) {
|
|
30729
30741
|
this.apiUrl = apiUrl;
|
|
30730
30742
|
this.prom_prefix = 'client_sdk_';
|
|
30731
|
-
this.registry = promjs_1.default();
|
|
30743
|
+
this.registry = (0, promjs_1.default)();
|
|
30732
30744
|
this.messageTimings = [];
|
|
30733
30745
|
this.metricsPushedCounter = this.registry.create('counter', this.prom_prefix + 'metrics_pushed_total', 'A counter for showcase metrics pushed.');
|
|
30734
30746
|
this.sessionStartTime = this.registry.create('histogram', this.prom_prefix + 'session_start_duration_seconds', 'A histogram of session start times.', [1.0, 2.5, 4.0, 5.0, 6.0, 7.5, 8.5, 10.0, 15.0, 30.0, 60.0]);
|
|
@@ -50847,7 +50859,7 @@ var MessagingState;
|
|
|
50847
50859
|
MessagingState[MessagingState["DISCONNECTED"] = 0] = "DISCONNECTED";
|
|
50848
50860
|
MessagingState[MessagingState["CONNECTING"] = 1] = "CONNECTING";
|
|
50849
50861
|
MessagingState[MessagingState["CONNECTED"] = 2] = "CONNECTED";
|
|
50850
|
-
})(MessagingState
|
|
50862
|
+
})(MessagingState || (exports.MessagingState = MessagingState = {}));
|
|
50851
50863
|
|
|
50852
50864
|
|
|
50853
50865
|
/***/ }),
|
|
@@ -51276,7 +51288,8 @@ class VoiceInputManager {
|
|
|
51276
51288
|
}
|
|
51277
51289
|
apiStopRecording() {
|
|
51278
51290
|
this.recording = false;
|
|
51279
|
-
this.api.avatarStopRecording()
|
|
51291
|
+
this.api.avatarStopRecording();
|
|
51292
|
+
this.messages.next(new MessageTypes_1.RecordingStoppedMessage());
|
|
51280
51293
|
}
|
|
51281
51294
|
micActivityConnected(e) {
|
|
51282
51295
|
if (e) {
|
|
@@ -51284,7 +51297,7 @@ class VoiceInputManager {
|
|
|
51284
51297
|
return;
|
|
51285
51298
|
}
|
|
51286
51299
|
if (this.soundMeter) {
|
|
51287
|
-
this.soundMeter.instant$.pipe(operators_1.distinctUntilChanged()).subscribe((level) => {
|
|
51300
|
+
this.soundMeter.instant$.pipe((0, operators_1.distinctUntilChanged)()).subscribe((level) => {
|
|
51288
51301
|
this.handleVoiceActivity(level);
|
|
51289
51302
|
});
|
|
51290
51303
|
}
|
|
@@ -51415,7 +51428,7 @@ var VoiceInputMode;
|
|
|
51415
51428
|
VoiceInputMode["PUSH_TO_TALK"] = "PUSH_TO_TALK";
|
|
51416
51429
|
VoiceInputMode["VOICE_ACTIVITY"] = "VOICE_ACTIVITY";
|
|
51417
51430
|
VoiceInputMode["SPEECH_RECOGNITION"] = "SPEECH_RECOGNITION";
|
|
51418
|
-
})(VoiceInputMode
|
|
51431
|
+
})(VoiceInputMode || (exports.VoiceInputMode = VoiceInputMode = {}));
|
|
51419
51432
|
|
|
51420
51433
|
|
|
51421
51434
|
/***/ }),
|
|
@@ -51429,7 +51442,7 @@ exports.SessionType = void 0;
|
|
|
51429
51442
|
var SessionType;
|
|
51430
51443
|
(function (SessionType) {
|
|
51431
51444
|
SessionType[SessionType["WEB"] = 0] = "WEB";
|
|
51432
|
-
})(SessionType
|
|
51445
|
+
})(SessionType || (exports.SessionType = SessionType = {}));
|
|
51433
51446
|
|
|
51434
51447
|
|
|
51435
51448
|
/***/ }),
|
|
@@ -51447,7 +51460,7 @@ var SourceApp;
|
|
|
51447
51460
|
SourceApp["SPLIT_SCREEN"] = "SPLIT_SCREEN";
|
|
51448
51461
|
SourceApp["INTERACTIONS"] = "INTERACTIONS";
|
|
51449
51462
|
SourceApp["UNKNOWN"] = "UNKNOWN";
|
|
51450
|
-
})(SourceApp
|
|
51463
|
+
})(SourceApp || (exports.SourceApp = SourceApp = {}));
|
|
51451
51464
|
|
|
51452
51465
|
|
|
51453
51466
|
/***/ })
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "uneeq-js",
|
|
3
|
-
"version": "2.46.
|
|
3
|
+
"version": "2.46.7",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/src/index.d.ts",
|
|
@@ -36,18 +36,16 @@
|
|
|
36
36
|
"@types/node": "^10.9.4",
|
|
37
37
|
"fetch-mock": "7.7.3",
|
|
38
38
|
"ignore-styles": "^5.0.1",
|
|
39
|
-
"jasmine": "^
|
|
40
|
-
"jasmine-
|
|
41
|
-
"
|
|
42
|
-
"karma": "^
|
|
43
|
-
"karma-
|
|
44
|
-
"karma-
|
|
45
|
-
"karma-jasmine": "^2.0
|
|
46
|
-
"karma-jasmine-html-reporter": "^1.4.0",
|
|
39
|
+
"jasmine": "^5.1.0",
|
|
40
|
+
"jasmine-core": "^5.1.0",
|
|
41
|
+
"karma": "^6.4.2",
|
|
42
|
+
"karma-chrome-launcher": "^3.2.0",
|
|
43
|
+
"karma-firefox-launcher": "^2.1.2",
|
|
44
|
+
"karma-jasmine": "^5.1.0",
|
|
45
|
+
"karma-jasmine-html-reporter": "^2.1.0",
|
|
47
46
|
"karma-requirejs": "^1.1.0",
|
|
48
|
-
"karma-safari-launcher": "^1.0.0",
|
|
49
47
|
"karma-typescript": "^5.5.4",
|
|
50
|
-
"karma-typescript-es6-transform": "^5.
|
|
48
|
+
"karma-typescript-es6-transform": "^5.5.4",
|
|
51
49
|
"nock": "^9.6.1",
|
|
52
50
|
"requirejs": "^2.3.6",
|
|
53
51
|
"ts-loader": "^9.4.4",
|
|
@@ -55,7 +53,7 @@
|
|
|
55
53
|
"tslint": "^5.11.0",
|
|
56
54
|
"tslint-no-focused-test": "^0.5.0",
|
|
57
55
|
"typedoc": "^0.18.0",
|
|
58
|
-
"typescript": "^
|
|
56
|
+
"typescript": "^5.1.6",
|
|
59
57
|
"webpack": "^5.88.2",
|
|
60
58
|
"webpack-cli": "^5.1.4"
|
|
61
59
|
}
|
package/readme.md
CHANGED