@stream-io/video-client 1.27.5 → 1.28.0

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.cjs.js CHANGED
@@ -61,6 +61,20 @@ const FrameRecordingSettingsResponseModeEnum = {
61
61
  DISABLED: 'disabled',
62
62
  AUTO_ON: 'auto-on',
63
63
  };
64
+ /**
65
+ * @export
66
+ */
67
+ const IngressAudioEncodingOptionsRequestChannelsEnum = {
68
+ NUMBER_1: 1,
69
+ NUMBER_2: 2,
70
+ };
71
+ /**
72
+ * @export
73
+ */
74
+ const IngressVideoLayerRequestCodecEnum = {
75
+ H264: 'h264',
76
+ VP8: 'vp8',
77
+ };
64
78
  /**
65
79
  * @export
66
80
  */
@@ -93,6 +107,7 @@ const OwnCapability = {
93
107
  JOIN_BACKSTAGE: 'join-backstage',
94
108
  JOIN_CALL: 'join-call',
95
109
  JOIN_ENDED_CALL: 'join-ended-call',
110
+ KICK_USER: 'kick-user',
96
111
  MUTE_USERS: 'mute-users',
97
112
  PIN_FOR_EVERYONE: 'pin-for-everyone',
98
113
  READ_CALL: 'read-call',
@@ -5289,6 +5304,7 @@ class CallState {
5289
5304
  this.eventHandlers = {
5290
5305
  // these events are not updating the call state:
5291
5306
  'call.frame_recording_ready': undefined,
5307
+ 'call.kicked_user': undefined,
5292
5308
  'call.moderation_blur': undefined,
5293
5309
  'call.moderation_warning': undefined,
5294
5310
  'call.permission_request': undefined,
@@ -5298,6 +5314,7 @@ class CallState {
5298
5314
  'call.rtmp_broadcast_stopped': undefined,
5299
5315
  'call.stats_report_ready': undefined,
5300
5316
  'call.transcription_ready': undefined,
5317
+ 'call.user_feedback_submitted': undefined,
5301
5318
  'call.user_muted': undefined,
5302
5319
  'connection.error': undefined,
5303
5320
  'connection.ok': undefined,
@@ -5638,7 +5655,7 @@ const getSdkVersion = (sdk) => {
5638
5655
  return sdk ? `${sdk.major}.${sdk.minor}.${sdk.patch}` : '0.0.0-development';
5639
5656
  };
5640
5657
 
5641
- const version = "1.27.5";
5658
+ const version = "1.28.0";
5642
5659
  const [major, minor, patch] = version.split('.');
5643
5660
  let sdkInfo = {
5644
5661
  type: SdkType.PLAIN_JAVASCRIPT,
@@ -12789,6 +12806,13 @@ class Call {
12789
12806
  user_id: userId,
12790
12807
  });
12791
12808
  };
12809
+ /**
12810
+ * Kicks the user with the given `userId`.
12811
+ * @param data the kick request.
12812
+ */
12813
+ this.kickUser = async (data) => {
12814
+ return this.streamClient.post(`${this.streamClientBasePath}/kick`, data);
12815
+ };
12792
12816
  /**
12793
12817
  * Mutes the current user.
12794
12818
  *
@@ -14538,7 +14562,7 @@ class StreamClient {
14538
14562
  this.getUserAgent = () => {
14539
14563
  if (!this.cachedUserAgent) {
14540
14564
  const { clientAppIdentifier = {} } = this.options;
14541
- const { sdkName = 'js', sdkVersion = "1.27.5", ...extras } = clientAppIdentifier;
14565
+ const { sdkName = 'js', sdkVersion = "1.28.0", ...extras } = clientAppIdentifier;
14542
14566
  this.cachedUserAgent = [
14543
14567
  `stream-video-${sdkName}-v${sdkVersion}`,
14544
14568
  ...Object.entries(extras).map(([key, value]) => `${key}=${value}`),
@@ -15122,6 +15146,8 @@ exports.ErrorFromResponse = ErrorFromResponse;
15122
15146
  exports.FrameRecordingSettingsRequestModeEnum = FrameRecordingSettingsRequestModeEnum;
15123
15147
  exports.FrameRecordingSettingsRequestQualityEnum = FrameRecordingSettingsRequestQualityEnum;
15124
15148
  exports.FrameRecordingSettingsResponseModeEnum = FrameRecordingSettingsResponseModeEnum;
15149
+ exports.IngressAudioEncodingOptionsRequestChannelsEnum = IngressAudioEncodingOptionsRequestChannelsEnum;
15150
+ exports.IngressVideoLayerRequestCodecEnum = IngressVideoLayerRequestCodecEnum;
15125
15151
  exports.InputMediaDeviceManager = InputMediaDeviceManager;
15126
15152
  exports.InputMediaDeviceManagerState = InputMediaDeviceManagerState;
15127
15153
  exports.LayoutSettingsRequestNameEnum = LayoutSettingsRequestNameEnum;