@stream-io/video-client 0.0.31 → 0.0.33

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,15 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ### [0.0.33](https://github.com/GetStream/stream-video-js/compare/client0.0.32...client0.0.33) (2023-07-04)
6
+
7
+ ### [0.0.32](https://github.com/GetStream/stream-video-js/compare/client0.0.31...client0.0.32) (2023-07-04)
8
+
9
+
10
+ ### Features
11
+
12
+ * stop tracking permission requests in Call state ([#744](https://github.com/GetStream/stream-video-js/issues/744)) ([b330df3](https://github.com/GetStream/stream-video-js/commit/b330df39d9dce34d9e5a1a7ec58acb0a905ee07b))
13
+
5
14
  ### [0.0.31](https://github.com/GetStream/stream-video-js/compare/client0.0.30...client0.0.31) (2023-07-03)
6
15
 
7
16
 
@@ -832,6 +832,10 @@ var ErrorCode;
832
832
  * @generated from protobuf enum value: ERROR_CODE_PUBLISH_TRACK_VIDEO_LAYER_NOT_FOUND = 103;
833
833
  */
834
834
  ErrorCode[ErrorCode["PUBLISH_TRACK_VIDEO_LAYER_NOT_FOUND"] = 103] = "PUBLISH_TRACK_VIDEO_LAYER_NOT_FOUND";
835
+ /**
836
+ * @generated from protobuf enum value: ERROR_CODE_LIVE_ENDED = 104;
837
+ */
838
+ ErrorCode[ErrorCode["LIVE_ENDED"] = 104] = "LIVE_ENDED";
835
839
  /**
836
840
  * @generated from protobuf enum value: ERROR_CODE_PARTICIPANT_NOT_FOUND = 200;
837
841
  */
@@ -844,14 +848,6 @@ var ErrorCode;
844
848
  * @generated from protobuf enum value: ERROR_CODE_PARTICIPANT_MIGRATION_FAILED = 202;
845
849
  */
846
850
  ErrorCode[ErrorCode["PARTICIPANT_MIGRATION_FAILED"] = 202] = "PARTICIPANT_MIGRATION_FAILED";
847
- /**
848
- * @generated from protobuf enum value: ERROR_CODE_PARTICIPANT_MIGRATING = 203;
849
- */
850
- ErrorCode[ErrorCode["PARTICIPANT_MIGRATING"] = 203] = "PARTICIPANT_MIGRATING";
851
- /**
852
- * @generated from protobuf enum value: ERROR_CODE_PARTICIPANT_RECONNECT_FAILED = 204;
853
- */
854
- ErrorCode[ErrorCode["PARTICIPANT_RECONNECT_FAILED"] = 204] = "PARTICIPANT_RECONNECT_FAILED";
855
851
  /**
856
852
  * @generated from protobuf enum value: ERROR_CODE_CALL_NOT_FOUND = 300;
857
853
  */
@@ -4191,11 +4187,10 @@ class JoinResponse$Type extends MessageType {
4191
4187
  constructor() {
4192
4188
  super('stream.video.sfu.event.JoinResponse', [
4193
4189
  { no: 1, name: 'call_state', kind: 'message', T: () => CallState$1 },
4194
- { no: 2, name: 'ice_restart', kind: 'scalar', T: 8 /*ScalarType.BOOL*/ },
4195
4190
  ]);
4196
4191
  }
4197
4192
  create(value) {
4198
- const message = { iceRestart: false };
4193
+ const message = {};
4199
4194
  globalThis.Object.defineProperty(message, MESSAGE_TYPE, {
4200
4195
  enumerable: false,
4201
4196
  value: this,
@@ -4212,9 +4207,6 @@ class JoinResponse$Type extends MessageType {
4212
4207
  case /* stream.video.sfu.models.CallState call_state */ 1:
4213
4208
  message.callState = CallState$1.internalBinaryRead(reader, reader.uint32(), options, message.callState);
4214
4209
  break;
4215
- case /* bool ice_restart */ 2:
4216
- message.iceRestart = reader.bool();
4217
- break;
4218
4210
  default:
4219
4211
  let u = options.readUnknownField;
4220
4212
  if (u === 'throw')
@@ -4230,9 +4222,6 @@ class JoinResponse$Type extends MessageType {
4230
4222
  /* stream.video.sfu.models.CallState call_state = 1; */
4231
4223
  if (message.callState)
4232
4224
  CallState$1.internalBinaryWrite(message.callState, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
4233
- /* bool ice_restart = 2; */
4234
- if (message.iceRestart !== false)
4235
- writer.tag(2, WireType.Varint).bool(message.iceRestart);
4236
4225
  let u = options.writeUnknownFields;
4237
4226
  if (u !== false)
4238
4227
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -7554,13 +7543,6 @@ class CallState {
7554
7543
  * Emits a list of details about recordings performed for the current call.
7555
7544
  */
7556
7545
  this.callRecordingListSubject = new BehaviorSubject([]);
7557
- /**
7558
- * Emits the latest call permission request sent by any participant of the
7559
- * current call.
7560
- *
7561
- * @internal
7562
- */
7563
- this.callPermissionRequestSubject = new BehaviorSubject(undefined);
7564
7546
  /**
7565
7547
  * A list of comparators that are used to sort the participants.
7566
7548
  *
@@ -7652,15 +7634,6 @@ class CallState {
7652
7634
  this.setCallRecordingsList = (recordings) => {
7653
7635
  return this.setCurrentValue(this.callRecordingListSubject, recordings);
7654
7636
  };
7655
- /**
7656
- * Sets the last call permission request.
7657
- *
7658
- * @internal
7659
- * @param request the last call permission request.
7660
- */
7661
- this.setCallPermissionRequest = (request) => {
7662
- return this.setCurrentValue(this.callPermissionRequestSubject, request);
7663
- };
7664
7637
  /**
7665
7638
  * Sets the call stats report.
7666
7639
  *
@@ -7792,8 +7765,6 @@ class CallState {
7792
7765
  this.anonymousParticipantCount$ =
7793
7766
  this.anonymousParticipantCountSubject.asObservable();
7794
7767
  this.callStatsReport$ = this.callStatsReportSubject.asObservable();
7795
- this.callPermissionRequest$ =
7796
- this.callPermissionRequestSubject.asObservable();
7797
7768
  this.callRecordingList$ = this.callRecordingListSubject.asObservable();
7798
7769
  this.metadata$ = this.metadataSubject.asObservable();
7799
7770
  this.members$ = this.membersSubject.asObservable();
@@ -7869,12 +7840,6 @@ class CallState {
7869
7840
  get callRecordingsList() {
7870
7841
  return this.getCurrentValue(this.callRecordingList$);
7871
7842
  }
7872
- /**
7873
- * The last call permission request.
7874
- */
7875
- get callPermissionRequest() {
7876
- return this.getCurrentValue(this.callPermissionRequest$);
7877
- }
7878
7843
  /**
7879
7844
  * The call stats report.
7880
7845
  */
@@ -7990,20 +7955,6 @@ const watchCallUpdated = (state) => {
7990
7955
  };
7991
7956
  };
7992
7957
 
7993
- /**
7994
- * Event handler that watches for `call.permission_request` events
7995
- * Updates the state store using the `callPermissionRequest$` stream
7996
- */
7997
- const watchCallPermissionRequest = (state) => {
7998
- return function onCallPermissionRequest(event) {
7999
- if (event.type !== 'call.permission_request')
8000
- return;
8001
- const { localParticipant } = state;
8002
- if (event.user.id !== (localParticipant === null || localParticipant === void 0 ? void 0 : localParticipant.userId)) {
8003
- state.setCallPermissionRequest(event);
8004
- }
8005
- };
8006
- };
8007
7958
  /**
8008
7959
  * Event handler that watches for `call.permissions_updated` events
8009
7960
  */
@@ -8466,7 +8417,6 @@ const registerEventHandlers = (call, state, dispatcher) => {
8466
8417
  'call.member_removed': watchCallMemberRemoved(state),
8467
8418
  'call.member_updated': watchCallMemberUpdated(state),
8468
8419
  'call.member_updated_permission': watchCallMemberUpdatedPermission(state),
8469
- 'call.permission_request': watchCallPermissionRequest(state),
8470
8420
  'call.permissions_updated': watchCallPermissionsUpdated(state),
8471
8421
  'call.reaction_new': watchNewReactions(state),
8472
8422
  'call.recording_started': watchCallRecordingStarted(state),
@@ -11878,7 +11828,7 @@ class StreamClient {
11878
11828
  }
11879
11829
  getUserAgent() {
11880
11830
  return (this.userAgent ||
11881
- `stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.30"}`);
11831
+ `stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.32"}`);
11882
11832
  }
11883
11833
  setUserAgent(userAgent) {
11884
11834
  this.userAgent = userAgent;