genesys-cloud-streaming-client 19.6.1-develop.17 → 19.7.0-STREAM-1604.1

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.
@@ -19,7 +19,6 @@ const exponential_backoff_1 = require("exponential-backoff");
19
19
  const sasl_error_1 = tslib_1.__importDefault(require("./types/sasl-error"));
20
20
  const timeout_error_1 = require("./types/timeout-error");
21
21
  const messenger_1 = require("./messenger");
22
- const uuid_1 = require("uuid");
23
22
  const connection_transfer_1 = require("./connection-transfer");
24
23
  const user_cancelled_error_1 = tslib_1.__importDefault(require("./types/user-cancelled-error"));
25
24
  const extensions = {
@@ -63,6 +62,7 @@ class Client extends events_1.default {
63
62
  appName: options.appName,
64
63
  appVersion: options.appVersion,
65
64
  appId: options.appId,
65
+ logLevel: options.logLevel,
66
66
  customHeaders: options.customHeaders
67
67
  };
68
68
  this.backgroundAssistantMode = this.checkIsBackgroundAssistant();
@@ -628,7 +628,7 @@ class Client extends events_1.default {
628
628
  });
629
629
  }
630
630
  // If no jidResource is provided, generate a random one to maintain ourselves.
631
- this.jidResource = this.config.jidResource || (0, uuid_1.v4)();
631
+ this.jidResource = this.config.jidResource || globalThis.crypto.randomUUID();
632
632
  const channelRequestOpts = {
633
633
  method: 'post',
634
634
  host: this.config.apiHost,
@@ -670,7 +670,7 @@ class Client extends events_1.default {
670
670
  return Client.version;
671
671
  }
672
672
  static get version() {
673
- return '19.6.1';
673
+ return '19.7.0';
674
674
  }
675
675
  }
676
676
  exports.Client = Client;
@@ -11,7 +11,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
11
11
  exports.ConnectionManager = void 0;
12
12
  const tslib_1 = require("tslib");
13
13
  const stanza_1 = require("stanza");
14
- const uuid_1 = require("uuid");
15
14
  const sasl_error_1 = tslib_1.__importDefault(require("./types/sasl-error"));
16
15
  const utils_1 = require("./utils");
