@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.cjs.js CHANGED
@@ -9562,6 +9562,14 @@ class Call {
9562
9562
  }
9563
9563
  return response;
9564
9564
  });
9565
+ /**
9566
+ * Creates a call
9567
+ *
9568
+ * @param data the data to create the call with.
9569
+ */
9570
+ this.create = (data) => __awaiter(this, void 0, void 0, function* () {
9571
+ return this.getOrCreate(data);
9572
+ });
9565
9573
  /**
9566
9574
  * A shortcut for {@link Call.get} with `ring` parameter set to `true`.
9567
9575
  * Will send a `call.ring` event to the call members.
@@ -10291,8 +10299,8 @@ class Call {
10291
10299
  /**
10292
10300
  * Starts the livestreaming of the call.
10293
10301
  */
10294
- this.goLive = () => __awaiter(this, void 0, void 0, function* () {
10295
- return this.streamClient.post(`${this.streamClientBasePath}/go_live`, {});
10302
+ this.goLive = (params) => __awaiter(this, void 0, void 0, function* () {
10303
+ return this.streamClient.post(`${this.streamClientBasePath}/go_live`, {}, params);
10296
10304
  });
10297
10305
  /**
10298
10306
  * Stops the livestreaming of the call.
@@ -11660,7 +11668,7 @@ class WSConnectionFallback {
11660
11668
  }
11661
11669
  }
11662
11670
 
11663
- const version = '0.1.6';
11671
+ const version = '0.1.8';
11664
11672
 
11665
11673
  const logger = getLogger(['location']);
11666
11674
  const HINT_URL = `https://hint.stream-io-video.com/`;
@@ -12001,14 +12009,14 @@ class StreamClient {
12001
12009
  params,
12002
12010
  });
12003
12011
  };
12004
- this.put = (url, data) => {
12005
- return this.doAxiosRequest('put', url, data);
12012
+ this.put = (url, data, params) => {
12013
+ return this.doAxiosRequest('put', url, data, { params });
12006
12014
  };
12007
- this.post = (url, data) => {
12008
- return this.doAxiosRequest('post', url, data);
12015
+ this.post = (url, data, params) => {
12016
+ return this.doAxiosRequest('post', url, data, { params });
12009
12017
  };
12010
- this.patch = (url, data) => {
12011
- return this.doAxiosRequest('patch', url, data);
12018
+ this.patch = (url, data, params) => {
12019
+ return this.doAxiosRequest('patch', url, data, { params });
12012
12020
  };
12013
12021
  this.delete = (url, params) => {
12014
12022
  return this.doAxiosRequest('delete', url, null, {