@stream-io/video-client 0.0.2-alpha.1 → 0.0.2-alpha.3

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.es.js CHANGED
@@ -8585,7 +8585,6 @@ class Call {
8585
8585
  * @param data the request data.
8586
8586
  */
8587
8587
  this.updateCallMembers = (data) => __awaiter(this, void 0, void 0, function* () {
8588
- // FIXME: OL: implement kick-users
8589
8588
  return this.streamClient.post(`${this.streamClientBasePath}/members`, data);
8590
8589
  });
8591
8590
  /**
@@ -9094,13 +9093,20 @@ class Call {
9094
9093
  });
9095
9094
  };
9096
9095
  /**
9097
- * Performs HTTP request to retrieve the list of recordings for the current call
9098
- * Updates the call state with provided array of CallRecording objects
9096
+ * Retrieves the list of recordings for the current call or call session.
9097
+ * Updates the call state with the returned array of CallRecording objects.
9098
+ *
9099
+ * If `callSessionId` is provided, it will return the recordings for that call session.
9100
+ * Otherwise, all recordings for the current call will be returned.
9101
+ *
9102
+ * @param callSessionId the call session id to retrieve recordings for.
9099
9103
  */
9100
- this.queryRecordings = () => __awaiter(this, void 0, void 0, function* () {
9101
- // FIXME: this is a temporary setting to take call ID as session ID
9102
- const sessionId = this.id;
9103
- const response = yield this.streamClient.get(`${this.streamClientBasePath}/${sessionId}/recordings`);
9104
+ this.queryRecordings = (callSessionId) => __awaiter(this, void 0, void 0, function* () {
9105
+ let endpoint = this.streamClientBasePath;
9106
+ if (callSessionId) {
9107
+ endpoint = `${endpoint}/${callSessionId}`;
9108
+ }
9109
+ const response = yield this.streamClient.get(`${endpoint}/recordings`);
9104
9110
  this.state.setCallRecordingsList(response.recordings);
9105
9111
  return response;
9106
9112
  });
@@ -10874,7 +10880,7 @@ class StreamClient {
10874
10880
  }
10875
10881
  getUserAgent() {
10876
10882
  return (this.userAgent ||
10877
- `stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.2-alpha.0"}`);
10883
+ `stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.2-alpha.2"}`);
10878
10884
  }
10879
10885
  setUserAgent(userAgent) {
10880
10886
  this.userAgent = userAgent;