@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/dist/index.cjs.js
CHANGED
|
@@ -5645,7 +5645,7 @@ const aggregate = (stats) => {
|
|
|
5645
5645
|
return report;
|
|
5646
5646
|
};
|
|
5647
5647
|
|
|
5648
|
-
const version = "1.
|
|
5648
|
+
const version = "1.20.0";
|
|
5649
5649
|
const [major, minor, patch] = version.split('.');
|
|
5650
5650
|
let sdkInfo = {
|
|
5651
5651
|
type: SdkType.PLAIN_JAVASCRIPT,
|
|
@@ -12126,11 +12126,26 @@ class Call {
|
|
|
12126
12126
|
*
|
|
12127
12127
|
* @param callSessionID the call session ID to retrieve statistics for.
|
|
12128
12128
|
* @returns The call stats.
|
|
12129
|
+
* @deprecated use `call.getCallReport` instead.
|
|
12130
|
+
* @internal
|
|
12129
12131
|
*/
|
|
12130
12132
|
this.getCallStats = async (callSessionID) => {
|
|
12131
12133
|
const endpoint = `${this.streamClientBasePath}/stats/${callSessionID}`;
|
|
12132
12134
|
return this.streamClient.get(endpoint);
|
|
12133
12135
|
};
|
|
12136
|
+
/**
|
|
12137
|
+
* Retrieve call report. If the `callSessionID` is not specified, then the
|
|
12138
|
+
* report for the latest call session is retrieved. If it is specified, then
|
|
12139
|
+
* the report for that particular session is retrieved if it exists.
|
|
12140
|
+
*
|
|
12141
|
+
* @param callSessionID the optional call session ID to retrieve statistics for
|
|
12142
|
+
* @returns the call report
|
|
12143
|
+
*/
|
|
12144
|
+
this.getCallReport = async (callSessionID = '') => {
|
|
12145
|
+
const endpoint = `${this.streamClientBasePath}/report`;
|
|
12146
|
+
const params = callSessionID !== '' ? { session_id: callSessionID } : {};
|
|
12147
|
+
return this.streamClient.get(endpoint, params);
|
|
12148
|
+
};
|
|
12134
12149
|
/**
|
|
12135
12150
|
* Submit user feedback for the call
|
|
12136
12151
|
*
|
|
@@ -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}`),
|