@stream-io/video-client 1.0.6 → 1.0.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/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ### [1.0.7](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.0.6...@stream-io/video-client-1.0.7) (2024-05-21)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * align with the latest openapi ([#1343](https://github.com/GetStream/stream-video-js/issues/1343)) ([2cb71cc](https://github.com/GetStream/stream-video-js/commit/2cb71cc599f46e248a4af9b4ea79f5938d7c508c))
11
+
5
12
  ### [1.0.6](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.0.5...@stream-io/video-client-1.0.6) (2024-05-16)
6
13
 
7
14
 
@@ -13,17 +13,49 @@ import { fromByteArray } from 'base64-js';
13
13
  /**
14
14
  * @export
15
15
  */
16
- const AudioSettingsDefaultDeviceEnum = {
16
+ const AudioSettingsRequestDefaultDeviceEnum = {
17
17
  SPEAKER: 'speaker',
18
18
  EARPIECE: 'earpiece',
19
19
  };
20
20
  /**
21
21
  * @export
22
22
  */
23
- const AudioSettingsRequestDefaultDeviceEnum = {
23
+ const AudioSettingsResponseDefaultDeviceEnum = {
24
24
  SPEAKER: 'speaker',
25
25
  EARPIECE: 'earpiece',
26
26
  };
27
+ /**
28
+ * @export
29
+ */
30
+ const BlockListOptionsBehaviorEnum = {
31
+ FLAG: 'flag',
32
+ BLOCK: 'block',
33
+ SHADOW_BLOCK: 'shadow_block',
34
+ };
35
+ /**
36
+ * @export
37
+ */
38
+ const ChannelConfigWithInfoAutomodEnum = {
39
+ DISABLED: 'disabled',
40
+ SIMPLE: 'simple',
41
+ AI: 'AI',
42
+ };
43
+ /**
44
+ * @export
45
+ */
46
+ const ChannelConfigWithInfoAutomodBehaviorEnum = {
47
+ FLAG: 'flag',
48
+ BLOCK: 'block',
49
+ SHADOW_BLOCK: 'shadow_block',
50
+ };
51
+ /**
52
+ * @export
53
+ */
54
+ const ChannelConfigWithInfoBlocklistBehaviorEnum = {
55
+ FLAG: 'flag',
56
+ BLOCK: 'block',
57
+ SHADOW_BLOCK: 'shadow_block',
58
+ };
27
59
  /**
28
60
  * @export
29
61
  */
@@ -41,14 +73,6 @@ const NoiseCancellationSettingsModeEnum = {
41
73
  DISABLED: 'disabled',
42
74
  AUTO_ON: 'auto-on',
43
75
  };
44
- /**
45
- * @export
46
- */
47
- const NoiseCancellationSettingsRequestModeEnum = {
48
- AVAILABLE: 'available',
49
- DISABLED: 'disabled',
50
- AUTO_ON: 'auto-on',
51
- };
52
76
  /**
53
77
  * All possibility of string to use
54
78
  * @export
@@ -101,7 +125,7 @@ const RecordSettingsRequestQualityEnum = {
101
125
  /**
102
126
  * @export
103
127
  */
104
- const TranscriptionSettingsModeEnum = {
128
+ const TranscriptionSettingsRequestModeEnum = {
105
129
  AVAILABLE: 'available',
106
130
  DISABLED: 'disabled',
107
131
  AUTO_ON: 'auto-on',
@@ -109,7 +133,7 @@ const TranscriptionSettingsModeEnum = {
109
133
  /**
110
134
  * @export
111
135
  */
112
- const TranscriptionSettingsRequestModeEnum = {
136
+ const TranscriptionSettingsResponseModeEnum = {
113
137
  AVAILABLE: 'available',
114
138
  DISABLED: 'disabled',
115
139
  AUTO_ON: 'auto-on',
@@ -117,7 +141,7 @@ const TranscriptionSettingsRequestModeEnum = {
117
141
  /**
118
142
  * @export
119
143
  */
120
- const VideoSettingsCameraFacingEnum = {
144
+ const VideoSettingsRequestCameraFacingEnum = {
121
145
  FRONT: 'front',
122
146
  BACK: 'back',
123
147
  EXTERNAL: 'external',
@@ -125,7 +149,7 @@ const VideoSettingsCameraFacingEnum = {
125
149
  /**
126
150
  * @export
127
151
  */
128
- const VideoSettingsRequestCameraFacingEnum = {
152
+ const VideoSettingsResponseCameraFacingEnum = {
129
153
  FRONT: 'front',
130
154
  BACK: 'back',
131
155
  EXTERNAL: 'external',
@@ -7579,6 +7603,14 @@ class CallState {
7579
7603
  'connection.error': undefined,
7580
7604
  'connection.ok': undefined,
7581
7605
  'health.check': undefined,
7606
+ 'user.banned': undefined,
7607
+ 'user.deactivated': undefined,
7608
+ 'user.deleted': undefined,
7609
+ 'user.muted': undefined,
7610
+ 'user.presence.changed': undefined,
7611
+ 'user.reactivated': undefined,
7612
+ 'user.unbanned': undefined,
7613
+ 'user.updated': undefined,
7582
7614
  custom: undefined,
7583
7615
  // events that update call state:
7584
7616
  'call.accepted': (e) => this.updateFromCallResponse(e.call),
@@ -8204,7 +8236,8 @@ class Publisher {
8204
8236
  };
8205
8237
  if (!transceiver) {
8206
8238
  const { settings } = this.state;
8207
- const targetResolution = settings?.video.target_resolution;
8239
+ const targetResolution = settings?.video
8240
+ .target_resolution;
8208
8241
  const screenShareBitrate = settings?.screensharing.target_resolution?.bitrate;
8209
8242
  const videoEncodings = trackType === TrackType.VIDEO
8210
8243
  ? findOptimalVideoLayers(track, targetResolution)
@@ -8566,7 +8599,8 @@ class Publisher {
8566
8599
  this.getCurrentTrackInfos = (sdp) => {
8567
8600
  sdp = sdp || this.pc.localDescription?.sdp;
8568
8601
  const { settings } = this.state;
8569
- const targetResolution = settings?.video.target_resolution;
8602
+ const targetResolution = settings?.video
8603
+ .target_resolution;
8570
8604
  return this.pc
8571
8605
  .getTransceivers()
8572
8606
  .filter((t) => t.direction === 'sendonly' && t.sender.track)
@@ -15229,7 +15263,7 @@ class StreamClient {
15229
15263
  });
15230
15264
  };
15231
15265
  this.getUserAgent = () => {
15232
- const version = "1.0.6" ;
15266
+ const version = "1.0.7" ;
15233
15267
  return (this.userAgent ||
15234
15268
  `stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${version}`);
15235
15269
  };
@@ -15705,5 +15739,5 @@ class StreamVideoClient {
15705
15739
  }
15706
15740
  }
15707
15741
 
15708
- export { AudioSettingsDefaultDeviceEnum, AudioSettingsRequestDefaultDeviceEnum, browsers as Browsers, Call, CallState, CallType, CallTypes, CallingState, CameraManager, CameraManagerState, CreateDeviceRequestPushProviderEnum, DebounceType, DynascaleManager, ErrorFromResponse, InputMediaDeviceManager, InputMediaDeviceManagerState, MicrophoneManager, MicrophoneManagerState, NoiseCancellationSettingsModeEnum, NoiseCancellationSettingsRequestModeEnum, OwnCapability, RecordSettingsRequestModeEnum, RecordSettingsRequestQualityEnum, rxUtils as RxUtils, ScreenShareManager, ScreenShareState, events as SfuEvents, models as SfuModels, SpeakerManager, SpeakerState, StreamSfuClient, StreamVideoClient, StreamVideoReadOnlyStateStore, StreamVideoWriteableStateStore, TranscriptionSettingsModeEnum, TranscriptionSettingsRequestModeEnum, VideoSettingsCameraFacingEnum, VideoSettingsRequestCameraFacingEnum, ViewportTracker, VisibilityState, checkIfAudioOutputChangeSupported, combineComparators, conditional, createSoundDetector, defaultSortPreset, descending, deviceIds$, disposeOfMediaStream, dominantSpeaker, getAudioDevices, getAudioOutputDevices, getAudioStream, getClientDetails, getDeviceInfo, getLogger, getOSInfo, getScreenShareStream, getSdkInfo, getVideoDevices, getVideoStream, getWebRTCInfo, hasAudio, hasScreenShare, hasScreenShareAudio, hasVideo, isPinned, livestreamOrAudioRoomSortPreset, logLevels, logToConsole, name, noopComparator, paginatedLayoutSortPreset, pinned, publishingAudio, publishingVideo, reactionType, role, screenSharing, setDeviceInfo, setLogLevel, setLogger, setOSInfo, setSdkInfo, setWebRTCInfo, speakerLayoutSortPreset, speaking };
15742
+ export { AudioSettingsRequestDefaultDeviceEnum, AudioSettingsResponseDefaultDeviceEnum, BlockListOptionsBehaviorEnum, browsers as Browsers, Call, CallState, CallType, CallTypes, CallingState, CameraManager, CameraManagerState, ChannelConfigWithInfoAutomodBehaviorEnum, ChannelConfigWithInfoAutomodEnum, ChannelConfigWithInfoBlocklistBehaviorEnum, CreateDeviceRequestPushProviderEnum, DebounceType, DynascaleManager, ErrorFromResponse, InputMediaDeviceManager, InputMediaDeviceManagerState, MicrophoneManager, MicrophoneManagerState, NoiseCancellationSettingsModeEnum, OwnCapability, RecordSettingsRequestModeEnum, RecordSettingsRequestQualityEnum, rxUtils as RxUtils, ScreenShareManager, ScreenShareState, events as SfuEvents, models as SfuModels, SpeakerManager, SpeakerState, StreamSfuClient, StreamVideoClient, StreamVideoReadOnlyStateStore, StreamVideoWriteableStateStore, TranscriptionSettingsRequestModeEnum, TranscriptionSettingsResponseModeEnum, VideoSettingsRequestCameraFacingEnum, VideoSettingsResponseCameraFacingEnum, ViewportTracker, VisibilityState, checkIfAudioOutputChangeSupported, combineComparators, conditional, createSoundDetector, defaultSortPreset, descending, deviceIds$, disposeOfMediaStream, dominantSpeaker, getAudioDevices, getAudioOutputDevices, getAudioStream, getClientDetails, getDeviceInfo, getLogger, getOSInfo, getScreenShareStream, getSdkInfo, getVideoDevices, getVideoStream, getWebRTCInfo, hasAudio, hasScreenShare, hasScreenShareAudio, hasVideo, isPinned, livestreamOrAudioRoomSortPreset, logLevels, logToConsole, name, noopComparator, paginatedLayoutSortPreset, pinned, publishingAudio, publishingVideo, reactionType, role, screenSharing, setDeviceInfo, setLogLevel, setLogger, setOSInfo, setSdkInfo, setWebRTCInfo, speakerLayoutSortPreset, speaking };
15709
15743
  //# sourceMappingURL=index.browser.es.js.map