@stream-io/video-client 1.19.2 → 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 +15 -0
- package/dist/index.browser.es.js +33 -6
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +33 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +33 -6
- package/dist/index.es.js.map +1 -1
- package/dist/src/Call.d.ts +19 -2
- package/dist/src/StreamSfuClient.d.ts +4 -0
- 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 +29 -6
- package/src/StreamSfuClient.ts +6 -0
- package/src/StreamVideoClient.ts +1 -0
- 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/src/Call.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Publisher, Subscriber } from './rtc';
|
|
2
2
|
import { CallState } from './store';
|
|
3
|
-
import type { AcceptCallResponse, BlockUserResponse, CallRingEvent, CallSettingsResponse, CollectUserFeedbackRequest, CollectUserFeedbackResponse, DeleteCallRequest, DeleteCallResponse, EndCallResponse,
|
|
3
|
+
import type { AcceptCallResponse, BlockUserResponse, CallRingEvent, CallSettingsResponse, CollectUserFeedbackRequest, CollectUserFeedbackResponse, DeleteCallRequest, DeleteCallResponse, EndCallResponse, GetCallReportResponse, GetCallResponse, GetOrCreateCallRequest, GetOrCreateCallResponse, GoLiveRequest, GoLiveResponse, JoinCallResponse, ListRecordingsResponse, ListTranscriptionsResponse, MuteUsersResponse, PinRequest, PinResponse, QueryCallMembersRequest, QueryCallMembersResponse, RejectCallResponse, RequestPermissionRequest, RequestPermissionResponse, SendCallEventResponse, SendReactionRequest, SendReactionResponse, StartClosedCaptionsRequest, StartClosedCaptionsResponse, StartFrameRecordingRequest, StartFrameRecordingResponse, StartHLSBroadcastingResponse, StartRecordingRequest, StartRecordingResponse, StartRTMPBroadcastsRequest, StartRTMPBroadcastsResponse, StartTranscriptionRequest, StartTranscriptionResponse, StopAllRTMPBroadcastsResponse, StopClosedCaptionsRequest, StopClosedCaptionsResponse, StopFrameRecordingResponse, StopHLSBroadcastingResponse, StopLiveRequest, StopLiveResponse, StopRecordingResponse, StopRTMPBroadcastsResponse, StopTranscriptionResponse, UnblockUserResponse, UnpinRequest, UnpinResponse, UpdateCallMembersRequest, UpdateCallMembersResponse, UpdateCallRequest, UpdateCallResponse, UpdateUserPermissionsRequest, UpdateUserPermissionsResponse, VideoDimension } from './gen/coordinator';
|
|
4
4
|
import { AudioTrackType, CallConstructor, CallLeaveOptions, ClientPublishOptions, ClosedCaptionsSettings, JoinCallData, TrackMuteType, VideoTrackType } from './types';
|
|
5
5
|
import { TrackType } from './gen/video/sfu/models/models';
|
|
6
6
|
import { DynascaleManager } from './helpers/DynascaleManager';
|
|
@@ -8,6 +8,7 @@ import { PermissionsContext } from './permissions';
|
|
|
8
8
|
import { StreamClient } from './coordinator/connection/client';
|
|
9
9
|
import { AllCallEvents, CallEventListener, Logger, RejectReason } from './coordinator/connection/types';
|
|
10
10
|
import { CameraManager, MicrophoneManager, ScreenShareManager, SpeakerManager } from './devices';
|
|
11
|
+
import { GetCallStatsResponse } from './gen/shims';
|
|
11
12
|
/**
|
|
12
13
|
* An object representation of a `Call`.
|
|
13
14
|
*/
|
|
@@ -109,7 +110,12 @@ export declare class Call {
|
|
|
109
110
|
* method to construct a `Call` instance.
|
|
110
111
|
*/
|
|
111
112
|
constructor({ type, id, streamClient, members, ownCapabilities, sortParticipantsBy, clientStore, ringing, watching, }: CallConstructor);
|
|
112
|
-
|
|
113
|
+
/**
|
|
114
|
+
* Sets up the call instance.
|
|
115
|
+
*
|
|
116
|
+
* @internal an internal method and should not be used outside the SDK.
|
|
117
|
+
*/
|
|
118
|
+
setup: () => Promise<void>;
|
|
113
119
|
private registerEffects;
|
|
114
120
|
private handleOwnCapabilitiesUpdated;
|
|
115
121
|
/**
|
|
@@ -635,8 +641,19 @@ export declare class Call {
|
|
|
635
641
|
*
|
|
636
642
|
* @param callSessionID the call session ID to retrieve statistics for.
|
|
637
643
|
* @returns The call stats.
|
|
644
|
+
* @deprecated use `call.getCallReport` instead.
|
|
645
|
+
* @internal
|
|
638
646
|
*/
|
|
639
647
|
getCallStats: (callSessionID: string) => Promise<GetCallStatsResponse>;
|
|
648
|
+
/**
|
|
649
|
+
* Retrieve call report. If the `callSessionID` is not specified, then the
|
|
650
|
+
* report for the latest call session is retrieved. If it is specified, then
|
|
651
|
+
* the report for that particular session is retrieved if it exists.
|
|
652
|
+
*
|
|
653
|
+
* @param callSessionID the optional call session ID to retrieve statistics for
|
|
654
|
+
* @returns the call report
|
|
655
|
+
*/
|
|
656
|
+
getCallReport: (callSessionID?: string) => Promise<GetCallReportResponse>;
|
|
640
657
|
/**
|
|
641
658
|
* Submit user feedback for the call
|
|
642
659
|
*
|
|
@@ -70,6 +70,10 @@ export declare class StreamSfuClient {
|
|
|
70
70
|
* This is set to `true` when the user initiates the leave process.
|
|
71
71
|
*/
|
|
72
72
|
isLeaving: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Flag to indicate if the client is in the process of closing the connection.
|
|
75
|
+
*/
|
|
76
|
+
isClosing: boolean;
|
|
73
77
|
private readonly rpc;
|
|
74
78
|
private keepAliveInterval?;
|
|
75
79
|
private connectionCheckTimeout?;
|