@stream-io/video-client 1.11.15 → 1.12.0

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,13 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [1.12.0](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.11.15...@stream-io/video-client-1.12.0) (2024-12-10)
6
+
7
+
8
+ ### Features
9
+
10
+ * Aggregate stats reports - request and response objects ([#1614](https://github.com/GetStream/stream-video-js/issues/1614)) ([8a47fea](https://github.com/GetStream/stream-video-js/commit/8a47fea491232e524b1de780c12c0d00e0f02bcd))
11
+
5
12
  ## [1.11.15](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.11.14...@stream-io/video-client-1.11.15) (2024-12-09)
6
13
 
7
14
 
@@ -8,6 +8,8 @@ import { UAParser } from 'ua-parser-js';
8
8
  import { ReplaySubject, combineLatest, BehaviorSubject, map, shareReplay, distinctUntilChanged, takeWhile, distinctUntilKeyChanged, fromEventPattern, startWith, concatMap, from, fromEvent, debounceTime, merge, pairwise, of } from 'rxjs';
9
9
  import * as SDP from 'sdp-transform';
10
10
 
11
+ /* tslint:disable */
12
+ /* eslint-disable */
11
13
  /**
12
14
  * @export
13
15
  */
@@ -3297,7 +3299,7 @@ const retryable = async (rpc, signal) => {
3297
3299
  return result;
3298
3300
  };
3299
3301
 
3300
- const version = "1.11.15";
3302
+ const version = "1.12.0";
3301
3303
  const [major, minor, patch] = version.split('.');
3302
3304
  let sdkInfo = {
3303
3305
  type: SdkType.PLAIN_JAVASCRIPT,
@@ -12796,7 +12798,7 @@ class StreamClient {
12796
12798
  return await this.wsConnection.connect(this.defaultWSTimeout);
12797
12799
  };
12798
12800
  this.getUserAgent = () => {
12799
- const version = "1.11.15";
12801
+ const version = "1.12.0";
12800
12802
  return (this.userAgent ||
12801
12803
  `stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${version}`);
12802
12804
  };
@@ -13116,6 +13118,15 @@ class StreamVideoClient {
13116
13118
  this.queryCallStats = async (data = {}) => {
13117
13119
  return this.streamClient.post(`/call/stats`, data);
13118
13120
  };
13121
+ /**
13122
+ * Retrieve the list of available reports aggregated from the call stats.
13123
+ *
13124
+ * @param data Specify filter conditions like from and to (within last 30 days) and the report types
13125
+ * @returns Requested reports with (mostly) raw daily data for each report type requested
13126
+ */
13127
+ this.queryAggregateCallStats = async (data = {}) => {
13128
+ return this.streamClient.post(`/stats`, data);
13129
+ };
13119
13130
  /**
13120
13131
  * Returns a list of available data centers available for hosting calls.
13121
13132
  */