@stream-io/video-client 1.19.3 → 1.20.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 +8 -0
- package/dist/index.browser.es.js +17 -2
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +17 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +17 -2
- package/dist/index.es.js.map +1 -1
- package/dist/src/Call.d.ts +13 -1
- package/dist/src/gen/coordinator/index.d.ts +274 -836
- package/dist/src/gen/shims.d.ts +177 -0
- package/package.json +1 -1
- package/src/Call.ts +18 -1
- package/src/__tests__/StreamVideoClient.api.test.ts +1 -1
- package/src/gen/coordinator/index.ts +275 -833
- package/src/gen/shims.ts +192 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [1.20.0](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.19.3...@stream-io/video-client-1.20.0) (2025-04-24)
|
|
6
|
+
|
|
7
|
+
- bump test timeout ([7d922ed](https://github.com/GetStream/stream-video-js/commit/7d922ed34c46851a257fb36ee644f1ff5e4cb917))
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
- add getCallReport method ([#1767](https://github.com/GetStream/stream-video-js/issues/1767)) ([12e064f](https://github.com/GetStream/stream-video-js/commit/12e064f34a08731ded289651125bbe20e2bbf4f4))
|
|
12
|
+
|
|
5
13
|
## [1.19.3](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.19.2...@stream-io/video-client-1.19.3) (2025-04-15)
|
|
6
14
|
|
|
7
15
|
### Bug Fixes
|
package/dist/index.browser.es.js
CHANGED
|
@@ -5643,7 +5643,7 @@ const aggregate = (stats) => {
|
|
|
5643
5643
|
return report;
|
|
5644
5644
|
};
|
|
5645
5645
|
|
|
5646
|
-
const version = "1.
|
|
5646
|
+
const version = "1.20.0";
|
|
5647
5647
|
const [major, minor, patch] = version.split('.');
|
|
5648
5648
|
let sdkInfo = {
|
|
5649
5649
|
type: SdkType.PLAIN_JAVASCRIPT,
|
|
@@ -12124,11 +12124,26 @@ class Call {
|
|
|
12124
12124
|
*
|
|
12125
12125
|
* @param callSessionID the call session ID to retrieve statistics for.
|
|
12126
12126
|
* @returns The call stats.
|
|
12127
|
+
* @deprecated use `call.getCallReport` instead.
|
|
12128
|
+
* @internal
|
|
12127
12129
|
*/
|
|
12128
12130
|
this.getCallStats = async (callSessionID) => {
|
|
12129
12131
|
const endpoint = `${this.streamClientBasePath}/stats/${callSessionID}`;
|
|
12130
12132
|
return this.streamClient.get(endpoint);
|
|
12131
12133
|
};
|
|
12134
|
+
/**
|
|
12135
|
+
* Retrieve call report. If the `callSessionID` is not specified, then the
|
|
12136
|
+
* report for the latest call session is retrieved. If it is specified, then
|
|
12137
|
+
* the report for that particular session is retrieved if it exists.
|
|
12138
|
+
*
|
|
12139
|
+
* @param callSessionID the optional call session ID to retrieve statistics for
|
|
12140
|
+
* @returns the call report
|
|
12141
|
+
*/
|
|
12142
|
+
this.getCallReport = async (callSessionID = '') => {
|
|
12143
|
+
const endpoint = `${this.streamClientBasePath}/report`;
|
|
12144
|
+
const params = callSessionID !== '' ? { session_id: callSessionID } : {};
|
|
12145
|
+
return this.streamClient.get(endpoint, params);
|
|
12146
|
+
};
|
|
12132
12147
|
/**
|
|
12133
12148
|
* Submit user feedback for the call
|
|
12134
12149
|
*
|
|
@@ -13443,7 +13458,7 @@ class StreamClient {
|
|
|
13443
13458
|
this.getUserAgent = () => {
|
|
13444
13459
|
if (!this.cachedUserAgent) {
|
|
13445
13460
|
const { clientAppIdentifier = {} } = this.options;
|
|
13446
|
-
const { sdkName = 'js', sdkVersion = "1.
|
|
13461
|
+
const { sdkName = 'js', sdkVersion = "1.20.0", ...extras } = clientAppIdentifier;
|
|
13447
13462
|
this.cachedUserAgent = [
|
|
13448
13463
|
`stream-video-${sdkName}-v${sdkVersion}`,
|
|
13449
13464
|
...Object.entries(extras).map(([key, value]) => `${key}=${value}`),
|