@stream-io/video-client 0.0.1-alpha.77 → 0.0.1-alpha.79

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.
@@ -32,14 +32,18 @@ const OwnCapability = {
32
32
  join_ended_call: 'join-ended-call',
33
33
  mute_users: 'mute-users',
34
34
  read_call: 'read-call',
35
+ remove_call_member: 'remove-call-member',
35
36
  screenshare: 'screenshare',
36
37
  send_audio: 'send-audio',
37
38
  send_video: 'send-video',
38
39
  start_broadcast_call: 'start-broadcast-call',
39
40
  start_record_call: 'start-record-call',
41
+ start_transcription_call: 'start-transcription-call',
40
42
  stop_broadcast_call: 'stop-broadcast-call',
41
43
  stop_record_call: 'stop-record-call',
44
+ stop_transcription_call: 'stop-transcription-call',
42
45
  update_call: 'update-call',
46
+ update_call_member: 'update-call-member',
43
47
  update_call_permissions: 'update-call-permissions',
44
48
  update_call_settings: 'update-call-settings',
45
49
  };
@@ -5721,11 +5725,6 @@ class Call {
5721
5725
  if (this.joined$.getValue()) {
5722
5726
  throw new Error(`Illegal State: Already joined.`);
5723
5727
  }
5724
- // FIXME OL: temporary fix which restores the previous behavior.
5725
- // This data should come from the SDK, or integration
5726
- data = data || {
5727
- create: true,
5728
- };
5729
5728
  const call = yield join(this.streamClient, this.type, this.id, data);
5730
5729
  this.state.setCurrentValue(this.state.metadataSubject, call.metadata);
5731
5730
  this.state.setCurrentValue(this.state.membersSubject, call.members);
@@ -5788,6 +5787,9 @@ class Call {
5788
5787
  });
5789
5788
  return joinResponsePromise;
5790
5789
  });
5790
+ this.updateCallMembers = (data) => __awaiter(this, void 0, void 0, function* () {
5791
+ return yield this.streamClient.post(`${this.streamClientBasePath}/members`, data);
5792
+ });
5791
5793
  /**
5792
5794
  * Starts publishing the given video stream to the call.
5793
5795
  * The stream will be stopped if the user changes an input device, or if the user leaves the call.
@@ -6308,9 +6310,7 @@ class Call {
6308
6310
  const state = activeCall.state;
6309
6311
  const remoteParticipants = state.getCurrentValue(state.remoteParticipants$);
6310
6312
  if (!remoteParticipants.length && !leavingActiveCall) {
6311
- yield this.streamClient.post(`${this.streamClientBasePath}/event`, {
6312
- type: 'call.cancelled',
6313
- });
6313
+ yield this.endCall();
6314
6314
  }
6315
6315
  }
6316
6316
  });
@@ -6456,7 +6456,7 @@ const watchCallRejected = (store) => {
6456
6456
  };
6457
6457
  };
6458
6458
  /**
6459
- * Event handler that watches the delivery of CallCancelledEvent
6459
+ * Event handler that watches the delivery of CallEndedEvent
6460
6460
  * Updates the state store and notifies its subscribers that
6461
6461
  * the call is now considered terminated.
6462
6462
  */
@@ -6464,7 +6464,7 @@ const watchCallCancelled = (store) => {
6464
6464
  return function onCallCancelled(event) {
6465
6465
  const { call_cid } = event;
6466
6466
  if (!call_cid) {
6467
- console.log("Can't find call in CallCancelledEvent");
6467
+ console.log("Can't find call in CallEndedEvent");
6468
6468
  return;
6469
6469
  }
6470
6470
  const cancelledIncomingCall = store
@@ -6475,7 +6475,7 @@ const watchCallCancelled = (store) => {
6475
6475
  ? activeCall
6476
6476
  : undefined;
6477
6477
  if (!cancelledIncomingCall && !cancelledActiveCall) {
6478
- console.warn(`CallCancelledEvent received for a non-existent incoming call (CID: ${call_cid}`);
6478
+ console.warn(`CallEndedEvent received for a non-existent incoming call (CID: ${call_cid}`);
6479
6479
  return;
6480
6480
  }
6481
6481
  store.setCurrentValue(store.pendingCallsSubject, (pendingCalls) => pendingCalls.filter((pendingCall) => pendingCall.cid !== call_cid));
@@ -8496,7 +8496,7 @@ class StreamClient {
8496
8496
  }
8497
8497
  getUserAgent() {
8498
8498
  return (this.userAgent ||
8499
- `stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.1-alpha.76"}`);
8499
+ `stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.1-alpha.78"}`);
8500
8500
  }
8501
8501
  setUserAgent(userAgent) {
8502
8502
  this.userAgent = userAgent;