17
16
  class ConnectionManager {
@@ -30,7 +29,7 @@ class ConnectionManager {
30
29
  stanza.sasl.mechanisms.find(mech => mech.name === 'ANONYMOUS').priority = 0;
31
30
  stanza.sasl.mechanisms = stanza.sasl.mechanisms.sort((a, b) => b.priority - a.priority);
32
31
  // we are going to give the stanza instance an id for tracking and logging purposes
33
- stanza.id = (0, uuid_1.v4)();
32
+ stanza.id = globalThis.crypto.randomUUID();
34
33
  const channelId = stanza.channelId = this.config.channelId;
35
34
  let boundCheckForErrorStanza;
36
35
  let boundSessionStarted;
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MessengerExtension = void 0;
4
4
  const strict_event_emitter_1 = require("strict-event-emitter");
5
5
  const JID_1 = require("stanza/JID");
6
- const uuid_1 = require("uuid");
7
6
  class MessengerExtension extends strict_event_emitter_1.Emitter {
8
7
  constructor(client, stanzaInstance) {
9
8
  super();
@@ -32,7 +31,7 @@ class MessengerExtension extends strict_event_emitter_1.Emitter {
32
31
  * @returns Promise<messageId>
33
32
  */
34
33
  async broadcastMessage(msg) {
35
- const id = (0, uuid_1.v4)();
34
+ const id = globalThis.crypto.randomUUID();
36
35
  msg.id = id;
37
36
  msg.from = this.stanzaInstance.jid;
38
37
  if (!msg.to) {
@@ -4,7 +4,6 @@ exports.GenesysCloudMediaSession = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const webrtc_stats_gatherer_1 = tslib_1.__importDefault(require("webrtc-stats-gatherer"));
6
6
  const events_1 = require("events");
7
- const uuid_1 = require("uuid");
8
7
  const utils_1 = require("../utils");
9
8
  const interfaces_1 = require("./interfaces");
10
9
  const loggingOverrides = {
@@ -92,7 +91,7 @@ class GenesysCloudMediaSession {
92
91
  this.logger[level](message, logDetails, options);
93
92
  }
94
93
  async sendGenesysWebrtc(info) {
95
- info.id = info.id || (0, uuid_1.v4)();
94
+ info.id = info.id || globalThis.crypto.randomUUID();
96
95
  info.jsonrpc = info.jsonrpc || '2.0';
97
96
  const iq = {
98
97
  type: 'set',
package/dist/cjs/utils.js CHANGED
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.iceIsDifferent = exports.getIcePwdFromSdp = exports.getUfragFromSdp = exports.calculatePayloadSize = exports.parseJwt = exports.retryPromise = exports.isVideoJid = exports.isSoftphoneJid = exports.isLiveScreenMonitoringJid = exports.isScreenRecordingJid = exports.isAcdJid = exports.splitIntoIndividualTopics = exports.delay = exports.timeoutPromise = exports.StreamingSubscriptionError = exports.StreamingClientError = void 0;
4
- const uuid_1 = require("uuid");
5
4
  const timeout_error_1 = require("./types/timeout-error");
6
5
  const interfaces_1 = require("./types/interfaces");
7
6
  class StreamingClientError extends Error {
@@ -140,7 +139,7 @@ retryFn, retryInterval = 15000, logger = console) {
140
139
  promise,
141
140
  cancel,
142
141
  complete,
143
- _id: (0, uuid_1.v4)(),
142
+ _id: globalThis.crypto.randomUUID(),
144
143
  hasCompleted: () => _hasCompleted
145
144
  };
146
145
  }
@@ -6,7 +6,6 @@ const events_1 = require("events");
6
6
  const JID_1 = require("stanza/JID");
7
7
  const lru_cache_1 = require("lru-cache");
8
8
  const Constants_1 = require("stanza/Constants");
9
- const uuid_1 = require("uuid");
10
9
  const lodash_throttle_1 = tslib_1.__importDefault(require("lodash.throttle"));
11
10
  const browserama_1 = require("browserama");
12
11
  const webrtc_signaling_1 = require("./stanza-definitions/webrtc-signaling");
@@ -576,7 +575,7 @@ class WebrtcExtension extends events_1.EventEmitter {
576
575
  const session = {
577
576
  to: opts.jid,
578
577
  propose: {
579
- id: (0, uuid_1.v4)(),
578
+ id: globalThis.crypto.randomUUID(),
580
579
  descriptions: []
581
580
  }
582
581
  };
@@ -608,7 +607,7 @@ class WebrtcExtension extends events_1.EventEmitter {
608
607
  const mediaPresence = {
609
608
  type: 'upgradeMedia',
610
609
  to: opts.jid,
611
- id: (0, uuid_1.v4)(),
610
+ id: globalThis.crypto.randomUUID(),
612
611
  from: this.jid,
613
612
  media: {
614
613
  conversationId: opts.conversationId,
@@ -1,13 +1,13 @@
1
1
  {
2
- "version": "19.6.1-develop",
3
- "build": "17",
4
- "buildDate": "2026-04-29T14:55:47.312Z",
2
+ "version": "STREAM-1604",
3
+ "build": "1",
4
+ "buildDate": "2026-05-22T12:26:13.371Z",
5
5
  "indexFiles": [
6
6
  {
7
- "file": "v19.6.1/streaming-client.browser.js"
7
+ "file": "v19.7.0/streaming-client.browser.js"
8
8
  },
9
9
  {
10
- "file": "v19.6.1/streaming-client.browser.js.LICENSE.txt"
10
+ "file": "v19.7.0/streaming-client.browser.js.LICENSE.txt"
11
11
  },
12
12
  {
13
13
  "file": "v19/streaming-client.browser.js"
package/dist/es/client.js CHANGED
@@ -17,7 +17,6 @@ import { backOff } from 'exponential-backoff';
17
17
  import SaslError from './types/sasl-error';
18
18
  import { TimeoutError } from './types/timeout-error';
19
19
  import { MessengerExtension } from './messenger';
20
- import { v4 } from 'uuid';
21
20
  import { ConnectionTransfer } from './connection-transfer';
22
21
  import UserCancelledError from './types/user-cancelled-error';
23
22
  const extensions = {
@@ -61,6 +60,7 @@ export class Client extends EventEmitter {
61
60
  appName: options.appName,
62
61
  appVersion: options.appVersion,
63
62
  appId: options.appId,
63
+ logLevel: options.logLevel,
64
64
  customHeaders: options.customHeaders
65
65
  };
66
66
  this.backgroundAssistantMode = this.checkIsBackgroundAssistant();
@@ -641,7 +641,7 @@ export class Client extends EventEmitter {
641
641
  });
642
642
  }
643
643
  // If no jidResource is provided, generate a random one to maintain ourselves.
644
- this.jidResource = this.config.jidResource || v4();
644
+ this.jidResource = this.config.jidResource || globalThis.crypto.randomUUID();
645
645
  const channelRequestOpts = {
646
646
  method: 'post',
647
647
  host: this.config.apiHost,
@@ -684,6 +684,6 @@ export class Client extends EventEmitter {
684
684
  return Client.version;
685
685
  }
686
686
  static get version() {
687
- return '19.6.1';
687
+ return '19.7.0';
688
688
  }
689
689
  }
@@ -8,7 +8,6 @@
8
8
  // reason, we want a vanilla instance of stanza every time we call `connect` so wires don't get crossed.
9
9
  import { __awaiter } from "tslib";
10
10
  import { createClient } from 'stanza';
11
- import { v4 } from 'uuid';
12
11
  import SaslError from './types/sasl-error';
13
12
  import { parseJwt, timeoutPromise } from './utils';
14
13
  export class ConnectionManager {
@@ -28,7 +27,7 @@ export class ConnectionManager {
28
27
  stanza.sasl.mechanisms.find(mech => mech.name === 'ANONYMOUS').priority = 0;
29
28
  stanza.sasl.mechanisms = stanza.sasl.mechanisms.sort((a, b) => b.priority - a.priority);
30
29
  // we are going to give the stanza instance an id for tracking and logging purposes
31
- stanza.id = v4();
30
+ stanza.id = globalThis.crypto.randomUUID();
32
31
  const channelId = stanza.channelId = this.config.channelId;
33
32
  let boundCheckForErrorStanza;
34
33
  let boundSessionStarted;