@stream-io/video-client 0.1.6 → 0.1.8

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
@@ -9542,6 +9542,14 @@ class Call {
9542
9542
  }
9543
9543
  return response;
9544
9544
  });
9545
+ /**
9546
+ * Creates a call
9547
+ *
9548
+ * @param data the data to create the call with.
9549
+ */
9550
+ this.create = (data) => __awaiter(this, void 0, void 0, function* () {
9551
+ return this.getOrCreate(data);
9552
+ });
9545
9553
  /**
9546
9554
  * A shortcut for {@link Call.get} with `ring` parameter set to `true`.
9547
9555
  * Will send a `call.ring` event to the call members.
@@ -10271,8 +10279,8 @@ class Call {
10271
10279
  /**
10272
10280
  * Starts the livestreaming of the call.
10273
10281
  */
10274
- this.goLive = () => __awaiter(this, void 0, void 0, function* () {
10275
- return this.streamClient.post(`${this.streamClientBasePath}/go_live`, {});
10282
+ this.goLive = (params) => __awaiter(this, void 0, void 0, function* () {
10283
+ return this.streamClient.post(`${this.streamClientBasePath}/go_live`, {}, params);
10276
10284
  });
10277
10285
  /**
10278
10286
  * Stops the livestreaming of the call.
@@ -11640,7 +11648,7 @@ class WSConnectionFallback {
11640
11648
  }
11641
11649
  }
11642
11650
 
11643
- const version = '0.1.6';
11651
+ const version = '0.1.8';
11644
11652
 
11645
11653
  const logger = getLogger(['location']);
11646
11654
  const HINT_URL = `https://hint.stream-io-video.com/`;
@@ -11981,14 +11989,14 @@ class StreamClient {
11981
11989
  params,
11982
11990
  });
11983
11991
  };
11984
- this.put = (url, data) => {
11985
- return this.doAxiosRequest('put', url, data);
11992
+ this.put = (url, data, params) => {
11993
+ return this.doAxiosRequest('put', url, data, { params });
11986
11994
  };
11987
- this.post = (url, data) => {
11988
- return this.doAxiosRequest('post', url, data);
11995
+ this.post = (url, data, params) => {
11996
+ return this.doAxiosRequest('post', url, data, { params });
11989
11997
  };
11990
- this.patch = (url, data) => {
11991
- return this.doAxiosRequest('patch', url, data);
11998
+ this.patch = (url, data, params) => {
11999
+ return this.doAxiosRequest('patch', url, data, { params });
11992
12000
  };
11993
12001
  this.delete = (url, params) => {
11994
12002
  return this.doAxiosRequest('delete', url, null, {