genesys-cloud-streaming-client 17.2.1 → 17.2.2-develop.105

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.
@@ -453,7 +453,7 @@ class Client extends events_1.default {
453
453
  }
454
454
  async setupConnectionMonitoring(stanzaInstance) {
455
455
  const setupClientPinger = (message) => {
456
- const logMessage = `$(message), falling back to client-side pinging`;
456
+ const logMessage = `${message}, falling back to client-side pinging`;
457
457
  this.logger.warn(logMessage, { stanzaInstanceId: stanzaInstance.id, channelId: stanzaInstance.channelId });
458
458
  stanzaInstance.pinger = new ping_1.Ping(this, stanzaInstance);
459
459
  };
@@ -541,7 +541,7 @@ class Client extends events_1.default {
541
541
  return Client.version;
542
542
  }
543
543
  static get version() {
544
- return '17.2.1';
544
+ return '17.2.2';
545
545
  }
546
546
  }
547
547
  exports.Client = Client;
@@ -9,6 +9,7 @@ export interface Propose {
9
9
  originalRoomJid?: string;
10
10
  fromUserId?: string;
11
11
  sdpOverXmpp?: boolean;
12
+ privAnswerMode?: 'Auto';
12
13
  }
13
14
  declare module 'stanza/protocol' {
14
15
  interface IQPayload {
@@ -11,6 +11,7 @@ const proposeDefinition = {
11
11
  conversationId: jxt_1.attribute('inin-cid'),
12
12
  persistentConversationId: jxt_1.attribute('inin-persistent-cid'),
13
13
  sdpOverXmpp: jxt_1.booleanAttribute('inin-sdp-over-xmpp'),
14
+ privAnswerMode: jxt_1.attribute('inin-priv-answer-mode'),
14
15
  originalRoomJid: jxt_1.attribute('inin-ofrom'),
15
16
  autoAnswer: jxt_1.booleanAttribute('inin-autoanswer'),
16
17
  fromUserId: jxt_1.attribute('inin-user-id'),
@@ -125,6 +125,7 @@ export interface IPendingSession {
125
125
  conversationId: string;
126
126
  originalRoomJid?: string;
127
127
  sdpOverXmpp?: boolean;
128
+ privAnswerMode?: 'Auto';
128
129
  fromUserId?: string;
129
130
  roomJid?: string;
130
131
  accepted?: boolean;
@@ -473,7 +473,8 @@ class WebrtcExtension extends events_1.EventEmitter {
473
473
  sessionType,
474
474
  roomJid,
475
475
  id: sessionId,
476
- sdpOverXmpp: msg.propose.sdpOverXmpp
476
+ sdpOverXmpp: msg.propose.sdpOverXmpp,
477
+ privAnswerMode: msg.propose.privAnswerMode
477
478
  };
478
479
  this.pendingSessions[sessionId] = sessionInfo;
479
480
  }
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "developercenter-cdn/streaming-client",
3
- "version": "17.2.1",
3
+ "version": "17.2.2",
4
4
  "ecosystem": "pc",
5
5
  "team": "Client Streaming and Signaling",
6
6
  "indexFiles": [
7
7
  {
8
- "file": "v17.2.1/streaming-client.browser.ie.js"
8
+ "file": "v17.2.2/streaming-client.browser.ie.js"
9
9
  },
10
10
  {
11
- "file": "v17.2.1/streaming-client.browser.js"
11
+ "file": "v17.2.2/streaming-client.browser.js"
12
12
  },
13
13
  {
14
14
  "file": "v17/streaming-client.browser.ie.js"
@@ -17,6 +17,6 @@
17
17
  "file": "v17/streaming-client.browser.js"
18
18
  }
19
19
  ],
20
- "build": "97",
21
- "buildDate": "2024-06-11T19:42:06.929854Z"
20
+ "build": "105",
21
+ "buildDate": "2024-06-21T01:50:48.835699Z"
22
22
  }
package/dist/es/client.js CHANGED
@@ -462,7 +462,7 @@ export class Client extends EventEmitter {
462
462
  setupConnectionMonitoring(stanzaInstance) {
463
463
  return __awaiter(this, void 0, void 0, function* () {
464
464
  const setupClientPinger = (message) => {
465
- const logMessage = `$(message), falling back to client-side pinging`;
465
+ const logMessage = `${message}, falling back to client-side pinging`;
466
466
  this.logger.warn(logMessage, { stanzaInstanceId: stanzaInstance.id, channelId: stanzaInstance.channelId });
467
467
  stanzaInstance.pinger = new Ping(this, stanzaInstance);
468
468
  };
@@ -553,6 +553,6 @@ export class Client extends EventEmitter {
553
553
  return Client.version;
554
554
  }
555
555
  static get version() {
556
- return '17.2.1';
556
+ return '17.2.2';
557
557
  }
558
558
  }
@@ -20037,6 +20037,7 @@ const proposeDefinition = {
20037
20037
  conversationId: jxt.attribute('inin-cid'),
20038
20038
  persistentConversationId: jxt.attribute('inin-persistent-cid'),
20039
20039
  sdpOverXmpp: jxt.booleanAttribute('inin-sdp-over-xmpp'),
20040
+ privAnswerMode: jxt.attribute('inin-priv-answer-mode'),
20040
20041
  originalRoomJid: jxt.attribute('inin-ofrom'),
20041
20042
  autoAnswer: jxt.booleanAttribute('inin-autoanswer'),
20042
20043
  fromUserId: jxt.attribute('inin-user-id'),
@@ -31072,7 +31073,7 @@ class WebrtcExtension extends EventEmitter {
31072
31073
  msg.propose.originalRoomJid = msg.propose.originalRoomJid || roomJid;
31073
31074
  sessionInfo = Object.assign(Object.assign({}, msg.propose), { toJid: msg.to, fromJid,
31074
31075
  sessionType,
31075
- roomJid, id: sessionId, sdpOverXmpp: msg.propose.sdpOverXmpp });
31076
+ roomJid, id: sessionId, sdpOverXmpp: msg.propose.sdpOverXmpp, privAnswerMode: msg.propose.privAnswerMode });
31076
31077
  this.pendingSessions[sessionId] = sessionInfo;
31077
31078
  }
31078
31079
  if (sessionInfo.accepted) {
@@ -41942,7 +41943,7 @@ class Client extends EventEmitter {
41942
41943
  setupConnectionMonitoring(stanzaInstance) {
41943
41944
  return __awaiter$5(this, void 0, void 0, function* () {
41944
41945
  const setupClientPinger = (message) => {
41945
- const logMessage = `$(message), falling back to client-side pinging`;
41946
+ const logMessage = `${message}, falling back to client-side pinging`;
41946
41947
  this.logger.warn(logMessage, { stanzaInstanceId: stanzaInstance.id, channelId: stanzaInstance.channelId });
41947
41948
  stanzaInstance.pinger = new Ping(this, stanzaInstance);
41948
41949
  };
@@ -41953,11 +41954,11 @@ class Client extends EventEmitter {
41953
41954
  stanzaInstance.serverMonitor = new ServerMonitor(this, stanzaInstance);
41954
41955
  }
41955
41956
  catch (err) {
41956
- setupClientPinger();
41957
+ setupClientPinger('failed to establish server-side pinging');
41957
41958
  }
41958
41959
  }
41959
41960
  else {
41960
- setupClientPinger();
41961
+ setupClientPinger('client configured to not use server-side pinging');
41961
41962
  }
41962
41963
  });
41963
41964
  }
@@ -42033,7 +42034,7 @@ class Client extends EventEmitter {
42033
42034
  return Client.version;
42034
42035
  }
42035
42036
  static get version() {
42036
- return '17.2.1';
42037
+ return '17.2.2';
42037
42038
  }
42038
42039
  }
42039
42040
 
@@ -9,6 +9,7 @@ export interface Propose {
9
9
  originalRoomJid?: string;
10
10
  fromUserId?: string;
11
11
  sdpOverXmpp?: boolean;
12
+ privAnswerMode?: 'Auto';
12
13
  }
13
14
  declare module 'stanza/protocol' {
14
15
  interface IQPayload {
@@ -8,6 +8,7 @@ const proposeDefinition = {
8
8
  conversationId: attribute('inin-cid'),
9
9
  persistentConversationId: attribute('inin-persistent-cid'),
10
10
  sdpOverXmpp: booleanAttribute('inin-sdp-over-xmpp'),
11
+ privAnswerMode: attribute('inin-priv-answer-mode'),
11
12
  originalRoomJid: attribute('inin-ofrom'),
12
13
  autoAnswer: booleanAttribute('inin-autoanswer'),
13
14
  fromUserId: attribute('inin-user-id'),
@@ -125,6 +125,7 @@ export interface IPendingSession {
125
125
  conversationId: string;
126
126
  originalRoomJid?: string;
127
127
  sdpOverXmpp?: boolean;
128
+ privAnswerMode?: 'Auto';
128
129
  fromUserId?: string;
129
130
  roomJid?: string;
130
131
  accepted?: boolean;
package/dist/es/webrtc.js CHANGED
@@ -478,7 +478,7 @@ export class WebrtcExtension extends EventEmitter {
478
478
  msg.propose.originalRoomJid = msg.propose.originalRoomJid || roomJid;
479
479
  sessionInfo = Object.assign(Object.assign({}, msg.propose), { toJid: msg.to, fromJid,
480
480
  sessionType,
481
- roomJid, id: sessionId, sdpOverXmpp: msg.propose.sdpOverXmpp });
481
+ roomJid, id: sessionId, sdpOverXmpp: msg.propose.sdpOverXmpp, privAnswerMode: msg.propose.privAnswerMode });
482
482
  this.pendingSessions[sessionId] = sessionInfo;
483
483
  }
484
484
  if (sessionInfo.accepted) {
@@ -5,10 +5,16 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
7
  # [Unreleased](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v17.2.1...HEAD)
8
+ ### Fixed
9
+ * [STREAM-108](https://inindca.atlassian.net/browse/STREAM-108) Update ws to address Snyk vulnerability
10
+ ### Changed
11
+ * [no-jira] Fix string interpolation for log message and update docs for `useServerSidePings` default
8
12
 
9
13
  # [v17.2.1](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v17.2.0...v17.2.1)
10
14
  ### Changed
11
15
  * [STREAM-96](https://inindca.atlassian.net/browse/STREAM-96) - Forcefully disconnect the WebSocket when missed pings are detected to help reconnect faster
16
+ ### Added
17
+ * [STREAM-71](https://inindca.atlassian.net/browse/STREAM-71) - proxy the priv-answer-mode param on the propose to the pendingSession (used for internal purposes)
12
18
 
13
19
  # [v17.2.0](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v17.1.3...v17.2.0)
14
20
  ### Added
@@ -453,7 +453,7 @@ class Client extends events_1.default {
453
453
  }
454
454
  async setupConnectionMonitoring(stanzaInstance) {
455
455
  const setupClientPinger = (message) => {
456
- const logMessage = `$(message), falling back to client-side pinging`;
456
+ const logMessage = `${message}, falling back to client-side pinging`;
457
457
  this.logger.warn(logMessage, { stanzaInstanceId: stanzaInstance.id, channelId: stanzaInstance.channelId });
458
458
  stanzaInstance.pinger = new ping_1.Ping(this, stanzaInstance);
459
459
  };
@@ -541,7 +541,7 @@ class Client extends events_1.default {
541
541
  return Client.version;
542
542
  }
543
543
  static get version() {
544
- return '17.2.1';
544
+ return '17.2.2';
545
545
  }
546
546
  }
547
547
  exports.Client = Client;
@@ -9,6 +9,7 @@ export interface Propose {
9
9
  originalRoomJid?: string;
10
10
  fromUserId?: string;
11
11
  sdpOverXmpp?: boolean;
12
+ privAnswerMode?: 'Auto';
12
13
  }
13
14
  declare module 'stanza/protocol' {
14
15
  interface IQPayload {
@@ -11,6 +11,7 @@ const proposeDefinition = {
11
11
  conversationId: jxt_1.attribute('inin-cid'),
12
12
  persistentConversationId: jxt_1.attribute('inin-persistent-cid'),
13
13
  sdpOverXmpp: jxt_1.booleanAttribute('inin-sdp-over-xmpp'),
14
+ privAnswerMode: jxt_1.attribute('inin-priv-answer-mode'),
14
15
  originalRoomJid: jxt_1.attribute('inin-ofrom'),
15
16
  autoAnswer: jxt_1.booleanAttribute('inin-autoanswer'),
16
17
  fromUserId: jxt_1.attribute('inin-user-id'),
@@ -125,6 +125,7 @@ export interface IPendingSession {
125
125
  conversationId: string;
126
126
  originalRoomJid?: string;
127
127
  sdpOverXmpp?: boolean;
128
+ privAnswerMode?: 'Auto';
128
129
  fromUserId?: string;
129
130
  roomJid?: string;
130
131
  accepted?: boolean;
@@ -473,7 +473,8 @@ class WebrtcExtension extends events_1.EventEmitter {
473
473
  sessionType,
474
474
  roomJid,
475
475
  id: sessionId,
476
- sdpOverXmpp: msg.propose.sdpOverXmpp
476
+ sdpOverXmpp: msg.propose.sdpOverXmpp,
477
+ privAnswerMode: msg.propose.privAnswerMode
477
478
  };
478
479
  this.pendingSessions[sessionId] = sessionInfo;
479
480
  }